2002-01-02 19:07:41 +00:00
|
|
|
.\" MEncoder (C) 2000-2002 Arpad Gereoffy <sendmail@to.mplayer-users>
|
2001-11-01 00:26:04 +00:00
|
|
|
.\" This manpage was/is done by Gabucino
|
2001-10-31 20:15:19 +00:00
|
|
|
.\"
|
2002-02-20 23:45:44 +00:00
|
|
|
.TH MEncoder 1
|
2001-10-31 20:15:19 +00:00
|
|
|
.SH NAME
|
|
|
|
mencoder \- Movie Encoder for Linux
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B mencoder
|
2001-11-01 00:26:04 +00:00
|
|
|
.RB [ \-vcd\ <track\ number> ]
|
|
|
|
.RB [ \-dvd\ <titleid> ]
|
|
|
|
.RB [ \-chapter\ <chapterid> ]
|
|
|
|
.RB [ \-dvdangle\ <angleid> ]
|
|
|
|
.RB [ \-dvdkey\ <key> ]
|
|
|
|
.RB [ \-nobps ]
|
|
|
|
.RB [ \-aid\ <id> ]
|
|
|
|
.RB [ \-vid\ <id> ]
|
|
|
|
.RB [ \-pp\ <quality> ]
|
|
|
|
.RB [ \-vc\ <video\ codec\ name> ]
|
|
|
|
.RB [ \-ac\ <audio\ codec\ name> ]
|
|
|
|
.RB [ \-vfm\ <video\ codec\ family> ]
|
|
|
|
.RB [ \-afm\ <audio\ codec\ family> ]
|
2001-11-02 15:36:37 +00:00
|
|
|
.RB [ \-include\ <configfile> ]
|
2001-11-04 11:20:11 +00:00
|
|
|
.RB [ \-mc\ seconds/5f ]
|
2001-11-01 00:26:04 +00:00
|
|
|
.RB [ \-v ]
|
|
|
|
.RB [ \-mp3file\ <filename> ]
|
|
|
|
.RB [ \-ac3file\ <filename> ]
|
|
|
|
.RB [ \-ovc\ <video\ codec\ name> ]
|
|
|
|
.RB [ \-oac\ <audio\ codec\ name> ]
|
2002-03-18 22:25:03 +00:00
|
|
|
.RB [ \-nosound ]
|
2002-03-03 10:54:03 +00:00
|
|
|
.RB [ \-mf\ <multifile\ options> ]
|
2001-11-02 14:11:27 +00:00
|
|
|
.RB [ \-divx4opts\ <codec\ options> ]
|
2001-12-24 23:00:07 +00:00
|
|
|
.RB [ \-lavcopts\ <codec\ options> ]
|
2001-11-02 14:11:27 +00:00
|
|
|
.RB [ \-lameopts\ <codec\ options> ]
|
2001-11-01 00:26:04 +00:00
|
|
|
.RB [ \-pass\ <1/2> ]
|
2001-12-10 01:00:38 +00:00
|
|
|
.RB [ \-passlogfile\ <filename> ]
|
2001-11-01 00:46:22 +00:00
|
|
|
.RB [ \-ofps\ <fps> ]
|
|
|
|
.RB [ \-o\ <filename> ]
|
2001-11-03 23:57:20 +00:00
|
|
|
.RB [ \-frames\ <number> ]
|
2001-12-03 01:51:02 +00:00
|
|
|
.RB [ \-x\ <rescale\ width> ]
|
|
|
|
.RB [ \-y\ <rescale\ height> ]
|
|
|
|
.RB [ \-sws\ <0-2> ]
|
2001-12-26 21:45:23 +00:00
|
|
|
.RB [ \-ffourcc\ fourcc ]
|
2002-02-14 22:50:34 +00:00
|
|
|
.RB [ \-ss\ <time> ]
|
|
|
|
.RB [ \-endpos\ <time> ]
|
2002-03-08 17:37:25 +00:00
|
|
|
.RB [ \-audiofile\ <file\ name> ]
|
2002-03-03 10:54:03 +00:00
|
|
|
.I - or file or files specified with escaped wildcard or device
|
2001-10-31 20:15:19 +00:00
|
|
|
.PP
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.I mencoder
|
2001-11-13 17:11:26 +00:00
|
|
|
MEncoder (MPlayer's Movie Encoder) is a simple movie encoder, designed to
|
|
|
|
encode MPlayer-playable movies (AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET) to other
|
|
|
|
MPlayer-playable formats (see below). Currently it's in beta stage, and encodes
|
|
|
|
only to DivX4 (1 or 2 passes) video, PCM/MP3/VBRMP3 audio. Also has stream
|
|
|
|
copying abilities. In the future, there will be cropping, resizing filters, and
|
|
|
|
other interesting stuff.
|
2001-10-31 20:15:19 +00:00
|
|
|
.LP
|
|
|
|
.SH "GENERAL OPTIONS"
|
|
|
|
.TP
|
|
|
|
.I NOTE
|
2001-11-01 00:26:04 +00:00
|
|
|
Every "flag" option has "noflag" pair, e.g. -flag opposite is -noflag
|
2001-10-31 20:15:19 +00:00
|
|
|
.TP
|
2001-11-13 17:11:26 +00:00
|
|
|
.I NOTE
|
|
|
|
CHECK THE HTML DOCUMENTATION TOO !
|
|
|
|
.TP
|
2002-02-12 22:34:35 +00:00
|
|
|
.I NOTE
|
|
|
|
As MEncoder uses the same 'libmpdemux' as MPlayer, their options are
|
|
|
|
_sometimes the same_ ! So although for example the -sid option isn't
|
|
|
|
mentioned here, you can use it in MEncoder too! (for encoding DVD with
|
|
|
|
subtitles)
|
|
|
|
.TP
|
2001-11-01 00:26:04 +00:00
|
|
|
.B \-vcd <track number>
|
|
|
|
Encode the specified VCD track.
|
2001-10-31 20:15:19 +00:00
|
|
|
.TP
|
2001-11-01 00:26:04 +00:00
|
|
|
.B \-dvd <title number>
|
|
|
|
Encode the specified DVD title.
|
2001-10-31 20:15:19 +00:00
|
|
|
.TP
|
2001-11-01 00:26:04 +00:00
|
|
|
.B \-chapter <chapter id>
|
|
|
|
Use with -dvd option (see above). Start encoding at the specified chapter.
|
2001-10-31 20:15:19 +00:00
|
|
|
.TP
|
2001-11-01 00:26:04 +00:00
|
|
|
.B \-dvdangle <angle id>
|
|
|
|
Use with -dvd option (see above), and if the DVD disc has multiple angles.
|
|
|
|
It will encode the angle specified here.
|
2001-10-31 20:15:19 +00:00
|
|
|
.TP
|
2001-11-01 00:26:04 +00:00
|
|
|
.B \-dvdkey <key>
|
|
|
|
Used to decrypt CSS-encrypted streams on hard disk (with given CSS decrypt
|
|
|
|
key).
|
2001-10-31 20:15:19 +00:00
|
|
|
.TP
|
2001-11-01 00:26:04 +00:00
|
|
|
.B \-nobps
|
2001-11-14 22:07:34 +00:00
|
|
|
Used only for AVIs. Doesn't use the bps value in the AVI header, instead
|
|
|
|
calculates it.
|
2001-10-31 20:15:19 +00:00
|
|
|
.TP
|
2001-11-01 00:26:04 +00:00
|
|
|
.B \-aid <audio stream id>
|
2001-11-14 22:07:34 +00:00
|
|
|
If the source media contains multiple audio streams (for example DVDs), encode
|
2001-11-01 00:26:04 +00:00
|
|
|
the specified one.
|
2001-10-31 20:15:19 +00:00
|
|
|
.TP
|
2001-11-01 00:26:04 +00:00
|
|
|
.B \-vid <video stream id>
|
2001-11-14 22:07:34 +00:00
|
|
|
If the source media contains multiple video streams, encode the specified one.
|
2001-11-01 00:26:04 +00:00
|
|
|
.TP
|
|
|
|
.B \-pp <value>
|
2002-01-26 20:12:20 +00:00
|
|
|
See man mplayer.
|
2001-11-01 00:26:04 +00:00
|
|
|
.TP
|
|
|
|
.B \-vc <codec name>
|
|
|
|
Use specified codec (according to codecs.conf) for decoding input video
|
|
|
|
stream.
|
|
|
|
.TP
|
|
|
|
.B \-ac <codec name>
|
|
|
|
Use specified codec (according to codecs.conf) for decoding input audio
|
|
|
|
stream.
|
|
|
|
.TP
|
2001-11-04 00:12:54 +00:00
|
|
|
.B \-vfm <video codec family>
|
|
|
|
Force decoding by using a specific codec FAMILY, and FALLBACK to default
|
|
|
|
if failed. For examples see MPlayer manpage.
|
2001-11-01 00:26:04 +00:00
|
|
|
.TP
|
2001-11-04 00:12:54 +00:00
|
|
|
.B \-afm <audio codec family>
|
|
|
|
Force decoding by using a specific codec FAMILY, and FALLBACK to default
|
|
|
|
if failed. For examples see MPlayer manpage.
|
2001-11-02 14:11:27 +00:00
|
|
|
.TP
|
|
|
|
.B \-include
|
2001-11-04 11:20:11 +00:00
|
|
|
specify config file to be parsed after the default
|
|
|
|
.TP
|
|
|
|
.B \-mc\ seconds/5frame
|
|
|
|
maximum sync correction per 5 frames (in seconds).
|
|
|
|
Use -mc 0 to disable input A/V sync.
|
2001-11-02 14:11:27 +00:00
|
|
|
.TP
|
|
|
|
.B \-v
|
|
|
|
Increase verbosity.
|
|
|
|
.TP
|
2001-11-04 00:12:54 +00:00
|
|
|
.B \-ovc <codecname>
|
|
|
|
Encode with the given codec (codec names are from codecs.conf).
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
-ovc help get help
|
|
|
|
-ovc copy no encoding, just streamcopy
|
|
|
|
-ovc divx4 encode to DivX4
|
2001-12-26 21:45:23 +00:00
|
|
|
-ovc lavc encode with a libavcodec codec
|
2001-11-04 00:12:54 +00:00
|
|
|
.TP
|
|
|
|
.B \-oac <codecname>
|
|
|
|
Encode with the given codec (codec names are from codecs.conf).
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
-oac help get help
|
|
|
|
-oac copy no encoding, just streamcopy
|
|
|
|
-oac pcm encode to uncompressed PCM
|
|
|
|
-oac mp3lame encode to MP3 (using Lame)
|
|
|
|
.TP
|
2002-03-18 22:25:03 +00:00
|
|
|
.B \-nosound
|
|
|
|
Encode only video, no audio stream.
|
|
|
|
.TP
|
2002-03-08 17:37:25 +00:00
|
|
|
.B \-audiofile <file name>
|
|
|
|
Copy audio from external file.
|
|
|
|
.TP
|
2002-03-03 10:54:03 +00:00
|
|
|
.B \-mf <multifile options>
|
|
|
|
Used when encoding from multiple JPEG files.
|
|
|
|
Its sub-options are:
|
|
|
|
|
|
|
|
on turns on multifile support
|
|
|
|
w=<value> width of the output file
|
|
|
|
h=<value> height of the output file
|
|
|
|
fps=<value> fps of the output file
|
|
|
|
type=<value> type of input files (jpeg, png)
|
|
|
|
.TP
|
2001-11-02 14:11:27 +00:00
|
|
|
.B \-divx4opts
|
|
|
|
If encoding to DivX4, you can specify its parameters here, like:
|
|
|
|
|
2001-11-02 15:36:37 +00:00
|
|
|
-divx4opts br=1800:deinterlace:key=250
|
2001-11-02 14:11:27 +00:00
|
|
|
|
|
|
|
Available options:
|
|
|
|
|
2001-11-11 22:30:31 +00:00
|
|
|
help get help
|
2001-11-02 15:50:59 +00:00
|
|
|
br=XXX specify bitrate in
|
|
|
|
kbit <4-16000> or
|
|
|
|
bit <16001-24000000>
|
|
|
|
key=XXX maximum keyframe interval
|
|
|
|
(in frames)
|
|
|
|
deinterlace enable deinterlacing
|
2001-11-12 17:30:49 +00:00
|
|
|
(don't use, DivX4 is buggy!)
|
2001-11-02 15:50:59 +00:00
|
|
|
q=XXXX quality (1-fastest, 5-best)
|
|
|
|
min_quant=XXX minimum quantizer (0-32)
|
|
|
|
max_quant=XXX maximum quantizer (0-32)
|
|
|
|
rc_period=XXX rate control period
|
|
|
|
rc_reaction_period=XXX rate control
|
|
|
|
reaction period
|
|
|
|
rc_reaction_ratio=XXX rate control
|
|
|
|
reaction ratio
|
2001-11-02 14:11:27 +00:00
|
|
|
|
|
|
|
.TP
|
2001-12-24 23:00:07 +00:00
|
|
|
.B \-lavcopts
|
|
|
|
If encoding with a codec from libavcodec, you can specify its parameters here,
|
|
|
|
like:
|
|
|
|
|
|
|
|
-lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
|
|
|
|
|
|
|
|
Available options:
|
|
|
|
|
|
|
|
help get help
|
|
|
|
vcodec=XXX use the specified codec
|
|
|
|
(for full list, see html doc!)
|
|
|
|
vbitrate=XXX specify bitrate in
|
|
|
|
kbit <4-16000> or
|
|
|
|
bit <16001-24000000>
|
|
|
|
keyint=XXX interval between keyframes
|
|
|
|
(specify in frames)
|
|
|
|
vhq very high quality
|
2002-01-24 17:14:09 +00:00
|
|
|
vme=XXX motion estimation method
|
2002-03-20 20:23:40 +00:00
|
|
|
vqmin=XXX minimum quantizer
|
|
|
|
vqmax=XXX maximum quantizer
|
|
|
|
vqdiff=XXX quantizer difference. Limits the
|
|
|
|
maximum quantizer difference
|
|
|
|
between frames.
|
2002-03-20 21:23:59 +00:00
|
|
|
vratetol=XXX approximated bitrate tolerance
|
2002-03-20 20:23:40 +00:00
|
|
|
vqcomp=XXX if the value is set to 1.0, the
|
|
|
|
quantizer will stay nearly
|
|
|
|
constant. If it's 0.0, the
|
|
|
|
quantizer will be changed
|
|
|
|
to make all frames
|
|
|
|
approximately equally sized.
|
|
|
|
vqblur=XXX blurs the quantizer graph over
|
|
|
|
time.
|
|
|
|
0.0 : no blur
|
|
|
|
1.0 : average all past
|
|
|
|
quantizers
|
2001-12-24 23:00:07 +00:00
|
|
|
.TP
|
2001-11-02 14:11:27 +00:00
|
|
|
.B \-lameopts
|
|
|
|
If encoding to MP3 with libmp3lame, you can specify its parameters here, like:
|
|
|
|
|
2002-03-20 18:07:03 +00:00
|
|
|
-lameopts br=192:cbr
|
2001-11-02 14:11:27 +00:00
|
|
|
|
|
|
|
Available options:
|
|
|
|
|
2001-11-11 22:30:31 +00:00
|
|
|
help get help
|
2001-11-02 15:50:59 +00:00
|
|
|
br=XXX specify bitrate in
|
|
|
|
kbit <0-1024>
|
2001-11-13 17:11:26 +00:00
|
|
|
(only for CBR)
|
2001-11-03 23:57:20 +00:00
|
|
|
q=XXX Quality
|
|
|
|
(0-highest, 9-fastest)
|
2001-11-13 17:11:26 +00:00
|
|
|
(for VBR)
|
2001-11-02 15:50:59 +00:00
|
|
|
vbr=XXX variable bitrate method
|
|
|
|
0=cbr
|
|
|
|
1=mt
|
|
|
|
2=rh(default)
|
|
|
|
3=abr
|
|
|
|
4=mtrh
|
|
|
|
cbr constant bitrate
|
|
|
|
mode=XXX 0=stereo
|
|
|
|
1=joint-stereo
|
|
|
|
2=dualchannel
|
|
|
|
3=mono
|
|
|
|
(default: auto)
|
|
|
|
padding=XXX 0=no
|
|
|
|
1=all
|
|
|
|
2=adjust
|
|
|
|
ratio=XXX compression ratio <1-100>
|
2001-11-02 14:11:27 +00:00
|
|
|
|
2001-11-03 23:57:20 +00:00
|
|
|
.TP
|
|
|
|
.B \-pass <1/2>
|
|
|
|
With this you can encode 2pass DivX4 files. First encode with -pass 1, then
|
|
|
|
with the same parameters, encode with -pass 2.
|
|
|
|
.TP
|
2001-12-10 01:00:38 +00:00
|
|
|
.B \-passlogfile <filename>
|
|
|
|
When encoding in 2pass mode, MEncoder dumps first pass' informations
|
|
|
|
to the given file instead of the default divx2pass.log .
|
|
|
|
.TP
|
2001-11-03 23:57:20 +00:00
|
|
|
.B \-ofps <fps>
|
|
|
|
The output file will have different frame/sec than the source.
|
|
|
|
.TP
|
2001-11-04 10:42:32 +00:00
|
|
|
.B \-o <filename>
|
|
|
|
Outputs to the given filename, instead of the default 'test.avi' .
|
|
|
|
.TP
|
2001-11-03 23:57:20 +00:00
|
|
|
.B \-frames <number>
|
|
|
|
Encode only given number of frames.
|
2001-12-03 01:51:02 +00:00
|
|
|
.TP
|
2002-02-14 22:50:34 +00:00
|
|
|
.B \-ss <time>
|
|
|
|
seek to given time position. For example :
|
|
|
|
|
|
|
|
-ss 56 seeks to 56 seconds
|
|
|
|
-ss 01:10:00 seeks to 1 hour 10 min
|
|
|
|
|
|
|
|
Can start only from keyframes !
|
|
|
|
.TP
|
|
|
|
.B \-endpos <time>
|
|
|
|
stop encoding at given time. Can be specified in many was :
|
|
|
|
|
|
|
|
-endpos 56 encode only 56 seconds
|
|
|
|
-endpos 01:10:00 encode only 1 hours
|
|
|
|
|
|
|
|
Can be used in conjuction with -ss !
|
|
|
|
.TP
|
2001-12-03 01:51:02 +00:00
|
|
|
.B \-x <rescale width>
|
|
|
|
Rescale output movie to given pixels wide.
|
|
|
|
.TP
|
|
|
|
.B \-y <rescale height>
|
|
|
|
Rescale output movie to given pixels tall.
|
|
|
|
.TP
|
2002-01-24 17:14:09 +00:00
|
|
|
.B \-sws <0-2>
|
2001-12-03 01:51:02 +00:00
|
|
|
Type of scaling method
|
|
|
|
|
2001-12-24 23:00:07 +00:00
|
|
|
0 fast bilinear (default)
|
2001-12-03 01:51:02 +00:00
|
|
|
1 bilinear
|
|
|
|
2 bicubic (best quality)
|
2001-12-26 21:45:23 +00:00
|
|
|
.TP
|
|
|
|
.B \-ffourcc fourcc
|
|
|
|
Can be used to force the video fourcc of the output file. For example -ffourcc
|
|
|
|
div3 will have the output file contain "div3" as video fourcc.
|
|
|
|
.IP
|
2001-11-01 00:26:04 +00:00
|
|
|
.SH FILES AND DIRECTORIES
|
|
|
|
.IP
|
|
|
|
.SH "EXAMPLES"
|
2001-11-03 23:57:20 +00:00
|
|
|
.B Encoding DVD title #2
|
|
|
|
mencoder -dvd 2 -o title2.avi
|
|
|
|
.TP
|
2002-01-28 14:02:16 +00:00
|
|
|
.B Encoding DVD title #2, only selected chapters
|
|
|
|
mencoder -dvd 2 -chapter 10-15 -o title2.avi
|
|
|
|
.TP
|
2001-12-24 23:00:07 +00:00
|
|
|
.B The same, but with libavcodec family, MJPEG compression
|
|
|
|
mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -ffourcc mjpg
|
|
|
|
.TP
|
2001-11-03 23:57:20 +00:00
|
|
|
.B Encoding from HTTP
|
|
|
|
mencoder http://mplayer.hq/example.avi -o example.avi
|
|
|
|
.TP
|
2001-11-13 20:07:09 +00:00
|
|
|
.B Encoding from a pipe
|
2001-11-03 23:57:20 +00:00
|
|
|
rar p test-SVCD.rar | mencoder -divx4opts br=800 -ofps 24 -pass 1 -- -
|
2001-11-13 20:07:09 +00:00
|
|
|
.TP
|
|
|
|
.B Encoding multiple *.vob files
|
|
|
|
cat *.vob | mencoder <options> -
|
2001-10-31 20:15:19 +00:00
|
|
|
.IP
|
|
|
|
.SH BUGS
|
|
|
|
Probably. Check the documentation.
|
|
|
|
|
|
|
|
Bugreports should be addressed to the MPlayer-users mailing list
|
|
|
|
(mplayer-users@mplayerhq.hu) ! If you want to submit a bugreport
|
|
|
|
(which we love to receive!), please double-check the bugreports.html, and
|
|
|
|
tell us all that we need to know to identify your problem.
|
|
|
|
|
|
|
|
.LP
|
|
|
|
.SH AUTHORS
|
|
|
|
Check documentation !
|
|
|
|
|
2002-01-02 19:07:41 +00:00
|
|
|
MPlayer is (C) 2000-2002
|
2001-12-28 21:23:45 +00:00
|
|
|
.I Arpad Gereoffy <sendmail@to.mplayer-users>
|
2001-10-31 20:15:19 +00:00
|
|
|
|
|
|
|
This manpage is written and maintained by
|
|
|
|
.I Gabucino .
|
|
|
|
.LP
|
|
|
|
.SH STANDARD DISCLAIMER
|
|
|
|
Use only at your own risk! There may be errors and inaccuracies that could
|
|
|
|
be damaging to your system or your eye. Proceed with caution, and although
|
|
|
|
this is highly unlikely, the author doesn't take any responsibility for that!
|
|
|
|
.\" end of file
|