Nokia H.264 version[]
It has been discovered that you can stream H.264 video via RTSP protocol by the following procedure:
- Get the programme media stream information
- Look for the media entry that has data like:
<media kind="video"
type="video/mpeg"
encoding="h264" >
<connection
priority="10"
kind="sis"
server="http://www.bbc.co.uk/mediaselector/4/sdp/"
identifier="b00108ld/iplayer_streaming_n95_wifi"
href="http://www.bbc.co.uk/mediaselector/4/sdp/b00108ld/iplayer_streaming_n95_wifi"
/>
</media>
- Extract the href property. e.g. 'http://www.bbc.co.uk/mediaselector/4/sdp/b00108ld/iplayer_streaming_n95_wifi'
- Do a simple web request to get the RTSP URL, e.g.: rtsp://3gp-acl.bbc.co.uk:554/3gpclip/iPlayer/wifi_5242452973988110849.3gp (there is also an http redirect to http://www.bbc.co.uk/mediaselector/4/real/b00108ld/iplayer_streaming_n95_wifi.ram in this request)
- Use vlc (0.8.6b and nightly build 20080802 have been tested) to stream (or save) it: 'vlc rtsp://3gp-acl.bbc.co.uk:554/3gpclip/iPlayer/wifi_5242452973988110849.3gp'
You could actually get vlc to do the web request of the RTSP URL to save the extra step. Some versions of vlc support this.
Dumping the Stream[]
- Use vlc to dump the stream in MPEG-TS format, e.g:
vlc --sout file/ts:stream.mpg http://www.bbc.co.uk/mediaselector/4/sdp/b00108ld/iplayer_streaming_n95_wifi or vlc --sout file/ts:stream.mpg rtsp://3gp-acl.bbc.co.uk:554/3gpclip/iPlayer/wifi_5242452973988110849.3gp
- Playback using mplayer, e.g:
mplayer stream.mpg
Symbian Application[]
The streams discussed here are designed to be used with the Nokia N96 iPlayer application. This application is actually just a skinned web browser widget, similar in design to the YouTube application available for Symbian smartphones. The application runs perfectly well on a Nokia N95 and probably on other phones of a similar specification, but to download it you need to get through a useragent-check on the mobile iPlayer website. If you wish to see this, the BBC iPlayer mobile site is here: http://www.bbc.co.uk/mobile/iplayer/ and the N96 user agent is:
Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN96/10.0.018; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413
The application itself is available here: http://www.bbc.co.uk/mobile/iplayer/iplayer.wgz Attempting to use the Nokia software on a Windows machine to install this file fails; however, navigating to this URL with the browser on an N95 results in a successful installation.
Nokia widgets are zip files with a .wgz extension, and opening the widget with an archive program such as 7-Zip reveals the inner workings of the iPlayer application; however, the majority of it is in dense, uncommented and somewhat obfuscated Javascript.
Whilst the application runs on the N95, problems may be encountered with RealPlayer which needs to have its network connection set explicitly (at least up to firmware v21). This can be achieved by starting RealPlayer from the Applications menu, and altering the Network Settings to match the network you're using - unfortunately there's no automatic way of doing this.
Server Side[]
It would appear that the BBC are making use of GPAC. Possibly used to serve up the 3GP/H.264/RTSP content.