RTMPDump v2.1d and BBC iPlayer1 Attachment(s)
These are the three batch files I use for downloading 'Listen Again' radio shows from the BBC iPlayer, for station Radio 4 Extra (formerly Radio 7), using RTMPdump.exe and RTMPsrv.exe v2.1d :
Note : The only edit needed each time is in line 2 of the first file, replacing the 8 zero's with the 8 digit PID - Programme ID - from the URL address of the iPlayer page that plays the radio show you want. Note : I set up these files on a test laptop that was running Windows 7. The HOSTS directory address on your computer may be different in earlier versions of Windows. Note : I am including an attachment containing all three of these batch files, plus some other files that I find useful. You'll just need to extract the .zip file to an empty directory and add your preferred version of RTMPDump.exe and RTMPsrv.exe (use v2.1d or later). Run #1 - Preliminary Matters + Start RTMPSRV.bat Code:
@echo off Run #3 - Run RTMPdump_run.bat Code:
@echo off Run #4 - Rename FLV file.bat Code:
@echo off |
Parse a BBC iPlayer MediaSelector XML file using JavascriptThis is a method for downloading an iPlayer file using a MediaSelector url (e.g. obtained from http://www.bbc.co.uk/radio/aod/avail...adio4extra.xml ).
The code, below, is the content for the file Download.htm (a file which runs Javascript). Create an empty text file using NOTEPAD.EXE and copy-and-paste the HTML code below into it. This type of Javascript requires Internet Explorer. Run the .HTM file from your hard disk, in Internet Explorer; it won't run if you upload it to the internet. To run it successfully, the user need only change the MediaSelector url highlighted in red (i.e. substitute the MediaSelector url of the iPlayer radio show you want to download). The .HTM file creates a .BAT (batch) file on your Desktop. Put RTMPDUMP.EXE in the directory C:\Program Files\rtmpdump in order to run this .BAT file. It downloads a media file with the extension .mp4 so you must alter that file's extension from .mp4 to .flv (and play it in GOM Player, or in Winamp 5.60 or later). The media file is an AAC file at 128 kbps (the highest quality used by the radio iPlayer). MP4 Audio using AAC at 128 kbps is an iTunes format file. Note - I have only been able to test this method using Internet Explorer 8, on a borrowed laptop running Windows 7. Code:
<html> |
Parse a BBC iPlayer MediaSelector XML file using JavascriptThis is a Batch file which performs the same function as the .HTM file in my post of yesterday (above).
Code:
@ECHO OFF |
Download from BBC iPlayer - TV Show - Javascript methodThis is a method for downloading an iPlayer TV stream using its MediaSelector url.
Just like a radio show, a tv show/stream has its own unique 8-digit ID number, which is contained in the MediaSelector URL for that stream. It is displayed - amongst other places - on the Playlist xml page associated with the particular stream. That 8-digit ID (identifier) can be used in the javascript code set out below. See my other posts, above, for further details of the MediaSelector ID and how to find it. The HTML code, below, is the content for the file TV_Download.htm (a file which runs Javascript). All you need do is change the 8-digit ID number highlighted in red for the actual MediaSelector 8-digit ID of the tv show you want to download. If you alter the sections highlighted in blue, you can download instead a stream running at a different bitrate. Details of the available bitrates for each tv show are given in that show's MediaSelector page. Each tv show is offered by the BBC in half a dozen different bitrates, from 184 kbps to 1500 kbps. You can also choose either a LIMELIGHT server or an AKAMAI server for some bitrates. There is not much difference in video or audio quality between the two types, at any given bitrate; but there may be a difference in file size. If you open the .HTML file in Internet Explorer 8 or 9, and allow the javascript to run, it will create a .bat batch file at C:\MediaSelector.bat containing the download command. You then run that batch file to do the actual download. The tv show will, by default, download into your C:\ root directory. You must copy the program RTMPDUMP.EXE into the folder "C:\Program Files\rtmpdump" in order for this method to succeed. Quote:
|
Re: Download from BBC iPlayer - TV Show - Javascript methodQuote:
|
Re: Download from BBC iPlayer - TV Show - Javascript methodQuote:
RTMPDump v2.1d :confused: |
RTMPDump and BBC iPlayerI've posted this method, which combines RTMPDUMP with JavaScript, because I was asked - by PM - to suggest an easy method for choosing between the 9 different streams the BBC server provides for each tv show available on iPlayer.
For television, the BBC server offers 5 different bitrates, 4 of which are available from two different suppliers. My method makes it easy to specify the bitrate you want and the server you want. Most of the download methods available online don't give the user any choice at all as to bitrate or supplier, but merely capture a default version, determined either by the download program being used or by the iplayer software. I'm not aware of any other solution which gives the user complete control over which bitrate and supplier to use. A lower bitrate can be useful if you have a slow broadband connection or only a dial-up connection, and the size of the downloaded file can be different - even for the same bitrate - depending upon which supplier is chosen. Although this thread has discussed a particular version of RTMPDUMP, using Windows 7 I've not noticed that any version of RTMPDUMP is better or worse than any other. I've mainly used v2.1d as it happens. |
Re: RTMPDump v2.1d and BBC iPlayerHere is a similar HTML file, the contents of TV_live.htm, for recording a live tv stream. This needs rtmpdump version 2.4 (at C:\Program Files\RTMPDUMP).
This is valid only for the AKAMAI server (won't work with a LIMELIGHT stream). It creates a .bat file in C:\ root which must be run to do the actual recording. Code:
<html> |
Play downloading stream using FFPLAYAny .flv or .mp4 video stream can be watched while the stream is still downloading, using the command line utility FFPLAY.EXE
The build to use (with Windows XP/Vista/7) is FFPLAY release 16573 - http://ffmpeg.arrozcru.org/builds/sh...-win32.tar.bz2 The ffplay syntax is - ffplay.exe -bufsize 4096 *.* The command line is (for example) - "C:\Program Files\FFPLAY\ffplay.exe" -bufsize 4096 *.flv If the stream is downloading as .mp4 rather than as .flv then change *.flv to *.mp4 instead Put that command line in a .bat batch file (e.g. play.bat) and put the .bat file in the directory in which the stream is downloading, then run the batch file. |
Avoid receiving a Security PromptMy scripts - above - might cause the following security prompt (in Internet Explorer):
"An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?" To avoid receiving that prompt, in Windows 7 set the following Registry value: HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings\Zones\0 "1201"=dword:00000000 |
All times are GMT -6. The time now is 08:15 PM. |