From d76ad5f227f2ae26ca2dc8896efdb55ede297a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 25 Dec 2010 13:47:30 +0100 Subject: [PATCH] manpage: Remove MEncoder references --- DOCS/man/en/mplayer.1 | 3833 +---------------------------------------- 1 file changed, 25 insertions(+), 3808 deletions(-) diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1 index 01e48d33d9..cf429bcc14 100644 --- a/DOCS/man/en/mplayer.1 +++ b/DOCS/man/en/mplayer.1 @@ -34,9 +34,7 @@ .TH MPlayer 1 "2009-03-25" "The MPlayer Project" "The Movie Player" . .SH NAME -mplayer \- movie player -.br -mencoder \- movie encoder +mplayer \- movie player . .\" -------------------------------------------------------------------------- .\" Synopsis @@ -127,16 +125,6 @@ mpst://host[:port]/URL .B mplayer tivo://host/[list|llist|fsid] [options] -. -.br -.B mencoder -[options] file -[file|URL|\-] [\-o file | file://file | smb://[user:pass@]host/filepath] -. -.br -.B mencoder -[options] file1 -[specific options] [file2] [specific options] .ad .hy . @@ -170,16 +158,6 @@ fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM, SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and DVD subtitles (SPU streams, VOBsub and Closed Captions). .PP -.B mencoder -(MPlayer's Movie Encoder) is a simple movie encoder, designed to encode -MPlayer-playable movies (see above) to other MPlayer-playable formats (see -below). -It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and -PCM/\:MP3/\:VBRMP3 audio in 1, 2 or 3 passes. -Furthermore it has stream copying abilities, a powerful filter system (crop, -expand, flip, postprocess, rotate, scale, noise, RGB/\:YUV conversion) and -more. -.PP .B gmplayer is MPlayer with a graphical user interface. It has the same options as MPlayer. @@ -489,13 +467,10 @@ mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi . .SH "CONFIGURATION FILES" You can put all of the options in configuration files which will be read -every time MPlayer/MEncoder is run. +every time MPlayer is run. The system-wide configuration file 'mplayer.conf' is in your configuration directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user specific one is '~/\:.mplayer/\:config'. -The configuration file for MEncoder is 'mencoder.conf' in your configuration -directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the -user specific one is '~/\:.mplayer/\:mencoder.conf'. User specific options override system-wide options and options given on the command line override either. The syntax of the configuration files is 'option=', everything after @@ -525,37 +500,12 @@ the file played and then tries to load any file-specific configuration. vo=xmga # I love practicing handstands while watching videos. flip=yes -# Decode/encode multiple files from PNG, +# Decode multiple files from PNG, # start with mf://filemask mf=type=png:fps=25 # Eerie negative images are cool. vf=eq2=1.0:\-0.8 .fi -.PP -.I "EXAMPLE MENCODER CONFIGURATION FILE:" -.sp 1 -.nf -# Make MEncoder output to a default filename. -o=encoded.avi -# The next 4 lines allow mencoder tv:// to start capturing immediately. -oac=pcm=yes -ovc=lavc=yes -lavcopts=vcodec=mjpeg -tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000 -# more complex default encoding option set -lavcopts=vcodec=mpeg4:autoaspect=1 -lameopts=aq=2:vbr=4 -ovc=lavc=1 -oac=lavc=1 -passlogfile=pass1stats.log -noautoexpand=1 -subfont-autoscale=3 -subfont-osd-scale=6 -subfont-text-scale=4 -subalign=2 -subpos=96 -spuaa=20 -.fi . .\" -------------------------------------------------------------------------- .\" Profiles @@ -597,21 +547,6 @@ outdir=/tmp [ao.alsa] device=spdif .fi -.PP -.I "EXAMPLE MENCODER PROFILE:" -.sp 1 -.nf - -[mpeg4] -profile-desc="MPEG4 encoding" -ovc=lacv=yes -lavcopts=vcodec=mpeg4:vbitrate=1200 - -[mpeg4\-hq] -profile-desc="HQ MPEG4 encoding" -profile=mpeg4 -lavcopts=mbd=2:trell=yes:v4mv=yes -.fi . .\" -------------------------------------------------------------------------- .\" Options @@ -1200,8 +1135,8 @@ compression information. Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127, VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190). MPlayer prints the available audio IDs when run in verbose (\-v) mode. -When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program -(if present) with the chosen audio stream. +When playing an MPEG-TS stream, MPlayer will use the first program (if present) +with the chosen audio stream. . .TP .B \-ausid (also see \-alang) @@ -1405,23 +1340,11 @@ The file is assumed to be in Netscape format. audio delay in seconds (positive or negative float value) .br Negative values delay the audio, and positive values delay the video. -Note that this is the exact opposite of the \-audio\-delay MEncoder option. -.br -.I NOTE: -When used with MEncoder, this is not guaranteed to work correctly -with \-ovc copy; use \-audio\-delay instead. . .TP .B \-ignore\-start Ignore the specified starting time for streams in AVI files. -In MPlayer, this nullifies stream delays in files encoded with -the \-audio\-delay option. -During encoding, this option prevents MEncoder from transferring -original stream start times to the new file; the \-audio\-delay option is -not affected. -Note that MEncoder sometimes adjusts stream starting times -automatically to compensate for anticipated decoding delays, so do not -use this option for encoding without testing it first. +This nullifies stream delays. . .TP .B \-demuxer <[+]name> @@ -1510,12 +1433,10 @@ See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details on how to use this. . .TP -.B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb) -Stop at given time or byte position. +.B \-endpos <[[hh:]mm:]ss[.ms]> (also see \-ss and \-sb) +Stop at given time. .br .I NOTE: -Byte position is enabled only for MEncoder and will not be accurate, as it can -only stop at a frame boundary. When used in conjunction with \-ss option, \-endpos time will shift forward by seconds specified with \-ss. .sp 1 @@ -1528,8 +1449,6 @@ Stop at 56 seconds. Stop at 1 hour 10 minutes. .IPs "\-ss 10 \-endpos 56" Stop at 1 minute 6 seconds. -.IPs "\-endpos 100mb" -Encode only 100 MB. .RE .PD 1 . @@ -1538,7 +1457,6 @@ Encode only 100 MB. Force index rebuilding. Useful for files with broken index (A/V desync, etc). This will enable seeking in files where seeking was not possible. -You can fix the index permanently with MEncoder (see the documentation). .br .I NOTE: This option only works if the underlying media supports seeking @@ -1573,7 +1491,6 @@ This option only works if the underlying media supports seeking .TP .B \-noidx Skip rebuilding index file. -MEncoder skips writing the index with this option. . .TP .B \-ipv4\-only\-proxy (network only) @@ -1594,9 +1511,6 @@ This option is obsolete now that MPlayer has OpenDML support. .TP .B \-mc maximum A-V sync correction per frame (in seconds) -.br -\-mc 0 should always be combined with \-noskip for mencoder, otherwise -it will almost certainly cause A-V desync. . .TP .B \-mf @@ -1666,7 +1580,7 @@ cards are known as PVR capture cards. Be aware that only Linux 2.6.18 kernel and above is able to handle MPEG stream through V4L2 layer. For hardware capture of an MPEG stream and watching it with -MPlayer/MEncoder, use 'pvr://' as a movie URL. +MPlayer, use 'pvr://' as a movie URL. .sp 1 Available options are: .RSs @@ -1886,7 +1800,6 @@ Useful for playback from CD-ROM images or VOB files with junk at the beginning. .TP .B \-speed <0.01\-100> Slow down or speed up playback by the factor given as parameter. -Not guaranteed to work correctly with \-oac copy. . .TP .B \-srate @@ -2050,9 +1963,8 @@ value and switch off automatic control. A value of 0 enables automatic control. If this option is omitted, gain control will not be modified. .IPs immediatemode= -A value of 0 means capture and buffer audio and video together -(default for MEncoder). -A value of 1 (default for MPlayer) means to do video capture only and let the +A value of 0 means capture and buffer audio and video together. +A value of 1 (default) means to do video capture only and let the audio go through a loopback cable from the TV card to the sound card. .IPs mjpeg Use hardware MJPEG compression (if the card supports it). @@ -2152,8 +2064,8 @@ Use as user agent for HTTP streaming. .TP .B \-vid Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190). -When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program -(if present) with the chosen video stream. +When playing an MPEG-TS stream, MPlayer will use the first program (if present) +with the chosen video stream. . .TP .B \-vivo (DEBUG CODE) @@ -2292,7 +2204,7 @@ endings with DOS/Windows line endings. .TP .B \-dumpsub (MPlayer only) (BETA CODE) Dumps the subtitle substream from VOB streams. -Also see the \-dump*sub and \-vobsubout* options. +Also see the \-dump*sub options. . .TP .B \-noembeddedfonts @@ -4889,7 +4801,6 @@ Pass AVOptions to libavcodec decoder. Note, a patch to make the o= unneeded and pass all unknown options through the AVOption system is welcome. A full list of AVOptions can be found in the FFmpeg manual. -Note that some options may conflict with MEncoder options. .sp 1 .RS .I EXAMPLE: @@ -4966,12 +4877,12 @@ It has effect only with libmpeg2 and libavcodec codecs. . .TP .B \-nosound -Do not play/\:encode sound. +Do not play sound. Useful for benchmarking. . .TP .B \-novideo -Do not play/\:encode video. +Do not play video. With some demuxers this may not work. In those cases you can try \-vc null \-vo null instead; but "\-vc null" is always unreliable. . .TP @@ -5218,9 +5129,6 @@ Can be used if you have a fixed frequency sound card or if you are stuck with an old sound card that is only capable of max 44.1kHz. This filter is automatically enabled if necessary. It only supports 16-bit integer and float in native-endian format as input. -.br -.I NOTE: -With MEncoder, you need to also use \-srate . .PD 0 .RSs .IPs @@ -5261,9 +5169,6 @@ exact output frequency scaling and linear interpolation. .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]] Changes the sample rate of the audio stream to an integer in Hz. It only supports the 16-bit native-endian format. -.br -.I NOTE: -With MEncoder, you need to also use \-srate . .PD 0 .RSs .IPs @@ -5505,8 +5410,6 @@ until the hissing noise in the background is gone. .br This filter has a second feature: It measures the overall maximum sound level and prints out that level when MPlayer exits. -This volume estimate can be used for setting the sound level in -MEncoder such that the maximum dynamic range is utilized. This feature currently only works with floating-point data, use e.g. \-af\-adv force=5, or use \-af stats. .br @@ -6625,9 +6528,6 @@ chroma strength (default: 1.0) Software equalizer with interactive controls just like the hardware equalizer, for cards/\:drivers that do not support brightness and contrast controls in hardware. -Might also be useful with MEncoder, either for fixing poorly captured -movies, or for slightly reducing contrast to mask artifacts and get by -with lower bitrates. .PD 0 .RSs .IPs <\-100\-100> @@ -6728,27 +6628,6 @@ Select the sampling mode. .PD 1 . .TP -.B harddup -Only useful with MEncoder. -If harddup is used when encoding, it will force duplicate frames to be -encoded in the output. -This uses slightly more space, but is necessary for output to MPEG -files or if you plan to demux and remux the video stream after -encoding. -Should be placed at or near the end of the filter chain unless you -have a good reason to do otherwise. -. -.TP -.B softskip -Only useful with MEncoder. -Softskip moves the frame skipping (dropping) step of encoding from -before the filter chain to some point during the filter chain. -This allows filters which need to see all frames (inverse telecine, -temporal denoising, etc.) to function properly. -Should be placed after the filters which need to see all frames and -before any subsequent filters that are CPU-intensive. -. -.TP .B decimate[=max:hi:lo:frac] Drops frames that do not differ greatly from the previous frame in order to reduce framerate. @@ -6901,7 +6780,7 @@ field (depending on whether n is even or odd). Attempts to reverse the 'telecine' process to recover a clean, non-interlaced stream at film framerate. This was the first and most primitive inverse telecine filter to be -added to MPlayer/\:MEncoder. +added to MPlayer. It works by latching onto the telecine 3:2 pattern and following it as long as possible. This makes it suitable for perfectly-telecined material, even in the @@ -6921,9 +6800,6 @@ Set the frame dropping mode. merges in the past 5 frames. .br 2: Always maintain exact 5:4 input to output frame ratio. -.br -.I NOTE: -Use mode 1 or 2 with MEncoder. .REss .IPs "\ " Analysis mode. @@ -6952,9 +6828,7 @@ This will give much better results for material that has undergone heavy editing after telecine was applied, but as a result it is not as forgiving of noisy input, for example TV capture. The optional parameter (ivtc=1) corresponds to the dr=1 option for the -detc filter, and should be used with MEncoder but not with MPlayer. -As with detc, you must specify the correct output framerate (\-ofps -24000/1001) when using MEncoder. +detc filter, and should not be used with MPlayer. Further development on ivtc has stopped, as the pullup and filmdint filters appear to be much more accurate. . @@ -6997,14 +6871,6 @@ likely will decrease accuracy, especially if there is chroma noise The main purpose of setting mp to a chroma plane is to reduce CPU load and make pullup usable in realtime on slow machines. .REss -.RS -.sp 1 -.I NOTE: -Always follow pullup with the softskip filter when encoding to ensure -that pullup is able to see each frame. -Failure to do so will lead to incorrect output and will usually crash, -due to design limitations in the codec/\:filter layer. -.REss . .TP .B filmdint[=options] @@ -7019,8 +6885,7 @@ If the source is MPEG-2, this must be the first filter to allow access to the field-flags set by the MPEG-2 decoder. Depending on the source MPEG, you may be fine ignoring this advice, as long as you do not see lots of "Bottom-first field" warnings. -With no options it does normal inverse telecine, and should be used -together with mencoder \-fps 30000/1001 \-ofps 24000/1001. +With no options it does normal inverse telecine. When this filter is used with MPlayer, it will result in an uneven framerate during playback, but it is still generally better than using pp=lb or no deinterlacing at all. @@ -7034,7 +6899,6 @@ planes, the crop area is extended. This usually means that x and y must be even. .IPs io=: For each ifps input frames the filter will output ofps frames. -The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio. This could be used to filter movies that are broadcast on TV at a frame rate different from their original framerate. .IPs luma_only= @@ -7081,13 +6945,6 @@ Sum of Absolute Difference threshold, default is 64. .RE . .TP -.B softpulldown -This filter works only correct with MEncoder and acts on the MPEG-2 flags -used for soft 3:2 pulldown (soft telecine). -If you want to use the ivtc or detc filter on movies that are partly soft -telecined, inserting this filter before them should make them more reliable. -. -.TP .B divtc[=options] Inverse telecine for deinterlaced video. If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced @@ -7095,9 +6952,6 @@ using a method that keeps one field and interpolates the other, the result is a juddering video that has every fourth frame duplicated. This filter is intended to find and drop those duplicates and restore the original film framerate. -When using this filter, you must specify \-ofps that is 4/5 of -the fps of the input file and place the softskip later in the -filter chain to make sure that divtc sees all the frames. Two different modes are available: One pass mode is the default and is straightforward to use, but has the disadvantage that any changes in the telecine @@ -7211,10 +7065,7 @@ between fields for t, b, and p alternatives. .TP .B telecine[=start] Apply 3:2 'telecine' process to increase framerate by 20%. -This most likely will not work correctly with MPlayer, but it can -be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'. -Both fps options are essential! -(A/V sync will break if they are wrong.) +This most likely will not work correctly with MPlayer. The optional start parameter tells the filter where in the telecine pattern to start (0\-3). . @@ -7247,9 +7098,6 @@ Height unchanged at half framerate. .B tfields[=mode[:field_dominance]] Temporal field separation \- split fields into frames, doubling the output framerate. -Like the telecine filter, tfields might not work completely right unless -used with MEncoder and both \-fps and \-ofps set to the -desired (double) framerate! .PD 0 .RSs .IPs @@ -7476,13 +7324,12 @@ If you call the filter with I (uppercase) as the parameter, then .B only keyframes are rendered. For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB), -for AVI it means every scene change or every keyint value (see \-lavcopts -keyint= value if you use MEncoder to encode the video). +for AVI it means every scene change or every keyint value. .sp 1 When a keyframe is found, an 'I!' string followed by a newline character is -printed, leaving the current line of MPlayer/\:MEncoder output on the screen, -because it contains the time (in seconds) and frame number of the keyframe -(You can use this information to split the AVI.). +printed, leaving the current line of MPlayer output on the screen, because it +contains the time (in seconds) and frame number of the keyframe (You can use +this information to split the AVI.). .sp 1 If you call the filter with a numeric parameter 'step' then only one in every 'step' frames is rendered. @@ -7787,3577 +7634,6 @@ may make demons fly out of your nose. .RE . . -.SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)" -. -.TP -.B \-audio\-delay -Delays either audio or video by setting a delay field in the header -(default: 0.0). -This does not delay either stream while encoding, but the player will -see the delay field and compensate accordingly. -Positive values delay the audio, and negative values delay the video. -Note that this is the exact opposite of the \-delay option. -For example, if a video plays correctly with \-delay 0.2, you can -fix the video with MEncoder by using \-audio\-delay \-0.2. -.sp 1 -Currently, this option only works with the default muxer (\-of avi). -If you are using a different muxer, then you must use \-delay instead. -. -.TP -.B \-audio\-density <1\-50> -Number of audio chunks per second (default is 2 for 0.5s long audio chunks). -.br -.I NOTE: -CBR only, VBR ignores this as it puts each packet in a new chunk. -. -.TP -.B \-audio\-preload <0.0\-2.0> -Sets up the audio buffering time interval (default: 0.5s). -. -.TP -.B \-fafmttag -Can be used to override the audio format tag of the output file. -.sp 1 -.I EXAMPLE: -.PD 0 -.RSs -.IPs "\-fafmttag 0x55" -Will have the output file contain 0x55 (mp3) as audio format tag. -.RE -.PD 1 -. -.TP -.B \-ffourcc -Can be used to override the video fourcc of the output file. -.sp 1 -.I EXAMPLE: -.PD 0 -.RSs -.IPs "\-ffourcc div3" -Will have the output file contain 'div3' as video fourcc. -.RE -.PD 1 -. -.TP -.B \-force\-avi\-aspect <0.2\-3.0> -Override the aspect stored in the AVI OpenDML vprp header. -This can be used to change the aspect ratio with '\-ovc copy'. -. -.TP -.B \-frameno\-file (DEPRECATED) -Specify the name of the audio file with framenumber mappings created in -the first (audio only) pass of a special three pass encoding mode. -.br -.I NOTE: -Using this mode will most likely give you A-V desync. -Do not use it. -It is kept for backwards compatibility only and will possibly -be removed in a future version. -. -.TP -.B \-hr\-edl\-seek -Use a more precise, but much slower method for skipping areas. -Areas marked for skipping are not seeked over, instead all -frames are decoded, but only the necessary frames are encoded. -This allows starting at non-keyframe boundaries. -.br -.I NOTE: -Not guaranteed to work right with '\-ovc copy'. -. -.TP -.B \-info (AVI only) -Specify the info header of the resulting AVI file. -.sp 1 -Available options are: -.RSs -.IPs "help\ " -Show this description. -.IPs name= -title of the work -.IPs artist= -artist or author of the work -.IPs genre= -original work category -.IPs subject= -contents of the work -.IPs copyright= -copyright information -.IPs srcform= -original format of the digitized material -.IPs comment= -general comments about the work -.RE -. -.TP -.B \-noautoexpand -Do not automatically insert the expand filter into the MEncoder filter chain. -Useful to control at which point of the filter chain subtitles are rendered -when hardcoding subtitles onto a movie. -. -.TP -.B \-noencodedups -Do not attempt to encode duplicate frames in duplicate; always output -zero-byte frames to indicate duplicates. -Zero-byte frames will be written anyway unless a filter or encoder -capable of doing duplicate encoding is loaded. -Currently the only such filter is harddup. -. -.TP -.B \-noodml (\-of avi only) -Do not write OpenDML index for AVI files >1GB. -. -.TP -.B \-noskip -Do not skip frames. -. -.TP -.B \-o -Outputs to the given filename. -.br -If you want a default output filename, you can put this option in the -MEncoder config file. -. -.TP -.B \-oac -Encode with the given audio codec (no default set). -.br -.I NOTE: -Use \-oac help to get a list of available audio codecs. -.sp 1 -.I EXAMPLE: -.PD 0 -.RSs -.IPs "\-oac copy" -no encoding, just streamcopy -.IPs "\-oac pcm" -Encode to uncompressed PCM. -.IPs "\-oac mp3lame" -Encode to MP3 (using LAME). -.IPs "\-oac lavc" -Encode with a libavcodec codec. -.RE -.PD 1 -. -.TP -.B \-of (BETA CODE!) -Encode to the specified container format (default: AVI). -.br -.I NOTE: -Use \-of help to get a list of available container formats. -.sp 1 -.I EXAMPLE: -.PD 0 -.RSs -.IPs "\-of avi" -Encode to AVI. -.IPs "\-of mpeg" -Encode to MPEG (also see \-mpegopts). -.IPs "\-of lavf" -Encode with libavformat muxers (also see \-lavfopts). -.IPs "\-of rawvideo" -raw video stream (no muxing \- one video stream only) -.IPs "\-of rawaudio" -raw audio stream (no muxing \- one audio stream only) -.RE -.PD 1 -. -.TP -.B \-ofps -Specify a frames per second (fps) value for the output file, -which can be different from that of the source material. -Must be set for variable fps (ASF, some MOV) and progressive -(30000/1001 fps telecined MPEG) files. -. -.TP -.B \-ovc -Encode with the given video codec (no default set). -.br -.I NOTE: -Use \-ovc help to get a list of available video codecs. -.sp 1 -.I EXAMPLE: -.PD 0 -.RSs -.IPs "\-ovc copy" -no encoding, just streamcopy -.IPs "\-ovc raw" -Encode to an arbitrary uncompressed format (use '\-vf format' to select). -.IPs "\-ovc lavc" -Encode with a libavcodec codec. -.RE -.PD 1 -. -.TP -.B \-passlogfile -Dump first pass information to instead of the default divx2pass.log -in two pass encoding mode. -. -.TP -.B \-skiplimit -Specify the maximum number of frames that may be skipped after -encoding one frame (\-noskiplimit for unlimited). -. -.TP -.B \-vobsubout -Specify the basename for the output .idx and .sub files. -This turns off subtitle rendering in the encoded movie and diverts it to -VOBsub subtitle files. -. -.TP -.B \-vobsuboutid -Specify the language two letter code for the subtitles. -This overrides what is read from the DVD or the .ifo file. -. -.TP -.B \-vobsuboutindex -Specify the index of the subtitles in the output files (default: 0). -. -. -. -.SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)" -You can specify codec specific encoding parameters using the following -syntax: -. -.TP -.B \-opts -. -.PP -Where may be: lavc, xvidenc, mp3lame, toolame, twolame, -nuv, xvfw, faac, x264enc, mpeg, lavf. -. -. -.SS mp3lame (\-lameopts) -. -.TP -.B "help\ \ \ " -get help -. -.TP -.B vbr=<0\-4> -variable bitrate method -.PD 0 -.RSs -.IPs 0 -cbr -.IPs 1 -mt -.IPs 2 -rh (default) -.IPs 3 -abr -.IPs 4 -mtrh -.RE -.PD 1 -. -.TP -.B "abr\ \ \ \ " -average bitrate -. -.TP -.B "cbr\ \ \ \ " -constant bitrate -Also forces CBR mode encoding on subsequent ABR presets modes. -. -.TP -.B br=<0\-1024> -bitrate in kbps (CBR and ABR only) -. -.TP -.B q=<0\-9> -quality (0 \- highest, 9 \- lowest) (VBR only) -. -.TP -.B aq=<0\-9> -algorithmic quality (0 \- best/slowest, 9 \- worst/fastest) -. -.TP -.B ratio=<1\-100> -compression ratio -. -.TP -.B vol=<0\-10> -audio input gain -. -.TP -.B mode=<0\-3> -(default: auto) -.PD 0 -.RSs -.IPs 0 -stereo -.IPs 1 -joint-stereo -.IPs 2 -dualchannel -.IPs 3 -mono -.RE -.PD 1 -. -.TP -.B padding=<0\-2> -.PD 0 -.RSs -.IPs 0 -none -.IPs 1 -all -.IPs 2 -adjust -.RE -.PD 1 -. -.TP -.B "fast\ \ \ " -Switch on faster encoding on subsequent VBR presets modes. -This results in slightly lower quality and higher bitrates. -. -.TP -.B highpassfreq= -Set a highpass filtering frequency in Hz. -Frequencies below the specified one will be cut off. -A value of \-1 will disable filtering, a value of 0 -will let LAME choose values automatically. -. -.TP -.B lowpassfreq= -Set a lowpass filtering frequency in Hz. -Frequencies above the specified one will be cut off. -A value of \-1 will disable filtering, a value of 0 -will let LAME choose values automatically. -. -.TP -.B preset= -preset values -.RSs -.IPs "help\ " -Print additional options and information about presets settings. -.IPs medium -VBR encoding, good quality, 150\-180 kbps bitrate range -.IPs standard -VBR encoding, high quality, 170\-210 kbps bitrate range -.IPs extreme -VBR encoding, very high quality, 200\-240 kbps bitrate range -.IPs insane -CBR encoding, highest preset quality, 320 kbps bitrate -.IPs <8\-320> -ABR encoding at average given kbps bitrate -.RE -.sp 1 -.RS -.I EXAMPLES: -.RE -.PD 0 -.RSs -.IPs fast:preset=standard -suitable for most people and most music types and already quite high quality -.IPs cbr:preset=192 -Encode with ABR presets at a 192 kbps forced constant bitrate. -.IPs preset=172 -Encode with ABR presets at a 172 kbps average bitrate. -.IPs preset=extreme -for people with extremely good hearing and similar equipment -.RE -.PD 1 -. -. -.SS toolame and twolame (\-toolameopts and \-twolameopts respectively) -. -.TP -.B br=<32\-384> -In CBR mode this parameter indicates the bitrate in kbps, -when in VBR mode it is the minimum bitrate allowed per frame. -VBR mode will not work with a value below 112. -. -.TP -.B vbr=<\-50\-50> (VBR only) -variability range; if negative the encoder shifts the average bitrate -towards the lower limit, if positive towards the higher. -When set to 0 CBR is used (default). -. -.TP -.B maxvbr=<32\-384> (VBR only) -maximum bitrate allowed per frame, in kbps -. -.TP -.B mode= -(default: mono for 1-channel audio, stereo otherwise) -. -.TP -.B psy=<\-1\-4> -psychoacoustic model (default: 2) -. -.TP -.B errprot=<0 | 1> -Include error protection. -. -.TP -.B debug=<0\-10> -debug level -.RE -.PD 1 -. -. -.SS faac (\-faacopts) -. -.TP -.B br= -average bitrate in kbps (mutually exclusive with quality) -. -.TP -.B quality=<1\-1000> -quality mode, the higher the better (mutually exclusive with br) -. -.TP -.B object=<1\-4> -object type complexity -.PD 0 -.RSs -.IPs 1 -MAIN (default) -.IPs 2 -LOW -.IPs 3 -SSR -.IPs 4 -LTP (extremely slow) -.RE -.PD 1 -. -.TP -.B mpeg=<2|4> -MPEG version (default: 4) -. -.TP -.B "tns\ \ \ \ " -Enables temporal noise shaping. -. -.TP -.B cutoff=<0\-sampling_rate/2> -cutoff frequency (default: sampling_rate/2) -. -.TP -.B "raw\ \ \ \ " -Stores the bitstream as raw payload with extradata in the container header -(default: 0, corresponds to ADTS). -Do not set this flag if not explicitly required or you will not be able to -remux the audio stream later on. -.RE -.PD 1 -. -. -.SS lavc (\-lavcopts) -. -Many libavcodec (lavc for short) options are tersely documented. -Read the source for full details. -.PP -.I EXAMPLE: -.PD 0 -.RSs -.IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250 -.RE -.PD 1 -. -.TP -.B o==[,=[,...]] -Pass AVOptions to libavcodec encoder. -Note, a patch to make the o= unneeded and pass all unknown options through -the AVOption system is welcome. -A full list of AVOptions can be found in the FFmpeg manual. -Note that some AVOptions may conflict with MEncoder options. -.sp 1 -.RS -.I EXAMPLE: -.RE -.RSs -.PD 0 -.IPs o=bt=100k -.PD 1 -.RE -. -.TP -.B acodec= -audio codec (default: mp2) -.PD 0 -.RSs -.IPs "ac3\ \ " -Dolby Digital (AC-3) -.IPs adpcm_* -Adaptive PCM formats \- see the HTML documentation for details. -.IPs "flac\ " -Free Lossless Audio Codec (FLAC) -.IPs "g726\ " -G.726 ADPCM -.IPs libfaac -Advanced Audio Coding (AAC) \- using FAAC -.IPs libmp3lame -MPEG-1 audio layer 3 (MP3) \- using LAME -.IPs "mp2\ \ " -MPEG-1 audio layer 2 (MP2) -.IPs pcm_* -PCM formats \- see the HTML documentation for details. -.IPs roq_dpcm -Id Software RoQ DPCM -.IPs sonic -experimental simple lossy codec -.IPs sonicls -experimental simple lossless codec -.IPs vorbis -Vorbis -.IPs wmav1 -Windows Media Audio v1 -.IPs wmav2 -Windows Media Audio v2 -.RE -.PD 1 -. -.TP -.B abitrate= -audio bitrate in kbps (default: 224) -. -.TP -.B atag= -Use the specified Windows audio format tag (e.g.\& atag=0x55). -. -.TP -.B bit_exact -Use only bit exact algorithms (except (I)DCT). -Additionally bit_exact disables several optimizations and thus -should only be used for regression tests, which need binary -identical files even if the encoder version changes. -This also suppresses the user_data header in MPEG-4 streams. -Do not use this option unless you know exactly what you are doing. -. -.TP -.B threads=<1\-8> -Maximum number of threads to use (default: 1). -May have a slight negative effect on motion estimation. -.RE -. -.TP -.B vcodec= -Employ the specified codec (default: mpeg4). -.PD 0 -.RSs -.IPs "asv1\ " -ASUS Video v1 -.IPs "asv2\ " -ASUS Video v2 -.IPs dvvideo -Sony Digital Video -.IPs "ffv1\ " -FFmpeg's lossless video codec -.IPs ffvhuff -nonstandard 20% smaller HuffYUV using YV12 -.IPs "flv\ \ " -Sorenson H.263 used in Flash Video -.IPs "h261\ " -H.261 -.IPs "h263\ " -H.263 -.IPs h263p -H.263+ -.IPs huffyuv -HuffYUV -.IPs libtheora -Theora -.IPs libx264 -x264 H.264/AVC MPEG-4 Part 10 -.IPs libxvid -Xvid MPEG-4 Part 2 (ASP) -.IPs ljpeg -Lossless JPEG -.IPs mjpeg -Motion JPEG -.IPs mpeg1video -MPEG-1 video -.IPs mpeg2video -MPEG-2 video -.IPs mpeg4 -MPEG-4 (DivX 4/5) -.IPs msmpeg4 -DivX 3 -.IPs msmpeg4v2 -MS MPEG4v2 -.IPs roqvideo -ID Software RoQ Video -.IPs "rv10\ " -an old RealVideo codec -.IPs "snow (also see: vstrict)" -FFmpeg's experimental wavelet-based codec -.IPs "svq1\ " -Apple Sorenson Video 1 -.IPs "wmv1\ " -Windows Media Video, version 1 (AKA WMV7) -.IPs "wmv2\ " -Windows Media Video, version 2 (AKA WMV8) -.RE -.PD 1 -. -.TP -.B vqmin=<1\-31> -minimum quantizer -.RSs -.IPs 1 -Not recommended (much larger file, little quality difference and weird side -effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused -resulting in lower quality and some decoders will not be able to decode it). -.IPs 2 -Recommended for normal mpeg4/\:mpeg1video encoding (default). -.IPs 3 -Recommended for h263(p)/\:msmpeg4. -The reason for preferring 3 over 2 is that 2 could lead to overflows. -(This will be fixed for h263(p) by changing the quantizer per MB in -the future, msmpeg4 cannot be fixed as it does not support that.) -.RE -. -.TP -.B lmin=<0.01\-255.0> -Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0). -Lavc will rarely use quantizers below the value of lmin. -Lowering lmin will make lavc more likely to choose lower quantizers for -some frames, but not lower than the value of vqmin. -Likewise, raising lmin will make lavc less likely to choose low -quantizers, even if vqmin would have allowed them. -You probably want to set lmin approximately equal to vqmin. -When adaptive quantization is in use, changing lmin/lmax may have less -of an effect; see mblmin/mblmax. -.RE -. -.TP -.B lmax=<0.01\-255.0> -maximum Lagrange multiplier for ratecontrol (default: 31.0) -.RE -. -.TP -.B mblmin=<0.01\-255.0> -Minimum macroblock-level Lagrange multiplier for ratecontrol -(default:2.0). -This parameter affects adaptive quantization options like qprd, -lumi_mask, etc.. -.RE -. -.TP -.B mblmax=<0.01\-255.0> -Maximum macroblock-level Lagrange multiplier for ratecontrol -(default: 31.0). -.RE -. -.TP -.B vqscale=<0\-31> -Constant quantizer /\: constant quality encoding (selects fixed quantizer mode). -A lower value means better quality but larger files (default: \-1). -In case of snow codec, value 0 means lossless encoding. -Since the other codecs do not support this, vqscale=0 will have an undefined -effect. -1 is not recommended (see vqmin for details). -. -.TP -.B vqmax=<1\-31> -Maximum quantizer, 10\-31 should be a sane range (default: 31). -. -.TP -.B mbqmin=<1\-31> -obsolete, use vqmin -. -.TP -.B mbqmax=<1\-31> -obsolete, use vqmax -. -.TP -.B vqdiff=<1\-31> -maximum quantizer difference between consecutive I- or P-frames -(default: 3) -. -.TP -.B vmax_b_frames=<0\-4> -maximum number of B-frames between non-B-frames: -.PD 0 -.RSs -.IPs 0 -no B-frames (default) -.IPs 0\-2 -sane range for MPEG-4 -.RE -.PD 1 -. -.TP -.B vme=<0\-5> -motion estimation method. -Available methods are: -.PD 0 -.RSs -.IPs 0 -none (very low quality) -.IPs 1 -full (slow, currently unmaintained and disabled) -.IPs 2 -log (low quality, currently unmaintained and disabled) -.IPs 3 -phods (low quality, currently unmaintained and disabled) -.IPs 4 -EPZS: size=1 diamond, size can be adjusted with the *dia options -(default) -.IPs 5 -X1 (experimental, currently aliased to EPZS) -.IPs 8 -iter (iterative overlapped block, only used in snow) -.RE -.PD 1 -.sp 1 -.RS -.br -.I NOTE: -0\-3 currently ignores the amount of bits spent, -so quality may be low. -.RE -. -.TP -.B me_range=<0\-9999> -motion estimation search range (default: 0 (unlimited)) -. -.TP -.B mbd=<0\-2> (also see *cmp, qpel) -Macroblock decision algorithm (high quality mode), encode each macro -block in all modes and choose the best. -This is slow but results in better quality and file size. -When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing -macroblocks (the mbcmp value is still used in other places though, in particular -the motion search algorithms). -If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero, -however, a slower but better half-pel motion search will be used, -regardless of what mbd is set to. -If qpel is set, quarter-pel motion search will be used regardless. -.PD 0 -.RSs -.IPs 0 -Use comparison function given by mbcmp (default). -.IPs 1 -Select the MB mode which needs the fewest bits (=vhq). -.IPs 2 -Select the MB mode which has the best rate distortion. -.RE -.PD 1 -. -.TP -.B "vhq\ \ \ \ " -Same as mbd=1, kept for compatibility reasons. -. -.TP -.B "v4mv\ \ \ " -Allow 4 motion vectors per macroblock (slightly better quality). -Works better if used with mbd>0. -. -.TP -.B "obmc\ \ \ " -overlapped block motion compensation (H.263+) -. -.TP -.B "loop\ \ \ " -loop filter (H.263+) -note, this is broken -. -.TP -.B inter_threshold <\-1000\-1000> -Does absolutely nothing at the moment. -. -.TP -.B keyint=<0\-300> -maximum interval between keyframes in frames (default: 250 or one -keyframe every ten seconds in a 25fps movie. -This is the recommended default for MPEG-4). -Most codecs require regular keyframes in order to limit the accumulation of mismatch error. -Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but -keyframes need more space than other frames, so larger numbers here mean -slightly smaller files but less precise seeking. -0 is equivalent to 1, which makes every frame a keyframe. -Values >300 are not recommended as the quality might be bad depending upon -decoder, encoder and luck. -It is common for MPEG-1/2 to use values <=30. -. -.TP -.B sc_threshold=<\-1000000000\-1000000000> -Threshold for scene change detection. -A keyframe is inserted by libavcodec when it detects a scene change. -You can specify the sensitivity of the detection with this option. -\-1000000000 means there is a scene change detected at every frame, -1000000000 means no scene changes are detected (default: 0). -. -.TP -.B sc_factor= -Causes frames with higher quantizers to be more likely to trigger a -scene change detection and make libavcodec use an I-frame (default: 1). -1\-16 is a sane range. -Values between 2 and 6 may yield increasing PSNR (up to approximately -0.04 dB) and better placement of I-frames in high-motion scenes. -Higher values than 6 may give very slightly better PSNR (approximately -0.01 dB more than sc_factor=6), but noticably worse visual quality. -. -.TP -.B vb_strategy=<0\-2> (pass one only) -strategy to choose between I/P/B-frames: -.PD 0 -.RSs -.IPs 0 -Always use the maximum number of B-frames (default). -.IPs 1 -Avoid B-frames in high motion scenes. -See the b_sensitivity option to tune this strategy. -.IPs 2 -Places B-frames more or less optimally to yield maximum quality (slower). -You may want to reduce the speed impact of this option by tuning the -option brd_scale. -.RE -.PD 1 -. -.TP -.B b_sensitivity= -Adjusts how sensitively vb_strategy=1 detects motion and avoids using -B-frames (default: 40). -Lower sensitivities will result in more B-frames. -Using more B-frames usually improves PSNR, but too many B-frames can -hurt quality in high-motion scenes. -Unless there is an extremely high amount of motion, b_sensitivity can -safely be lowered below the default; 10 is a reasonable value in most -cases. -. -.TP -.B brd_scale=<0\-10> -Downscales frames for dynamic B-frame decision (default: 0). -Each time brd_scale is increased by one, the frame dimensions are -divided by two, which improves speed by a factor of four. -Both dimensions of the fully downscaled frame must be even numbers, so -brd_scale=1 requires the original dimensions to be multiples of four, -brd_scale=2 requires multiples of eight, etc. -In other words, the dimensions of the original frame must both be -divisible by 2^(brd_scale+1) with no remainder. -. -.TP -.B bidir_refine=<0\-4> -Refine the two motion vectors used in bidirectional macroblocks, -rather than re-using vectors from the forward and backward searches. -This option has no effect without B-frames. -.PD 0 -.RSs -.IPs 0 -Disabled (default). -.IPs 1\-4 -Use a wider search (larger values are slower). -.RE -.PD 1 -. -.TP -.B vpass=<1\-3> -Activates internal two (or more) pass mode, only specify if you wish to -use two (or more) pass encoding. -.PD 0 -.RSs -.IPs 1 -first pass (also see turbo) -.IPs 2 -second pass -.IPs 3 -Nth pass (second and subsequent passes of N-pass encoding) -.RE -.RS -Here is how it works, and how to use it: -.br -The first pass (vpass=1) writes the statistics file. -You might want to deactivate some CPU-hungry options, like "turbo" -mode does. -.br -In two pass mode, the second pass (vpass=2) reads the statistics file and -bases ratecontrol decisions on it. -.br -In N-pass mode, the second pass (vpass=3, that is not a typo) -does both: It first reads the statistics, then overwrites them. -You might want to backup divx2pass.log before doing this if there is -any possibility that you will have to cancel MEncoder. -You can use all encoding options, except very CPU-hungry options like "qns". -.br -You can run this same pass over and over to refine the encode. -Each subsequent pass will use the statistics from the previous pass to improve. -The final pass can include any CPU-hungry encoding options. -.br -If you want a 2 pass encode, use first vpass=1, and then vpass=2. -.br -If you want a 3 or more pass encode, use vpass=1 for the first pass -and then vpass=3 and then vpass=3 again and again until you are -satisfied with the encode. -.RE -.PD 1 -.sp 1 -.RS -huffyuv: -.RE -.PD 0 -.RSs -.IPs "pass 1" -Saves statistics. -.IPs "pass 2" -Encodes with an optimal Huffman table based upon statistics -from the first pass. -.RE -.PD 1 -. -.TP -.B turbo (two pass only) -Dramatically speeds up pass one using faster algorithms and disabling -CPU-intensive options. -This will probably reduce global PSNR a little bit (around 0.01dB) and -change individual frame type and PSNR a little bit more (up to 0.03dB). -. -.TP -.B aspect= -Store movie aspect internally, just like with MPEG files. -Much nicer than rescaling, because quality is not decreased. -Only MPlayer will play these files correctly, other players will display -them with wrong aspect. -The aspect parameter can be given as a ratio or a floating point number. -.sp 1 -.RS -.I EXAMPLE: -.RE -.RSs -.PD 0 -.IPs "aspect=16/9 or aspect=1.78" -.PD 1 -.RE -. -.TP -.B autoaspect -Same as the aspect option, but automatically computes aspect, taking -into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the -filter chain. -Does not incur a performance penalty, so you can safely leave it -always on. -. -.TP -.B vbitrate= -Specify bitrate (default: 800). -.br -.I WARNING: -1kbit = 1000 bits -.PD 0 -.RSs -.IPs 4\-16000 -(in kbit) -.IPs 16001\-24000000 -(in bit) -.RE -.PD 1 -. -.TP -.B vratetol= -approximated file size tolerance in kbit. -1000\-100000 is a sane range. -(warning: 1kbit = 1000 bits) -(default: 8000) -.br -.I NOTE: -vratetol should not be too large during the second pass or there might -be problems if vrc_(min|max)rate is used. -. -.TP -.B vrc_maxrate= -maximum bitrate in kbit/\:sec -(default: 0, unlimited) -. -.TP -.B vrc_minrate= -minimum bitrate in kbit/\:sec -(default: 0, unlimited) -. -.TP -.B vrc_buf_size= -buffer size in kbit -For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD, -917 for SVCD and 1835 for DVD. -. -.TP -.B vrc_buf_aggressivity -currently useless -. -.TP -.B vrc_strategy -Ratecontrol method. -Note that some of the ratecontrol-affecting options will have no effect -if vrc_strategy is not set to 0. -.PD 0 -.RSs -.IPs 0 -Use internal lavc ratecontrol (default). -.IPs 1 -Use Xvid ratecontrol (experimental; requires MEncoder to be compiled -with support for Xvid 1.1 or higher). -.RE -.PD 1 -. -.TP -.B vb_qfactor=<\-31.0\-31.0> -quantizer factor between B- and non-B-frames (default: 1.25) -. -.TP -.B vi_qfactor=<\-31.0\-31.0> -quantizer factor between I- and non-I-frames (default: 0.8) -. -.TP -.B vb_qoffset=<\-31.0\-31.0> -quantizer offset between B- and non-B-frames (default: 1.25) -. -.TP -.B vi_qoffset=<\-31.0\-31.0> -(default: 0.0) -.br -if v{b|i}_qfactor > 0 -.br -I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset -.br -else -.br -do normal ratecontrol (do not lock to next P-frame quantizer) and -set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset -.br -.I HINT: -To do constant quantizer encoding with different quantizers for -I/P- and B-frames you can use: -lmin= :lmax= :vb_qfactor= . -. -.TP -.B vqblur=<0.0\-1.0> (pass one) -Quantizer blur (default: 0.5), larger values will average the -quantizer more over time (slower change). -.PD 0 -.RSs -.IPs 0.0 -Quantizer blur disabled. -.IPs 1.0 -Average the quantizer over all previous frames. -.RE -.PD 1 -. -.TP -.B vqblur=<0.0\-99.0> (pass two) -Quantizer gaussian blur (default: 0.5), larger values will average -the quantizer more over time (slower change). -. -.TP -.B vqcomp=<0.0\-1.0> -Quantizer compression, vrc_eq depends upon this (default: 0.5). -.I NOTE: -Perceptual quality will be optimal somewhere in between the range's extremes. -. -.TP -.B vrc_eq= -main ratecontrol equation -.RE -.RSs -.IPs 1+(tex/\:avgTex-1)*qComp -approximately the equation of the old ratecontrol code -.IPs tex^qComp -with qcomp 0.5 or something like that (default) -.RE -.PP -.RS -infix operators: -.RE -.RSs -.IPs +,\-,*,/,^ -.RE -.PP -.RS -variables: -.RE -.RSs -.IPs "tex\ \ " -texture complexity -.IPs iTex,pTex -intra, non-intra texture complexity -.IPs avgTex -average texture complexity -.IPs avgIITex -average intra texture complexity in I-frames -.IPs avgPITex -average intra texture complexity in P-frames -.IPs avgPPTex -average non-intra texture complexity in P-frames -.IPs avgBPTex -average non-intra texture complexity in B-frames -.IPs "mv\ \ \ " -bits used for motion vectors -.IPs fCode -maximum length of motion vector in log2 scale -.IPs iCount -number of intra macroblocks / number of macroblocks -.IPs "var\ \ " -spatial complexity -.IPs mcVar -temporal complexity -.IPs qComp -qcomp from the command line -.IPs "isI, isP, isB" -Is 1 if picture type is I/P/B else 0. -.IPs "Pi,E\ " -See your favorite math book. -.RE -.PP -.RS -functions: -.RE -.RSs -.IPs max(a,b),min(a,b) -maximum / minimum -.IPs gt(a,b) -is 1 if a>b, 0 otherwise -.IPs lt(a,b) -is 1 if a -User specified quality for specific parts (ending, credits, ...). -The options are , , [/, -, [/...]]: -.PD 0 -.RSs -.IPs "quality (2\-31)" -quantizer -.IPs "quality (\-500\-0)" -quality correction in % -.RE -.PD 1 -. -.TP -.B vrc_init_cplx=<0\-1000> -initial complexity (pass 1) -. -.TP -.B vrc_init_occupancy=<0.0\-1.0> -initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9) -. -.TP -.B vqsquish=<0|1> -Specify how to keep the quantizer between qmin and qmax. -.PD 0 -.RSs -.IPs 0 -Use clipping. -.IPs 1 -Use a nice differentiable function (default). -.RE -.PD 1 -. -.TP -.B vlelim=<\-1000\-1000> -Sets single coefficient elimination threshold for luminance. -Negative values will also consider the DC coefficient (should be at least \-4 -or lower for encoding at quant=1): -.PD 0 -.RSs -.IPs 0 -disabled (default) -.IPs \-4 -JVT recommendation -.RE -.PD 1 -. -.TP -.B vcelim=<\-1000\-1000> -Sets single coefficient elimination threshold for chrominance. -Negative values will also consider the DC coefficient (should be at least \-4 -or lower for encoding at quant=1): -.PD 0 -.RSs -.IPs 0 -disabled (default) -.IPs 7 -JVT recommendation -.RE -.PD 1 -. -.TP -.B vstrict=<\-2|\-1|0|1> -strict standard compliance -.PD 0 -.RSs -.IPs 0 -disabled -.IPs 1 -Only recommended if you want to feed the output into the -MPEG-4 reference decoder. -.IPs \-1 -Allow libavcodec specific extensions (default). -.IPs \-2 -Enables experimental codecs and features which may not be playable -with future MPlayer versions (snow). -.RE -.PD 1 -. -.TP -.B "vdpart\ " -Data partitioning. -Adds 2 Bytes per video packet, improves error-resistance when transferring over -unreliable channels (e.g.\& streaming over the internet). -Each video packet will be encoded in 3 separate partitions: -.PD 0 -.RSs -.IPs "1. MVs" -movement -.IPs "2. DC coefficients" -low res picture -.IPs "3. AC coefficients" -details -.RE -.PD 1 -.RS -MV & DC are most important, losing them looks far worse than losing -the AC and the 1. & 2. partition. -(MV & DC) are far smaller than the 3. partition (AC) meaning that errors -will hit the AC partition much more often than the MV & DC partitions. -Thus, the picture will look better with partitioning than without, -as without partitioning an error will trash AC/\:DC/\:MV equally. -.RE -. -.TP -.B vpsize=<0\-10000> (also see vdpart) -Video packet size, improves error-resistance. -.PD 0 -.RSs -.IPs "0\ \ \ \ " -disabled (default) -.IPs 100\-1000 -good choice -.RE -.PD 1 -. -.TP -.B "ss\ \ \ \ \ " -slice structured mode for H.263+ -. -.TP -.B "gray\ \ \ " -grayscale only encoding (faster) -. -.TP -.B vfdct=<0\-10> -DCT algorithm -.PD 0 -.RSs -.IPs 0 -Automatically select a good one (default). -.IPs 1 -fast integer -.IPs 2 -accurate integer -.IPs 3 -MMX -.IPs 4 -mlib -.IPs 5 -AltiVec -.IPs 6 -floating point AAN -.RE -.PD 1 -. -.TP -.B idct=<0\-99> -IDCT algorithm -.br -.I NOTE: -To the best of our knowledge all these IDCTs do pass the IEEE1180 tests. -.PD 0 -.RSs -.IPs 0 -Automatically select a good one (default). -.IPs 1 -JPEG reference integer -.IPs 2 -simple -.IPs 3 -simplemmx -.IPs 4 -libmpeg2mmx (inaccurate, do not use for encoding with keyint >100) -.IPs 5 -ps2 -.IPs 6 -mlib -.IPs 7 -arm -.IPs 8 -AltiVec -.IPs 9 -sh4 -.IPs 10 -simplearm -.IPs 11 -H.264 -.IPs 12 -VP3 -.IPs 13 -IPP -.IPs 14 -xvidmmx -.IPs 15 -CAVS -.IPs 16 -simplearmv5te -.IPs 17 -simplearmv6 -.RE -.PD 1 -. -.TP -.B lumi_mask=<0.0\-1.0> -Luminance masking is a 'psychosensory' setting that is supposed to -make use of the fact that the human eye tends to notice fewer details -in very bright parts of the picture. -Luminance masking compresses bright areas stronger than medium ones, -so it will save bits that can be spent again on other frames, raising -overall subjective quality, while possibly reducing PSNR. -.br -.I WARNING: -Be careful, overly large values can cause disastrous things. -.br -.I WARNING: -Large values might look good on some monitors but may look horrible -on other monitors. -.PD 0 -.RSs -.IPs "0.0\ \ " -disabled (default) -.IPs 0.0\-0.3 -sane range -.RE -.PD 1 -. -.TP -.B dark_mask=<0.0\-1.0> -Darkness masking is a 'psychosensory' setting that is supposed to -make use of the fact that the human eye tends to notice fewer details -in very dark parts of the picture. -Darkness masking compresses dark areas stronger than medium ones, -so it will save bits that can be spent again on other frames, raising -overall subjective quality, while possibly reducing PSNR. -.br -.I WARNING: -Be careful, overly large values can cause disastrous things. -.br -.I WARNING: -Large values might look good on some monitors but may look horrible -on other monitors / TV / TFT. -.PD 0 -.RSs -.IPs "0.0\ \ " -disabled (default) -.IPs 0.0\-0.3 -sane range -.RE -.PD 1 -. -.TP -.B tcplx_mask=<0.0\-1.0> -Temporal complexity masking (default: 0.0 (disabled)). -Imagine a scene with a bird flying across the whole scene; tcplx_mask -will raise the quantizers of the bird's macroblocks (thus decreasing their -quality), as the human eye usually does not have time to see all the bird's -details. -Be warned that if the masked object stops (e.g.\& the bird lands) it is -likely to look horrible for a short period of time, until the encoder -figures out that the object is not moving and needs refined blocks. -The saved bits will be spent on other parts of the video, which may increase -subjective quality, provided that tcplx_mask is carefully chosen. -. -.TP -.B scplx_mask=<0.0\-1.0> -Spatial complexity masking. -Larger values help against blockiness, if no deblocking filter is used for -decoding, which is maybe not a good idea. -.br -Imagine a scene with grass (which usually has great spatial complexity), -a blue sky and a house; scplx_mask will raise the quantizers of the grass' -macroblocks, thus decreasing its quality, in order to spend more bits on -the sky and the house. -.br -.I HINT: -Crop any black borders completely as they will reduce the quality -of the macroblocks (also applies without scplx_mask). -.PD 0 -.RSs -.IPs "0.0\ \ " -disabled (default) -.IPs 0.0\-0.5 -sane range -.RE -.PD 1 -.sp 1 -.RS -.I NOTE: -This setting does not have the same effect as using a custom matrix that -would compress high frequencies harder, as scplx_mask will reduce the -quality of P blocks even if only DC is changing. -The result of scplx_mask will probably not look as good. -.RE -. -.TP -.B p_mask=<0.0\-1.0> (also see vi_qfactor) -Reduces the quality of inter blocks. -This is equivalent to increasing the quality of intra blocks, because the -same average bitrate will be distributed by the rate controller to the -whole video sequence (default: 0.0 (disabled)). -p_mask=1.0 doubles the bits allocated to each intra block. -. -.TP -.B border_mask=<0.0\-1.0> -border-processing for MPEG-style encoders. -Border processing increases the quantizer for macroblocks which are less -than 1/5th of the frame width/height away from the frame border, -since they are often visually less important. -. -.TP -.B "naq\ \ \ \ " -Normalize adaptive quantization (experimental). -When using adaptive quantization (*_mask), the average per-MB quantizer may no -longer match the requested frame-level quantizer. -Naq will attempt to adjust the per-MB quantizers to maintain the proper -average. -. -.TP -.B "ildct\ \ " -Use interlaced DCT. -. -.TP -.B "ilme\ \ \ " -Use interlaced motion estimation (mutually exclusive with qpel). -. -.TP -.B "alt\ \ \ \ " -Use alternative scantable. -. -.TP -.B "top=<\-1\-1>\ \ \ " -.PD 0 -.RSs -.IPs \-1 -automatic -.IPs 0 -bottom field first -.IPs 1 -top field first -.RE -.PD 1 -. -.TP -.B format= -.PD 0 -.RSs -.IPs "YV12\ " -default -.IPs "444P\ " -for ffv1 -.IPs "422P\ " -for HuffYUV, lossless JPEG, dv and ffv1 -.IPs "411P\ " -for lossless JPEG, dv and ffv1 -.IPs "YVU9\ " -for lossless JPEG, ffv1 and svq1 -.IPs "BGR32" -for lossless JPEG and ffv1 -.RE -.PD 1 -. -.TP -.B "pred\ \ \ " -(for HuffYUV) -.PD 0 -.RSs -.IPs 0 -left prediction -.IPs 1 -plane/\:gradient prediction -.IPs 2 -median prediction -.RE -.PD 1 -. -.TP -.B "pred\ \ \ " -(for lossless JPEG) -.PD 0 -.RSs -.IPs 0 -left prediction -.IPs 1 -top prediction -.IPs 2 -topleft prediction -.IPs 3 -plane/\:gradient prediction -.IPs 6 -mean prediction -.RE -.PD 1 -. -.TP -.B "coder\ \ " -(for ffv1) -.PD 0 -.RSs -.IPs 0 -vlc coding (Golomb-Rice) -.IPs 1 -arithmetic coding (CABAC) -.RE -.PD 1 -. -.TP -.B context -(for ffv1) -.PD 0 -.RSs -.IPs 0 -small context model -.IPs 1 -large context model -.RE -.PD 1 -.sp 1 -.RS -(for ffvhuff) -.RE -.PD 0 -.RSs -.IPs 0 -predetermined Huffman tables (builtin or two pass) -.IPs 1 -adaptive Huffman tables -.RE -.PD 1 -. -.TP -.B "qpel\ \ \ " -Use quarter pel motion compensation (mutually exclusive with ilme). -.br -.I HINT: -This seems only useful for high bitrate encodings. -. -.TP -.B mbcmp=<0\-2000> -Sets the comparison function for the macroblock decision, has only -an effect if mbd=0. -This is also used for some motion search functions, in which case -it has an effect regardless of mbd setting. -.PD 0 -.RSs -.IPs "0 (SAD)" -sum of absolute differences, fast (default) -.IPs "1 (SSE)" -sum of squared errors -.IPs "2 (SATD)" -sum of absolute Hadamard transformed differences -.IPs "3 (DCT)" -sum of absolute DCT transformed differences -.IPs "4 (PSNR)" -sum of squared quantization errors (avoid, low quality) -.IPs "5 (BIT)" -number of bits needed for the block -.IPs "6 (RD)" -rate distortion optimal, slow -.IPs "7 (ZERO)" -0 -.IPs "8 (VSAD)" -sum of absolute vertical differences -.IPs "9 (VSSE)" -sum of squared vertical differences -.IPs "10 (NSSE)" -noise preserving sum of squared differences -.IPs "11 (W53)" -5/3 wavelet, only used in snow -.IPs "12 (W97)" -9/7 wavelet, only used in snow -.IPs "+256\ " -Also use chroma, currently does not work (correctly) with B-frames. -.RE -.PD 1 -. -.TP -.B ildctcmp=<0\-2000> -Sets the comparison function for interlaced DCT decision -(see mbcmp for available comparison functions). -. -.TP -.B precmp=<0\-2000> -Sets the comparison function for motion estimation pre pass -(see mbcmp for available comparison functions) (default: 0). -. -.TP -.B cmp=<0\-2000> -Sets the comparison function for full pel motion estimation -(see mbcmp for available comparison functions) (default: 0). -. -.TP -.B subcmp=<0\-2000> -Sets the comparison function for sub pel motion estimation -(see mbcmp for available comparison functions) (default: 0). -. -.TP -.B skipcmp=<0\-2000> -FIXME: Document this. -. -.TP -.B nssew=<0\-1000000> -This setting controls NSSE weight, where larger weights will result in -more noise. -0 NSSE is identical to SSE -You may find this useful if you prefer to keep some noise in your encoded -video rather than filtering it away before encoding (default: 8). -. -.TP -.B predia=<\-99\-6> -diamond type and size for motion estimation pre-pass -. -.TP -.B dia=<\-99\-6> -Diamond type & size for motion estimation. -Motion search is an iterative process. -Using a small diamond does not limit the search to finding only small -motion vectors. -It is just somewhat more likely to stop before finding the very best motion -vector, especially when noise is involved. -Bigger diamonds allow a wider search for the best motion vector, thus are -slower but result in better quality. -.br -Big normal diamonds are better quality than shape-adaptive diamonds. -.br -Shape-adaptive diamonds are a good tradeoff between speed and quality. -.br -.I NOTE: -The sizes of the normal diamonds and shape adaptive ones do not have -the same meaning. -.RSs -.IPs \-3 -shape adaptive (fast) diamond with size 3 -.IPs \-2 -shape adaptive (fast) diamond with size 2 -.IPs \-1 -uneven multi-hexagon search (slow) -.IPs 1 -normal size=1 diamond (default) =EPZS type diamond -.nf -.ne - 0 - 000 - 0 -.fi -.IPs 2 -normal size=2 diamond -.nf -.ne - 0 - 000 - 00000 - 000 - 0 -.fi -.RE -. -.TP -.B "trell\ \ " -Trellis searched quantization. -This will find the optimal encoding for each 8x8 block. -Trellis searched quantization is quite simply an optimal quantization in -the PSNR versus bitrate sense (Assuming that there would be no rounding -errors introduced by the IDCT, which is obviously not the case.). -It simply finds a block for the minimum of error and lambda*bits. -.PD 0 -.RSs -.IPs lambda -quantization parameter (QP) dependent constant -.IPs "bits\ " -amount of bits needed to encode the block -.IPs error -sum of squared errors of the quantization -.RE -.PD 1 -. -.TP -.B "cbp\ \ \ \ " -Rate distorted optimal coded block pattern. -Will select the coded block pattern which minimizes distortion + lambda*rate. -This can only be used together with trellis quantization. -. -.TP -.B "mv0\ \ \ \ " -Try to encode each MB with MV=<0,0> and choose the better one. -This has no effect if mbd=0. -. -.TP -.B mv0_threshold= -When surrounding motion vectors are <0,0> and the motion estimation -score of the current block is less than mv0_threshold, <0,0> is used for -the motion vector and further motion estimation is skipped (default: -256). -Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and -possibly make the encoded video look slightly better; raising -mv0_threshold past 320 results in diminished PSNR and visual quality. -Higher values speed up encoding very slightly (usually less than 1%, -depending on the other options used). -.br -.I NOTE: -This option does not require mv0 to be enabled. -. -.TP -.B qprd (mbd=2 only) -rate distorted optimal quantization parameter (QP) for the given -lambda of each macroblock -. -.TP -.B last_pred=<0\-99> -amount of motion predictors from the previous frame -.PD 0 -.RSs -.IPs 0 -(default) -.IPs a -Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the -previous frame. -.RE -.PD 1 -. -.TP -.B preme=<0\-2> -motion estimation pre-pass -.PD 0 -.RSs -.IPs 0 -disabled -.IPs 1 -only after I-frames (default) -.IPs 2 -always -.RE -.PD 1 -. -.TP -.B subq=<1\-8> -subpel refinement quality (for qpel) (default: 8 (high quality)) -.br -.I NOTE: -This has a significant effect on speed. -. -.TP -.B refs=<1\-8> -number of reference frames to consider for motion compensation -(Snow only) (default: 1) -. -.TP -.B "psnr\ \ \ " -print the PSNR (peak signal to noise ratio) for the whole video after encoding -and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'. -Returned values are in dB (decibel), the higher the better. -. -.TP -.B mpeg_quant -Use MPEG quantizers instead of H.263. -. -.TP -.B "aic\ \ \ \ " -Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+. -This will improve quality very slightly (around 0.02 dB PSNR) and slow -down encoding very slightly (about 1%). -.br -.I NOTE: -vqmin should be 8 or larger for H.263+ AIC. -. -.TP -.B "aiv\ \ \ \ " -alternative inter vlc for H.263+ -. -.TP -.B "umv\ \ \ \ " -unlimited MVs (H.263+ only) -Allows encoding of arbitrarily long MVs. -. -.TP -.B ibias=<\-256\-256> -intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96, -H.263 style quantizer default: 0) -.br -.I NOTE: -The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2), -the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2). -. -.TP -.B pbias=<\-256\-256> -inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0, -H.263 style quantizer default: \-64) -.br -.I NOTE: -The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2), -the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2). -.br -.I HINT: -A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR. -. -.TP -.B nr=<0\-100000> -Noise reduction, 0 means disabled. -0\-600 is a useful range for typical content, but you may want to turn it -up a bit more for very noisy content (default: 0). -Given its small impact on speed, you might want to prefer to use this over -filtering noise away with video filters like denoise3d or hqdn3d. -. -.TP -.B qns=<0\-3> -Quantizer noise shaping. -Rather than choosing quantization to most closely match the source video -in the PSNR sense, it chooses quantization such that noise (usually ringing) -will be masked by similar-frequency content in the image. -Larger values are slower but may not result in better quality. -This can and should be used together with trellis quantization, in which case -the trellis quantization (optimal for constant weight) will be used as -startpoint for the iterative search. -.PD 0 -.RSs -.IPs 0 -disabled (default) -.IPs 1 -Only lower the absolute value of coefficients. -.IPs 2 -Only change coefficients before the last non-zero coefficient + 1. -.IPs 3 -Try all. -.RE -.PD 1 -. -.TP -.B inter_matrix= -Use custom inter matrix. -It needs a comma separated string of 64 integers. -. -.TP -.B intra_matrix= -Use custom intra matrix. -It needs a comma separated string of 64 integers. -. -.TP -.B vqmod_amp -experimental quantizer modulation -. -.TP -.B vqmod_freq -experimental quantizer modulation -. -.TP -.B "dc\ \ \ \ \ " -intra DC precision in bits (default: 8). -If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11. -. -.TP -.B cgop (also see sc_threshold) -Close all GOPs. -Currently it only works if scene change detection is disabled -(sc_threshold=1000000000). -. -.TP -.B "gmc\ \ \ \ " -Enable Global Motion Compensation. -. -.TP -.B (no)lowdelay -Sets the low delay flag for MPEG-1/2 (disables B-frames). -. -.TP -.B vglobal=<0\-3> -Control writing global video headers. -.PD 0 -.RSs -.IPs 0 -Codec decides where to write global headers (default). -.IPs 1 -Write global headers only in extradata (needed for .mp4/MOV/NUT). -.IPs 2 -Write global headers only in front of keyframes. -.IPs 3 -Combine 1 and 2. -.RE -.PD 1 -. -.TP -.B aglobal=<0\-3> -Same as vglobal for audio headers. -. -.TP -.B level= -Set CodecContext Level. -Use 31 or 41 to play video on a Playstation 3. -. -.TP -.B skip_exp=<0\-1000000> -FIXME: Document this. -. -.TP -.B skip_factor=<0\-1000000> -FIXME: Document this. -. -.TP -.B skip_threshold=<0\-1000000> -FIXME: Document this. -. -. -.SS nuv (\-nuvopts) -. -Nuppel video is based on RTJPEG and LZO. -By default frames are first encoded with RTJPEG and then compressed with LZO, -but it is possible to disable either or both of the two passes. -As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG, -or the default LZO compressed RTJPEG. -.br -.I NOTE: -The nuvrec documentation contains some advice and examples about the -settings to use for the most common TV encodings. -. -.TP -.B c=<0\-20> -chrominance threshold (default: 1) -. -.TP -.B l=<0\-20> -luminance threshold (default: 1) -. -.TP -.B "lzo\ \ \ \ " -Enable LZO compression (default). -. -.TP -.B "nolzo\ \ " -Disable LZO compression. -. -.TP -.B q=<3\-255> -quality level (default: 255) -. -.TP -.B "raw \ \ \ " -Disable RTJPEG encoding. -. -.TP -.B "rtjpeg\ " -Enable RTJPEG encoding (default). -. -. -.SS xvidenc (\-xvidencopts) -. -There are three modes available: constant bitrate (CBR), fixed quantizer and -two pass. -. -.TP -.B pass=<1|2> -Specify the pass in two pass mode. -. -.TP -.B turbo (two pass only) -Dramatically speeds up pass one using faster algorithms and disabling -CPU-intensive options. -This will probably reduce global PSNR a little bit and change individual -frame type and PSNR a little bit more. -. -.TP -.B bitrate= (CBR or two pass mode) -Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second -if >16000. -If is negative, Xvid will use its absolute value as the target size -(in kBytes) of the video and compute the associated bitrate automagically -(default: 687 kbits/s). -. -.TP -.B fixed_quant=<1\-31> -Switch to fixed quantizer mode and specify the quantizer to be used. -. -.TP -.B zones=[/[/...]] (CBR or two pass mode) -User specified quality for specific parts (ending, credits, ...). -Each zone is ,, where may be -.PD 0 -.RSs -.IPs "q" -Constant quantizer override, where value=<2.0\-31.0> -represents the quantizer value. -.IPs "w" -Ratecontrol weight override, where value=<0.01\-2.00> -represents the quality correction in %. -.RE -.PD 1 -.sp 1 -.RS -.I EXAMPLE: -.RE -.PD 0 -.RSs -.IPs zones=90000,q,20 -Encodes all frames starting with frame 90000 at constant quantizer 20. -.IPs zones=0,w,0.1/10001,w,1.0/90000,q,20 -Encode frames 0\-10000 at 10% bitrate, encode frames 90000 -up to the end at constant quantizer 20. -Note that the second zone is needed to delimit the first zone, as -without it everything up until frame 89999 would be encoded at 10% -bitrate. -.RE -.PD 1 -. -.TP -.B me_quality=<0\-6> -This option controls the motion estimation subsystem. -The higher the value, the more precise the estimation should be (default: 6). -The more precise the motion estimation is, the more bits can be saved. -Precision is gained at the expense of CPU time so decrease this setting if -you need realtime encoding. -. -.TP -.B (no)qpel -MPEG-4 uses a half pixel precision for its motion search by default. -The standard proposes a mode where encoders are allowed to use quarter -pixel precision. -This option usually results in a sharper image. -Unfortunately it has a great impact on bitrate and sometimes the -higher bitrate use will prevent it from giving a better image -quality at a fixed bitrate. -It is better to test with and without this option and see whether it -is worth activating. -. -.TP -.B (no)gmc -Enable Global Motion Compensation, which makes Xvid generate special -frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images. -Whether or not the use of this option will save bits is highly -dependent on the source material. -. -.TP -.B (no)trellis -Trellis Quantization is a kind of adaptive quantization method that -saves bits by modifying quantized coefficients to make them more -compressible by the entropy encoder. -Its impact on quality is good, and if VHQ uses too much CPU for you, -this setting can be a good alternative to save a few bits (and gain -quality at fixed bitrate) at a lesser cost than with VHQ (default: on). -. -.TP -.B (no)cartoon -Activate this if your encoded sequence is an anime/\:cartoon. -It modifies some Xvid internal thresholds so Xvid takes better decisions on -frame types and motion vectors for flat looking cartoons. -. -.TP -.B (no)chroma_me -The usual motion estimation algorithm uses only the luminance information to -find the best motion vector. -However for some video material, using the chroma planes can help find -better vectors. -This setting toggles the use of chroma planes for motion estimation -(default: on). -. -.TP -.B (no)chroma_opt -Enable a chroma optimizer prefilter. -It will do some extra magic on color information to minimize the -stepped-stairs effect on edges. -It will improve quality at the cost of encoding speed. -It reduces PSNR by nature, as the mathematical deviation to the original -picture will get bigger, but the subjective image quality will raise. -Since it works with color information, you might want to turn it off when -encoding in grayscale. -. -.TP -.B (no)hq_ac -Activates high-quality prediction of AC coefficients for intra frames from -neighbor blocks (default: on). -. -.TP -.B vhq=<0\-4> -The motion search algorithm is based on a search in the usual color domain -and tries to find a motion vector that minimizes the difference between the -reference frame and the encoded frame. -With this setting activated, Xvid will also use the frequency domain (DCT) -to search for a motion vector that minimizes not only the spatial -difference but also the encoding length of the block. -Fastest to slowest: -.PD 0 -.RSs -.IPs 0 -off -.IPs 1 -mode decision (inter/\:intra MB) (default) -.IPs 2 -limited search -.IPs 3 -medium search -.IPs 4 -wide search -.RE -.PD 1 -. -.TP -.B (no)lumi_mask -Adaptive quantization allows the macroblock quantizers to vary inside -each frame. -This is a 'psychosensory' setting that is supposed to make use of the -fact that the human eye tends to notice fewer details in very bright -and very dark parts of the picture. -It compresses those areas more strongly than medium ones, which will -save bits that can be spent again on other frames, raising overall -subjective quality and possibly reducing PSNR. -. -.TP -.B (no)grayscale -Make Xvid discard chroma planes so the encoded video is grayscale only. -Note that this does not speed up encoding, it just prevents chroma data -from being written in the last stage of encoding. -. -.TP -.B (no)interlacing -Encode the fields of interlaced video material. -Turn this option on for interlaced content. -.br -.I NOTE: -Should you rescale the video, you would need an interlace-aware resizer, -which you can activate with \-vf scale=::1. -. -.TP -.B min_iquant=<0\-31> -minimum I-frame quantizer (default: 2) -. -.TP -.B max_iquant=<0\-31> -maximum I-frame quantizer (default: 31) -. -.TP -.B min_pquant=<0\-31> -minimum P-frame quantizer (default: 2) -. -.TP -.B max_pquant=<0\-31> -maximum P-frame quantizer (default: 31) -. -.TP -.B min_bquant=<0\-31> -minimum B-frame quantizer (default: 2) -. -.TP -.B max_bquant=<0\-31> -maximum B-frame quantizer (default: 31) -. -.TP -.B min_key_interval= (two pass only) -minimum interval between keyframes (default: 0) -. -.TP -.B max_key_interval= -maximum interval between keyframes (default: 10*fps) -. -.TP -.B quant_type= -Sets the type of quantizer to use. -For high bitrates, you will find that MPEG quantization preserves more detail. -For low bitrates, the smoothing of H.263 will give you less block noise. -When using custom matrices, MPEG quantization -.B must -be used. -. -.TP -.B quant_intra_matrix= -Load a custom intra matrix file. -You can build such a file with xvid4conf's matrix editor. -. -.TP -.B quant_inter_matrix= -Load a custom inter matrix file. -You can build such a file with xvid4conf's matrix editor. -. -.TP -.B keyframe_boost=<0\-1000> (two pass mode only) -Shift some bits from the pool for other frame types to intra frames, -thus improving keyframe quality. -This amount is an extra percentage, so a value of 10 will give -your keyframes 10% more bits than normal -(default: 0). -. -.TP -.B kfthreshold= (two pass mode only) -Works together with kfreduction. -Determines the minimum distance below which you consider that -two frames are considered consecutive and treated differently -according to kfreduction -(default: 10). -. -.TP -.B kfreduction=<0\-100> (two pass mode only) -The above two settings can be used to adjust the size of keyframes that -you consider too close to the first (in a row). -kfthreshold sets the range in which keyframes are reduced, and -kfreduction determines the bitrate reduction they get. -The last I-frame will get treated normally -(default: 30). -. -.TP -.B max_bframes=<0\-4> -Maximum number of B-frames to put between I/P-frames (default: 2). -. -.TP -.B bquant_ratio=<0\-1000> -quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150) -. -.TP -.B bquant_offset=<\-1000\-1000> -quantizer offset between B- and non-B-frames, 100=1.00 (default: 100) -. -.TP -.B bf_threshold=<\-255\-255> -This setting allows you to specify what priority to place on the use of -B-frames. -The higher the value, the higher the probability of B-frames being used -(default: 0). -Do not forget that B-frames usually have a higher quantizer, and therefore -aggressive production of B-frames may cause worse visual quality. -. -.TP -.B (no)closed_gop -This option tells Xvid to close every GOP (Group Of Pictures bounded -by two I-frames), which makes GOPs independent from each other. -This just implies that the last frame of the GOP is either a P-frame or a -N-frame but not a B-frame. -It is usually a good idea to turn this option on (default: on). -. -.TP -.B (no)packed -This option is meant to solve frame-order issues when encoding to -container formats like AVI that cannot cope with out-of-order frames. -In practice, most decoders (both software and hardware) are able to deal -with frame-order themselves, and may get confused when this option is -turned on, so you can safely leave if off, unless you really know what -you are doing. -.br -.I WARNING: -This will generate an illegal bitstream, and will not be -decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid. -.br -.I WARNING: -This will also store a fake DivX version in the file so the bug -autodetection of some decoders might be confused. -. -.TP -.B frame_drop_ratio=<0\-100> (max_bframes=0 only) -This setting allows the creation of variable framerate video streams. -The value of the setting specifies a threshold under which, if the -difference of the following frame to the previous frame is below or equal -to this threshold, a frame gets not coded (a so called n-vop is placed -in the stream). -On playback, when reaching an n-vop the previous frame will be displayed. -.br -.I WARNING: -Playing with this setting may result in a jerky video, so use it at your -own risks! -. -.TP -.B rc_reaction_delay_factor= -This parameter controls the number of frames the CBR rate controller -will wait before reacting to bitrate changes and compensating for them -to obtain a constant bitrate over an averaging range of frames. -. -.TP -.B rc_averaging_period= -Real CBR is hard to achieve. -Depending on the video material, bitrate can be variable, and hard to predict. -Therefore Xvid uses an averaging period for which it guarantees a given -amount of bits (minus a small variation). -This settings expresses the "number of frames" for which Xvid averages -bitrate and tries to achieve CBR. -. -.TP -.B rc_buffer= -size of the rate control buffer -. -.TP -.B curve_compression_high=<0\-100> -This setting allows Xvid to take a certain percentage of bits away from -high bitrate scenes and give them back to the bit reservoir. -You could also use this if you have a clip with so many bits allocated -to high-bitrate scenes that the low(er)-bitrate scenes start to look bad -(default: 0). -. -.TP -.B curve_compression_low=<0\-100> -This setting allows Xvid to give a certain percentage of extra bits to the -low bitrate scenes, taking a few bits from the entire clip. -This might come in handy if you have a few low-bitrate scenes that are -still blocky (default: 0). -. -.TP -.B overflow_control_strength=<0\-100> -During pass one of two pass encoding, a scaled bitrate curve is computed. -The difference between that expected curve and the result obtained during -encoding is called overflow. -Obviously, the two pass rate controller tries to compensate for that overflow, -distributing it over the next frames. -This setting controls how much of the overflow is distributed every time -there is a new frame. -Low values allow lazy overflow control, big rate bursts are compensated for -more slowly (could lead to lack of precision for small clips). -Higher values will make changes in bit redistribution more abrupt, possibly -too abrupt if you set it too high, creating artifacts (default: 5). -.br -.I NOTE: -This setting impacts quality a lot, play with it carefully! -. -.TP -.B max_overflow_improvement=<0\-100> -During the frame bit allocation, overflow control may increase the frame -size. -This parameter specifies the maximum percentage by which the overflow -control is allowed to increase the frame size, compared to the ideal curve -allocation -(default: 5). -. -.TP -.B max_overflow_degradation=<0\-100> -During the frame bit allocation, overflow control may decrease the frame -size. -This parameter specifies the maximum percentage by which the overflow -control is allowed to decrease the frame size, compared to the ideal curve -allocation -(default: 5). -. -.TP -.B container_frame_overhead=<0...> -Specifies a frame average overhead per frame, in bytes. -Most of the time users express their target bitrate for video w/o taking -care of the video container overhead. -This small but (mostly) constant overhead can cause the target file size -to be exceeded. -Xvid allows users to set the amount of overhead per frame the -container generates (give only an average per frame). -0 has a special meaning, it lets Xvid use its own default values -(default: 24 \- AVI average overhead). -. -.TP -.B profile= -Restricts options and VBV (peak bitrate over a short period) according to -the Simple, Advanced Simple and DivX profiles. -The resulting videos should be playable on standalone players adhering to these -profile specifications. -.PD 0 -.RSs -.IPs unrestricted -no restrictions (default) -.IPs "sp0\ \ " -simple profile at level 0 -.IPs "sp1\ \ " -simple profile at level 1 -.IPs "sp2\ \ " -simple profile at level 2 -.IPs "sp3\ \ " -simple profile at level 3 -.IPs "asp0\ " -advanced simple profile at level 0 -.IPs "asp1\ " -advanced simple profile at level 1 -.IPs "asp2\ " -advanced simple profile at level 2 -.IPs "asp3\ " -advanced simple profile at level 3 -.IPs "asp4\ " -advanced simple profile at level 4 -.IPs "asp5\ " -advanced simple profile at level 5 -.IPs dxnhandheld -DXN handheld profile -.IPs dxnportntsc -DXN portable NTSC profile -.IPs dxnportpal -DXN portable PAL profile -.IPs dxnhtntsc -DXN home theater NTSC profile -.IPs dxnhtpal -DXN home theater PAL profile -.IPs dxnhdtv -DXN HDTV profile -.RE -.PD 1 -.RS -.I NOTE: -These profiles should be used in conjunction with an appropriate \-ffourcc. -Generally DX50 is applicable, as some players do not recognize Xvid but -most recognize DivX. -.RE -. -.TP -.B par= -Specifies the Pixel Aspect Ratio mode (not to be confused with DAR, -the Display Aspect Ratio). -PAR is the ratio of the width and height of a single pixel. -So both are related like this: DAR = PAR * (width/height). -.br -MPEG-4 defines 5 pixel aspect ratios and one extended -one, giving the opportunity to specify a specific pixel aspect -ratio. -5 standard modes can be specified: -.PD 0 -.RSs -.IPs vga11 -It is the usual PAR for PC content. -Pixels are a square unit. -.IPs pal43 -PAL standard 4:3 PAR. -Pixels are rectangles. -.IPs pal169 -same as above -.IPs ntsc43 -same as above -.IPs ntsc169 -same as above (Do not forget to give the exact ratio.) -.IPs "ext\ \ " -Allows you to specify your own pixel aspect ratio with par_width and -par_height. -.RE -.PD 1 -.RS -.I NOTE: -In general, setting aspect and autoaspect options is enough. -.RE -. -.TP -.B par_width=<1\-255> (par=ext only) -Specifies the width of the custom pixel aspect ratio. -. -.TP -.B par_height=<1\-255> (par=ext only) -Specifies the height of the custom pixel aspect ratio. -. -.TP -.B aspect= -Store movie aspect internally, just like MPEG files. -Much nicer solution than rescaling, because quality is not decreased. -MPlayer and a few others players will play these files correctly, others -will display them with the wrong aspect. -The aspect parameter can be given as a ratio or a floating point number. -. -.TP -.B (no)autoaspect -Same as the aspect option, but automatically computes aspect, taking -into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the -filter chain. -. -.TP -.B "psnr\ \ \ " -Print the PSNR (peak signal to noise ratio) for the whole video after encoding -and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in -the current directory. -Returned values are in dB (decibel), the higher the better. -. -.TP -.B "debug\ \ " -Save per-frame statistics in ./xvid.dbg. (This is not the two pass control -file.) -.RE -. -.PP -.sp 1 -The following option is only available in Xvid 1.1.x. -. -.TP -.B bvhq=<0|1> -This setting allows vector candidates for B-frames to be used for -the encoding chosen using a rate distortion optimized operator, -which is what is done for P-frames by the vhq option. -This produces nicer-looking B-frames while incurring almost no -performance penalty (default: 1). -. -.PP -.sp 1 -The following option is only available in the 1.2.x version of Xvid. -. -.TP -.B threads=<0\-n> -Create n threads to run the motion estimation (default: 0). -The maximum number of threads that can be used is the picture height -divided by 16. -. -. -.SS x264enc (\-x264encopts) -. -.TP -.B bitrate= -Sets the average bitrate to be used in kbits/\:second (default: off). -Since local bitrate may vary, this average may be inaccurate for -very short videos (see ratetol). -Constant bitrate can be achieved by combining this with vbv_maxrate, -at significant reduction in quality. -. -.TP -.B qp=<0\-51> -This selects the quantizer to use for P-frames. -I- and B-frames are offset from this value by ip_factor and pb_factor, respectively. -20\-40 is a useful range. -Lower values result in better fidelity, but higher bitrates. -0 is lossless. -Note that quantization in H.264 works differently from MPEG-1/2/4: -H.264's quantization parameter (QP) is on a logarithmic scale. -The mapping is approximately H264QP = 12 + 6*log2(MPEGQP). -For example, MPEG at QP=2 is equivalent to H.264 at QP=18. -. -.TP -.B crf=<1.0\-50.0> -Enables constant quality mode, and selects the quality. -The scale is similar to QP. -Like the bitrate-based modes, this allows each frame to use a -different QP based on the frame's complexity. -. -.TP -.B pass=<1\-3> -Enable 2 or 3-pass mode. -It is recommended to always encode in 2 or 3-pass mode as it leads to a -better bit distribution and improves overall quality. -.PD 0 -.RSs -.IPs 1 -first pass -.IPs 2 -second pass (of two pass encoding) -.IPs 3 -Nth pass (second and third passes of three pass encoding) -.RE -.RS -Here is how it works, and how to use it: -.br -The first pass (pass=1) collects statistics on the video and writes them -to a file. -You might want to deactivate some CPU-hungry options, apart from the ones -that are on by default. -.br -In two pass mode, the second pass (pass=2) reads the statistics file and -bases ratecontrol decisions on it. -.br -In three pass mode, the second pass (pass=3, that is not a typo) -does both: It first reads the statistics, then overwrites them. -You can use all encoding options, except very CPU-hungry options. -.br -The third pass (pass=3) is the same as the second pass, except that it has -the second pass' statistics to work from. -You can use all encoding options, including CPU-hungry ones. -.br -The first pass may use either average bitrate or constant quantizer. -ABR is recommended, since it does not require guessing a quantizer. -Subsequent passes are ABR, and must specify bitrate. -.REss -. -.TP -.B turbo=<0\-2> -Fast first pass mode. -During the first pass of a two or more pass encode it is possible to gain -speed by disabling some options with negligible or even no impact on the -final pass output quality. -.PD 0 -.RSs -.IPs 0 -disabled (default) -.IPs 1 -Reduce subq, frameref and disable some inter-macroblock partition analysis -modes. -.IPs 2 -Reduce subq and frameref to 1, use a diamond ME search and disable all -partition analysis modes. -.RE -.RS -Level 1 can increase first pass speed up to 2x with no change in the global -PSNR of the final pass compared to a full quality first pass. -.br -Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change -in the global PSNR of the final pass compared to a full quality first pass. -.REss -. -.TP -.B keyint= -Sets maximum interval between IDR-frames (default: 250). -Larger values save bits, thus improve quality, at the cost of seeking -precision. -Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large -values of keyint. -. -.TP -.B keyint_min=<1\-keyint/2> -Sets minimum interval between IDR-frames (default: 25). -If scenecuts appear within this interval, they are still encoded as -I-frames, but do not start a new GOP. -In H.264, I-frames do not necessarily bound a closed GOP because it is -allowable for a P-frame to be predicted from more frames than just the one -frame before it (also see frameref). -Therefore, I-frames are not necessarily seekable. -IDR-frames restrict subsequent P-frames from referring to any frame -prior to the IDR-frame. -. -.TP -.B scenecut=<\-1\-100> -Controls how aggressively to insert extra I-frames (default: 40). -With small values of scenecut, the codec often has to force an I-frame -when it would exceed keyint. -Good values of scenecut may find a better location for the I-frame. -Large values use more I-frames than necessary, thus wasting bits. -\-1 disables scene-cut detection, so I-frames are inserted only once -every other keyint frames, even if a scene-cut occurs earlier. -This is not recommended and wastes bitrate as scenecuts encoded as P-frames -are just as big as I-frames, but do not reset the "keyint counter". -. -.TP -.B (no)intra_refresh -Periodic intra block refresh instead of keyframes (default: disabled). -This option disables IDR-frames, and, instead, uses a moving vertical bar -of intra-coded blocks. This reduces compression efficiency but benefits -low-latency streaming and resilience to packet loss. -. -.TP -.B frameref=<1\-16> -Number of previous frames used as predictors in B- and P-frames (default: 3). -This is effective in anime, but in live-action material the improvements -usually drop off very rapidly above 6 or so reference frames. -This has no effect on decoding speed, but does increase the memory needed for -decoding. -Some decoders can only handle a maximum of 15 reference frames. -. -.TP -.B bframes=<0\-16> -maximum number of consecutive B-frames between I- and P-frames (default: 3) -. -.TP -.B (no)b_adapt -Automatically decides when to use B-frames and how many, up to the maximum -specified above (default: on). -If this option is disabled, then the maximum number of B-frames is used. -. -.TP -.B b_bias=<\-100\-100> -Controls the decision performed by b_adapt. -A higher b_bias produces more B-frames (default: 0). -. -.TP -.B (no)b_pyramid -Allows B-frames to be used as references for predicting other frames. -For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4. -Without this option, B-frames follow the same pattern as MPEG-[124]. -So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames -are predicted from I0 and P4. -With this option, they are coded as I0 P4 B2 B1 B3. -B2 is the same as above, but B1 is predicted from I0 and B2, and -B3 is predicted from B2 and P4. -This usually results in slightly improved compression, at almost no -speed cost. -However, this is an experimental option: it is not fully tuned and -may not always help. -Requires bframes >= 2. -Disadvantage: increases decoding delay to 2 frames. -. -.TP -.B (no)deblock -Use deblocking filter (default: on). -As it takes very little time compared to its quality gain, it is not -recommended to disable it. -. -.TP -.B deblock=<\-6\-6>,<\-6\-6> -The first parameter is AlphaC0 (default: 0). -This adjusts thresholds for the H.264 in-loop deblocking filter. -First, this parameter adjusts the maximum amount of change that the filter is -allowed to cause on any one pixel. -Secondly, this parameter affects the threshold for difference across the -edge being filtered. -A positive value reduces blocking artifacts more, but will also smear details. -.br -The second parameter is Beta (default: 0). -This affects the detail threshold. -Very detailed blocks are not filtered, since the smoothing caused by the -filter would be more noticeable than the original blocking. -.br -The default behavior of the filter almost always achieves optimal quality, -so it is best to either leave it alone, or make only small adjustments. -However, if your source material already has some blocking or noise which -you would like to remove, it may be a good idea to turn it up a little bit. -. -.TP -.B (no)cabac -Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on). -Slightly slows down encoding and decoding, but should save 10\-15% bitrate. -Unless you are looking for decoding speed, you should not disable it. -. -.TP -.B qp_min=<1\-51> (ABR or two pass) -Minimum quantizer, 10\-30 seems to be a useful range (default: 10). -. -.TP -.B qp_max=<1\-51> (ABR or two pass) -maximum quantizer (default: 51) -. -.TP -.B qp_step=<1\-50> (ABR or two pass) -maximum value by which the quantizer may be incremented/decremented between -frames (default: 4) -. -.TP -.B (no)mbtree -Enable macroblock tree ratecontrol (default: enabled). -Use a large lookahead to track temporal propagation of data and weight quality -accordingly. -In multi-pass mode, this writes to a separate stats file named -.mbtree. -. -.TP -.B rc_lookahead=<0\-250> -Adjust the mbtree lookahead distance (default: 40). -Larger values will be slower and cause x264 to consume more memory, but can -yield higher quality. -. -.TP -.B ratetol=<0.1\-100.0> (ABR or two pass) -allowed variance in average bitrate (no particular units) (default: 1.0) -. -.TP -.B vbv_maxrate= (ABR or two pass) -maximum local bitrate, in kbits/\:second (default: disabled) -. -.TP -.B vbv_bufsize= (ABR or two pass) -averaging period for vbv_maxrate, in kbits -(default: none, must be specified if vbv_maxrate is enabled) -. -.TP -.B vbv_init=<0.0\-1.0> (ABR or two pass) -initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9) -. -.TP -.B ip_factor= -quantizer factor between I- and P-frames (default: 1.4) -. -.TP -.B pb_factor= -quantizer factor between P- and B-frames (default: 1.3) -. -.TP -.B qcomp=<0\-1> (ABR or two pass) -quantizer compression (default: 0.6). -A lower value makes the bitrate more constant, -while a higher value makes the quantization parameter more constant. -. -.TP -.B cplx_blur=<0\-999> (two pass only) -Temporal blur of the estimated frame complexity, before curve compression -(default: 20). -Lower values allow the quantizer value to jump around more, -higher values force it to vary more smoothly. -cplx_blur ensures that each I-frame has quality comparable to the following -P-frames, and ensures that alternating high and low complexity frames -(e.g.\& low fps animation) do not waste bits on fluctuating quantizer. -. -.TP -.B qblur=<0\-99> (two pass only) -Temporal blur of the quantization parameter, after curve compression -(default: 0.5). -Lower values allow the quantizer value to jump around more, -higher values force it to vary more smoothly. -. -.TP -.B zones=[/[/...]] -User specified quality for specific parts (ending, credits, ...). -Each zone is ,,