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.
Best video format inconsistency (720p60fps) #11200
Comments
|
This is expected behavior. Bitrate takes higher precedence. |
|
I don't think that's very intuitive then. Certainly not for the lay user. One would expect that if they want to download a video in the best possible quality, which means it will be 60 fps instead of 30 fps (which is a very visible difference VS undetectable quality change because of bitrate difference), the fps should take precedence, not just depend on bitrate, which even if its lower than the bitrate of the stream with lower fps, may or may not cause visible worsening of video quality for the user. IMHO the precedence should be I have zero python experience but later I will see if I can work around something, at least for my use. |
|
As the criteria for quality will never reach a consensus, #8125 is the way to go |
|
Actually, as I noted here, for reasons particular to the specifics of the In my experience, such (i.e., poor choices) should rarely be left to consensus. |
What is the purpose of your issue?
When I try to download a video which is 720p and the best available framerate is 60fps, I expect it to download a video format with these attributes.
However, the output file is in 720p30fps when I run the command below.
Download debug
As you can see it downloads format 251 and 247 then merges it into an mkv file.
The result of the command
youtube-dl https://www.youtube.com/watch?v=eLR3zKxpcso -Fcan be seen below.Available formats
Format 247 is indeed 720p30fps only.
Even though the obviously best video format would be 302, because it would deliver the 60fps stream, and it downloads of course if I specify
-f 302+bestaudioas the quality.I think the
bestvideoattribute is not working as the name would suggest.Further tests
I ran multiple tests on videos which maximum available quality is 720p60fps.
The first video downloaded as 720p60fps, as it should happen.
Commands for first video
As it can be seen, it downloaded the best available formats.
The second video downloaded again as 720p60fps, as it should happen.
Commands for second video
As it can be seen, it downloaded the best available formats.
The third video downloaded again as 720p60fps, as it should happen.
Commands for third video
As it can be seen, it downloaded the best available formats.
Randomly selecting a few 720p60fps video from uploader after and before the problematic video, it seems like in the case of these videos, it always downloaded them in the best format available, except that one.
For example:
In the case of this video, these 720p formats are available:
When I download it with the command, it selects format 298, which is the best.
Although it worked for many videos, except the problematic one, it's not perfect if someone decides to archive the contents of the channel, and the problem probably persists on other videos from other uploaders as well, but I didn't find other examples though.