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.
Twitch VOD download is not as fast as it could be #4772
Comments
|
We actually download big flv files, unfortunately they limit the bandwidth. You can workaround this by using a downloader like aria2c, for example For future reports, please post the full output of |
|
@jaimeMF, VODs are delivered differently rather than simple videos, namely it's HLS with m3u8 containing lots of small chunks. |
|
Sorry, I thought it was about about past broadcastasts. The method I posted doesn't apply then. |
|
We should reuse the same TCP connection; that would probably give a great speedup. |
|
Verbose output youtube-dl --verbose http://www.twitch.tv/ara_gaming/v/3711528 |
|
This might be worth a separate issue additional to a general problem with slow http connections. But regarding @Diazonium's comment, there was a change in behavior on the twitch side. Some Links to videos have the format
For other twitch users the URL format is different: |
If we know we are going to get a million chunks can we call --external-downloader with a list/file of all the chunks and use --external-downloader-args to parallel from there? |
Such a feature is not implemented yet. See #6069 |
|
I don't need to parallel those files. I prefer connection reuse which can normally speed up massive web page downloading by over 2x. For video chunks I haven't tested, but I can only run at about 200-500KiB/s, while downloading one large file gives me over 5MiB/s, from YouTube. |
|
@lilydjwg: Could you open a new issue for connection reuse? That's a different problem than the original one. |
|
I know based on the above comments this isn't exactly what the OP was asking about, but I just wanted to say thank you to @jaimeMF for suggesting |
|
@rosshadden How are you using aria2c? As I understand it does not support as an external downloader for HLS videos. |
|
@Gaploid I passed |
|
@rosshadden Ive tested a lot and it does not work for me. Is it [hlsnative] in logs when you are downloading? |
|
I was talking about past broadcasts, not explicitly saved VODs. I believe the comments here went in the direction of VODs, which is what I meant when I said "this isn't exactly what the OP was asking about". Sorry for getting off topic; just wanted to say thanks. If we are actually on the same page and past broadcasts shouldn't be working or benefiting from aria2c, let me know and I'll do it again and look at logs. |
|
Yep, I`m talking about past broadcasts. Maybe the low quality is saved in one file but 720p, 1080p is stored in hls format and youtube-dl does not support external downloaders. |
|
@Gaploid Maybe that is the answer here. The video I fetched was https://go.twitch.tv/videos/183527029 which is very low quality. Twitch calls it youtube-dl --external-downloader aria2c https://go.twitch.tv/videos/183527029 |
When I download a past broadcast from Twitch it is only using about 30% of my download speed, and the speed is very spiky. I believe this is due to that recent Twitch VODs seem to be stored in tiny chunks.(around 1MB) It would be nice if youtube-dl could get faster download speeds. This may be possible by downloading a number the chunks in parallel.