chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 582 forks source link

Dailymotion: fails to open some VODs #1294

Open tp0 opened 8 years ago

tp0 commented 8 years ago

livestreamer http://www.dailymotion.com/video/x44xq1n best [cli][info] Found matching plugin dailymotion for URL http://www.dailymotion.com/video/x44xq1n [cli][info] Available streams: 184p (worst), 288p, 480p, 720p, 1080p (best) [cli][info] Starting player: mpv --no-input-default-bindings --osc=no --loop=inf --cache 8192 [cli][info] Got HTTP request from mpv git-a19307d [cli][info] Opening stream: 1080p (hls) [stream.hls][error] Failed to open segment 0: Unable to open URL: http://proxy-019.dc3.dailymotion.com/sec(392a26d683a443c25fe5bebdf4178db6)/frag(1)/video/175/651/250156571_mp4_h264_aac_fhd_1.ts (HTTPConnectionPool(host='proxy-019.dc3.dailymotion.com', port=80): Read timed out.) [stream.hls][error] Failed to open segment 0: Unable to open URL: http://proxy-019.dc3.dailymotion.com/sec(392a26d683a443c25fe5bebdf4178db6)/frag(1)/video/175/651/250156571_mp4_h264_aac_fhd_1.ts (HTTPConnectionPool(host='proxy-019.dc3.dailymotion.com', port=80): Read timed out.) [stream.hls][error] Failed to open segment 0: Unable to open URL: http://proxy-019.dc3.dailymotion.com/sec(392a26d683a443c25fe5bebdf4178db6)/frag(1)/video/175/651/250156571_mp4_h264_aac_fhd_1.ts (HTTPConnectionPool(host='proxy-019.dc3.dailymotion.com', port=80): Read timed out.) ...

livestreamer 1.12.2

That video (http://www.dailymotion.com/video/x44xq1n) may not be an actual separate upload, but a video that was first a live stream and was then automatically saved and added to the channel. Maybe this is what makes it different.

Other random videos I tried work, including some from that same channel (but not this one, which seems to be a similar VOD).

tp0 commented 8 years ago

Downloading works with youtube-dl but the resulting file is unplayable. DRM/scrambling?

intact commented 8 years ago

You can watch 480p (or lower resolution)

tp0 commented 8 years ago

That works... and also with youtube-dl.

It lists these formats:

format code  extension  resolution note
hls-meta     mp4        multiple   Quality selection URL 
hls-246-0    mp4        320x184     246k , mp4a.40.5, avc1.42000d
hls-246-1    mp4        320x184     246k , mp4a.40.5, avc1.42000d
hls-460-0    mp4        512x288     460k , mp4a.40.5, avc1.420016
hls-460-1    mp4        512x288     460k , mp4a.40.5, avc1.420016
hls-836-0    mp4        848x480     836k , mp4a.40.2, avc1.64001f
hls-836-1    mp4        848x480     836k , mp4a.40.2, avc1.64001f
hls-2149-0   mp4        1280x720   2149k , mp4a.40.2, avc1.64001f
hls-2149-1   mp4        1280x720   2149k , mp4a.40.2, avc1.64001f
hls-6221-0   mp4        1920x1080  6221k , mp4a.40.2, avc1.640028
hls-6221-1   mp4        1920x1080  6221k , mp4a.40.2, avc1.640028
http-240     mp4        320x240    
http-380     mp4        512x384    
http-480     mp4        848x480    
http-720     mp4        1280x720   
http-1080    mp4        1920x1080  (best)

But what makes the >480p files different?

intact commented 8 years ago

DRM