View Single Post
  #4  
Old 04-07-2011, 02:44 AM
Ed999 Ed999 is offline
Senior Member
 
Join Date: Feb 2009
Posts: 115
Ed999 is on a distinguished road
Default

iPlayer - Television


Archive TV (Akamai server) -

In the case of archive TV shows (non-iPlayer shows, available more or less permanently on the BBC website, such as educational and scientific shows), build this command -


1. In the HTML code of the BBC webpage which plays the file, find the URL address of the Playlist (which is always an .XML file). Here’s an example of what to look for:

http://www.bbc.co.uk/archive/xml/76/20.xml

2. Open that Playlist page, which contains the SERVER and IDENTIFIER data. Construct the following URL (on a single line) and use it to open the Media Selector page :

http://www.bbc.co.uk/mediaselector/4/gtis/stream/?server=[SERVER]&identifier=[IDENTIFIER]

Example:
http://www.bbc.co.uk/mediaselector/4...e/OAT_BBC_7620
3. Look at the Media Selector page, containing the APPLICATION (always 'ondemand') and the TOKEN data. Construct the following URL, and use it to download the file :

rtmpdump -r "rtmp://[SERVER]:1935/ondemand?_fcs_vhost=[SERVER]&auth=[AUTH]&aifp=v001&slist=[SLIST]" --tcUrl "rtmp://[SERVER]:1935/ondemand?_fcs_vhost=[SERVER]&auth=[AUTH]&aifp=v001&slist=[SLIST]" --app "ondemand?_fcs_vhost=[SERVER]&auth=[AUTH]&aifp=v001&slist=[SLIST]" --auth "[AUTH]" -W "http://www.bbc.co.uk/emp/9player.swf?revision=18182_20020" -o output.flv


Example:

From Playlist page -
set server=cp47317.edgefcs.net
set identifier=archive/white/OAT_BBC_7620

From TOKEN section of Media Selector page -
set auth=daEbGdzdtcqdXaZbmdDdBcdcBdzd6cjd2aA-bmKWSH-bWG-DqqGJpCqOBoFpzL
set slist=archive/white/OAT_BBC_7620

rtmpdump -r "rtmp://%server%:1935/ondemand?_fcs_vhost=%server%&auth=%auth%&aifp=v001 &slist=%slist%" --tcUrl "rtmp://%server%:1935/ondemand?_fcs_vhost=%server%&auth=%auth%&aifp=v001 &slist=%slist%" --app "ondemand?_fcs_vhost=%server%&auth=%auth%&aifp=v00 1&slist=%slist%" --auth "auth=%auth%&aifp=v001&slist=%slist%" -W "http://www.bbc.co.uk/emp/9player.swf?revision=18182_20020" -o output.flv

Note:
1. The slist element is normally identical to the identifier element.


This is the bare bones Command -

rtmpdump --protocol 0 --host %server% -a ondemand?_fcs_vhost=%server%&auth=%auth%&aifp=v001 &slist=%slist% -y %identifier% -o output.flv

Notes:
1. In Win9x must be run from a PIF with Initial Environment of 1024 KB.
2. Make sure there are NO spaces in the -a string, especially not before &slist=%slist%


TV :

For regular tv shows, available through the iPlayer -

Available servers: Akamai, Limelight
Available streams:
396 kbps (a.k.a. 400), 480 kbps,
796 kbps (a.k.a. 800), 1500 kbps

Bitrate: 396 (Limelight) = 400 x 224 px
Bitrate: 480 (Limelight) = 640 x 360 px

Smallest Picture Size -
Bitrate=396 kbps (Using: Limelight)
Size: 400 x 224 px (Ratio = 1.79)

Best(?) Picture Size -
Bitrate=480 kbps (Using: Limelight)
Size: 640 x 360 px (Ratio = 1.77)


1. LIMELIGHT -

SET PATH=%path%;"C:\RTMPdump"


Settings which do NOT change -

SET server=bbcmedia.fcod.llnwd.net
SET application=a1414/e3
SET as=adobe-hmac-sha256
SET av=1
SET te=connect


Settings from Media Selector page -

Example:

SET mp=iplayerstream/secure_auth/800kbps/MP/b00x1vjs_1293464942.mp4,iplayerstream/secure_auth/480kbps/MP/b00x1vjs_1293465199.mp4,iplayerstream/secure_auth/400kbps/b00x1vjs_1293465197.mp4,iplayerstream/secure_auth/1500kbps/MP/b00x1vjs_1293465202.mp4

SET et=1293612957

SET fmta-token=8c87aca066f4d6dc137e13f190e1a5336ef692a3a089 d3e7f7b7792c4ebc2ee9

SET identifier=mp4:iplayerstream/secure_auth/480kbps/MP/b00x1vjs_1293465199.mp4


This is the bare bones Command -

rtmpdump --protocol 0 --host %server% -a %application%?as=%as%&av=%av%&te=%te%&mp=%mp%&et=% et%&fmta-token=%fmta-token% -y "%identifier%" -o output_Limelight.flv


2. AKAMAI -

SET PATH=%path%;"C:\RTMPdump"


Settings which do NOT change -

SET application=ondemand
SET aifp=v001


Settings from Media Selector page -

Example:

SET server=cp41752.edgefcs.net

SET auth=daEcLcea4cTdNc5dRcdavdrd8a4azbscDdw-bngUce-bWG-IppDGpBqODuHqyF

SET slist=secure/800kbps/amicoa31-00028261-dance_morecambewisexmas_singinginrain_Flash9_Med_v 1_0.mp4;secure/1500kbps/amicoa31-00028261-dance_morecambewisexmas_singinginrain_Flash9_Hi_v1 _0.mp4;public/unsecure/1500kbps/amicoa31-00028261-dance_morecambewisexmas_singinginrain_Flash9_Hi_v1 _0.mp4;public/unsecure/amicoa31-00028261-dance_morecambewisexmas_singinginrain_Flash8_v1_1; public/unsecure/800kbps/amicoa31-00028261-dance_morecambewisexmas_singinginrain_Flash9_Med_v 1_0.mp4

SET identifier=secure/800kbps/amicoa31-00028261-dance_morecambewisexmas_singinginrain_Flash9_Med_v 1_0.mp4


This is the bare bones Command -

rtmpdump --protocol 0 --host %server% -a %application%?auth=%auth%&aifp=%aifp%&slist=%slist % -y "%identifier%" -o output_Akamai.flv

Make sure there are NO spaces in the -a string, especially not in &slist=%slist%


Sometimes the identifier must be dealt with as follows, moving part of the identifier string [the path] into the -y switch [leaving only the filename in the SET instruction]:-

SET identifier=amicoa31-00028261-dance_morecambewisexmas_singinginrain_Flash9_Med_v 1_0.mp4

-y "secure/800kbps/%identifier%"

Last edited by Ed999 : 04-07-2011 at 04:12 AM.
Reply With Quote