<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: XBMC BBC iPlayer Plugin</title>
	<atom:link href="http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/</link>
	<description>Web Developer</description>
	<lastBuildDate>Tue, 15 May 2012 02:10:29 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Derrick Sanders</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-827</link>
		<dc:creator>Derrick Sanders</dc:creator>
		<pubDate>Tue, 01 Feb 2011 00:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-827</guid>
		<description>The BBC Iplayer is great, but looks impossible to download anything</description>
		<content:encoded><![CDATA[<p>The BBC Iplayer is great, but looks impossible to download anything</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linuxcentre</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-148</link>
		<dc:creator>Linuxcentre</dc:creator>
		<pubDate>Fri, 22 Aug 2008 10:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-148</guid>
		<description>The mp4&#039;s aren&#039;t actually streamable as you download them, in get_iplayer I&#039;ve had to relocate the &#039;moov atom&#039; at the end of the quicktime  stream to the beginning of the downloaded mov file which then makes it streamable before the entire file is downloaded.</description>
		<content:encoded><![CDATA[<p>The mp4&#8217;s aren&#8217;t actually streamable as you download them, in get_iplayer I&#8217;ve had to relocate the &#8216;moov atom&#8217; at the end of the quicktime  stream to the beginning of the downloaded mov file which then makes it streamable before the entire file is downloaded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Thompson</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-147</link>
		<dc:creator>Jamie Thompson</dc:creator>
		<pubDate>Tue, 19 Aug 2008 13:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-147</guid>
		<description>Sorry I should have been more precise. I run get_iplayer on my (linux) machine to dump the files to a a samba share which my XBMC can see.

The mp4&#039;s that come down from iplayer are streamable in as much as you can play them whilst they&#039;re still downloading</description>
		<content:encoded><![CDATA[<p>Sorry I should have been more precise. I run get_iplayer on my (linux) machine to dump the files to a a samba share which my XBMC can see.</p>
<p>The mp4&#8217;s that come down from iplayer are streamable in as much as you can play them whilst they&#8217;re still downloading</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-146</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Tue, 19 Aug 2008 12:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-146</guid>
		<description>get_iplayer seems to work with linux installed xboxes only. Can youa ctually stream to xbmc using this ?</description>
		<content:encoded><![CDATA[<p>get_iplayer seems to work with linux installed xboxes only. Can youa ctually stream to xbmc using this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Thompson</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-145</link>
		<dc:creator>Jamie Thompson</dc:creator>
		<pubDate>Fri, 15 Aug 2008 08:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-145</guid>
		<description>To be honest. I haven&#039;t used the plugin for a long time. I find it much simpler to use &lt;a href=&quot;http://linuxcentre.net/get_iplayer/&quot; rel=&quot;nofollow&quot;&gt;getiplayer&lt;/a&gt; to dump shows to a share accessible to my xbmc.</description>
		<content:encoded><![CDATA[<p>To be honest. I haven&#8217;t used the plugin for a long time. I find it much simpler to use <a href="http://linuxcentre.net/get_iplayer/" rel="nofollow">getiplayer</a> to dump shows to a share accessible to my xbmc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duke</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-144</link>
		<dc:creator>Duke</dc:creator>
		<pubDate>Wed, 13 Aug 2008 13:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-144</guid>
		<description>I&#039;m afraid I can&#039;t boast the same success as Matt, I installed the latest scripts but they just generate a few more .py files and do nothing more. Running the script via XBMC simply changes it&#039;s state to &#039;running&#039; for a moment then back again. :( Any ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;m afraid I can&#8217;t boast the same success as Matt, I installed the latest scripts but they just generate a few more .py files and do nothing more. Running the script via XBMC simply changes it&#8217;s state to &#8216;running&#8217; for a moment then back again. <img src='http://jamiethompson.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-143</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Wed, 11 Jun 2008 11:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-143</guid>
		<description>take a look &lt;a href=&quot;/web/2008/06/11/bbc-iplayer-xor-decryption/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>take a look <a href="/web/2008/06/11/bbc-iplayer-xor-decryption/" rel="nofollow">here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Banjo</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-142</link>
		<dc:creator>Banjo</dc:creator>
		<pubDate>Wed, 11 Jun 2008 10:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-142</guid>
		<description>Thanks for the precise description of the encryption, however what is the decoding algorithm for a file with an odd number of bytes in length.

I&#039;ve come up with the following code fro decryption, but not sure what to do with byte n-403

Is this correct?

(i=0;i++&lt;0x2800;ch=get(*in))
   put(*out,ch);
(;i&lt;n-403;i++)
{
   ch=get(*in);
   i++;
   put(*out,ch ^ 0x3c);
   ch=get(*in);
   put(*out,ch ^ 0x53);
}
if (n%2=1)
{
   ch=get(*in);
   i++;
   put(*out,ch ^ 0x3c);
}
ch=get(*in); i++ ; put(*out,ch ^ 0x53);
ch=get(*in); i++ ; put(*out,ch ^ 0x3c);
(;i++&lt;n,ch=get(*in))
   put(*out,ch);</description>
		<content:encoded><![CDATA[<p>Thanks for the precise description of the encryption, however what is the decoding algorithm for a file with an odd number of bytes in length.</p>
<p>I&#8217;ve come up with the following code fro decryption, but not sure what to do with byte n-403</p>
<p>Is this correct?</p>
<p>(i=0;i++&lt;0&#215;2800;ch=get(*in))<br />
   put(*out,ch);<br />
(;i&lt;n-403;i++)<br />
{<br />
   ch=get(*in);<br />
   i++;<br />
   put(*out,ch ^ 0&#215;3c);<br />
   ch=get(*in);<br />
   put(*out,ch ^ 0&#215;53);<br />
}<br />
if (n%2=1)<br />
{<br />
   ch=get(*in);<br />
   i++;<br />
   put(*out,ch ^ 0&#215;3c);<br />
}<br />
ch=get(*in); i++ ; put(*out,ch ^ 0&#215;53);<br />
ch=get(*in); i++ ; put(*out,ch ^ 0&#215;3c);<br />
(;i++&lt;n,ch=get(*in))<br />
   put(*out,ch);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-141</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Mon, 09 Jun 2008 09:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-141</guid>
		<description>update: As of this month it appears that even my method will fail. although it is still possible to freely download the mp4 streams, the BBC have started encoding them so that they can only be played on Apple devices. Make of that what you will.

This from http://beebhack.wiki.com

From early June 2008, the BBC changed the mechanism used to encode their videos for the iPhone/iPod Touch. Although downloading via spoofing still works, the downloaded files will not play on any common desktop software. It is possible that a DRM scheme has been applied to the previously unencrypted H.264 video.

A look at the video file headers suggests that the audio is now encoded by libfaac (1.26.1 unstable). Although no DRM scheme has been formally identified, the most likely candidate is Fairplay, which is built into QuickTime and the iPhone.

In fact the DRM appears to be a simple XOR of a large section of the plain vanilla MP4 with a repeating two-byte pattern. Specifically, the first 0x2800 bytes are unchanged, then the next bytes are XOR&#039;d with values beginning 0x3c, 0x53, 0x3c, etc., then the last 0x400 bytes are unchanged. Just to make things interesting the two bytes immediately before the last 0x400 clean ones are XOR&#039;d with reversed values. So (for example) the file is XOR&#039;d with 0, 0,..(0x2800 times).., 0x3c, 0x53, .... ,0x3c, 0x53, 0x3c, 0x53, 0x53, 0x3c, 0, 0, ..(0x400 times)... To recover the original file, just XOR again with these values.</description>
		<content:encoded><![CDATA[<p>update: As of this month it appears that even my method will fail. although it is still possible to freely download the mp4 streams, the BBC have started encoding them so that they can only be played on Apple devices. Make of that what you will.</p>
<p>This from <a href="http://beebhack.wiki.com" rel="nofollow">http://beebhack.wiki.com</a></p>
<p>From early June 2008, the BBC changed the mechanism used to encode their videos for the iPhone/iPod Touch. Although downloading via spoofing still works, the downloaded files will not play on any common desktop software. It is possible that a DRM scheme has been applied to the previously unencrypted H.264 video.</p>
<p>A look at the video file headers suggests that the audio is now encoded by libfaac (1.26.1 unstable). Although no DRM scheme has been formally identified, the most likely candidate is Fairplay, which is built into QuickTime and the iPhone.</p>
<p>In fact the DRM appears to be a simple XOR of a large section of the plain vanilla MP4 with a repeating two-byte pattern. Specifically, the first 0&#215;2800 bytes are unchanged, then the next bytes are XOR&#8217;d with values beginning 0&#215;3c, 0&#215;53, 0&#215;3c, etc., then the last 0&#215;400 bytes are unchanged. Just to make things interesting the two bytes immediately before the last 0&#215;400 clean ones are XOR&#8217;d with reversed values. So (for example) the file is XOR&#8217;d with 0, 0,..(0&#215;2800 times).., 0&#215;3c, 0&#215;53, &#8230;. ,0&#215;3c, 0&#215;53, 0&#215;3c, 0&#215;53, 0&#215;53, 0&#215;3c, 0, 0, ..(0&#215;400 times)&#8230; To recover the original file, just XOR again with these values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://jamiethompson.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/comment-page-1/#comment-140</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Mon, 09 Jun 2008 09:29:48 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/rants/2008/03/19/xbmc-bbc-iplayer-plugin/#comment-140</guid>
		<description>It&#039;s very interesting to see that the official line is no TV no TV license. It has been suggested in various arenas (one of those being the BBC Backstage mailing list) that the introduction of the iPlayer service is part of a plot to enforce TV licences on anyone who has an internet connection. But this obviously isn&#039;t (currently) the case.

Sorry to hear the iPLayer plugin is b0rked. I&#039;ve never really used it since playing around with it initially. I tend to just use a perl script to dump mp4 streams direct to a share accessible by my xbox. With a bit of work the script can also pull down preview images from the BBC programmes service as they use the same naming convention across both services, but i watch so little TV lately that i&#039;ve not really bothered.</description>
		<content:encoded><![CDATA[<p>It&#8217;s very interesting to see that the official line is no TV no TV license. It has been suggested in various arenas (one of those being the BBC Backstage mailing list) that the introduction of the iPlayer service is part of a plot to enforce TV licences on anyone who has an internet connection. But this obviously isn&#8217;t (currently) the case.</p>
<p>Sorry to hear the iPLayer plugin is b0rked. I&#8217;ve never really used it since playing around with it initially. I tend to just use a perl script to dump mp4 streams direct to a share accessible by my xbox. With a bit of work the script can also pull down preview images from the BBC programmes service as they use the same naming convention across both services, but i watch so little TV lately that i&#8217;ve not really bothered.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

