MythTV – converting TV shows to iPOD video

Recorded something on MythTV but wanna watch it on your iPOD? Try this quick command line:

As I’m using “ffmpeg” most platforms are covered! [Linux, Windows, Mac OS X, etc]

Use ffmpeg too convert video from any format (ffmpeg supports as input), to iPod video friendly format. Most MythTV feeds are MPEG2 (.mpg)

Make sure that your version of ffmpeg has XVID (for mpeg4 encoding) and FAAC support. This may require building from the source.

Now that you have everything up and running, you may try to convert a video. For a 4:3 video, use:

ffmpeg -i <input_file> -f mov -b 1800 -maxrate 2500 \
      -vcodec xvid -qmin 3 -qmax 5 -s 320x240 \
      -acodec aac -ab 128 \
      <output_file>.ipod.mov

For 16:9, you’ll need to tell ffmpeg to add the black bars on top and bottom itself and substract the height of the black bars from the actual video size:

ffmpeg -i <input_file> -f mov -b 1800 -maxrate 2500 \
       -vcodec xvid -qmin 3 -qmax 5 \
       -s 320x180 -padtop 30 -padbottom 30 \
       -acodec aac -ab 128 \
      <output_file>.ipod.mov