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

downloading from dailymotion is very slow .. #3819

Closed
shahzadakram opened this issue Sep 23, 2014 · 14 comments
Closed

downloading from dailymotion is very slow .. #3819

shahzadakram opened this issue Sep 23, 2014 · 14 comments

Comments

@shahzadakram
Copy link

@shahzadakram shahzadakram commented Sep 23, 2014

I tried many videos from dailymotion and feel its very slow for downloading videos from dailymotion .. but its works for all other website very good. ... can you please check it may be some thing can make it better .

Thanks

@juancri
Copy link
Contributor

@juancri juancri commented Sep 23, 2014

Hello!

What do you mean with "slow"? What's the speed you are expecting for? What's current speed?

Can you post the output of youtube-dl?

I tried this video and it seems to be fast enough (it's a little bit subjective):

$ youtube-dl "http://www.dailymotion.com/video/x26hmm8_real-madrid-3-1-elche-goal-cristiano-ronaldo-23-09-2014_sport"
[dailymotion] x26hmm8: Downloading webpage
[dailymotion] x26hmm8: Extracting information
[dailymotion] x26hmm8: Downloading embed page
[download] Destination: Real Madrid 3-1 Elche (Goal Cristiano Ronaldo) 23-09-2014-x26hmm8.mp4
[download] 100% of 3.97MiB in 00:10

@Rush2088
Copy link

@Rush2088 Rush2088 commented Sep 24, 2014

I experinced slow dailymotion downloads too. My internet connection is 90Mbps. Youtube and vimeo clips are in mbps range. But daily motion is less than 200kbps

C:\scripts>youtube-dl http://www.dailymotion.com/video/x2453qy
[dailymotion] x2453qy: Downloading webpage
[dailymotion] x2453qy: Extracting information
[dailymotion] x2453qy: Downloading embed page
[download] Destination: MAHA 08-20-x2453qy.mp4
[download]   3.0% of 83.03MiB at 171.04KiB/s ETA 08:01
@shahzadakram
Copy link
Author

@shahzadakram shahzadakram commented Sep 24, 2014

same thing here .. if i downloaded from dailymotion then the speed will be maximum 150-200kB and for other it must be MB ,,,,

Thanks

@pavs
Copy link

@pavs pavs commented Feb 11, 2015

Having the same issue with dailymotion download speed doesn't go over 150kbps. I am on a 500mbps connection.

@mbnoimi
Copy link

@mbnoimi mbnoimi commented Jun 8, 2015

+1

This issue occurs only on DailyMotion but in addition to slow downloading I experience false download done!

I'm using

  • Linux Mint 17.1 x64
  • youtube-dl 2015.05.20

PS. When I tried to upgrade to recant version (2015.06.04.1) I get the following output:

# pip install --upgrade youtube-dl
Requirement already up-to-date: youtube-dl in /usr/local/lib/python2.7/dist-packages
# youtube-dl --version
2015.05.20

UPDATE: In some cases I get this error message:

ERROR: unable to download video data: timed out

@mathias-sm
Copy link

@mathias-sm mathias-sm commented Jun 29, 2015

A little update on this, I noticed that the first few seconds of download on Dailymotion are quite satisfactory (around 6MiB/s here) and as soon as you get around 1.5% at max speed, the download speed slows down drastically.

As youtube-dl is able to resume, I used this to "hack" the download by cancelling/starting/cancelling/starting/... and it works but it takes a while and is quite annoying. I don't know how to patch it, but starting new downloads often seems to bypass what I think is a way for them to save bandwidth: never give you more than you could watch.

Two consecutive traces (~30 seconds interval, the first one was just after the download resumed):

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-f', 'hd', 'http://www.dailymotion.com/video/xvel9v_episode-1-alone-on-the-wall_lifestyle']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.04.1
[debug] Python version 3.4.3 - Linux-4.0.5-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 2.7.1, ffprobe 2.7.1, rtmpdump 2.4
[debug] Proxy map: {'https': 'http://127.0.0.1:8118/', 'http': 'http://127.0.0.1:8118/'}
[dailymotion] xvel9v: Downloading webpage
[dailymotion] xvel9v: Extracting information
[dailymotion] xvel9v: Downloading embed page
[debug] Invoking downloader on 'https://www.dailymotion.com/cdn/H264-1280x720/video/xvel9v.mp4?auth=1435783659-2562-a66resg0-e6c24b7caf0043d2b7eb2c8fc1a9c5f8'
[download] Resuming download at byte 592649822
[download] Destination: Episode 1 - Alone On The Wall-xvel9v.mp4
[download]  61.3% of 928.88MiB at  5.50MiB/s ETA 01:05
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-f', 'hd', 'http://www.dailymotion.com/video/xvel9v_episode-1-alone-on-the-wall_lifestyle']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.04.1
[debug] Python version 3.4.3 - Linux-4.0.5-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 2.7.1, ffprobe 2.7.1, rtmpdump 2.4
[debug] Proxy map: {'https': 'http://127.0.0.1:8118/', 'http': 'http://127.0.0.1:8118/'}
[dailymotion] xvel9v: Downloading webpage
[dailymotion] xvel9v: Extracting information
[dailymotion] xvel9v: Downloading embed page
[debug] Invoking downloader on 'https://www.dailymotion.com/cdn/H264-1280x720/video/xvel9v.mp4?auth=1435783659-2562-a66resg0-e6c24b7caf0043d2b7eb2c8fc1a9c5f8'
[download] Resuming download at byte 592649822
[download] Destination: Episode 1 - Alone On The Wall-xvel9v.mp4
[download]  62.5% of 928.88MiB at 446.82KiB/s ETA 13:17

Sorry for the local proxy thing, I'm using privoxy as an ad-free tool, I don't think it changes anything on the download speed.

EDIT: Smashing the cancel/resume as I did is not a good idea, the resulting file was broken:

[... ton of mplayer errors like ...]
Error while decoding frame!
[h264 @ 0x7f8a20bc0100]AVC: nal size 6062592
[h264 @ 0x7f8a20bc0100]no frame!
@sebma
Copy link

@sebma sebma commented Jul 17, 2015

Hi, I have also the same pb. with dailymotion download speed.

What do you think that can be done to solve this issue ?

@Zopieux
Copy link
Contributor

@Zopieux Zopieux commented Nov 18, 2015

Having the same issue. I guess Dailymotion uses some kind of token bucket to throttle their upload rate. A possible workaround would be to automatize the stop-and-restart approach explained by @Artymort.

@PannenkoekenNL
Copy link

@PannenkoekenNL PannenkoekenNL commented Sep 5, 2016

I have exactly the same problem with the latest version.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 5, 2016

@PannenkoekenNL Could you give your video URL?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 5, 2016

Just tried http://www.dailymotion.com/video/x3m1qro_crayon-shin-chan-call-me-pencil-shinchan_fun. On the webpage HLS is used, while in youtube-dl the default format is HTTP. This command can be used to download the HLS format:

youtube-dl -v -f 'best[format_id^=hls]' "http://www.dailymotion.com/video/x3m1qro_crayon-shin-chan-call-me-pencil-shinchan_fun" --hls-prefer-native

Here --hls-prefer-native is necessary due to a ffmpeg bug.

Closing as download speed is beyond the scope of youtube-dl.

@yan12125 yan12125 closed this Sep 5, 2016
@sd65
Copy link

@sd65 sd65 commented Jul 10, 2018

Commenting here even if the issue is closed, I do understand that's it's not an youtube-dl bug but I want to help by providing a trick mentionned by @Artymort.

Dailymotion still trottle the download after 10 seconds, so you stop & relaunch youtube-dl... every 10 seconds. I had good results!

An easy way to it with a modern shell (zsh, bash, maybe others implementing timeout) is:

while :; do timeout 10 youtube-dl https://www.dailymotion.com/video/xxxxxxx; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
13 participants
You can’t perform that action at this time.