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.
Certain youtube videos report incorrect bitrates in the DASH manifest #6177
Comments
|
Having the same problem with audio I think:
It uses 171 and forces mkv container instead of using 140. |
Rather selfish.
By the way bitrate is not necessarily the measure of quality as well as filesize, see #6018 (comment). |
|
Since bitrate reported in the DASH manifest is often incorrect, would it not make sense to ignore it and prioritize based on total size instead? I think it's safe to assume the duration will be constant at all quality levels. |
|
That wouldn't work because vp9 is almost always going to be preferred over h264. I was incorrect in my original statement. After much experimentation vp9 almost always turns out to be the better of the two even with the smaller file size. vp9 should therefore probably be the preferred format even if it's smaller or has a lower bitrate. |
|
That may be true, but that's a separate issue. My point is since DASH manifest is reporting unreliable bitrates, it would be futile to use this value in any meaningful way. |
This causes the "bestvideo" format to download the incorrect file since it appears to base it off of bitrate instead of file size. I have not actually visually compared the two but vp9 with a smaller bitrate is almost never going to win vs h264. Even if bit rates were identical the h264 format encoded videos will almost always be of a higher quality than vp9. I assume this is not actually the fault of youtube-dl but instead that the DASH manifest is wrong/lying.
Here's an example:
And the offending lines:
The video is 427 seconds long (7:07) if you want to do the math. The actual bitrate of the webm video in this case (for format 303) is 4501 kbps. I'm not sure why the DASH manifest reports it this way but the VP9 video in this case is almost certainly lower quality than the h264 one.
There are probably several ways to fix it (if it's deemed nessasary). I'm not sure if you want to entirely base it off of file size or a combination of bitrate and file size. In any case there should be a bias towards h264 as I'm unaware of VP9 offering any benifits other than it being a "free format" and is almost certainly going to be at a lower bitrate than h264.
Edit: Another video which shows this same behavoir is https://www.youtube.com/watch?v=9STtshhf9zc (by the same creator).