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] "bestvideo" doesn't choose the actual best video in rare cases #12198
Comments
|
Wait a sec, something is weirder than I thought.
As you can see here, the "bestvideo" (133 mp4 360x240 one) is only 973.70KiB. Its actual bitrate is 32.2 kbps (reported by mediainfo). And the 480p one has a filesize of 3.18MiB, with actual bitrate 112 kbps. So in short, all these bitrates are wrong to begin with. |
|
Not necessarily wrong.. A better (i.e. more efficient) video encoding allows the same quality with a much lower bitrate, that's the point. |
|
Not necessarily, yeah. But in this particular case, the problem is bitrate is totally wrong to begin with |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.02.17. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
It seems the
bestvideooption purely chooses the format based on the bitrate. However, in rare cases, a higher quality/resolution video may have lower bitrates.In this very example (note: video may not be available in the US), since the video is a still frame, the 480p DASH video ended up with only 198 kbps, while the 240p DASH video became 242 kbps, albeit having lower quality. And as a result, the
bestvideoparameter chose the latter instead of the former that has better quality.I think it's better to use resolution as an indicator of quality. At least on YouTube (IIRC), a higher resolution DASH video will always have better quality and is closer to the original file, since YouTube doesn't upscale videos.