Rip / backup / copy dvd to avi mpeg4 format with linux mencoder
1)
First identify the chapter which you would like to rip to avi mpeg4 format. Usually it is the biggest file on the dvd with extension *.vob . Other option is to use:
mplayer -identify -nosound -novideo dvd://
2)
Get and covert sound to mp3:
mencoder -oac mp3lame -lameopts br=96:cbr:vol=6 -ovc frameno -o dvdrip.avi dvd://1
3)
Get video:
run this command for 5 seconds and then interrupt with CTRL+C:
mencoder -sws 2 -oac copy -ovc lavc -lavcopts \
vcodec=mpeg4:vhq:vbitrate=629:vpass=1 \
-vf cropdetect,scale=720:480 -o dvdrip.avi dvd://1
interrupt command execution and replace cropdetect to crop values shown on the screen. So your command will look similar to this:
mencoder -sws 2 -oac copy -ovc lavc -lavcopts \
vcodec=mpeg4:vhq:vbitrate=629:vpass=1 \
-vf crop=704:496:10:6,scale=720:480 -o dvdrip.avi dvd://1
to get better quality run the command again but increase vpass value to 2.
References:
http://www.linux-magazine.com/