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.
format choosing option "bestvideo[height>=xxxx]" not working as expected for one Youtube video #5774
Comments
[youtube] Remove the nondash formats (fixes #5774)
|
Will be fixed in the next version. Thanks for the report. |
Hello, folks.
First, thanks to all the contributors to this nice piece of software, I'm much indebted to it, with rtmpdump not functioning at all on my Windows 7 PC for unknown reasons.
I will report an issue with the windows build of youtube-dl I've just upgraded some minutes ago (version 2015.05.20).
First, the url of the Youtube video in question is as follows :
https://www.youtube.com/watch?v=EQCrhbBxsjAThe list of video formats given by the command
youtube-dl.exe -F https://www.youtube.com/watch?v=EQCrhbBxsjAis :
Now, I want to download this video 'only if' it is available in 1440p or a higher resolution, so I run the following command:
youtube-dl.exe -f "bestvideo[height>=1440]+bestaudio" https://www.youtube.com/watch?v=EQCrhbBxsjAthe maximum height available for this video is 1280, so I expected that it would not be downloaded, but against my intuition, youtube-dl started to download a video file with a size of 74.1mb(which must be the following format, considering its size):
264 mp4 720x1280 DASH video 4183k , 30fps, video only, 74.10MiBNot only is the height condition mismatched, but it isn't the best video format either; the video format whose height is 1280(maximum) which has the highest bitrate is 271 :
271 webm 720x1280 DASH video 4939k , 30fps, video only, 81.73MiBActually, the command
youtube-dl.exe -f "bestvideo[height>=xxxx]+bestaudio https://www.youtube.com/watch?v=EQCrhbBxsjAwith xxxx replaced by anything higher than 1280 seems to try to fetch that same video file with a size of 74.1mb.
youtube-dl.exe -f "bestvideo[height>=1280]+bestaudio https://www.youtube.com/watch?v=EQCrhbBxsjAseems to finally select the video format with a size of around 81mb (probably 271 listed above), which is a behavior that I can understand.
Should this be considered a bug, or am I missing something?
If the latter is true, please point me in the right direction.
Thanks.