I wrote a script that uses HandBrake and lsdvd to be able to convert a dvd in my collection to mp4 format. It automatically selects the main track and if the movie size is 720x480 it converts it to 480x320 size for the iPhone. This script could be easily modified for Video iPods also. For my dual core 2.4 GHz pentium this takes about a half hour for the quality two-pass method. On my 1 GHz apple laptop this would normally take around 8+ hours.

dvd2mp4.pl (perl)

TODO:
  1. Automatically adjust the output format if movie is not 720x480 in size