I've got a plan to use the Pi as a low power, always on device, which will download the latest tv & radio shows from BBC iPlayer so I can watch / listen later.
There is a great open source project called get_iplayer for downloading feeds from BBC iPlayer, so when I first unwrapped it, getting this installed was my first challenge.
I am using the Debian Squeeze distro (19-04-2012), so this info is only appropriate to that OS, if your running something different, your on your own!
Download & extract get_iplayer
First I headed over to ftp://ftp.infradead.org/pub/get_iplayer/ to the latest version of the get_iplayer application, downloading it onto my Pi using:
sudo wget ftp://ftp.infradead.org/pub/get_iplayer/get_iplayer-2.82.tar.gz
Once I had got get_iplayer-2.82.tar.gz into a directory I needed to decompress it using gzip.
sudo gzip -d get_iplayer-2.82.tar.gz
This left me with get_iplayer-2.82.tar, which I then needed to extract using tar.
sudo tar -xf get_iplayer-2.82.tar
This created a directory called get_iplayer-2.82, which contained the get_iplayer application.
cd get_iplayer-2.82
I then made get_iplayer executable and writeable.
sudo chmod 755 get_iplayer
sudo chmod 777 get_iplayer
get_iplayer is a perl application and as well as extracting the application I also needed to install an additional perl module and some other tools, all of which are available using apt-get.
Install perl module libwww-perl
sudo apt-get install libwww-perl
Install rtmpdump
sudo apt-get install rtmpdump
Install flvstreamer
sudo apt-get install flvstreamer
Install ffmpeg
sudo apt-get install ffmpeg
Run get_iplayer
And that was it, I was now able to run get_iplayer; make sure your in the get_iplayer directory and run:
sudo ./get_iplayer
The first 2 times you run get_iplayer it might download plug-ins and the latest lists from BBC iPlayer.
Search for a program
Run get_iplayer passing a search parameter (e.g. News).
sudo ./get_iplayer News
Download a program
Note the programme Id returned in the search and pass this to get_iplayer using the --get command.
sudo ./get_iplayer --get 123
get_iplayer has lots of other functions, such as basic PVR capabilities, check out the documentation on the get_iplayer site for more info. There is also a readme file in the get_iplayer directory which includes some instructions on its use.
Update - for more information about setting up get_iplayer and running it, see post http://stuffaboutcode.blogspot.co.uk/2012/06/raspberry-pi-getiplayer-setup-and.html
Update - my iPlayer project is now finished; it downloads from BBC iPlayer before creating a Podcast which is distributed over the internet so I can pick up the latest programmes from my phone, see post http://stuffaboutcode.blogspot.co.uk/2012/06/raspberry-pi-bbc-iplayer-personal.html

get_iplayer 2.82 is now released
ReplyDeleteftp://ftp.infradead.org/pub/get_iplayer/
list of updates
http://git.infradead.org/get_iplayer.git
Cheers Mapperz, Ive update the blog to reflect the latest version
Deleteyou've got a few spelling mistakes
ReplyDeleteyou've put "I am using the Debian Squeeze distro (19-04-2012), so this info is only appropriate to that OS, if your running something different, your on your own!"
where you meant "I am using the Debian Squeeze distro (19-04-2012), so this info is only appropriate to that OS, if you're running something different, you're on your own!"
O dear, wat sloppines, I reely must sak my editer
DeleteI tried to follow this how to, it went swimmingly until the last install stage: "sudo apt-get install ffmpeg" where I got loads of '404' & 'failed to fetch' errors and ends with 'Aborting install'.
ReplyDeleteAs a newbie to Linux I'm now totally stuck! Any help that can be offered would be great.
Wierd, 404 errors sound like apt-get cant retreive the installation. It might just be a down server, if so, give it a little while and try again.
DeleteAh... that was me - missed the sudo before an earlier attemp at "apt-get update". Having done that the last command ran to the end without errors - great. But I can't run the prog, it returns "sudo: get_iplayer: command not found.
DeleteIn the dir 'get_iplayer-2.82' I have:
Changelog-get_iplayer.cgi.txt
get_iplayer
html
make-nsis
README.txt
Changelog.txt
get_iplayer1
LICENSE.txt
plugins
web.sh
CONTRIBUTORS
get_iplayer.cgi
makefile
READ-get_iplayer.cgi.txt
windows
Some are plaing directories, others files. What have I done wrong?
Have you specified the full path of the get_iplayer program, (if your in the directory you can use ./get_iplayer). Full paths are a pre-requisite in linux, unless the path exists in the PATH variable, unlike dos/windows where your current path is considered part of the PATH.
Delete