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.
-f bestvideo doesn't always download best quality video from Youtube. #24655
Comments
|
You must put something like this into your
This enforces preference for VP9 Edit
You're obviously right, but just look at the two listed formats in your example above. Compare file size and bitrate, this does not make really sense, but that's what is returned by YT. Apparently not always correct. |
|
I did know how to force vp9 codec, I was just reporting that even if VP9 encoded file is smaller and has lower bitrate, should be preferred to AV1. Thank you anyway! |
|
Preferred to MP4/AVC you mean? But otherwise I agree, the automatic format selection should maybe updated so that VP9 takes precedence, after all it's the preferred format by YouTube as well, and while transition has been slow, it's the better optimized format for now.. |
Checklist
Description
Video: https://www.youtube.com/watch?v=GTcM7ydgAwo
Command:
youtube-dl -f bestvideo https://www.youtube.com/watch?v=GTcM7ydgAwoToday I was downloading that video from Youtube. I thought that
-f bestvideowould have considered the video encoding but it doesn't seem to do it. In fact that video has a lot of differen formats but we will focus on the best two:Webm has lower bitrate because it uses vp9 and it should be bettter than 137 but youtube-dl chose 137.
I would expect
-f bestvideoto choose the webm since it's heavier and it's encoded with vp9 instead of mp4.