This is an old revision of the document!
Table of Contents
Multimedia encoding
Windows
VirtualDub
Linux
Video
⇒ mencoder
(comes with mplayer).
http://gentoo-wiki.com/HOWTO_Mencoder_Introduction_Guide
Example with xvid codec :
mencoder \ -ovc xvid -xvidencopts bitrate=800:quant_type=mpeg:gmc:chroma_opt:vhq=4:bvhq=1:trellis \ -oac mp3lame -lameopts abr:br=128 \ -vf yadif=0 \ K7-1-DV-1.avi K7-1-DV-2.avi -o rush1.avi
Options :
- ovc = video codec
- trellis : speeds up encoding
- oac = audio codec
- vf = video filters
- pp = post processing subfilters
- yadif : deinterlace
Audio
mp3
⇒ lame
To encode from wav to mp3 in “speech” quality :
lame -V2 --vbr-new -q0 --lowpass 10 -s 22.05 -b32 file.wav file.mp3
ogg
⇒ oggenc
To encode from wav to ogg in “speech” quality :
oggenc -b 32 --downmix --resample 22050 file.wav file.ogg
Converting from ogg to ogg in “speech” quality :
oggdec -b 16 -R file.ogg -o - | oggenc -r -B 16 -C 1 -b 32 --resample 22050 - -o file_recomp.ogg