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-dl reports wrong video resolution (and doesn't download "best" option) #4241
Comments
|
Note that for other videos (like http://www.youtube.com/watch?v=BaW_jenozKc) it's correct. We could just list the 18 format as 360p (we would also have to change the others), The 640x480 format only contains the video, the audio is in another format. if you have ffmpeg or avconv installed, you can automatically merge the video and the audio running |
|
Format 36 is also incorrect, it should be 320x180, and is consistently reported wrong from what I've found. |
|
For the video posted by @edumj it's actually 320x240. |
|
That's not very common then. Out of 158 arbitrarily picked videos just now (format 36), I got this distribution of heights using mediainfo:
youtube-dl reports them all as 320x240. |
|
But it says that 480x360 is also DASH, and it downloads it without merging. I don'k know how YouTube-dl gets the size of videos, or how YouTube.com reports them (because I uploaded a PAL video of 720x576 in YouTube.com, and it says max is 480p!) but this is my theory: I'll try bestvideo+bestaudio, but is there a list of all format numbers with their meaning? |
|
In the current version of youtube-dl (2015.01.22), the sizes reported by YouTube should take precedence over the ones we determined statically. If you have a video that's still being misidentified, please post so. If you always want the max quality video, |
Hi,
in some standard resolution videos (max 480p) like https://www.youtube.com/watch?v=NY3VYW1DXH4, with the -f option I get the following formats:
...
format code extension resolution note
139 m4a audio only DASH audio 48k , audio@ 48k (22050Hz), 1.08MiB (worst)
140 m4a audio only DASH audio 127k , audio@128k (44100Hz), 2.88MiB
171 webm audio only DASH audio 154k , audio@128k (44100Hz), 3.10MiB
172 webm audio only DASH audio 244k , audio@256k (44100Hz), 4.67MiB
141 m4a audio only DASH audio 255k , audio@256k (44100Hz), 5.77MiB
278 webm 192x144 DASH video 74k , webm container, VP9, video only, 1.43MiB
160 mp4 192x144 DASH video 113k , video only, 2.48MiB
242 webm 320x240 DASH video 197k , video only, 3.56MiB
133 mp4 320x240 DASH video 246k , video only, 5.52MiB
243 webm 480x360 DASH video 332k , video only, 6.04MiB
134 mp4 480x360 DASH video 541k , video only, 7.20MiB
244 webm 640x480 DASH video 666k , video only, 10.99MiB
135 mp4 640x480 DASH video 1047k , video only, 14.65MiB
17 3gp 176x144
36 3gp 320x240
5 flv 400x240
43 webm 640x360
18 mp4 640x360 (best)
It says "640x360" is the best option, but it seems it doesn't exist! Because it should be "480x360" or "640x480" (both 4:3), not "640x360"! (16:9)
May be it's because of 4:3 videos?
And it downloads the lower "480x360" instead of the bigger "640x480".
Edu.