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.
1080p Best Video not working, only grabbing 720p MP4 and not 1080p WEBM #20286
Comments
|
Follow the template, then they can help you... |
|
Looks like a pretty good issue report, to be honest.. And good for you that you found out how to properly use the format settings. I think the initial cause is this:
No ffmpeg found here. Youtube-dl automatically selects the best quality options, as you describe, but in this case, as is now the standard on YT, 1080p (and higher) formats only exist as separate streams. Therefore you need ffmpeg. You can get ffmpeg binaries for Windows from here: https://ffmpeg.zeranoe.com/builds/ Technically, not an official source, but the best I know (and the only I know) |
|
I will submit to the program grabbing the best quality single stream (720p) without having to stitch with ffmpeg, but when asking for "best video" as an argument it really should be grabbing the 1080p webm if available, even if it cannot automatically mux, perhaps I want the separate streams? |
|
And with regard to this MP4 vs WEBM issue you mention here as well.. A discussion had a couple of times before, so this is not new. In short, what youtube-dl picks as format options by default is this: Prioritize resolution, and for the same resolutions, pick the higher bitrate. That is why MP4 (or AVC/H.264 to be exact) is still preferred. There are other valid reasons for this, compatibility being the most important one. Also, there was no quality difference, and based on personal tests I'd preferred the MP4 versions in the past. But you are right about one specific thing, that is YT is in the process of transitioning their formats towards the WEBM container and VP9.x codecs or even AV1. This has been going on for quite some time, too. So you are right here, for newer videos this is definitely true. But not necessarily for older videos, so that is unfortunately something that cannot be generalized that easily. At least not yet. And in the meanwhile, you can rely on setting your desired |
|
Well, you get the separate streams if you use the appropriate format options (and maybe by adding But youtube-dl does not do something like this by default, to make it more friendlier towards the average end-user ;) |
|
PS: Here's my format listing output for the video linked in your original post:
|
Agreed, in the past all I used was MP4, but now things have changed and are changing more to webm. |
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestvideo', 'https://www.youtube.com/watch?v=OFB3mjPRnBY', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.03.09
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] OFB3mjPRnBY: Downloading webpage
[youtube] OFB3mjPRnBY: Downloading video info webpage
[debug] Invoking downloader on 'https://r5---sn-a5msen7z.googlevideo.com/videoplayback?txp=5533332&key=yt6&mime=video%2Fmp4&c=WEB&itag=137&pl=20&ip=74.62.182.254&mm=31%2C26&mn=sn-a5msen7z%2Csn-q4fl6nlr&gir=yes&id=o-AGEU34tGPnE-zsJB5OgTgR31fXiuca-k4QGyMbnGkoMf&signature=2EF4FECF6384C5579247F62DB0754408E9DBCECE.D39C00D49B70F143E509A396808AB3930FBCA457&ms=au%2Conr&mt=1552097206&mv=m&ipbits=0&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&lmt=1537294289838013&expire=1552118903&requiressl=yes&keepalive=yes&ei=FyCDXM21Hpe9kwaKh7awCg&source=youtube&initcwndbps=1687500&dur=98.223&clen=17783900&fvip=5&ratebypass=yes'
[download] Capcom Beat 'Em Up Bundle - Launch Trailer-OFB3mjPRnBY.mp4 has already been downloaded
[download] 100% of 13.33MiB
Description of your issue, suggested solution and other information
After further testing, running the program with default options to obtain best quality or only best quality video fails to retrieve 1080p. Try to grab this video as default or best video or as 1080p, only 720p will be available, despite trying many possible options. Trying -f bestvideo+bestaudio https://www.youtube.com/watch?v=OFB3mjPRnBY will grab a 1080p version but it will not be seen by other arguments or the default best quality setting.
Update: secondary issue to report: the program by default believes MP4 to be superior to WEBM. This is not the case. WEBM is highly preferable over MP4 despite the smaller file size. Test for yourself. Artifacts and blocks are not present, many more details are present in WEBM that are extremely muddy with MP4 having many more MPEG blocks and artifacts.
Would highly recommend this program default to WEBM pulls for all best quality best video pulls and by default. This is an issue with all rippers now. YouTube is actually playing and serving the WEBM versions by default now, I have just tested it and this video can be tested and will pull using the --all-formats option and if you play the WEBM 1080p from your local VLC and compare it to the 1080p selection on YT through a browser, they will be identical. I have finally obtained what I needed (the 1080p version on YT) after discovering it is the 1080p WEBM version using the --all-formats option. However, it was not easy to figure out as the program by default only grabs a 720p MP4 thinking it's the best quality and it should be grabbing the 1080p WEBM as the highest quality source. (Biggest file size does not necessarily equal best quality). I list this as a bug and not a feature request because best quality / best video should be 1080p (or highest available resolution) WEBM.
Verbose here:
--> Actual Highest / Best Quality 1080p video source: https://r2---sn-a5mekn7d.googlevideo.com/videoplayback?key=yt6&lmt=1537294334985138&dur=98.222&initcwndbps=1646250&ipbits=0&c=WEB&keepalive=yes&id=o-AKapkKkDC0SAvCmTY5JC1ZC9VbvOhbSWDD02EL287LJN&ip=74.62.182.254&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&mv=m&txp=5533332&fvip=5&pl=20&itag=248&mt=1552097910&ms=au%2Conr&clen=16627303&ei=2yKDXKnhC8akkwbnxoWoDg&expire=1552119611&mm=31%2C26&gir=yes&mime=video%2Fwebm&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&mn=sn-a5mekn7d%2Csn-q4fl6nlr&requiressl=yes&signature=BA0312FA95AD5D4D7EC40812A875A0FE9024FCA1.35F8D48A3C4F1B858CC3AF9C37CA7A69764C2468&source=youtube&ratebypass=yes