Skip to content

Instantly share code, notes, and snippets.

@jphastings
Created July 10, 2009 17:03
Show Gist options
  • Save jphastings/144622 to your computer and use it in GitHub Desktop.
Save jphastings/144622 to your computer and use it in GitHub Desktop.
# This options file will have your get_iplayer (linuxcentre.net) running smoothly on mac os x, outputting iTunes friendly m4v files (provided you install the binaries as explained below)
# Usually found in ~/.get_iplayer/options
# Download and install the binaries as described on his site, but be sure to install them to /usr/local/bin (and make sure they're executable)
# $ chmod +x ffmpeg
# $ sudo mv ffmpeg /usr/local/bin/ffmpeg
# and similar for flvstreamer. lame will install there by default and mplayer is explained below (for itv downloads)
rtmpdump /usr/local/bin/flvstreamer
lame /usr/local/bin/lame
fileprefix <name> - <episode> - <pid>
output /tmp
# Remove 'flashhd,' if you don't want 720p versions.
# you can add 'iphone' for a tailor made iPhone edition, however I find the 'flashhigh' to be better quality (and still viable for the iPhone/iPod Touch)
modes flashhd,flashvhigh,flashhigh,flashnormal
# Downloaded from here: http://mplayerosx.sourceforge.net/ - you may want to use macports' mplayer instead
mplayer /Applications/MPlayer OS X 2.app/Contents/Resources/mplayer.app/Contents/MacOS/mplayer
# I'm trying to find a good way of putting the subtitles in the MP4 directly. (MP4Box puts them up in the corner)
subtitles 1
# This runs after the file is downloaded. I'd like to run it in the background (so downloads can continue), but I'm not sure how! It tags and renames the file, then adds it to iTunes and deletes the original. (You will need 'Copy to iTunes Folder' turned *on* in iTunes)
command AtomicParsley <filename> -W --artist "<name>" --TVShowName "<name>" --title "<episode>" --description "<desc>" --TVNetwork "<channel>" --copyright "BBC" --encodingTool "get_iplayer/BBC" --stik "TV Show" --year "<firstbcast>" --TVEpisode "<pid>" --comment "<web>" && mv "<filename>" "<dir>/<fileprefix>.m4v" && osascript -e 'tell application "iTunes" to add POSIX file "<dir>/<fileprefix>.m4v"' && rm "<dir>/<fileprefix>.m4v"
# If you organise your media files for iTunes yourself, you'll want to change 'output' to that folder and remove the ' && rm "<dir>/<fileprefix>.m4v"' part here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment