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.
bestvideo by codec and bitrate #26633
Comments
|
Could you point me to the issue where this is a duplicate of? I now spent 5 min searching without a hit. Thank you! |
Checklist
Description
At the moment
youtube-dl -f bestvideoresults in the AVC / H.264 version being downloaded.This is certainly the best possible video quality. But since YT (nearly always*) encodes with constant quality per resolution, we might as well take another format without loosing quaity.**
I would hence argue that
bestvideois the one with the smallest file size of the ones with the highest quality.I would hence like to propose the following for
bestvideo:2.2 If multiple qualities are available for the same codec, choose the one with the highest bitrate.*
This would also avoid verbose constructs like:
Thanks a lot!
MWE
youtube-dl -f bestvideo ibXKKllz4xQresults in format 137.
*
youtube-dl -F QPdWJeybMo8** Since this is logically not bullet-proof, we might as well generally assume AV1 > VP9 > AVC.