Convert .MPG Video to a Compressed .AVI in Linux with Mencoder


Convert .MPEG/MPG Video to a Compressed .AVI in Linux with Mencoder:

1.) xvid

$ mencoder -ofps 25 -ovc xvid -oac mp3lame -lameopts abr:br=128 -srate 48000 -xvidencopts fixed_quant=4 input.mpg -o output.avi

/or

2.) x264

$ mencoder -ofps 25 -ovc x264 -oac mp3lame -lameopts abr:br=128 -srate 48000 -xvidencopts fixed_quant=4 input.mpg -o output.avi



*NOTES:
- Where input is the source file and output the outcome file.
- The $ sign at the start of the command is to signify the terminal's prompt, no need to type this in.
- Using x264 option than xvid will make it the better compressed file, approx 10-30% smaller, this is my preferred conversion of the two.

0 comments:

Post a Comment