<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Slash Dot Dash: BBC iPlayer on the iPhone </title>
    <link>http://www.slashdotdash.net/articles/2008/03/08/bbc-iplayer-on-the-iphone</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Rolling on Rails</description>
    <item>
      <title>BBC iPlayer on the iPhone </title>
      <description>&lt;p style="float:right"&gt;&lt;a href="http://www.slashdotdash.net/images/iplayer1.jpg"&gt;&lt;img src="http://www.slashdotdash.net/images/iplayer1p.jpg" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Yesterday the &lt;a href="http://news.bbc.co.uk/1/hi/technology/7283702.stm"&gt;&lt;span class="caps"&gt;BBC&lt;/span&gt; announced&lt;/a&gt; that their &lt;a href="http://www.bbc.co.uk/iplayer/"&gt;iPlayer&lt;/a&gt; video on demand service was available for the iPhone (and iPod Touch). There&amp;#8217;s a more in depth post on the &lt;a href="http://www.bbc.co.uk/blogs/bbcinternet/2008/03/bbc_iplayer_on_iphone_behind_t.html"&gt;&lt;span class="caps"&gt;BBC&lt;/span&gt; Internet Blog&lt;/a&gt; where they give details on the technical implementation.&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;Back to &lt;span class="caps"&gt;BBC&lt;/span&gt; iPlayer on iPhone implementation: we&amp;#8217;re not using the new Apple &lt;span class="caps"&gt;SDK&lt;/span&gt;, nor are we using the much-rumoured Flash for iPhone (no &amp;#8211; we haven&amp;#8217;t seen it, either). Instead, we&amp;#8217;re creating 516Kbps streams (400Kbps H.264 video, 116Kbps &lt;span class="caps"&gt;AAC&lt;/span&gt; audio) that show off &lt;span class="caps"&gt;BBC&lt;/span&gt; programmes brilliantly on an iPhone.&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;It&amp;#8217;s interesting to read about the raw processing power required to transcode their 24 simultaneous incoming programmes, for a peak data rate of over a gigabit per second of incoming video.&lt;/p&gt;


	&lt;p&gt;I tried out an episode of Top Gear and was impressed with both the streaming speed and the quality of the video (check out the images below). The only downside is that it only supports streaming and requires a WiFi connection; unsurprisingly, &lt;span class="caps"&gt;EDGE&lt;/span&gt; isn&amp;#8217;t fast enough. Ideally it would be fantastic to be able to download a programme to watch &amp;#8216;offline&amp;#8217;, such as on a train (I&amp;#8217;ll keep my finger&amp;#8217;s crossed).&lt;/p&gt;


	&lt;p style="float:left"&gt;&lt;a href="http://www.slashdotdash.net/images/iplayer2.jpg"&gt;&lt;img src="http://www.slashdotdash.net/images/iplayer2p.jpg" style="margin:0;" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p style="float:left"&gt;&lt;a href="http://www.slashdotdash.net/images/iplayer3.jpg"&gt;&lt;img src="http://www.slashdotdash.net/images/iplayer3p.jpg" style="margin:0;" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p style="float:left"&gt;&lt;a href="http://www.slashdotdash.net/images/iplayer4.jpg"&gt;&lt;img src="http://www.slashdotdash.net/images/iplayer4p.jpg" style="margin:0;" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;h3 style="clear:both;"&gt;Update&lt;/h3&gt;


	&lt;p&gt;I knocked up a &lt;a href="http://pastie.org/164454"&gt;quick Ruby script to download the mp4 files&lt;/a&gt; that the iPhone version uses (it uses wget).&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;ruby iplayer_download.rb http://www.bbc.co.uk/iplayer/page/item/b0074fvk.shtml&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;&lt;strong&gt;Now enhanced with the help of Richard &amp;#38; Richard via the comments.&lt;/strong&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 08 Mar 2008 18:23:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:03366842-64bc-4a93-91cd-073be1aca36a</guid>
      <author>ben@slashdotdash.net (Ben)</author>
      <link>http://www.slashdotdash.net/articles/2008/03/08/bbc-iplayer-on-the-iphone</link>
      <category>iPhone</category>
    </item>
    <item>
      <title>"BBC iPlayer on the iPhone " by Ben</title>
      <description>&lt;p&gt;The &lt;a href="http://news.bbc.co.uk/1/hi/technology/7293988.stm" rel="nofollow"&gt;BBC have &amp;#8216;fixed&amp;#8217;&lt;/a&gt; the iPlayer so the original method no-longer works. Don&amp;#8217;t worry, this has been &lt;a href="http://po-ru.com/diary/bbc-iplayer-fix-hacked-again/" rel="nofollow"&gt;circumvented already&lt;/a&gt; (&lt;a href="http://po-ru.com/files/iplayer-dl" rel="nofollow"&gt;download the Ruby script&lt;/a&gt;).&lt;/p&gt;</description>
      <pubDate>Fri, 14 Mar 2008 18:04:56 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:76783512-5c37-41ab-ac63-98040c1dd611</guid>
      <link>http://www.slashdotdash.net/articles/2008/03/08/bbc-iplayer-on-the-iphone#comment-400</link>
    </item>
    <item>
      <title>"BBC iPlayer on the iPhone " by Ben</title>
      <description>&lt;p&gt;I stumbled across a few more useful resources&amp;#8230;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://whomwah.com/2008/03/10/a-greasemonkey-script-to-download-programmes-from-bbc-iplayer/" rel="nofollow"&gt;A Greasemonkey script to download Programmes from BBC iPlayer&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://www.dracos.co.uk/play/bbc-iplayer-mp4/" rel="nofollow"&gt;BBC iPlayer MP4&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;</description>
      <pubDate>Tue, 11 Mar 2008 17:19:09 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:517c60cd-0a56-44e5-ab0a-79f1eb39df70</guid>
      <link>http://www.slashdotdash.net/articles/2008/03/08/bbc-iplayer-on-the-iphone#comment-399</link>
    </item>
    <item>
      <title>"BBC iPlayer on the iPhone " by Ben</title>
      <description>&lt;p&gt;Thanks for the updates Richard &amp;#38; Richard, I&amp;#8217;ve updated the post with a link to the enhanced script.&lt;/p&gt;</description>
      <pubDate>Tue, 11 Mar 2008 16:28:31 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:ef7a4c75-9e05-4354-aa03-9da5eac7ba26</guid>
      <link>http://www.slashdotdash.net/articles/2008/03/08/bbc-iplayer-on-the-iphone#comment-398</link>
    </item>
    <item>
      <title>"BBC iPlayer on the iPhone " by Richard Bowman</title>
      <description>&lt;p&gt;I&amp;#8217;ve modified it so it automatically names the file with the title of the programme:&lt;/p&gt;


&lt;pre&gt;
#!/usr/bin/ruby -w
require 'open-uri'

IPHONE_USER_AGENT = "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3" 

def download_movie(url)
  # Get html for movie page (as an iPhone UA)
  htm = open(url, {'User-Agent', IPHONE_USER_AGENT}).read

  # Get the pid of the movie
  pid = htm.match(/pid\s+:\s+'([a-z0-9]+)'/i)[1]

  # Get the pid of the movie
  title = htm.match(/prog\s+=\s+"\s*(.*)\s*"/i)[1]
  dest = "#{title}.mov" 

  # Download the mp4 file (uses wget)
  puts "Downloading mp4 file of #{title} (&lt;a href="http://www.bbc.co.uk/mediaselector/3/auth/iplayer_streaming_http_mp4/#" rel="nofollow"&gt;http://www.bbc.co.uk/mediaselector/3/auth/iplayer_streaming_http_mp4/#&lt;/a&gt;{pid} to (#{dest})"  
  system "wget -O\"#{dest}\" &lt;a href="http://www.bbc.co.uk/mediaselector/3/auth/iplayer_streaming_http_mp4/#" rel="nofollow"&gt;http://www.bbc.co.uk/mediaselector/3/auth/iplayer_streaming_http_mp4/#&lt;/a&gt;{pid}" 
end

if ARGV.length == 1
  download_movie(ARGV.first)
else
  puts "usage: ruby iplayer_download.rb &amp;lt;iplayer programme URL&amp;gt;" 
end
&lt;/pre&gt;</description>
      <pubDate>Mon, 10 Mar 2008 23:11:26 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:43d9bef6-e752-4e9e-803c-0198b054163e</guid>
      <link>http://www.slashdotdash.net/articles/2008/03/08/bbc-iplayer-on-the-iphone#comment-396</link>
    </item>
    <item>
      <title>"BBC iPlayer on the iPhone " by Richard Lewis Jones</title>
      <description>&lt;p&gt;The script works a treat. Nice one. A small tweak&amp;#8212;change the system line to read:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;system "wget -O #{pid}.mov &lt;a href="http://www.bbc.co.uk/mediaselector/3/auth/iplayer_streaming_http_mp4/#" rel="nofollow"&gt;http://www.bbc.co.uk/mediaselector/3/auth/iplayer_streaming_http_mp4/#&lt;/a&gt;{pid}"&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;...so the rename is done automatically.&lt;/p&gt;</description>
      <pubDate>Mon, 10 Mar 2008 17:55:41 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:3387cad3-c171-48d9-89a5-0986b1286b95</guid>
      <link>http://www.slashdotdash.net/articles/2008/03/08/bbc-iplayer-on-the-iphone#comment-394</link>
    </item>
    <item>
      <title>"BBC iPlayer on the iPhone " by Jon</title>
      <description>&lt;p&gt;Wow &amp;#8211; that&amp;#8217;s some excellent news.&lt;/p&gt;


	&lt;p&gt;I also owe you a beer for the download script, which hopefully will mean I can stop rebooting into Windows just to download some TV!&lt;/p&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:53:23 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:e225d0e6-efbf-4e2b-80e1-04cd15dc7fad</guid>
      <link>http://www.slashdotdash.net/articles/2008/03/08/bbc-iplayer-on-the-iphone#comment-393</link>
    </item>
  </channel>
</rss>
