|
Jun 10 2009
|
As of today, not only can you watch/record live BBC TV and Radio as described in my earlier post, you can now also record/watch BBC embedded videos and Live streams. Yes, you can now watch the tennis Live!
Remember to update to flvstreamer v1.8 or later.
To do this just use the following examples (not in Win32):
get_iplayer –pid ‘tv:<URL>’ –stream | mplayer -cache 512 –
OR
get_iplayer –pid ‘tv:<URL>’ –stream | vlc –
Or to record an embedded video (all OSes):
get_iplayer –type=tv –url='<URL>’
Where <URL> is a URL with an embedded video player like: http://news.bbc.co.uk/sport1/hi/tennis/8091015.stm
The ‘modes’ used by the BBC embedded media player streams in ‘flashnormal’ so you may need to add ‘–modes=flashnormal’ if you don’t normally have that in your mode list.
mplayer may not have all the correct codecs installed by default. The error you quoted isn’t fatal – mine says it also but still pays OK.
put double quotes or single quotes around the –pid option value like:
–pid “tv:http://www.bbc.co.uk/doctorwho/s4/episodes/?episode=S0_06&character=&action=videostream&playlist=/doctorwho/playlists/s0_06/video/s0_06_trl_02.xml&video=1&date=&summary=A preview of the next special.&info=&info2=&info3=&tag_file_id=s0_06_trl_02″
Hmm, perhaps it can’t pull the videos out of pages like that then, as it still says
INFO Trying to stream pid using type tv
INFO: pid not found in tv cache
WARNING: No programmes are available for this pid
when I put quotes around the bit you said. Oh well, it’s still great that I can get news videos and things!
The ‘WARNING: No programmes are available for this pid’ is always there for non-indexed programmes. Maybe you didn’t specify the –vmode=flashnormal mode? (note that this is now –modes=flashnormal in get_iplayer v2.04)
Forget all that!!! I missed a – from –stdout! Silly me.
The Windows Installer version seems to be still looking for rtmpdump.exe by default, so plonking the new flvstreamer.exe in the get_iplayer directory doesn’t get you the ‘upgrade’… and deleting rtmpdump.exe gets you a missing file error
Just rename flvstreamer.exe as rtmpdump.exe 🙂
Using updated Windows version and trying to pull the stream embedded in pages such as this:
http://www.bbc.co.uk/robertburns/works/a_bards_epitaph/
Have I merely got the commands wrong or is it a lost cause (at the moment)?
Thanks. It was just an ‘edge case’. I’ve fixed that now in 2.04 – see my latest blog post which even uses this as an example.
It’s certainly pulling something down now – my Win32 PC’s beeping frantically as the cmd window fills with characters – but how do I write it to a file (I haven’t yet found the right bits in the documentation)?
On win32 don’t use –stream, use –get to record the stream. Direct streaming doesn’t work correctly on win32 yet.
Apologies for not having threaded correctly – I should have replied in previous thread but mistakenly started a new one.
I am using command in Win32 per blog: get_iplayer –get –type=radio –url=”http://www.bbc.co.uk/robertburns/works/a_bards_epitaph/”
I probably confused matters yesterday with updates and file renaming (rtmpdump/flvstreamer) but, today, FLVStreamer 1.8a tries just flashaac2 mode and then reports:
Starting download at 0.000 KB
ERROR: ReadN, RTMP recv error 10060
ERROR: ReadPacket, failed to read RTMP packet header
Closing connection… done!
Are you sure yo have updated to get_iplayer v2.04 becasue this works for me.
Hmmmm. I’ve presumably failed to set up some pre-requisite stuff.
I uninstalled, manually deleted the .get_iplayer directory hierarchy in “Documents & Settings”, then downloaded the Automated Windows Installer and installed it. It declares itself to be 2.04 then updated the podcast & itv plugins and I then tried the command:
get_iplayer –get –type=radio –url=”http://www.bbc.co.uk/robertburns/works/a_bards_epitaph/”
with this result:
INFO Trying to stream pid using type radio
INFO: pid not found in radio cache
INFO: Mode list: iphone,flashaudio,flashaac1,flashaac2,realaudio,wma
INFO: Checking existence of default version
INFO: flashaac2 modes will be tried for version default
INFO: Trying flashaac2 mode to record radio: –
INFO: File name prefix = _-_http__www.bbc.co.uk_robertburns_works_a_bards_epitap
h__default
FLVStreamer v1.8a
(c) 2009 Andrej Stepanchuk, license: GPL
Connecting …
Connected…
Starting download at 0.000 KB
ERROR: ReadN, RTMP recv error 10060
ERROR: ReadPacket, failed to read RTMP packet header
Closing connection… done!
WARNING: Failed to stream file Downloads\/_-_http__www.bbc.co.uk_robertburns_wor
ks_a_bards_epitaph__default.partial.aac.flv via RTMP
INFO: skipping flashaac2 mode
ERROR: Failed to record ‘ – (http://www.bbc.co.uk/robertburns/works/a_bards_epi
taph/)’
I also tried other URLs with equivalent results.
Run with –verbose. Otherwise you may find that the flvstreamer compiled version is not liking your processor. Do you have an AMD or something non-intel? Are you behind a proxying firewall? Does any form of flvstreamer download work for you?
Thanks for your efforts and advice – much appreciated.
Pentium D820 2.80GHz. No proxy. In UK. Firewall turned off for test. I note:
DEBUG: Connect, … connected, handshaking
DEBUG: HandShake: Type Answer : 03
Also did get_iplayer –type=livetv
then get_iplayer –get 80001
and noted:
INFO: Mode list: flashnormal
INFO: Checking existence of default version
INFO: flashnormal modes will be tried for version default
INFO: Trying flashnormal mode to record livetv: BBC News 24 – live
INFO: File name prefix = BBC_News_24_live_2009-06-26_165330
FLVStreamer v1.8a
(c) 2009 Andrej Stepanchuk, license: GPL
Connecting …
Connected…
Starting download at 0.000 KB
ERROR: ReadN, RTMP recv error 10060
ERROR: ReadPacket, failed to read RTMP packet header
Closing connection… done!
Ordinary radio downloads work as expected.
First-time installation on different WinXP system with no adjustments made. No proxy or personal firewall, Intel inside. Happily coped with embedded in:
http://www.bbc.co.uk/glastonbury/2009/artists/spinaltap/
but
get_iplayer –get –type=radio –url=”http://www.bbc.co.uk/robertburns/works/address_to_the_toothache/” results in:
ERROR: ReadN, RTMP recv error 10060
ERROR: ReadPacket, failed to read RTMP packet body. len: 1673
Can you kindly run with –verbose then I might be able to debug this for you.
Sent to blog – or did you want whole thing pasted here?
Thanks, got that trace. I cannot reproduce this however hard I try. I can only think this must be something else on your system interfering with flvstreamer/rtmpdump. I’ve had several other users with this problem who found that it was their anti-virus/anti-spyware/anti-malware/personal firewall software causing this failure. Try (at your own risk) disabling all such software, rebooting and try again…
I must admit that I’ do get this same error once in a while – probably a bad connection but it does recover the next second I try.
OK – just one of those things, I guess. It happened on both WinXP-MCE systems I’ve tried – the second one has no anti-virus/personal firewall/whatever.
I also tried on 2 vanilla XPHome systems on the same network (turned off AV & Pers F/wall) – but with no joy. Even tried a file without underscores in the name.
Looks as if I need to dip my toes into Linux waters if a K6-2/400 can handle an appropriate distro in 384Mb.
Thanks for having persisted with this – it is much appreciated.
I’m really lost of why this won’t work for you… Your old PC will be fine – just choose a lightweight distro like Xubuntu – or another xfce desktop based one – the usual gnome and kde desktops are probably a bit memory hungry for 384MB if you also want to run another application!
I experience this exact same problem a lot and it’s rather annoying. I posted it about it back in March ( https://linuxcentre.net/bbc-readies-new-iplayer-hd-720×404-streams/#comment-2554 ) and you suggested it could be due to throttling and I think you could be right because it seems that it might be connection-dependent. I say this because I have run into this error a lot (although sometimes it’s worse than others) while using two different broadband connections from BT. However, when I used get_iplayer at my mum and dad’s house on their Orange broadband connection I experienced it only a few times (if any) and it downloaded much more smoothly.
On the same post, David Richardson also said that he ran into this problem ( https://linuxcentre.net/bbc-readies-new-iplayer-hd-720×404-streams/#comment-4782 ).
Hi,
I’m new to using this programme but desperately want to download: http://www.bbc.co.uk/glastonbury/2009/artists/boniver/. can someone tell me the exact commands that i need to put in, in order to download this fully? Thanks!
get_iplayer –url=”http://www.bbc.co.uk/glastonbury/2009/artists/boniver/”
Hi Guys,
Have tried a few links from glastonbury and can’t download either, have troed using –url”etc” and it downloads about 50k and then fails, Have included the –vebose output below have tried on a couple of machines as well.
Thanks,
C:\Program Files\get_iplayer>perl.exe get_iplayer.pl –url=”http://www.bbc.co.uk/glastonbury/2009/artists/florenceandthemachine/” –verbose
get_iplayer v2.05, Copyright (C) 2009 Phil Lewis
This program comes with ABSOLUTELY NO WARRANTY; for details use –warranty.
This is free software, and you are welcome to redistribute it under certain
conditions; use –conditions for details.
INFO: User prefs dir: C:\Users\Tim/.get_iplayer
INFO: System options dir: C:\ProgramData/get_iplayer/options
Current options:
ffmpeg = .\ffmpeg\bin\ffmpeg.exe
lame = .\lame\lame.exe
mplayer = .\mplayer\MPlayer-1.0rc2\mplayer.exe
output = Downloads\
pid = http://www.bbc.co.uk/glastonbury/2009/artists/florenceandthemachine/
rtmpdump = .\rtmpdump.exe
verbose = 1
INFO: Search args: ”
INFO: Will try prog types: tv
INFO: Programme not in download history
INFO: got 682 cache entries for tv
INFO Trying to stream pid using type tv
INFO: pid not found in tv cache
INFO: Cleaning pid Old: ‘http://www.bbc.co.uk/glastonbury/2009/artists/florenceandthemachine/’, New: ‘http://www.bbc.co.uk/glastonbury/2009/artists/florenceandthemachine/’
INFO: Programme not in download history
INFO: Getting page http://www.bbc.co.uk/glastonbury/2009/artists/florenceandthemachine/
INFO: iPlayer metadata URL = http://www.bbc.co.uk/glastonbury/2009/artists/florenceandthemachine/florenceandthemachine_1.xml
INFO: Getting page http://www.bbc.co.uk/glastonbury/2009/artists/florenceandthemachine/florenceandthemachine_1.xml
INFO: Version: default, VersionPid: ?server=cp52354.edgefcs.net&identifier=public/2009/florenceandthemachine_1&kind=akamai&application=ondemand
INFO: Version: default, VersionPid: ?server=cp52354.edgefcs.net&identifier=public/2009/florenceandthemachine_1&kind=akamai&application=ondemand
INFO: Version: default, VersionPid: ?server=cp52354.edgefcs.net&identifier=public/2009/florenceandthemachine_1&kind=akamai&application=ondemand
INFO: Will look for versions: default,original,signed,audiodescribed,opensubtitled,shortened,lengthened,other
INFO: Mode list: iphone,flashhigh1,flashhigh2,flashhigh3,flashnormal
INFO: Checking existence of default version
INFO: Version = default
INFO: Getting page http://www.bbc.co.uk/mediaselector/4/gtis/stream/?server=cp52354.edgefcs.net&identifier=public/2009/florenceandthemachine_1&kind=akamai&application=ondemand
INFO: flashnormal modes will be tried for version default
INFO: Trying flashnormal mode to record tv: –
INFO: Attempt number: 1 / 20
INFO: File name prefix = _-_http__www.bbc.co.uk_glastonbury_2009_artists_florenceandthemachine__default
INFO: “.\rtmpdump.exe” version 1.8
INFO: RTMP_URL: rtmp://cp52354.edgefcs.net:1935/ondemand?_fcs_vhost=cp52354.edgefcs.net&undefined, tcUrl: rtmp://cp52354.edgefcs.net:1935/ondemand?_fcs_vhost=cp52354.edgefcs.net&undefined, application: ondemand?_fcs_vhost=cp52354.edgefcs.net&undefined, authString: dbEcibAbcbsbDdxdTbkbVcdczasa1dxc1c5-bkt4JZ-c0-d0i_-JorECoEoOEqHsxC, swfUrl: http://news.bbc.co.uk/player/emp/2.11.7978_8433/9player.swf, file: Downloads\/_-_http__www.bbc.co.uk_glastonbury_2009_artists_florenceandthemachine__default.partial.avi, file_done: Downloads\/_-_http__www.bbc.co.uk_glastonbury_2009_artists_florenceandthemachine__default.avi
INFO: Command: “.\rtmpdump.exe” –verbose –port 1935 –protocol “0” –playpath “public/2009/florenceandthemachine_1” –host “cp52354.edgefcs.net” –swfUrl “http://news.bbc.co.uk/player/emp/2.11.7978_8433/9player.swf” –tcUrl “rtmp://cp52354.edgefcs.net:1935/ondemand?_fcs_vhost=cp52354.edgefcs.net&undefined” –app “ondemand?_fcs_vhost=cp52354.edgefcs.net&undefined” –resume –timeout 20 -o “Downloads\/_-_http__www.bbc.co.uk_glastonbury_2009_artists_florenceandthemachine__default.partial.avi.flv” 1>&2
INFO: Command exit code = 2
INFO: Command: “.\rtmpdump.exe” –verbose –port 1935 –protocol “0” –playpath “public/2009/florenceandthemachine_1” –host “cp52354.edgefcs.net” –swfUrl “http://news.bbc.co.uk/player/emp/2.11.7978_8433/9player.swf” –tcUrl “rtmp://cp52354.edgefcs.net:1935/ondemand?_fcs_vhost=cp52354.edgefcs.net&undefined” –app “ondemand?_fcs_vhost=cp52354.edgefcs.net&undefined” –resume –timeout 20 -o “Downloads\/_-_http__www.bbc.co.uk_glastonbury_2009_artists_florenceandthemachine__default.partial.avi.flv” 1>&2
WARNING: Failed to stream file Downloads\/_-_http__www.bbc.co.uk_glastonbury_2009_artists_florenceandthemachine__default.partial.avi.flv via RTMP
DEBUG: Record using flashnormal mode return code: ‘next’
INFO: skipping flashnormal mode
ERROR: Failed to record ‘ – (http://www.bbc.co.uk/glastonbury/2009/artists/florenceandthemachine/)’
Can you update get_iplayer to v2.06 and flvstreamer to 1.8b (probably simpler to just reinstall the installer exe) and try again. I’ve rewritten the BBC CDN parser and its more consistent now.
Could anyone advise on this please? I’ve been trying unsuccessfully to download a BBC Parliament video using the following:
get_iplayer –get –modes=flashnormal –pid ‘tv:http://news.bbc.co.uk/1/hi/programmes/bbc_parliament/7355623.stm‘
get_iplayer –get –modes=flashnormal –type=tv –url=’http://news.bbc.co.uk/1/hi/programmes/bbc_parliament/7355623.stm’
After trying both of those, these messages are displayed:
INFO: Trying to stream pid using type tv
INFO: pid not found in tv cache
ERROR: Failed to get version pid metadata from iplayer site
INFO: No versions exist for this programme
I’m really confused why it doesn’t work.
Would really appreciate some help. Thanks.
Hmm ,that works for me, maybe try running –verbose and email me the output.
Thank you very much for getting back to me. It’s happily working now.
The reason – as far as I can tell – is that I added apostrophes to the start and end of the webpage url without needing too. Once I removed them it was fine.
Thank you for an excellent program!
Hi, Thanks for your great job in here.
In my case, I have got some problem when I try to download files.
Below is output file of bedub mode.
C:\Program Files\get_iplayer>perl.exe get_iplayer.pl –get 673 –verbose
WARNING: Deprecated option in C:\ProgramData/get_iplayer/options: ‘rtmpdump = .\rtmpdump.exe’
INFO: Use –dump-opts to display all valid options
get_iplayer v2.09, Copyright (C) 2009 Phil Lewis
This program comes with ABSOLUTELY NO WARRANTY; for details use –warranty.
This is free software, and you are welcome to redistribute it under certain
conditions; use –conditions for details.
INFO: User prefs dir: C:\Users\Jae/.get_iplayer
INFO: System options dir: C:\ProgramData/get_iplayer/options
Current options:
ffmpeg = .\ffmpeg\bin\ffmpeg.exe
lame = .\lame\lame.exe
mplayer = .\mplayer\MPlayer-1.0rc2\mplayer.exe
output = Downloads\
rtmpdump = .\rtmpdump.exe
verbose = 1
INFO: Search args: ‘673’
INFO: Additionally getting cached programme data for tv
INFO: got 680 cache entries for tv
Matches:
673: X-Ray: Series 9 – Episode 7, BBC One, Factual,Wales,Consumer,TV, default
INFO: 1 Matching Programmes
INFO: Programme not in download history
INFO: iPlayer metadata URL = http://www.bbc.co.uk/iplayer/playlist/b00llkbh
INFO: Getting page http://www.bbc.co.uk/iplayer/playlist/b00llkbh
INFO: Version: default, VersionPid: b00ljfnm
INFO: Will look for versions: default,original,signed,audiodescribed,opensubtitled,shortened,lengthened,other
INFO: Mode list: iphone,flashhigh,flashnormal
INFO: Checking existence of default version
INFO: Version = default
INFO: Getting page http://www.bbc.co.uk/mediaselector/4/mtis/stream/b00ljfnm
INFO: iphone stream URL = http://www.bbc.co.uk/mediaselector/3/auth/iplayer_streaming_http_mp4/b00ljfnm?r=521514892578
ERROR: iphone stream is not yet ready
DEBUG: No iphone redirect stream
INFO: Found mode flashhigh1: (iplayer_streaming_h264_flv) rtmp h264 640×360 796kbps stream (CDN: akamai/5)
INFO: Found mode flashnormal1: (iplayer_broadband_streaming) rtmp vp6 640×360 512kbps stream (CDN: akamai/5)
INFO: Found mode flashvhigh1: (iplayer_streaming_h264_flv_high) rtmp h264 832×468 1500kbps stream (CDN: akamai/5)
INFO: Found mode subtitles1: (captions) http stream (CDN: http/10)
INFO: flashhigh1,flashnormal1 modes will be tried for version default
INFO: Trying flashhigh1 mode to record tv: X-Ray: Series 9 – Episode 7
INFO: Attempt number: 1 / 20
INFO: File name prefix = X-Ray_Series_9_-_Episode_7_b00llkbh_default
INFO: “.\rtmpdump.exe” version 1.8
INFO: RTMP_URL: rtmp://cp41752.edgefcs.net:1935/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-BqlDDq
FnKCoGwxD&aifp=v001&slist=mp4:secure/b000ljfnmH264121055379, tcUrl: rtmp://cp41752.edgefcs.net:80/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEdkdE
axd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-BqlDDqFnKCoGwxD&aifp=v001&slist=secure/b000ljfnmH264121055379, application: ondemand?_fcs_vhost=cp41752.ed
gefcs.net&auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-BqlDDqFnKCoGwxD&aifp=v001&slist=secure/b000ljfnmH264121055379, authString: dbEdkdEax
d7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-BqlDDqFnKCoGwxD, swfUrl: http://www.bbc.co.uk/emp/9player.swf?revision=10344_10753, file: Downloads\/X-Ray_S
eries_9_-_Episode_7_b00llkbh_default.partial.mp4, file_done: Downloads\/X-Ray_Series_9_-_Episode_7_b00llkbh_default.mp4
INFO: Command: “.\rtmpdump.exe” –verbose –port 1935 –protocol “0” –playpath “mp4:secure/b000ljfnmH264121055379?auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdD
cYapbT-bkxzvQ-c0-d0i_-BqlDDqFnKCoGwxD&aifp=v001” –host “cp41752.edgefcs.net” –swfUrl “http://www.bbc.co.uk/emp/9player.swf?revision=10344_10753” –t
cUrl “rtmp://cp41752.edgefcs.net:80/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-BqlDDqFnKCoGwxD&ai
fp=v001&slist=secure/b000ljfnmH264121055379” –app “ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-Bq
lDDqFnKCoGwxD&aifp=v001&slist=secure/b000ljfnmH264121055379” –resume –timeout 10 -o “Downloads\/X-Ray_Series_9_-_Episode_7_b00llkbh_default.partial
.mp4.flv” 1>&2
FLVStreamer v1.8e
(c) 2009 Andrej Stepanchuk, The Flvstreamer Team, license: GPL
DEBUG: Setting buffer time to: 36000000ms
Connecting …
DEBUG: Protocol : RTMP
DEBUG: Hostname : cp41752.edgefcs.net
DEBUG: Port : 1935
DEBUG: Playpath : mp4:secure/b000ljfnmH264121055379?auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-BqlDDqFnKCoGwxD&aifp=v001
DEBUG: tcUrl : rtmp://cp41752.edgefcs.net:80/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-B
qlDDqFnKCoGwxD&aifp=v001&slist=secure/b000ljfnmH264121055379
DEBUG: swfUrl : http://www.bbc.co.uk/emp/9player.swf?revision=10344_10753
DEBUG: app : ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-BqlDDqFnKCoGwxD&aifp=v001&slist
=secure/b000ljfnmH264121055379
DEBUG: flashVer : LNX 10,0,22,87
DEBUG: live : no
DEBUG: timeout : 10 sec
DEBUG: Connect, … connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 564011268
DEBUG: HandShake: FMS Version : 3.0.3.1
DEBUG: Connect, handshaked
INFO: Connected…
Starting download at 0.000 kB
DEBUG: FillBuffer, recv returned -1. GetSockError(): 10060
ERROR: ReadPacket, failed to read RTMP packet header
DEBUG: Writing data type: 00
Closing connection.
INFO: Command exit code = 2
INFO: Command: “.\rtmpdump.exe” –verbose –port 1935 –protocol “0” –playpath “mp4:secure/b000ljfnmH264121055379?auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdD
cYapbT-bkxzvQ-c0-d0i_-BqlDDqFnKCoGwxD&aifp=v001” –host “cp41752.edgefcs.net” –swfUrl “http://www.bbc.co.uk/emp/9player.swf?revision=10344_10753” –t
cUrl “rtmp://cp41752.edgefcs.net:80/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-BqlDDqFnKCoGwxD&ai
fp=v001&slist=secure/b000ljfnmH264121055379” –app “ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEdkdEaxd7aJbFcNbPbObpbrbYdDcYapbT-bkxzvQ-c0-d0i_-Bq
lDDqFnKCoGwxD&aifp=v001&slist=secure/b000ljfnmH264121055379” –resume –timeout 10 -o “Downloads\/X-Ray_Series_9_-_Episode_7_b00llkbh_default.partial
.mp4.flv” 1>&2
WARNING: Failed to stream file Downloads\/X-Ray_Series_9_-_Episode_7_b00llkbh_default.partial.mp4.flv via RTMP
DEBUG: Record using flashhigh1 mode return code: ‘next’
INFO: skipping flashhigh1 mode
INFO: Trying flashnormal1 mode to record tv: X-Ray: Series 9 – Episode 7
INFO: Attempt number: 1 / 20
INFO: File name prefix = X-Ray_Series_9_-_Episode_7_b00llkbh_default
INFO: “.\rtmpdump.exe” version 1.8
INFO: RTMP_URL: rtmp://cp41752.edgefcs.net:1935/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d0i_-HqlGIo
CqLBsFrzF&aifp=v001&slist=secure/b000ljfnmstreaming121055379, tcUrl: rtmp://cp41752.edgefcs.net:80/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEaqd
udibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d0i_-HqlGIoCqLBsFrzF&aifp=v001&slist=secure/b000ljfnmstreaming121055379, application: ondemand?_fcs_vhost=cp41
752.edgefcs.net&auth=dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d0i_-HqlGIoCqLBsFrzF&aifp=v001&slist=secure/b000ljfnmstreaming121055379, authString
: dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d0i_-HqlGIoCqLBsFrzF, swfUrl: http://www.bbc.co.uk/emp/9player.swf?revision=10344_10753, file: Downloa
ds\/X-Ray_Series_9_-_Episode_7_b00llkbh_default.partial.avi, file_done: Downloads\/X-Ray_Series_9_-_Episode_7_b00llkbh_default.avi
INFO: Command: “.\rtmpdump.exe” –verbose –port 1935 –protocol “0” –playpath “secure/b000ljfnmstreaming121055379?auth=dbEaqdudibKdgaTbId_dHaBdDbRb
pdpdCbg-bkxzvQ-c0-d0i_-HqlGIoCqLBsFrzF&aifp=v001” –host “cp41752.edgefcs.net” –swfUrl “http://www.bbc.co.uk/emp/9player.swf?revision=10344_10753” —
tcUrl “rtmp://cp41752.edgefcs.net:80/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d0i_-HqlGIoCqLBsFrzF&a
ifp=v001&slist=secure/b000ljfnmstreaming121055379” –app “ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d
0i_-HqlGIoCqLBsFrzF&aifp=v001&slist=secure/b000ljfnmstreaming121055379” –resume –timeout 10 -o “Downloads\/X-Ray_Series_9_-_Episode_7_b00llkbh_defa
ult.partial.avi.flv” 1>&2
FLVStreamer v1.8e
(c) 2009 Andrej Stepanchuk, The Flvstreamer Team, license: GPL
DEBUG: Setting buffer time to: 36000000ms
Connecting …
DEBUG: Protocol : RTMP
DEBUG: Hostname : cp41752.edgefcs.net
DEBUG: Port : 1935
DEBUG: Playpath : secure/b000ljfnmstreaming121055379?auth=dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d0i_-HqlGIoCqLBsFrzF&aifp=v001
DEBUG: tcUrl : rtmp://cp41752.edgefcs.net:80/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d0i_-H
qlGIoCqLBsFrzF&aifp=v001&slist=secure/b000ljfnmstreaming121055379
DEBUG: swfUrl : http://www.bbc.co.uk/emp/9player.swf?revision=10344_10753
DEBUG: app : ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d0i_-HqlGIoCqLBsFrzF&aifp=v001&slist
=secure/b000ljfnmstreaming121055379
DEBUG: flashVer : LNX 10,0,22,87
DEBUG: live : no
DEBUG: timeout : 10 sec
DEBUG: Connect, … connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 564012861
DEBUG: HandShake: FMS Version : 3.0.3.1
DEBUG: Connect, handshaked
INFO: Connected…
Starting download at 0.000 kB
DEBUG: FillBuffer, recv returned -1. GetSockError(): 10060
ERROR: ReadPacket, failed to read RTMP packet header
DEBUG: Writing data type: 00
Closing connection.
INFO: Command exit code = 2
INFO: Command: “.\rtmpdump.exe” –verbose –port 1935 –protocol “0” –playpath “secure/b000ljfnmstreaming121055379?auth=dbEaqdudibKdgaTbId_dHaBdDbRb
pdpdCbg-bkxzvQ-c0-d0i_-HqlGIoCqLBsFrzF&aifp=v001” –host “cp41752.edgefcs.net” –swfUrl “http://www.bbc.co.uk/emp/9player.swf?revision=10344_10753” —
tcUrl “rtmp://cp41752.edgefcs.net:80/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d0i_-HqlGIoCqLBsFrzF&a
ifp=v001&slist=secure/b000ljfnmstreaming121055379” –app “ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=dbEaqdudibKdgaTbId_dHaBdDbRbpdpdCbg-bkxzvQ-c0-d
0i_-HqlGIoCqLBsFrzF&aifp=v001&slist=secure/b000ljfnmstreaming121055379” –resume –timeout 10 -o “Downloads\/X-Ray_Series_9_-_Episode_7_b00llkbh_defa
ult.partial.avi.flv” 1>&2
WARNING: Failed to stream file Downloads\/X-Ray_Series_9_-_Episode_7_b00llkbh_default.partial.avi.flv via RTMP
DEBUG: Record using flashnormal1 mode return code: ‘next’
INFO: skipping flashnormal1 mode
ERROR: Failed to record ‘X-Ray: Series 9 – Episode 7 (b00llkbh)’
C:\Program Files\get_iplayer>
Try disabling all security software and see if it helps…
I’m trying out get_iplayer 2.16. I’d love to be able to download a few of the clips from the Worlds pages, but get_iplayer isn’t recognizing anything embedded on the page. Example:
# get_iplayer –verbose –debug –modes=flashnormal –type=tv –url=’http://www.bbc.co.uk/scotland/music/worlds/2009/bands/simon_fraser_university/’
get_iplayer v2.16, Copyright (C) 2009 Phil Lewis
This program comes with ABSOLUTELY NO WARRANTY; for details use –warranty.
This is free software, and you are welcome to redistribute it under certain
conditions; use –conditions for details.
INFO: User prefs dir: /home/ian/.get_iplayer
INFO: System options dir: /etc/get_iplayer/options
Current options:
modes = flashnormal
pid = http://www.bbc.co.uk/scotland/music/worlds/2009/bands/simon_fraser_university/
type = tv
verbose = 1
INFO: Search args: ”
INFO: Will try prog types: tv
WARNING: Cannot read /home/ian/.get_iplayer/download_history
INFO: Cache format from existing tv cache file: index,type,name,pid,available,episode,versions,duration,desc,channel,categories,thumbnail,timeadded,guidance,web
INFO: got 756 cache entries for tv
INFO Trying to stream pid using type tv
INFO: pid not found in tv cache
INFO: Cleaning pid Old: ‘http://www.bbc.co.uk/scotland/music/worlds/2009/bands/simon_fraser_university/’, New: ‘http://www.bbc.co.uk/scotland/music/worlds/2009/bands/simon_fraser_university/’
WARNING: Cannot read /home/ian/.get_iplayer/download_history
DEBUG: Using user-agent string: ‘Opera/9.64 (X11; Linux i686; U; en) Presto/2.1.1’
DEBUG: Using user-agent ‘Opera/9.64 (X11; Linux i686; U; en) Presto/2.1.1’
INFO: Getting page http://www.bbc.co.uk/scotland/music/worlds/2009/bands/simon_fraser_university/
DEBUG: No Encoding used on http://www.bbc.co.uk/scotland/music/worlds/2009/bands/simon_fraser_university/
INFO: iPlayer metadata URL = http://www.bbc.co.uk/scotland/music/worlds/2009/bands/simon_fraser_university/
INFO: Getting page http://www.bbc.co.uk/scotland/music/worlds/2009/bands/simon_fraser_university/
DEBUG: No Encoding used on http://www.bbc.co.uk/scotland/music/worlds/2009/bands/simon_fraser_university/
WARNING: No programmes are available for this pid
INFO: No versions exist for this programme
Try doing a ‘view source’ on the page and looking for the word ‘playlist’. There you will find them using a little Jvascript that builds the XML playlist URL: http://www.bbc.co.uk/scotland/music/worlds/2009/media/simon_fraser_university_medley.xml
This then works OK…
Well, that’s changed things a little, but I still seem to be getting an error message out of flvstreamer, like get_iplayer isn’t calling it like it expects:
INFO Trying to stream pid using type tv
INFO: pid not found in tv cache
INFO: Checking existence of default version
INFO: flashnormal1 modes will be tried for version default
INFO: Trying flashnormal1 mode to record tv: –
INFO: File name prefix = _-_http__www.bbc.co.uk_scotland_music_worlds_2009_media_simon_fraser_university_medley.xml_default
FLVStreamer v1.8i
(c) 2009 Andrej Stepanchuk, The Flvstreamer Team, license: GPL
ERROR: You must specify a hostname (–host) or url (-r “rtmp://host[:port]/playpath”) containing a hostname
WARNING: Failed to stream file ./_-_http__www.bbc.co.uk_scotland_music_worlds_2009_media_simon_fraser_university_medley.xml_default.partial.avi.flv via RTMP
INFO: skipping flashnormal1 mode
ERROR: Failed to record ‘ – (http://www.bbc.co.uk/scotland/music/worlds/2009/media/simon_fraser_university_medley.xml)’
See FAQ Q5
I fail to understand how Q5 is applicable here. I can view these clips without a problem from a regular web browser. Anyhow… if it’s not going to work, I can live with it. 🙂
I was just looking at your IP address and assumiong that was the one you used for get_iplayer. Very strange – from my UK IP it works fine using the same versions. Could you add –debug and –verbose to the command and email me the output? iplayer2 (at sign) linuxcentre.net
This tip is what finally made it work for me. Thank you, thank you! Viewing page source, finding the .xml url, and using that.
This was the exact command I used that worked:
get_iplayer –get –modes=flashnormal –type=tv –url=http://news.bbc.co.uk/media/emp/8330000/8330800/8330818.xml
Ooops,
What I meant to say was I was having trouble downloading the BBC’s embedded live F1 feed. I can get the news channel to download no problem with this command:
get_iplayer –get –modes=flashnormal –pid tv:http://news.bbc.co.uk/1/hi/uk/7459669.stm
But I fail with F1. I’d looked at the source of the website, and it does seem to be obfuscated:
script language=”” type=”text/” src=”/js/app/av/live_media_player/lmp.js”>
new bbc.fmtj.apps.lmp({attachTo:’.f1LMPWrapper’}).initialise()
I presume f1LMPWrapper is designed to stop me doing what I am trying to do!
Download v2.33. I found that the URL below worked. I found the URL by running firebug under firefox, loading the page and pressing play. In the NET tab in firebug you’ll see a URL with mediaselector in it – that’s the one to use (please retype the double quotes below – the blog converts them incorrectly).
get_iplayer –url=”http://www.bbc.co.uk/mediaselector/4/gtis/?server=cp52115.live.edgefcs.net&identifier=sport1a@s2388&kind=akamai&application=live&cb=28022″
Splendido. I take it the Beeb are deliberately trying to make this hard, given the extra steps over and above the Live News.
I don’t thinks so – just different web devs using different methods and .
WinXP; get_iplayer 2.40; FLVStreamer v1.8k.
I tried command of:
get_iplayer –get –type=radio –url=”http://www.bbc.co.uk/robertburns/works/the_guidwife_of_wauchope_house_to_robert_burns_the_airshire_bard/”
but FLV crashed out with following info:
(c) 2009 Andrej Stepanchuk, The Flvstreamer Team, license: GPL
INFO: Command exit code 5 (raw code = 1280)
WARNING: Failed to stream file C:/Program Files/get_iplayer/Downloads/The_Guidwife_of_Wauchope-House_to_Robert_Burns_the_Airshire_Bard_-_The_Guidwife_of_Wauchope-House_to_Robert_Burns_the_Airshire_Bard_http__www.bbc.co.uk_robertburns_works_
the_guidwife_of_wauchope_house_to_robert_burns_the_airshire_bard__defa.partial.m
p3.flv via RTMP
Shorter filenames work OK and longer filenames fail identically so, especially given the “doubled-up” file prefix, is there anything I can do to to be able to record these embedded items?
I’ll fix that doubling up. In the mean time use: –fileprefix=”<name> – <episode>”
The PID is the bit that is very long…
Workaround is fully effective. Thankyou.
I’d attempted something similar(ish) with –fileprefix but, apart from anything else, didn’t realise that double quotes were required.
The fix in the latest version is working just fine. Happily, I haven’t yet triggered your 255-limit trap.
Thankyou very much.
This parsing for this embedded player is not working for me
./get_iplayer –type tv –url=tv:http://www.bbc.co.uk/cbbc/watch/skatenation/wpskatenationtips_1 –modes=flashnormal –verbose
get_iplayer v2.41, Copyright (C) 2009 Phil Lewis
Current options:
modes = flashnormal
pid = tv:http://www.bbc.co.uk/cbbc/watch/skatenation/wpskatenationtips_1
type = tv
verbose = 1
INFO: Search args: ”
INFO: Will try prog types: tv
INFO: Programme not in download history
INFO: got 880 cache entries for tv
INFO Trying to stream pid using type tv
INFO: pid not found in tv cache
INFO: Cleaning pid Old: ‘http://www.bbc.co.uk/cbbc/watch/skatenation/wpskatenationtips_1’, New: ‘http://www.bbc.co.uk/cbbc/watch/skatenation/wpskatenationtips_1’
Matches:
: – , , ,
INFO: 1 Matching Programmes
INFO: Programme not in download history
INFO: Getting page http://www.bbc.co.uk/cbbc/watch/skatenation/wpskatenationtips_1
INFO: iPlayer metadata URL = http://www.bbc.co.uk/cbbc/watch/skatenation/wpskatenationtips_1
INFO: Getting page http://www.bbc.co.uk/cbbc/watch/skatenation/wpskatenationtips_1
WARNING: No programmes are available for this pid
INFO: No versions exist for this programme
Look in the page source for an xml url – that will probably work. Sometimes it is obfuscated and you can use the firefox firebug plugin to see which XML URLs are loaded by the browser when it plays the content using flash.
Managed to work out those that are part of bigger sites, though I’m sure I’m too late (I haven’t read latest comments). Find out where the XML for the embedded player is and make that part of the call for get_iplayer
for example;
get_iplayer –modes=flashnormal –pid “tv:http://www.bbc.co.uk/doctorwho/playlists/misc/video/dreamland_cassie_animation_01.xml“