User Tools

Site Tools


This is an old revision of the document!

Table of Contents

MPlayer Usage



Encoding an xvid file in 2 pass mode

The following example will encode a file in xvid 2 pass mode with normalized mp3 audio.

mencoder -o /dev/null -ovc xvid -xvidencopts pass=1 -nosound $FILENAME
mencoder -o $OUTPUT -ovc xvid -xvidencopts bitrate=$BITRATE:pass=2 \
    -oac mp3lame -lameopts vbr=3:br=112:mode=1 -af volnorm $FILENAME

Encoding an h264 file

The following example will encode a file in h264 with normalized mp3 audio.

mencoder -o $OUTPUT -ovc x264 -x264encopts bitrate=$BITRATE:threads=3 \
    -oac mp3lame -lameopts vbr=3:br=112:mode=1 -af volnorm $FILENAME

Making a flash movie

Note it only works for 44100Hz sound, hence the -srate 44100 option.

mencoder -ovc lavc -oac mp3lame -srate 44100 -lavcopts vcodec=flv \
         -of lavf -lavfopts format=swf $FILENAME -o $OUTPUT

Making a DVD

Grabbing from X11

ffmpeg -f x11grab -s vga -i :0.0 /tmp/out.mpg

Fixing a noisy VHS rip

-vf-add hqdn3d=10:10:20 -vf-add pp=fd

hqdn3d is a denoise filter, pp=fd is a deinterlace filter.

Fixing annoying audio denormalisation

-af volnorm=1,ladspa=/usr/lib/ladspa/

Make sure that the swh-plugins ladspa package is installed on the system, and that mplayer is compiled with ladspa support.

mplayer/mplayer_usage.1237190768.txt.gz · Last modified: 2009/03/16 09:06 by deva