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

I can't download this video from MediasetPlay #17204

Closed
2 tasks done
ppoe6 opened this issue Aug 10, 2018 · 1 comment
Closed
2 tasks done

I can't download this video from MediasetPlay #17204

ppoe6 opened this issue Aug 10, 2018 · 1 comment
Labels

Comments

@ppoe6
Copy link

ppoe6 commented Aug 10, 2018

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.08.04. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.08.04

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.mediasetplay.mediaset.it/video/casarussia/giovedi-21-giugno_F309071701000801']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2018.08.04
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: ffmpeg N-91407-g3c4af577aa, ffprobe N-91407-g3c4af577aa
[debug] Proxy map: {}
[Mediaset] F309071701000801: Downloading JSON metadata
[Mediaset] F309071701000801: Downloading MPEG4 SD SMIL data
[Mediaset] F309071701000801: Checking video URL
[Mediaset] F309071701000801: Downloading MPEG-DASH SD SMIL data
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
WARNING: Failed to download MPD manifest: HTTP Error 403: Forbidden
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
WARNING: Failed to download MPD manifest: HTTP Error 403: Forbidden
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading M3U SD SMIL data
[Mediaset] F309071701000801: Downloading m3u8 information
[Mediaset] F309071701000801: Downloading m3u8 information
[Mediaset] F309071701000801: Downloading ISM SD SMIL data
[Mediaset] F309071701000801: Downloading ISM manifest
WARNING: Failed to download ISM manifest: HTTP Error 403: Forbidden
[Mediaset] F309071701000801: Downloading ISM manifest
WARNING: Failed to download ISM manifest: HTTP Error 403: Forbidden
[Mediaset] F309071701000801: Downloading MPEG4 HD SMIL data
[Mediaset] F309071701000801: Checking video URL
[Mediaset] F309071701000801: Downloading MPEG-DASH HD SMIL data
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
WARNING: Failed to download MPD manifest: HTTP Error 403: Forbidden
[Mediaset] F309071701000801: Downloading MPD manifest
WARNING: Failed to download MPD manifest: HTTP Error 403: Forbidden
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading MPD manifest
[Mediaset] F309071701000801: Downloading M3U HD SMIL data
[Mediaset] F309071701000801: Downloading m3u8 information
[Mediaset] F309071701000801: Downloading m3u8 information
[Mediaset] F309071701000801: Downloading ISM HD SMIL data
[Mediaset] F309071701000801: Downloading ISM manifest
WARNING: Failed to download ISM manifest: HTTP Error 403: Forbidden
[Mediaset] F309071701000801: Downloading ISM manifest
WARNING: Failed to download ISM manifest: HTTP Error 403: Forbidden
[Mediaset] F309071701000801: Downloading JSON metadata
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://vod02-mediaset-it.akamaized.net/farmunica/2018/06/221362_16421de6187a2f/hlsrc_sampleaes/w12/hd_fp_mpl.m3u8'
[download] Destination: Giovedì 21 giugno-F309071701000801.fhls-5339-1.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 (Chrome)
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
" -i "https://vod02-mediaset-it.akamaized.net/farmunica/2018/06/221362_16421de6187a2f/hlsrc_sampleaes/w12/hd_fp_mpl.m3u8" -c copy -f mp4 "file:Giovedì 21 giugno-F309071701000801.fhls-5339-1.mp4.part"
ffmpeg version N-91407-g3c4af577aa Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 20.104 / 58. 20.104
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 25.100 /  7. 25.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[hls,applehttp @ 000002d2e1e0ac80] HLS request for url 'https://vod02-mediaset-it.akamaized.net/farmunica/2018/06/221362_16421de6187a2f/hlsrc_sampleaes/w12/0.ts', offset 0, playlist 0
[hls,applehttp @ 000002d2e1e0ac80] SAMPLE-AES encryption is not supported yet
[hls,applehttp @ 000002d2e1e0ac80] Failed to open segment 0 of playlist 0
[hls,applehttp @ 000002d2e1e0ac80] HLS request for url 'https://vod02-mediaset-it.akamaized.net/farmunica/2018/06/221362_16421de6187a2f/hlsrc_sampleaes/w12/1.ts', offset 0, playlist 0
[hls,applehttp @ 000002d2e1e0ac80] SAMPLE-AES encryption is not supported yet
[hls,applehttp @ 000002d2e1e0ac80] Failed to open segment 1084 of playlist 0
[hls,applehttp @ 000002d2e1e0ac80] HLS request for url 'https://vod02-mediaset-it.akamaized.net/farmunica/2018/06/221362_16421de6187a2f/hlsrc_sampleaes/w12/1085.ts', offset 0, playlist 0
[hls,applehttp @ 000002d2e1e0ac80] SAMPLE-AES encryption is not supported yet
[hls,applehttp @ 000002d2e1e0ac80] Failed to open segment 1085 of playlist 0
[hls,applehttp @ 000002d2e1e0ac80] Error when loading first segment 'https://vod02-mediaset-it.akamaized.net/farmunica/2018/06/221362_16421de6187a2f/hlsrc_sampleaes/w12/0.ts'
[AVIOContext @ 000002d2e230a500] Statistics: 22965 bytes read, 0 seeks
https://vod02-mediaset-it.akamaized.net/farmunica/2018/06/221362_16421de6187a2f/hlsrc_sampleaes/w12/hd_fp_mpl.m3u8: Invalid data found when processing input


ERROR: ffmpeg exited with code 1
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\__init__.py", line 472, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\__init__.py", line 462, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\YoutubeDL.py", line 2001, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\YoutubeDL.py", line 803, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\YoutubeDL.py", line 857, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\YoutubeDL.py", line 1635, in process_video_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\YoutubeDL.py", line 1902, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\YoutubeDL.py", line 1847, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\downloader\common.py", line 364, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\downloader\external.py", line 64, in real_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\downloader\common.py", line 165, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\YoutubeDL.py", line 620, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpckoq891b\build\youtube_dl\YoutubeDL.py", line 582, in trouble

Description of your issue, suggested solution and other information

I can't download this video (https://www.mediasetplay.mediaset.it/video/casarussia/giovedi-21-giugno_F309071701000801), and the others belonging to the same series.
I usually download successfully from MediasetPlay.

@Vangelis66
Copy link

@ppoe6

Hi 😃 ; are you attempting this from within Italy (BTW, my sympathy to the families of all those that perished in Genoa in that horrific accident... 😢) ?
I'm not located in Italy but can still watch
https://www.mediasetplay.mediaset.it/video/casarussia/giovedi-21-giugno_F309071701000801
in a browser, so geo-restriction does not appear to be an issue here...
Running
youtube-dl "https://www.mediasetplay.mediaset.it/video/casarussia/giovedi-21-giugno_F309071701000801" with latest yt-dl on Windows I can duplicate your report (so no need to repeat it here); but I decided to investigate further by running:
youtube-dl -F "https://www.mediasetplay.mediaset.it/video/casarussia/giovedi-21-giugno_F309071701000801" to be informed of detected downloadable streams; excerpt of the cmd result follows:

format code      extension  resolution note
hls-audio-ita-0  mp4        audio only [ita]
hls-audio-ita-1  mp4        audio only [ita]
hls-191-0        mp4        audio only  191k , mp4a.40.2
hls-191-1        mp4        audio only  191k , mp4a.40.2
hls-audio-ita-2  mp4        audio only [ita]
hls-audio-ita-3  mp4        audio only [ita]
hls-191-2        mp4        audio only  191k , mp4a.40.2
hls-191-3        mp4        audio only  191k , mp4a.40.2
hls-1183-0       mp4        unknown    1183k , avc1.640029, video only
hls-1183-1       mp4        unknown    1183k , avc1.640029, video only
hls-1776-0       mp4        unknown    1776k , avc1.640029, video only
hls-1776-1       mp4        unknown    1776k , avc1.640029, video only
hls-2377-0       mp4        unknown    2377k , avc1.640029, video only
hls-2377-1       mp4        unknown    2377k , avc1.640029, video only
hls-1183-2       mp4        unknown    1183k , avc1.640029, video only
hls-1183-3       mp4        unknown    1183k , avc1.640029, video only
hls-1776-2       mp4        unknown    1776k , avc1.640029, video only
hls-1776-3       mp4        unknown    1776k , avc1.640029, video only
hls-2367-0       mp4        unknown    2367k , avc1.640029, video only
hls-2367-1       mp4        unknown    2367k , avc1.640029, video only
hls-3169-0       mp4        unknown    3169k , avc1.640029, video only
hls-3169-1       mp4        unknown    3169k , avc1.640029, video only
hls-4135-0       mp4        unknown    4135k , avc1.640029, video only
hls-4135-1       mp4        unknown    4135k , avc1.640029, video only
hls-5339-0       mp4        unknown    5339k , avc1.640029, video only
hls-5339-1       mp4        unknown    5339k , avc1.640029, video only
http-1-0         mp4        unknown       0k
http-1-1         mp4        unknown       0k  (best)

To the best of my knowledge, (best) indicates the (best) stream yt-dl will try to fetch by default, without a user specified mode via the -f option; from the -F table I posted, that should be http-1-1;
however, from the log posted by OP:
[debug] Default format spec: bestvideo+bestaudio/best
yt-dl tries to dump the best HLS video-only (hls-5339-1) stream, to be followed by the best HLS audio-only stream (either hls-audio-ita-3 or hls-191-3, probably the same stream?) and then combine them (with ffmpeg) into an MP4 file.

The unfortunate thing is that mediasetplay, for all HLS streams detected by yt-dl, use Apple FairPlay DRM, with SAMPLE-AES encryption, that neither the native (Python) HLS downloader nor FFmpeg has support for, as told by the log:
[hls,applehttp @ 000002d2e1e0ac80] SAMPLE-AES encryption is not supported yet

What works for downloading this video is explicitly requesting the non-HLS available format (either http-1-0 or http-1-1):

youtube-dl -f "http-1-1" "https://www.mediasetplay.mediaset.it/video/casarussia/giovedi-21-giugno_F309071701000801" => 

[Mediaset] F309071701000801: Downloading JSON metadata
[download] Destination: Gioved? 21 giugno-F309071701000801.mp4
[download]   3.1% of 1.10GiB at 798.11KiB/s ETA 23:26

@dstftw

Sorry to trouble you, am very grateful for your work, but

  1. Why isn't the best (http-1-1) format tried by default?
  2. In my desktop browser (Pale Moon 27.9.4 32-bit) I am served MPEG-DASH streams (.mpd file, present inside Web Console); why aren't any DASH streams being displayed as downloadable for the programme by yt-dl?

Many thanks to all the dev team for such a sterling application 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants