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: manpage: Remove MEncoder references --- DOCS/man/en/mplayer.1 | 4155 +++---------------------------------------------- 1 file changed, 186 insertions(+), 3969 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,3815 +7634,244 @@ may make demons fly out of your nose. .RE . . -.SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)" +.\" -------------------------------------------------------------------------- +.\" environment variables +.\" -------------------------------------------------------------------------- . -.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. +.SH ENVIRONMENT VARIABLES . -.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. +There are a number of environment variables that can be used to +control the behavior of MPlayer. . .TP -.B \-audio\-preload <0.0\-2.0> -Sets up the audio buffering time interval (default: 0.5s). +.B MPLAYER_CHARSET (also see \-msgcharset) +Convert console messages to the specified charset (default: autodetect). +A value of "noconv" means no conversion. . .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 +.B MPLAYER_HOME +Directory where MPlayer looks for user settings. . .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 +.B MPLAYER_LOCALEDIR +Directory where MPlayer looks for gettext translation files (if enabled). . .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'. +.B MPLAYER_VERBOSE (also see \-v and \-msglevel) +Set the initial verbosity level across all message modules (default: 0). +The resulting verbosity corresponds to that of \-msglevel 5 plus the +value of MPLAYER_VERBOSE. +. +.SS libaf: . .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. +.B LADSPA_PATH +If LADSPA_PATH is set, it searches for the specified file. +If it is not set, you must supply a fully specified pathname. +FIXME: This is also mentioned in the ladspa section. +. +.SS libdvdcss: . .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'. +.B DVDCSS_CACHE +Specify a directory in which to store title key values. +This will speed up descrambling of DVDs which are in the cache. +The DVDCSS_CACHE directory is created if it does not exist, +and a subdirectory is created named after the DVD's title +or manufacturing date. +If DVDCSS_CACHE is not set or is empty, libdvdcss will use +the default value which is "${HOME}/.dvdcss/" under Unix and +"C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32. +The special value "off" disables caching. . .TP -.B \-info (AVI only) -Specify the info header of the resulting AVI file. -.sp 1 -Available options are: +.B DVDCSS_METHOD +Sets the authentication and decryption method that +libdvdcss will use to read scrambled discs. +Can be one of title, key or disc. +.PD 0 .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 +.IPs "key\ \ " +is the default method. +libdvdcss will use a set of calculated player keys to try and get the disc key. +This can fail if the drive does not recognize any of the player keys. +.IPs "disc\ " +is a fallback method when key has failed. +Instead of using player keys, libdvdcss will crack the disc key using +a brute force algorithm. +This process is CPU intensive and requires 64 MB of memory to store +temporary data. +.IPs title +is the fallback when all other methods have failed. +It does not rely on a key exchange with the DVD drive, but rather uses +a crypto attack to guess the title key. +On rare cases this may fail because there is not enough encrypted data +on the disc to perform a statistical attack, but in the other hand it +is the only way to decrypt a DVD stored on a hard disc, or a DVD with +the wrong region on an RPC2 drive. .RE +.PD 1 . .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. +.B DVDCSS_RAW_DEVICE +Specify the raw device to use. +Exact usage will depend on your operating system, the Linux +utility to set up raw devices is raw(8) for instance. +Please note that on most operating systems, using a raw device +requires highly aligned buffers: Linux requires a 2048 bytes +alignment (which is the size of a DVD sector). . .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. +.B DVDCSS_VERBOSE +Sets the libdvdcss verbosity level. +.PD 0 +.RSs +.IPs 0 +Outputs no messages at all. +.IPs 1 +Outputs error messages to stderr. +.IPs 2 +Outputs error messages and debug messages to stderr. +.RE +.PD 1 . .TP -.B \-noodml (\-of avi only) -Do not write OpenDML index for AVI files >1GB. +.B DVDREAD_NOKEYS +Skip retrieving all keys on startup. +Currently disabled. . .TP -.B \-noskip -Do not skip frames. +.B HOME +FIXME: Document this. +. +.SS libao2: . .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. +.B AO_SUN_DISABLE_SAMPLE_TIMING +FIXME: Document this. . .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 +.B AUDIODEV +FIXME: Document this. . .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. +.B AUDIOSERVER +Specifies the Network Audio System server to which the +nas audio output driver should connect and the transport +that should be used. +If unset DISPLAY is used instead. +The transport can be one of tcp and unix. +Syntax is tcp/:, : +or [unix]:. +The NAS base port is 8000 and is added to that. .sp 1 -.I EXAMPLE: +.RS +.I EXAMPLES: +.RE .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) +.IPs AUDIOSERVER=somehost:0 +Connect to NAS server on somehost using default port and transport. +.IPs AUDIOSERVER=tcp/somehost:8000 +Connect to NAS server on somehost listening on TCP port 8000. +.IPs AUDIOSERVER=(unix)?:0 +Connect to NAS server instance 0 on localhost using unix domain sockets. .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. +.B DISPLAY +FIXME: Document this. +. +.SS vidix: . .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 +.B VIDIX_CRT +FIXME: Document this. . .TP -.B \-passlogfile -Dump first pass information to instead of the default divx2pass.log -in two pass encoding mode. +.B VIDIXIVTVALPHA +Set this to 'disable' in order to stop the VIDIX driver from controlling +alphablending settings. +You can then manipulate it yourself with 'ivtvfbctl'. +. +.SS osdep: . .TP -.B \-skiplimit -Specify the maximum number of frames that may be skipped after -encoding one frame (\-noskiplimit for unlimited). +.B TERM +FIXME: Document this. +. +.SS libvo: . .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. +.B DISPLAY +FIXME: Document this. . .TP -.B \-vobsuboutid -Specify the language two letter code for the subtitles. -This overrides what is read from the DVD or the .ifo file. +.B FRAMEBUFFER +FIXME: Document this. . .TP -.B \-vobsuboutindex -Specify the index of the subtitles in the output files (default: 0). +.B HOME +FIXME: Document this. . +.SS libmpdemux: . +.TP +.B HOME +FIXME: Document this. . -.SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)" -You can specify codec specific encoding parameters using the following -syntax: +.TP +.B HOMEPATH +FIXME: Document this. . .TP -.B \-opts +.B http_proxy +FIXME: Document this. . -.PP -Where may be: lavc, xvidenc, mp3lame, toolame, twolame, -nuv, xvfw, faac, x264enc, mpeg, lavf. +.TP +.B LOGNAME +FIXME: Document this. . +.TP +.B USERPROFILE +FIXME: Document this. . -.SS mp3lame (\-lameopts) +.SS GUI: . .TP -.B "help\ \ \ " -get help +.B CHARSET +FIXME: Document this. . .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 +.B DISPLAY +FIXME: Document this. . .TP -.B "abr\ \ \ \ " -average bitrate +.B HOME +FIXME: Document this. . -.TP -.B "cbr\ \ \ \ " -constant bitrate -Also forces CBR mode encoding on subsequent ABR presets modes. +.SS libavformat: . .TP -.B br=<0\-1024> -bitrate in kbps (CBR and ABR only) +.B AUDIO_FLIP_LEFT +FIXME: Document this. . .TP -.B q=<0\-9> -quality (0 \- highest, 9 \- lowest) (VBR only) +.B BKTR_DEV +FIXME: Document this. . .TP -.B aq=<0\-9> -algorithmic quality (0 \- best/slowest, 9 \- worst/fastest) +.B BKTR_FORMAT +FIXME: Document this. . .TP -.B ratio=<1\-100> -compression ratio +.B BKTR_FREQUENCY +FIXME: Document this. . .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 esti