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

Download Yahoo Screen - Community episodes #5223

Closed
nickv2002 opened this issue Mar 17, 2015 · 9 comments
Closed

Download Yahoo Screen - Community episodes #5223

nickv2002 opened this issue Mar 17, 2015 · 9 comments

Comments

@nickv2002
Copy link

@nickv2002 nickv2002 commented Mar 17, 2015

I'd love to be able to download episodes of Yahoo's new season of Community.

The first episode's page is here.

Here's the verbose logs I get trying to download it currently:

youtube-dl -v https://screen.yahoo.com/community/ladders-070001899.html
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://screen.yahoo.com/community/ladders-070001899.html']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.03.15
[debug] Python version 2.7.6 - Linux-3.13.0-46-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.16-6, avprobe 9.16-6
[debug] Proxy map: {}
[Yahoo] ladders: Downloading webpage
[Yahoo] ladders: Downloading video info
[debug] Invoking downloader on u'https://ci-24f0be5fe9-4c5b2a03.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_apple_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=0167ec36-6085-4670-9e34-e6d17f9b8876&x=1427181849&s=14bb67f4b96c7600bf9e48f81dc9233b'
[download] Destination: Episode 1 - Ladders-a0dba3fa-a5dd-3822-b9f0-bbed816d8d16.m3u8
WARNING: Your copy of avconv is outdated, update avconv to version 10-0 or newer if you encounter any errors.
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[tls @ 0x188dca0] A TLS packet with unexpected length was received.
[hls,applehttp @ 0x188adc0] max_analyze_duration reached
Input #0, hls,applehttp, from 'https://ci-24f0be5fe9-4c5b2a03.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_apple_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=0167ec36-6085-4670-9e34-e6d17f9b8876&x=1427181849&s=14bb67f4b96c7600bf9e48f81dc9233b':
  Duration: 00:26:47.00, start: 10.000000, bitrate: N/A
    Stream #0.0: Data: apad / 0x64617061
    Stream #0.1: Data: [219][0][0][0] / 0x00DB
Output #0, mp4, to 'Episode 1 - Ladders-a0dba3fa-a5dd-3822-b9f0-bbed816d8d16.m3u8.part':
Output file #0 does not contain any stream


ERROR: avconv exited with code 1
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 408, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 398, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1452, in download
    res = self.extract_info(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 665, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 711, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1153, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1385, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1360, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 341, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 50, in real_download
    self.report_error('%s exited with code %d' % (ffpp.basename, retval))
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 154, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 532, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 494, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

Thanks!

SixSeasonsAndAMovie

@nickv2002 nickv2002 changed the title Feature Request: Download Yahoo Screen - Community episodes Download Yahoo Screen - Community episodes Mar 17, 2015
@nickv2002
Copy link
Author

@nickv2002 nickv2002 commented Mar 17, 2015

From my Mac without the outdated version of avconv here's the very similar error message:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://screen.yahoo.com/community/ladders-070001899.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.03.15
[debug] Python version 2.7.9 - Darwin-14.3.0-x86_64-i386-64bit
[debug] exe versions: avconv 11.3, avprobe 11.3, ffmpeg 2.6, ffprobe 2.6
[debug] Proxy map: {}
[Yahoo] ladders: Downloading webpage
[Yahoo] ladders: Downloading video info
[debug] Invoking downloader on u'https://ci-24f0be5fe9-4c5b2a03.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_apple_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=3a1fb89d-146c-4949-873d-488945b9711b&x=1427182363&s=5a04f36334f84f6b41ff23a6115145bd'
[download] Destination: Episode 1 - Ladders-a0dba3fa-a5dd-3822-b9f0-bbed816d8d16.m3u8
avconv version 11.3, Copyright (c) 2000-2014 the Libav developers
  built on Mar 12 2015 08:29:20 with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
https://ci-24f0be5fe9-4c5b2a03.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_apple_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=3a1fb89d-146c-4949-873d-488945b9711b&x=1427182363&s=5a04f36334f84f6b41ff23a6115145bd: Protocol not found


ERROR: avconv exited with code 1
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 408, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 398, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1452, in download
    res = self.extract_info(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 665, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 711, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1153, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1385, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1360, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 341, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 50, in real_download
    self.report_error('%s exited with code %d' % (ffpp.basename, retval))
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 154, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 532, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 494, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())
@matiassingers
Copy link

@matiassingers matiassingers commented Mar 17, 2015

I get a different error, stripped out a bunch of repeated lines that weren't really that relevant.

$ youtube-dl https://screen.yahoo.com/community/ladders-070001899.html -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://screen.yahoo.com/community/ladders-070001899.html', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.01.15.1
[debug] Python version 2.7.8 - Darwin-14.1.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.5.2, ffprobe 2.5.2
[debug] Proxy map: {}
[Yahoo] ladders: Downloading webpage
[Yahoo] ladders: Downloading video info
[debug] Invoking downloader on u'https://ci-24f0be5fe9-0ec0d786.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_apple_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=5fa4f03e-6843-43ff-ad99-a652c43f361e&x=1427190804&s=f21845ace718171a54af29ee1337a18e'
[download] Destination: Episode 1 - Ladders-a0dba3fa-a5dd-3822-b9f0-bbed816d8d16.m3u8
ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
  built on Mar 17 2015 17:50:09 with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfaac --enable-openssl --enable-nonfree --enable-vda
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[h264 @ 0x7fc6fb803e00] top block unavailable for requested intra4x4 mode -1 at 1 0
[h264 @ 0x7fc6fb803e00] error while decoding MB 1 0, bytestream 496433
[h264 @ 0x7fc6fb803e00] concealing 8160 DC, 8160 AC, 8160 MV errors in I frame
[aac @ 0x7fc6fb803800] channel element 2.15 is not allocated
[aac @ 0x7fc6fb803800] SSR is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7fc6fb803800] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7fc6fb803800] TNS filter order 14 is greater than maximum 12.
[aac @ 0x7fc6fb803800] Number of bands (64) exceeds limit (44).
[aac @ 0x7fc6fb803800] Pulse data corrupt or invalid.
[aac @ 0x7fc6fb803800] invalid band type
[aac @ 0x7fc6fb803800] error in spectral data, ESC overflow
[aac @ 0x7fc6fb803800] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (-165 -> -100) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7fc6fb803800] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[mpegts @ 0x7fc6fc001000] decoding for stream 0 failed
[mpegts @ 0x7fc6fc001000] Could not find codec parameters for stream 0 (Audio: aac (LC) (apad / 0x64617061), stereo, fltp, 198 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[h264 @ 0x7fc6fc0d7400] top block unavailable for requested intra4x4 mode -1 at 1 0
[h264 @ 0x7fc6fc0d7400] error while decoding MB 1 0, bytestream 496433
[h264 @ 0x7fc6fc0d7400] concealing 8160 DC, 8160 AC, 8160 MV errors in I frame
[aac @ 0x7fc6fc012c00] channel element 2.15 is not allocated
[hls,applehttp @ 0x7fc6fb801000] decoding for stream 0 failed
[hls,applehttp @ 0x7fc6fb801000] Could not find codec parameters for stream 0 (Audio: aac (LC) (apad / 0x64617061), stereo, fltp, 198 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, hls,applehttp, from 'https://ci-24f0be5fe9-0ec0d786.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_apple_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=5fa4f03e-6843-43ff-ad99-a652c43f361e&x=1427190804&s=f21845ace718171a54af29ee1337a18e':
  Duration: 00:27:26.07, start: 10.000000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) (apad / 0x64617061), stereo, fltp, 198 kb/s
    Stream #0:1: Video: h264 (High) ([219][0][0][0] / 0x00DB), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
[mp4 @ 0x7fc6fb89d200] sample rate not set
Output #0, mp4, to 'Episode 1 - Ladders-a0dba3fa-a5dd-3822-b9f0-bbed816d8d16.m3u8.part':
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac, stereo, 198 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
ERROR: ffmpeg exited with code 1
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 365, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 355, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1205, in download
    res = self.extract_info(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 611, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 657, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 960, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1155, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1131, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 308, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 51, in real_download
    self.report_error('%s exited with code %d' % (program, retval))
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 149, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 491, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 453, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

#SixSeasonsAndAMovie

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 17, 2015

Unfortunately it's georestricted, but using the urls from the output I get with ffmpeg 2.6:

[hls,applehttp @ 0x7fab1b800800] SAMPLE-AES encryption is not supported yet
[hls,applehttp @ 0x7fab1b800800] Failed to open segment of playlist 0
[hls,applehttp @ 0x7fab1b800800] Error when loading first segment 'https://ci-24f0be5fe9-4c5b2a03.http.atlas.cdn.yimg.com/community....

This should be fixed in ffmpeg/avconv.

Could you post the output of youtube-dl -v https://screen.yahoo.com/community/ladders-070001899.html -F?, maybe other formats can be downloaded.

@matiassingers
Copy link

@matiassingers matiassingers commented Mar 17, 2015

@jaimeMF I installed the latest version from Homebrew(with OpenSSL enabled), and still got that same error.

Here is the full output:

$ youtube-dl -v https://screen.yahoo.com/community/ladders-070001899.html -F
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://screen.yahoo.com/community/ladders-070001899.html', '-F']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.01.15.1
[debug] Python version 2.7.8 - Darwin-14.1.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.5.2, ffprobe 2.5.2
[debug] Proxy map: {}
[Yahoo] ladders: Downloading webpage
[Yahoo] ladders: Downloading video info
[info] Available formats for a0dba3fa-a5dd-3822-b9f0-bbed816d8d16:
format code extension resolution  note
0           f4m       0x0         (unsupported)    0k  (worst)
1           m3u8      640x360      564k
2           m3u8      640x360      564k
3           m3u8      640x360      846k
4           m3u8      640x360      846k
5           m3u8      640x360     1096k
6           m3u8      640x360     1096k
7           m3u8      960x540     1629k
8           m3u8      960x540     1629k
9           m3u8      1280x720    3129k
10          m3u8      1280x720    3129k
11          m3u8      1920x1080   4192k
12          m3u8      1920x1080   4192k
13          m3u8      1920x1080   8192k
14          m3u8      1920x1080   8192k  (best)

All seem to be the same format, and presumably the same problem?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 17, 2015

Probably, but you can try them with -f 13 and so.
(Note that the last ffmpeg version is 2.6, not 2.5.2)

@matiassingers
Copy link

@matiassingers matiassingers commented Mar 17, 2015

@jaimeMF my bad, had some old Homebrew formulas.

$ youtube-dl -v https://screen.yahoo.com/community/ladders-070001899.html
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://screen.yahoo.com/community/ladders-070001899.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.03.15
[debug] Python version 2.7.8 - Darwin-14.1.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.6, ffprobe 2.6
[debug] Proxy map: {}
[Yahoo] ladders: Downloading webpage
[Yahoo] ladders: Downloading video info
[debug] Invoking downloader on u'https://ci-24f0be5fe9-71d20699.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_apple_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=721d2357-add8-410f-a2a6-7efeaebb3716&x=1427207372&s=cdf67d26a63d9008172f8574f6232451'
[download] Destination: Episode 1 - Ladders-a0dba3fa-a5dd-3822-b9f0-bbed816d8d16.m3u8
ffmpeg version 2.6 Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6_1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfaac --enable-openssl --enable-nonfree --enable-vda
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[hls,applehttp @ 0x7f9324800a00] SAMPLE-AES encryption is not supported yet
[hls,applehttp @ 0x7f9324800a00] Failed to open segment of playlist 0
[hls,applehttp @ 0x7f9324800a00] Error when loading first segment 'https://ci-24f0be5fe9-71d20699.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_0_apple_enc.ts'
https://ci-24f0be5fe9-71d20699.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_apple_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=721d2357-add8-410f-a2a6-7efeaebb3716&x=1427207372&s=cdf67d26a63d9008172f8574f6232451: Not yet implemented in FFmpeg, patches welcome


ERROR: ffmpeg exited with code 1
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 408, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 398, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1452, in download
    res = self.extract_info(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 665, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 711, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1153, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1385, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1360, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 341, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 50, in real_download
    self.report_error('%s exited with code %d' % (ffpp.basename, retval))
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 154, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 532, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 494, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())
$ youtube-dl -v https://screen.yahoo.com/community/ladders-070001899.html -f 13
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://screen.yahoo.com/community/ladders-070001899.html', '-f', '13']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.03.15
[debug] Python version 2.7.8 - Darwin-14.1.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.6, ffprobe 2.6
[debug] Proxy map: {}
[Yahoo] ladders: Downloading webpage
[Yahoo] ladders: Downloading video info
[debug] Invoking downloader on u'https://ci-24f0be5fe9-71d20699.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_adobe_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=2339aa77-1743-4e35-9ffe-40db16d6addd&x=1427207307&s=efe753c3a904a262f0761b3c9b4e8d9c'
[download] Destination: Episode 1 - Ladders-a0dba3fa-a5dd-3822-b9f0-bbed816d8d16.m3u8
ffmpeg version 2.6 Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6_1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfaac --enable-openssl --enable-nonfree --enable-vda
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Unable to open key file faxs://faxs.adobe.com
[hls,applehttp @ 0x7f831181de00] Error when loading first segment 'https://ci-24f0be5fe9-71d20699.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_0_adobe_enc.ts'
https://ci-24f0be5fe9-71d20699.http.atlas.cdn.yimg.com/community/lotus/1f85581e-f1b4-4491-b0fe-cec86a022855_Je2ciDx1BMIx7z00YgRgvOm3Nuqlh4bCgK9KgT9F-IxAGtQnA1lzfld58vdSKSN_e9Csfrht_us-_11_0_adobe_enc.m3u8?a=community&b=81920&ib=sapi&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=2339aa77-1743-4e35-9ffe-40db16d6addd&x=1427207307&s=efe753c3a904a262f0761b3c9b4e8d9c: Invalid data found when processing input


ERROR: ffmpeg exited with code 1
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 408, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 398, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1452, in download
    res = self.extract_info(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 665, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 711, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1153, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1385, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1360, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 341, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 50, in real_download
    self.report_error('%s exited with code %d' % (ffpp.basename, retval))
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 154, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 532, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 494, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

I'm assuming this is more of an error in ffmpeg and not so much youtube-dl.

@pishposhmcgee
Copy link
Contributor

@pishposhmcgee pishposhmcgee commented Mar 18, 2015

Yes, this appears to be a fairly new form of hls encryption. I believe SAMPLE-AES is related to Apple's FairPlay, though that probably doesn't make much of a difference. In any case, someone at ffmpeg appears to be at least taking a look at decryption:
https://www.mail-archive.com/ffmpeg-devel@ffmpeg.org/msg10061.html

@selsta
Copy link

@selsta selsta commented Mar 31, 2015

Yahoo used SAMPLE-AES in combination with FairPlay DRM.

What I’m trying to decrypt (and later try to add to ffmpeg) is just SAMPLE-AES without FairPlay.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 20, 2016

Works fine with latest version (2016.05.16).

@dstftw dstftw closed this May 20, 2016
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
6 participants
You can’t perform that action at this time.