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

dr.dk error: ffmpeg exited with code -5 #8264

Closed
AllanLRH opened this issue Jan 17, 2016 · 1 comment
Closed

dr.dk error: ffmpeg exited with code -5 #8264

AllanLRH opened this issue Jan 17, 2016 · 1 comment

Comments

@AllanLRH
Copy link

@AllanLRH AllanLRH commented Jan 17, 2016

Youtube-dl recently stopped working for dr.dk (the issue persists with other dr.dk subpages). Here is the command and resulting output:

$ youtube-dl --verbose "https://www.dr.dk/tv/se/bedrag/bedrag-1-10\#\!/"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'https://www.dr.dk/tv/se/bedrag/bedrag-1-10#!/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.01.15
[debug] Python version 2.7.11 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg present, ffprobe present, rtmpdump 2.4
[debug] Proxy map: {}
[DRTV] bedrag-1-10: Downloading webpage
[DRTV] bedrag-1-10: Downloading video JSON
[DRTV] bedrag-1-10: Downloading f4m manifest
[DRTV] bedrag-1-10: Downloading m3u8 information
[debug] Invoking downloader on u'http://drod03f-vh.akamaihd.net/i/all/clear/streaming/27/5681597da11f9f0534273127/Bedrag--1-10-_962c514fe82e45d093d694694b416a59_,1126,562,2309,.mp4.csmil/index_2_av.m3u8?null='
[download] Destination: Bedrag (1_10)-bedrag-1-10.mp4
[debug] ffmpeg command line: ffmpeg -y -headers 'Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/20.0 (Chrome)
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Cookie: _alid_=niGCV24C9LtDlc0+h7wKpA==
' -i 'http://drod03f-vh.akamaihd.net/i/all/clear/streaming/27/5681597da11f9f0534273127/Bedrag--1-10-_962c514fe82e45d093d694694b416a59_,1126,562,2309,.mp4.csmil/index_2_av.m3u8?null=' -f mp4 -c copy -bsf:a aac_adtstoasc 'file:Bedrag (1_10)-bedrag-1-10.mp4.part'
dyld: Library not loaded: /usr/local/lib/libx265.59.dylib
  Referenced from: /usr/local/bin/ffmpeg
  Reason: image not found


ERROR: ffmpeg exited with code -5
  File "/Users/allan/homeInstalled/anaconda/envs/py27/bin/youtube-dl", line 11, in <module>
    sys.exit(main())
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/__init__.py", line 410, in main
    _real_main(argv)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/__init__.py", line 400, in _real_main
    retcode = ydl.download(all_urls)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1677, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 676, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 722, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1347, in process_video_result
    self.process_info(new_info)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1609, in process_info
    success = dl(filename, info_dict)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1551, in dl
    return fd.download(name, info)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 342, in download
    return self.real_download(filename, info_dict)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/downloader/hls.py", line 63, in real_download
    self.report_error('%s exited with code %d' % (ffpp.basename, retval))
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 155, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 540, in report_error
    self.trouble(error_message, tb)
  File "/Users/allan/homeinstalled/anaconda/envs/py27/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 502, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

It tried to pinpoint the error – requesting the download URL like so yields a URL to a playlist of sorts, containing links to the small bits of video files:

$ youtube-dl --get-url "https://www.dr.dk/tv/se/bedrag/bedrag-1-10\#\!/"
http://drod03f-vh.akamaihd.net/i/all/clear/streaming/27/5681597da11f9f0534273127/Bedrag--1-10-_962c514fe82e45d093d694694b416a59_,1126,562,2309,.mp4.csmil/index_2_av.m3u8?null=

and

$ curl `youtube-dl --get-url "https://www.dr.dk/tv/se/bedrag/bedrag-1-10\#\!/"`
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-ALLOW-CACHE:YES
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10.000,
http://drod03f-vh.akamaihd.net/i/all/clear/streaming/27/5681597da11f9f0534273127/Bedrag--1-10-_962c514fe82e45d093d694694b416a59_,1126,562,2309,.mp4.csmil/segment1_2_av.ts?null=
#EXTINF:10.000,
http://drod03f-vh.akamaihd.net/i/all/clear/streaming/27/5681597da11f9f0534273127/Bedrag--1-10-_962c514fe82e45d093d694694b416a59_,1126,562,2309,.mp4.csmil/segment2_2_av.ts?null=
#EXTINF:10.000,

########################################################
#    Lots of similar output stripped away from here    #
########################################################

http://drod03f-vh.akamaihd.net/i/all/clear/streaming/27/5681597da11f9f0534273127/Bedrag--1-10-_962c514fe82e45d093d694694b416a59_,1126,562,2309,.mp4.csmil/segment349_2_av.ts?null=
#EXTINF:10.000,
http://drod03f-vh.akamaihd.net/i/all/clear/streaming/27/5681597da11f9f0534273127/Bedrag--1-10-_962c514fe82e45d093d694694b416a59_,1126,562,2309,.mp4.csmil/segment350_2_av.ts?null=
#EXTINF:9.789,
http://drod03f-vh.akamaihd.net/i/all/clear/streaming/27/5681597da11f9f0534273127/Bedrag--1-10-_962c514fe82e45d093d694694b416a59_,1126,562,2309,.mp4.csmil/segment351_2_av.ts?null=
#EXT-X-ENDLIST

I've tried downloading some of the video segments, and the ones I tried downloaded and played just fine.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 17, 2016

dyld: Library not loaded: /usr/local/lib/libx265.59.dylib
  Referenced from: /usr/local/bin/ffmpeg
  Reason: image not found

You have probably updated libx265 (I guess it's from the x265 package) and have removed the old version, but since ffmpeg is linked to the old version it can't run. You need to reinstall (probably recompiling) ffmpeg, in case you are using homebrew you can just run brew reinstall ffmpeg.

@jaimeMF jaimeMF closed this Jan 17, 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
2 participants
You can’t perform that action at this time.