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

--hls-prefer-native fails with hlsnative has detected features it does not support #24234

Closed
VeXocide opened this issue Mar 4, 2020 · 1 comment
Closed

Comments

@VeXocide
Copy link

@VeXocide VeXocide commented Mar 4, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.03.01
  • 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 bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

python3 /usr/local/bin/youtube-dl --hls-prefer-native --proxy 'socks5://127.0.0.1:8123' 'https://www.rtl.nl/video/90595be2-bf4a-3eec-8329-d067cd2d5350/' -v                                                                                  1 jeroen 22:47
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--hls-prefer-native', '--proxy', 'socks5://127.0.0.1:8123', 'https://www.rtl.nl/video/90595be2-bf4a-3eec-8329-d067cd2d5350/', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.01
[debug] Python version 3.7.6 (CPython) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {'http': 'socks5://127.0.0.1:8123', 'https': 'socks5://127.0.0.1:8123'}
[rtl.nl] 90595be2-bf4a-3eec-8329-d067cd2d5350: Downloading JSON metadata
[rtl.nl] 90595be2-bf4a-3eec-8329-d067cd2d5350: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/40/400908/429889/90595be2-bf4a-3eec-8329-d067cd2d5350.ssm/90595be2-bf4a-3eec-8329-d067cd2d5350.ism/90595be2-bf4a-3eec-8329-d067cd2d5350-audio=125433-video=4146000.m3u8'
[hlsnative] Downloading m3u8 manifest
WARNING: hlsnative has detected features it does not support, extraction will be delegated to ffmpeg
[download] Destination: Kopen Zonder Kijken-90595be2-bf4a-3eec-8329-d067cd2d5350.mp4
WARNING: ffmpeg does not support SOCKS proxies. Downloading is likely to fail. Consider adding --hls-prefer-native to your command.
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3532.6 Safari/537.36
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-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
Cookie: SSLB=1; SSID=CACR8x0cAAAAAAAzT19ezyhBADNPX14BAAAAAABf3YZeM09fXgAOzwIAAANWAAAAM09fXgEAiAAAAdMHAAAzT19eAQA; SSSC=1.G6800241042818934991.1|2.86:136.2003; SSRT=M09fXgAAAA; SSPV=jVQAAAAAAAIAAQAAAAAAAAAAAAEAAAAAAAAAAAAA
' -i http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/40/400908/429889/90595be2-bf4a-3eec-8329-d067cd2d5350.ssm/90595be2-bf4a-3eec-8329-d067cd2d5350.ism/90595be2-bf4a-3eec-8329-d067cd2d5350-audio=125433-video=4146000.m3u8 -c copy -f mp4 'file:Kopen Zonder Kijken-90595be2-bf4a-3eec-8329-d067cd2d5350.mp4.part'
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[tcp @ 0x7f9e21c00940] Starting connection attempt to 217.118.160.232 port 80
[tcp @ 0x7f9e21c00940] Successfully connected to 217.118.160.232 port 80
[hls @ 0x7f9e22001400] Skip ('#EXT-X-VERSION:1')
[hls @ 0x7f9e22001400] Skip ('## Created with Unified Streaming Platform(version=1.6.6)')
[hls @ 0x7f9e22001400] Skip ('#EXT-X-ALLOW-CACHE:NO')
[hls @ 0x7f9e22001400] HLS request for url 'http://rtl-hls-aes.akamaized.net/10/v166/aes/adaptive/components/videorecorder/40/400908/429889/90595be2-bf4a-3eec-8329-d067cd2d5350.ssm/90595be2-bf4a-3eec-8329-d067cd2d5350.ism/90595be2-bf4a-3eec-8329-d067cd2d5350-audio=125433-video=4146000-1.ts', offset 0, playlist 0
[hls @ 0x7f9e22001400] Opening 'https://licenseservice.rtl.nl/aes/GetKey/90595be2-bf4a-3eec-8329-d067cd2d5350' for reading
[tcp @ 0x7f9e21c13700] Starting connection attempt to 23.102.21.212 port 443
[tcp @ 0x7f9e21c13700] Successfully connected to 23.102.21.212 port 443
[AVIOContext @ 0x7f9e21c1e0c0] Statistics: 600 bytes read, 0 seeks
[hls @ 0x7f9e22001400] Opening 'crypto+http://rtl-hls-aes.akamaized.net/10/v166/aes/adaptive/components/videorecorder/40/400908/429889/90595be2-bf4a-3eec-8329-d067cd2d5350.ssm/90595be2-bf4a-3eec-8329-d067cd2d5350.ism/90595be2-bf4a-3eec-8329-d067cd2d5350-audio=125433-video=4146000-1.ts' for reading
[tcp @ 0x7f9e21c130c0] Starting connection attempt to 23.218.80.179 port 80
[tcp @ 0x7f9e21c130c0] Successfully connected to 23.218.80.179 port 80
[hls @ 0x7f9e22001400] Error when loading first segment 'http://rtl-hls-aes.akamaized.net/10/v166/aes/adaptive/components/videorecorder/40/400908/429889/90595be2-bf4a-3eec-8329-d067cd2d5350.ssm/90595be2-bf4a-3eec-8329-d067cd2d5350.ism/90595be2-bf4a-3eec-8329-d067cd2d5350-audio=125433-video=4146000-1.ts'
[AVIOContext @ 0x7f9e21c1d700] Statistics: 1051408 bytes read, 0 seeks
[AVIOContext @ 0x7f9e21e00140] Statistics: 60157 bytes read, 0 seeks
http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/40/400908/429889/90595be2-bf4a-3eec-8329-d067cd2d5350.ssm/90595be2-bf4a-3eec-8329-d067cd2d5350.ism/90595be2-bf4a-3eec-8329-d067cd2d5350-audio=125433-video=4146000.m3u8: Invalid data found when processing input

Description

--hls-prefer-native fails with hlsnative has detected features it does not support, possibly due to EXT-X-KEY:METHOD=AES-128 though I have the crypto module installed (Requirement already satisfied: crypto in /Users/jeroen/Library/Python/3.7/lib/python/site-packages (1.4.1)). I've attached the .m3u8 to save y'all a step.

90595be2-bf4a-3eec-8329-d067cd2d5350-audio=125433-video=4146000.m3u8.txt

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 4, 2020

pycrypto is not installed correctly.

> py -3.7 .\youtube_dl\__main__.py https://www.rtl.nl/video/90595be2-bf4a-3eec-8329-d067cd2d5350/  --hls-prefer-native
[rtl.nl] 90595be2-bf4a-3eec-8329-d067cd2d5350: Downloading JSON metadata
[rtl.nl] 90595be2-bf4a-3eec-8329-d067cd2d5350: Downloading m3u8 information
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 223
[download] Destination: Kopen Zonder Kijken-90595be2-bf4a-3eec-8329-d067cd2d5350.mp4
[download]   0.4% of ~1.16GiB at Unknown speed ETA Unknown ETA
ERROR: Interrupted by user
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
2 participants
You can’t perform that action at this time.