Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl downloading from YouTube is very slow?! #15275

Closed
zannix opened this issue Jan 16, 2018 · 10 comments
Closed

youtube-dl downloading from YouTube is very slow?! #15275

zannix opened this issue Jan 16, 2018 · 10 comments

Comments

@zannix
Copy link

zannix commented Jan 16, 2018

This is essentially a re-opening of an existing thread: #15271

I believe the issue is real, and it is not being addressed.

In short, I urge everyone interested to run:

youtube-dl -f 140 http://www.youtube.com/watch?v=4-BtZWGaPNY

... and you will see that it takes 10 times as much as usual to download the video in any format.

Please do not close the thread and let's try to solve this.

@yan12125
Copy link
Collaborator

Sorry, I don't think it's possible to solve the issue at the client side. It's most likely a server side issue.

@ghost
Copy link

ghost commented Jan 16, 2018

Had the same issue, "fixed" by restarting and resuming the download. Seems like a bug

➜ youtube-dl -f 140 http://www.youtube.com/watch\?v\=4-BtZWGaPNY        
[youtube] 4-BtZWGaPNY: Downloading webpage
[youtube] 4-BtZWGaPNY: Downloading video info webpage
[youtube] 4-BtZWGaPNY: Extracting video information
[download] Destination: NAIMA - Let Me See You [NCS Release]-4-BtZWGaPNY.m4a
[download]  41.2% of 2.42MiB at 129.76KiB/s ETA 00:11^C
ERROR: Interrupted by user

/tmp took 13s 
➜ youtube-dl -f 140 http://www.youtube.com/watch\?v\=4-BtZWGaPNY
[youtube] 4-BtZWGaPNY: Downloading webpage
[youtube] 4-BtZWGaPNY: Downloading video info webpage
[youtube] 4-BtZWGaPNY: Extracting video information
[download] Resuming download at byte 1047552
[download] Destination: NAIMA - Let Me See You [NCS Release]-4-BtZWGaPNY.m4a
[download] 100% of 2.42MiB in 00:00
[ffmpeg] Correcting container in "NAIMA - Let Me See You [NCS Release]-4-BtZWGaPNY.m4a"

/tmp took 3s 
➜ 

EDIT: it seems like only low (<360p) quality involved

@antdude
Copy link

antdude commented Jan 16, 2018

Yes, I am having the same problem since yesterday morning PST. I wonder if Google is throttling. I notice my downloads start very fast and the slow. For an example with a Verizon FIOS pipe (also seen on Time Warner/Spectrum Cable's pipe):

$ youtube-dl https://www.youtube.com/watch?v=sC_qXF5UOtg
[youtube] sC_qXF5UOtg: Downloading webpage
[youtube] sC_qXF5UOtg: Downloading video info webpage
[youtube] sC_qXF5UOtg: Extracting video information
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: DO TEENS KNOW 2000s TEEN MOVIES (REACT - Do They Know It)-sC_qXF5UOtg.f137.mp4
[download] 83.8% of 135.64MiB at 611.51KiB/s ETA 00:36

@ghost
Copy link

ghost commented Jan 16, 2018

I agree with @antdude

➜ youtube-dl -f "(mp4)[height=720]" https://www.youtube.com/watch\?v\=sC_qXF5UOtg
[youtube] sC_qXF5UOtg: Downloading webpage
[youtube] sC_qXF5UOtg: Downloading video info webpage
[youtube] sC_qXF5UOtg: Extracting video information
[download] Destination: DO TEENS KNOW 2000s TEEN MOVIES (REACT - Do They Know It)-sC_qXF5UOtg.mp4
[download] 100% of 43.66MiB in 00:08

/tmp took 10s 
➜ youtube-dl -f "(mp4)[height=144]" https://www.youtube.com/watch\?v\=sC_qXF5UOtg
[youtube] sC_qXF5UOtg: Downloading webpage
[youtube] sC_qXF5UOtg: Downloading video info webpage
[youtube] sC_qXF5UOtg: Extracting video information
[download] Destination: DO TEENS KNOW 2000s TEEN MOVIES (REACT - Do They Know It)-sC_qXF5UOtg.mp4
[download] 100% of 3.07MiB in 00:49

/tmp took 51s 

With download restarting:

➜ youtube-dl -f "(mp4)[height=144]" https://www.youtube.com/watch\?v\=sC_qXF5UOtg            
[youtube] sC_qXF5UOtg: Downloading webpage
[youtube] sC_qXF5UOtg: Downloading video info webpage
[youtube] sC_qXF5UOtg: Extracting video information
[download] Destination: DO TEENS KNOW 2000s TEEN MOVIES (REACT - Do They Know It)-sC_qXF5UOtg.mp4
[download]  32.5% of 3.07MiB at 194.26KiB/s ETA 00:10^C
ERROR: Interrupted by user

/tmp took 8s 
➜ youtube-dl -f "(mp4)[height=144]" https://www.youtube.com/watch\?v\=sC_qXF5UOtg
[youtube] sC_qXF5UOtg: Downloading webpage
[youtube] sC_qXF5UOtg: Downloading video info webpage
[youtube] sC_qXF5UOtg: Extracting video information
[download] Resuming download at byte 1047552
[download] Destination: DO TEENS KNOW 2000s TEEN MOVIES (REACT - Do They Know It)-sC_qXF5UOtg.mp4
[download] 100% of 3.07MiB in 00:00

/tmp took 2s 

@farazpartoei
Copy link

I have interrupted and restart youtube-dl proc multiple times and speed improved maybe we can put it in a script which calls youtube-dl and waits 3 seconds and restarts it again till download finishes
that's all I know and guess

@zannix
Copy link
Author

zannix commented Jan 16, 2018

It seems to be downloading at high speed in the first few moments, after which it throttles down significantly. Because you can re-download multiple times, and youtube-dl will just resume where it left off (again with high speed initially), it can download a piece faster.

But this is a very ugly workaround, I wonder if there's anything that can be done about it inside the actual library.

@farazpartoei
Copy link

@zannix agreed it's a dirty solution

by the way are you guys are sure that this restriction comes from Google or it might be on our ISP/data center/hosting etc.
i have raised a ticket for datacenter which takes care of my server anyway

@antdude
Copy link

antdude commented Jan 16, 2018

Resuming my download is the same problem. Fast and then slow. I am pretty sure Google is throttling us downloaders. Streaming doesn't need to download fast all the way. :/ I think Google knows we're downloading. :(

@amit177
Copy link

amit177 commented Jan 17, 2018

youtube-dl -v --format bestaudio <url>
Downloads at 100 KiB/s
and
youtube-dl -v --format best <url>
Downloads at 10-20 MiB/s

that can't be client side...
that's a youtube/youtube-dl problem

@yan12125
Copy link
Collaborator

@amit177: it's common that YouTube discriminate different formats. Sometimes a format is slower than others, and sometimes a format doesn't work at all (#3721).

Restarting downloading automatically is a feasible solution. Please move on to #6923 for further discussions and #11476 for a possible solution.

@ytdl-org ytdl-org locked and limited conversation to collaborators Jan 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants