User Tools

Site Tools


mplayer:mplayer_usage

This is an old revision of the document!


Table of Contents

MPlayer Usage

MPlayer

MEncoder

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

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.

mplayer/mplayer_usage.1230977374.txt.gz · Last modified: 2009/01/03 11:09 by deva