BBC iPlayer

From Indie IT Wiki
Jump to: navigation, search

Introduction

BBC iPlayer, commonly shortened to iPlayer, is an internet television and radio service, developed by the BBC to extend its former RealPlayer-based and other streamed video clip content to include whole TV shows.

Documentation

https://github.com/jjl/get_iplayer/wiki/Documentation

Original Web Site

http://www.infradead.org/get_iplayer/html/get_iplayer.html

Latest Version (git)

git clone git://git.infradead.org/get_iplayer.git

get_iplayer Options File

Make sure you have (at least) the following settings in your ~/.get_iplayer/options file. Configure to taste.

nocopyright yes
modes flashhd,flashhigh,flashnormal,iphone
ffmpeg /usr/local/bin/ffmpeg
flvstreamer /usr/bin/flvstreamer
output /home/paully/Videos

Showing Your Downloads History

get_iplayer --nocopyright --history |awk -F ', ' '{ print $2 }' |sed '/^$/d' |tac

Setting Up PVR Searches Recordings

The following commands allow you to set up saved searches to be run from cron for any number of different shows... a bit like a video recorder, hence the term Personal Video Recorder.

Adding

get_iplayer --pvr-add=the_midwives --type=tv "The Midwives"

Listing

get_iplayer --pvr-list

Running

get_iplayer --pvr

Deleting

get_iplayer --pvr-del the_midwives

ERROR: flv to mp4 conversion fails

FIX: temporary

ffmpeg -i filename.flv -vcodec copy -acodec copy filename.mp4

FIX: permanently

Make sure you have (at least) the following settings in your ~/.get_iplayer/options file. Configure to taste.

nocopyright yes
modes flashhd,flashhigh,flashnormal,iphone
ffmpeg /usr/local/bin/ffmpeg
flvstreamer /usr/bin/flvstreamer
output /home/paully/Videos

To find out where your programs are, issue the following commands:-

which ffmpeg
which flvstreamer

ERROR: RTMP_ReadPacket, failed to read RTMP packet header

NEW Solution - 2013 June / September

Edit your ~/.get_iplayer/options file...

rtmpdump /usr/bin/rtmpdump
rtmptvopts --swfVfy http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf

http://makingtechnologyeasier.blogspot.co.uk/2013/06/getiplayer-rtmpreadpacket-failed-to.html

OLD Solution: install rtmpdump alongside flvstreamer.

sudo apt-get install rtmpdump

get_iplayer will use rtmpdump automatically if it is installed. The result? Faster, smoother downloads with no errors. If it occurs again. delete the file ~/.swfinfo because the BBC have changed the flv specification for iPlayer.

Originally from: http://www.mail-archive.com/get_iplayer@lists.infradead.org/msg00279.html

ERROR: WARNING: Your version of flvstreamer/rtmpdump does not support SWF Verification

The BBC have started SWF Verification to their files. The standard software of flvstreamer does not support this, so switch back to rtmpdump instead. To do this, just change the line on your options file.

~/.get_iplayer/options
nocopyright yes
modes best
tvmode best
ffmpeg /usr/bin/ffmpeg
flvstreamer /usr/bin/rtmpdump
output /home/paully/Videos

Switches

--category film

--category HD

./get_iplayer Zen --get --output ~/Videos/

./get_iplayer --channel hd

--get --vmode=flashvhigh --subtitles --output ~/Videos

--type=radio

--type=podcast

Modes / Resolutions

./get_iplayer --modes=X

flashlow = 512x288
flashstd = 640x360
flashhigh = 640x360  (although sound quality may be better)
flashvhigh = 832x468
flashhd = 1280x720

Streaming

Rather than downloading, you can stream your TV or Radio programme:-

./get_iplayer 518 --stream --vlc="/usr/bin/vlc" --flvstreamer="/usr/bin/flvstreamer" --player="vlc -" --modes=flashstd --tvmode=flashstd

or

./get_iplayer 518 --stream --player="mplayer -cache 3072 -" --modes=flashstd --tvmode=flashstd