dive into mark

You are here: dive into markArchivesJune 2007HOWTO batch encode video for iPod under Linux (2007 edition)

Thursday, June 7, 2007

HOWTO batch encode video for iPod under Linux (2007 edition)

An update to this post from 2006, I gave up on ffmpeg and mp4creator and switched to mencoder and MP4Box. The new-and-improved version also works properly with widescreen video. The new script is here: podencoder.

See my original post for usage examples, which still work. One new feature is the fitto4x3 option (-f flag on the command line, or fitto4×3=1 in the configuration file), which crops the left and right sides of widescreen video to fit on the iPod’s 320×240 screen. I like this; you might not. The option is off by default. Either way, widescreen video will display properly on the iPod (not be smooshed vertically or horizontally).

This script targets the 5G video iPod, which has a 2-inch screen with 320×240 pixel resolution. If Apple has released a widescreen iPod by the time you read this, this script is not for you. Sorry.

Prerequisites:

On Debian Sid, you can install the prerequisites by adding the debian-multimedia repository and typing

$ sudo aptitude install lsdvd mplayer mencoder gpac zenity

Please don’t ask me how to install these prerequisites on other operating systems. I can’t help you because I don’t know.

Filed under , , , ,

4 comments

  1. Pingback by Elliot Murphy 28:1 » Blog Archive » links for 2007-06-08
  2. Hmm, looks like bash is back ;)

    Comment by Anonymous — Saturday, June 9, 2007 @ 2:12 pm

  3. Does that repository work with Ubuntu?

    Comment by Justin — Saturday, June 9, 2007 @ 7:13 pm

  4. This post is awesome if only for showing me aptitude. Thanks ~ and I was actually here looking for video converters — VLC isn’t reliable for reencoding.

    PS This works in Ubuntu feisty with the universe/multiverse repositories added (multiverse for gpac).

    Comment by Henry — Saturday, June 9, 2007 @ 7:55 pm

Respond privately

I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)



Recent Stuff For You, Special Price Stay Here
  • Greasemonkey Hacks
Good Stuff Buy The Cow Go Away
Dive Into Python
Powered by Google Drink The Milk Don't Steal

 

posts / comments
© 2001-8 Mark Pilgrim