You aren't signed in     Sign In    Help

Faked iPhone BBC iPlayer

Faked iPhone BBC iPlayer by Irregular Shed.
The BBC have just launched a version of their iPlayer that works with the iPhone (and iPod Touch). Instead of streaming Flash, it streams an MP4... but they don't let non-iPhone users know it's an option. So, I used the User Agent Switcher to set Firefox to claim to be an iPhone, and in place of the normal Flash playback doofer, I got a Quicktime one instead... and nothing much happened. It turns out it's because it won't actually stream, it wants to download the whole thing. That's no problem though, I get 600kb/sec downloads at work =)

So, I got out Firebug and found the stream; then copied and pasted it into the address bar, and it started downloading to play in Firefox again. Not what I wanted - so I went to Save Page As... and saved the MP4 file. And then realised that I was actually, at this point, trying to download it three times (the original iPlayer window, the new QuickTime-only tab and the download) so I closed everything else, and watched it download the mp4 at the aforementioned 600kb/sec.

Once finished, I knew it had worked - hovering the pointer over the file in Windows Explorer showed its dimensions (480x272), and moments later an entirely randomly chosen programme was playing in VLC.

So, who fancies cobbling together some code to automate this, to do what the BBC has failed to do all along - make a reasonable quality iPlayer download service for platforms other than Windows, which lacks DRM? 

Comments

view profile

Pip  Pro User  says:

iPlayer in mp4
Posted 17 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

I'm just getting VLC on my Eee to try it on this - I'm figuring the tiny screen will be a nice playback target.
Posted 17 months ago. ( permalink )

view profile

Walt Jabsco  Pro User  says:

eh ???
Talking of the BBC, I have only just seen 'Gavin and Stacey' thanks to last Saturday and VHS........

Fantastic
Posted 17 months ago. ( permalink )

view profile

Tom Morris  Pro User  says:

Huge respect. The Internets will always find a way to route around faults. BBC DRM is a fault.
Posted 16 months ago. ( permalink )

view profile

lwicks_2000 says:

woot!
Posted 16 months ago. ( permalink )

view profile

blech​  Pro User  says:

I had some success doing this with Safari 3. If you have the Debug menu, one of the choices for user agent is Mobile Safari 1.0; doing that, you get the QuickTime logo on the iPlayer page. I had a bit of a play with Inspect Element and the Activity Viewer, but I didn't get as far as downloading a movie- Safari was having trouble responding, possibly because it was trying to load the whole movie.

On the streaming front, I should note that on my iPod touch you can get true streaming; the video starts more or less at once and you can skip around within the programme without having to wait for it to download.
Posted 16 months ago. ( permalink )

view profile

Pip  Pro User  says:

yes, all the desktop browsers (on Windows at least) try to load the whole file before playing. A very annoying state of affairs.
Posted 16 months ago. ( permalink )

view profile

technex  Pro User  says:

would you mind posting the data you used in the user agent switcher to claim to be an iPhone? I've had that plugin for a while but I can't find a reference for adding an iPhone profile. Thanks
Posted 16 months ago. ( permalink )

view profile

HalibutRon says:

Seems to block all IPs outside of the UK.
Posted 16 months ago. ( permalink )

view profile

HalibutRon says:

technex, I used user agent
Mobile Safari 1.0
in both Safari (with Debug menu enabled) and Firefox (with User Agent Switcher installed) .
Posted 16 months ago. ( permalink )

view profile

Pip  Pro User  says:

These are the docs I used: paininthetech.com/2007/10/03/fake-iphone-user -agent/

Apparently you should also be able to go to about:config and set 'general.useragent.extra.firefox' to 'iPhone' as well.

To confirm, yes, the iPhone version is locked to UK-only.
Posted 16 months ago. ( permalink )

view profile

Gilgongo  Pro User  says:

I'm using this with User Agent Switcher:

Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/3B48b Safari/419.3

(Just paste all that in to the "User Agent" field - leave all the rest blank, apart from the label "iPhone" obviously)
Posted 16 months ago. ( permalink )

view profile

thisdoesntlookverynice says:

Hi there, I fixed my user agent, and have a fixed "Q" quicktime icon on an iplayer page. I open firebug and look under the net tab, but can't see anything like a stream URL to capture.

What does an example look like?

cheers
Posted 16 months ago. ( permalink )

view profile

thisdoesntlookverynice says:

Ah, found it another way without firebug. If you use the web developer toolbar, addons.mozilla.org/en-US/firefox/addon/60 and View Source -> view generated source

..the stream URL is just after param name="href" in the source.

yay!
Posted 16 months ago. ( permalink )

view profile

johnsto  Pro User  says:

Found some example Python code for extracting the url for the MP4 from a show's page: pastebin.com/f167029a
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

Crikey! I wasn't expecting to win the interwebs with a little bit of investigative hacking, but... wow. Thanks everybody for coming by.

I did all this on my work PC, and didn't take notes of what I was doing - I was just stumbling over one thing, then the next. (If I hadn't had a headache the size of the Mir Space Station, I might have paid more attention - and realised I was doing something before most other people.) However, I recall that the user agent info I used was the same one listed by Gilgongo, which is what I pulled from the page Pip links to here.)

For background info, I used both Firefox and Safari to do this, but reference Firefox because I'm more interested in doing this on Linux machines, something Safari is no good at ;)

Thisdoesntlookverynice's tip for the web developer toolbar is great - I'll be trying this out later - but the idea of a dedicated script is very appealing, so thanks Johnsto for that link as well. I'm looking forward to the first GreaseMonkey script that adds a link to the iPlayer pages for you though!

Finally, it's worth noting, not everything is up as MP4 video yet, hence the really dull video that's being played on this screenshot. It should've been Ashes to Ashes or something =) And the toolbar visible on the left is Flash because, as I said, I was at work.
Posted 16 months ago. ( permalink )

view profile

Mike_da_Kiwi  Pro User  says:

Works for me from NZ with the iPhone agent change and changing my proxy to an anonymous one in the UK. Slow but functional.
Posted 16 months ago. ( permalink )

view profile

wolfw1knight says:

Hey there, if you copy the link to the "Open URL..." in VLC, as I see you are using, you would be able to direct play it.. now, what you could do is write a php file to rip those urls and just copy and paste into VLC, as of now, or write a web player that takes the urls from the PHP file and runs them in your browser.. just a suggestion :3
Posted 16 months ago. ( permalink )

view profile

threedaymonk says:

I've put together cURL with a bit of Ruby to automate the process:

po-ru.com/diary/cracking-open-the-iplayer/
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

I'm on my phone's browser now, so apologies for this being brief - I'm relying on predictive entry! I did originally copy and paste the url into vlc, but it hung whilst it was trying to allow the entire mp4 file to be downloaded. Trust me on this, it didn't want to stream! Pip tried another media player with the same results. Maybe mplayer can be convinced to do the right thing though.
Posted 16 months ago. ( permalink )

view profile

davidmaclean86 says:

Hey buddy, thanks for sharing your discovery. I'm a computer novice but I've followed the steps and I'm almost there.

I've managed to download the mp4 file - tried opening in Quicktime and got:

"error -2041: an invalid sample description was found in the movie"

However it works in VLC.

Is there any way of transferring the file to Itunes for Ipod Touch?

Thanks in advance
Posted 16 months ago. ( permalink )

view profile

thisdoesntlookverynice says:

Hi again, a little update. I have written out the steps it takes using Firefox, the User Agent switcher and I've added a bookmarklet so you don't need web developer toolbar/firebug anymore.

Works on my Mac too.

www.triffid.org/blog/2008/03/download-drm-fre e-video-from...

davidmaclean86 is right about Quicktime not being happy with the files, which is a shame. I also tried to open them with the awesome and free Mpeg streamclip www.squared5.com/ and that failed too. I suspect the BBC created the files with mangled headers on purpose to stop people making proper use of them! VLC it is then.

Cheers!
Posted 16 months ago. ( permalink )

view profile

HalibutRon says:

Can anyone suggest some UK-based proxy servers that aren't _too_painfully slow?

Lots of us in the rest of the world, would like to join the fun

: )
Posted 16 months ago. ( permalink )

view profile

johnsto  Pro User  says:

Done a bit more testing and discovered that for the MP4 stream to work, you not only need to identify yourself as an iPhone, but you also need to have cookies enabled. It seems the iPlayer website drops an authentication cookie, so you can't just send the MP4 URL to another device for playing - unless that device has the same cookie. If the cookie isn't there, it forwards you to an error page.
Posted 16 months ago. ( permalink )

view profile

Pip  Pro User  says:

Probably the best way to go with all this is to use Matthew Somerville's tool here: www.dracos.co.uk/play/bbc-iplayer-mp4/ - it extracts far more information than just downloading the mp4 by hand or via any of the existing scripts will give you
Posted 16 months ago. ( permalink )

view profile

johnsto  Pro User  says:

Another rough script. Given the URL of a programme page, it handles all the user-agent forging, authentication cookies and downloads the entire MP4.
pastebin.com/f7906a416

I'm hoping to beat this into the shape of an XBMC script.

Update: slightly nicer script pastebin.com/f2eafe31b
Posted 16 months ago. ( permalink )

view profile

rd_short says:

You can solve the playback problem in Quicktime by using the VLC streaming/transcoding wizard. Leave the Video and Audio transcoding unchecked and select MP4 as the Encapsulation format. Save as either .mp4 or .3gp and you can now play it using QuickTime - it worked for me anyway!
Posted 16 months ago. ( permalink )

view profile

davidmaclean86 says:

Thanks for the help, but I've settled for playing it in VLC.

I've encoded it for Ipod Touch use, and the videos play fine if I sit and watch them through on the Touch. But if I pause it for too long or scroll along the timeline to a later part of the show it crashes out to the start menu.

Am I doing something wrong during the encoding process in VLC or is it just a Touch bug?
Posted 16 months ago. ( permalink )

view profile

HalibutRon says:

davidmaclean86 , rd-short has it right... you're not re-encoding the file with VLC, rather this process simply changes the container format.

Seems to me that the Touch should be able to play a properly-formatted .mp4 file - the question is, as you suggest, whether the container is NG or the player has a quirk.
Posted 16 months ago. ( permalink )

view profile

r4d0x says:

johnsto: your pastebin script doesn't work for me - it gets stuck on "finally"... I'm on python 2.4, so could that be the issue?

Would be so cool to have an xbox script that scraped the iplayer site for all the mp4 URLs, then offered to download them.
Posted 16 months ago. ( permalink )

view profile

johnsto  Pro User  says:

r4d0x: yeah, python 2.4 doesn't support try,except,finally... so you'll have to just remove the finally statement.

I've just about got a working XBMC script that scrapes the last 7 day pages. It's a horrific bit of frankencode, but seems to just about work! A big issue though is that the XBMC mplayer apparently doesn't support cookies nor user-agent switching, so I can't stream to it. Instead, my script downloads the entire MP4 to the HDD, then gets XBMC to play that.

Better than nothing though.
Posted 16 months ago. ( permalink )

view profile

HalibutRon says:

hi Gilgongo,

In the Mac version of Firefox, the User Agent Switcher has multiple fields:



Is this the correct way to paste in the info you posted?


thanks,

HalibutRon
Posted 16 months ago. ( permalink )

view profile

HalibutRon says:

hi folks,

I'm reasonably adept at such things, but I cannot find a UK-based proxy server that actually works. Lots of listings, lots of errors trying to use them, either directly in Firefox, or in OS X system preferences for browsers such as Safari that don't have their own proxy settings.

Again, I'd love to hear from anyone here whether they have some UK proxy servers they can suggest, that definitely work, and, one hopes, are if not reasonably fast, at least not dog-slow.

BTW this may prove useful to people troubleshooting how their connection appears to web servers:
proxys4all.com/env-checkers.shtml

These "ENV checkers" will report back user agent, IP address, and other info transmitted by your browser.
Posted 16 months ago. ( permalink )

view profile

johnsto  Pro User  says:

Well here's a basic iPlayer XBMC script!
files.johnsto.co.uk/xbmc/xbmciplayer.zip
Posted 16 months ago. ( permalink )

view profile

r4d0x says:

johnsto - working for me on my xBox! I was trying to make a yahoo Pipes widget to scrape all the available programmes into an RSS feed... But it was completely beyond me.

Seems to be working well... I'm sure this can't last.... It seems too good to be true.

You should stick this script onto www.xbmcscripts.com
Posted 16 months ago. ( permalink )

view profile

johnsto  Pro User  says:

r4d0x: I'll do that once I'm happier with it. For the moment, I've moved to Google Code and that's where all the latest versions lie. For example, I've just added support for browsing by channel :)
code.google.com/p/xbmc-iplayer/
Posted 16 months ago. ( permalink )

view profile

Gilgongo  Pro User  says:

@HalibutRon

I just pasted the entire string into the "User Agent" field and left the rest blank. I've just finished watching a (nice quality 336MB MP4) documentary about Bradford with an American narrator. Fascinating.
Posted 16 months ago. ( permalink )

view profile

bgarthp  Pro User  says:

I just watched that Bradford documentary too, downloaded to my XBox thanks to the first version of the XBMC script above.

Thanks very much for the script!

I'll grab the latest version now.
Posted 16 months ago. ( permalink )

view profile

cubicgarden  Pro User  says:

Obviously using a Proxy to access GeoIP BBC content outside the UK can not be recommended :(

But great work with the script John, I'm checking it out on my xbmc now
Posted 16 months ago. ( permalink )

view profile

cefnhoile says:

I can verify you can get unencrypted MP4s which plays on VLC using an Apple Mac with the following approach...

Install Firebug into your Firefox from here...
addons.mozilla.org/en-US/firefox/addon/1843

Download the JQuerify Bookmarklet from www.learningjquery.com/2006/12/jquerify-bookm arklet

Visit the iplayer page and navigate to your chosen show.

Click on your Jquerify bookmarklet.

Launch the Firebug Console.

Copy in the following text and click 'Run' to retrieve the URL of the MP4 (if you didn't click on Jquerify this won't work)...

$("#mip-flash-player param[name='href']").attr('value');

With the URL retrieved, you can then use wget (along with your Firefox cookie file) to download the full thing offline for playback within any player you want.

To do this, you need to invoke wget with a user agent specification, and where your firefox cookie file is.

The following worked for me (you will have a different profile directory name in Firefox).

You just need to change the show URL and filename at the end of the command line for each new show...

wget --load-cookies /Users/cefn/Library/Application\ Support/Firefox/Profiles/wqnadnbq.default/coo kies.txt -U "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)" www.bbc.co.uk/mediaselector/3/auth/iplayer_st reaming_http... -O ~/Movies/bbc_iplayer_mp4/dragons_den_5.mp4
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

Well, thanks everybody for turning this little bit of investigation into a variety of real, working scripts. There's not much I can add to any conversations regarding these because, despite being a programmer, I hang up my programming hat at work to come home and put on a dad hat instead. My chances to hack code are virtually zero.

Regarding the Quicktime playback problem, I've seen this before on other MP4 files. It seems that not all MP4 files are made the same, and whilst VLC does a handsome job of playing pretty much anything that gets thrown at it, Quicktime is far more choosy.

I'm not really fussed about this though, because the reason I started trying to pull things apart was because I was interested in getting things to play on platforms that Apple don't provide Quicktime for (and that are badly serviced by Adobe is terms of Flash support). So seeing this take off on XBMC is awesome =)

When I'm back at work tomorrow I'll pull something slightly more interesting down and convert it to a format that will play on my 5G iPod, because now I can. When people were up in arms about the DRM-laden disaster that the original Kontiki implementation was, and idiots unable to see the bigger picture mockingly demanded the BBC support iPlayer on a Commodore 64, or a toaster, or things like that, I knew that if a proper, real, open standard were used then iPlayer would be an actual useful service. It looks like it could finally happen. I wish I had enough time and could remember enough Z80 to put together a player for the Spectrum...

And just to show Pip and I have been trying this sort of thing for a while, here's from when Pip beat me to getting an iPlayer .flv file downloaded and playing:

That was another Friday afternoon where we were determined to not be Windows DRM bitches!
Posted 16 months ago. ( permalink )

view profile

HalibutRon says:

cefnhoile - that rocks.

I imagine you're in the UK?

I'm dyin' here folks . . .

my kingdom for a decent UK proxy server . . .

: )

HalibutRon
Posted 16 months ago. ( permalink )

view profile

technex  Pro User  says:

This is working great for me now. Many thanks to the guys who posted the iPhone user agent strings and to the javascript bookmarklet here:http://www.triffid.org/blog/2008/03/down load-drm-free-video-from-bbc.html

I'm pasting the url that this reveals straight into free download manager and getting nice fast downloads which play perfectly in VLC.

The only thing I could hope for progress wise would be not having to manually re-name the files, but this is a trivial niggle. Great work everyone!!
Posted 16 months ago. ( permalink )

view profile

cefnhoile says:

HalibutRon, yes I'm in the UK.

Given that you can grab this stuff with wget and a cookies file, I imagine you could use a UK-based server farm with ssh access.

Personally I've used Penguin UK for years, not because they're cheapest, but because of their extremely sane policies over server access, multiple domain configurations etc.

They are willing to provide SSH for even their smallest account holders if you explain that you are a sysadmin who wishes to manage your server direct with unix tools.

www.penguin-uk.com/hosting_prices.html

My server cefn.com reports itself as...
87.117.227.50 UK UNITED KINGDOM

The half-hour files I've downloaded so far are less than 250meg. That should give you an idea of the storage you'll need to buy in the hosting account if you want to access from a UK IP address in this way.
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

Works on Windows too - well spotted that man!
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

Hang on a tick, whomwah - do you know this to be a fact because you're a BBC employee...? =)
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

Okay - here's my blog page on it all, and at the bottom you'll find a bookmarklet, when clicked on an iPlayer page, takes you to dracos.co.uk, from where you can download the MP4 - no messing with user agents or anything else.

www.twindx.com/node/276
Posted 16 months ago. ( permalink )

view profile

Alan in Belfast  Pro User  says:

Available on other portable media players too!


Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

Fantastic! Congratulations are deserved by the BBC for releasing iPlayer Everywhere™ on Friday without realising it...
Posted 16 months ago. ( permalink )

view profile

Pip  Pro User  says:

Judging from Ian Forrester's response, they knew *exactly* what would happen.
Posted 16 months ago. ( permalink )

view profile

johnsto  Pro User  says:

The BBC have now blocked this hack:
www.theregister.co.uk/2008/03/13/iplayer_ipho ne_drm_looph...

My scripts don't work anymore. Can't think what they're doing though... can't be an IP block or that'd stop iPhone users from using wifi! Must be something sneaky... perhaps they're using the 'referer' (sic) information instead or a simple heuristic.
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

Yeah, I got a heads up earlier. From a brief investigation it looks like the referer info is being used.

It's not a problem. It will be beaten again. All it takes is someone with an iPhone and a proxy being used by a wireless network to show the coming-and-going data flow. Oh, and look, there's an iPhone on my colleague's desk...
Posted 16 months ago. ( permalink )

view profile

johnsto  Pro User  says:

A Register commenter says it's being done via JS. This file changed this morning:
www.bbc.co.uk/iplayer/page/script/1.7/iplayer _info.js

So maybe it's referrer and JS combined, if not one or the other.
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

A random number between 0 and 999999 is appended to the end of the URL as a parameter (ie. b009gfty?666):

generateRandNum : function() {
var num = Math.floor(Math.random() * 1000000);
return num;

gets called by these lines:
var url = "/mediaselector/3/auth/iplayer_streaming _http_mp4/" + availableStreams[0].pid + "?" + this.generateRandNum();
and
HTML.push('<param name="href" value="http://'+iplayer.host+'/mediasele ctor/3/auth/iplayer_streaming_http_mp4/' + availableStreams[0].pid + '?'+ this.generateRandNum() + '">');

So... does anybody know any vulnerability in the way that Javascript on the iPhone generates random numbers? Well, there's the fact that the Dashboard on the Mac returns the same sequence of "random" numbers each time:

tacowidgets.com/galen/archives/20

Given the shared code base, and the fact I found a far more recent blog post about it, there's your answer: the BBC's new protection system is based around a bug in Safari's Javascript engine.
Posted 16 months ago. ( permalink )

view profile

johnsto  Pro User  says:

There's a post on the backstage list that suggests they're now saving a 'BBC-UID' key in the cookie which contains a hash of the Quicktime version and OS identifier. Potentially a challenge-response type of check.
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

I'll investigate that later!
Posted 16 months ago. ( permalink )

view profile

strawp says:

Yeah, that was me pointing that out. Sending the same cookie that your browser would if it was an iPhone doesn't seem to work. I think Quicktime sends its own headers.

A packet trace from an iPhone would solve the whole thing I think...
Posted 16 months ago. ( permalink )

view profile

threedaymonk says:

I've got round their 'fix' again ... for now!

po-ru.com/diary/bbc-iplayer-fix-hacked-again/
Posted 16 months ago. ( permalink )

view profile

strawp says:

Yeah, ditto strawp.net/files/iplayer_dl.zip
Posted 16 months ago. ( permalink )

view profile

strawp says:

Heh, yours is almost identical to mine, except in Ruby. It's a bit nicer too :P
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

You gents are both remarkably wonderful - I can't wait to see what the Beeb's next move is.
Posted 16 months ago. ( permalink )

view profile

strawp says:

The thing is - it's still authenticating based on the HTTP headers. If an MP4 over HTTP stream exists it's going to be used.

I still have no idea why the iPhone is allowed DRM free downloads and not everyone else. This directly goes against their charter by actively giving preference over one vendor and it completely contradicts their claims of being "platform agnostic".

They'll either can it entirely or just leave it like this. Which one they chose depends on what their content providers say about all this, I imagine.
Posted 16 months ago. ( permalink )

view profile

johnwards  Pro User  says:

Nice ones guys. I thought it was going to be a javascript test but even then it would have been cracked wide open by the end of the day.

I think they are fighting a losing battle. I can't think of any way that I would be able to lock it down to iphone only and if it was simple to do such things we would have DRM in the first place.

Unless they can get DRM from Apple they are stuffed...hoho
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

If they license FreePlay from Apple, I can imagine the board of governors will be leaned on - why are the BBC licensing two DRM systems at great cost to the taxpayer - sorry, licence payer?

As strawp says - they're effectively creating an artificial divide. It's like DVD regions - they're used just to treat bunches of people in different places with different amounts of favour.

What's next? They could ditch the iPhone plans (PR disaster), try and lock down the iPhone service by relying on more quirks (throwing money in a fire), create some sort of app for the iPhone (will get packet-sniffed), or this:

Open it up. 480x272 MPEG4 files aren't going to impact on DVD sales any more than recording episodes off the telly. Go back to various rights holders, hold up their hands and say, "Look. DRM doesn't work. It will never work. Treat people as adults and they will behave like adults. Everything we're offering is already out there on torrent sites that we can't control, let's give people a decent service that can compare but keeps them away from the shadier stuff."

It takes that leap of faith; to realise that not everyone is out to pirate everything, to stop thinking of everyone as a criminal by default. Just treat us as grown-ups so we don't have to leap through hoops to get what we deserve.
Posted 16 months ago. ( permalink )

view profile

johnwards  Pro User  says:

Its going to be interesting to see their next step.

They really didn't think about this at all...other than the PR it would generate to launch it on the jebus phone.
Posted 16 months ago. ( permalink )

view profile

blech​  Pro User  says:

strawp said "I still have no idea why the iPhone is allowed DRM free downloads and not everyone else"

Mobile Safari can't download a file, or save it to a cache, so despite the fact that it's served what (to a computer) is a file, on the iPhone (and iPod touch) it is effectively a stream. Not that this disctinction really holds once you start pretending to be an iPhone, which is where we came in.
Posted 16 months ago. ( permalink )

view profile

Pip  Pro User  says:

"They could ditch the iPhone plans (PR disaster)"

Frankly, given some of the abusive response, if this was a personal project, this is what I'd do.
Posted 16 months ago. ( permalink )

savocado08 [deleted] says:

How can you use the iPlayer service outside the UK? PM me pls! thx.
Posted 16 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

You can't, not legally at any rate. Illegally you could use a UK proxy.
Posted 16 months ago. ( permalink )

view profile

walesfan says:

strawp, i'm trying your script on a win2003 box and it gets to the download but then stops at 0 bytes. can you help? the output is:

iplayer_dl Copyright (C) 2008 Iain Wallace iain@strawp.net
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under the GPLv3 license.

Usage:
iplayer_dl


Setting cookie to BBC-UID=b4978dce2285826d89d198d2e0b0f314ca243 4e510b0f104547fb8
d1cf0b76450Mozilla%2f5%2e0%20%28iPhone%3b%2 0U%3b%20CPU%20like%20Mac%20OS%20X%3b%
20en%29%20AppleWebKit%2f420%2e1%20%28KHTML% 2c%20like%20Gecko%29%20Version%2f3%2e
0%20Mobile%2f4A93%20Safari%2f419%2e3; expires=Fri, 16-Mar-12 08:00:45 GMT; path=
/; domain=bbc.co.uk;
Getting meta data from www.bbc.co.uk/iplayer/metafiles/episode/b009h q38.x
ml...
Setting PID as b009hq2l, based on versions available
title: Six Nations Rugby: 2008
subtitle: Wales v France
Six_Nations_Rugby_2008_-_Wales_v_France.mov
Getting: www.bbc.co.uk/mediaselector/3/auth/iplayer_st reaming_http...
09hq2l?344178

Done. Downloaded 0 bytes

thanks in advance
Posted 16 months ago. ( permalink )

view profile

strawp says:

Hi Walesfan (congrats),

I've updated the script but I don't think that programme is available in iPhone format.

Everyone: I've created a wiki for this stuff. There's too many threads to track people's discoveries and bug fixes:

beebhack.bluwiki.com
Posted 16 months ago. ( permalink )

view profile

walesfan says:

Thanks strawp. What a game!

:-)
Posted 16 months ago. ( permalink )

view profile

srboisvert  Pro User  says:

They have now screwed with the file format. You can download but it doesn't seem to play.
Posted 13 months ago. ( permalink )

view profile

Irregular Shed  Pro User  says:

Yeah. The first 0x2800 bytes are fine, and then they're XORed by 0x53 and 0x3C thereafter, except for the last 0x400 bytes; and the last two XORed bytes are out of sequence.

Somebody sat down and came up with that. I'd love to know how the iPhone knows what to do with it.

BTW, the up-to-date Beebhack wiki is here: beebhack.wikia.com/
Posted 13 months ago. ( permalink )

view profile

jamieriddell  Pro User  says:

Hats Off to you. This is wonderful piece of kit!
Posted 10 months ago. ( permalink )

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

[?]
view photos Uploaded on March 7, 2008
by Irregular Shed

Irregular Shed's photostream

1,194
uploads

This photo also belongs to:

Experiments in Geekdom (Set)

48
items

MAKE (Pool)

Tags

Click this icon to see all public photos and videos tagged with bbc bbc
Click this icon to see all public photos and videos tagged with mp4 mp4

Additional Information

AttributionNoncommercialShare Alike Some rights reserved Anyone can see this photo

  • Taken on March 7, 2008
  • 34 people call this photo a favorite
  • Viewed 34,150 times
  • Replaced on March 7, 2008
Add to your map