mencoder — dvd rip one-liner 
I use mencoder to rip DVDs into .avi files under Linux. The following one-liner assumes that the DVD is mounted and available under dvd://, the first track is to be encoded into MPEG4 video with 1200Kbps bit rate, the video is (or gets) scaled to 640 width, the lame lib is used to encode sound into mp3 at 128Kbps bit rate. Here is the (long) one-liner, enjoy:
mencoder dvd://1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate="1200" \
-vop scale -zoom -xy 640 -oac mp3lame -lameopts br=128 -o dvd.avi
To customise the above command look up its entry in the man pages. Further information can also be fund here.
Did you find the above information useful and interesting? If so, please support this site by using the blog directory links at the bottom of this page. Thanks for your support!
If you have any Linux related problems or questions then please feel free to post them on our Linux Forums: http://linux.dsplabs.com.au/forums.

January 17th, 2009 at 1:18 am
Just wanted to say thanks for posting this, it worked for me - the only thing I had to change was to replace '-vop' with '-vf'
May 10th, 2010 at 10:09 pm
I recommend adding 'autoaspect=1' to the list of lavcopts parameters. This will ensure that widescreen-aspect DVDs are encoded correctly. Otherwise you may end up with a squished image.
July 13th, 2010 at 9:19 am
nice work. dvd to avi