Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl extracting incorrect video stream with -f bestvideo #23639
Comments
|
136 has higher reported bitrate. |
|
And what? Video with higher resolution have better quality. This is not invalid bug. This is clearly wrong logic in program. Comparing bitrates is must be last thing to do. Also, why YouTube-dl is not selecting 248? YouTube is encoding VP9 better than h264. |
Checklist
Verbose log
Description
When selecting '-f bestvideo' as a format option, youtube-dl is extracting the wrong stream. When trying to grab the video in the example above, and specifying 'bestvideo[ext=mp4]', yt-dl has been grabbing stream ID 136, whereas the best video option in this case is actually stream ID 137.
I also just now noticed that the bitrates are being erroneously reported as ID 136 being higher than ID 137, which is definitely not true.
Video plays with correct streams (137+140) automatically selected in browser, according to 'Stats For Nerds'.