Saturday 6 July 2013

Get-iplayer: The solution to the ERROR: RTMP_ReadPacket problem

If you have installed (or reinstalled) get-iplayer and it not longer works, but throw something like this:

Connecting ...
INFO: Connected...
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
INFO: Command exit code 1 (raw code = 256)
WARNING: Failed to stream file [some program file].partial.mp4.flv via RTMP
INFO: skipping flashstd2 mode
ERROR: Failed to record '[the program name]'
The solution is to run this command:
get_iplayer --prefs-add --rtmp-tv-opts="--swfVfy=http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf"
If that doesn't work, make sure that you have lame, ffmpeg, RTMPdump and flvstreamer installed.