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

How do I force Youtube-DL to download the best quality MP4-DASH video? #31033

Open
3 tasks done
Videogamer555 opened this issue Jun 18, 2022 · 4 comments
Open
3 tasks done
Labels

Comments

@Videogamer555
Copy link

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

How do I make Youtube-DL actually pick the highest quality MP4-DASH video/audio streams? I know I can do default which selects what it thinks are the best quality DASH streams regardless of format (it will download webm audio/video DASH streams if it thinks those are best). I can force it to download MP4 video by using "-f mp4" but this only works for forcing it to download the best quality single-file MP4 video. Unfortunately on Youtube this is limited to 720p. If 1080p (or better) is available it will ONLY be available via DASH streams. I need to know how to force Youtube-DL to download the best quality MP4-DASH streams (AAC for audio, and h264 for video). And one other thing, I want it to ONLY use h264 codec for video, and ignore any streams using the AV1 codec, as not all video player software supports this codec yet. Is there a way to force it to use best quality MP4-h264-DASH for the video stream and best quality AAC-DASH for the audio stream?

@dirkf
Copy link
Contributor

dirkf commented Jun 18, 2022

Read the manual section Format Selection.

However, run yt-dl with -F to list the available formats; then either select a listed format or pair of formats (eg -f 137+140) or use some selection criteria; how you formulate the criteria will depend on whether you have a lower limit for the resolution you'll accept. Eg:

-f 'bestvideo[ext=mp4][vcodec!^=av0][vcodec!^=av1]+bestaudio[ext=m4a]/mp4/best' --recode-video mp4

@dirkf
Copy link
Contributor

dirkf commented Jun 18, 2022

Also, almost a duplicate of #29794, and see also #29783.

@AbdullohAhmadjonov

This comment was marked as spam.

@AbdullohAhmadjonov

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants