Blog
Download HD video from BBC iPlayer with get_iplayer

Copyright © TechPad.co.uk
Download and save DRM-free videos from the BBC iPlayer site with get_iplayer on Ubuntu Linux.
This time last year I wrote a little Zenity GUI application which acts as a wrapper to iplayer-dl, Paul Battley's Ruby application which spoofs the iPhone user agent to download iPhone-optimised videos from the BBC's iPlayer service.
This still works really well, but now that the BBC has added HD content, it's also possible to download this material using a different application, get_iplayer.
Get_iplayer
This is a Perl script that arose around the same time as iplayer-dl, but it has different goals and is a bit more sophisticated than iplayer-dl. But, with sophistication comes complexity, and get_iplayer's command line interface is a bit more complicated.
If you want to simplify the download process, you could also just wrap it up in a Zenity GUI, allowing it to run graphically via a shell script on any Linux system with the Gnome desktop installed.
Installing get_iplayer
On Ubuntu, you can install get_iplayer by typing sudo apt-get install get-iplayer (note the hyphen and not an underscore) or as a Deb file from here [http://linuxcentre.net/get_iplayer/packages/get-iplayer-current.deb].
You'll also need to install flvstreamer, which is in the repositories on Karmic Koala, or install both by entering: sudo apt-get install get-iplayer flvstreamer
The basics
There are quite literally gazillions of command line switches to do various things with get_iplayer. The best way to get a handle on what's possible is to enter 'man get_iplayer' in your terminal to see what the available options are.
To see the list of programmes available for download - radio or TV - simply enter get_iplayer in your terminal. You'll see a huge list of programmes scroll past, and you'll probably need to adjust your scrollback level on your terminal Profile Preferences to allow you to scroll back through them.
Understanding the output
Each line looks a bit like this:
607: Top Gear: Series 14 - Episode 2, BBC Two, Cars & Motors,Factual,TV, default,
The number at the beginning of the line is called the PID, or programme ID, and you'll need this to instruct get_iplayer to download the programme. So, to grab this episode of Top Gear you'd enter get_iplayer --get 607
Just like iplayer-dl, you can also just enter the URL from iPlayer. So to grab Chicken Run, you'd enter get_iplayer --pid=http://www.bbc.co.uk/iplayer/episode/b00d6ns4/Chicken_Run/
Grabbing HD content
As the BBC now provides iPlayer for a wide range of devices, there are quite a few different formats of video available for download, ranging from the standard Flash (flv) file, to the iPhone version or the HD Flash version, which is the highest quality format currently available and looks really good.
You can specify that you want the HD version by adding --vmode=flashhd to your get_iplayer command, so to grab that Top Gear episode in HD, we'd use get_iplayer --get 607 --vmode=flashhd.
Published: TechPad.co.uk Sunday 27 December 2009, 6:46 pm
Views: 29,781 times
Filed under: iPlayer get_iplayer iplayer-dl
Login to leave your comments
Please login









Recent comments
iplayer-dl is a Ruby application, which will run most easily on Linux or Mac (hence the Mac scree...
TechPad: 18:18 PM Aug 22nd, 2010
I don't understand how to use this. I have vista and firefox. Do I need to copy the iplayer int...
mufc1977: 15:15 PM Aug 21st, 2010
No worries, glad you got the buttons back in their rightful place!
TechPad: 13:13 PM Aug 12th, 2010
Disregard my previous comment: The FIRST time I tried it, it definitely didn't work. After addi...
freshrich: 1:01 AM Aug 10th, 2010
Great tutorial, but it doesn't work with Ubuntu Lucid. The only way I could get it to work was b...
freshrich: 1:01 AM Aug 10th, 2010