dailymotion - ERROR: unable to download video data: HTTP Error 404: Not Found #21103

Closed
opened 2026-02-21 10:13:53 -05:00 by deekerman · 5 comments
Owner

Originally created by @WoodpeckerBaby on GitHub (Jul 16, 2020).

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.06.16.1
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

$ youtube-dl https://www.dailymotion.com/video/x7u7219 --ignore-config -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.dailymotion.com/video/x7u7219', u'--ignore-config', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.06.16.1
[debug] Python version 2.7.16 (CPython) - Darwin-19.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[dailymotion] Downloading Access Token
[dailymotion] x7u7219: Downloading media JSON metadata
[dailymotion] x7u7219: Downloading metadata JSON
[dailymotion] x7u7219: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://proxy-05.ty4.dailymotion.com/sec(u0jljuz7LYYKNTAusZhSBtPjtGhMqTQk7tPxtNxUpNTv1P-AEM7xxL3c6l5k4oBH5GMNQaqbKAd0zHGe5TEf2w)/video/149/089/473980941_mp4_h264_aac_fhd.mp4'
ERROR: unable to download video data: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1926, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1865, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 366, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 341, in real_download
    establish_connection()
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 109, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2238, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

Description

https://www.dailymotion.com/video/x7u7219

It's just for this video, other videos all work fine.

Originally created by @WoodpeckerBaby on GitHub (Jul 16, 2020). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.06.16.1. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED. - Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser. - Make sure that all URLs and arguments with special characters are properly quoted or escaped as explained in http://yt-dl.org/escape. - Search the bugtracker for similar issues: http://yt-dl.org/search-issues. DO NOT post duplicates. - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm reporting a broken site support - [x] I've verified that I'm running youtube-dl version **2020.06.16.1** - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped - [x] I've searched the bugtracker for similar issues including closed ones ## Verbose log <!-- Provide the complete verbose output of youtube-dl that clearly demonstrates the problem. Add the `-v` flag to your command line you run youtube-dl with (`youtube-dl -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this: [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj'] [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251 [debug] youtube-dl version 2020.06.16.1 [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2 [debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4 [debug] Proxy map: {} <more lines> --> ``` $ youtube-dl https://www.dailymotion.com/video/x7u7219 --ignore-config -v [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'https://www.dailymotion.com/video/x7u7219', u'--ignore-config', u'-v'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2020.06.16.1 [debug] Python version 2.7.16 (CPython) - Darwin-19.5.0-x86_64-i386-64bit [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4 [debug] Proxy map: {} [dailymotion] Downloading Access Token [dailymotion] x7u7219: Downloading media JSON metadata [dailymotion] x7u7219: Downloading metadata JSON [dailymotion] x7u7219: Downloading m3u8 information [debug] Default format spec: bestvideo+bestaudio/best [debug] Invoking downloader on u'https://proxy-05.ty4.dailymotion.com/sec(u0jljuz7LYYKNTAusZhSBtPjtGhMqTQk7tPxtNxUpNTv1P-AEM7xxL3c6l5k4oBH5GMNQaqbKAd0zHGe5TEf2w)/video/149/089/473980941_mp4_h264_aac_fhd.mp4' ERROR: unable to download video data: HTTP Error 404: Not Found Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1926, in process_info success = dl(filename, info_dict) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1865, in dl return fd.download(name, info) File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 366, in download return self.real_download(filename, info_dict) File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 341, in real_download establish_connection() File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 109, in establish_connection ctx.data = self.ydl.urlopen(request) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2238, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error return self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 404: Not Found ``` ## Description <!-- Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible. If work on your issue requires account credentials please provide them or explain how one can obtain them. --> https://www.dailymotion.com/video/x7u7219 It's just for this video, other videos all work fine.
deekerman 2026-02-21 10:13:53 -05:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@PuppyPi commented on GitHub (Oct 22, 2020):

I'm running version 2020.09.20 and the same exact thing happens for me for these browser-playable videos:

https://www.dailymotion.com/video/xklb33
https://www.dailymotion.com/video/xklcyv
https://www.dailymotion.com/video/xklgty
https://www.dailymotion.com/video/xklgur
https://www.dailymotion.com/video/xklgxj

(But most videos from that very channel downloaded fine!)

@PuppyPi commented on GitHub (Oct 22, 2020): I'm running version 2020.09.20 and the same exact thing happens for me for these browser-playable videos: https://www.dailymotion.com/video/xklb33 https://www.dailymotion.com/video/xklcyv https://www.dailymotion.com/video/xklgty https://www.dailymotion.com/video/xklgur https://www.dailymotion.com/video/xklgxj (But most videos from that very channel downloaded fine!)
Author
Owner

@bersbersbers commented on GitHub (Nov 22, 2020):

I can repro the issue with the links above on 2020.11.21.1. First analysis shows that videos play fine in browser, but let's look at them in detail.

  1. https://www.dailymotion.com/video/x7u7219 autoplays in 720p quality, but not when you switch to 1080p quality:

Sorry! An unexpected error has occured.

So the error is on the side of dailymotion for this video.

To fix it, download in 720p. First check the format names using -F, then download the best available one with --format:

>youtube-dl -F https://www.dailymotion.com/video/x7u7219
[dailymotion] Downloading Access Token
[dailymotion] x7u7219: Downloading media JSON metadata
[dailymotion] x7u7219: Downloading metadata JSON
[dailymotion] x7u7219: Downloading m3u8 information
[info] Available formats for x7u7219:
format code  extension  resolution note
hls-144-0    mp4        192x112     105k , avc1.42000b, mp4a.40.5
hls-144-1    mp4        192x112     105k , avc1.42000b, mp4a.40.5
http-144-0   mp4        192x112     105k , avc1.42000b, mp4a.40.5
http-144-1   mp4        192x112     105k , avc1.42000b, mp4a.40.5
hls-240-0    mp4        320x184     246k , avc1.4d000d, mp4a.40.5
hls-240-1    mp4        320x184     246k , avc1.4d000d, mp4a.40.5
http-240-0   mp4        320x184     246k , avc1.4d000d, mp4a.40.5
http-240-1   mp4        320x184     246k , avc1.4d000d, mp4a.40.5
hls-380-0    mp4        512x288     460k , avc1.4d0016, mp4a.40.5
hls-380-1    mp4        512x288     460k , avc1.4d0016, mp4a.40.5
http-380-0   mp4        512x288     460k , avc1.4d0016, mp4a.40.5
http-380-1   mp4        512x288     460k , avc1.4d0016, mp4a.40.5
hls-480-0    mp4        848x480     836k , avc1.64001f, mp4a.40.2
hls-480-1    mp4        848x480     836k , avc1.64001f, mp4a.40.2
http-480-0   mp4        848x480     836k , avc1.64001f, mp4a.40.2
http-480-1   mp4        848x480     836k , avc1.64001f, mp4a.40.2
hls-720-0    mp4        1280x720   2149k , avc1.64001f, mp4a.40.2
hls-720-1    mp4        1280x720   2149k , avc1.64001f, mp4a.40.2
http-720-0   mp4        1280x720   2149k , avc1.64001f, mp4a.40.2
http-720-1   mp4        1280x720   2149k , avc1.64001f, mp4a.40.2
hls-1080-0   mp4        1920x1080  6221k , avc1.640028, mp4a.40.2
hls-1080-1   mp4        1920x1080  6221k , avc1.640028, mp4a.40.2
http-1080-0  mp4        1920x1080  6221k , avc1.640028, mp4a.40.2
http-1080-1  mp4        1920x1080  6221k , avc1.640028, mp4a.40.2 (best)

>youtube-dl --format http-720-0 https://www.dailymotion.com/video/x7u7219
[dailymotion] Downloading Access Token
[dailymotion] x7u7219: Downloading media JSON metadata
[dailymotion] x7u7219: Downloading metadata JSON
[dailymotion] x7u7219: Downloading m3u8 information
[download] Destination: 腾飞五千年之两晋南北朝 第二十三集 变态皇帝接二连三-x7u7219.mp4
[download]   1.4% of 285.70MiB at  5.45MiB/s ETA 00:51
  1. Same thing for https://www.dailymotion.com/video/xklb33 and the other videos by @PuppyPi: autoplay in 480p, fail in 720p.

Fix:

>youtube-dl --format http-480-0 https://www.dailymotion.com/video/xklb33
[dailymotion] Downloading Access Token
[dailymotion] xklb33: Downloading media JSON metadata
[dailymotion] xklb33: Downloading metadata JSON
[dailymotion] xklb33: Downloading m3u8 information
[download] Destination: (Thermal Expansion, Calorimetry, Heat Transfer) - Thermal Expansion(Linear)-xklb33.mp4
[download]  35.0% of 5.72MiB at  4.44MiB/s ETA 00:00
@bersbersbers commented on GitHub (Nov 22, 2020): I can repro the issue with the links above on `2020.11.21.1`. First analysis shows that videos play fine in browser, but let's look at them in detail. 1. https://www.dailymotion.com/video/x7u7219 autoplays in 720p quality, but not when you switch to 1080p quality: > Sorry! An unexpected error has occured. So the error is on the side of dailymotion for this video. To fix it, download in 720p. First check the format names using `-F`, then download the best available one with `--format`: ``` >youtube-dl -F https://www.dailymotion.com/video/x7u7219 [dailymotion] Downloading Access Token [dailymotion] x7u7219: Downloading media JSON metadata [dailymotion] x7u7219: Downloading metadata JSON [dailymotion] x7u7219: Downloading m3u8 information [info] Available formats for x7u7219: format code extension resolution note hls-144-0 mp4 192x112 105k , avc1.42000b, mp4a.40.5 hls-144-1 mp4 192x112 105k , avc1.42000b, mp4a.40.5 http-144-0 mp4 192x112 105k , avc1.42000b, mp4a.40.5 http-144-1 mp4 192x112 105k , avc1.42000b, mp4a.40.5 hls-240-0 mp4 320x184 246k , avc1.4d000d, mp4a.40.5 hls-240-1 mp4 320x184 246k , avc1.4d000d, mp4a.40.5 http-240-0 mp4 320x184 246k , avc1.4d000d, mp4a.40.5 http-240-1 mp4 320x184 246k , avc1.4d000d, mp4a.40.5 hls-380-0 mp4 512x288 460k , avc1.4d0016, mp4a.40.5 hls-380-1 mp4 512x288 460k , avc1.4d0016, mp4a.40.5 http-380-0 mp4 512x288 460k , avc1.4d0016, mp4a.40.5 http-380-1 mp4 512x288 460k , avc1.4d0016, mp4a.40.5 hls-480-0 mp4 848x480 836k , avc1.64001f, mp4a.40.2 hls-480-1 mp4 848x480 836k , avc1.64001f, mp4a.40.2 http-480-0 mp4 848x480 836k , avc1.64001f, mp4a.40.2 http-480-1 mp4 848x480 836k , avc1.64001f, mp4a.40.2 hls-720-0 mp4 1280x720 2149k , avc1.64001f, mp4a.40.2 hls-720-1 mp4 1280x720 2149k , avc1.64001f, mp4a.40.2 http-720-0 mp4 1280x720 2149k , avc1.64001f, mp4a.40.2 http-720-1 mp4 1280x720 2149k , avc1.64001f, mp4a.40.2 hls-1080-0 mp4 1920x1080 6221k , avc1.640028, mp4a.40.2 hls-1080-1 mp4 1920x1080 6221k , avc1.640028, mp4a.40.2 http-1080-0 mp4 1920x1080 6221k , avc1.640028, mp4a.40.2 http-1080-1 mp4 1920x1080 6221k , avc1.640028, mp4a.40.2 (best) >youtube-dl --format http-720-0 https://www.dailymotion.com/video/x7u7219 [dailymotion] Downloading Access Token [dailymotion] x7u7219: Downloading media JSON metadata [dailymotion] x7u7219: Downloading metadata JSON [dailymotion] x7u7219: Downloading m3u8 information [download] Destination: 腾飞五千年之两晋南北朝 第二十三集 变态皇帝接二连三-x7u7219.mp4 [download] 1.4% of 285.70MiB at 5.45MiB/s ETA 00:51 ``` 2. Same thing for https://www.dailymotion.com/video/xklb33 and the other videos by @PuppyPi: autoplay in 480p, fail in 720p. Fix: ``` >youtube-dl --format http-480-0 https://www.dailymotion.com/video/xklb33 [dailymotion] Downloading Access Token [dailymotion] xklb33: Downloading media JSON metadata [dailymotion] xklb33: Downloading metadata JSON [dailymotion] xklb33: Downloading m3u8 information [download] Destination: (Thermal Expansion, Calorimetry, Heat Transfer) - Thermal Expansion(Linear)-xklb33.mp4 [download] 35.0% of 5.72MiB at 4.44MiB/s ETA 00:00 ```
Author
Owner

@bersbersbers commented on GitHub (Nov 22, 2020):

What youtube-dl could do is to switch to another format when one is unavailable. So this looks like a duplicate of #3721.

@bersbersbers commented on GitHub (Nov 22, 2020): What `youtube-dl` could do is to switch to another format when one is unavailable. So this looks like a duplicate of #3721.
Author
Owner

@bersbersbers commented on GitHub (Nov 22, 2020):

Interestingly, dailymotion seems to offer each format several times, using separate mirrors I assume.

So for some videos (e.g., x5luang), you may find that http-720-1 is not available, but http-720-0 is. (This must be the case when the browser plays 720p.)

For other videos (e.g., x5m3g74), you may find that the 404 error appears mid-video, which may again be solved by choosing a different format for the same resolution. My guess is that you can even resume downloads started at one mirror with the data from a second mirror (if bitrate etc. is the same), but do verify that.

@bersbersbers commented on GitHub (Nov 22, 2020): Interestingly, dailymotion seems to offer each format several times, using separate mirrors I assume. So for some videos (e.g., `x5luang`), you may find that `http-720-1` is not available, but `http-720-0` is. (This must be the case when the browser plays 720p.) For other videos (e.g., `x5m3g74`), you may find that the 404 error appears mid-video, which may again be solved by choosing a different format for the same resolution. My guess is that you can even resume downloads started at one mirror with the data from a second mirror (if bitrate etc. is the same), but do verify that.
Author
Owner

@PuppyPi commented on GitHub (Nov 22, 2020):

I can confirm exactly what bersbersbers said—I can download the videos now!
Two of them downloaded stochastically (xklgty and xklcyv) but the other
three never succeeded, despite several hundred (automated) attempts, but
using the --format selector for a 480 instead of any of the four 720's,
they downloaded immediately :)
Perhaps the reproducibility problem is that DailyMotion uses geoip on the
client's IP address and makes some formats completely unavailable by
cutting off all mirrors for it. But that wouldn't explain why it's
stochastic. Perhaps it's based on ping instead?

On Sun, Nov 22, 2020 at 8:48 AM bersbersbers notifications@github.com
wrote:

Interestingly, dailymotion seems to offer each format several times, using
separate mirrors I assume.

So for some videos (e.g., x5luang), you may find that http-720-1 is not
available, but http-720-0 is. (This must be the case when the browser
plays 720p.)

For other videos (e.g., x5m3g74), you may find that the 404 error appears
mid-video, which may again be solved by choosing a different format for the
same resolution. My guess is that you can even resume downloads started at
one mirror with the data from a second mirror (if bitrate etc. is the
same), but do verify that.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ytdl-org/youtube-dl/issues/26019#issuecomment-731716903,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALPCBWOS6T2LQW75CDMRWRLSRDF67ANCNFSM4O32W6AQ
.

@PuppyPi commented on GitHub (Nov 22, 2020): I can confirm exactly what bersbersbers said—I can download the videos now! Two of them downloaded stochastically (xklgty and xklcyv) but the other three never succeeded, despite several hundred (automated) attempts, but using the --format selector for a 480 instead of any of the four 720's, they downloaded immediately :) Perhaps the reproducibility problem is that DailyMotion uses geoip on the client's IP address and makes some formats completely unavailable by cutting off all mirrors for it. But that wouldn't explain why it's stochastic. Perhaps it's based on ping instead? On Sun, Nov 22, 2020 at 8:48 AM bersbersbers <notifications@github.com> wrote: > Interestingly, dailymotion seems to offer each format several times, using > separate mirrors I assume. > > So for some videos (e.g., x5luang), you may find that http-720-1 is not > available, but http-720-0 is. (This must be the case when the browser > plays 720p.) > > For other videos (e.g., x5m3g74), you may find that the 404 error appears > mid-video, which may again be solved by choosing a different format for the > same resolution. My guess is that you can even resume downloads started at > one mirror with the data from a second mirror (if bitrate etc. is the > same), but do verify that. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/ytdl-org/youtube-dl/issues/26019#issuecomment-731716903>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ALPCBWOS6T2LQW75CDMRWRLSRDF67ANCNFSM4O32W6AQ> > . >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#21103
No description provided.