[ESPN] ESPN+ "Unable to open key file" and "ffmpeg exited with code 1"
See original GitHub issuePlease follow the guide below
- You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
- Put an
x
into all the boxes [ ] relevant to your issue (like this:[x]
) - Use the Preview tab to see what your issue will actually look like
Make sure you are using the latest version: run youtube-dl --version
and ensure your version is 2018.05.01. 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.05.01
Before submitting an issue make sure you have:
- At least skimmed through the README, most notably the FAQ and BUGS sections
- Searched the bugtracker for similar issues including closed ones
- Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser
What is the purpose of your issue?
- Bug report (encountered problems with youtube-dl)
- Site support request (request for adding support for a new site)
- Feature request (request for a new functionality)
- Question
- Other
Not sure if bug or more site support need?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple —) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
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 here. It should look similar to one below (replace it with your log inserted between triple ```):
Using site URL
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--ffmpeg-location', 'C:\\ffmpeg\\ffmpeg-20180502-e07b191-win32-static\\bin', 'http://www.espn.com/
watch/film/cf950763-9adb-4acf-b04e-425d8676615c/tommy', '-f', '4600', '-o', 'W:\\Work\\ESPNPlus.Test.720p.WEB-DL.x264-YouTube-DL.mkv']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.05.01
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-90920-ge07b1913fc, ffprobe N-90920-ge07b1913fc, rtmpdump 2.4
[debug] Proxy map: {}
[ESPNArticle] tommy: Downloading webpage
ERROR: Unable to extract video id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type you
tube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\YoutubeDL.py", line 789, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\extractor\common.py", line 440, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\extractor\espn.py", line 204, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\extractor\common.py", line 820, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract video id; please report this issue on https://yt-dl.org/bug . Make sure you are using
the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Using m3u8 URL
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--ffmpeg-location', 'C:\\ffmpeg\\ffmpeg-20180502-e07b191-win32-static\\bin', 'https://hlsvod-l3c-c
lt1.media.plus.espn.com/ps01/espn/hls/2018/03/14/855deb02-94a8-4b63-874e-add949b25ab5/1520999867346/master_wired60_s2.m3u8', '-f', '4600', '
-o', 'W:\\Work\\ESPNPlus.Test.720p.WEB-DL.x264-YouTube-DL.mkv']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.05.01
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-90920-ge07b1913fc, ffprobe N-90920-ge07b1913fc, rtmpdump 2.4
[debug] Proxy map: {}
[generic] master_wired60_s2: Requesting header
[generic] master_wired60_s2: Downloading m3u8 information
[debug] Invoking downloader on 'https://hlsvod-l3c-clt1.media.plus.espn.com/ps01/espn/hls/2018/03/14/855deb02-94a8-4b63-874e-add949b25ab5/15
20999867346/asset_3500k.m3u8'
[download] Destination: W:\Work\ESPNPlus.Test.720p.WEB-DL.x264-YouTube-DL.mkv
[debug] ffmpeg command line: "C:\ffmpeg\ffmpeg-20180502-e07b191-win32-static\bin\ffmpeg" -y -loglevel verbose -headers "Accept-Encoding: gzi
p, deflate
Accept-Language: en-us,en;q=0.5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 (Chrome)
" -i "https://hlsvod-l3c-clt1.media.plus.espn.com/ps01/espn/hls/2018/03/14/855deb02-94a8-4b63-874e-add949b25ab5/1520999867346/asset_3500k.m3
u8" -c copy -f mp4 "-bsf:a" aac_adtstoasc "file:W:\Work\ESPNPlus.Test.720p.WEB-DL.x264-YouTube-DL.mkv.part"
ffmpeg version N-90920-ge07b1913fc 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-lib
ass --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-libwav
pack --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.100 / 56. 18.100
libavcodec 58. 19.100 / 58. 19.100
libavformat 58. 13.100 / 58. 13.100
libavdevice 58. 4.100 / 58. 4.100
libavfilter 7. 21.100 / 7. 21.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
[AVIOContext @ 05b37a00] The "user-agent" option is deprecated: use the "user_agent" option instead
[hls,applehttp @ 05b33080] HLS request for url 'https://hlsvod-l3c-clt1.media.plus.espn.com/ps01/espn/hls/2018/03/14/855deb02-94a8-4b63-874e
-add949b25ab5/1520999867346/asset_3500k/00000/asset_3500k_00001.ts', offset 0, playlist 0
[hls,applehttp @ 05b33080] Opening 'https://playback.svcs.plus.espn.com/media/855deb02-94a8-4b63-874e-add949b25ab5/keys/6eb41ad2-a2e3-4ba9-b
b8f-e7e72c19aa56' for reading
[https @ 06c8a980] The "user-agent" option is deprecated: use the "user_agent" option instead
Unable to open key file https://playback.svcs.plus.espn.com/media/855deb02-94a8-4b63-874e-add949b25ab5/keys/6eb41ad2-a2e3-4ba9-bb8f-e7e72c19
aa56
[hls,applehttp @ 05b33080] Opening 'crypto+https://hlsvod-l3c-clt1.media.plus.espn.com/ps01/espn/hls/2018/03/14/855deb02-94a8-4b63-874e-add9
49b25ab5/1520999867346/asset_3500k/00000/asset_3500k_00001.ts' for reading
[https @ 06f7cb40] The "user-agent" option is deprecated: use the "user_agent" option instead
[hls,applehttp @ 05b33080] Error when loading first segment 'https://hlsvod-l3c-clt1.media.plus.espn.com/ps01/espn/hls/2018/03/14/855deb02-9
4a8-4b63-874e-add949b25ab5/1520999867346/asset_3500k/00000/asset_3500k_00001.ts'
https://hlsvod-l3c-clt1.media.plus.espn.com/ps01/espn/hls/2018/03/14/855deb02-94a8-4b63-874e-add949b25ab5/1520999867346/asset_3500k.m3u8: In
valid 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\tmpulhs0gaq\build\youtube_dl\__init__.py", line 471, in main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\__init__.py", line 461, in _real_main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\YoutubeDL.py", line 1993, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\YoutubeDL.py", line 800, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\YoutubeDL.py", line 854, in process_ie_result
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\YoutubeDL.py", line 1627, in process_video_result
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\YoutubeDL.py", line 1900, in process_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\YoutubeDL.py", line 1839, in dl
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\downloader\common.py", line 365, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\downloader\external.py", line 64, in real_download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\downloader\common.py", line 166, in report_error
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\YoutubeDL.py", line 617, in report_error
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpulhs0gaq\build\youtube_dl\YoutubeDL.py", line 579, in trouble
<end of log>
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
- Single video: http://www.espn.com/watch/film/cf950763-9adb-4acf-b04e-425d8676615c/tommy
- m3u8 of URL: https://aeng.svcs.plus.espn.com/settoken/redirect/v1?sect=espnplus:web:vod:en&ssess=d912566c-71d2-47dc-be27-d5a421fce34d&trk=s&platform=web&app=espn&partnr=espn&uid={A667818B-850A-4010-A781-8B850A7010D6}&swid={A667818B-850A-4010-A781-8B850A7010D6}&cdn=LEVEL3&corigin=CLT1&mediaurl=https://hlsvod-l3c-clt1.media.plus.espn.com/ps01/espn/hls/2018/03/14/855deb02-94a8-4b63-874e-add949b25ab5/1520999867346/master_wired60_s2.m3u8
or
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Is I missing somethings obvious here?
Get “Unable to open key file” and “Error when loading first segment” and “ffmpeg exited with code 1” errors. Whats wrong? Do I needs to pass more informations through CLI ?
ESPN+ video. It’s required to have ESPN+. I have account.
ESPN+ has a free trial if an account for testing needing. Just go here: https://plus.espn.com/
Any helps appreciated? Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:77
try this…
youtube-dl --add-header “authorization:KEY” “M3U8”
the key is the reallyyyyy long string
They seem to have switched up the mechanism; now the auth key is stored in the HTTP header
dss-session-token
in a URL that contains the query parameterentitlements