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 serves different itags (was: youtube-dl 2013.10.07 does not always pick highest resolution) #1578
Comments
|
I think that the problem is that sometimes we don't receive all the available itags. For example in https://travis-ci.org/rg3/youtube-dl/jobs/12288711#L376 we don't get the best format (flv format and itag 34), and we have to fallback to the next format (mp4 format and itag 18). If this is a problem on Youtube's side, it will be probably impossible to solve. |
|
I've been having problems with it getting some of the tags too, I use a script that downloads tags 22 and 37, it does 22 okay and then won't get 37 at first, just have to keep retrying until it picks it up. I've also noticed that on some videos Youtube player doesn't show all of the formats, when I click the quality selection on the Youtube player it might show only 240p, but then I can still download it at 360p with tags 34 or 43. Quite possibly on youtube's side. Maybe an option to retry a specified number of times before failing? |
|
Just so you know, when I want highest quality, I download best DASH for both audio and video and recombine with FFMPEG. It's a cumbersome 3-step process, but it does work. |
|
But does this random issue mean that the script mentioned on #1643 is not reliable? |
|
@up4 Yes, looks like. The random problem on this thread was probably on youtube's end as per comments above but it's been a while that I encountered one. I know my showcase cmd-script in #1643 is far from reliable for other reasons too. It was only to showcase that request/suggestion. Also these days, as you may also notice, most cases highest resolution is on dash format but time-to-time I do see videos that have highest resolution on a non-dash old school format. I myself evolved to a script that adds selecting highest-resolution (dash or non-dash, with a preference toward dash when equal) and error-handling loops to cover when inbuilt retry param somehow wasn't adequate in rare freak situation that I had encountered which is much needed for downloading a long list of videos more reliably. |
|
So, do you think it's a safe bet to assume that Youtube is going to gradually stabilize a DASH implementation for all higher-res? I have heard they are pushing very hard for 4K/H.265/DASH. That would mean the FFMPEG-remuxing technique should get implemented from within youtube-dl so as to output a single file with both audio and video streams. That is of course, if you see (as I do) the tendency towards the stabilization of the DASH delivery for Youtube & co. What do you think? |
|
@jaimeMF I hereby pledge that if I am sufficiently annoyed by the extra work required for remuxing that I would write a patch, I will contribute it here. |
The best available is 1080p, but video only?? |
|
@fbm-static Yes, for some time Youtube only provides the best quality formats splitted in two files. youtube-dl can download and merged them into a single file, you just need to run |
|
Interesting, I didn't know about the bestvideo/bestaudio format. Here's a way you could resolve this bug, when no format is specified: If ffmpeg is not installed If ffmpeg is installed |
|
I agree completely. It took me tens of minutes to figure out why youtube-dl is not downloading the best quality. Q: Is any quality lost with ffmpeg A+V merging? That shouldn't be the case, but asking nevertheless. |
|
@strelec: No re-encoding is performed. ffmpeg simply merges the raw audio and video streams into the final file. |
|
I think you guys can close this one now. youtube-dl is picking the best resolution by default and muxing to mkv. Any objections? |
|
I'm fine with the infinitely long format string ;-) Ok, seriously, you can close it. Thanks. |
Was downloading videos from youtube user DiapasonRecords and saw that it wasn't downloading the max resolution for few videos randomly.