no update to video+audio for higher resolution?
Question
High resolution and audio?
maybe i ask same question but im curious i already read docs
const info = await yt.getBasicInfo('somevideoid');
const url = info.streaming_data?.formats[0].decipher(yt.session.player);
console.info('Playback url:', url);
// or:
const format = info.chooseFormat({ type: 'video+audio', quality: 'best' });
const url = format?.decipher(yt.session.player);
console.info('Playback url:', url);
Other details
No response
Checklist
- [X] I am running the latest version.
- [X] I checked the documentation and found no answer.
- [X] I have searched the existing issues and made sure this is not a duplicate.
- [X] I have provided sufficient information.
YouTube doesn't provide any streams like that, you will have to download an audio stream and a video stream from the adaptive_formats array and then combine them with a tool like ffmpeg.
YouTube doesn't provide any streams like that, you will have to download an audio stream and a video stream from the
adaptive_formatsarray and then combine them with a tool likeffmpeg.
i dont think it works when run it on vercel
O YouTube não fornece nenhum fluxo desse tipo. Você terá que baixar um fluxo de áudio e um fluxo de vídeo do
adaptive_formatsarray e então combiná-los com uma ferramenta como offmpeg.não acho que funcione quando executado no vercel
Have you already tried doing this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.