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

Some UKTV Player Videos Don't download - rtmpdump exited with code 1 #12281

Open
kevjs1982 opened this issue Feb 26, 2017 · 1 comment
Open

Some UKTV Player Videos Don't download - rtmpdump exited with code 1 #12281

kevjs1982 opened this issue Feb 26, 2017 · 1 comment

Comments

@kevjs1982
Copy link

@kevjs1982 kevjs1982 commented Feb 26, 2017

Please 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 that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.02.24.1. 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 2017.02.24.1

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

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

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 -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl https://uktvplay.uktv.co.uk/shows/spooks/watch-online/?video=4953729582001 -o "S03E03 - Who Guards The Guards.mp4" --hls-prefer-native --ffmpeg-location /usr/local/bin/ffmpeg20170226 -v
[debug] System config: []
[debug] User config: [u'-o', u'/media/PVR2/YouTube/%(title)s-%(id)s.%(ext)s', u'--write-info-json', u'--ffmpeg-location', u'/usr/local/bin/ffmpeg20160827/ffmpeg', u'--write-thumbnail', u'--write-sub', u'-f', u'bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]/best[ext=mp4][height<=?1080]']
[debug] Custom config: []
[debug] Command-line args: [u'https://uktvplay.uktv.co.uk/shows/spooks/watch-online/?video=4953729582001', u'-o', u'S03E03 - Who Guards The Guards.mp4', u'--hls-prefer-native', u'--ffmpeg-location', u'/usr/local/bin/ffmpeg20170226', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.02.24.1
[debug] Python version 2.7.3 - Linux-3.10.1-031001-generic-i686-with-Ubuntu-12.04-precise
[debug] exe versions: ffmpeg N-83585-ga5c1c7a8b3-static, ffprobe N-83585-ga5c1c7a8b3-static, rtmpdump 2.4-n37-git4e06e21-ppa6
[debug] Proxy map: {}
[brightcove:new] 4953729582001: Downloading webpage
[brightcove:new] 4953729582001: Downloading JSON metadata
[brightcove:new] 4953729582001: Downloading m3u8 information
[brightcove:new] 4953729582001: Downloading m3u8 information
[brightcove:new] 4953729582001: Downloading MPD manifest
[brightcove:new] 4953729582001: Downloading MPD manifest
[info] Writing video description metadata as JSON to: S03E03 - Who Guards The Guards.info.json
[brightcove:new] 4953729582001: Downloading thumbnail ...
[brightcove:new] 4953729582001: Writing thumbnail to: S03E03 - Who Guards The Guards.jpg
[debug] Invoking downloader on u'rtmpe://cp150448.edgefcs.net/ondemand'
[download] Destination: S03E03 - Who Guards The Guards.mp4
[debug] rtmpdump command line: rtmpdump --verbose -r rtmpe://cp150448.edgefcs.net/ondemand -o 'S03E03 - Who Guards The Guards.mp4.part' --playpath 'mp4:1242911124001/1242911124001_5068963617001_4953729582001.mp4?__nn__=2048105472001&slist=1242911124001/&auth=daEbgdtbwcadhdVbobsdQcmc5d9cOa6amdB-bySWMq-bWG-qoGBtrrz_BHyq_IFxApDMr&aifp=rtmpe_os' --resume --skip 1
[rtmpdump] RTMPDump v2.4-n37-git4e06e21-ppa6~precise
[rtmpdump] (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 2
[rtmpdump] DEBUG: Parsed host    : cp150448.edgefcs.net
[rtmpdump] DEBUG: Parsed app     : ondemand
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMPE
[rtmpdump] DEBUG: Hostname : cp150448.edgefcs.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:1242911124001/1242911124001_5068963617001_4953729582001.mp4?__nn__=2048105472001&slist=1242911124001/&auth=daEbgdtbwcadhdVbobsdQcmc5d9cOa6amdB-bySWMq-bWG-qoGBtrrz_BHyq_IFxApDMr&aifp=rtmpe_os
[rtmpdump] DEBUG: tcUrl    : rtmpe://cp150448.edgefcs.net:1935/ondemand
[rtmpdump] DEBUG: app      : ondemand
[rtmpdump] DEBUG: live     : no
[rtmpdump] DEBUG: timeout  : 30 sec
[rtmpdump] DEBUG: Failed to get last keyframe.
[rtmpdump] DEBUG: Closing connection.
[rtmpdump] 0 bytes
[rtmpdump] RTMPDump v2.4-n37-git4e06e21-ppa6~precise
[rtmpdump] (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 2
[rtmpdump] DEBUG: Parsed host    : cp150448.edgefcs.net
[rtmpdump] DEBUG: Parsed app     : ondemand
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMPE
[rtmpdump] DEBUG: Hostname : cp150448.edgefcs.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:1242911124001/1242911124001_5068963617001_4953729582001.mp4?__nn__=2048105472001&slist=1242911124001/&auth=daEbgdtbwcadhdVbobsdQcmc5d9cOa6amdB-bySWMq-bWG-qoGBtrrz_BHyq_IFxApDMr&aifp=rtmpe_os
[rtmpdump] DEBUG: tcUrl    : rtmpe://cp150448.edgefcs.net:1935/ondemand
[rtmpdump] DEBUG: app      : ondemand
[rtmpdump] DEBUG: live     : no
[rtmpdump] DEBUG: timeout  : 30 sec
[rtmpdump] DEBUG: Failed to get last keyframe.
[rtmpdump] DEBUG: Closing connection.


ERROR: rtmpdump 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 457, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 447, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1883, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 772, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 833, in process_ie_result
    extra_info=extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 772, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 826, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1527, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1791, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1733, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 353, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/rtmp.py", line 202, in real_download
    self.report_error('rtmpdump exited with code %d' % retval)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 162, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 589, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 551, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())


Description of your issue, suggested solution and other information

A number of videos on the UKTV Player consistently fail, even though the majority work. If a video fails once it will continue to fail forever.

I've tried downloading and using the latest static ffmpeg builds "ffmpeg-git-20170221-32bit-static/" and the problem persists.

Example is https://uktvplay.uktv.co.uk/shows/spooks/watch-online/?video=4953729582001# (geolocked to the UK I believe)

I also tried https://uktvplay.uktv.co.uk/shows/dave-gormans-modern-life-is-goodish/watch-online/?video=3787912795001 20 days ago and, despite updating ffmpeg and youtube-dl since it still has the same issue.

@VidElp
Copy link

@VidElp VidElp commented Mar 4, 2017

I am having this exact same issue.

I did some more testing using the -g option and found the problem url's to be on a different server

Working Example:

https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4926466606001&secure=true&expiration=1488913680000&token=82fab433f4bc2cfd3df5a54a14a803fcdc8143b5&pubId=1242911124001&videoId=3615238740001

Non-working Example:

rtmpe://cp150448.edgefcs.net/ondemandmp4:1242911124001/1242911124001_51340828590
01_5134042981001.mp4?nn=2048105472001&slist=1242911124001/&auth=daEd1bkdeaqb
AatdNdGbeaicEbRdEbTa6dB-byUW6W-bWG-nmxDvpxx_yJAv_CDzyvDFp&aifp=rtmpe_os

--

Ok, so I've finally figured out a solution to this problem.

Find the link on UKTV Play that doesn't download.

This one for example: https://uktvplay.uktv.co.uk/shows/louis-theroux-shorts/watch-online/?video=4645822486001

Type youtube-dl -F (use a capital F) then the link

Which gives us this output.

format code extension resolution note
hls-meta-0 mp4 multiple Quality selection URL
hls-meta-1 mp4 multiple Quality selection URL
hls-746-0 mp4 640x352 746k
hls-746-1 mp4 640x352 746k
rtmp-1086k-352p mp4 640x352 1086k , MP4 container, H264, 56.62MiB
hls-1326-0 mp4 640x352 1326k
hls-1326-1 mp4 640x352 1326k
rtmp-1326k-396p mp4 720x396 1326k , MP4 container, H264, 68.93MiB
hls-1925-0 mp4 720x396 1925k
hls-1925-1 mp4 720x396 1925k
rtmp-1927k-562p mp4 1024x562 1927k , MP4 container, H264, 99.71MiB (be
st)

Use any format option that does not contain "rtmp".

So this will work

youtube-dl -f hls-1925-1 https://uktvplay.uktv.co.uk/shows/louis-theroux-shorts/watch-online/?video=4645822486001

Remember to lowercase the "f" to select the format.

Hope this helps, G'day. :)

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
3 participants
@kevjs1982 @VidElp and others
You can’t perform that action at this time.