get_iplayer now has Subtitle download support

Having recently noticed that subtitle support is now widely available on the iPlayer website, I thought I’d have a go at providing the ability for get_iplayer to download them (from version 0.61 onwards). So after some packet sniffing and perl hacking I have added subtitle support. It downloads the subtitles in W3C Timed Text format (see this post) and converts them into a more widely supported format, i.e. SubRip (.srt).
There is a rather annoying caveat though; The iPhone H.264 iplayer streams do not exactly match the flash versions; They often start a few seconds earlier which results n the subtitles being shown too early and out of sync with the audio :-( So, as a workaround, I’ve added an option to munge the subtitle timestamps during download to add an arbitrary offset in milliseconds :-)
To use this feature the program must, of course, have subtitles. You need to use the --subtitles option and optionally --suboffset nnnn, e.g:

get_iplayer --get Miller --subtitles --suboffset 3500

SubRip appears to be supported by mplayer, xine and vlc so hopefully you’ll be able to try this out.

5 Comments

(Required)
(Required, will not be published)