tobyaw: (Default)
Toby Atkin-Wright ([personal profile] tobyaw) wrote2012-11-22 07:44 pm

Downloading iPlayer programmes

Earlier this week I came across a script called “get_iplayer”; it downloads programmes from iPlayer and converts them into a suitable format to use in iTunes, to use on iOS devices, and to play on an Apple TV. The script has been around for years, but I only found it last weekend.

It’s quite handy; it can display a list of all the programmes available on iPlayer, and can download them based on their name or on a regular expression. It is clever enough not to download the same programme multiple times, unless you tell it to do so, and it can download HD programmes in 720p.

A typical invocation might download all of the episodes of Harry & Paul that are currently available on iPlayer, in the best quality available:

get_iplayer "Harry & Paul" --get --modes=best


It lends itself to automation; I now have a cron job set up to automatically download programmes that I’m interested in, and to pop them into my “Automatically Add to iTunes” folder.

This is a note of what I did to download get_iplayer on my Mac mini; it depends on having the developer tools installed:


  1. Install “rtmpdump”, a utility for streaming Flash video files:
    git clone git://git.ffmpeg.org/rtmpdump
    cd rtmpdump
    make SYS=darwin
    sudo make SYS=darwin install
    

  2. Install “ffmpeg”, a utility that can convert a Flash video file into a plain MP4 file:
    git clone git://source.ffmpeg.org/ffmpeg.git
    cd ffmpeg
    ./configure --disable-yasm
    make
    sudo make install
    

  3. Finally, download “get_iplayer”:
    git clone git://git.infradead.org/get_iplayer.git
    

[identity profile] makyo.livejournal.com 2012-11-22 07:50 pm (UTC)(link)
It's jolly useful, get_iplayer is. I have a cron job that runs every night at 1am and downloads various Radio 4 programmes onto my computer.

Useful

[identity profile] tokyo-mb.livejournal.com 2012-11-22 08:28 pm (UTC)(link)
I'd heard of this, but not played with it. Something for the weekend when I am in front of a Mac.
Edited 2012-11-22 20:28 (UTC)