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 VP9 format found with incorrect bitrate, causes 'bestvideo' choice to be wrong #6796
Comments
|
Bitrate is taken from DASH manifest that is often incorrect. youtube-dl can't do anything about that. |
|
You can do something about it — you can ignore the bitrate listed and calculate it from the size and duration, both of which you have. The duration is in the manifest as the |
Given:
Youtube-dl thinks that format 247 is the highest quality format and will choose to download it over formnat 136 (given that ffmpeg is in the path and it's looking to satisfy
bestvideo+bestaudio), but this is incorrect as the format 136 stream has a higher bitrate. And in fact both bitrates are wrong; this video has a duration of 1530 seconds, so the fmt 247 stream has a bitrate of 1149 kbit/s and the fmt 136 stream has a bitrate of 1533 kbit/s. I notice that it lists the bitrate of the fmt 135 stream as 1149 kbit/s, so I suspect there could be a parsing error somewhere.This seems random and unpredictable. The above video was the first in a series. Here is the second video of the series, uploaded by the same user (presumably with the same settings, resolution, bitrate, etc.) just two days later:
This time youtube-dl will correctly choose fmt 136 over fmt 247, but only by accident, because the fmt 136 stream really has a bitrate of 1328 kbit/s, not 2220 kbit/s as reported.
The fps values are also consistently wrong for the VP9 formats.