-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
[Question] odd ba* format selection? #979
Comments
I can see why you would think that. But
ba* is NOT "select the format that contains the best quality audio" A format that contains a video stream is always considered better by yt-dlp than a format without it. Since 22 contains both an audio and a video stream, it is considered better than all audio-only streams. Hence why 22 gets selected. Hopefully I explained this clearly But the more important question is how do you select "the format that contains the best audio"? In theory, you can achieve this by asking yt-dlp to not consider video streams to be always better than audio-only (which is controlled by the sorting parameter BUT, as you have already noticed, yt-dlp shows the tldr; you can't for sure. Just use |
Ah I see, that explains it really well. Thanks! |
Looks like the actual flag is |
thanks I'll fix it |
Checklist
Question
I'm running the following command:
As a result, I get a 2.9MB
.m4a
file. When I pass-F
it shows an ABR of0k
(format ID 22).If I instead use
-f 'ba'
, I get 3.3MB.opus
file. Shouldn'tba*
have selected this.opus
file to begin with, since it's larger?The text was updated successfully, but these errors were encountered: