Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
iplayer - rtmpdump exited with code 1 (continuation of #6848) #6855
Comments
|
Can you provide geounrestricted example URL or proxy/vpn with UK IP? |
|
I will have to work on that tomorrow (monday) evening, Dallas time. I'll have to set up VPN. Thanks for helping with this! |
|
Everyone's having this trouble in the UK. OK, I don't personally know everybody but no-one I know can download from iPlayer with youtube-dl now. Here's what I just got, by pasting the same command: [debug] System config: [] |
|
@phantomflanflinger you are using an outdated version of youtube-dl. |
|
Doesn't affect all BBC iplayer files, will upload a few example traces shortly |
|
Latest build from 2015.09.09 WORKS - http://www.bbc.co.uk/iplayer/episode/b0109cc7/the-horizon-guide-to-space-shuttles File sizes after running. The first file gave some warnings (below is 3rd attempt), first go worked perfectly, second timed out. Think it's network issues for the first file shown below. When it fails it fails quickly. Hope this helps. Thanks, $ youtube-dl -v --restrict-filenames -i -a urls ERROR: rtmpdump exited with code 1 |
|
Since jbradsha provided a UK dump, I'll hold off on signing up for a VPN service to provide a UK dump - I'll do that if needed, however. |
|
I have two instances of youtube-dl on this machine - I pasted the details from the wrong one last time, but the problem's there with the current version, everyone's got it. Some programmes can be downloaded, most can't. Here's what I got from the 2015.09.09 build: youtube-dl -v http://www.bbc.co.uk/iplayer/episode/b069fvh5/top-coppers-4-the-twist-of-the-french-nicker [debug] System config: []
ERROR: rtmpdump exited with code 1 |
|
@EdgarCarpenter as said posting bunch of identical failure logs won't help in any way. A proxy/vpn/etc with IP allowed to watch this video (UK is definitely allowed) in browser is required to investigate the flow between browser and iplayer. Since none of the developers has UK IP and iplayer blocks all known tor nodes and most of public proxies there is no way for us to do this other way. |
|
Please let me know what you need from UK and I'll try to help. |
|
@jbradsha read previous posts. |
|
(https://www.unblock-us.com/ works with iplayer.) Youtube-dl doesn't work very often with iplayer. |
|
@dstftw The dump below was done from a UK IP address via VPN, I hope it gives you what you need - thanks! (the problem is just as serious with a UK address, only 1 out of 8 different downloads worked, the rest got this same error.) youtube-dl -v http://www.bbc.co.uk/iplayer/episode/b06b7w43/would-i-lie-to-you-series-9-episode-7 ERROR: rtmpdump exited with code 1 |
|
@jbradsha & @EdgarCarpenter |
|
Also, HTTP requests/responses from the browser to any |
|
So - I added: I'm too tired to continue tonight - can you point me to a page which explains step by step how to use rtmpsuck? Or a page which has a sample script for doing this? That would speed me up. Sorry, I haven't worked with rtmp or iptables before, so I have to learn as I go along. I'll do more googling tomorrow and try again. Thanks for your patience! (I'm running the current Linux Mint LMDE, which is Debian). |
|
@EdgarCarpenter It might be that the browser picked the other RTMP server (limelight or akamai). You might have to refresh the page a couple of times and hope it selects the level3 one. |
|
It's also possible that the BBC are doing HLS only now and not using RTMP at all. Look at the requests your browser makes & see if there are any requests .m3u8 URLs. |
|
How do I look at the requests my browser makes? If you can point me in a useful direction I'll research it tomorrow. Thanks! |
|
On Firefox open the |
|
@jsmithyop If Flash is making the requests, then there is no way to force RTMP. This might also signal that the BBC are moving away from RTMP completely. If the browser is making the requests, then they are happening in JavaScript so you might be able to patch that using Scriptish. But I don't see the point of forcing RTMP. If by default they never make use of RTMP streams, chances are they aren't meant to be used. You can download F4Ms using a recent version of ffmpeg, but only if they are non-DRM. |
|
No point. I'm setting up a VPN to look into this further anyways. |
|
@jashandeep-sohi I spent the day doing final debugging on a new code change automation script and my mind is numb. Do you still need more info from me? I can work on it over the weekend, and perhaps get some help from a friend. |
|
@EdgarCarpenter I've been doing my own testing & searching and I've had some success...partially. It turns out with I've been browsing the BBC RD blog, at it seems the BBC have made some changes to iplayer: http://anonym.to/?http://www.bbc.co.uk/rd/blog/2015/07/the-development-of-new-video-factory-profiles-for-bbc-iplayer What this mean for us, I don't really know. |
I followed dstftw's instructions to use a different format.
For two different videos, I got the list of formats using --list-format and then tried to download using each of the formats. For both videos, none of the formats listed by --list-formats for the video worked.
It doesn't seem like it's a problem with the format specified. I think the final error message is the result of some earlier error which cascades. Could you take another look? I've included the output of --list-formats and the output of one download for one of the videos. Thanks!
I got the list of formats for this video:
youtube-dl -v --list-formats http://www.bbc.co.uk/iplayer/episode/b00ml4yv/whisky-galore
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'--list-formats', u'http://www.bbc.co.uk/iplayer/episode/b00ml4yv/whisky-galore']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.09.09
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-LinuxMint-2-betsy
[debug] exe versions: avconv 2.6.4, avprobe 2.6.4, ffmpeg 2.6.4, ffprobe 2.6.4, rtmpdump 2.4
[debug] Proxy map: {}
[bbc.co.uk] b00ml4yv: Downloading video page
[bbc.co.uk] b0004p5k: Downloading media selection XML
[info] Available formats for b0004p5k:
format code extension resolution note
iplayer_streaming_h264_flv_lo_akamai flv 640x360 h264@ 480k, 293.12MiB
iplayer_streaming_h264_flv_lo_limelight flv 640x360 h264@ 480k, 293.12MiB
iplayer_streaming_h264_flv_akamai flv 640x360 h264@ 796k, 458.00MiB
iplayer_streaming_h264_flv_limelight flv 640x360 h264@ 796k, 458.00MiB
iplayer_streaming_h264_flv_high_akamai flv 832x468 h264@1500k, 857.01MiB
iplayer_streaming_h264_flv_high_limelight flv 832x468 h264@1500k, 857.01MiB (best)
I tried each of them, and each had the same failure - this is the output from just one:
youtube-dl -v -f iplayer_streaming_h264_flv_akamai http://www.bbc.co.uk/iplayer/episode/b00ml4yv/whisky-galore
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'-f', u'iplayer_streaming_h264_flv_akamai', u'http://www.bbc.co.uk/iplayer/episode/b00ml4yv/whisky-galore']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.09.09
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-LinuxMint-2-betsy
[debug] exe versions: avconv 2.6.4, avprobe 2.6.4, ffmpeg 2.6.4, ffprobe 2.6.4, rtmpdump 2.4
[debug] Proxy map: {}
[bbc.co.uk] b00ml4yv: Downloading video page
[bbc.co.uk] b0004p5k: Downloading media selection XML
[debug] Invoking downloader on u'rtmp://vod-rtmp-uk-live.edgesuite.net/ondemand?auth=daEahb6caa3dJaFaObra2dfaca3b3c0dWcp-bv9B1N-bWG-IotFAnBqKBoEnxJ&aifp=v001&slist=secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4;secure/480kbps/modav/p03162cl_b0004p5k_1442022848756.mp4;secure/1500kbps/modav/p03162cl_b0004p5k_1442022848777.mp4'
[download] Destination: Whisky Galore!-b0004p5k.flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmp://vod-rtmp-uk-live.edgesuite.net/ondemand?auth=daEahb6caa3dJaFaObra2dfaca3b3c0dWcp-bv9B1N-bWG-IotFAnBqKBoEnxJ&aifp=v001&slist=secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4;secure/480kbps/modav/p03162cl_b0004p5k_1442022848756.mp4;secure/1500kbps/modav/p03162cl_b0004p5k_1442022848777.mp4' -o 'Whisky Galore!-b0004p5k.flv.part' --swfVfy http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf --pageUrl http://www.bbc.co.uk --app 'ondemand?auth=daEahb6caa3dJaFaObra2dfaca3b3c0dWcp-bv9B1N-bWG-IotFAnBqKBoEnxJ&aifp=v001&slist=secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4;secure/480kbps/modav/p03162cl_b0004p5k_1442022848756.mp4;secure/1500kbps/modav/p03162cl_b0004p5k_1442022848777.mp4' --playpath mp4:secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4 --resume --skip 1
[rtmpdump] RTMPDump v2.4
rtmpdump 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 0
[rtmpdump] DEBUG: Parsed host : vod-rtmp-uk-live.edgesuite.net
[rtmpdump] DEBUG: Parsed app : ondemand?auth=daEahb6caa3dJaFaObra2dfaca3b3c0dWcp-bv9B1N-bWG-IotFAnBqKBoEnxJ&aifp=v001&slist=secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4;secure/480kbps/modav/p03162cl_b0004p5k_1442022848756.mp4;secure/1500kbps/modav/p03162cl_b0004p5k_1442022848777.mp4
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : vod-rtmp-uk-live.edgesuite.net
[rtmpdump] DEBUG: Port : 1935
[rtmpdump] DEBUG: Playpath : mp4:secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4
[rtmpdump] DEBUG: tcUrl : rtmp://vod-rtmp-uk-live.edgesuite.net:1935/ondemand?auth=daEahb6caa3dJaFaObra2dfaca3b3c0dWcp-bv9B1N-bWG-IotFAnBqKBoEnxJ&aifp=v001&slist=secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4;secure/480kbps/modav/p03162cl_b0004p5k_1442022848756.mp4;secure/1500kbps/modav/p03162cl_b0004p5k_1442022848777.mp4
[rtmpdump] DEBUG: swfUrl : http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf
[rtmpdump] DEBUG: pageUrl : http://www.bbc.co.uk
[rtmpdump] DEBUG: app : ondemand?auth=daEahb6caa3dJaFaObra2dfaca3b3c0dWcp-bv9B1N-bWG-IotFAnBqKBoEnxJ&aifp=v001&slist=secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4;secure/480kbps/modav/p03162cl_b0004p5k_1442022848756.mp4;secure/1500kbps/modav/p03162cl_b0004p5k_1442022848777.mp4
[rtmpdump] DEBUG: live : no
[rtmpdump] DEBUG: timeout : 30 sec
[rtmpdump] DEBUG: SWFSHA256:
[rtmpdump] DEBUG: b6 74 7f 89 f9 ec 6a 60 c1 a4 b5 8b b1 18 b0 fa
[rtmpdump] DEBUG: 65 18 86 24 c2 8a 1a a3 2f 72 0f 0b 80 59 dd 7f
[rtmpdump] DEBUG: SWFSize : 595316
[rtmpdump] DEBUG: Failed to get last keyframe.
[rtmpdump] DEBUG: Closing connection.
[rtmpdump] 0 bytes
[rtmpdump] RTMPDump v2.4
rtmpdump 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 0
[rtmpdump] DEBUG: Parsed host : vod-rtmp-uk-live.edgesuite.net
[rtmpdump] DEBUG: Parsed app : ondemand?auth=daEahb6caa3dJaFaObra2dfaca3b3c0dWcp-bv9B1N-bWG-IotFAnBqKBoEnxJ&aifp=v001&slist=secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4;secure/480kbps/modav/p03162cl_b0004p5k_1442022848756.mp4;secure/1500kbps/modav/p03162cl_b0004p5k_1442022848777.mp4
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : vod-rtmp-uk-live.edgesuite.net
[rtmpdump] DEBUG: Port : 1935
[rtmpdump] DEBUG: Playpath : mp4:secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4
[rtmpdump] DEBUG: tcUrl : rtmp://vod-rtmp-uk-live.edgesuite.net:1935/ondemand?auth=daEahb6caa3dJaFaObra2dfaca3b3c0dWcp-bv9B1N-bWG-IotFAnBqKBoEnxJ&aifp=v001&slist=secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4;secure/480kbps/modav/p03162cl_b0004p5k_1442022848756.mp4;secure/1500kbps/modav/p03162cl_b0004p5k_1442022848777.mp4
[rtmpdump] DEBUG: swfUrl : http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf
[rtmpdump] DEBUG: pageUrl : http://www.bbc.co.uk
[rtmpdump] DEBUG: app : ondemand?auth=daEahb6caa3dJaFaObra2dfaca3b3c0dWcp-bv9B1N-bWG-IotFAnBqKBoEnxJ&aifp=v001&slist=secure/800kbps/modav/p03162cl_b0004p5k_1442022849968.mp4;secure/480kbps/modav/p03162cl_b0004p5k_1442022848756.mp4;secure/1500kbps/modav/p03162cl_b0004p5k_1442022848777.mp4
[rtmpdump] DEBUG: live : no
[rtmpdump] DEBUG: timeout : 30 sec
[rtmpdump] DEBUG: SWFSHA256:
[rtmpdump] DEBUG: b6 74 7f 89 f9 ec 6a 60 c1 a4 b5 8b b1 18 b0 fa
[rtmpdump] DEBUG: 65 18 86 24 c2 8a 1a a3 2f 72 0f 0b 80 59 dd 7f
[rtmpdump] DEBUG: SWFSize : 595316
[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
youtube_dl.main()
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 410, in main
_real_main(argv)
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 400, in _real_main
retcode = ydl.download(all_urls)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1658, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 671, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 717, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1328, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1590, in process_info
success = dl(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1532, in dl
return fd.download(name, info)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 342, 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 155, in report_error
self.ydl.report_error(_args, *_kargs)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 535, in report_error
self.trouble(error_message, tb)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 497, in trouble
tb_data = traceback.format_list(traceback.extract_stack())