From a6f408234493023d6eb5d0b1b373e268ab10153b Mon Sep 17 00:00:00 2001
From: gabucino MEncoder (MPlayer's Movie Encoder) is a simple movie encoder,
designed to encode MPlayer-playable movies
-(AVI/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other MPlayer-playable
+(AVI/ASF/OGG/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other MPlayer-playable
formats (see below). It can encode with various codecs, like DivX4 (1 or
2 passes), libavcodec, PCM/MP3/VBRMP3 audio. Also has
stream copying and video resizing abilities.
AVI (DivX) files, you have be aware that AVI headers don't store this
value. Thus, the only solution is rescaling.
MEncoder can scale input images if they come in YV12 format (for example:
- ffdivx, odivx drivers, or mpeg1/2). The output size is specified with the
- -x
, and -y
options. Furthermore, there are some
- rescaling filters in MEncoder, see the manpage for them !
- They can be specified with the -sws
option. If not specified,
- MEncoder will use 0 : fast bilinear.
The scaling process is handled by the 'scale' video filter:
+ -vop scale=X:Y
. Its quality can be set with the
+ -sws
option. If it's not specified, MEncoder will use 0 :
+ fast bilinear.
Rescaling is very simple :
- mencoder sample-svcd.mpg -divx4opts br=1300 -x 640 -y 480 -sws 2 -o output.avi
Usage :
+ mencoder sample-svcd.mpg -divx4opts br=1300 -vop scale=640:480 -sws 2 -o output.avi
-ni
option won't be needed for them anymore.
-Command : mencoder input.avi -ovc copy -oac copy -o output.avi
Command : mencoder -idx input.avi -ovc copy -oac copy -o output.avi
2.4.3.5. Encoding with the libavcodec codec family
@@ -345,20 +343,6 @@ unsupported). You can encode to the following codecs : specify output filename - mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -ffourcc mjpg
Encoding from DVD, title 2, with rescaling :
- mencoder -dvd 2 -x 640 -y 480 -sws 2 -o title2.avi
mencoder -dvd 2 -vop scale=640:480 -sws 2 -o title2.avi
Encoding from HTTP :
mencoder http://mplayer.hq/example.avi -o example.avi