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.
Documentation should explain preference for flv over mp4 at 360p #539
Comments
|
By default, youtube-dl goes for the highest quality it can get (if two formats have the same quality, we'll take what more users what). That's all there is to the rationale of the format preferences. The formats 18 and 34 are a little bit unusual as they don't differ in (video bitrate), but do when it comes to container format and video codec profile (and audio bitrate). Therefore, 34 (flv) videos should be in significantly higher quality. I'm not sure how we could document this (except this comment, which may serve as documentation). Feel free to send in a pull request or suggest a documentation text (and where it should be documented). I understand your case for the technically inferior 18 format, but on a desktop machine, you (and I) would prefer the better quality of format 34, wouldn't you? In any case, these low-quality videos are becoming increasingly rare. You can also simply edit
|
|
OK, thanks for the hint about about the config file. At least in the limited few videos I downloaded both versions of, I wasn't able to distinguish any difference between 18 and 34. There is also another reason to prefer 18 over 34 - it seems to download many times faster. Is the flv download being throttled by the server to approximate real-time of the video, whereas the mp4 one is not? |
|
Oops, edited the comment to reduce confusion. You're right, 18 is faster. However, that may be the case because 34 tends to be about 1.5 times as large, and youtube doesn't throttle the first Megabytes (which are very fast for both formats). Historically, youtube-dl always defaulted to the best format. I retested the quality with
It turns out that the two formats do differ in resolution. The difference is striking, see http://imgur.com/a/jji9T . Sure, the first video is faster to download, but wouldn't you prefer the second one? |
|
Interesting. So 18 is sometimes the same resolution as 34, and sometimes smaller, depending on the individual video. OK, with that additional detail, I agree that youtube-dl's defaults are sensible, and it really just comes down to personal preferences with individual videos. |
youtube-dl prefers flv over mp4 at 360p. After reading the wikipedia article on youtube formats, I can guess this may be because the H.264 profile used in youtube's 360p flvs is more advanced than the one used in its 360p mp4s. Is this a correct guess?
Either way, please could a note be added to the documentation explaining this choice?
Is the difference in quality significant? flvs tend to be less compatible with players than mp4s - and on my Android phone, seeking within a flv doesn't work, whilst seeking within an mp4 does.