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

iplayer - rtmpdump exited with code 1 (continuation of #6848) #6855

Closed
EdgarCarpenter opened this issue Sep 13, 2015 · 24 comments
Closed

iplayer - rtmpdump exited with code 1 (continuation of #6848) #6855

EdgarCarpenter opened this issue Sep 13, 2015 · 24 comments

Comments

@EdgarCarpenter
Copy link

@EdgarCarpenter EdgarCarpenter commented Sep 13, 2015

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())


@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 13, 2015

Can you provide geounrestricted example URL or proxy/vpn with UK IP?

@EdgarCarpenter
Copy link
Author

@EdgarCarpenter EdgarCarpenter commented Sep 14, 2015

I will have to work on that tomorrow (monday) evening, Dallas time. I'll have to set up VPN. Thanks for helping with this!

@phantomflanflinger
Copy link

@phantomflanflinger phantomflanflinger commented Sep 14, 2015

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:
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: ['-v', '-f', 'iplayer_streaming_h264_flv_akamai', 'http://www.bbc.co.uk/iplayer/episode/b00ml4yv/whisky-galore']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.02.24.2
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: rtmpdump 2.4
[debug] Proxy map: {}
[bbc.co.uk] b00ml4yv: Downloading video page
[bbc.co.uk] b00ml4yv: Downloading JSON metadata
[bbc.co.uk] b0004p5k: Downloading media selection XML
Traceback (most recent call last):
File "main.py", line 19, in
File "youtube_dl__init__.pyo", line 389, in main
File "youtube_dl__init__.pyo", line 379, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 1441, in download
File "youtube_dl\YoutubeDL.pyo", line 643, in extract_info
File "youtube_dl\extractor\common.pyo", line 275, in extract
File "youtube_dl\extractor\bbccouk.pyo", line 338, in _real_extract
File "youtube_dl\extractor\bbccouk.pyo", line 265, in _download_media_selector
File "youtube_dl\extractor\bbccouk.pyo", line 187, in _extract_video
TypeError: int() argument must be a string or a number, not 'NoneType'

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 14, 2015

@phantomflanflinger you are using an outdated version of youtube-dl.

@jbradsha
Copy link

@jbradsha jbradsha commented Sep 14, 2015

Doesn't affect all BBC iplayer files, will upload a few example traces shortly

@jbradsha
Copy link

@jbradsha jbradsha commented Sep 14, 2015

Latest build from 2015.09.09

WORKS - http://www.bbc.co.uk/iplayer/episode/b0109cc7/the-horizon-guide-to-space-shuttles
BROKEN - http://www.bbc.co.uk/iplayer/episode/b012x69w/space-shuttle-the-final-mission

File sizes after running.
0 Sep 14 16:33 Space_Shuttle_-_The_Final_Mission-b0139ftq.flv.part
667763048 Sep 14 16:33 The_Horizon_Guide_to_Space_Shuttles-b0109bpc.flv

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,
John.

$ youtube-dl -v --restrict-filenames -i -a urls
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'--restrict-filenames', u'-i', u'-a', u'urls']
[debug] Batch file urls: [u'http://www.bbc.co.uk/iplayer/episode/b0109cc7/the-horizon-guide-to-space-shuttles', u'http://www.bbc.co.uk/iplayer/episode/b012x69w/space-shuttle-the-final-mission']
[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.6 - Linux-3.13.0-63-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.18-6, avprobe 9.18-6, rtmpdump 2.4
[debug] Proxy map: {}
[bbc.co.uk] b0109cc7: Downloading video page
[bbc.co.uk] b0109bpc: Downloading media selection XML
[debug] Invoking downloader on u'rtmp://bbcfmt.fcod.llnwd.net/a8984/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368088401.mp4,iplayerstream/secure_auth/800kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368090677.mp4,iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4&et=1442251709&fmta-token=c55a0ceedbcfb12a8840dca839b382e2a67303b1942a6f5f0e088d6579673c38'
[download] Destination: The_Horizon_Guide_to_Space_Shuttles-b0109bpc.flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmp://bbcfmt.fcod.llnwd.net/a8984/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368088401.mp4,iplayerstream/secure_auth/800kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368090677.mp4,iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4&et=1442251709&fmta-token=c55a0ceedbcfb12a8840dca839b382e2a67303b1942a6f5f0e088d6579673c38' -o The_Horizon_Guide_to_Space_Shuttles-b0109bpc.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 'a8984/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368088401.mp4,iplayerstream/secure_auth/800kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368090677.mp4,iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4&et=1442251709&fmta-token=c55a0ceedbcfb12a8840dca839b382e2a67303b1942a6f5f0e088d6579673c38' --playpath mp4:iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.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 : bbcfmt.fcod.llnwd.net
[rtmpdump] DEBUG: Parsed app : a8984/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : bbcfmt.fcod.llnwd.net
[rtmpdump] DEBUG: Port : 1935
[rtmpdump] DEBUG: Playpath : mp4:iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4
[rtmpdump] DEBUG: tcUrl : rtmp://bbcfmt.fcod.llnwd.net:1935/a8984/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368088401.mp4,iplayerstream/secure_auth/800kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368090677.mp4,iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4&et=1442251709&fmta-token=c55a0ceedbcfb12a8840dca839b382e2a67303b1942a6f5f0e088d6579673c38
[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 : a8984/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368088401.mp4,iplayerstream/secure_auth/800kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368090677.mp4,iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4&et=1442251709&fmta-token=c55a0ceedbcfb12a8840dca839b382e2a67303b1942a6f5f0e088d6579673c38
[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: Setting buffer time to: 36000000ms
[rtmpdump] Connecting ...
[rtmpdump] DEBUG: RTMP_Connect1, ... connected, handshaking
[rtmpdump] DEBUG: HandShake: Client type: 03
[rtmpdump] DEBUG: HandShake: Client digest offset: 430
[rtmpdump] DEBUG: HandShake: Initial client digest:
[rtmpdump] DEBUG: e8 e9 27 be c5 b0 dc de dc 7a 4b eb bf 2e 02 5e
[rtmpdump] DEBUG: 8b 8f a0 74 d2 7d ea 45 f2 92 b0 17 e5 69 ea d7
[rtmpdump] DEBUG: HandShake: Type Answer : 03
[rtmpdump] DEBUG: HandShake: Server Uptime : 844562950
[rtmpdump] DEBUG: HandShake: FMS Version : 4.0.3.1
[rtmpdump] DEBUG: HandShake: Calculated digest key from secure key and server digest:
[rtmpdump] DEBUG: 8a 8d c4 a6 db b4 49 9a 82 3b 12 49 dc 67 c7 e3
[rtmpdump] DEBUG: d4 f5 4d e8 80 b1 3a 38 5c d0 53 dc 15 d7 02 02
[rtmpdump] DEBUG: HandShake: Client signature calculated:
[rtmpdump] DEBUG: 79 80 9c 34 83 df a9 b8 85 80 61 73 75 3a 38 1d
[rtmpdump] DEBUG: 67 be b0 69 1c 44 22 8e 89 04 bd 01 e2 92 14 de
[rtmpdump] DEBUG: HandShake: Server sent signature:
[rtmpdump] DEBUG: 9a 0a 63 08 ba 91 8b 10 3d 3d 4d 45 66 60 69 4e
[rtmpdump] DEBUG: 97 8b 62 ae f1 25 b5 e3 b7 06 a0 4d 86 59 c8 87
[rtmpdump] DEBUG: HandShake: Digest key:
[rtmpdump] DEBUG: 66 5c 2e f1 fe 89 b3 e5 87 63 a5 02 d4 2d a8 88
[rtmpdump] DEBUG: 9c 92 a6 c5 36 af 34 6d 5b 4d 4a 0f 7b f1 4e 6a
[rtmpdump] DEBUG: HandShake: Signature calculated:
[rtmpdump] DEBUG: 9a 0a 63 08 ba 91 8b 10 3d 3d 4d 45 66 60 69 4e
[rtmpdump] DEBUG: 97 8b 62 ae f1 25 b5 e3 b7 06 a0 4d 86 59 c8 87
[rtmpdump] DEBUG: HandShake: Genuine Adobe Flash Media Server
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleServerBW: server BW = 2500000
[rtmpdump] DEBUG: HandleClientBW: client BW = 2500000 2
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 242 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: fmsVer, STRING: FMS/4,0,3,4044>
[rtmpdump] DEBUG: Property: <Name: capabilities, NUMBER: 255.00>
[rtmpdump] DEBUG: Property: <Name: mode, NUMBER: 1.00>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: level, STRING: status>
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
[rtmpdump] DEBUG: Property: <Name: description, STRING: Connection succeeded.>
[rtmpdump] DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
[rtmpdump] DEBUG: Property: <Name: data, OBJECT>
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: version, STRING: 4,0,3,4044>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: Invoking createStream
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 21 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking
[rtmpdump] DEBUG: Invoking _checkbw
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call
[rtmpdump] DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4
[rtmpdump] DEBUG: Invoking play
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 16419 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 32803 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[rtmpdump] DEBUG: HandleCtrl, received ctrl. type: 4, len: 6
[rtmpdump] DEBUG: HandleCtrl, Stream IsRecorded 1
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
[rtmpdump] DEBUG: HandleCtrl, received ctrl. type: 0, len: 6
[rtmpdump] DEBUG: HandleCtrl, Stream Begin 1
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 368 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: level, STRING: status>
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetStream.Play.Reset>
[rtmpdump] DEBUG: Property: <Name: description, STRING: Playing and resetting iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4.>
[rtmpdump] DEBUG: Property: <Name: details, STRING: iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4>
[rtmpdump] DEBUG: Property: <Name: clientid, STRING: qAA4Af-A>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking
[rtmpdump] DEBUG: HandleInvoke, onStatus: NetStream.Play.Reset
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 362 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: level, STRING: status>
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetStream.Play.Start>
[rtmpdump] DEBUG: Property: <Name: description, STRING: Started playing iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4.>
[rtmpdump] DEBUG: Property: <Name: details, STRING: iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4>
[rtmpdump] DEBUG: Property: <Name: clientid, STRING: qAA4Af-A>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking
[rtmpdump] DEBUG: HandleInvoke, onStatus: NetStream.Play.Start
[rtmpdump] Starting download at: 0.000 kB
[rtmpdump] DEBUG: RTMP_ClientPacket, received: notify 24 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: ignoring too small audio packet: size: 0
[rtmpdump] DEBUG: RTMP_ClientPacket, received: notify 44 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetStream.Data.Start>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: RTMP_ClientPacket, received: notify 494 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: duration, NUMBER: 3543.00>
[rtmpdump] DEBUG: Property: <Name: moovPosition, NUMBER: 36.00>
[rtmpdump] DEBUG: Property: <Name: width, NUMBER: 832.00>
[rtmpdump] DEBUG: Property: <Name: height, NUMBER: 468.00>
[rtmpdump] DEBUG: Property: <Name: videocodecid, STRING: avc1>
[rtmpdump] DEBUG: Property: <Name: audiocodecid, STRING: mp4a>
[rtmpdump] DEBUG: Property: <Name: avcprofile, NUMBER: 77.00>
[rtmpdump] DEBUG: Property: <Name: avclevel, NUMBER: 31.00>
[rtmpdump] DEBUG: Property: <Name: aacaot, NUMBER: 2.00>
[rtmpdump] DEBUG: Property: <Name: videoframerate, NUMBER: 25.00>
[rtmpdump] DEBUG: Property: <Name: audiosamplerate, NUMBER: 48000.00>
[rtmpdump] DEBUG: Property: <Name: audiochannels, NUMBER: 2.00>
[rtmpdump] DEBUG: Property: <Name: trackinfo, OBJECT>
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: length, NUMBER: 88575000.00>
[rtmpdump] DEBUG: Property: <Name: timescale, NUMBER: 25000.00>
[rtmpdump] DEBUG: Property: <Name: language, STRING: und>
[rtmpdump] DEBUG: Property: <Name: sampledescription, OBJECT>
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: sampletype, STRING: avc1>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: length, NUMBER: 170063872.00>
[rtmpdump] DEBUG: Property: <Name: timescale, NUMBER: 48000.00>
[rtmpdump] DEBUG: Property: <Name: language, STRING: und>
[rtmpdump] DEBUG: Property: <Name: sampledescription, OBJECT>
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: sampletype, STRING: mp4a>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] INFO: Metadata:
[rtmpdump] INFO: duration 3543.00
[rtmpdump] INFO: moovPosition 36.00
[rtmpdump] INFO: width 832.00
[rtmpdump] INFO: height 468.00
[rtmpdump] INFO: videocodecid avc1
[rtmpdump] INFO: audiocodecid mp4a
[rtmpdump] INFO: avcprofile 77.00
[rtmpdump] INFO: avclevel 31.00
[rtmpdump] INFO: aacaot 2.00
[rtmpdump] INFO: videoframerate 25.00
[rtmpdump] INFO: audiosamplerate 48000.00
[rtmpdump] INFO: audiochannels 2.00
[rtmpdump] INFO: trackinfo:
[rtmpdump] INFO: length 88575000.00
[rtmpdump] INFO: timescale 25000.00
[rtmpdump] INFO: language und
[rtmpdump] INFO: sampledescription:
[rtmpdump] INFO: sampletype avc1
[rtmpdump] INFO: length 170063872.00
[rtmpdump] INFO: timescale 48000.00
[rtmpdump] INFO: language und
[rtmpdump] INFO: sampledescription:
[rtmpdump] INFO: sampletype mp4a
[download] 594.00B at Unknown speed (00:00)
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 49187 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[download] 388.91KiB at Unknown speed (00:00)
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 65573 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 81957 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[download] 0.1% of ~754.80MiB at Unknown speed ETA Unknown ETA
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 98341 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[download] 0.1% of ~1.16GiB at 388.72KiB/s ETA Unknown ETA
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 114725 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[download] 0.2% of ~750.05MiB at 574.86KiB/s ETA 22:04
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 131109 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[download] 0.2% of ~875.05MiB at 621.59KiB/s ETA 27:16
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 147493 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[download] 0.3% of ~704.51MiB at 758.29KiB/s ETA 15:14
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 163877 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[download] 0.3% of ~829.51MiB at 860.35KiB/s ETA 17:08
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 180261 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 196645 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[download] 0.4% of ~684.63MiB at 826.86KiB/s ETA 13:35
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 40 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <onbwdone>
[download] 93.4% of ~637.31MiB at 2.30MiB/s ETA 00:18
[rtmpdump] DEBUG: HandleCtrl, received ctrl. type: 6, len: 6
[rtmpdump] DEBUG: HandleCtrl, Ping 597282405
[rtmpdump] DEBUG: sending ctrl. type: 0x0007
[download] 99.9% of ~637.32MiB at 2.31MiB/s ETA 00:00
[rtmpdump] DEBUG: ignoring too small audio packet: size: 0
[rtmpdump] DEBUG: RTMP_ClientPacket, received: notify 102 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetStream.Play.Complete>
[rtmpdump] DEBUG: Property: <Name: level, STRING: status>
[rtmpdump] DEBUG: Property: <Name: duration, NUMBER: 275.00>
[rtmpdump] DEBUG: Property: <Name: bytes, NUMBER: 667763683.00>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleCtrl, received ctrl. type: 1, len: 6
[rtmpdump] DEBUG: HandleCtrl, Stream EOF 1
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 372 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: level, STRING: status>
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetStream.Play.Stop>
[rtmpdump] DEBUG: Property: <Name: description, STRING: Stopped playing iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4.>
[rtmpdump] DEBUG: Property: <Name: details, STRING: iplayerstream/secure_auth/1500kbps/modav/bUnknown-ad178023-7d89-4b92-b8c7-660551b0d6e1_b0109bpc_1441368091319.mp4>
[rtmpdump] DEBUG: Property: <Name: clientid, STRING: qAA4Af-A>
[rtmpdump] DEBUG: Property: <Name: reason, STRING: >
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking
[rtmpdump] DEBUG: HandleInvoke, onStatus: NetStream.Play.Stop
[rtmpdump] DEBUG: Invoking deleteStream
[rtmpdump] DEBUG: Got Play.Complete or Play.Stop from server. Assuming stream is complete
[download] 99.9% of ~637.47MiB at 2.31MiB/s ETA 00:00
[rtmpdump] DEBUG: RTMP_Read returned: 18494
[rtmpdump] Download complete
[rtmpdump] DEBUG: Closing connection.
[rtmpdump] 667763048 bytes
[download] 100% of 636.83MiB
[bbc.co.uk] b012x69w: Downloading video page
[bbc.co.uk] b0139ftq: Downloading media selection XML
[debug] Invoking downloader on u'rtmp://iplayertokfs.fplive.net/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNDEzMzMwNSZlbmRfdGltZT0yMDE1MDkxNDE3MzMwNSZkaWdlc3Q9YzE1YjM1NDcxYjZmMjA2NDYzZDJjZjk2ODRjODY5ZWI='
[download] Destination: Space_Shuttle
-The_Final_Mission-b0139ftq.flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmp://iplayertokfs.fplive.net/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNDEzMzMwNSZlbmRfdGltZT0yMDE1MDkxNDE3MzMwNSZkaWdlc3Q9YzE1YjM1NDcxYjZmMjA2NDYzZDJjZjk2ODRjODY5ZWI=' -o Space_Shuttle
-_The_Final_Mission-b0139ftq.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 'iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNDEzMzMwNSZlbmRfdGltZT0yMDE1MDkxNDE3MzMwNSZkaWdlc3Q9YzE1YjM1NDcxYjZmMjA2NDYzZDJjZjk2ODRjODY5ZWI=' --playpath mp4:3200kbps/modav/bUnknown-4f313e9b-0852-43d5-98ef-97937b5230b2_b0139ftq_1441388651082 --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 : iplayertokfs.fplive.net
[rtmpdump] DEBUG: Parsed app : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNDEzMzMwNSZlbmRfdGltZT0yMDE1MDkxNDE3MzMwNSZkaWdlc3Q9YzE1YjM1NDcxYjZmMjA2NDYzZDJjZjk2ODRjODY5ZWI=
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : iplayertokfs.fplive.net
[rtmpdump] DEBUG: Port : 1935
[rtmpdump] DEBUG: Playpath : mp4:3200kbps/modav/bUnknown-4f313e9b-0852-43d5-98ef-97937b5230b2_b0139ftq_1441388651082
[rtmpdump] DEBUG: tcUrl : rtmp://iplayertokfs.fplive.net:1935/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNDEzMzMwNSZlbmRfdGltZT0yMDE1MDkxNDE3MzMwNSZkaWdlc3Q9YzE1YjM1NDcxYjZmMjA2NDYzZDJjZjk2ODRjODY5ZWI=
[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 : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNDEzMzMwNSZlbmRfdGltZT0yMDE1MDkxNDE3MzMwNSZkaWdlc3Q9YzE1YjM1NDcxYjZmMjA2NDYzZDJjZjk2ODRjODY5ZWI=
[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: Setting buffer time to: 36000000ms
[rtmpdump] Connecting ...
[rtmpdump] DEBUG: RTMP_Connect1, ... connected, handshaking
[rtmpdump] DEBUG: HandShake: Client type: 03
[rtmpdump] DEBUG: HandShake: Client digest offset: 430
[rtmpdump] DEBUG: HandShake: Initial client digest:
[rtmpdump] DEBUG: a7 aa 62 32 bc ba 4d 49 01 ed 15 63 1e 73 8f 56
[rtmpdump] DEBUG: e9 22 78 c4 82 92 cd 03 05 cf df ab 41 31 ae ba
[rtmpdump] DEBUG: HandShake: Type Answer : 03
[rtmpdump] DEBUG: HandShake: Server Uptime : 758070680
[rtmpdump] DEBUG: HandShake: FMS Version : 4.5.3.1
[rtmpdump] DEBUG: HandShake: Calculated digest key from secure key and server digest:
[rtmpdump] DEBUG: 82 d9 a2 33 53 b6 dc a0 86 51 34 1f 0d cc 74 6e
[rtmpdump] DEBUG: 5d 30 19 51 e2 33 9a 18 41 11 e0 1e e8 66 be 84
[rtmpdump] DEBUG: HandShake: Client signature calculated:
[rtmpdump] DEBUG: 4d a0 5e 82 d3 ae fa 16 ba 68 3c b0 69 37 2a 49
[rtmpdump] DEBUG: 45 4d 26 61 ca b7 1a 40 3d f8 df 1d 91 aa 4b ad
[rtmpdump] DEBUG: HandShake: Server sent signature:
[rtmpdump] DEBUG: 1f a7 98 84 af f3 71 b7 fb de f7 ac 9b fc 00 c3
[rtmpdump] DEBUG: 58 b3 c6 3a 4a 07 6d 2c 2e 04 2e ee 3a 30 e3 cf
[rtmpdump] DEBUG: HandShake: Digest key:
[rtmpdump] DEBUG: b3 84 6a 2e bb 1c 82 ac c5 6b 6e 49 00 28 83 45
[rtmpdump] DEBUG: 8d 2e 1a d5 b8 ab f8 12 d1 13 66 ac 11 ae cd 51
[rtmpdump] DEBUG: HandShake: Signature calculated:
[rtmpdump] DEBUG: 1f a7 98 84 af f3 71 b7 fb de f7 ac 9b fc 00 c3
[rtmpdump] DEBUG: 58 b3 c6 3a 4a 07 6d 2c 2e 04 2e ee 3a 30 e3 cf
[rtmpdump] DEBUG: HandShake: Genuine Adobe Flash Media Server
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleServerBW: server BW = 2500000
[rtmpdump] DEBUG: HandleClientBW: client BW = 2500000 2
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 16384
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 240 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: fmsVer, STRING: FMS/4,5,3,101>
[rtmpdump] DEBUG: Property: <Name: capabilities, NUMBER: 255.00>
[rtmpdump] DEBUG: Property: <Name: mode, NUMBER: 1.00>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: level, STRING: status>
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
[rtmpdump] DEBUG: Property: <Name: description, STRING: Connection succeeded.>
[rtmpdump] DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
[rtmpdump] DEBUG: Property: <Name: data, OBJECT>
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: version, STRING: 4,5,3,101>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: Invoking createStream
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 21 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking
[rtmpdump] DEBUG: Invoking _checkbw
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call
[rtmpdump] DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:3200kbps/modav/bUnknown-4f313e9b-0852-43d5-98ef-97937b5230b2_b0139ftq_1441388651082
[rtmpdump] DEBUG: Invoking play
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 16419 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 16384
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 115 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: level, STRING: error>
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetStream.Failed>
[rtmpdump] DEBUG: Property: <Name: description, STRING: 403 Forbidden>
[rtmpdump] DEBUG: Property: <Name: clientid, STRING: oAAWAWAA>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking
[rtmpdump] DEBUG: HandleInvoke, onStatus: NetStream.Failed
[rtmpdump] ERROR: Closing connection: NetStream.Failed
[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 : iplayertokfs.fplive.net
[rtmpdump] DEBUG: Parsed app : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNDEzMzMwNSZlbmRfdGltZT0yMDE1MDkxNDE3MzMwNSZkaWdlc3Q9YzE1YjM1NDcxYjZmMjA2NDYzZDJjZjk2ODRjODY5ZWI=
[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 : iplayertokfs.fplive.net
[rtmpdump] DEBUG: Port : 1935
[rtmpdump] DEBUG: Playpath : mp4:3200kbps/modav/bUnknown-4f313e9b-0852-43d5-98ef-97937b5230b2_b0139ftq_1441388651082
[rtmpdump] DEBUG: tcUrl : rtmp://iplayertokfs.fplive.net:1935/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNDEzMzMwNSZlbmRfdGltZT0yMDE1MDkxNDE3MzMwNSZkaWdlc3Q9YzE1YjM1NDcxYjZmMjA2NDYzZDJjZjk2ODRjODY5ZWI=
[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 : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNDEzMzMwNSZlbmRfdGltZT0yMDE1MDkxNDE3MzMwNSZkaWdlc3Q9YzE1YjM1NDcxYjZmMjA2NDYzZDJjZjk2ODRjODY5ZWI=
[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/bin/youtube-dl/main.py", line 19, in
youtube_dl.main()
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 410, in main
_real_main(argv)
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 400, in _real_main
retcode = ydl.download(all_urls)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1658, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 671, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 717, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1328, in process_video_result
self.process_info(new_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1590, in process_info
success = dl(filename, info_dict)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1532, in dl
return fd.download(name, info)
File "/usr/bin/youtube-dl/youtube_dl/downloader/common.py", line 342, in download
return self.real_download(filename, info_dict)
File "/usr/bin/youtube-dl/youtube_dl/downloader/rtmp.py", line 202, in real_download
self.report_error('rtmpdump exited with code %d' % retval)
File "/usr/bin/youtube-dl/youtube_dl/downloader/common.py", line 155, in report_error
self.ydl.report_error(_args, *_kargs)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 535, in report_error
self.trouble(error_message, tb)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 497, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

@EdgarCarpenter
Copy link
Author

@EdgarCarpenter EdgarCarpenter commented Sep 15, 2015

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.

@phantomflanflinger
Copy link

@phantomflanflinger phantomflanflinger commented Sep 15, 2015

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: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.bbc.co.uk/iplayer/episode/b069fv
h5/top-coppers-4-the-twist-of-the-french-nicker']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.09.09
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: rtmpdump 2.4
[debug] Proxy map: {}
[bbc.co.uk] b069fvh5: Downloading video page
[bbc.co.uk] b069fvcf: Downloading media selection XML
[debug] Invoking downloader on u'rtmp://iplayertokfs.fplive.net/iplayertok?token
=c3RhcnRfdGltZT0yMDE1MDkxNTA3MTc1NiZlbmRfdGltZT0yMDE1MDkxNTExMTc1NiZkaWdlc3Q9NTJ
jZTU5MTBlM2RhNmRiNmE5MTQwMzIyYzAwNzAxMTA='
[download] Destination: Top Coppers, 4. The Twist of the French Nicker-b069fvcf.
flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmp://iplayertokfs.fplive
.net/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNTA3MTc1NiZlbmRfdGltZT0yMDE1MDkxNT
ExMTc1NiZkaWdlc3Q9NTJjZTU5MTBlM2RhNmRiNmE5MTQwMzIyYzAwNzAxMTA=' -o 'Top Coppers,

  1. The Twist of the French Nicker-b069fvcf.flv.part' --swfVfy http://www.bbc.co
    .uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf --pag
    eUrl http://www.bbc.co.uk --app 'iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNTA3MT
    c1NiZlbmRfdGltZT0yMDE1MDkxNTExMTc1NiZkaWdlc3Q9NTJjZTU5MTBlM2RhNmRiNmE5MTQwMzIyYz
    AwNzAxMTA=' --playpath mp4:3200kbps/modav/bUnknown-1cea62e2-ffac-4a4f-973c-e2050
    08772fe_b069fvcf_1440956917399 --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 : iplayertokfs.fplive.net
    [rtmpdump] DEBUG: Parsed app : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNTA3
    MTc1NiZlbmRfdGltZT0yMDE1MDkxNTExMTc1NiZkaWdlc3Q9NTJjZTU5MTBlM2RhNmRiNmE5MTQwMzIy
    YzAwNzAxMTA=
    [rtmpdump] DEBUG: Number of skipped key frames for resume: 1
    [rtmpdump] DEBUG: Protocol : RTMP
    [rtmpdump] DEBUG: Hostname : iplayertokfs.fplive.net
    [rtmpdump] DEBUG: Port : 1935
    [rtmpdump] DEBUG: Playpath : mp4:3200kbps/modav/bUnknown-1cea62e2-ffac-4a4f-973c
    -e205008772fe_b069fvcf_1440956917399
    [rtmpdump] DEBUG: tcUrl : rtmp://iplayertokfs.fplive.net:1935/iplayertok?toke
    n=c3RhcnRfdGltZT0yMDE1MDkxNTA3MTc1NiZlbmRfdGltZT0yMDE1MDkxNTExMTc1NiZkaWdlc3Q9NT
    JjZTU5MTBlM2RhNmRiNmE5MTQwMzIyYzAwNzAxMTA=
    [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 : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNTA3MTc1Ni
    ZlbmRfdGltZT0yMDE1MDkxNTExMTc1NiZkaWdlc3Q9NTJjZTU5MTBlM2RhNmRiNmE5MTQwMzIyYzAwNz
    AxMTA=
    [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 : iplayertokfs.fplive.net
    [rtmpdump] DEBUG: Parsed app : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNTA3
    MTc1NiZlbmRfdGltZT0yMDE1MDkxNTExMTc1NiZkaWdlc3Q9NTJjZTU5MTBlM2RhNmRiNmE5MTQwMzIy
    YzAwNzAxMTA=
    [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 : iplayertokfs.fplive.net
    [rtmpdump] DEBUG: Port : 1935
    [rtmpdump] DEBUG: Playpath : mp4:3200kbps/modav/bUnknown-1cea62e2-ffac-4a4f-973c
    -e205008772fe_b069fvcf_1440956917399
    [rtmpdump] DEBUG: tcUrl : rtmp://iplayertokfs.fplive.net:1935/iplayertok?toke
    n=c3RhcnRfdGltZT0yMDE1MDkxNTA3MTc1NiZlbmRfdGltZT0yMDE1MDkxNTExMTc1NiZkaWdlc3Q9NT
    JjZTU5MTBlM2RhNmRiNmE5MTQwMzIyYzAwNzAxMTA=
    [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 : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNTA3MTc1Ni
    ZlbmRfdGltZT0yMDE1MDkxNTExMTc1NiZkaWdlc3Q9NTJjZTU5MTBlM2RhNmRiNmE5MTQwMzIyYzAwNz
    AxMTA=
    [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 "main.py", line 19, in
File "youtube_dl__init__.pyo", line 410, in main
File "youtube_dl__init__.pyo", line 400, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 1658, in download
File "youtube_dl\YoutubeDL.pyo", line 671, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 717, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 1328, in process_video_result
File "youtube_dl\YoutubeDL.pyo", line 1590, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1532, in dl
File "youtube_dl\downloader\common.pyo", line 342, in download
File "youtube_dl\downloader\rtmp.pyo", line 202, in real_download
File "youtube_dl\downloader\common.pyo", line 155, in report_error
File "youtube_dl\YoutubeDL.pyo", line 535, in report_error
File "youtube_dl\YoutubeDL.pyo", line 497, in trouble

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 15, 2015

@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.

@jbradsha
Copy link

@jbradsha jbradsha commented Sep 15, 2015

Please let me know what you need from UK and I'll try to help.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 15, 2015

@jbradsha read previous posts.

@bfiner
Copy link

@bfiner bfiner commented Sep 15, 2015

(https://www.unblock-us.com/ works with iplayer.) Youtube-dl doesn't work very often with iplayer.

@EdgarCarpenter
Copy link
Author

@EdgarCarpenter EdgarCarpenter commented Sep 16, 2015

@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
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.bbc.co.uk/iplayer/episode/b06b7w43/would-i-lie-to-you-series-9-episode-7']
[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] b06b7w43: Downloading video page
[bbc.co.uk] b06b7w40: Downloading media selection XML
[debug] Invoking downloader on u'rtmp://iplayertokfs.fplive.net/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNjAwMDk1MSZlbmRfdGltZT0yMDE1MDkxNjA0MDk1MSZkaWdlc3Q9ZDJmNjBlNGUyYjZlOWI4NDQyNzkyNmU5NTc2MWMzMzI='
[download] Destination: Would I Lie to You, Series 9 - Episode 7-b06b7w40.flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmp://iplayertokfs.fplive.net/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNjAwMDk1MSZlbmRfdGltZT0yMDE1MDkxNjA0MDk1MSZkaWdlc3Q9ZDJmNjBlNGUyYjZlOWI4NDQyNzkyNmU5NTc2MWMzMzI=' -o 'Would I Lie to You, Series 9 - Episode 7-b06b7w40.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 'iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNjAwMDk1MSZlbmRfdGltZT0yMDE1MDkxNjA0MDk1MSZkaWdlc3Q9ZDJmNjBlNGUyYjZlOWI4NDQyNzkyNmU5NTc2MWMzMzI=' --playpath mp4:3200kbps/modav/bUnknown-7639770d-8a59-45fb-b069-fe4a1bbd2174_b06b7w40_1441027203838 --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 : iplayertokfs.fplive.net
[rtmpdump] DEBUG: Parsed app : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNjAwMDk1MSZlbmRfdGltZT0yMDE1MDkxNjA0MDk1MSZkaWdlc3Q9ZDJmNjBlNGUyYjZlOWI4NDQyNzkyNmU5NTc2MWMzMzI=
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : iplayertokfs.fplive.net
[rtmpdump] DEBUG: Port : 1935
[rtmpdump] DEBUG: Playpath : mp4:3200kbps/modav/bUnknown-7639770d-8a59-45fb-b069-fe4a1bbd2174_b06b7w40_1441027203838
[rtmpdump] DEBUG: tcUrl : rtmp://iplayertokfs.fplive.net:1935/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNjAwMDk1MSZlbmRfdGltZT0yMDE1MDkxNjA0MDk1MSZkaWdlc3Q9ZDJmNjBlNGUyYjZlOWI4NDQyNzkyNmU5NTc2MWMzMzI=
[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 : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNjAwMDk1MSZlbmRfdGltZT0yMDE1MDkxNjA0MDk1MSZkaWdlc3Q9ZDJmNjBlNGUyYjZlOWI4NDQyNzkyNmU5NTc2MWMzMzI=
[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: Setting buffer time to: 36000000ms
[rtmpdump] Connecting ...
[rtmpdump] DEBUG: RTMP_Connect1, ... connected, handshaking
[rtmpdump] DEBUG: HandShake: Client type: 03
[rtmpdump] DEBUG: HandShake: Client digest offset: 430
[rtmpdump] DEBUG: HandShake: Initial client digest:
[rtmpdump] DEBUG: 91 76 23 55 f4 6e 72 c6 f0 5d 68 c2 81 d5 53 36
[rtmpdump] DEBUG: fa ad 22 2d 56 a6 0a d5 15 0a 49 1b 75 76 20 aa
[rtmpdump] DEBUG: HandShake: Type Answer : 03
[rtmpdump] DEBUG: HandShake: Server Uptime : 1748555610
[rtmpdump] DEBUG: HandShake: FMS Version : 4.5.3.1
[rtmpdump] DEBUG: HandShake: Calculated digest key from secure key and server digest:
[rtmpdump] DEBUG: 0e d7 97 8c 67 4f 6b 93 7d bf c6 18 b3 05 e6 b3
[rtmpdump] DEBUG: 39 a6 84 54 5a f5 a4 1a c3 a2 ee 2c a9 52 1b f1
[rtmpdump] DEBUG: HandShake: Client signature calculated:
[rtmpdump] DEBUG: 71 a2 de 07 f0 77 49 d5 d2 16 39 de 0a 8d 10 6c
[rtmpdump] DEBUG: e2 52 04 af 19 ca 28 40 4f 7a ce 38 88 7d 23 c3
[rtmpdump] DEBUG: HandShake: Server sent signature:
[rtmpdump] DEBUG: 56 15 31 8e d9 c8 c2 c8 68 53 51 55 88 cd e3 d2
[rtmpdump] DEBUG: 9e 72 03 ab e7 3c 58 b7 32 b0 86 1f d1 1b 5c 4c
[rtmpdump] DEBUG: HandShake: Digest key:
[rtmpdump] DEBUG: c1 80 4e 8e fb e6 30 35 fe 02 fc fd b6 a1 0d 36
[rtmpdump] DEBUG: 8f 36 05 ee ad 71 40 98 34 f6 c3 40 be 45 61 10
[rtmpdump] DEBUG: HandShake: Signature calculated:
[rtmpdump] DEBUG: 56 15 31 8e d9 c8 c2 c8 68 53 51 55 88 cd e3 d2
[rtmpdump] DEBUG: 9e 72 03 ab e7 3c 58 b7 32 b0 86 1f d1 1b 5c 4c
[rtmpdump] DEBUG: HandShake: Genuine Adobe Flash Media Server
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleServerBW: server BW = 2500000
[rtmpdump] DEBUG: HandleClientBW: client BW = 2500000 2
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 16384
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 240 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: fmsVer, STRING: FMS/4,5,3,101>
[rtmpdump] DEBUG: Property: <Name: capabilities, NUMBER: 255.00>
[rtmpdump] DEBUG: Property: <Name: mode, NUMBER: 1.00>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: level, STRING: status>
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
[rtmpdump] DEBUG: Property: <Name: description, STRING: Connection succeeded.>
[rtmpdump] DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
[rtmpdump] DEBUG: Property: <Name: data, ECMA_ARRAY>
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: version, STRING: 4,5,3,101>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: Invoking createStream
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 21 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking
[rtmpdump] DEBUG: Invoking _checkbw
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call
[rtmpdump] DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:3200kbps/modav/bUnknown-7639770d-8a59-45fb-b069-fe4a1bbd2174_b06b7w40_1441027203838
[rtmpdump] DEBUG: Invoking play
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 16419 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 16384
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 115 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: level, STRING: error>
[rtmpdump] DEBUG: Property: <Name: code, STRING: NetStream.Failed>
[rtmpdump] DEBUG: Property: <Name: description, STRING: 403 Forbidden>
[rtmpdump] DEBUG: Property: <Name: clientid, STRING: qAAkguZA>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking
[rtmpdump] DEBUG: HandleInvoke, onStatus: NetStream.Failed
[rtmpdump] ERROR: Closing connection: NetStream.Failed
[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 : iplayertokfs.fplive.net
[rtmpdump] DEBUG: Parsed app : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNjAwMDk1MSZlbmRfdGltZT0yMDE1MDkxNjA0MDk1MSZkaWdlc3Q9ZDJmNjBlNGUyYjZlOWI4NDQyNzkyNmU5NTc2MWMzMzI=
[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 : iplayertokfs.fplive.net
[rtmpdump] DEBUG: Port : 1935
[rtmpdump] DEBUG: Playpath : mp4:3200kbps/modav/bUnknown-7639770d-8a59-45fb-b069-fe4a1bbd2174_b06b7w40_1441027203838
[rtmpdump] DEBUG: tcUrl : rtmp://iplayertokfs.fplive.net:1935/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNjAwMDk1MSZlbmRfdGltZT0yMDE1MDkxNjA0MDk1MSZkaWdlc3Q9ZDJmNjBlNGUyYjZlOWI4NDQyNzkyNmU5NTc2MWMzMzI=
[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 : iplayertok?token=c3RhcnRfdGltZT0yMDE1MDkxNjAwMDk1MSZlbmRfdGltZT0yMDE1MDkxNjA0MDk1MSZkaWdlc3Q9ZDJmNjBlNGUyYjZlOWI4NDQyNzkyNmU5NTc2MWMzMzI=
[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())

@jashandeep-sohi
Copy link

@jashandeep-sohi jashandeep-sohi commented Sep 16, 2015

@jbradsha & @EdgarCarpenter
Could you provide rtmp logs that a browser sends.
That is, could you run rtmpsuck/rtmpsrv, change your hosts file so that iplayertokfs.fplive.net redirects to localhost and then try to watch iplayer videos in the browser.

@jashandeep-sohi
Copy link

@jashandeep-sohi jashandeep-sohi commented Sep 16, 2015

Also, HTTP requests/responses from the browser to any *mediaselector/5/* urls would be helpful.

@EdgarCarpenter
Copy link
Author

@EdgarCarpenter EdgarCarpenter commented Sep 17, 2015

So - I added:
127.0.0.1 iplayertokfs.fplive.net
at the end of my hosts file, VPN'd to the UK, and started rtmpsuck as root , started viewing a video - nothing in the rtmpsuck window but "Streaming on rtmp://0.0.0.0:1935". Tried again with rtmpsrv - same thing. Looked further on the web and found this old page http://pclosmag.com/html/issues/201104/page19.html , used it's iptable commands before and after running rtmpsuck / srv. Still nothing.

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).

@jashandeep-sohi
Copy link

@jashandeep-sohi jashandeep-sohi commented Sep 17, 2015

@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.

@jashandeep-sohi
Copy link

@jashandeep-sohi jashandeep-sohi commented Sep 17, 2015

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.

@EdgarCarpenter
Copy link
Author

@EdgarCarpenter EdgarCarpenter commented Sep 17, 2015

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!

@jashandeep-sohi
Copy link

@jashandeep-sohi jashandeep-sohi commented Sep 17, 2015

On Firefox open the Web Console & Chrome: https://developer.chrome.com/devtools

@jashandeep-sohi
Copy link

@jashandeep-sohi jashandeep-sohi commented Sep 17, 2015

@jsmithyop
Is Flash making the mediaselector requests or the browser? That is, are they showing up in the network logs?

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.

@jashandeep-sohi
Copy link

@jashandeep-sohi jashandeep-sohi commented Sep 17, 2015

No point. I'm setting up a VPN to look into this further anyways.

@EdgarCarpenter
Copy link
Author

@EdgarCarpenter EdgarCarpenter commented Sep 18, 2015

@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.

@jashandeep-sohi
Copy link

@jashandeep-sohi jashandeep-sohi commented Sep 18, 2015

@EdgarCarpenter I've been doing my own testing & searching and I've had some success...partially. It turns out with mediaset/apple-ipad-hls, the RTMP streams aren't geoblocked on limelight servers. So enjoy those while they last.

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.

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
6 participants
You can’t perform that action at this time.