moozooh:
Okay, some MEncoder 101 then.
mencoder -oac copy -ovc copy -mc 0 input.avi -o output.avi
This copies the video input.avi into output.avi, -oac is output audio codec and -ovc is output video codec. -mc 0 says audio and video should stay synced.
Instead of -oac copy, you can use -nosound and get no sound.
For the output file, first pass video encoding shouldn't use sound, and output should be sent straight to null. "-o nul" on DOS/Windows, "-o /dev/null" on everything else.
To compress with xvid, change the ovc to xvid, and add a new option -xvidencopts with appropriate parameters. "-ovc xvid -xvidencopts fixed_quant=2" Will use xvid with almost lossless quality. For 2 pass, and example: "-ovc xvid -xvidencopts pass=1:bitrate=350" second pass would be the same but pass=2.
To compress with x264, change ovc to x264 and set -x264encopts. "-ovc x264 -x264encopts qp=0" will compress at a practically loseless setting. For two pass: "-ovc x264 -x264encopts pass=1:bitrate=200" and for 2nd pass set pass=2.
For compressing audio with MP3 change the oac to mp3lame. Then pass appropriate settings to -lameopts. Example: "-oac mp3lame -lameopts aq=0:preset=96:mode=1". That's audio quality at 0 (the highest) bitrate at 96, with joint stereo.
To rip from a DVD, specify "dvd://" as input, also note that order of options generally doesn't matter.
Here's an example of something I tried:
mencoder dvd:// -alang English -nosound -ovc x264 -x264encopts pass=1 -vf crop=720:352:0:62 -o /dev/null
mencoder dvd:// -oac mp3lame -lameopts aq=0:preset=96:mode=1 -af volume=5:sc -ovc x264 -x264encopts pass=3:bitrate=640 -vf crop=720:352:0:62 -o "/home/nach/rip/movie.avi"
-alang is used to select the language from multilingual DVDs. -vf is for video filters, I used crop to get rid of black bars. If you use "-vf cropdetect" mencoder can find the black bars for you and tell you what to pass crop. -af is for video filters, volume allows you to raise the volume by 1-15, sc is to scale the audio.
Now that you got all that info go off and play, shouldn't be hard.
For more help:
http://www.mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html#encoding-guide
Although you may prefer Russian:
http://www.mplayerhq.hu/DOCS/HTML-single/ru/MPlayer.html
Spend some time on this, and after you played around a bit with reencoding some vids, or ripping some DVDs, get back to use and we can focus on more video game oriented ripping.