Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no update to video+audio for higher resolution? #665

Closed
4 tasks done
ryznxx opened this issue Jun 11, 2024 · 4 comments
Closed
4 tasks done

no update to video+audio for higher resolution? #665

ryznxx opened this issue Jun 11, 2024 · 4 comments
Labels
question Further information is requested Stale

Comments

@ryznxx
Copy link

ryznxx commented Jun 11, 2024

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

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@ryznxx ryznxx added the question Further information is requested label Jun 11, 2024
@absidue
Copy link
Collaborator

absidue commented Jun 11, 2024

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.

@ryznxx
Copy link
Author

ryznxx commented Jun 12, 2024

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.

i dont think it works when run it on vercel

@gmagreti
Copy link

gmagreti commented Jul 9, 2024

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 o ffmpeg.

não acho que funcione quando executado no vercel

Have you already tried doing this?

Copy link
Contributor

github-actions bot commented Sep 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

3 participants