2 .\" MPlayer (C) 2000-2007 MPlayer Team
3 .\" This man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
5 .\" --------------------------------------------------------------------------
7 .\" --------------------------------------------------------------------------
9 .\" define indentation for suboptions
15 .\" begin of first level suboptions, end with .RE
19 .\" begin of 2nd level suboptions
24 .\" end of 2nd level suboptions
30 .\" --------------------------------------------------------------------------
32 .\" --------------------------------------------------------------------------
34 .TH MPlayer 1 "2007-06-01" "The MPlayer Project" "The Movie Player"
37 mplayer \- movie player
39 mencoder \- movie encoder
41 .\" --------------------------------------------------------------------------
43 .\" --------------------------------------------------------------------------
49 [options] [file|URL|playlist|\-]
54 [specific options] [file2] [specific options]
59 {group of files and options}
60 [group-specific options]
64 [dvd|dvdnav]://[title|[start_title]\-end_title]
73 tv://[channel][/input_id]
78 radio://[channel|frequency][/capture]
88 dvb://[card_number@]channel
93 mf://[filemask|@listfile]
94 [\-mf options] [options]
98 [cdda|cddb]://track[\-endtrack][:speed][/device]
108 [file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|smb]://
109 [user:pass@]URL[:port] [options]
118 mpst://host[:port]/URL
123 tivo://host/[list|llist|fsid]
134 [file|URL|\-] [\-o file | file://file | smb://[user:pass@]host/filepath]
139 [specific options] [file2] [specific options]
143 .\" --------------------------------------------------------------------------
145 .\" --------------------------------------------------------------------------
149 is a movie player for Linux (runs on many other platforms and CPU
150 architectures, see the documentation).
151 It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM,
152 MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
153 native and binary codecs.
154 You can watch Video CD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies,
157 MPlayer supports a wide range of video and audio output drivers.
158 It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
159 Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers),
160 VESA (on every VESA-compatible card, even without X11), some low-level
161 card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder
162 boards, such as the Siemens DVB, Hauppauge PVR (IVTV), DXR2 and DXR3/\:Hollywood+.
163 Most of them support software or hardware scaling, so you can enjoy movies in
166 MPlayer has an onscreen display (OSD) for status information, nice big
167 antialiased shaded subtitles and visual feedback for keyboard controls.
168 European/\:ISO8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean
169 fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM,
170 SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and
171 DVD subtitles (SPU streams, VOBsub and Closed Captions).
174 (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode
175 MPlayer-playable movies (see above) to other MPlayer-playable formats (see
177 It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and
178 PCM/\:MP3/\:VBRMP3 audio in 1, 2 or 3 passes.
179 Furthermore it has stream copying abilities, a powerful filter system (crop,
180 expand, flip, postprocess, rotate, scale, noise, RGB/\:YUV conversion) and
184 is MPlayer with a graphical user interface.
185 It has the same options as MPlayer.
187 Usage examples to get you started quickly can be found at the end
190 .B Also see the HTML documentation!
193 .\" --------------------------------------------------------------------------
194 .\" interactive control
195 .\" --------------------------------------------------------------------------
197 .SH "INTERACTIVE CONTROL"
198 MPlayer has a fully configurable, command-driven control layer
199 which allows you to control MPlayer using keyboard, mouse, joystick
200 or remote control (with LIRC).
201 See the \-input option for ways to customize it.
208 Seek backward/\:forward 10 seconds.
210 Seek forward/\:backward 1 minute.
211 .IPs "pgup and pgdown"
212 Seek forward/\:backward 10 minutes.
214 Decrease/increase current playback speed by 10%.
216 Halve/double current playback speed.
218 Reset playback speed to normal.
220 Go backward/\:forward in the playlist.
222 Go forward in the playlist, even over the end.
224 next/\:previous playtree entry in the parent list
225 .IPs "INS and DEL (ASX playlist only)"
226 next/\:previous alternative source.
228 Pause (pressing again unpauses).
231 Pressing once will pause movie, every consecutive press will play one frame
232 and then go into pause mode again (any other key unpauses).
234 Stop playing and quit.
236 Adjust audio delay by +/\- 0.1 seconds.
238 Decrease/\:increase volume.
240 Decrease/\:increase volume.
242 Adjust audio balance in favor of left/\:right channel.
245 .IPs "_ (MPEG-TS, AVI and libavformat only)"
246 Cycle through the available video tracks.
247 .IPs "# (DVD, MPEG, Matroska, AVI and libavformat only)"
248 Cycle through the available audio tracks.
249 .IPs "TAB (MPEG-TS and libavformat only)"
250 Cycle through the available programs.
252 Toggle fullscreen (also see \-fs).
254 Toggle stay-on-top (also see \-ontop).
256 Decrease/\:increase pan-and-scan range.
258 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
260 Toggle frame dropping states: none / skip display / skip decoding
261 (see \-framedrop and \-hardframedrop).
263 Toggle subtitle visibility.
265 Cycle through the available subtitles.
267 Step forward/backward in the subtitle list.
269 Toggle displaying "forced subtitles".
271 Toggle subtitle alignment: top / middle / bottom.
273 Adjust subtitle delay by +/\- 0.1 seconds.
275 Move subtitles up/down.
276 .IPs "i (\-edlout mode only)"
277 Set start or end of an EDL skip and write it out to the given file.
278 .IPs "s (\-vf screenshot only)"
280 .IPs "S (\-vf screenshot only)"
281 Start/stop taking screenshots.
283 Show filename on the OSD.
285 Seek to the beginning of the previous/next chapter.
286 .IPs "D (\-vo xvmc, \-vf yadif, \-vf kerndeint only)"
287 Activate/deactivate deinterlacer.
292 (The following keys are valid only when using a hardware accelerated video
293 output (xv, (x)vidix, (x)mga, etc), the software equalizer
294 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
311 (The following keys are valid only when using the quartz or macosx
312 video output driver.)
318 Resize movie window to half its original size.
320 Resize movie window to its original size.
322 Resize movie window to double its original size.
324 Toggle fullscreen (also see \-fs).
325 .IPs "command + [ and command + ]"
326 Set movie window alpha.
331 (The following keys are valid only when using the sdl
332 video output driver.)
338 Cycle through available fullscreen modes.
340 Restore original mode.
345 (The following keys are valid if you have a keyboard
346 with multimedia keys.)
354 Stop playing and quit.
355 .IPs "PREVIOUS and NEXT"
356 Seek backward/\:forward 1 minute.
361 (The following keys are only valid if GUI support is compiled in
362 and will take precedence over the keys defined above.)
385 (The following keys are only valid if you compiled with TV or DVB input
386 support and will take precedence over the keys defined above.)
392 Select previous/\:next channel.
401 (The following keys are only valid if you compiled with dvdnav
402 support: They are used to navigate the menus.)
418 Return to nearest menu (the order of preference is: chapter->title->root).
426 (The following keys are only valid if teletext support is enabled during
427 compilation: They are used for controlling TV teletext.)
433 Switch teletext on/\:off.
435 Go to next/\:prev teletext page.
445 .IPs "button 3 and button 4"
446 Seek backward/\:forward 1 minute.
447 .IPs "button 5 and button 6"
448 Decrease/\:increase volume.
456 .IPs "left and right"
457 Seek backward/\:forward 10 seconds.
459 Seek forward/\:backward 1 minute.
463 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
464 .IPs "button 3 and button 4"
465 Decrease/\:increase volume.
470 .\" --------------------------------------------------------------------------
472 .\" --------------------------------------------------------------------------
475 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
476 \-fs option is \-nofs.
478 If an option is marked as (XXX only), it will only work in combination with
479 the XXX option or if XXX is compiled in.
482 The suboption parser (used for example for \-ao pcm suboptions) supports
483 a special kind of string-escaping intended for use with external GUIs.
485 It has the following format:
487 %n%string_of_length_n
491 mplayer \-ao pcm:file=%10%C:test.wav test.avi
495 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
498 .\" --------------------------------------------------------------------------
499 .\" Configuration files
500 .\" --------------------------------------------------------------------------
502 .SH "CONFIGURATION FILES"
503 You can put all of the options in configuration files which will be read
504 every time MPlayer/MEncoder is run.
505 The system-wide configuration file 'mplayer.conf' is in your configuration
506 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
507 specific one is '~/\:.mplayer/\:config'.
508 The configuration file for MEncoder is 'mencoder.conf' in your configuration
509 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
510 user specific one is '~/\:.mplayer/\:mencoder.conf.
511 User specific options override system-wide options and options given on the
512 command line override either.
513 The syntax of the configuration files is 'option=<value>', everything after
514 a '#' is considered a comment.
515 Options that work without values can be enabled by setting them to 'yes'
516 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
517 Even suboptions can be specified in this way.
519 You can also write file-specific configuration files.
520 If you wish to have a configuration file for a file called 'movie.avi', create a file
521 named 'movie.avi.conf' with the file-specific options in it and put it in
523 You can also put the configuration file in the same directory as the file to
524 be played, as long as you give the \-use\-filedir\-conf option (either on the
525 command line or in your global config file).
527 .I EXAMPLE MPLAYER CONFIGURATION FILE:
530 # Use Matrox driver by default.
532 # I love practicing handstands while watching videos.
534 # Decode/encode multiple files from PNG,
535 # start with mf://filemask
537 # Eerie negative images are cool.
541 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
544 # Make MEncoder output to a default filename.
546 # The next 4 lines allow mencoder tv:// to start capturing immediately.
549 lavcopts=vcodec=mjpeg
550 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
551 # more complex default encoding option set
552 lavcopts=vcodec=mpeg4:autoaspect=1
556 passlogfile=pass1stats.log
566 .\" --------------------------------------------------------------------------
568 .\" --------------------------------------------------------------------------
571 To ease working with different configurations profiles can be defined in the
573 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
574 All following options will be part of the profile.
575 A description (shown by \-profile help) can be defined with the profile-desc
577 To end the profile, start another one or use the profile name 'default'
578 to continue with normal options.
581 .I "EXAMPLE MENCODER PROFILE:"
586 profile-desc="MPEG4 encoding"
588 lavcopts=vcodec=mpeg4:vbitrate=1200
591 profile-desc="HQ MPEG4 encoding"
593 lavcopts=mbd=2:trell=yes:v4mv=yes
596 .\" --------------------------------------------------------------------------
598 .\" --------------------------------------------------------------------------
600 .SH "GENERAL OPTIONS"
603 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
604 Override the standard search path and use the specified file
605 instead of the builtin codecs.conf.
608 .B \-include <configuration file>
609 Specify configuration file to be parsed after the default ones.
613 Prints all available options.
616 .B \-msgcharset <charset>
617 Convert console messages to the specified character set (default: autodetect).
618 Text will be in the encoding specified with the \-\-charset configure option.
619 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
622 The option takes effect after command line parsing has finished.
623 The MPLAYER_CHARSET environment variable can help you get rid of
624 the first lines of garbled output.
627 .B \-msglevel <all=<level>:<module>=<level>:...>
628 Control verbosity directly for each module.
629 The 'all' module changes the verbosity of all the modules not
630 explicitly specified on the command line.
631 See '\-msglevel help' for a list of all modules.
634 Some messages are printed before the command line is parsed and are
635 therefore not affected by \-msglevel.
636 To control these messages you have to use the MPLAYER_VERBOSE environment
637 variable, see its description below for details.
653 informational messages
655 status messages (default)
669 Make console output less verbose; in particular, prevents the status line
670 (i.e.\& A: 0.7 V: 0.6 A-V: 0.068 ...) from being displayed.
671 Particularly useful on slow terminals or broken ones which do not properly
672 handle carriage return (i.e.\& \\r).
675 .B \-priority <prio> (Windows only)
676 Set process priority for MPlayer according to the predefined
677 priorities available under Windows.
678 Possible values of <prio>:
680 idle|belownormal|normal|abovenormal|high|realtime
685 Using realtime priority can cause system lockup.
689 .B \-profile <profile1,profile2,...>
690 Use the given profile(s), \-profile help displays a list of the defined profiles.
693 .B \-really\-quiet (also see \-quiet)
694 Display even less output and status messages than with \-quiet.
695 Also suppresses the GUI error message boxes.
698 .B \-show\-profile <profile>
699 Show the description and content of a profile.
702 .B \-use\-filedir\-conf
703 Look for a file-specific configuration file in the same directory as
704 the file that is being played.
707 May be dangerous if playing from untrusted media.
711 Increment verbosity level, one level for each \-v
712 found on the command line.
716 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
719 .B \-autoq <quality> (use with \-vf [s]pp)
720 Dynamically changes the level of postprocessing depending on the available spare
722 The number you specify will be the maximum level used.
723 Usually you can use some big number.
724 You have to use \-vf [s]pp without parameters in order for this to work.
727 .B \-autosync <factor>
728 Gradually adjusts the A/V sync based on audio delay measurements.
729 Specifying \-autosync 0, the default, will cause frame timing to be based
730 entirely on audio delay measurements.
731 Specifying \-autosync 1 will do the same, but will subtly change the A/V
732 correction algorithm.
733 An uneven video framerate in a movie which plays fine with \-nosound can
734 often be helped by setting this to an integer value greater than 1.
735 The higher the value, the closer the timing will be to \-nosound.
736 Try \-autosync 30 to smooth out problems with sound drivers which do
737 not implement a perfect audio delay measurement.
738 With this value, if large A/V sync offsets occur, they will only take about
739 1 or 2 seconds to settle out.
740 This delay in reaction time to sudden A/V offsets should be the only
741 side-effect of turning this option on, for all sound drivers.
745 Prints some statistics on CPU usage and dropped frames at the end of playback.
746 Use in combination with \-nosound and \-vo null for benchmarking only the
750 With this option MPlayer will also ignore frame duration when playing
751 only video (you can think of that as infinite fps).
754 .B \-colorkey <number>
755 Changes the colorkey to an RGB value of your choice.
756 0x000000 is black and 0xffffff is white.
757 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
758 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
763 Disables colorkeying.
764 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
765 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
769 .B \-correct\-pts (experimental)
770 Switches MPlayer to an experimental mode where timestamps for video frames
771 are calculated differently and video filters which add new frames or
772 modify timestamps of existing ones are supported.
773 The more accurate timestamps can be visible for example when playing
774 subtitles timed to scene changes with the \-ass option.
775 Without \-correct\-pts the subtitle timing will typically be off by some frames.
776 This option does not work correctly with some demuxers and codecs.
779 .B \-crash\-debug (DEBUG CODE)
780 Automatically attaches gdb upon crash or SIGTRAP.
781 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
784 .B \-doubleclick\-time
785 Time in milliseconds to recognize two consecutive button presses as
786 a double-click (default: 300).
787 Set to 0 to let your windowing system decide what a double-click is
791 You will get slightly different behaviour depending on whether you bind
792 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
795 .B \-edlout <filename>
796 Creates a new file and writes edit decision list (EDL) records to it.
797 During playback, the user hits 'i' to mark the start or end of a skip block.
798 This provides a starting point from which the user can fine-tune EDL entries
800 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
803 .B \-enqueue (GUI only)
804 Enqueue files given on the command line in the playlist instead of playing them
809 Enforces a fixed video system for multiple files (one (un)initialization for
811 Therefore only one window will be opened for all files.
812 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
813 xmga, xv, xvidix and dfbmga.
816 .B \-framedrop (also see \-hardframedrop)
817 Skip displaying some frames to maintain A/V sync on slow systems.
818 Video filters are not applied to such frames.
819 For B-frames even decoding is skipped completely.
823 Enable or disable the GUI interface (default depends on binary name).
824 Only works as the first argument on the command line.
825 Does not work as a config-file option.
828 .B \-h, \-help, \-\-help
829 Show short summary of options.
833 More intense frame dropping (breaks decoding).
834 Leads to image distortion!
838 Shorthand for \-msglevel identify=4.
839 Show file parameters in an easily parseable format.
840 Also prints more detailed information about subtitle and audio
841 track languages and IDs.
842 In some cases you can get more information by using \-msglevel identify=6.
843 For example, for a DVD it will list the chapters and time length of each title,
844 as well as a disk ID.
845 The wrapper script TOOLS/\:midentify suppresses the other MPlayer output and
846 (hopefully) shellescapes the filenames.
849 .B \-idle (also see \-slave)
850 Makes MPlayer wait idly instead of quitting when there is no file to play.
851 Mostly useful in slave mode where MPlayer can be controlled
852 through input commands.
855 .B \-input <commands>
856 This option can be used to configure certain parts of the input system.
857 Paths are relative to ~/.mplayer/.
860 Autorepeat is currently only supported by joysticks.
862 Available commands are:
867 Specify input configuration file other than the default
868 ~/\:.mplayer/\:input.conf.
869 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
871 Delay in milliseconds before we start to autorepeat a key (0 to disable).
873 Number of key presses to generate per second on autorepeat.
875 Prints all keys that can be bound to commands.
877 Prints all commands that can be bound to keys.
879 Specifies the joystick device to use (default: /dev/\:input/\:js0).
881 Read commands from the given file.
882 Mostly useful with a FIFO.
885 When the given file is a FIFO MPlayer opens both ends so you can do
886 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
891 .B \-key\-fifo\-size <2\-65000>
892 Specify the size of the FIFO that buffers key events (default: 7).
893 A FIFO of size n can buffer (n\-1) events.
894 If it is too small some events may be lost
895 (leading to "stuck mouse buttons" and similar effects).
896 If it is too big, MPlayer may seem to hang while it
897 processes the buffered events.
898 To get the same behavior as before this option was introduced,
899 set it to 2 for Linux or 1024 for Windows.
902 .B \-lircconf <filename> (LIRC only)
903 Specifies a configuration file for LIRC (default: ~/.lircrc).
906 .B \-list\-properties
907 Print a list of the available properties.
911 Loops movie playback <number> times.
915 .B \-menu (OSD menu only)
916 Turn on OSD menu support.
919 .B \-menu\-cfg <filename> (OSD menu only)
920 Use an alternative menu.conf.
923 .B \-menu\-chroot <path> (OSD menu only)
924 Chroot the file selection menu to a specific location.
929 .IPs "\-menu\-chroot /home"
930 Will restrict the file selection menu to /\:home and downward (i.e.\& no
931 access to / will be possible, but /home/user_name will).
936 .B \-menu\-keepdir (OSD menu only)
937 File browser starts from the last known location instead of current directory.
940 .B \-menu\-root <value> (OSD menu only)
941 Specify the main menu.
944 .B \-menu\-startup (OSD menu only)
945 Display the main menu at MPlayer startup.
948 .B \-mouse\-movements
949 Permit MPlayer to receive pointer events reported by the video
950 output driver (currently only derivatives of X11 are supported).
951 Necessary to select the buttons in DVD menus.
954 .B \-noconsolecontrols
955 Prevent MPlayer from reading key events from standard input.
956 Useful when reading data from standard input.
957 This is automatically enabled when \- is found on the command line.
958 There are situations where you have to set it manually, e.g.\&
959 if you open /dev/\:stdin (or the equivalent on your system), use stdin
960 in a playlist or intend to read from stdin later on via the loadfile or
961 loadlist slave commands.
965 Turns off joystick support.
969 Turns off LIRC support.
973 Disable mouse button press/\:release input (mozplayerxp's context menu relies
978 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
980 This wakes up the process every 1/1024 seconds to check the current time.
981 Useless with modern Linux kernels configured for desktop use as they already
982 wake up the process with similar accuracy when using normal timed sleep.
985 .B \-playing\-msg <string>
986 Print out a string before starting playback.
987 The following expansions are supported:
990 Expand to the value of the property NAME.
992 Expand TEXT only if the property NAME is available.
996 .B \-playlist <filename>
997 Play files according to a playlist file (ASX, Winamp, SMIL, or
998 one-file-per-line format).
1001 This option is considered an entry so options found after it will apply
1002 only to the elements of this playlist.
1004 FIXME: This needs to be clarified and documented thoroughly.
1007 .B \-rtc\-device <device>
1008 Use the specified device for RTC timing.
1012 Play files in random order.
1015 .B \-skin <name> (GUI only)
1016 Loads a skin from the directory given as parameter below the default skin
1017 directories, /usr/\:local/\:share/\:mplayer/\:skins/\: and ~/.mplayer/\:skins/.
1022 .IPs "\-skin fittyfene"
1023 Tries /usr/\:local/\:share/\:mplayer/\:skins/\:fittyfene
1024 and afterwards ~/.mplayer/\:skins/\:fittyfene.
1029 .B \-slave (also see \-input)
1030 Switches on slave mode, in which MPlayer works as a backend for other programs.
1031 Instead of intercepting keyboard events, MPlayer will read commands separated
1032 by a newline (\\n) from stdin.
1035 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1036 for their description.
1040 Time frames by repeatedly checking the current time instead of asking the
1041 kernel to wake up MPlayer at the correct time.
1042 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1043 Comes at the price of higher CPU consumption.
1047 Skip <sec> seconds after every frame.
1048 The normal framerate of the movie is kept, so playback is accelerated.
1049 Since MPlayer can only seek to the next keyframe this may be inexact.
1053 .SH "DEMUXER/STREAM OPTIONS"
1057 Select the Dynamic Range Compression level for AC-3 audio streams.
1058 <level> is a float value ranging from 0 to 1, where 0 means no compression
1059 and 1 (which is the default) means full compression (make loud passages more
1060 silent and vice versa).
1061 This option only shows an effect if the AC-3 stream contains the required range
1062 compression information.
1065 .B \-aid <ID> (also see \-alang)
1066 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1067 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1068 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1069 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1070 (if present) with the chosen audio stream.
1073 .B \-alang <language code[,language code,...]> (also see \-aid)
1074 Specify a priority list of audio languages to use.
1075 Different container formats employ different language codes.
1076 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1077 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1078 MPlayer prints the available languages when run in verbose (\-v) mode.
1083 .IPs "mplayer dvd://1 \-alang hu,en"
1084 Chooses the Hungarian language track on a DVD and falls back on English if
1085 Hungarian is not available.
1086 .IPs "mplayer \-alang jpn example.mkv"
1087 Plays a Matroska file in Japanese.
1092 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1093 Force audio demuxer type for \-audiofile.
1094 Use a '+' before the name to force it, this will skip some checks!
1095 Give the demuxer name as printed by \-audio\-demuxer help.
1096 For backward compatibility it also accepts the demuxer ID as defined in
1097 libmpdemux/\:demuxer.h.
1098 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1101 .B \-audiofile <filename>
1102 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1106 .B \-audiofile\-cache <kBytes>
1107 Enables caching for the stream used by \-audiofile, using the specified
1111 .B \-reuse\-socket (udp:// only)
1112 Allows a socket to be reused by other processes as soon as it is closed.
1115 .B \-bandwidth <value> (network only)
1116 Specify the maximum bandwidth for network streaming (for servers that are
1117 able to send content in different bitrates).
1118 Useful if you want to watch live streamed media behind a slow connection.
1119 With Real RTSP streaming, it is also used to set the maximum delivery
1120 bandwidth allowing faster cache filling and stream dumping.
1124 This option specifies how much memory (in kBytes) to use when precaching a
1126 Especially useful on slow media.
1133 .B \-cache\-min <percentage>
1134 Playback will start when the cache has been filled up to <percentage>
1138 .B \-cache\-seek\-min <percentage>
1139 If a seek is to be made to a position within <percentage> of the cache size
1140 from the current position, MPlayer will wait for the cache to be filled to
1141 this position rather than performing a stream seek (default: 50).
1144 .B \-cdda <option1:option2> (CDDA only)
1145 This option can be used to tune the CD Audio reading feature of MPlayer.
1147 Available options are:
1151 .IPs paranoia=<0\-2>
1153 Values other than 0 seem to break playback of anything but the first track.
1155 0: disable checking (default)
1157 1: overlap checking only
1159 2: full data correction and verification
1161 .IPs generic-dev=<value>
1162 Use specified generic SCSI device.
1163 .IPs sector-size=<value>
1164 Set atomic read size.
1165 .IPs overlap=<value>
1166 Force minimum overlap search during verification to <value> sectors.
1168 Assume that the beginning offset of track 1 as reported in the TOC will be
1170 Some Toshiba drives need this for getting track boundaries correct.
1171 .IPs toc-offset=<value>
1172 Add <value> sectors to the values reported when addressing tracks.
1175 (Never) accept imperfect data reconstruction.
1179 .B \-cdrom\-device <path to device>
1180 Specify the CD-ROM device (default: /dev/\:cdrom).
1183 .B \-channels <number> (also see \-af channels)
1184 Request the number of playback channels (default: 2).
1185 MPlayer asks the decoder to decode the audio into as many channels as
1187 Then it is up to the decoder to fulfill the requirement.
1188 This is usually only important when playing videos with AC-3 audio (like DVDs).
1189 In that case liba52 does the decoding by default and correctly downmixes the
1190 audio into the requested number of channels.
1191 To directly control the number of output channels independently of how many
1192 channels are decoded, use the channels filter.
1195 This option is honored by codecs (AC-3 only), filters (surround) and audio
1196 output drivers (OSS at least).
1198 Available options are:
1212 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1213 Specify which chapter to start playing at.
1214 Optionally specify which chapter to end playing at (default: 1).
1217 .B \-cookies (network only)
1218 Send cookies when making HTTP requests.
1221 .B \-cookies\-file <filename> (network only)
1222 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1223 and skip reading from default locations.
1224 The file is assumed to be in Netscape format.
1228 audio delay in seconds (positive or negative float value)
1230 Negative values delay the audio, and positive values delay the video.
1231 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1234 When used with MEncoder, this is not guaranteed to work correctly
1235 with \-ovc copy; use \-audio\-delay instead.
1239 Ignore the specified starting time for streams in AVI files.
1240 In MPlayer, this nullifies stream delays in files encoded with
1241 the \-audio\-delay option.
1242 During encoding, this option prevents MEncoder from transferring
1243 original stream start times to the new file; the \-audio\-delay option is
1245 Note that MEncoder sometimes adjusts stream starting times
1246 automatically to compensate for anticipated decoding delays, so do not
1247 use this option for encoding without testing it first.
1250 .B \-demuxer <[+]name>
1252 Use a '+' before the name to force it, this will skip some checks!
1253 Give the demuxer name as printed by \-demuxer help.
1254 For backward compatibility it also accepts the demuxer ID as defined in
1255 libmpdemux/\:demuxer.h.
1258 .B \-dumpaudio (MPlayer only)
1259 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1260 in most other cases the resulting file will not be playable).
1261 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1262 on the command line only the last one will work.
1265 .B \-dumpfile <filename> (MPlayer only)
1266 Specify which file MPlayer should dump to.
1267 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream.
1270 .B \-dumpstream (MPlayer only)
1271 Dumps the raw stream to ./stream.dump.
1272 Useful when ripping from DVD or network.
1273 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1274 on the command line only the last one will work.
1277 .B \-dumpvideo (MPlayer only)
1278 Dump raw compressed video stream to ./stream.dump (not very usable).
1279 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1280 on the command line only the last one will work.
1283 .B \-dvbin <options> (DVB only)
1284 Pass the following parameters to the DVB input module, in order to override
1290 Specifies using card number 1\-4 (default: 1).
1291 .IPs file=<filename>
1292 Instructs MPlayer to read the channels list from <filename>.
1293 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1294 or ~/.mplayer/\:channels.conf as a last resort.
1295 .IPs timeout=<1\-30>
1296 Maximum number of seconds to wait when trying to tune a
1297 frequency before giving up (default: 30).
1302 .B \-dvd\-device <path to device> (DVD only)
1303 Specify the DVD device (default: /dev/\:dvd).
1304 You can also specify a directory that contains files previously copied directly
1305 from a DVD (with e.g.\& vobcopy).
1306 Note that using \-dumpstream is usually a better way to
1307 copy DVD titles in the first place (see the examples).
1310 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1311 Try to limit DVD speed (default: 0, no change).
1312 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1314 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1315 quiet and fast enough.
1316 MPlayer resets the speed to the drive default value on close.
1317 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1321 You need write access to the DVD device to change the speed.
1324 .B \-dvdangle <angle ID> (DVD only)
1325 Some DVD discs contain scenes that can be viewed from multiple angles.
1326 Here you can tell MPlayer which angles to use (default: 1).
1330 Enables edit decision list (EDL) actions during playback.
1331 Video will be skipped over and audio will be muted and unmuted according to
1332 the entries in the given file.
1333 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1337 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1338 Stop at given time or byte position.
1341 Byte position is enabled only for MEncoder and will not be accurate, as it can
1342 only stop at a frame boundary.
1343 When used in conjunction with \-ss option, \-endpos time will shift forward by
1344 seconds specified with \-ss.
1351 .IPs "\-endpos 01:10:00"
1352 Stop at 1 hour 10 minutes.
1353 .IPs "\-ss 10 \-endpos 56"
1354 Stop at 1 minute 6 seconds.
1355 .IPs "\-endpos 100mb"
1362 Force index rebuilding.
1363 Useful for files with broken index (A/V desync, etc).
1364 This will enable seeking in files where seeking was not possible.
1365 You can fix the index permanently with MEncoder (see the documentation).
1368 This option only works if the underlying media supports seeking
1369 (i.e.\& not with stdin, pipe, etc).
1372 .B \-fps <float value>
1373 Override video framerate.
1374 Useful if the original value is wrong or missing.
1377 .B \-frames <number>
1378 Play/\:convert only first <number> frames, then quit.
1381 .B \-hr\-mp3\-seek (MP3 only)
1383 Enabled when playing from an external MP3 file, as we need to seek
1384 to the very exact position to keep A/V sync.
1385 Can be slow especially when seeking backwards since it has to rewind
1386 to the beginning to find an exact frame position.
1389 .B \-idx (also see \-forceidx)
1390 Rebuilds index of files if no index was found, allowing seeking.
1391 Useful with broken/\:incomplete downloads, or badly created files.
1394 This option only works if the underlying media supports seeking
1395 (i.e.\& not with stdin, pipe, etc).
1399 Skip rebuilding index file.
1400 MEncoder skips writing the index with this option.
1403 .B \-ipv4\-only\-proxy (network only)
1404 Skip the proxy for IPv6 addresses.
1405 It will still be used for IPv4 connections.
1408 .B \-loadidx <index file>
1409 The file from which to read the video index data saved by \-saveidx.
1410 This index will be used for seeking, overriding any index data
1411 contained in the AVI itself.
1412 MPlayer will not prevent you from loading an index file generated
1413 from a different AVI, but this is sure to cause unfavorable results.
1416 This option is obsolete now that MPlayer has OpenDML support.
1419 .B \-mc <seconds/frame>
1420 maximum A-V sync correction per frame (in seconds)
1423 .B \-mf <option1:option2:...>
1424 Used when decoding from multiple PNG or JPEG files.
1426 Available options are:
1431 input file width (default: autodetect)
1433 input file height (default: autodetect)
1435 output fps (default: 25)
1437 input file type (available: jpeg, png, tga, sgi)
1443 Force usage of non-interleaved AVI parser (fixes playback
1444 of some bad AVI files).
1447 .B \-nobps (AVI only)
1448 Do not use average byte/\:second value for A-V sync.
1449 Helps with some AVI files with broken header.
1453 Disables extension-based demuxer selection.
1454 By default, when the file type (demuxer) cannot be detected reliably
1455 (the file has no header or it is not reliable enough), the filename
1456 extension is used to select the demuxer.
1457 Always falls back on content-based demuxer selection.
1460 .B \-passwd <password> (also see \-user) (network only)
1461 Specify password for HTTP authentication.
1464 .B \-prefer\-ipv4 (network only)
1465 Use IPv4 on network connections.
1466 Falls back on IPv6 automatically.
1469 .B \-prefer\-ipv6 (IPv6 network only)
1470 Use IPv6 on network connections.
1471 Falls back on IPv4 automatically.
1474 .B \-psprobe <byte position>
1475 When playing an MPEG-PS stream, this option lets you specify how many
1476 bytes in the stream you want MPlayer to scan in order to identify the
1478 This option is needed to play EVO files containing H.264 streams.
1481 .B \-pvr <option1:option2:...> (PVR only)
1482 This option tunes various encoding properties of the PVR capture module.
1483 It has to be used with any hardware MPEG encoder based card supported by the
1485 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1486 cards are known as PVR capture cards.
1487 Be aware that only Linux 2.6.18 kernel
1488 and above is able to handle MPEG stream through V4L2 layer.
1489 For hardware capture of an MPEG stream and watching it with
1490 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1492 Available options are:
1495 Specify input aspect ratio:
1505 .IPs arate=<32000\-48000>
1506 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1509 Specify MPEG audio layer encoding (default: 2).
1510 .IPs abitrate=<32\-448>
1511 Specify audio encoding bitrate in kbps (default: 384).
1513 Specify audio encoding mode.
1514 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1515 .IPs vbitrate=<value>
1516 Specify average video bitrate encoding in Mbps (default: 6).
1518 Specify video encoding mode:
1520 vbr: Variable BitRate (default)
1522 cbr: Constant BitRate
1525 Specify peak video bitrate encoding in Mbps
1526 (only useful for VBR encoding, default: 9.6).
1528 Choose an MPEG format for encoding:
1530 ps: MPEG-2 Program Stream (default)
1532 ts: MPEG-2 Transport Stream
1534 mpeg1: MPEG-1 System Stream
1536 vcd: Video CD compatible stream
1538 svcd: Super Video CD compatible stream
1540 dvd: DVD compatible stream
1546 .B \-radio <option1:option2:...> (radio only)
1547 These options set various parameters of the radio capture module.
1548 For listening to radio with MPlayer use 'radio://<frequency>'
1549 (if channels option is not given) or 'radio://<channel_number>'
1550 (if channels option is given) as a movie URL.
1551 You can see allowed frequency range by running MPlayer with '\-v'.
1552 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1553 If the capture keyword is not given you can listen to radio
1554 using the line-in cable only.
1555 Using capture to listen is not recommended due to synchronization
1556 problems, which makes this process uncomfortable.
1558 Available options are:
1561 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1563 Radio driver to use (default: v4l2 if available, otherwise v4l).
1564 Currently, v4l and v4l2 drivers are supported.
1565 .IPs volume=<0..100>
1566 sound volume for radio device (default 100)
1567 .IPs "freq_min=<value> (*BSD BT848 only)"
1568 minimum allowed frequency (default: 87.50)
1569 .IPs "freq_max=<value> (*BSD BT848 only)"
1570 maximum allowed frequency (default: 108.00)
1571 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1573 Use _ for spaces in names (or play with quoting ;-).
1574 The channel names will then be written using OSD and the slave commands
1575 radio_step_channel and radio_set_channel will be usable for
1576 a remote control (see LIRC).
1577 If given, number in movie URL will be treated as channel position in
1581 radio://1, radio://104.4, radio_set_channel 1
1582 .IPs "adevice=<value> (radio capture only)"
1583 Name of device to capture sound from.
1584 Without such a name capture will be disabled,
1585 even if the capture keyword appears in the URL.
1586 For ALSA devices use it in the form hw=<card>.<device>.
1587 If the device name contains a '=', the module will use
1588 ALSA to capture, otherwise OSS.
1589 .IPs "arate=<value> (radio capture only)"
1590 Rate in samples per second (default: 44100).
1593 When using audio capture set also \-rawaudio rate=<value> option
1594 with the same value as arate.
1595 If you have problems with sound speed (runs too quickly), try to play
1596 with different rate values (e.g.\& 48000,44100,32000,...).
1597 .IPs "achannels=<value> (radio capture only)"
1598 Number of audio channels to capture.
1602 .B \-rawaudio <option1:option2:...>
1603 This option lets you play raw audio files.
1604 You have to use \-demuxer rawaudio as well.
1605 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1606 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1608 Available options are:
1612 .IPs channels=<value>
1615 rate in samples per second
1616 .IPs samplesize=<value>
1617 sample size in bytes
1618 .IPs bitrate=<value>
1619 bitrate for rawaudio files
1626 .B \-rawvideo <option1:option2:...>
1627 This option lets you play raw video files.
1628 You have to use \-demuxer rawvideo as well.
1630 Available options are:
1635 rate in frames per second (default: 25.0)
1636 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1637 set standard image size
1639 image width in pixels
1641 image height in pixels
1642 .IPs i420|yv12|yuy2|y8
1645 colorspace (fourcc) in hex or string constant.
1646 Use \-rawvideo format=help for a list of possible strings.
1656 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1657 Play the famous "foreman" sample video.
1658 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1659 Play a raw YUV sample.
1665 Used with 'rtsp://' URLs to force the client's port number.
1666 This option may be useful if you are behind a router and want to forward
1667 the RTSP stream from the server to a specific client.
1670 .B \-rtsp\-destination
1671 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1672 This option may be useful with some RTSP server which do not
1673 send RTP packets to the right interface.
1674 If the connection to the RTSP server fails, use \-v to see
1675 which IP address MPlayer tries to bind to and try to force
1676 it to one assigned to your computer instead.
1679 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1680 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1681 packets be streamed over TCP (using the same TCP connection as RTSP).
1682 This option may be useful if you have a broken internet connection that does
1683 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1686 .B \-saveidx <filename>
1687 Force index rebuilding and dump the index to <filename>.
1688 Currently this only works with AVI files.
1691 This option is obsolete now that MPlayer has OpenDML support.
1694 .B \-sb <byte position> (also see \-ss)
1695 Seek to byte position.
1696 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1699 .B \-speed <0.01\-100>
1700 Slow down or speed up playback by the factor given as parameter.
1701 Not guaranteed to work correctly with \-oac copy.
1705 Selects the output sample rate to be used
1706 (of course sound cards have limits on this).
1707 If the sample frequency selected is different from that
1708 of the current media, the resample or lavcresample audio filter will be inserted
1709 into the audio filter layer to compensate for the difference.
1710 The type of resampling can be controlled by the \-af\-adv option.
1711 The default is fast resampling that may cause distortion.
1714 .B \-ss <time> (also see \-sb)
1715 Seek to given time position.
1721 Seeks to 56 seconds.
1722 .IPs "\-ss 01:10:00"
1723 Seeks to 1 hour 10 min.
1729 Tells MPlayer not to discard TS packets reported as broken in the stream.
1730 Sometimes needed to play corrupted MPEG-TS files.
1733 .B \-tsprobe <byte position>
1734 When playing an MPEG-TS stream, this option lets you specify how many
1735 bytes in the stream you want MPlayer to search for the desired
1736 audio and video IDs.
1739 .B \-tsprog <1\-65534>
1740 When playing an MPEG-TS stream, you can specify with this option which
1741 program (if present) you want to play.
1742 Can be used with \-vid and \-aid.
1745 .B \-tv <option1:option2:...> (TV/\:PVR only)
1746 This option tunes various properties of the TV capture module.
1747 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1748 or even 'tv://<channel_name> (see option channels for channel_name below)
1750 You can also use 'tv:///<input_id>' to start watching a
1751 movie from a composite or S-Video input (see option input for details).
1753 Available options are:
1757 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1758 If signal strength reported by device is less than this value,
1759 audio and video will be muted.
1760 In most cases automute=100 will be enough.
1761 Default is 0 (automute disabled).
1763 See \-tv driver=help for a list of compiled-in TV input drivers.
1764 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1766 Specify TV device (default: /dev/\:video0).
1768 For the bsdbt848 driver you can provide both bktr and tuner device
1769 names separating them with a comma, tuner after
1770 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1772 Specify input (default: 0 (TV), see console output for available inputs).
1774 Specify the frequency to set the tuner to (e.g.\& 511.250).
1775 Not compatible with the channels parameter.
1777 Specify the output format of the tuner with a preset value supported by the
1778 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1779 arbitrary format given as hex value.
1780 Try outfmt=help for a list of all available formats.
1784 output window height
1786 framerate at which to capture video (frames per second)
1787 .IPs buffersize=<value>
1788 maximum size of the capture buffer in megabytes (default: dynamical)
1790 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1791 For v4l2, see the console output for a list of all available norms,
1792 also see the normid option below.
1793 .IPs "normid=<value> (v4l2 only)"
1794 Sets the TV norm to the given numeric ID.
1795 The TV norm depends on the capture card.
1796 See the console output for a list of available TV norms.
1797 .IPs channel=<value>
1798 Set tuner to <value> channel.
1799 .IPs chanlist=<value>
1800 available: europe-east, europe-west, us-bcast, us-cable, etc
1801 .IPs channels=<channel>\-<name>,<channel>\-<name>,...
1802 Set names for channels.
1804 If <channel> is an integer greater than 1000, it will be treated as frequency (in kHz)
1805 rather than channel name from frequency table.
1807 Use _ for spaces in names (or play with quoting ;-).
1808 The channel names will then be written using OSD, and the slave commands
1809 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1810 a remote control (see LIRC).
1811 Not compatible with the frequency parameter.
1814 The channel number will then be the position in the 'channels' list,
1818 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1819 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1820 Set the image equalizer on the card.
1821 .IPs audiorate=<value>
1822 Set audio capture bitrate.
1824 Capture audio even if there are no audio sources reported by v4l.
1828 Choose an audio mode:
1838 .IPs forcechan=<1\-2>
1839 By default, the count of recorded audio channels is determined automatically
1840 by querying the audio mode from the TV card.
1841 This option allows forcing stereo/\:mono recording regardless of the amode
1842 option and the values returned by v4l.
1843 This can be used for troubleshooting when the TV card is unable to report the
1845 .IPs adevice=<value>
1846 Set an audio device.
1847 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1848 You must replace any ':' by a '.' in the hardware ID for ALSA.
1849 .IPs audioid=<value>
1850 Choose an audio output of the capture card, if it has more than one.
1851 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1852 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1853 These options set parameters of the mixer on the video capture card.
1854 They will have no effect, if your card does not have one.
1855 For v4l2 50 maps to the default value of the
1856 control, as reported by the driver.
1857 .IPs "gain=<0\-100> (v4l2)"
1858 Set gain control for video devices (usually webcams) to the desired
1859 value and switch off automatic control.
1860 A value of 0 enables automatic control.
1861 If this option is omitted, gain control will not be modified.
1862 .IPs immediatemode=<bool>
1863 A value of 0 means capture and buffer audio and video together
1864 (default for MEncoder).
1865 A value of 1 (default for MPlayer) means to do video capture only and let the
1866 audio go through a loopback cable from the TV card to the sound card.
1868 Use hardware MJPEG compression (if the card supports it).
1869 When using this option, you do not need to specify the width and height
1870 of the output window, because MPlayer will determine it automatically
1871 from the decimation value (see below).
1872 .IPs decimation=<1|2|4>
1873 choose the size of the picture that will be compressed by hardware
1888 .IPs quality=<0\-100>
1889 Choose the quality of the JPEG compression
1890 (< 60 recommended for full size).
1891 .IPs tdevice=<value>
1892 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
1893 .IPs tformat=<format>
1894 Specify TV teletext display format (default: 0):
1900 2: opaque with inverted colors
1902 3: transparent with inverted colors
1904 .IPs tpage=<100\-899>
1905 Specify initial TV teletext page number (default: 100).
1906 .IPs tlang=<\-1\-127>
1907 Specify default teletext language code (default: 0), which will be used
1908 as primary language until a type 28 packet is received.
1909 Useful when the teletext system uses a non-latin character set, but language
1910 codes are not transmitted via teletext type 28 packets for some reason.
1911 To see a list of supported language codes set this option to \-1.
1912 .IPs "hidden_video_renderer (dshow only)"
1913 Terminate stream with video renderer instead of Null renderer (default: off).
1914 Will help if video freezes but audio does not.
1916 May not work with \-vo directx and \-vf crop combination.
1917 .IPs "hidden_vp_renderer (dshow only)"
1918 Terminate VideoPort pin stream with video renderer
1919 instead of removing it from the graph (default: off).
1920 Useful if your card has a VideoPort pin and video is choppy.
1922 May not work with \-vo directx and \-vf crop combination.
1923 .IPs "system_clock (dshow only)"
1924 Use the system clock as sync source instead of the default graph clock
1925 (usually the clock from one of the live sources in graph).
1926 .IPs "normalize_audio_chunks (dshow only)"
1927 Create audio chunks with a time length equal to
1928 video frame time length (default: off).
1929 Some audio cards create audio chunks about 0.5s in size, resulting in
1930 choppy video when using immediatemode=0.
1934 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
1935 Tune the TV channel scanner.
1936 MPlayer will also print value for "-tv channels=" option,
1937 including existing and just found channels.
1939 Available suboptions are:
1942 Begin channel scanning immediately after startup (default: disabled).
1943 .IPs period=<0.1\-2.0>
1944 Specify delay in seconds before switching to next channel (default: 0.5).
1945 Lower values will cause faster scanning, but can detect
1946 inactive TV channels as active.
1947 .IPs threshold=<1\-100>
1948 Threshold value for the signal strength (in percent), as reported
1949 by the device (default: 50).
1950 A signal strength higher than this value will indicate that the
1951 currently scanning channel is active.
1955 .B \-user <username> (also see \-passwd) (network only)
1956 Specify username for HTTP authentication.
1959 .B \-user\-agent <string>
1960 Use <string> as user agent for HTTP streaming.
1964 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
1965 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1966 (if present) with the chosen video stream.
1969 .B \-vivo <suboption> (DEBUG CODE)
1970 Force audio parameters for the VIVO demuxer (for debugging purposes).
1971 FIXME: Document this.
1975 .SH "OSD/SUBTITLE OPTIONS"
1977 Also see \-vf expand.
1980 .B \-ass (FreeType only)
1981 Turn on SSA/ASS subtitle rendering.
1982 With this option, libass will be used for SSA/ASS
1983 external subtitles and Matroska tracks.
1984 You may also want to use \-embeddedfonts.
1987 .B \-ass\-border\-color <value>
1988 Sets the border (outline) color for text subtitles.
1989 The color format is RRGGBBAA.
1992 .B \-ass\-bottom\-margin <value>
1993 Adds a black band at the bottom of the frame.
1994 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
1997 .B \-ass\-color <value>
1998 Sets the color for text subtitles.
1999 The color format is RRGGBBAA.
2002 .B \-ass\-font\-scale <value>
2003 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2006 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2007 Override some style parameters.
2012 \-ass\-force\-style FontName=Arial,Default.Bold=1
2017 .B \-ass\-hinting <type>
2025 FreeType autohinter, light mode
2027 FreeType autohinter, normal mode
2031 The same, but hinting will only be performed if the OSD is rendered at
2032 screen resolution and will therefore not be scaled.
2035 The default value is 7 (use native hinter for unscaled OSD and no hinting otherwise).
2040 .B \-ass\-line\-spacing <value>
2041 Set line spacing value for SSA/ASS renderer.
2044 .B \-ass\-styles <filename>
2045 Load all SSA/ASS styles found in the specified file and use them for
2046 rendering text subtitles.
2047 The syntax of the file is exactly like the
2048 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2051 .B \-ass\-top\-margin <value>
2052 Adds a black band at the top of the frame.
2053 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2056 .B \-ass\-use\-margins
2057 Enables placing toptitles and subtitles in black borders when they
2061 .B \-dumpjacosub (MPlayer only)
2062 Convert the given subtitle (specified with the \-sub option) to the time-based
2063 JACOsub subtitle format.
2064 Creates a dumpsub.js file in the current directory.
2067 .B \-dumpmicrodvdsub (MPlayer only)
2068 Convert the given subtitle (specified with the \-sub option) to the
2069 MicroDVD subtitle format.
2070 Creates a dumpsub.sub file in the current directory.
2073 .B \-dumpmpsub (MPlayer only)
2074 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2075 subtitle format, MPsub.
2076 Creates a dump.mpsub file in the current directory.
2079 .B \-dumpsami (MPlayer only)
2080 Convert the given subtitle (specified with the \-sub option) to the time-based
2081 SAMI subtitle format.
2082 Creates a dumpsub.smi file in the current directory.
2085 .B \-dumpsrtsub (MPlayer only)
2086 Convert the given subtitle (specified with the \-sub option) to the time-based
2087 SubViewer (SRT) subtitle format.
2088 Creates a dumpsub.srt file in the current directory.
2091 Some broken hardware players choke on SRT subtitle files with Unix
2093 If you are unlucky enough to have such a box, pass your subtitle
2094 files through unix2dos or a similar program to replace Unix line
2095 endings with DOS/Windows line endings.
2098 .B \-dumpsub (MPlayer only) (BETA CODE)
2099 Dumps the subtitle substream from VOB streams.
2100 Also see the \-dump*sub and \-vobsubout* options.
2103 .B \-embeddedfonts (FreeType only)
2104 Enables extraction of Matroska embedded fonts (default: disabled).
2105 These fonts can be used for SSA/ASS subtitle
2106 rendering (\-ass option).
2107 Font files are created in the ~/.mplayer/\:fonts directory.
2110 With FontConfig 2.4.2 or newer, embedded fonts are opened directly from memory,
2111 and this option is enabled by default.
2114 .B \-ffactor <number>
2115 Resample the font alphamap.
2122 very narrow black outline (default)
2124 narrow black outline
2131 .B \-flip\-hebrew (FriBiDi only)
2132 Turns on flipping subtitles using FriBiDi.
2135 .B \-noflip\-hebrew\-commas
2136 Change FriBiDi's assumptions about the placements of commas in subtitles.
2137 Use this if commas in subtitles are shown at the start of a sentence
2138 instead of at the end.
2141 .B \-font <path to font.desc file>
2142 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2143 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2144 ~/.mplayer/\:subfont.ttf).
2147 With FreeType, this option determines the path to the text font file.
2148 With fontconfig, this option determines the fontconfig font name.
2153 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2155 \-font ~/\:.mplayer/\:arialuni.ttf
2157 \-font 'Bitstream Vera Sans'
2162 .B \-fontconfig (fontconfig only)
2163 Enables the usage of fontconfig managed fonts.
2167 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2171 .B \-fribidi\-charset <charset name> (FriBiDi only)
2172 Specifies the character set that will be passed to FriBiDi when
2173 decoding non-UTF-8 subtitles (default: ISO8859-8).
2176 .B \-ifo <VOBsub IFO file>
2177 Indicate the file that will be used to load palette and frame size for VOBsub
2182 Turns off automatic subtitle file loading.
2185 .B \-osd\-duration <time>
2186 Set the duration of the OSD messages in ms (default: 1000).
2189 .B \-osdlevel <0\-3> (MPlayer only)
2190 Specifies which mode the OSD should start in.
2196 volume + seek (default)
2198 volume + seek + timer + percentage
2200 volume + seek + timer + percentage + total time
2206 Allows the next subtitle to be displayed while the current one is
2207 still visible (default is to enable the support only for specific
2211 .B \-sid <ID> (also see \-slang, \-vobsubid)
2212 Display the subtitle stream specified by <ID> (0\-31).
2213 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2214 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2217 .B \-slang <language code[,language code,...]> (also see \-sid)
2218 Specify a priority list of subtitle languages to use.
2219 Different container formats employ different language codes.
2220 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2221 three letter language codes while OGM uses a free-form identifier.
2222 MPlayer prints the available languages when run in verbose (\-v) mode.
2227 .IPs "mplayer dvd://1 \-slang hu,en"
2228 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2229 Hungarian is not available.
2230 .IPs "mplayer \-slang jpn example.mkv"
2231 Plays a Matroska file with Japanese subtitles.
2237 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2238 A value of 16 may be added to <mode> in order to force scaling even
2239 when original and scaled frame size already match.
2240 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2241 Available modes are:
2245 none (fastest, very ugly)
2247 approximate (broken?)
2251 bilinear (default, fast and not too bad)
2253 uses swscaler gaussian blur (looks very good)
2258 .B \-spualign <\-1\-2>
2259 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2265 Align at top (original behavior, default).
2274 .B \-spugauss <0.0\-3.0>
2275 Variance parameter of gaussian used by \-spuaa 4.
2276 Higher means more blur (default: 1.0).
2279 .B \-sub <subtitlefile1,subtitlefile2,...>
2280 Use/\:display these subtitle files.
2281 Only one file can be displayed at the same time.
2284 .B \-sub\-bg\-alpha <0\-255>
2285 Specify the alpha channel value for subtitles and OSD backgrounds.
2286 Big values mean more transparency.
2287 0 means completely transparent.
2290 .B \-sub\-bg\-color <0\-255>
2291 Specify the color value for subtitles and OSD backgrounds.
2292 Currently subtitles are grayscale so this value is equivalent to the
2293 intensity of the color.
2294 255 means white and 0 black.
2297 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2298 Force subtitle demuxer type for \-subfile.
2299 Use a '+' before the name to force it, this will skip some checks!
2300 Give the demuxer name as printed by \-sub\-demuxer help.
2301 For backward compatibility it also accepts the demuxer ID as defined in
2305 .B \-sub\-fuzziness <mode>
2306 Adjust matching fuzziness when searching for subtitles:
2312 Load all subs containing movie name.
2314 Load all subs in the current directory.
2319 .B \-sub\-no\-text\-pp
2320 Disables any kind of text post processing done after loading the subtitles.
2321 Used for debug purposes.
2324 .B \-subalign <0\-2>
2325 Specify which edge of the subtitles should be aligned at the height
2330 Align subtitle top edge (original behavior).
2332 Align subtitle center.
2334 Align subtitle bottom edge (default).
2340 Display DVD Closed Caption (CC) subtitles.
2343 the VOB subtitles, these are special ASCII subtitles for the
2344 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2345 CC subtitles have not been spotted on DVDs from other regions so far.
2348 .B \-subcp <codepage> (iconv only)
2349 If your system supports iconv(3), you can use this option to
2350 specify the subtitle codepage.
2362 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2363 You can specify your language using a two letter language code to
2364 make ENCA detect the codepage automatically.
2365 If unsure, enter anything and watch mplayer \-v output for available
2367 Fallback codepage specifies the codepage to use, when autodetection fails.
2372 .IPs "\-subcp enca:cs:latin2"
2373 Guess the encoding, assuming the subtitles are Czech, fall back on
2374 latin 2, if the detection fails.
2375 .IPs "\-subcp enca:pl:cp1250"
2376 Guess the encoding for Polish, fall back on cp1250.
2382 Delays subtitles by <sec> seconds.
2386 .B \-subfile <filename> (BETA CODE)
2388 Same as \-audiofile, but for subtitle streams (OggDS?).
2391 .B \-subfont <filename> (FreeType only)
2392 Sets the subtitle font.
2393 If no \-subfont is given, \-font is used.
2396 .B \-subfont\-autoscale <0\-3> (FreeType only)
2397 Sets the autoscale mode.
2400 0 means that text scale and OSD scale are font heights in points.
2409 proportional to movie height
2411 proportional to movie width
2413 proportional to movie diagonal (default)
2418 .B \-subfont\-blur <0\-8> (FreeType only)
2419 Sets the font blur radius (default: 2).
2422 .B \-subfont\-encoding <value> (FreeType only)
2423 Sets the font encoding.
2424 When set to 'unicode', all the glyphs from the font file will be rendered and
2425 unicode will be used (default: unicode).
2428 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2429 Sets the autoscale coefficient of the OSD elements (default: 6).
2432 .B \-subfont\-outline <0\-8> (FreeType only)
2433 Sets the font outline thickness (default: 2).
2436 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2437 Sets the subtitle text autoscale coefficient as percentage of the
2438 screen size (default: 5).
2442 Specify the framerate of the subtitle file (default: movie fps).
2445 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2446 slows them down for time-based ones.
2449 .B \-subpos <0\-100> (useful with \-vf expand)
2450 Specify the position of subtitles on the screen.
2451 The value is the vertical position of the subtitle in % of the screen height.
2454 .B \-subwidth <10\-100>
2455 Specify the maximum width of subtitles on the screen.
2457 The value is the width of the subtitle in % of the screen width.
2461 Disable the display of OSD messages on the console when no video output is
2465 .B \-term\-osd\-esc <escape sequence>
2466 Specify the escape sequence to use before writing an OSD message on the
2468 The escape sequence should move the pointer to the beginning of the line
2469 used for the OSD and clear it (default: ^[[A\\r^[[K).
2473 Tells MPlayer to handle the subtitle file as unicode.
2477 Tells MPlayer to handle the subtitle file as UTF-8.
2480 .B \-vobsub <VOBsub file without extension>
2481 Specify a VOBsub file to use for subtitles.
2482 Has to be the full pathname without extension, i.e.\& without
2483 the '.idx', '.ifo' or '.sub'.
2486 .B \-vobsubid <0\-31>
2487 Specify the VOBsub subtitle ID.
2491 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2494 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2495 Override audio driver/\:card buffer size detection.
2498 .B \-format <format> (also see the format audio filter)
2499 Select the sample format used for output from the audio filter
2500 layer to the sound card.
2501 The values that <format> can adopt are listed below in the
2502 description of the format audio filter.
2506 Use a mixer device different from the default /dev/\:mixer.
2507 For ALSA this is the mixer name.
2510 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2511 This option will tell MPlayer to use a different channel for controlling
2512 volume than the default PCM.
2513 Options for OSS include
2515 For a complete list of options look for SOUND_DEVICE_NAMES in
2516 /usr/\:include/\:linux/\:soundcard.h.
2517 For ALSA you can use the names e.g.\& alsamixer displays, like
2518 .B Master, Line, PCM.
2521 ALSA mixer channel names followed by a number must be specified in the
2522 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2528 Force the use of the software mixer, instead of using the sound card
2532 .B \-softvol\-max <10.0\-10000.0>
2533 Set the maximum amplification level in percent (default: 110).
2534 A value of 200 will allow you to adjust the volume up to a maximum of
2535 double the current level.
2536 With values below 100 the initial volume (which is 100%) will be above
2537 the maximum, which e.g.\& the OSD cannot display correctly.
2540 .B \-volstep <0\-100>
2541 Set the step size of mixer volume changes in percent of the whole range
2546 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2547 Audio output drivers are interfaces to different audio output facilities.
2551 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2552 Specify a priority list of audio output drivers to be used.
2554 If the list has a trailing ',' MPlayer will fall back on drivers not
2555 contained in the list.
2556 Suboptions are optional and can mostly be omitted.
2559 See \-ao help for a list of compiled-in audio output drivers.
2564 .IPs "\-ao alsa,oss,"
2565 Try the ALSA driver, then the OSS driver, then others.
2566 .IPs "\-ao alsa:noblock:device=hw=0.3"
2567 Sets noblock-mode and the device-name as first card, fourth device.
2571 Available audio output drivers are:
2575 ALSA 0.9/1.x audio output driver
2580 .IPs device=<device>
2581 Sets the device name.
2582 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2583 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2584 you really know how to set it correctly.
2590 ALSA 0.5 audio output driver
2594 OSS audio output driver
2598 Sets the audio output device (default: /dev/\:dsp).
2600 Sets the audio mixer device (default: /dev/\:mixer).
2601 .IPs <mixer-channel>
2602 Sets the audio mixer channel (default: pcm).
2608 highly platform independent SDL (Simple Directmedia Layer) library
2613 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2619 audio output through the aRts daemon
2623 audio output through the ESD daemon
2627 Explicitly choose the ESD server to use (default: localhost).
2633 audio output through JACK (Jack Audio Connection Kit)
2637 Connects to the ports with the given name (default: physical ports).
2638 .IPs name=<client name>
2639 Client name that is passed to JACK (default: MPlayer [<PID>]).
2640 Useful if you want to have certain connections established automatically.
2642 Estimate the audio delay, supposed to make the video playback smoother
2649 audio output through NAS
2652 .B macosx (Mac OS X only)
2653 native Mac OS X audio output driver
2657 Experimental OpenAL audio output driver
2661 PulseAudio audio output driver
2664 .IPs "[<host>][:<output sink>]"
2665 Specify the host and optionally output sink to use.
2666 An empty <host> string uses a local connection, "localhost"
2667 uses network transfer (most likely not what you want).
2673 native SGI audio output driver
2676 .IPs "<output device name>"
2677 Explicitly choose the output device/\:interface to use
2678 (default: system-wide default).
2679 For example, 'Analog Out' or 'Digital Out'.
2685 native Sun audio output driver
2689 Explicitly choose the audio device to use (default: /dev/\:audio).
2694 .B win32 (Windows only)
2695 native Windows waveout audio output driver
2698 .B dsound (Windows only)
2699 DirectX DirectSound audio output driver
2702 .IPs device=<devicenum>
2703 Sets the device number to use.
2704 Playing a file with \-v will show a list of available devices.
2709 .B dxr2 (also see \-dxr2) (DXR2 only)
2710 Creative DXR2 specific output driver
2714 IVTV specific MPEG audio output driver.
2715 Works with \-ac hwmpa only.
2718 .B v4l2 (requires Linux 2.6.22+ kernel)
2719 Audio output driver for V4L2 cards with hardware MPEG decoder.
2722 .B mpegpes (DVB only)
2723 Audio output driver for DVB cards that writes the output to an MPEG-PES
2724 file if no DVB card is installed.
2728 DVB card to use if more than one card is present.
2729 .IPs file=<filename>
2736 Produces no audio output but maintains video playback speed.
2737 Use \-nosound for benchmarking.
2741 raw PCM/wave file writer audio output
2745 Include or do not include the wave header (default: included).
2746 When not included, raw PCM will be generated.
2747 .IPs file=<filename>
2748 Write the sound to <filename> instead of the default
2750 If nowaveheader is specified, the default is audiodump.pcm.
2752 Try to dump faster than realtime.
2753 Make sure the output does not get truncated (usually with
2754 "Too many video packets in buffer" message).
2755 It is normal that you get a "Your system is too SLOW to play this!" message.
2761 plugin audio output driver
2765 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
2768 .B \-adapter <value>
2769 Set the graphics card that will receive the image.
2770 You can get a list of available cards when you run this option with \-v.
2771 Currently only works with the directx video output driver.
2775 Override the autodetected color depth.
2776 Only supported by the fbdev, dga, svga, vesa video output drivers.
2780 Play movie with window border and decorations.
2781 Since this is on by default, use \-noborder to disable the standard window
2783 Supported by the directx video output driver.
2786 .B \-brightness <\-100\-100>
2787 Adjust the brightness of the video signal (default: 0).
2788 Not supported by all video output drivers.
2791 .B \-contrast <\-100\-100>
2792 Adjust the contrast of the video signal (default: 0).
2793 Not supported by all video output drivers.
2796 .B \-display <name> (X11 only)
2797 Specify the hostname and display number of the X server you want to display
2803 \-display xtest.localdomain:0
2809 Turns on direct rendering (not supported by all codecs and video outputs)
2812 May cause OSD/SUB corruption!
2815 .B \-dxr2 <option1:option2:...>
2816 This option is used to control the dxr2 video output driver.
2818 .IPs ar-mode=<value>
2819 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
2821 Set iec958 output mode to encoded.
2823 Set iec958 output mode to decoded (default).
2824 .IPs macrovision=<value>
2825 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
2826 3 = agc 4 colorstripe)
2832 path to the microcode
2840 enable 7.5 IRE output mode
2842 disable 7.5 IRE output mode (default)
2846 color TV output (default)
2848 interlaced TV output (default)
2850 disable interlaced TV output
2852 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
2854 set pixel mode to square
2856 set pixel mode to ccir601
2863 .IPs cr-left=<0\-500>
2864 Set the left cropping value (default: 50).
2865 .IPs cr-right=<0\-500>
2866 Set the right cropping value (default: 300).
2867 .IPs cr-top=<0\-500>
2868 Set the top cropping value (default: 0).
2869 .IPs cr-bottom=<0\-500>
2870 Set the bottom cropping value (default: 0).
2871 .IPs ck-[r|g|b]=<0\-255>
2872 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
2873 .IPs ck-[r|g|b]min=<0\-255>
2874 minimum value for the respective color key
2875 .IPs ck-[r|g|b]max=<0\-255>
2876 maximum value for the respective color key
2878 Ignore cached overlay settings.
2880 Update cached overlay settings.
2882 Enable overlay onscreen display.
2884 Disable overlay onscreen display (default).
2885 .IPs ol[h|w|x|y]-cor=<\-20\-20>
2886 Adjust the overlay size (h,w) and position (x,y) in case it does not
2887 match the window perfectly (default: 0).
2889 Activate overlay (default).
2892 .IPs overlay-ratio=<1\-2500>
2893 Tune the overlay (default: 1000).
2897 .B \-fbmode <modename> (\-vo fbdev only)
2898 Change video mode to the one that is labeled as <modename> in
2902 VESA framebuffer does not support mode changing.
2905 .B \-fbmodeconfig <filename> (\-vo fbdev only)
2906 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
2909 .B \-fs (also see \-zoom)
2910 Fullscreen playback (centers movie, and paints black bands around it).
2911 Not supported by all video output drivers.
2914 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
2915 Try this option if you still experience fullscreen problems.
2918 .B \-fstype <type1,type2,...> (X11 only)
2919 Specify a priority list of fullscreen modes to be used.
2920 You can negate the modes by prefixing them with '\-'.
2921 If you experience problems like the fullscreen window being covered
2922 by other windows try using a different order.
2925 See \-fstype help for a full list of available modes.
2927 The available types are:
2932 Use the _NETWM_STATE_ABOVE hint if available.
2934 Use the _NETWM_STATE_BELOW hint if available.
2936 Use the _NETWM_STATE_FULLSCREEN hint if available.
2938 Use the _WIN_LAYER hint with the default layer.
2940 Use the _WIN_LAYER hint with the given layer number.
2944 Do not set fullscreen window layer.
2946 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
2954 .IPs layer,stays_on_top,above,fullscreen
2955 Default order, will be used as a fallback if incorrect or
2956 unsupported modes are specified.
2958 Fixes fullscreen switching on OpenBox 1.x.
2963 .B \-geometry x[%][:y[%]] or [WxH][+x+y]
2964 Adjust where the output is on the screen initially.
2965 The x and y specifications are in pixels measured from the top-left of the
2966 screen to the top-left of the image being displayed, however if a percentage
2967 sign is given after the argument it turns the value into a percentage of the
2968 screen size in that direction.
2969 It also supports the standard X11 \-geometry option format.
2970 If an external window is specified using the \-wid option, then the x and
2971 y coordinates are relative to the top-left corner of the window rather
2975 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
2976 gl, gl2, directx and tdfxfb video output drivers.
2982 Places the window at x=50, y=40.
2984 Places the window in the middle of the screen.
2986 Places the window at the middle of the right edge of the screen.
2988 Places the window at the bottom right corner of the screen.
2993 .B \-guiwid <window ID> (also see \-wid) (GUI only)
2994 This tells the GUI to also use an X11 window and stick itself to the bottom
2995 of the video, which is useful to embed a mini-GUI in a browser (with the
2996 MPlayer plugin for instance).
2999 .B \-hue <\-100\-100>
3000 Adjust the hue of the video signal (default: 0).
3001 You can get a colored negative of the image with this option.
3002 Not supported by all video output drivers.
3005 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3006 Specify the dotclock or pixelclock range of the monitor.
3009 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3010 Specify the horizontal frequency range of the monitor.
3013 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3014 Specify the vertical frequency range of the monitor.
3017 .B \-monitoraspect <ratio> (also see \-aspect)
3018 Set the aspect ratio of your monitor or TV screen.
3019 A value of 0 disables a previous setting (e.g.\& in the config file).
3020 Overrides the \-monitorpixelaspect setting if enabled.
3025 \-monitoraspect 4:3 or 1.3333
3027 \-monitoraspect 16:9 or 1.7777
3032 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3033 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3034 A value of 1 means square pixels
3035 (correct for (almost?) all LCDs).
3039 Disables double buffering, mostly for debugging purposes.
3040 Double buffering fixes flicker by storing two frames in memory, and
3041 displaying one while decoding another.
3042 It can affect OSD negatively, but often removes OSD flickering.
3046 Do not grab the mouse pointer after a video mode change (\-vm).
3047 Useful for multihead setups.
3051 Do not keep window aspect ratio when resizing windows.
3052 Only works with the x11, xv, xmga, xvidix, directx video output drivers.
3053 Furthermore under X11 your window manager has to honor window aspect hints.
3057 Makes the player window stay on top of other windows.
3058 Supported by video output drivers which use X11, except SDL,
3059 as well as directx, macosx, quartz, ggi and gl2.
3062 .B \-panscan <0.0\-1.0>
3063 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3064 movie to make it fit a 4:3 display without black bands).
3065 The range controls how much of the image is cropped.
3066 Only works with the xv, xmga, mga, gl, gl2, quartz, macosx and xvidix
3067 video output drivers.
3070 Values between \-1 and 0 are allowed as well, but highly experimental
3071 and may crash or worse.
3072 Use at your own risk!
3075 .B \-panscanrange <\-19.0\-99.0> (experimental)
3076 Change the range of the pan-and-scan functionality (default: 1).
3077 Positive values mean multiples of the default range.
3078 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3079 E.g. \-panscanrange \-3 allows a zoom factor of up to 4.
3080 This feature is experimental.
3081 Do not report bugs unless you are using \-vo gl.
3084 .B \-refreshrate <Hz>
3085 Set the monitor refreshrate in Hz.
3086 Currently only supported by \-vo directx combined with the \-vm option.
3090 Play movie in the root window (desktop background).
3091 Desktop background images may cover the movie window, though.
3092 Only works with the x11, xv, xmga, xvidix, quartz, macosx and directx video output drivers.
3095 .B \-saturation <\-100\-100>
3096 Adjust the saturation of the video signal (default: 0).
3097 You can get grayscale output with this option.
3098 Not supported by all video output drivers.
3101 .B \-screenh <pixels>
3102 Specify the vertical screen resolution for video output drivers which
3103 do not know the screen resolution like fbdev, x11 and TVout.
3106 .B \-screenw <pixels>
3107 Specify the horizontal screen resolution for video output drivers which
3108 do not know the screen resolution like fbdev, x11 and TVout.
3111 .B \-stop\-xscreensaver (X11 only)
3112 Turns off xscreensaver at startup and turns it on again on exit.
3116 Try to change to a different video mode.
3117 Supported by the dga, x11, xv, sdl and directx video output drivers.
3118 If used with the directx video output driver the \-screenw,
3119 \-screenh, \-bpp and \-refreshrate options can be used to set
3120 the new display mode.
3124 Enables VBI for the vesa, dfbmga and svga video output drivers.
3127 .B \-wid <window ID> (also see \-guiwid) (X11, OpenGL and DirectX only)
3128 This tells MPlayer to attach to an existing window.
3129 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3132 .B \-xineramascreen <\-2\-...> (X11 only)
3133 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3134 displays) this option tells MPlayer which screen to display the movie on.
3135 A value of \-2 means fullscreen across the whole virtual display (in this case
3136 Xinerama information is completely ignored), \-1 means
3137 fullscreen on the display the window currently is on.
3138 The initial position set via the \-geometry option is relative to the
3140 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3143 .B \-zrbw (\-vo zr only)
3144 Display in black and white.
3145 For optimal performance, this can be combined with '\-lavdopts gray'.
3148 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3149 Select a part of the input image to display, multiple occurrences
3150 of this option switch on cinerama mode.
3151 In cinerama mode the movie is distributed over more than one TV
3152 (or beamer) to create a larger image.
3153 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3154 card should at least have a \-zrdev in addition to the \-zrcrop.
3155 For examples, see the output of \-zrhelp and the Zr section of the
3159 .B \-zrdev <device> (\-vo zr only)
3160 Specify the device special file that belongs to your MJPEG card, by default
3161 the zr video output driver takes the first v4l device it can find.
3164 .B \-zrfd (\-vo zr only)
3165 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3166 happens if the hardware scaler can stretch the image to its original size.
3167 Use this option to force decimation.
3170 .B \-zrhdec <1|2|4> (\-vo zr only)
3171 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3172 line/\:pixel of the input image to the MJPEG card and use the scaler
3173 of the MJPEG card to stretch the image to its original size.
3176 .B \-zrhelp (\-vo zr only)
3177 Display a list of all \-zr* options, their default values and a
3178 cinerama mode example.
3181 .B \-zrnorm <norm> (\-vo zr only)
3182 Specify the TV norm as PAL or NTSC (default: no change).
3185 .B \-zrquality <1\-20> (\-vo zr only)
3186 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3189 .B \-zrvdec <1|2|4> (\-vo zr only)
3190 Vertical decimation: Ask the driver to send only every 2nd or 4th
3191 line/\:pixel of the input image to the MJPEG card and use the scaler
3192 of the MJPEG card to stretch the image to its original size.
3195 .B \-zrxdoff <x display offset> (\-vo zr only)
3196 If the movie is smaller than the TV screen, this option specifies the x
3197 offset from the upper-left corner of the TV screen (default: centered).
3200 .B \-zrydoff <y display offset> (\-vo zr only)
3201 If the movie is smaller than the TV screen, this option specifies the y
3202 offset from the upper-left corner of the TV screen (default: centered).
3206 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3207 Video output drivers are interfaces to different video output facilities.
3211 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3212 Specify a priority list of video output drivers to be used.
3214 If the list has a trailing ',' MPlayer will fall back on drivers not
3215 contained in the list.
3216 Suboptions are optional and can mostly be omitted.
3219 See \-vo help for a list of compiled-in video output drivers.
3224 .IPs "\-vo xmga,xv,"
3225 Try the Matrox X11 driver, then the Xv driver, then others.
3226 .IPs "\-vo directx:noaccel"
3227 Uses the DirectX driver with acceleration features turned off.
3231 Available video output drivers are:
3235 Uses the XVideo extension of XFree86 4.x to enable hardware
3236 accelerated playback.
3237 If you cannot use a hardware specific driver, this is probably
3239 For information about what colorkey is used and how it is drawn run MPlayer
3240 with \-v option and look out for the lines tagged with [xv common] at the
3245 Select a specific XVideo port.
3246 .IPs ck=<cur|use|set>
3247 Select the source from which the colorkey is taken (default: cur).
3250 The default takes the colorkey currently set in Xv.
3252 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3255 Same as use but also sets the supplied colorkey.
3257 .IPs ck-method=<man|bg|auto>
3258 Sets the colorkey drawing method (default: man).
3261 Draw the colorkey manually (reduces flicker in some cases).
3263 Set the colorkey as window background.
3265 Let Xv draw the colorkey.
3272 Shared memory video output driver without hardware acceleration that
3273 works whenever X11 is present.
3277 Adds X11 support to all overlay based video output drivers.
3278 Currently only supported by tdfx_vid.
3282 Select the driver to use as source to overlay on top of X11.
3287 .B xvmc (X11 with \-vc ffmpeg12mc only)
3288 Video output driver that uses the XvMC (X Video Motion Compensation)
3289 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3293 Select a specific XVideo port.
3295 Disables image display.
3296 Necessary for proper benchmarking of drivers that change
3297 image buffers on monitor retrace only (nVidia).
3298 Default is not to disable image display (nobenchmark).
3300 Very simple deinterlacer.
3301 Might not look better than \-vf tfields=1,
3302 but it is the only deinterlacer for xvmc (default: nobobdeint).
3304 Queue frames for display to allow more parallel work of the video hardware.
3305 May add a small (not noticeable) constant A/V desync (default: noqueue).
3307 Use sleep function while waiting for rendering to finish
3308 (not recommended on Linux) (default: nosleep).
3310 Same as \-vo xv:ck (see \-vo xv).
3311 .IPs ck-method=man|bg|auto
3312 Same as \-vo xv:ck-method (see \-vo xv).
3318 Play video through the XFree86 Direct Graphics Access extension.
3319 Considered obsolete.
3323 Highly platform independent SDL (Simple Directmedia Layer) library
3324 video output driver.
3325 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3329 .IPs driver=<driver>
3330 Explicitly choose the SDL driver to use.
3332 Use XVideo through the sdl video output driver (default: forcexv).
3334 Use hardware accelerated scaler (default: hwaccel).
3340 VIDIX (VIDeo Interface for *niX) is an interface to the
3341 video acceleration features of different graphics cards.
3342 Very fast video output driver on cards that support it.
3346 Explicitly choose the VIDIX subdevice driver to use.
3347 Available subdevice drivers are cyberblade, mach64,
3348 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, sis_vid and unichrome.
3353 .B xvidix (X11 only)
3354 X11 frontend for VIDIX
3364 Generic and platform independent VIDIX frontend, can even run in a
3365 text console with nVidia cards.
3374 .B winvidix (Windows only)
3375 Windows frontend for VIDIX
3384 .B directx (Windows only)
3385 Video output driver that uses the DirectX interface.
3389 Turns off hardware acceleration.
3390 Try this option if you have display problems.
3395 .B quartz (Mac OS X only)
3396 Mac OS X Quartz video output driver.
3397 Under some circumstances, it might be more efficient to force a
3398 packed YUV output format, with e.g.\& \-vf format=yuy2.
3401 .IPs device_id=<number>
3402 Choose the display device to use in fullscreen.
3403 .IPs fs_res=<width>:<height>
3404 Specify the fullscreen resolution (useful on slow systems).
3409 .B macosx (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3410 Mac OS X CoreVideo video output driver
3413 .IPs device_id=<number>
3414 Choose the display device to use in fullscreen.
3419 .B fbdev (Linux only)
3420 Uses the kernel framebuffer to play video.
3424 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3425 name of the VIDIX subdevice if the device name starts with 'vidix'
3426 (e.g.\& 'vidixsis_vid' for the sis driver).
3431 .B fbdev2 (Linux only)
3432 Uses the kernel framebuffer to play video,
3433 alternative implementation.
3437 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3443 Very general video output driver that should work on any VESA VBE 2.0
3448 Turns DGA mode on or off (default: on).
3450 Activate the NeoMagic TV out and set it to PAL norm.
3452 Activate the NeoMagic TV out and set it to NTSC norm.
3454 Use the VIDIX driver.
3456 Activate the Linux Video Overlay on top of VESA mode.
3462 Play video using the SVGA library.
3466 Specify video mode to use.
3467 The mode can be given in a <width>x<height>x<colors> format,
3468 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3470 Draw OSD into black bands below the movie (slower).
3472 Use only native drawing functions.
3473 This avoids direct rendering, OSD and hardware acceleration.
3475 Force frame switch on vertical retrace.
3476 Usable only with \-double.
3477 It has the same effect as the \-vsync option.
3479 Try to select a video mode with square pixels.
3481 Use svga with VIDIX.
3487 OpenGL video output driver, simple version.
3488 Video size must be smaller than
3489 the maximum texture size of your OpenGL implementation.
3490 Intended to work even with the most basic OpenGL implementations,
3491 but also makes use of newer extensions, which allow support for more
3492 colorspaces and direct rendering.
3493 Please use \-dr if it works with your OpenGL implementation,
3494 since for higher resolutions this provides a
3497 The code performs very few checks, so if a feature does not work, this
3498 might be because it is not supported by your card/OpenGL implementation
3499 even if you do not get any error message.
3500 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3504 Changes the way the OSD behaves when the size of the
3505 window changes (default: disabled).
3506 When enabled behaves more like the other video output drivers,
3507 which is better for fixed-size fonts.
3508 Disabled looks much better with FreeType fonts and uses the
3509 borders in fullscreen mode.
3510 Does not work correctly with ass subtitles (see \-ass), you can instead
3511 render them without OpenGL support via \-vf ass.
3512 .IPs osdcolor=<0xRRGGBB>
3513 Color for OSD (default: 0xffffff, corresponds to white).
3514 .IPs rectangle=<0,1,2>
3515 Select usage of rectangular textures which saves video RAM, but often is
3516 slower (default: 0).
3518 0: Use power-of-two textures (default).
3520 1: Use the GL_ARB_texture_rectangle extension.
3522 2: Use the GL_ARB_texture_non_power_of_two extension.
3523 In some cases only supported in software and thus very slow.
3525 .IPs swapinterval=<n>
3526 Minimum interval between two buffer swaps, counted in
3527 displayed frames (default: 1).
3528 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3529 Values below 0 will leave it at the system default.
3530 This limits the framerate to (horizontal refresh rate / n).
3531 Requires GLX_SGI_swap_control support to work.
3532 With some (most/all?) implementations this only works in fullscreen mode.
3534 Select the type of YUV to RGB conversion.
3536 0: Use software conversion (default).
3537 Compatible with all OpenGL versions.
3538 Provides brightness, contrast and saturation control.
3540 1: Use register combiners.
3541 This uses an nVidia-specific extension (GL_NV_register_combiners).
3542 At least three texture units are needed.
3543 Provides saturation and hue control.
3544 This method is fast but inexact.
3546 2: Use a fragment program.
3547 Needs the GL_ARB_fragment_program extension and at least three texture units.
3548 Provides brightness, contrast, saturation and hue control.
3550 3: Use a fragment program using the POW instruction.
3551 Needs the GL_ARB_fragment_program extension and at least three texture units.
3552 Provides brightness, contrast, saturation, hue and gamma control.
3553 Gamma can also be set independently for red, green and blue.
3554 Method 4 is usually faster.
3556 4: Use a fragment program with additional lookup.
3557 Needs the GL_ARB_fragment_program extension and at least four texture units.
3558 Provides brightness, contrast, saturation, hue and gamma control.
3559 Gamma can also be set independently for red, green and blue.
3561 5: Use ATI-specific method (for older cards).
3562 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3563 GL_ARB_fragment_shader!).
3564 At least three texture units are needed.
3565 Provides saturation and hue control.
3566 This method is fast but inexact.
3568 6: Use a 3D texture to do conversion via lookup.
3569 Needs the GL_ARB_fragment_program extension and at least four texture units.
3570 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3571 a texture with border pixels.
3572 Provides brightness, contrast, saturation, hue and gamma control.
3573 Gamma can also be set independently for red, green and blue.
3574 Speed depends more on GPU memory bandwidth than other methods.
3577 Select the scaling function to use for luminance scaling.
3578 Only valid for yuv modes 2, 3, 4 and 6.
3580 0: Use simple linear filtering (default).
3582 1: Use bicubic B-spline filtering (better quality).
3583 Needs one additional texture unit.
3584 Older cards will not be able to handle this for chroma at least in fullscreen mode.
3586 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
3587 Works on a few more cards than method 1.
3590 Select the scaling function to use for chrominance scaling.
3591 For details see lscale.
3592 .IPs customprog=<filename>
3593 Load a custom fragment program from <filename>.
3594 See TOOLS/edgedect.fp for an example.
3595 .IPs customtex=<filename>
3596 Load a custom "gamma ramp" texture from <filename>.
3597 This can be used in combination with yuv=4 or with the customprog option.
3599 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
3600 for customtex texture.
3601 .IPs (no)customtrect
3602 If enabled, use texture_rectangle for customtex texture.
3603 Default is disabled.
3607 Normally there is no reason to use the following options, they mostly
3608 exist for testing purposes.
3613 Call glFinish() before swapping buffers.
3614 Slower but in some cases more correct output (default: disabled).
3616 Enables support for more (RGB and BGR) color formats (default: enabled).
3617 Needs OpenGL version >= 1.2.
3618 .IPs slice-height=<0\-...>
3619 Number of lines copied to texture in one piece (default: 0).
3623 If YUV colorspace is used (see yuv suboption), special rules apply:
3625 If the decoder uses slice rendering (see \-noslices), this setting
3626 has no effect, the size of the slices as provided by the decoder is used.
3628 If the decoder does not use slice rendering, the default is 16.
3631 Enable or disable support for OSD rendering via OpenGL (default: enabled).
3632 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
3634 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
3635 Disabling might increase speed.
3642 OpenGL video output driver, second generation.
3643 Supports OSD and videos larger than the maximum texture size.
3647 same as gl (default: enabled)
3649 Select the type of YUV to RGB conversion.
3650 If set to anything except 0 OSD will be disabled and brightness, contrast and
3651 gamma setting is only available via the global X server settings.
3652 Apart from this the values have the same meaning as for \-vo gl.
3657 Produces no video output.
3658 Useful for benchmarking.
3662 ASCII art video output driver that works on a text console.
3663 You can get a list and an explanation of available suboptions
3664 by executing 'mplayer \-vo aa:help'.
3667 The driver does not handle \-aspect correctly.
3670 You probably have to specify \-monitorpixelaspect.
3671 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
3675 Color ASCII art video output driver that works on a text console.
3679 Video playback using the Blinkenlights UDP protocol.
3680 This driver is highly hardware specific.
3684 Explicitly choose the Blinkenlights subdevice driver to use.
3685 It is something like arcade:host=localhost:2323 or
3686 hdl:file=name1,file=name2.
3687 You must specify a subdevice.
3693 GGI graphics system video output driver
3697 Explicitly choose the GGI driver to use.
3698 Replace any ',' that would appear in the driver string by a '.'.
3704 Play video using the DirectFB library.
3708 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
3709 .IPs buffermode=single|double|triple
3710 Double and triple buffering give best results if you want to avoid tearing issues.
3711 Triple buffering is more efficient than double buffering as it does
3712 not block MPlayer while waiting for the vertical retrace.
3713 Single buffering should be avoided (default: single).
3714 .IPs fieldparity=top|bottom
3715 Control the output order for interlaced frames (default: disabled).
3716 Valid values are top = top fields first, bottom = bottom fields first.
3717 This option does not have any effect on progressive film material
3718 like most MPEG movies are.
3719 You need to enable this option if you have tearing issues or unsmooth
3720 motions watching interlaced film material.
3722 Will force layer with ID N for playback (default: \-1 \- auto).
3724 Specify a parameter list for DirectFB.
3730 Matrox G400/\:G450/\:G550 specific video output driver that uses the
3731 DirectFB library to make use of special hardware features.
3732 Enables CRTC2 (second head), displaying video independently of the first head.
3736 same as directfb (default: disabled)
3737 .IPs buffermode=single|double|triple
3738 same as directfb (default: triple)
3739 .IPs fieldparity=top|bottom
3742 Enable the use of the Matrox BES (backend scaler) (default: disabled).
3743 Gives very good results concerning speed and output quality as interpolated
3744 picture processing is done in hardware.
3745 Works only on the primary head.
3747 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
3749 Turn on TV-out on the second head (default: enabled).
3750 The output quality is amazing as it is a full interlaced picture
3751 with proper sync to every odd/\:even field.
3752 .IPs tvnorm=pal|ntsc|auto
3753 Will set the TV norm of the Matrox card without the need
3754 for modifying /etc/\:directfbrc (default: disabled).
3755 Valid norms are pal = PAL, ntsc = NTSC.
3756 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
3757 which norm to use by looking at the framerate of the movie.
3763 Matrox specific video output driver that makes use of the YUV back
3764 end scaler on Gxxx cards through a kernel module.
3765 If you have a Matrox card, this is the fastest option.
3769 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
3774 .B xmga (Linux, X11 only)
3775 The mga video output driver, running in an X11 window.
3779 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
3784 .B s3fb (Linux only) (see also \-vf yuv2 and \-dr)
3785 S3 Virge specific video output driver.
3786 This driver supports the card's YUV conversion and scaling, double
3787 buffering and direct rendering features.
3788 Use \-vf yuy2 to get hardware-accelerated YUY2 rendering, which is
3789 much faster than YV12 on this card.
3793 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3798 .B 3dfx (Linux only)
3799 3dfx-specific video output driver that directly uses
3800 the hardware on top of X11.
3801 Only 16 bpp are supported.
3804 .B tdfxfb (Linux only)
3805 This driver employs the tdfxfb framebuffer driver to play movies with
3806 YUV acceleration on 3dfx cards.
3810 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3815 .B tdfx_vid (Linux only)
3816 3dfx-specific video output driver that works in combination with
3817 the tdfx_vid kernel module.
3821 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
3826 .B dxr2 (also see \-dxr2) (DXR2 only)
3827 Creative DXR2 specific video output driver.
3831 Output video subdriver to use as overlay (x11, xv).
3837 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
3838 Hollywood Plus) specific video output driver.
3839 Also see the lavc video filter.
3843 Activates the overlay instead of TVOut.
3845 Turns on prebuffering.
3847 Will turn on the new sync-engine.
3849 Specifies the TV norm.
3851 0: Does not change current norm (default).
3853 1: Auto-adjust using PAL/\:NTSC.
3855 2: Auto-adjust using PAL/\:PAL-60.
3864 Specifies the device number to use if you have more than one em8300 card.
3870 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
3871 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
3872 specific video output driver for TV-Out.
3873 Also see the lavc video filter.
3877 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
3879 Explicitly choose the TV-Out output to be used for the video signal.
3884 .B v4l2 (requires Linux 2.6.22+ kernel)
3885 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
3886 Also see the lavc video filter.
3890 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
3892 Explicitly choose the TV-Out output to be used for the video signal.
3897 .B mpegpes (DVB only)
3898 Video output driver for DVB cards that writes the output to an MPEG-PES file
3899 if no DVB card is installed.
3903 Specifies the device number to use if you have more than one DVB output card
3904 (V3 API only, such as 1.x.y series drivers).
3906 output filename (default: ./grab.mpg)
3911 .B zr (also see \-zr* and \-zrhelp)
3912 Video output driver for a number of MJPEG capture/\:playback cards.
3915 .B zr2 (also see the zrmjpeg video filter)
3916 Video output driver for a number of MJPEG capture/\:playback cards,
3921 Specifies the video device to use.
3922 .IPs norm=<PAL|NTSC|SECAM|auto>
3923 Specifies the video norm to use (default: auto).
3925 (De)Activate prebuffering, not yet supported.
3931 Calculate MD5 sums of each frame and write them to a file.
3932 Supports RGB24 and YV12 colorspaces.
3933 Useful for debugging.
3936 .IPs outfile=<value>
3937 Specify the output filename (default: ./md5sums).
3943 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
3944 images and stores it in a file (default: ./stream.yuv).
3945 The format is the same as the one employed by mjpegtools, so this is
3946 useful if you want to process the video with the mjpegtools suite.
3947 It supports the YV12, RGB (24 bpp) and BGR (24 bpp) format.
3948 You can combine it with the \-fixed\-vo option to concatenate files
3949 with the same dimensions and fps value.
3953 Write the output as interlaced frames, top field first.
3955 Write the output as interlaced frames, bottom field first.
3956 .IPs file=<filename>
3957 Write the output to <filename> instead of the default stream.yuv.
3963 If you do not specify any option the output is progressive
3964 (i.e.\& not interlaced).
3969 Output each frame into a single animated GIF file in the current directory.
3970 It supports only RGB format with 24 bpp and the output is converted to 256
3975 Float value to specify framerate (default: 5.0).
3977 Specify the output filename (default: ./out.gif).
3983 You must specify the framerate before the filename or the framerate will
3984 be part of the filename.
3990 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
3996 Output each frame into a JPEG file in the current directory.
3997 Each file takes the frame number padded with leading zeros as name.
4000 .IPs [no]progressive
4001 Specify standard or progressive JPEG (default: noprogressive).
4003 Specify use of baseline or not (default: baseline).
4004 .IPs optimize=<0\-100>
4005 optimization factor (default: 100)
4006 .IPs smooth=<0\-100>
4007 smooth factor (default: 0)
4008 .IPs quality=<0\-100>
4009 quality factor (default: 75)
4010 .IPs outdir=<dirname>
4011 Specify the directory to save the JPEG files to (default: ./).
4012 .IPs subdirs=<prefix>
4013 Create numbered subdirectories with the specified prefix to
4014 save the files in instead of the current directory.
4015 .IPs "maxfiles=<value> (subdirs only)"
4016 Maximum number of files to be saved per subdirectory.
4017 Must be equal to or larger than 1 (default: 1000).
4023 Output each frame into a PNM file in the current directory.
4024 Each file takes the frame number padded with leading zeros as name.
4025 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4026 Also see pnm(5), ppm(5) and pgm(5).
4030 Write PPM files (default).
4035 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4036 bottom of the picture.
4038 Write PNM files in raw mode (default).
4040 Write PNM files in ASCII mode.
4041 .IPs outdir=<dirname>
4042 Specify the directory to save the PNM files to (default: ./).
4043 .IPs subdirs=<prefix>
4044 Create numbered subdirectories with the specified prefix to
4045 save the files in instead of the current directory.
4046 .IPs "maxfiles=<value> (subdirs only)"
4047 Maximum number of files to be saved per subdirectory.
4048 Must be equal to or larger than 1 (default: 1000).
4054 Output each frame into a PNG file in the current directory.
4055 Each file takes the frame number padded with leading zeros as name.
4056 24bpp RGB and BGR formats are supported.
4060 Specifies the compression level.
4061 0 is no compression, 9 is maximum compression.
4067 Output each frame into a Targa file in the current directory.
4068 Each file takes the frame number padded with leading zeros as name.
4069 The purpose of this video output driver is to have a simple lossless
4070 image writer to use without any external library.
4071 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4072 You can force a particular format with the format video filter.
4078 mplayer video.nut \-vf format=bgr15 \-vo tga
4084 .SH "DECODING/FILTERING OPTIONS"
4087 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4088 Specify a priority list of audio codecs to be used, according to their codec
4089 name in codecs.conf.
4090 Use a '\-' before the codec name to omit it.
4091 Use a '+' before the codec name to force it, this will likely crash!
4092 If the list has a trailing ',' MPlayer will fall back on codecs not
4093 contained in the list.
4096 See \-ac help for a full list of available codecs.
4102 Force the l3codeca.acm MP3 codec.
4104 Try libmad first, then fall back on others.
4105 .IPs "\-ac hwac3,a52,"
4106 Try hardware AC-3 passthrough, software AC-3, then others.
4108 Try hardware DTS passthrough, then fall back on others.
4109 .IPs "\-ac \-ffmp3,"
4110 Skip FFmpeg's MP3 decoder.
4115 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4116 Specify advanced audio filter options:
4119 Forces the insertion of audio filters to one of the following:
4121 0: Use completely automatic filter insertion.
4123 1: Optimize for accuracy (default).
4125 2: Optimize for speed.
4127 Some features in the audio filters may silently fail,
4128 and the sound quality may drop.
4130 3: Use no automatic insertion of filters and no optimization.
4132 It may be possible to crash MPlayer using this setting.
4134 4: Use automatic insertion of filters according to 0 above,
4135 but use floating point processing when possible.
4137 5: Use automatic insertion of filters according to 1 above,
4138 but use floating point processing when possible.
4140 6: Use automatic insertion of filters according to 2 above,
4141 but use floating point processing when possible.
4143 7: Use no automatic insertion of filters according to 3 above,
4144 and use floating point processing when possible.
4151 .B \-afm <driver1,driver2,...>
4152 Specify a priority list of audio codec families to be used, according
4153 to their codec name in codecs.conf.
4154 Falls back on the default codecs if none of the given codec families work.
4157 See \-afm help for a full list of available codec families.
4163 Try FFmpeg's libavcodec codecs first.
4164 .IPs "\-afm acm,dshow"
4165 Try Win32 codecs first.
4170 .B \-aspect <ratio> (also see \-zoom)
4171 Override movie aspect ratio, in case aspect information is
4172 incorrect or missing in the file being played.
4177 \-aspect 4:3 or \-aspect 1.3333
4179 \-aspect 16:9 or \-aspect 1.7777
4185 Disable automatic movie aspect ratio compensation.
4188 .B "\-field\-dominance <\-1\-1>"
4189 Set first field for interlaced content.
4190 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4191 \-vf yadif=1 and \-vo xvmc:bobdeint.
4195 auto (default): If the decoder does not export the appropriate information,
4196 it falls back to 0 (top field first).
4206 Flip image upside-down.
4209 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4210 Specify libavcodec decoding parameters.
4211 Separate multiple options with a colon.
4216 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4221 Available options are:
4225 Only use bit-exact algorithms in all decoding steps (for codec testing).
4227 Manually work around encoder bugs.
4231 1: autodetect bugs (default)
4233 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4235 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4237 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4239 16 (mpeg4): padding bug (autodetected)
4241 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4243 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4245 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4247 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4249 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4251 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4254 Display debugging information.
4265 8: macroblock (MB) type
4267 16: per-block quantization parameter (QP)
4271 0x0040: motion vector visualization (use \-noslices)
4273 0x0080: macroblock (MB) skip
4279 0x0400: error resilience
4281 0x0800: memory management control operations (H.264)
4285 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4287 0x4000: Visualize block types.
4290 Set error concealment strategy.
4292 1: Use strong deblock filter for damaged MBs.
4294 2: iterative motion vector (MV) search (slow)
4299 Set error resilience strategy.
4304 1: careful (Should work with broken encoders.)
4306 2: normal (default) (Works with compliant encoders.)
4308 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4312 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4313 Enable optimizations which do not comply to the specification and might
4314 potentially cause problems, like simpler dequantization, simpler motion
4315 compensation, assuming use of the default quantization matrix, assuming
4316 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4318 grayscale only decoding (a bit faster than with color)
4319 .IPs "idct=<0\-99> (see \-lavcopts)"
4320 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4321 This may come at a price in accuracy, though.
4322 .IPs lowres=<number>[,<w>]
4323 Decode at lower resolutions.
4324 Low resolution decoding is not supported by all codecs, and it will
4325 often result in ugly artifacts.
4326 This is not a bug, but a side effect of not decoding at full resolution.
4338 If <w> is specified lowres decoding will be used only if the width of the
4339 video is major than or equal to <w>.
4341 .IPs "sb=<number> (MPEG-2 only)"
4342 Skip the given number of macroblock rows at the bottom.
4343 .IPs "st=<number> (MPEG-2 only)"
4344 Skip the given number of macroblock rows at the top.
4345 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4346 Skips the loop filter (AKA deblocking) during H.264 decoding.
4347 Since the filtered frame is supposed to be used as reference
4348 for decoding dependent frames this has a worse effect on quality
4349 than not doing deblocking on e.g.\& MPEG-2 video.
4350 But at least for high bitrate HDTV this provides a big speedup with
4351 no visible quality loss.
4353 <skipvalue> can be either one of the following:
4358 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4360 nonref: Skip frames that are not referenced (i.e.\& not used for
4361 decoding other frames, the error cannot "build up").
4363 bidir: Skip B-Frames.
4365 nonkey: Skip all frames except keyframes.
4367 all: Skip all frames.
4369 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4370 Skips the IDCT step.
4371 This degrades quality a lot of in almost all cases
4372 (see skiploopfilter for available skip values).
4373 .IPs skipframe=<skipvalue>
4374 Skips decoding of frames completely.
4375 Big speedup, but jerky motion and sometimes bad artifacts
4376 (see skiploopfilter for available skip values).
4377 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4378 number of threads to use for decoding (default: 1)
4380 Visualize motion vectors.
4385 1: Visualize forward predicted MVs of P-frames.
4387 2: Visualize forward predicted MVs of B-frames.
4389 4: Visualize backward predicted MVs of B-frames.
4392 Prints some statistics and stores them in ./vstats_*.log.
4397 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4398 whole frame in a single run.
4399 May be faster or slower, depending on video card and available cache.
4400 It has effect only with libmpeg2 and libavcodec codecs.
4404 Do not play/\:encode sound.
4405 Useful for benchmarking.
4409 Do not play/\:encode video.
4410 In many cases this will not work, use \-vc null \-vo null instead.
4413 .B \-pp <quality> (also see \-vf pp)
4414 Set the DLL postprocess level.
4415 This option is no longer usable with \-vf pp.
4416 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4417 The valid range of \-pp values varies by codec, it is mostly
4418 0\-6, where 0=disable, 6=slowest/\:best.
4421 .B \-pphelp (also see \-vf pp)
4422 Show a summary about the available postprocess filters and their usage.
4426 Specifies software scaler parameters.
4431 \-vf scale \-ssf lgb=3.0
4437 gaussian blur filter (luma)
4439 gaussian blur filter (chroma)
4440 .IPs ls=<\-100\-100>
4441 sharpen filter (luma)
4442 .IPs cs=<\-100\-100>
4443 sharpen filter (chroma)
4445 chroma horizontal shifting
4447 chroma vertical shifting
4453 Select type of MP2/\:MP3 stereo output.
4466 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4467 Specify the software scaler algorithm to be used with the \-zoom option.
4468 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4470 Available types are:
4479 bicubic (good quality) (default)
4483 nearest neighbor (bad quality)
4487 luma bicubic / chroma bilinear
4495 natural bicubic spline
4501 Some \-sws options are tunable.
4502 The description of the scale video filter has further information.
4506 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
4507 Specify a priority list of video codecs to be used, according to their codec
4508 name in codecs.conf.
4509 Use a '\-' before the codec name to omit it.
4510 Use a '+' before the codec name to force it, this will likely crash!
4511 If the list has a trailing ',' MPlayer will fall back on codecs not
4512 contained in the list.
4515 See \-vc help for a full list of available codecs.
4521 Force Win32/\:VfW DivX codec, no fallback.
4522 .IPs "\-vc \-divxds,\-divx,"
4523 Skip Win32 DivX codecs.
4524 .IPs "\-vc ffmpeg12,mpeg12,"
4525 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
4530 .B \-vfm <driver1,driver2,...>
4531 Specify a priority list of video codec families to be used, according
4532 to their names in codecs.conf.
4533 Falls back on the default codecs if none of the given codec families work.
4536 See \-vfm help for a full list of available codec families.
4541 .IPs "\-vfm ffmpeg,dshow,vfw"
4542 Try the libavcodec, then Directshow, then VfW codecs and fall back
4543 on others, if they do not work.
4545 Try XAnim codecs first.
4550 .B \-x <x> (also see \-zoom) (MPlayer only)
4551 Scale image to width <x> (if software/\:hardware scaling is available).
4552 Disables aspect calculations.
4555 .B \-xvidopts <option1:option2:...>
4556 Specify additional parameters when decoding with Xvid.
4559 Since libavcodec is faster than Xvid you might want to use the libavcodec
4560 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
4562 Xvid's internal postprocessing filters:
4565 .IPs "deblock-chroma (also see \-vf pp)"
4566 chroma deblock filter
4567 .IPs "deblock-luma (also see \-vf pp)"
4569 .IPs "dering-luma (also see \-vf pp)"
4570 luma deringing filter
4571 .IPs "dering-chroma (also see \-vf pp)"
4572 chroma deringing filter
4573 .IPs "filmeffect (also see \-vf noise)"
4574 Adds artificial film grain to the video.
4575 May increase perceived quality, while lowering true quality.
4584 Activate direct rendering method 2.
4586 Deactivate direct rendering method 2.
4591 .B \-xy <value> (also see \-zoom)
4595 Scale image by factor <value>.
4597 Set width to value and calculate height to keep correct aspect ratio.
4602 .B \-y <y> (also see \-zoom) (MPlayer only)
4603 Scale image to height <y> (if software/\:hardware scaling is available).
4604 Disables aspect calculations.
4608 Allow software scaling, where available.
4609 This will allow scaling with output drivers (like x11, fbdev) that
4610 do not support hardware scaling where MPlayer disables scaling by
4611 default for performance reasons.
4616 Audio filters allow you to modify the audio stream and its properties.
4620 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
4621 Setup a chain of audio filters.
4624 To get a full list of available audio filters, see \-af help.
4626 Available filters are:
4629 .B resample[=srate[:sloppy[:type]]]
4630 Changes the sample rate of the audio stream.
4631 Can be used if you have a fixed frequency sound card or if you are
4632 stuck with an old sound card that is only capable of max 44.1kHz.
4633 This filter is automatically enabled if necessary.
4634 It only supports 16-bit integer and float in native-endian format as input.
4637 With MEncoder, you need to also use \-srate <srate>.
4641 output sample frequency in Hz.
4642 The valid range for this parameter is 8000 to 192000.
4643 If the input and output sample frequency are the same or if this
4644 parameter is omitted the filter is automatically unloaded.
4645 A high sample frequency normally improves the audio quality,
4646 especially when used in combination with other filters.
4648 Allow (1) or disallow (0) the output frequency to differ slightly
4649 from the frequency given by <srate> (default: 1).
4650 Can be used if the startup of the playback is extremely slow.
4652 Selects which resampling method to use.
4654 0: linear interpolation (fast, poor quality especially when upsampling)
4656 1: polyphase filterbank and integer processing
4658 2: polyphase filterbank and floating point processing (slow, best quality)
4668 .IPs "mplayer \-af resample=44100:0:0"
4669 would set the output frequency of the resample filter to 44100Hz using
4670 exact output frequency scaling and linear interpolation.
4675 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
4676 Changes the sample rate of the audio stream to an integer <srate> in Hz.
4677 It only supports the 16-bit native-endian format.
4680 With MEncoder, you need to also use \-srate <srate>.
4684 the output sample rate
4686 length of the filter with respect to the lower sampling rate (default: 16)
4688 if 1 then filters will be linearly interpolated between polyphase entries
4690 log2 of the number of polyphase entries
4691 (..., 10->1024, 11->2048, 12->4096, ...)
4694 cutoff frequency (0.0\-1.0), default set depending upon filter length
4700 Produces a sine sweep.
4704 Sine function delta, use very low values to hear the sweep.
4709 .B sinesuppress[=freq:decay]
4710 Remove a sine at the specified frequency.
4711 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
4712 It probably only works on mono input.
4716 The frequency of the sine which should be removed (in Hz) (default: 50)
4718 Controls the adaptivity (a larger value will make the filter adapt to
4719 amplitude and phase changes quicker, a smaller value will make the
4720 adaptation slower) (default: 0.0001).
4721 Reasonable values are around 0.001.
4727 Head-related transfer function: Converts multichannel audio to
4728 2 channel output for headphones, preserving the spatiality of the sound.
4733 .IPs "m matrix decoding of the rear channel"
4734 .IPs "s 2-channel matrix decoding"
4735 .IPs "0 no matrix decoding (default)"
4740 .B equalizer=[g1:g2:g3:...:g10]
4741 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
4742 This means that it works regardless of what type of audio is being played back.
4743 The center frequencies for the 10 bands are:
4747 .IPs "No. frequency"
4762 If the sample rate of the sound being played is lower than the center
4763 frequency for a frequency band, then that band will be disabled.
4764 A known bug with this filter is that the characteristics for the
4765 uppermost band are not completely symmetric if the sample
4766 rate is close to the center frequency of that band.
4767 This problem can be worked around by upsampling the sound
4768 using the resample filter before it reaches this filter.
4772 .IPs <g1>:<g2>:<g3>:...:<g10>
4773 floating point numbers representing the gain in dB
4774 for each frequency band (\-12\-12)
4781 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
4782 Would amplify the sound in the upper and lower frequency region
4783 while canceling it almost completely around 1kHz.
4788 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
4789 Can be used for adding, removing, routing and copying audio channels.
4790 If only <nch> is given the default routing is used, it works as
4791 follows: If the number of output channels is bigger than the number of
4792 input channels empty channels are inserted (except mixing from mono to
4793 stereo, then the mono channel is repeated in both of the output
4795 If the number of output channels is smaller than the number
4796 of input channels the exceeding channels are truncated.
4800 number of output channels (1\-6)
4802 number of routes (1\-6)
4803 .IPs <from1:to1:from2:to2:from3:to3:...>
4804 Pairs of numbers between 0 and 5 that define where to route each channel.
4811 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
4812 Would change the number of channels to 4 and set up 4 routes that
4813 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
4814 Observe that if media containing two channels was played back, channels
4815 2 and 3 would contain silence but 0 and 1 would still be swapped.
4816 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
4817 Would change the number of channels to 6 and set up 4 routes
4818 that copy channel 0 to channels 0 to 3.
4819 Channel 4 and 5 will contain silence.
4824 .B format[=format] (also see \-format)
4825 Convert between different sample formats.
4826 Automatically enabled when needed by the sound card or another filter.
4830 Sets the desired format.
4831 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
4832 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
4833 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
4834 and 'ne' the endianness of the computer MPlayer is running on).
4835 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
4836 Exceptions to this rule that are also valid format specifiers: u8, s8,
4837 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
4843 Implements software volume control.
4844 Use this filter with caution since it can reduce the signal
4845 to noise ratio of the sound.
4846 In most cases it is best to set the level for the PCM sound to max,
4847 leave this filter out and control the output level to your
4848 speakers with the master volume control of the mixer.
4849 In case your sound card has a digital PCM mixer instead of an analog
4850 one, and you hear distortion, use the MASTER mixer instead.
4851 If there is an external amplifier connected to the computer (this
4852 is almost always the case), the noise level can be minimized by
4853 adjusting the master level and the volume knob on the amplifier
4854 until the hissing noise in the background is gone.
4856 This filter has a second feature: It measures the overall maximum
4857 sound level and prints out that level when MPlayer exits.
4858 This volume estimate can be used for setting the sound level in
4859 MEncoder such that the maximum dynamic range is utilized.
4862 This filter is not reentrant and can therefore only be enabled
4863 once for every audio stream.
4867 Sets the desired gain in dB for all channels in the stream
4868 from \-200dB to +60dB, where \-200dB mutes the sound
4869 completely and +60dB equals a gain of 1000 (default: 0).
4871 Turns soft clipping on (1) or off (0).
4872 Soft-clipping can make the sound more smooth if very
4873 high volume levels are used.
4874 Enable this option if the dynamic range of the
4875 loudspeakers is very low.
4878 This feature creates distortion and should be considered a last resort.
4885 .IPs "mplayer \-af volume=10.1:0 media.avi"
4886 Would amplify the sound by 10.1dB and hard-clip if the
4887 sound level is too high.
4892 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
4893 Mixes channels arbitrarily.
4894 Basically a combination of the volume and the channels filter
4895 that can be used to down-mix many channels to only a few,
4896 e.g.\& stereo to mono or vary the "width" of the center
4897 speaker in a surround sound system.
4898 This filter is hard to use, and will require some tinkering
4899 before the desired result is obtained.
4900 The number of options for this filter depends on
4901 the number of output channels.
4902 An example how to downmix a six-channel file to two channels with
4903 this filter can be found in the examples section near the end.
4907 number of output channels (1\-6)
4909 How much of input channel i is mixed into output channel j (0\-1).
4910 So in principle you first have n numbers saying what to do with the
4911 first input channel, then n numbers that act on the second input channel
4913 If you do not specify any numbers for some input channels, 0 is assumed.
4920 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
4921 Would down-mix from stereo to mono.
4922 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
4923 Would give 3 channel output leaving channels 0 and 1 intact,
4924 and mix channels 0 and 1 into output channel 2 (which could
4925 be sent to a subwoofer for example).
4931 Adds a subwoofer channel to the audio stream.
4932 The audio data used for creating the subwoofer channel is
4933 an average of the sound in channel 0 and channel 1.
4934 The resulting sound is then low-pass filtered by a 4th order
4935 Butterworth filter with a default cutoff frequency of 60Hz
4936 and added to a separate channel in the audio stream.
4939 Disable this filter when you are playing DVDs with Dolby
4940 Digital 5.1 sound, otherwise this filter will disrupt
4941 the sound to the subwoofer.
4945 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
4946 For the best result try setting the cutoff frequency as low as possible.
4947 This will improve the stereo or surround sound experience.
4949 Determines the channel number in which to insert the sub-channel audio.
4950 Channel number can be between 0 and 5 (default: 5).
4951 Observe that the number of channels will automatically
4952 be increased to <ch> if necessary.
4959 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
4960 Would add a sub-woofer channel with a cutoff frequency of
4961 100Hz to output channel 4.
4967 Creates a center channel from the front channels.
4968 May currently be low quality as it does not implement a
4969 high-pass filter for proper extraction yet, but averages and
4970 halves the channels instead.
4974 Determines the channel number in which to insert the center channel.
4975 Channel number can be between 0 and 5 (default: 5).
4976 Observe that the number of channels will automatically
4977 be increased to <ch> if necessary.
4983 Decoder for matrix encoded surround sound like Dolby Surround.
4984 Many files with 2 channel audio actually contain matrixed surround sound.
4985 Requires a sound card supporting at least 4 channels.
4989 delay time in ms for the rear speakers (0 to 1000) (default: 20)
4990 This delay should be set as follows: If d1 is the distance
4991 from the listening position to the front speakers and d2 is the distance
4992 from the listening position to the rear speakers, then the delay should
4993 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5000 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5001 Would add surround sound decoding with 15ms delay for the sound to the
5007 .B delay[=ch1:ch2:...]
5008 Delays the sound to the loudspeakers such that the sound from the
5009 different channels arrives at the listening position simultaneously.
5010 It is only useful if you have more than 2 loudspeakers.
5014 The delay in ms that should be imposed on each channel
5015 (floating point number between 0 and 1000).
5020 To calculate the required delay for the different channels do as follows:
5022 Measure the distance to the loudspeakers in meters in relation
5023 to your listening position, giving you the distances s1 to s5
5025 There is no point in compensating for the subwoofer (you will not hear the
5028 Subtract the distances s1 to s5 from the maximum distance,
5029 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5031 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5039 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5040 Would delay front left and right by 10.5ms, the two rear channels
5041 and the sub by 0ms and the center channel by 7ms.
5046 .B export[=mmapped_file[:nsamples]]
5047 Exports the incoming signal to other processes using memory mapping (mmap()).
5048 Memory mapped areas contain a header:
5051 int nch /*number of channels*/
5052 int size /*buffer size*/
5053 unsigned long long counter /*Used to keep sync, updated every
5054 time new data is exported.*/
5057 The rest is payload (non-interleaved) 16 bit data.
5061 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5063 number of samples per channel (default: 512)
5070 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5071 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5076 .B extrastereo[=mul]
5077 (Linearly) increases the difference between left and right channels
5078 which adds some sort of "live" effect to playback.
5082 Sets the difference coefficient (default: 2.5).
5083 0.0 means mono sound (average of both channels), with 1.0 sound will be
5084 unchanged, with \-1.0 left and right channels will be swapped.
5089 .B volnorm[=method:target]
5090 Maximizes the volume without distorting the sound.
5094 Sets the used method.
5096 1: Use a single sample to smooth the variations via the standard
5097 weighted mean over past samples (default).
5099 2: Use several samples to smooth the variations via the standard
5100 weighted mean over past samples.
5103 Sets the target amplitude as a fraction of the maximum for the
5104 sample type (default: 0.25).
5109 .B ladspa=file:label[:controls...]
5110 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5111 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5115 Specifies the LADSPA plugin library file.
5116 If LADSPA_PATH is set, it searches for the specified file.
5117 If it is not set, you must supply a fully specified pathname.
5119 Specifies the filter within the library.
5120 Some libraries contain only one filter, but others contain many of them.
5121 Entering 'help' here, will list all available filters within the specified
5122 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5124 Controls are zero or more floating point values that determine the
5125 behavior of the loaded plugin (for example delay, threshold or gain).
5126 In verbose mode (add \-v to the MPlayer command line), all available controls
5127 and their valid ranges are printed.
5128 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5134 Compressor/expander filter usable for microphone input.
5135 Prevents artifacts on very loud sound and raises the volume on
5137 This filter is untested, maybe even unusable.
5141 Noise gate filter similar to the comp audio filter.
5142 This filter is untested, maybe even unusable.
5146 Simple voice removal filter exploiting the fact that voice is
5147 usually recorded with mono gear and later 'center' mixed onto
5148 the final audio stream.
5149 Beware that this filter will turn your signal into mono.
5150 Works well for 2 channel tracks; do not bother trying it
5151 on anything but 2 channel stereo.
5154 .B scaletempo[=option1:option2:...]
5155 Scales audio tempo without altering pitch, optionally synced to playback
5158 This works by playing \'stride\' ms of audio at normal speed then
5159 consuming \'stride*scale\' ms of input audio.
5160 It pieces the strides together by blending 'overlap'% of stride with
5161 audio following the previous stride.
5162 It optionally performs a short statistical analysis on the next \'search\'
5163 ms of audio to determine the best overlap position.
5167 Nominal amount to scale tempo.
5168 Scales this amount in addition to speed.
5170 .IPs stride=<amount>
5171 Length in milliseconds to output each stride.
5172 Too high of value will cause noticable skips at high scale amounts and
5173 an echo at low scale amounts.
5174 Very low values will alter pitch.
5175 Increasing improves performance.
5177 .IPs overlap=<percent>
5178 Percentage of stride to overlap.
5179 Decreasing improves performance.
5181 .IPs search=<amount>
5182 Length in milliseconds to search for best overlap position.
5183 Decreasing improves performance greatly.
5184 On slow systems, you will probably want to set this very low.
5186 .IPs speed=<tempo|pitch|both|none>
5187 Set response to speed change.
5190 Scale tempo in sync with speed (default)
5192 Reverses effect of filter.
5193 Scales pitch without altering tempo.
5194 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5195 to your input.conf to step by musical semi-tones.
5197 Looses synch with video.
5199 Scale both tempo and pitch
5201 Ignore speed changes
5209 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5210 Would playback media at 1.2x normal speed, with audio at normal pitch.
5211 Changing playback speed, would change audio tempo to match.
5212 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5213 Would playback media at 1.2x normal speed, with audio at normal pitch,
5214 but changing playback speed has no effect on audio tempo.
5215 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5216 Would tweak the quality and performace parameters.
5217 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5218 Would make scaletempo use float code.
5219 Maybe faster on some platforms.
5220 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5221 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5222 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5229 Video filters allow you to modify the video stream and its properties.
5233 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5234 Setup a chain of video filters.
5236 Many parameters are optional and set to default values if omitted.
5237 To explicitly use a default value set a parameter to '\-1'.
5238 Parameters w:h means width x height in pixels, x:y means x;y position counted
5239 from the upper left corner of the bigger image.
5242 To get a full list of available video filters, see \-vf help.
5244 Video filters are managed in lists.
5245 There are a few commands to manage the filter list.
5248 .B \-vf\-add <filter1[,filter2,...]>
5249 Appends the filters given as arguments to the filter list.
5252 .B \-vf\-pre <filter1[,filter2,...]>
5253 Prepends the filters given as arguments to the filter list.
5256 .B \-vf\-del <index1[,index2,...]>
5257 Deletes the filters at the given indexes.
5258 Index numbers start at 0, negative numbers address the end of the
5259 list (\-1 is the last).
5263 Completely empties the filter list.
5265 With filters that support it, you can access parameters by their name.
5268 .B \-vf <filter>=help
5269 Prints the parameter names and parameter value ranges for a particular
5273 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5274 Sets a named parameter to the given value.
5275 Use on and off or yes and no to set flag parameters.
5277 Available filters are:
5281 Crops the given part of the image and discards the rest.
5282 Useful to remove black bands from widescreen movies.
5286 Cropped width and height, defaults to original width and height.
5288 Position of the cropped picture, defaults to center.
5293 .B cropdetect[=limit:round]
5294 Calculates necessary cropping parameters and prints the recommended parameters
5299 Threshold, which can be optionally specified from nothing (0) to
5300 everything (255) (default: 24).
5303 Value which the width/\:height should be divisible by (default: 16).
5304 The offset is automatically adjusted to center the video.
5305 Use 2 to get only even dimensions (needed for 4:2:2 video).
5306 16 is best when encoding to most video codecs.
5311 .B rectangle[=w:h:x:y]
5312 The plugin responds to the input.conf directive 'change_rectangle'
5313 that takes two parameters.
5317 width and height (default: \-1, maximum possible width where boundaries
5320 top left corner position (default: \-1, uppermost leftmost)
5325 .B expand[=w:h:x:y:o:a:r]
5326 Expands (not scales) movie resolution to the given value and places the
5327 unscaled original at coordinates x, y.
5328 Can be used for placing subtitles/\:OSD in the resulting black bands.
5331 Expanded width,height (default: original width,height).
5332 Negative values for w and h are treated as offsets to the original size.
5337 .IP expand=0:\-50:0:0
5338 Adds a 50 pixel border to the bottom of the picture.
5342 position of original image on the expanded image (default: center)
5344 OSD/\:subtitle rendering
5346 0: disable (default)
5351 Expands to fit an aspect instead of a resolution (default: 0).
5356 .IP expand=800:::::4/3
5357 Expands to 800x600, unless the source is higher resolution, in which
5358 case it expands to fill a 4/3 aspect.
5362 Rounds up to make both width and height divisible by <r> (default: 1).
5366 .B flip (also see \-flip)
5367 Flips the image upside down.
5371 Mirrors the image on the Y axis.
5375 Rotates the image by 90 degrees and optionally flips it.
5376 For values between 4\-7 rotation is only done if the movie geometry is
5377 portrait and not landscape.
5380 Rotate by 90 degrees clockwise and flip (default).
5382 Rotate by 90 degrees clockwise.
5384 Rotate by 90 degrees counterclockwise.
5386 Rotate by 90 degrees counterclockwise and flip.
5390 .B scale[=w:h[:ilaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5391 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5392 colorspace conversion (also see \-sws).
5395 scaled width/\:height (default: original width/\:height)
5398 If \-zoom is used, and underlying filters (including libvo) are
5399 incapable of scaling, it defaults to d_width/\:d_height!
5401 0: scaled d_width/\:d_height
5403 \-1: original width/\:height
5405 \-2: Calculate w/h using the other dimension and the prescaled aspect ratio.
5407 \-3: Calculate w/h using the other dimension and the original aspect ratio.
5409 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
5412 Toggle interlaced scaling.
5421 0: Use all available input lines for chroma.
5423 1: Use only every 2. input line for chroma.
5425 2: Use only every 4. input line for chroma.
5427 3: Use only every 8. input line for chroma.
5429 .IPs "<par>[:<par2>] (also see \-sws)"
5430 Set some scaling parameters depending on the type of scaler selected
5433 \-sws 2 (bicubic): B (blurring) and C (ringing)
5437 0.00:0.75 VirtualDub's "precise bicubic"
5439 0.00:0.50 Catmull-Rom spline
5441 0.33:0.33 Mitchell-Netravali spline
5443 1.00:0.00 cubic B-spline
5445 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
5447 \-sws 9 (lanczos): filter length (1\-10)
5450 Scale to preset sizes.
5452 qntsc: 352x240 (NTSC quarter screen)
5454 qpal: 352x288 (PAL quarter screen)
5456 ntsc: 720x480 (standard NTSC)
5458 pal: 720x576 (standard PAL)
5460 sntsc: 640x480 (square pixel NTSC)
5462 spal: 768x576 (square pixel PAL)
5465 Disallow upscaling past the original dimensions.
5467 0: Allow upscaling (default).
5469 1: Disallow upscaling if one dimension exceeds its original value.
5471 2: Disallow upscaling if both dimensions exceed their original values.
5474 Accurate rounding for the vertical scaler, which may be faster
5475 or slower than the default rounding.
5477 0: Disable accurate rounding (default).
5479 1: Enable accurate rounding.
5484 .B dsize[=aspect|w:h:aspect-method:r]
5485 Changes the intended display size/\:aspect at an arbitrary point in the
5487 Aspect can be given as a fraction (4/3) or floating point number
5489 Alternatively, you may specify the exact display width and height
5491 Note that this filter does
5493 do any scaling itself; it just affects
5494 what later scalers (software or hardware) will do when auto-scaling to
5498 New display width and height.
5499 Can also be these special values:
5501 0: original display width and height
5503 \-1: original video width and height (default)
5505 \-2: Calculate w/h using the other dimension and the original display
5508 \-3: Calculate w/h using the other dimension and the original video
5516 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
5517 800x450 for a 16/9 aspect video.
5519 .IPs <aspect-method>
5520 Modifies width and height according to original aspect ratios.
5522 \-1: Ignore original aspect ratio (default).
5524 0: Keep display aspect ratio by using <w> and <h> as maximum
5527 1: Keep display aspect ratio by using <w> and <h> as minimum
5530 2: Keep video aspect ratio by using <w> and <h> as maximum
5533 3: Keep video aspect ratio by using <w> and <h> as minimum
5541 Specifies a display resolution of at most 800x600, or smaller, in order
5546 Rounds up to make both width and height divisible by <r> (default: 1).
5551 Forces software YV12/\:I420/\:422P to YUY2 conversion.
5552 Useful for video cards/\:drivers with slow YV12 but fast YUY2 support.
5556 Forces software YVU9 to YV12 colorspace conversion.
5557 Deprecated in favor of the software scaler.
5561 Clamps YUV color values to the CCIR 601 range without doing real conversion.
5565 RGB 24/32 <\-> BGR 24/32 colorspace conversion.
5569 Also perform R <\-> B swapping.
5575 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
5579 Restricts the colorspace for the next filter without doing any conversion.
5580 Use together with the scale filter for a real conversion.
5583 For a list of available formats see format=fmt=help.
5587 format name like rgb15, bgr24, yv12, etc (default: yuy2)
5592 .B noformat[=fourcc]
5593 Restricts the colorspace for the next filter without doing any conversion.
5594 Unlike the format filter, this will allow any colorspace
5596 the one you specify.
5599 For a list of available formats see noformat=fmt=help.
5603 format name like rgb15, bgr24, yv12, etc (default: yv12)
5608 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
5609 Enables the specified chain of postprocessing subfilters.
5610 Subfilters must be separated by '/' and can be disabled by
5612 Each subfilter and some options have a short and a long name that can be
5613 used interchangeably, i.e.\& dr/dering are the same.
5614 All subfilters share common options to determine their scope:
5618 Automatically switch the subfilter off if the CPU is too slow.
5620 Do chrominance filtering, too (default).
5622 Do luminance filtering only (no chrominance).
5624 Do chrominance filtering only (no luminance).
5631 \-pphelp shows a list of available subfilters.
5633 Available subfilters are
5636 .IPs hb/hdeblock[:difference[:flatness]]
5637 horizontal deblocking filter
5639 <difference>: Difference factor where higher values mean
5640 more deblocking (default: 32).
5642 <flatness>: Flatness threshold where lower values mean
5643 more deblocking (default: 39).
5645 .IPs vb/vdeblock[:difference[:flatness]]
5646 vertical deblocking filter
5648 <difference>: Difference factor where higher values mean
5649 more deblocking (default: 32).
5651 <flatness>: Flatness threshold where lower values mean
5652 more deblocking (default: 39).
5654 .IPs ha/hadeblock[:difference[:flatness]]
5655 accurate horizontal deblocking filter
5657 <difference>: Difference factor where higher values mean
5658 more deblocking (default: 32).
5660 <flatness>: Flatness threshold where lower values mean
5661 more deblocking (default: 39).
5663 .IPs va/vadeblock[:difference[:flatness]]
5664 accurate vertical deblocking filter
5666 <difference>: Difference factor where higher values mean
5667 more deblocking (default: 32).
5669 <flatness>: Flatness threshold where lower values mean
5670 more deblocking (default: 39).
5673 The horizontal and vertical deblocking filters share the
5674 difference and flatness values so you cannot set
5675 different horizontal and vertical thresholds.
5678 experimental horizontal deblocking filter
5680 experimental vertical deblocking filter
5683 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
5684 temporal noise reducer
5686 <threshold1>: larger -> stronger filtering
5688 <threshold2>: larger -> stronger filtering
5690 <threshold3>: larger -> stronger filtering
5692 .IPs al/autolevels[:f/fullyrange]
5693 automatic brightness / contrast correction
5695 f/fullyrange: Stretch luminance to (0\-255).
5697 .IPs lb/linblenddeint
5698 Linear blend deinterlacing filter that deinterlaces the given block
5699 by filtering all lines with a (1 2 1) filter.
5700 .IPs li/linipoldeint
5701 Linear interpolating deinterlacing filter that deinterlaces the given block
5702 by linearly interpolating every second line.
5703 .IPs ci/cubicipoldeint
5704 Cubic interpolating deinterlacing filter deinterlaces the given block
5705 by cubically interpolating every second line.
5707 Median deinterlacing filter that deinterlaces the given block
5708 by applying a median filter to every second line.
5710 FFmpeg deinterlacing filter that deinterlaces the given block
5711 by filtering every second line with a (\-1 4 2 4 \-1) filter.
5713 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
5714 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
5715 .IPs fq/forceQuant[:quantizer]
5716 Overrides the quantizer table from the input with the constant
5717 quantizer you specify.
5719 <quantizer>: quantizer to use
5722 default pp filter combination (hb:a,vb:a,dr:a)
5724 fast pp filter combination (h1:a,v1:a,dr:a)
5726 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
5734 .IPs "\-vf pp=hb/vb/dr/al"
5735 horizontal and vertical deblocking, deringing and automatic
5736 brightness/\:contrast
5737 .IPs "\-vf pp=de/\-al"
5738 default filters without brightness/\:contrast correction
5739 .IPs "\-vf pp=default/tmpnoise:1:2:3"
5740 Enable default filters & temporal denoiser.
5741 .IPs "\-vf pp=hb:y/vb:a"
5742 Horizontal deblocking on luminance only, and switch vertical deblocking
5743 on or off automatically depending on available CPU time.
5748 .B spp[=quality[:qp[:mode]]]
5749 Simple postprocessing filter that compresses and decompresses the
5750 image at several (or \- in the case of quality level 6 \- all)
5751 shifts and averages the results.
5756 Force quantization parameter (default: 0, use QP from video).
5758 0: hard thresholding (default)
5760 1: soft thresholding (better deringing, but blurrier)
5762 4: like 0, but also use B-frames' QP (may cause flicker)
5764 5: like 1, but also use B-frames' QP (may cause flicker)
5768 .B uspp[=quality[:qp]]
5769 Ultra simple & slow postprocessing filter that compresses and
5770 decompresses the image at several (or \- in the case of quality
5771 level 8 \- all) shifts and averages the results.
5772 The way this differs from the behavior of spp is that uspp actually
5773 encodes & decodes each case with libavcodec Snow, whereas spp uses
5774 a simplified intra only 8x8 DCT similar to MJPEG.
5779 Force quantization parameter (default: 0, use QP from video).
5783 .B fspp[=quality[:qp[:strength[:bframes]]]]
5784 faster version of the simple postprocessing filter
5787 4\-5 (equivalent to spp; default: 4)
5789 Force quantization parameter (default: 0, use QP from video).
5791 Filter strength, lower values mean more details but also more artifacts,
5792 while higher values make the image smoother but also blurrier (default:
5795 0: do not use QP from B-frames (default)
5797 1: use QP from B-frames too (may cause flicker)
5802 Variant of the spp filter, similar to spp=6 with 7 point DCT where
5803 only the center sample is used after IDCT.
5806 Force quantization parameter (default: 0, use QP from video).
5808 0: hard thresholding
5810 1: soft thresholding (better deringing, but blurrier)
5812 2: medium thresholding (default, good results)
5817 quantization parameter (QP) change filter
5820 some equation like "2+2*sin(PI*qp)"
5825 generic equation change filter
5828 Some equation, e.g.\& 'p(W-X\\,Y)' to flip the image horizontally.
5829 You can use whitespace to make the equation more readable.
5830 There are a couple of constants that can be used in the equation:
5836 X / Y: the coordinates of the current sample
5838 W / H: width and height of the image
5840 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
5841 1,1 and 0.5,0.5 for YUV 4:2:0.
5843 p(x,y): returns the value of the pixel at location x/y of the current plane.
5849 Generate various test patterns.
5853 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
5854 You should see a red, green and blue stripe from top to bottom.
5857 .B lavc[=quality:fps]
5858 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
5863 32\-: fixed bitrate in kbits
5865 force output fps (float value) (default: 0, autodetect based on height)
5869 .B dvbscale[=aspect]
5870 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
5871 calculating the y axis scaling in software to keep aspect.
5872 Only useful together with expand and scale.
5875 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
5876 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
5884 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
5885 FIXME: Explain what this does.
5890 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
5899 uniform noise (gaussian otherwise)
5901 temporal noise (noise pattern changes between frames)
5903 averaged temporal noise (smoother, but a lot slower)
5905 high quality (slightly better looking, slightly slower)
5907 mix random noise with a (semi)regular pattern
5912 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
5913 This filter aims to reduce image noise producing smooth images and making still
5914 images really still (This should enhance compressibility.).
5918 spatial luma strength (default: 4)
5919 .IPs <chroma_spatial>
5920 spatial chroma strength (default: 3)
5922 luma temporal strength (default: 6)
5924 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
5929 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
5930 High precision/\:quality version of the denoise3d filter.
5931 Parameters and usage are the same.
5934 .B ow[=depth[:luma_strength[:chroma_strength]]]
5935 Overcomplete Wavelet denoiser.
5939 Larger depth values will denoise lower frequency components more, but
5940 slow down filtering (default: 8).
5941 .IPs <luma_strength>
5942 luma strength (default: 1.0)
5943 .IPs <chroma_strength>
5944 chroma strength (default: 1.0)
5949 .B eq[=brightness:contrast] (OBSOLETE)
5950 Software equalizer with interactive controls just like the hardware
5951 equalizer, for cards/\:drivers that do not support brightness and
5952 contrast controls in hardware.
5953 Might also be useful with MEncoder, either for fixing poorly captured
5954 movies, or for slightly reducing contrast to mask artifacts and get by
5955 with lower bitrates.
5966 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
5967 Alternative software equalizer that uses lookup tables (very slow),
5968 allowing gamma correction in addition to simple brightness
5969 and contrast adjustment.
5970 Note that it uses the same MMX optimized code as \-vf eq if all
5971 gamma values are 1.0.
5972 The parameters are given as floating point values.
5976 initial gamma value (default: 1.0)
5978 initial contrast, where negative values result in a
5979 negative image (default: 1.0)
5981 initial brightness (default: 0.0)
5983 initial saturation (default: 1.0)
5985 gamma value for the red component (default: 1.0)
5987 gamma value for the green component (default: 1.0)
5989 gamma value for the blue component (default: 1.0)
5991 The weight parameter can be used to reduce the effect of a high gamma value on
5992 bright image areas, e.g.\& keep them from getting overamplified and just plain
5994 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
5995 at its full strength (default: 1.0).
6000 .B hue[=hue:saturation]
6001 Software equalizer with interactive controls just like the hardware
6002 equalizer, for cards/\:drivers that do not support hue and
6003 saturation controls in hardware.
6007 initial hue (default: 0.0)
6009 initial saturation, where negative values result
6010 in a negative chroma (default: 1.0)
6016 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6017 keeping all chroma samples.
6018 Useful for output to low-resolution display devices when hardware downscaling
6019 is poor quality or is not available.
6020 Can also be used as a primitive luma-only deinterlacer with very low CPU
6025 By default, halfpack averages pairs of lines when downsampling.
6026 Any value different from 0 or 1 gives the default (averaging) behavior.
6028 0: Only use even lines when downsampling.
6030 1: Only use odd lines when downsampling.
6037 When interlaced video is stored in YUV 4:2:0 formats, chroma
6038 interlacing does not line up properly due to vertical downsampling of
6039 the chroma channels.
6040 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6041 the chroma lines in their proper locations, so that in any given
6042 scanline, the luma and chroma data both come from the same field.
6046 Select the sampling mode.
6048 0: nearest-neighbor sampling, fast but incorrect
6050 1: linear interpolation (default)
6057 Only useful with MEncoder.
6058 If harddup is used when encoding, it will force duplicate frames to be
6059 encoded in the output.
6060 This uses slightly more space, but is necessary for output to MPEG
6061 files or if you plan to demux and remux the video stream after
6063 Should be placed at or near the end of the filter chain unless you
6064 have a good reason to do otherwise.
6068 Only useful with MEncoder.
6069 Softskip moves the frame skipping (dropping) step of encoding from
6070 before the filter chain to some point during the filter chain.
6071 This allows filters which need to see all frames (inverse telecine,
6072 temporal denoising, etc.) to function properly.
6073 Should be placed after the filters which need to see all frames and
6074 before any subsequent filters that are CPU-intensive.
6077 .B decimate[=max:hi:lo:frac]
6078 Drops frames that do not differ greatly from the previous frame in
6079 order to reduce framerate.
6080 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6081 streaming over dialup modem), but it could in theory be used for
6082 fixing movies that were inverse-telecined incorrectly.
6086 Sets the maximum number of consecutive frames which can be
6087 dropped (if positive), or the minimum interval between
6088 dropped frames (if negative).
6089 .IPs <hi>,<lo>,<frac>
6090 A frame is a candidate for dropping if no 8x8 region differs by more
6091 than a threshold of <hi>, and if not more than <frac> portion (1
6092 meaning the whole image) differs by more than a threshold of <lo>.
6093 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6094 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6095 difference for each pixel, or the same spread out differently over the
6101 .B dint[=sense:level]
6102 The drop-deinterlace (dint) filter detects and drops the first from a set
6103 of interlaced video frames.
6107 relative difference between neighboring pixels (default: 0.1)
6109 What part of the image has to be detected as interlaced to
6110 drop the frame (default: 0.15).
6115 .B lavcdeint (OBSOLETE)
6116 FFmpeg deinterlacing filter, same as \-vf pp=fd
6119 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6120 Donald Graft's adaptive kernel deinterlacer.
6121 Deinterlaces parts of a video if a configurable threshold is exceeded.
6125 threshold (default: 10)
6128 0: Ignore pixels exceeding the threshold (default).
6130 1: Paint pixels exceeding the threshold white.
6134 0: Leave fields alone (default).
6140 0: Disable additional sharpening (default).
6142 1: Enable additional sharpening.
6146 0: Disable twoway sharpening (default).
6148 1: Enable twoway sharpening.
6154 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6155 unsharp mask / gaussian blur
6158 Apply effect on luma component.
6160 Apply effect on chroma components.
6161 .IPs <width>x<height>
6162 width and height of the matrix, odd sized in both directions
6163 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6165 Relative amount of sharpness/\:blur to add to the image
6166 (a sane range should be \-1.5\-1.5).
6179 .B il[=d|i][s][:[d|i][s]]
6180 (De)interleaves lines.
6181 The goal of this filter is to add the ability to process interlaced images
6182 pre-field without deinterlacing them.
6183 You can filter your interlaced DVD and play it on a TV without breaking the
6185 While deinterlacing (with the postprocessing filter) removes interlacing
6186 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6187 2 fields (so called half pictures), so you can process (filter) them
6188 independently and then re-interleave them.
6192 deinterleave (placing one above the other)
6196 swap fields (exchange even & odd lines)
6202 (De)interleaves lines.
6203 This filter is very similar to the il filter but much faster, the main
6204 disadvantage is that it does not always work.
6205 Especially if combined with other filters it may produce randomly messed
6206 up images, so be happy if it works but do not complain if it does not for
6207 your combination of filters.
6211 Deinterleave fields, placing them side by side.
6213 Interleave fields again (reversing the effect of fil=d).
6219 Extracts a single field from an interlaced image using stride arithmetic
6220 to avoid wasting CPU time.
6221 The optional argument n specifies whether to extract the even or the odd
6222 field (depending on whether n is even or odd).
6225 .B detc[=var1=value1:var2=value2:...]
6226 Attempts to reverse the 'telecine' process to recover a clean,
6227 non-interlaced stream at film framerate.
6228 This was the first and most primitive inverse telecine filter to be
6229 added to MPlayer/\:MEncoder.
6230 It works by latching onto the telecine 3:2 pattern and following it as
6232 This makes it suitable for perfectly-telecined material, even in the
6233 presence of a fair degree of noise, but it will fail in the presence
6234 of complex post-telecine edits.
6235 Development on this filter is no longer taking place, as ivtc, pullup,
6236 and filmdint are better for most applications.
6237 The following arguments (see syntax above) may be used to control
6241 Set the frame dropping mode.
6243 0: Do not drop frames to maintain fixed output framerate (default).
6245 1: Always drop a frame when there have been no drops or telecine
6246 merges in the past 5 frames.
6248 2: Always maintain exact 5:4 input to output frame ratio.
6251 Use mode 1 or 2 with MEncoder.
6256 0: Fixed pattern with initial frame number specified by <fr>.
6258 1: aggressive search for telecine pattern (default)
6261 Set initial frame number in sequence.
6262 0\-2 are the three clean progressive frames; 3 and 4 are the two
6264 The default, \-1, means 'not in telecine sequence'.
6265 The number specified here is the type for the imaginary previous
6266 frame before the movie starts.
6267 .IPs "<t0>, <t1>, <t2>, <t3>"
6268 Threshold values to be used in certain modes.
6273 Experimental 'stateless' inverse telecine filter.
6274 Rather than trying to lock on to a pattern like the detc filter does,
6275 ivtc makes its decisions independently for each frame.
6276 This will give much better results for material that has undergone
6277 heavy editing after telecine was applied, but as a result it is not as
6278 forgiving of noisy input, for example TV capture.
6279 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6280 detc filter, and should be used with MEncoder but not with MPlayer.
6281 As with detc, you must specify the correct output framerate (\-ofps
6282 24000/1001) when using MEncoder.
6283 Further development on ivtc has stopped, as the pullup and filmdint
6284 filters appear to be much more accurate.
6287 .B pullup[=jl:jr:jt:jb:sb:mp]
6288 Third-generation pulldown reversal (inverse telecine) filter,
6289 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6290 fps progressive content.
6291 The pullup filter is designed to be much more robust than detc or
6292 ivtc, by taking advantage of future context in making its decisions.
6293 Like ivtc, pullup is stateless in the sense that it does not lock onto
6294 a pattern to follow, but it instead looks forward to the following
6295 fields in order to identify matches and rebuild progressive frames.
6296 It is still under development, but believed to be quite accurate.
6298 .IPs "jl, jr, jt, and jb"
6299 These options set the amount of "junk" to ignore at
6300 the left, right, top, and bottom of the image, respectively.
6301 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6303 The default is 8 pixels on each side.
6305 .IPs "sb (strict breaks)"
6306 Setting this option to 1 will reduce the chances of
6307 pullup generating an occasional mismatched frame, but it may also
6308 cause an excessive number of frames to be dropped during high motion
6310 Conversely, setting it to \-1 will make pullup match fields more
6312 This may help processing of video where there is slight blurring
6313 between the fields, but may also cause there to be interlaced frames
6316 .IPs "mp (metric plane)"
6317 This option may be set to 1 or 2 to use a chroma
6318 plane instead of the luma plane for doing pullup's computations.
6319 This may improve accuracy on very clean source material, but more
6320 likely will decrease accuracy, especially if there is chroma noise
6321 (rainbow effect) or any grayscale video.
6322 The main purpose of setting mp to a chroma plane is to reduce CPU load
6323 and make pullup usable in realtime on slow machines.
6328 Always follow pullup with the softskip filter when encoding to ensure
6329 that pullup is able to see each frame.
6330 Failure to do so will lead to incorrect output and will usually crash,
6331 due to design limitations in the codec/\:filter layer.
6335 .B filmdint[=options]
6336 Inverse telecine filter, similar to the pullup filter above.
6337 It is designed to handle any pulldown pattern, including mixed soft and
6338 hard telecine and limited support for movies that are slowed down or sped
6339 up from their original framerate for TV.
6340 Only the luma plane is used to find the frame breaks.
6341 If a field has no match, it is deinterlaced with simple linear
6343 If the source is MPEG-2, this must be the first filter to allow
6344 access to the field-flags set by the MPEG-2 decoder.
6345 Depending on the source MPEG, you may be fine ignoring this advice, as
6346 long as you do not see lots of "Bottom-first field" warnings.
6347 With no options it does normal inverse telecine, and should be used
6348 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6349 When this filter is used with mplayer, it will result in an uneven
6350 framerate during playback, but it is still generally better than using
6351 pp=lb or no deinterlacing at all.
6352 Multiple options can be specified separated by /.
6354 .IPs crop=<w>:<h>:<x>:<y>
6355 Just like the crop filter, but faster, and works on mixed hard and soft
6356 telecined content as well as when y is not a multiple of 4.
6357 If x or y would require cropping fractional pixels from the chroma
6358 planes, the crop area is extended.
6359 This usually means that x and y must be even.
6360 .IPs io=<ifps>:<ofps>
6361 For each ifps input frames the filter will output ofps frames.
6362 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
6363 This could be used to filter movies that are broadcast on TV at a frame
6364 rate different from their original framerate.
6366 If n is nonzero, the chroma plane is copied unchanged.
6367 This is useful for YV12 sampled TV, which discards one of the chroma
6370 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6371 optimized functions, otherwise, use plain C.
6372 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6373 this option to override auto-detection.
6375 The larger n will speed up the filter at the expense of accuracy.
6376 The default value is n=3.
6377 If n is odd, a frame immediately following a frame marked with the
6378 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6379 will not spend any time on soft-telecined MPEG-2 content.
6380 This is the only effect of this flag if MMX2 or 3DNow! is available.
6381 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6383 If n=2 or 3, the number of luma levels used to find the frame breaks is
6384 reduced from 256 to 128, which results in a faster filter without losing
6386 If n=4 or 5, a faster, but much less accurate metric will be used to
6387 find the frame breaks, which is more likely to misdetect high vertical
6388 detail as interlaced content.
6390 If n is nonzero, print the detailed metrics for each frame.
6391 Useful for debugging.
6393 Deinterlace threshold.
6394 Used during de-interlacing of unmatched frames.
6395 Larger value means less deinterlacing, use n=256 to completely turn off
6399 Threshold for comparing a top and bottom fields.
6402 Threshold to detect temporal change of a field.
6405 Sum of Absolute Difference threshold, default is 64.
6410 This filter works only correct with MEncoder and acts on the MPEG-2 flags
6411 used for soft 3:2 pulldown (soft telecine).
6412 If you want to use the ivtc or detc filter on movies that are partly soft
6413 telecined, inserting this filter before them should make them more reliable.
6417 Inverse telecine for deinterlaced video.
6418 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
6419 using a method that keeps one field and interpolates the other, the result is
6420 a juddering video that has every fourth frame duplicated.
6421 This filter is intended to find and drop those duplicates and restore the
6422 original film framerate.
6423 When using this filter, you must specify \-ofps that is 4/5 of
6424 the fps of the input file and place the softskip later in the
6425 filter chain to make sure that divtc sees all the frames.
6426 Two different modes are available:
6427 One pass mode is the default and is straightforward to use,
6428 but has the disadvantage that any changes in the telecine
6429 phase (lost frames or bad edits) cause momentary judder
6430 until the filter can resync again.
6431 Two pass mode avoids this by analyzing the whole video
6432 beforehand so it will have forward knowledge about the
6433 phase changes and can resync at the exact spot.
6436 correspond to pass one and two of the encoding process.
6437 You must run an extra pass using divtc pass one before the
6438 actual encoding throwing the resulting video away.
6439 Use \-nosound \-ovc raw \-o /dev/null to avoid
6440 wasting CPU power for this pass.
6441 You may add something like crop=2:2:0:0 after divtc
6442 to speed things up even more.
6443 Then use divtc pass two for the actual encoding.
6444 If you use multiple encoder passes, use divtc
6445 pass two for all of them.
6450 .IPs file=<filename>
6451 Set the two pass log filename (default: "framediff.log").
6452 .IPs threshold=<value>
6453 Set the minimum strength the telecine pattern must have for the filter to
6454 believe in it (default: 0.5).
6455 This is used to avoid recognizing false pattern from the parts of the video
6456 that are very dark or very still.
6457 .IPs window=<numframes>
6458 Set the number of past frames to look at when searching for pattern
6460 Longer window improves the reliability of the pattern search, but shorter
6461 window improves the reaction time to the changes in the telecine phase.
6462 This only affects the one pass mode.
6463 The two pass mode currently uses fixed window that extends to both future
6465 .IPs phase=0|1|2|3|4
6466 Sets the initial telecine phase for one pass mode (default: 0).
6467 The two pass mode can see the future, so it is able to use the correct
6468 phase from the beginning, but one pass mode can only guess.
6469 It catches the correct phase when it finds it, but this option can be used
6470 to fix the possible juddering at the beginning.
6471 The first pass of the two pass mode also uses this, so if you save the output
6472 from the first pass, you get constant phase result.
6473 .IPs deghost=<value>
6474 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
6476 If nonzero, deghosting mode is used.
6477 This is for video that has been deinterlaced by blending the fields
6478 together instead of dropping one of the fields.
6479 Deghosting amplifies any compression artifacts in the blended frames, so the
6480 parameter value is used as a threshold to exclude those pixels from
6481 deghosting that differ from the previous frame less than specified value.
6482 If two pass mode is used, then negative value can be used to make the
6483 filter analyze the whole video in the beginning of pass-2 to determine
6484 whether it needs deghosting or not and then select either zero or the
6485 absolute value of the parameter.
6486 Specify this option for pass-2, it makes no difference on pass-1.
6490 .B phase[=t|b|p|a|u|T|B|A|U][:v]
6491 Delay interlaced video by one field time so that the field order
6493 The intended use is to fix PAL movies that have been captured with the
6494 opposite field order to the film-to-video transfer.
6498 Capture field order top-first, transfer bottom-first.
6499 Filter will delay the bottom field.
6501 Capture bottom-first, transfer top-first.
6502 Filter will delay the top field.
6504 Capture and transfer with the same field order.
6505 This mode only exists for the documentation of the other options to refer to,
6506 but if you actually select it, the filter will faithfully do nothing ;-)
6508 Capture field order determined automatically by field flags, transfer opposite.
6509 Filter selects among t and b modes on a frame by frame basis using field flags.
6510 If no field information is available, then this works just like u.
6512 Capture unknown or varying, transfer opposite.
6513 Filter selects among t and b on a frame by frame basis by analyzing the
6514 images and selecting the alternative that produces best match between the
6517 Capture top-first, transfer unknown or varying.
6518 Filter selects among t and p using image analysis.
6520 Capture bottom-first, transfer unknown or varying.
6521 Filter selects among b and p using image analysis.
6523 Capture determined by field flags, transfer unknown or varying.
6524 Filter selects among t, b and p using field flags and image analysis.
6525 If no field information is available, then this works just like U.
6526 This is the default mode.
6528 Both capture and transfer unknown or varying.
6529 Filter selects among t, b and p using image analysis only.
6532 Prints the selected mode for each frame and the average squared difference
6533 between fields for t, b, and p alternatives.
6538 Apply 3:2 'telecine' process to increase framerate by 20%.
6539 This most likely will not work correctly with MPlayer, but it can
6540 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
6541 Both fps options are essential!
6542 (A/V sync will break if they are wrong.)
6543 The optional start parameter tells the filter where in the telecine
6544 pattern to start (0\-3).
6547 .B tinterlace[=mode]
6548 Temporal field interlacing \- merge pairs of frames into an interlaced
6549 frame, halving the framerate.
6550 Even frames are moved into the upper field, odd frames to the lower field.
6551 This can be used to fully reverse the effect of the tfields filter (in mode 0).
6552 Available modes are:
6556 Move odd frames into the upper field, even into the lower field, generating
6557 a full-height frame at half framerate.
6559 Only output odd frames, even frames are dropped; height unchanged.
6561 Only output even frames, odd frames are dropped; height unchanged.
6563 Expand each frame to full height, but pad alternate lines with black;
6564 framerate unchanged.
6566 Interleave even lines from even frames with odd lines from odd frames.
6567 Height unchanged at half framerate.
6572 .B tfields[=mode[:field_dominance]]
6573 Temporal field separation \- split fields into frames, doubling the
6575 Like the telecine filter, tfields will only work properly with
6576 MEncoder, and only if both \-fps and \-ofps are set to the
6577 desired (double) framerate!
6581 0: Leave fields unchanged (will jump/\:flicker).
6583 1: Interpolate missing lines. (The algorithm used might not be so good.)
6585 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
6587 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
6588 .IPs <field_dominance>\ (DEPRECATED)
6590 Only works if the decoder exports the appropriate information and
6591 no other filters which discard that information come before tfields
6592 in the filter chain, otherwise it falls back to 0 (top field first).
6596 1: bottom field first
6599 This option will possibly be removed in a future version.
6600 Use \-field\-dominance instead.
6605 .B yadif=[mode[:field_dominance]]
6606 Yet another deinterlacing filter
6610 0: Output 1 frame for each frame.
6612 1: Output 1 frame for each field.
6614 2: Like 0 but skips spatial interlacing check.
6616 3: Like 1 but skips spatial interlacing check.
6617 .IPs <field_dominance>\ (DEPRECATED)
6618 Operates like tfields.
6621 This option will possibly be removed in a future version.
6622 Use \-field\-dominance instead.
6627 .B mcdeint=[mode[:parity[:qp]]]
6628 Motion compensating deinterlacer.
6629 It needs one field per frame as input and must thus be used together
6630 with tfields=1 or yadif=1/3 or equivalent.
6638 2: slow, iterative motion estimation
6640 3: extra slow, like 2 plus multiple reference frames
6642 0 or 1 selects which field to use (note: no autodetection yet!).
6644 Higher values should result in a smoother motion vector
6645 field but less optimal individual vectors.
6650 .B boxblur=radius:power[:radius:power]
6655 blur filter strength
6657 number of filter applications
6662 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
6667 blur filter strength (~0.1\-4.0) (slower if larger)
6669 prefilter strength (~0.1\-2.0)
6671 maximum difference between pixels to still be considered (~0.1\-100.0)
6676 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
6681 blur filter strength (~0.1\-5.0) (slower if larger)
6683 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
6685 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
6690 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
6691 Correct the perspective of movies not filmed perpendicular to the screen.
6695 coordinates of the top left, top right, bottom left, bottom right corners
6697 linear (0) or cubic resampling (1)
6703 Scale and smooth the image with the 2x scale and interpolate algorithm.
6707 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
6710 .B down3dright[=lines]
6711 Reposition and resize stereoscopic images.
6712 Extracts both stereo fields and places them side by side, resizing
6713 them to maintain the original movie aspect.
6717 number of lines to select from the middle of the image (default: 12)
6722 .B bmovl=hidden:opaque:fifo
6723 The bitmap overlay filter reads bitmaps from a FIFO and displays them
6724 on top of the movie, allowing some transformations on the image.
6725 Also see TOOLS/bmovl-test.c for a small bmovl test program.
6729 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
6731 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
6733 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
6734 controlling application)
6743 .IPs "RGBA32 width height xpos ypos alpha clear"
6744 followed by width*height*4 Bytes of raw RGBA32 data.
6745 .IPs "ABGR32 width height xpos ypos alpha clear"
6746 followed by width*height*4 Bytes of raw ABGR32 data.
6747 .IPs "RGB24 width height xpos ypos alpha clear"
6748 followed by width*height*3 Bytes of raw RGB24 data.
6749 .IPs "BGR24 width height xpos ypos alpha clear"
6750 followed by width*height*3 Bytes of raw BGR24 data.
6751 .IPs "ALPHA width height xpos ypos alpha"
6752 Change alpha transparency of the specified area.
6753 .IPs "CLEAR width height xpos ypos"
6756 Disable all alpha transparency.
6757 Send "ALPHA 0 0 0 0 0" to enable it again.
6770 .IPs "<width>, <height>"
6772 .IPs "<xpos>, <ypos>"
6773 Start blitting at position x/y.
6775 Set alpha difference.
6776 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
6777 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
6781 255: Make everything opaque.
6783 \-255: Make everything transparent.
6786 Clear the framebuffer before blitting.
6788 0: The image will just be blitted on top of the old one, so you do not need to
6789 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
6797 .B framestep=I|[i]step
6798 Renders only every nth frame or every intra frame (keyframe).
6800 If you call the filter with I (uppercase) as the parameter, then
6802 keyframes are rendered.
6803 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
6804 for AVI it means every scene change or every keyint value (see \-lavcopts
6805 keyint= value if you use MEncoder to encode the video).
6807 When a keyframe is found, an 'I!' string followed by a newline character is
6808 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
6809 because it contains the time (in seconds) and frame number of the keyframe
6810 (You can use this information to split the AVI.).
6812 If you call the filter with a numeric parameter 'step' then only one in
6813 every 'step' frames is rendered.
6815 If you put an 'i' (lowercase) before the number then an 'I!' is printed
6816 (like the I parameter).
6818 If you give only the i then nothing is done to the frames, only I! is
6822 .B tile=xtiles:ytiles:output:start:delta
6823 Tile a series of images into a single, bigger image.
6824 If you omit a parameter or use a value less than 0, then the default
6826 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
6827 It is probably a good idea to put the scale filter before the tile :-)
6834 number of tiles on the x axis (default: 5)
6836 number of tiles on the y axis (default: 5)
6838 Render the tile when 'output' number of frames are reached, where 'output'
6839 should be a number less than xtile * ytile.
6840 Missing tiles are left blank.
6841 You could, for example, write an 8 * 7 tile every 50 frames to have one
6842 image every 2 seconds @ 25 fps.
6844 outer border thickness in pixels (default: 2)
6846 inner border thickness in pixels (default: 4)
6851 .B delogo[=x:y:w:h:t]
6852 Suppresses a TV station logo by a simple interpolation of the
6854 Just set a rectangle covering the logo and watch it disappear (and
6855 sometimes something even uglier appear \- your mileage may vary).
6859 top left corner of the logo
6861 width and height of the cleared rectangle
6863 Thickness of the fuzzy edge of the rectangle (added to w and h).
6864 When set to \-1, a green rectangle is drawn on the screen to
6865 simplify finding the right x,y,w,h parameters.
6870 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
6871 Suppresses a TV station logo, using a PGM or PPM image
6872 file to determine which pixels comprise the logo.
6873 The width and height of the image file must match
6874 those of the video stream being processed.
6875 Uses the filter image and a circular blur
6876 algorithm to remove the logo.
6878 .IPs /path/to/logo_bitmap_file_name.pgm
6879 [path] + filename of the filter image.
6883 .B zrmjpeg[=options]
6884 Software YV12 to MJPEG encoder for use with the zr2 video
6887 .IPs maxheight=<h>|maxwidth=<w>
6888 These options set the maximum width and height the zr card
6889 can handle (the MPlayer filter layer currently cannot query those).
6890 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
6891 Use these options to set maxwidth and maxheight automatically to the
6892 values known for card/\:mode combo.
6893 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
6895 Select color or black and white encoding.
6896 Black and white encoding is faster.
6897 Color is the default.
6899 Horizontal decimation 1, 2 or 4.
6901 Vertical decimation 1, 2 or 4.
6903 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
6905 By default, decimation is only performed if the Zoran hardware
6906 can upscale the resulting MJPEG images to the original size.
6907 The option fd instructs the filter to always perform the requested
6913 Allows acquiring screenshots of the movie using slave mode
6914 commands that can be bound to keypresses.
6915 See the slave mode documentation and the INTERACTIVE CONTROL
6916 section for details.
6917 Files named 'shotNNNN.png' will be saved in the working directory,
6918 using the first available number \- no files will be overwritten.
6919 The filter has no overhead when not used and accepts an arbitrary
6920 colorspace, so it is safe to add it to the configuration file.
6925 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
6926 Only useful with the \-ass option.
6931 .IPs "\-vf ass,screenshot"
6932 Moves SSA/ASS rendering before the screenshot filter.
6933 Screenshots taken this way will contain subtitles.
6938 .B blackframe[=amount:threshold]
6939 Detect frames that are (almost) completely black.
6940 Can be useful to detect chapter transitions or commercials.
6941 Output lines consist of the frame number of the detected frame, the
6942 percentage of blackness, the frame type and the frame number of the last
6943 encountered keyframe.
6946 Percentage of the pixels that have to be below the threshold (default: 98).
6948 Threshold below which a pixel value is considered black (default: 32).
6953 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
6956 .B \-audio\-delay <any floating-point number>
6957 Delays either audio or video by setting a delay field in the header
6959 This does not delay either stream while encoding, but the player will
6960 see the delay field and compensate accordingly.
6961 Positive values delay the audio, and negative values delay the video.
6962 Note that this is the exact opposite of the \-delay option.
6963 For example, if a video plays correctly with \-delay 0.2, you can
6964 fix the video with MEncoder by using \-audio\-delay \-0.2.
6966 Currently, this option only works with the default muxer (\-of avi).
6967 If you are using a different muxer, then you must use \-delay instead.
6970 .B \-audio\-density <1\-50>
6971 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
6974 CBR only, VBR ignores this as it puts each packet in a new chunk.
6977 .B \-audio\-preload <0.0\-2.0>
6978 Sets up the audio buffering time interval (default: 0.5s).
6981 .B \-fafmttag <format>
6982 Can be used to override the audio format tag of the output file.
6987 .IPs "\-fafmttag 0x55"
6988 Will have the output file contain 0x55 (mp3) as audio format tag.
6993 .B \-ffourcc <fourcc>
6994 Can be used to override the video fourcc of the output file.
6999 .IPs "\-ffourcc div3"
7000 Will have the output file contain 'div3' as video fourcc.
7005 .B \-force\-avi\-aspect <0.2\-3.0>
7006 Override the aspect stored in the AVI OpenDML vprp header.
7007 This can be used to change the aspect ratio with '\-ovc copy'.
7010 .B \-frameno\-file <filename> (DEPRECATED)
7011 Specify the name of the audio file with framenumber mappings created in
7012 the first (audio only) pass of a special three pass encoding mode.
7015 Using this mode will most likely give you A-V desync.
7017 It is kept for backwards compatibility only and will possibly
7018 be removed in a future version.
7022 Use a more precise, but much slower method for skipping areas.
7023 Areas marked for skipping are not seeked over, instead all
7024 frames are decoded, but only the necessary frames are encoded.
7025 This allows starting at non-keyframe boundaries.
7028 Not guaranteed to work right with '\-ovc copy'.
7031 .B \-info <option1:option2:...> (AVI only)
7032 Specify the info header of the resulting AVI file.
7034 Available options are:
7037 Show this description.
7041 artist or author of the work
7043 original work category
7044 .IPs subject=<value>
7045 contents of the work
7046 .IPs copyright=<value>
7047 copyright information
7048 .IPs srcform=<value>
7049 original format of the digitized material
7050 .IPs comment=<value>
7051 general comments about the work
7056 Do not automatically insert the expand filter into the MEncoder filter chain.
7057 Useful to control at which point of the filter chain subtitles are rendered
7058 when hardcoding subtitles onto a movie.
7062 Do not attempt to encode duplicate frames in duplicate; always output
7063 zero-byte frames to indicate duplicates.
7064 Zero-byte frames will be written anyway unless a filter or encoder
7065 capable of doing duplicate encoding is loaded.
7066 Currently the only such filter is harddup.
7069 .B \-noodml (\-of avi only)
7070 Do not write OpenDML index for AVI files >1GB.
7078 Outputs to the given filename.
7080 If you want a default output filename, you can put this option in the
7081 MEncoder config file.
7084 .B \-oac <codec name>
7085 Encode with the given audio codec (no default set).
7088 Use \-oac help to get a list of available audio codecs.
7094 no encoding, just streamcopy
7096 Encode to uncompressed PCM.
7097 .IPs "\-oac mp3lame"
7098 Encode to MP3 (using LAME).
7100 Encode with a libavcodec codec.
7105 .B \-of <format> (BETA CODE!)
7106 Encode to the specified container format (default: AVI).
7109 Use \-of help to get a list of available container formats.
7117 Encode to MPEG (also see \-mpegopts).
7119 Encode with libavformat muxers (also see \-lavfopts).
7120 .IPs "\-of rawvideo"
7121 raw video stream (no muxing \- one video stream only)
7122 .IPs "\-of rawaudio"
7123 raw audio stream (no muxing \- one audio stream only)
7129 Specify a frames per second (fps) value for the output file,
7130 which can be different from that of the source material.
7131 Must be set for variable fps (ASF, some MOV) and progressive
7132 (30000/1001 fps telecined MPEG) files.
7135 .B \-ovc <codec name>
7136 Encode with the given video codec (no default set).
7139 Use \-ovc help to get a list of available video codecs.
7145 no encoding, just streamcopy
7147 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7149 Encode with a libavcodec codec.
7154 .B \-passlogfile <filename>
7155 Dump first pass information to <filename> instead of the default divx2pass.log
7156 in two pass encoding mode.
7159 .B \-skiplimit <value>
7160 Specify the maximum number of frames that may be skipped after
7161 encoding one frame (\-noskiplimit for unlimited).
7164 .B \-vobsubout <basename>
7165 Specify the basename for the output .idx and .sub files.
7166 This turns off subtitle rendering in the encoded movie and diverts it to
7167 VOBsub subtitle files.
7170 .B \-vobsuboutid <langid>
7171 Specify the language two letter code for the subtitles.
7172 This overrides what is read from the DVD or the .ifo file.
7175 .B \-vobsuboutindex <index>
7176 Specify the index of the subtitles in the output files (default: 0).
7180 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7181 You can specify codec specific encoding parameters using the following
7185 .B \-<codec>opts <option1[=value],option2,...>
7188 Where <codec> may be: lavc, xvidenc, lame, toolame, twolame,
7189 nuv, xvfw, faac, x264enc, mpeg, lavf.
7192 .SS lame (\-lameopts)
7200 variable bitrate method
7223 Also forces CBR mode encoding on subsequent ABR presets modes.
7227 bitrate in kbps (CBR and ABR only)
7231 quality (0 \- highest, 9 \- lowest) (VBR only)
7235 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
7276 Switch on faster encoding on subsequent VBR presets modes.
7277 This results in slightly lower quality and higher bitrates.
7280 .B highpassfreq=<freq>
7281 Set a highpass filtering frequency in Hz.
7282 Frequencies below the specified one will be cut off.
7283 A value of \-1 will disable filtering, a value of 0
7284 will let LAME choose values automatically.
7287 .B lowpassfreq=<freq>
7288 Set a lowpass filtering frequency in Hz.
7289 Frequencies above the specified one will be cut off.
7290 A value of \-1 will disable filtering, a value of 0
7291 will let LAME choose values automatically.
7298 Print additional options and information about presets settings.
7300 VBR encoding, good quality, 150\-180 kbps bitrate range
7302 VBR encoding, high quality, 170\-210 kbps bitrate range
7304 VBR encoding, very high quality, 200\-240 kbps bitrate range
7306 CBR encoding, highest preset quality, 320 kbps bitrate
7308 ABR encoding at average given kbps bitrate
7316 .IPs fast:preset=standard
7317 suitable for most people and most music types and already quite high quality
7319 Encode with ABR presets at a 192 kbps forced constant bitrate.
7321 Encode with ABR presets at a 172 kbps average bitrate.
7323 for people with extremely good hearing and similar equipment
7328 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
7332 In CBR mode this parameter indicates the bitrate in kbps,
7333 when in VBR mode it is the minimum bitrate allowed per frame.
7334 VBR mode will not work with a value below 112.
7337 .B vbr=<\-50\-50> (VBR only)
7338 variability range; if negative the encoder shifts the average bitrate
7339 towards the lower limit, if positive towards the higher.
7340 When set to 0 CBR is used (default).
7343 .B maxvbr=<32\-384> (VBR only)
7344 maximum bitrate allowed per frame, in kbps
7347 .B mode=<stereo | jstereo | mono | dual>
7348 (default: mono for 1-channel audio, stereo otherwise)
7352 psychoacoustic model (default: 2)
7356 Include error protection.
7365 .SS faac (\-faacopts)
7369 average bitrate in kbps (mutually exclusive with quality)
7372 .B quality=<1\-1000>
7373 quality mode, the higher the better (mutually exclusive with br)
7377 object type complexity
7387 LTP (extremely slow)
7393 MPEG version (default: 4)
7397 Enables temporal noise shaping.
7400 .B cutoff=<0\-sampling_rate/2>
7401 cutoff frequency (default: sampling_rate/2)
7405 Stores the bitstream as raw payload with extradata in the container header
7406 (default: 0, corresponds to ADTS).
7407 Do not set this flag if not explicitly required or you will not be able to
7408 remux the audio stream later on.
7413 .SS lavc (\-lavcopts)
7415 Many libavcodec (lavc for short) options are tersely documented.
7416 Read the source for full details.
7421 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
7427 audio codec (default: mp2)
7431 Dolby Digital (AC-3)
7433 Adaptive PCM formats \- see the HTML documentation for details.
7435 Free Lossless Audio Codec (FLAC)
7439 3GPP Adaptive Multi-Rate (AMR) narrow-band
7441 3GPP Adaptive Multi-Rate (AMR) wide-band
7443 Advanced Audio Coding (AAC) \- using FAAC
7445 MPEG-1 audio layer 3 (MP3) \- using LAME
7447 MPEG-1 audio layer 2 (MP2)
7449 PCM formats \- see the HTML documentation for details.
7451 Id Software RoQ DPCM
7453 experimental simple lossy codec
7455 experimental simple lossless codec
7459 Windows Media Audio v1
7461 Windows Media Audio v2
7467 audio bitrate in kbps (default: 224)
7471 Use the specified Windows audio format tag (e.g.\& atag=0x55).
7475 Use only bit exact algorithms (except (I)DCT).
7476 Additionally bit_exact disables several optimizations and thus
7477 should only be used for regression tests, which need binary
7478 identical files even if the encoder version changes.
7479 This also suppresses the user_data header in MPEG-4 streams.
7480 Do not use this option unless you know exactly what you are doing.
7484 Maximum number of threads to use (default: 1).
7485 May have a slight negative effect on motion estimation.
7490 Employ the specified codec (default: mpeg4).
7500 FFmpeg's lossless video codec
7502 nonstandard 20% smaller HuffYUV using YV12
7504 Sorenson H.263 used in Flash Video
7516 x264 H.264/AVC MPEG-4 Part 10
7518 Xvid MPEG-4 Part 2 (ASP)
7534 ID Software RoQ Video
7536 an old RealVideo codec
7537 .IPs "snow (also see: vstrict)"
7538 FFmpeg's experimental wavelet-based codec
7540 Apple Sorenson Video 1
7542 Windows Media Video, version 1 (AKA WMV7)
7544 Windows Media Video, version 2 (AKA WMV8)
7550 minimum quantizer (pass 1/2)
7553 Not recommended (much larger file, little quality difference and weird side
7554 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
7555 resulting in lower quality and some decoders will not be able to decode it).
7557 Recommended for normal mpeg4/\:mpeg1video encoding (default).
7559 Recommended for h263(p)/\:msmpeg4.
7560 The reason for preferring 3 over 2 is that 2 could lead to overflows.
7561 (This will be fixed for h263(p) by changing the quantizer per MB in
7562 the future, msmpeg4 cannot be fixed as it does not support that.)
7566 .B lmin=<0.01\-255.0>
7567 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
7568 Lavc will rarely use quantizers below the value of lmin.
7569 Lowering lmin will make lavc more likely to choose lower quantizers for
7570 some frames, but not lower than the value of vqmin.
7571 Likewise, raising lmin will make lavc less likely to choose low
7572 quantizers, even if vqmin would have allowed them.
7573 You probably want to set lmin approximately equal to vqmin.
7574 When adaptive quantization is in use, changing lmin/lmax may have less
7575 of an effect; see mblmin/mblmax.
7579 .B lmax=<0.01\-255.0>
7580 maximum Lagrange multiplier for ratecontrol (default: 31.0)
7584 .B mblmin=<0.01\-255.0>
7585 Minimum macroblock-level Lagrange multiplier for ratecontrol
7587 This parameter affects adaptive quantization options like qprd,
7592 .B mblmax=<0.01\-255.0>
7593 Maximum macroblock-level Lagrange multiplier for ratecontrol
7599 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
7600 A lower value means better quality but larger files (default: \-1).
7601 In case of snow codec, value 0 means lossless encoding.
7602 Since the other codecs do not support this, vqscale=0 will have an undefined
7604 1 is not recommended (see vqmin for details).
7608 Maximum quantizer (pass 1/2), 10\-31 should be a sane range (default: 31).
7620 maximum quantizer difference between consecutive I- or P-frames
7621 (pass 1/2) (default: 3)
7624 .B vmax_b_frames=<0\-4>
7625 maximum number of B-frames between non-B-frames:
7629 no B-frames (default)
7631 sane range for MPEG-4
7637 motion estimation method.
7638 Available methods are:
7642 none (very low quality)
7644 full (slow, currently unmaintained and disabled)
7646 log (low quality, currently unmaintained and disabled)
7648 phods (low quality, currently unmaintained and disabled)
7650 EPZS: size=1 diamond, size can be adjusted with the *dia options
7653 X1 (experimental, currently aliased to EPZS)
7655 iter (iterative overlapped block, only used in snow)
7662 0\-3 currently ignores the amount of bits spent,
7663 so quality may be low.
7667 .B me_range=<0\-9999>
7668 motion estimation search range (default: 0 (unlimited))
7671 .B mbd=<0\-2> (see also *cmp, qpel)
7672 Macroblock decision algorithm (high quality mode), encode each macro
7673 block in all modes and choose the best.
7674 This is slow but results in better quality and file size.
7675 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
7677 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
7678 however, a slower but better half-pel motion search will be used,
7679 regardless of what mbd is set to.
7680 If qpel is set, quarter-pel motion search will be used regardless.
7684 Use comparison function given by mbcmp (default).
7686 Select the MB mode which needs the fewest bits (=vhq).
7688 Select the MB mode which has the best rate distortion.
7694 Same as mbd=1, kept for compatibility reasons.
7698 Allow 4 motion vectors per macroblock (slightly better quality).
7699 Works better if used with mbd>0.
7703 overlapped block motion compensation (H.263+)
7707 loop filter (H.263+)
7708 note, this is broken
7711 .B inter_threshold <\-1000\-1000>
7712 Does absolutely nothing at the moment.
7716 maximum interval between keyframes in frames (default: 250 or one
7717 keyframe every ten seconds in a 25fps movie.
7718 This is the recommended default for MPEG-4).
7719 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
7720 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
7721 keyframes need more space than other frames, so larger numbers here mean
7722 slightly smaller files but less precise seeking.
7723 0 is equivalent to 1, which makes every frame a keyframe.
7724 Values >300 are not recommended as the quality might be bad depending upon
7725 decoder, encoder and luck.
7726 It is common for MPEG-1/2 to use values <=30.
7729 .B sc_threshold=<\-1000000000\-1000000000>
7730 Threshold for scene change detection.
7731 A keyframe is inserted by libavcodec when it detects a scene change.
7732 You can specify the sensitivity of the detection with this option.
7733 \-1000000000 means there is a scene change detected at every frame,
7734 1000000000 means no scene changes are detected (default: 0).
7737 .B sc_factor=<any positive integer>
7738 Causes frames with higher quantizers to be more likely to trigger a
7739 scene change detection and make libavcodec use an I-frame (default: 1).
7740 1\-16 is a sane range.
7741 Values between 2 and 6 may yield increasing PSNR (up to approximately
7742 0.04 dB) and better placement of I-frames in high-motion scenes.
7743 Higher values than 6 may give very slightly better PSNR (approximately
7744 0.01 dB more than sc_factor=6), but noticably worse visual quality.
7747 .B vb_strategy=<0\-2> (pass one only)
7748 strategy to choose between I/P/B-frames:
7752 Always use the maximum number of B-frames (default).
7754 Avoid B-frames in high motion scenes.
7755 See the b_sensitivity option to tune this strategy.
7757 Places B-frames more or less optimally to yield maximum quality (slower).
7758 You may want to reduce the speed impact of this option by tuning the
7764 .B b_sensitivity=<any integer greater than 0>
7765 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
7766 B-frames (default: 40).
7767 Lower sensitivities will result in more B-frames.
7768 Using more B-frames usually improves PSNR, but too many B-frames can
7769 hurt quality in high-motion scenes.
7770 Unless there is an extremely high amount of motion, b_sensitivity can
7771 safely be lowered below the default; 10 is a reasonable value in most
7775 .B brd_scale=<0\-10>
7776 Downscales frames for dynamic B-frame decision (default: 0).
7777 Each time brd_scale is increased by one, the frame dimensions are
7778 divided by two, which improves speed by a factor of four.
7779 Both dimensions of the fully downscaled frame must be even numbers, so
7780 brd_scale=1 requires the original dimensions to be multiples of four,
7781 brd_scale=2 requires multiples of eight, etc.
7782 In other words, the dimensions of the original frame must both be
7783 divisible by 2^(brd_scale+1) with no remainder.
7786 .B bidir_refine=<0\-4>
7787 Refine the two motion vectors used in bidirectional macroblocks,
7788 rather than re-using vectors from the forward and backward searches.
7789 This option has no effect without B-frames.
7795 Use a wider search (larger values are slower).
7801 Activates internal two (or more) pass mode, only specify if you wish to
7802 use two (or more) pass encoding.
7806 first pass (also see turbo)
7810 Nth pass (second and subsequent passes of N-pass encoding)
7813 Here is how it works, and how to use it:
7815 The first pass (vpass=1) writes the statistics file.
7816 You might want to deactivate some CPU-hungry options, like "turbo"
7819 In two pass mode, the second pass (vpass=2) reads the statistics file and
7820 bases ratecontrol decisions on it.
7822 In N-pass mode, the second pass (vpass=3, that is not a typo)
7823 does both: It first reads the statistics, then overwrites them.
7824 You might want to backup divx2pass.log before doing this if there is
7825 any possibility that you will have to cancel MEncoder.
7826 You can use all encoding options, except very CPU-hungry options like "qns".
7828 You can run this same pass over and over to refine the encode.
7829 Each subsequent pass will use the statistics from the previous pass to improve.
7830 The final pass can include any CPU-hungry encoding options.
7832 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
7834 If you want a 3 or more pass encode, use vpass=1 for the first pass
7835 and then vpass=3 and then vpass=3 again and again until you are
7836 satisfied with the encode.
7848 Encodes with an optimal Huffman table based upon statistics
7849 from the first pass.
7854 .B turbo (two pass only)
7855 Dramatically speeds up pass one using faster algorithms and disabling
7856 CPU-intensive options.
7857 This will probably reduce global PSNR a little bit (around 0.01dB) and
7858 change individual frame type and PSNR a little bit more (up to 0.03dB).
7862 Store movie aspect internally, just like with MPEG files.
7863 Much nicer than rescaling, because quality is not decreased.
7864 Only MPlayer will play these files correctly, other players will display
7865 them with wrong aspect.
7866 The aspect parameter can be given as a ratio or a floating point number.
7873 .IPs "aspect=16/9 or aspect=1.78"
7879 Same as the aspect option, but automatically computes aspect, taking
7880 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
7882 Does not incur a performance penalty, so you can safely leave it
7887 Specify bitrate (pass 1/2) (default: 800).
7895 .IPs 16001\-24000000
7902 approximated file size tolerance in kbit.
7903 1000\-100000 is a sane range.
7904 (warning: 1kbit = 1000 bits)
7908 vratetol should not be too large during the second pass or there might
7909 be problems if vrc_(min|max)rate is used.
7912 .B vrc_maxrate=<value>
7913 maximum bitrate in kbit/\:sec (pass 1/2)
7914 (default: 0, unlimited)
7917 .B vrc_minrate=<value>
7918 minimum bitrate in kbit/\:sec (pass 1/2)
7919 (default: 0, unlimited)
7922 .B vrc_buf_size=<value>
7923 buffer size in kbit (pass 1/2).
7924 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
7925 917 for SVCD and 1835 for DVD.
7928 .B vrc_buf_aggressivity
7934 Note that some of the ratecontrol-affecting options will have no effect
7935 if vrc_strategy is not set to 0.
7939 Use internal lavc ratecontrol (default).
7941 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
7942 with support for Xvid 1.1 or higher).
7947 .B vb_qfactor=<\-31.0\-31.0>
7948 quantizer factor between B- and non-B-frames (pass 1/2) (default: 1.25)
7951 .B vi_qfactor=<\-31.0\-31.0>
7952 quantizer factor between I- and non-I-frames (pass 1/2) (default: 0.8)
7955 .B vb_qoffset=<\-31.0\-31.0>
7956 quantizer offset between B- and non-B-frames (pass 1/2) (default: 1.25)
7959 .B vi_qoffset=<\-31.0\-31.0>
7960 (pass 1/2) (default: 0.0)
7962 if v{b|i}_qfactor > 0
7964 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
7968 do normal ratecontrol (do not lock to next P-frame quantizer) and
7969 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
7972 To do constant quantizer encoding with different quantizers for
7973 I/P- and B-frames you can use:
7974 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
7977 .B vqblur=<0.0\-1.0> (pass one)
7978 Quantizer blur (default: 0.5), larger values will average the
7979 quantizer more over time (slower change).
7983 Quantizer blur disabled.
7985 Average the quantizer over all previous frames.
7990 .B vqblur=<0.0\-99.0> (pass two)
7991 Quantizer gaussian blur (default: 0.5), larger values will average
7992 the quantizer more over time (slower change).
7995 .B vqcomp=<0.0\-1.0>
7996 Quantizer compression, vrc_eq depends upon this (pass 1/2) (default: 0.5).
7997 For instance, assuming the default rate control equation is used,
7998 if vqcomp=1.0, the ratecontrol allocates to each frame the number of bits
7999 needed to encode them all at the same QP.
8000 If vqcomp=0.0, the ratecontrol allocates the same number of bits to each
8001 frame, i.e. strict CBR.
8003 Those are extreme settings and should never be used.
8004 Perceptual quality will be optimal somewhere in between these two extremes.
8007 .B vrc_eq=<equation>
8008 main ratecontrol equation (pass 1/2)
8015 .IPs 1+(tex/\:avgTex-1)*qComp
8016 approximately the equation of the old ratecontrol code
8018 with qcomp 0.5 or something like that (default)
8035 intra, non-intra texture complexity
8037 average texture complexity
8039 average intra texture complexity in I-frames
8041 average intra texture complexity in P-frames
8043 average non-intra texture complexity in P-frames
8045 average non-intra texture complexity in B-frames
8047 bits used for motion vectors
8049 maximum length of motion vector in log2 scale
8051 number of intra macroblocks / number of macroblocks
8057 qcomp from the command line
8058 .IPs "isI, isP, isB"
8059 Is 1 if picture type is I/P/B else 0.
8061 See your favorite math book.
8068 .IPs max(a,b),min(a,b)
8071 is 1 if a>b, 0 otherwise
8073 is 1 if a<b, 0 otherwise
8075 is 1 if a==b, 0 otherwise
8076 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8080 .B vrc_override=<options>
8081 User specified quality for specific parts (ending, credits, ...) (pass 1/2).
8082 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8083 <end-frame>, <quality>[/...]]:
8086 .IPs "quality (2\-31)"
8088 .IPs "quality (\-500\-0)"
8089 quality correction in %
8094 .B vrc_init_cplx=<0\-1000>
8095 initial complexity (pass 1)
8098 .B vrc_init_occupancy=<0.0\-1.0>
8099 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8103 Specify how to keep the quantizer between qmin and qmax (pass 1/2).
8109 Use a nice differentiable function (default).
8114 .B vlelim=<\-1000\-1000>
8115 Sets single coefficient elimination threshold for luminance.
8116 Negative values will also consider the DC coefficient (should be at least \-4
8117 or lower for encoding at quant=1):
8128 .B vcelim=<\-1000\-1000>
8129 Sets single coefficient elimination threshold for chrominance.
8130 Negative values will also consider the DC coefficient (should be at least \-4
8131 or lower for encoding at quant=1):
8142 .B vstrict=<\-2|\-1|0|1>
8143 strict standard compliance
8149 Only recommended if you want to feed the output into the
8150 MPEG-4 reference decoder.
8152 Allow libavcodec specific extensions (default).
8154 Enables experimental codecs and features which may not be playable
8155 with future MPlayer versions (snow).
8162 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8163 unreliable channels (e.g.\& streaming over the internet).
8164 Each video packet will be encoded in 3 separate partitions:
8169 .IPs "2. DC coefficients"
8171 .IPs "3. AC coefficients"
8176 MV & DC are most important, losing them looks far worse than losing
8177 the AC and the 1. & 2. partition.
8178 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8179 will hit the AC partition much more often than the MV & DC partitions.
8180 Thus, the picture will look better with partitioning than without,
8181 as without partitioning an error will trash AC/\:DC/\:MV equally.
8185 .B vpsize=<0\-10000> (also see vdpart)
8186 Video packet size, improves error-resistance.
8198 slice structured mode for H.263+
8202 grayscale only encoding (faster)
8210 Automatically select a good one (default).
8231 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
8235 Automatically select a good one (default).
8237 JPEG reference integer
8243 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
8274 .B lumi_mask=<0.0\-1.0>
8275 Luminance masking is a 'psychosensory' setting that is supposed to
8276 make use of the fact that the human eye tends to notice fewer details
8277 in very bright parts of the picture.
8278 Luminance masking compresses bright areas stronger than medium ones,
8279 so it will save bits that can be spent again on other frames, raising
8280 overall subjective quality, while possibly reducing PSNR.
8283 Be careful, overly large values can cause disastrous things.
8286 Large values might look good on some monitors but may look horrible
8298 .B dark_mask=<0.0\-1.0>
8299 Darkness masking is a 'psychosensory' setting that is supposed to
8300 make use of the fact that the human eye tends to notice fewer details
8301 in very dark parts of the picture.
8302 Darkness masking compresses dark areas stronger than medium ones,
8303 so it will save bits that can be spent again on other frames, raising
8304 overall subjective quality, while possibly reducing PSNR.
8307 Be careful, overly large values can cause disastrous things.
8310 Large values might look good on some monitors but may look horrible
8311 on other monitors / TV / TFT.
8322 .B tcplx_mask=<0.0\-1.0>
8323 Temporal complexity masking (default: 0.0 (disabled)).
8324 Imagine a scene with a bird flying across the whole scene; tcplx_mask
8325 will raise the quantizers of the bird's macroblocks (thus decreasing their
8326 quality), as the human eye usually does not have time to see all the bird's
8328 Be warned that if the masked object stops (e.g.\& the bird lands) it is
8329 likely to look horrible for a short period of time, until the encoder
8330 figures out that the object is not moving and needs refined blocks.
8331 The saved bits will be spent on other parts of the video, which may increase
8332 subjective quality, provided that tcplx_mask is carefully chosen.
8335 .B scplx_mask=<0.0\-1.0>
8336 Spatial complexity masking.
8337 Larger values help against blockiness, if no deblocking filter is used for
8338 decoding, which is maybe not a good idea.
8340 Imagine a scene with grass (which usually has great spatial complexity),
8341 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
8342 macroblocks, thus decreasing its quality, in order to spend more bits on
8343 the sky and the house.
8346 Crop any black borders completely as they will reduce the quality
8347 of the macroblocks (also applies without scplx_mask).
8359 This setting does not have the same effect as using a custom matrix that
8360 would compress high frequencies harder, as scplx_mask will reduce the
8361 quality of P blocks even if only DC is changing.
8362 The result of scplx_mask will probably not look as good.
8366 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
8367 Reduces the quality of inter blocks.
8368 This is equivalent to increasing the quality of intra blocks, because the
8369 same average bitrate will be distributed by the rate controller to the
8370 whole video sequence (default: 0.0 (disabled)).
8371 p_mask=1.0 doubles the bits allocated to each intra block.
8374 .B border_mask=<0.0\-1.0>
8375 border-processing for MPEG-style encoders.
8376 Border processing increases the quantizer for macroblocks which are less
8377 than 1/5th of the frame width/height away from the frame border,
8378 since they are often visually less important.
8382 Normalize adaptive quantization (experimental).
8383 When using adaptive quantization (*_mask), the average per-MB quantizer may no
8384 longer match the requested frame-level quantizer.
8385 Naq will attempt to adjust the per-MB quantizers to maintain the proper
8394 Use interlaced motion estimation (mutually exclusive with qpel).
8398 Use alternative scantable.
8401 .B "top=<\-1\-1>\ \ \ "
8422 for HuffYUV, lossless JPEG, dv and ffv1
8424 for lossless JPEG, dv and ffv1
8426 for lossless JPEG, ffv1 and svq1
8428 for lossless JPEG and ffv1
8440 plane/\:gradient prediction
8458 plane/\:gradient prediction
8470 vlc coding (Golomb-Rice)
8472 arithmetic coding (CABAC)
8494 predetermined Huffman tables (builtin or two pass)
8496 adaptive Huffman tables
8502 Use quarter pel motion compensation (mutually exclusive with ilme).
8505 This seems only useful for high bitrate encodings.
8509 Sets the comparison function for the macroblock decision, has only
8514 sum of absolute differences, fast (default)
8516 sum of squared errors
8518 sum of absolute Hadamard transformed differences
8520 sum of absolute DCT transformed differences
8522 sum of squared quantization errors (avoid, low quality)
8524 number of bits needed for the block
8526 rate distortion optimal, slow
8530 sum of absolute vertical differences
8532 sum of squared vertical differences
8534 noise preserving sum of squared differences
8536 5/3 wavelet, only used in snow
8538 9/7 wavelet, only used in snow
8540 Also use chroma, currently does not work (correctly) with B-frames.
8545 .B ildctcmp=<0\-2000>
8546 Sets the comparison function for interlaced DCT decision
8547 (see mbcmp for available comparison functions).
8551 Sets the comparison function for motion estimation pre pass
8552 (see mbcmp for available comparison functions) (default: 0).
8556 Sets the comparison function for full pel motion estimation
8557 (see mbcmp for available comparison functions) (default: 0).
8561 Sets the comparison function for sub pel motion estimation
8562 (see mbcmp for available comparison functions) (default: 0).
8565 .B skipcmp=<0\-2000>
8566 FIXME: Document this.
8569 .B nssew=<0\-1000000>
8570 This setting controls NSSE weight, where larger weights will result in
8572 0 NSSE is identical to SSE
8573 You may find this useful if you prefer to keep some noise in your encoded
8574 video rather than filtering it away before encoding (default: 8).
8578 diamond type and size for motion estimation pre-pass
8582 Diamond type & size for motion estimation.
8583 Motion search is an iterative process.
8584 Using a small diamond does not limit the search to finding only small
8586 It is just somewhat more likely to stop before finding the very best motion
8587 vector, especially when noise is involved.
8588 Bigger diamonds allow a wider search for the best motion vector, thus are
8589 slower but result in better quality.
8591 Big normal diamonds are better quality than shape-adaptive diamonds.
8593 Shape-adaptive diamonds are a good tradeoff between speed and quality.
8596 The sizes of the normal diamonds and shape adaptive ones do not have
8600 shape adaptive (fast) diamond with size 3
8602 shape adaptive (fast) diamond with size 2
8604 uneven multi-hexagon search (slow)
8606 normal size=1 diamond (default) =EPZS type diamond
8614 normal size=2 diamond
8627 Trellis searched quantization.
8628 This will find the optimal encoding for each 8x8 block.
8629 Trellis searched quantization is quite simply an optimal quantization in
8630 the PSNR versus bitrate sense (Assuming that there would be no rounding
8631 errors introduced by the IDCT, which is obviously not the case.).
8632 It simply finds a block for the minimum of error and lambda*bits.
8636 quantization parameter (QP) dependent constant
8638 amount of bits needed to encode the block
8640 sum of squared errors of the quantization
8646 Rate distorted optimal coded block pattern.
8647 Will select the coded block pattern which minimizes distortion + lambda*rate.
8648 This can only be used together with trellis quantization.
8652 Try to encode each MB with MV=<0,0> and choose the better one.
8653 This has no effect if mbd=0.
8656 .B mv0_threshold=<any non-negative integer>
8657 When surrounding motion vectors are <0,0> and the motion estimation
8658 score of the current block is less than mv0_threshold, <0,0> is used for
8659 the motion vector and further motion estimation is skipped (default:
8661 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
8662 possibly make the encoded video look slightly better; raising
8663 mv0_threshold past 320 results in diminished PSNR and visual quality.
8664 Higher values speed up encoding very slightly (usually less than 1%,
8665 depending on the other options used).
8668 This option does not require mv0 to be enabled.
8671 .B qprd (mbd=2 only)
8672 rate distorted optimal quantization parameter (QP) for the given
8673 lambda of each macroblock
8676 .B last_pred=<0\-99>
8677 amount of motion predictors from the previous frame
8683 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
8690 motion estimation pre-pass
8696 only after I-frames (default)
8704 subpel refinement quality (for qpel) (default: 8 (high quality))
8707 This has a significant effect on speed.
8711 number of reference frames to consider for motion compensation
8712 (Snow only) (default: 1)
8716 print the PSNR (peak signal to noise ratio) for the whole video after encoding
8717 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
8718 Returned values are in dB (decibel), the higher the better.
8722 Use MPEG quantizers instead of H.263.
8726 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
8727 This will improve quality very slightly (around 0.02 dB PSNR) and slow
8728 down encoding very slightly (about 1%).
8731 vqmin should be 8 or larger for H.263+ AIC.
8735 alternative inter vlc for H.263+
8739 unlimited MVs (H.263+ only)
8740 Allows encoding of arbitrarily long MVs.
8743 .B ibias=<\-256\-256>
8744 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
8745 H.263 style quantizer default: 0)
8748 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
8749 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
8752 .B pbias=<\-256\-256>
8753 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
8754 H.263 style quantizer default: \-64)
8757 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
8758 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
8761 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
8765 Noise reduction, 0 means disabled.
8766 0\-600 is a useful range for typical content, but you may want to turn it
8767 up a bit more for very noisy content (default: 0).
8768 Given its small impact on speed, you might want to prefer to use this over
8769 filtering noise away with video filters like denoise3d or hqdn3d.
8773 Quantizer noise shaping.
8774 Rather than choosing quantization to most closely match the source video
8775 in the PSNR sense, it chooses quantization such that noise (usually ringing)
8776 will be masked by similar-frequency content in the image.
8777 Larger values are slower but may not result in better quality.
8778 This can and should be used together with trellis quantization, in which case
8779 the trellis quantization (optimal for constant weight) will be used as
8780 startpoint for the iterative search.
8786 Only lower the absolute value of coefficients.
8788 Only change coefficients before the last non-zero coefficient + 1.
8795 .B inter_matrix=<comma separated matrix>
8796 Use custom inter matrix.
8797 It needs a comma separated string of 64 integers.
8800 .B intra_matrix=<comma separated matrix>
8801 Use custom intra matrix.
8802 It needs a comma separated string of 64 integers.
8806 experimental quantizer modulation
8810 experimental quantizer modulation
8814 intra DC precision in bits (default: 8).
8815 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
8818 .B cgop (also see sc_threshold)
8820 Currently it only works if scene change detection is disabled
8821 (sc_threshold=1000000000).
8825 Sets the low delay flag for MPEG-1/2 (disables B-frames).
8829 Control writing global video headers.
8833 Codec decides where to write global headers (default).
8835 Write global headers only in extradata (needed for .mp4/MOV/NUT).
8837 Write global headers only in front of keyframes.
8845 Same as vglobal for audio headers.
8849 Set CodecContext Level.
8850 Use 31 or 41 to play video on a Playstation 3.
8853 .B skip_exp=<0\-1000000>
8854 FIXME: Document this.
8857 .B skip_factor=<0\-1000000>
8858 FIXME: Document this.
8861 .B skip_threshold=<0\-1000000>
8862 FIXME: Document this.
8867 Nuppel video is based on RTJPEG and LZO.
8868 By default frames are first encoded with RTJPEG and then compressed with LZO,
8869 but it is possible to disable either or both of the two passes.
8870 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
8871 or the default LZO compressed RTJPEG.
8874 The nuvrec documentation contains some advice and examples about the
8875 settings to use for the most common TV encodings.
8879 chrominance threshold (default: 1)
8883 luminance threshold (default: 1)
8887 Enable LZO compression (default).
8891 Disable LZO compression.
8895 quality level (default: 255)
8899 Disable RTJPEG encoding.
8903 Enable RTJPEG encoding (default).
8906 .SS xvidenc (\-xvidencopts)
8908 There are three modes available: constant bitrate (CBR), fixed quantizer and
8913 Specify the pass in two pass mode.
8916 .B turbo (two pass only)
8917 Dramatically speeds up pass one using faster algorithms and disabling
8918 CPU-intensive options.
8919 This will probably reduce global PSNR a little bit and change individual
8920 frame type and PSNR a little bit more.
8923 .B bitrate=<value> (CBR or two pass mode)
8924 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
8926 If <value> is negative, Xvid will use its absolute value as the target size
8927 (in kBytes) of the video and compute the associated bitrate automagically
8928 (default: 687 kbits/s).
8931 .B fixed_quant=<1\-31>
8932 Switch to fixed quantizer mode and specify the quantizer to be used.
8935 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
8936 User specified quality for specific parts (ending, credits, ...).
8937 Each zone is <start-frame>,<mode>,<value> where <mode> may be
8941 Constant quantizer override, where value=<2.0\-31.0>
8942 represents the quantizer value.
8944 Ratecontrol weight override, where value=<0.01\-2.00>
8945 represents the quality correction in %.
8954 .IPs zones=90000,q,20
8955 Encodes all frames starting with frame 90000 at constant quantizer 20.
8956 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
8957 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
8958 up to the end at constant quantizer 20.
8959 Note that the second zone is needed to delimit the first zone, as
8960 without it everything up until frame 89999 would be encoded at 10%
8966 .B me_quality=<0\-6>
8967 This option controls the motion estimation subsystem.
8968 The higher the value, the more precise the estimation should be (default: 6).
8969 The more precise the motion estimation is, the more bits can be saved.
8970 Precision is gained at the expense of CPU time so decrease this setting if
8971 you need realtime encoding.
8975 MPEG-4 uses a half pixel precision for its motion search by default.
8976 The standard proposes a mode where encoders are allowed to use quarter
8978 This option usually results in a sharper image.
8979 Unfortunately it has a great impact on bitrate and sometimes the
8980 higher bitrate use will prevent it from giving a better image
8981 quality at a fixed bitrate.
8982 It is better to test with and without this option and see whether it
8983 is worth activating.
8987 Enable Global Motion Compensation, which makes Xvid generate special
8988 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
8989 Whether or not the use of this option will save bits is highly
8990 dependent on the source material.
8994 Trellis Quantization is a kind of adaptive quantization method that
8995 saves bits by modifying quantized coefficients to make them more
8996 compressible by the entropy encoder.
8997 Its impact on quality is good, and if VHQ uses too much CPU for you,
8998 this setting can be a good alternative to save a few bits (and gain
8999 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9003 Activate this if your encoded sequence is an anime/\:cartoon.
9004 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9005 frame types and motion vectors for flat looking cartoons.
9009 The usual motion estimation algorithm uses only the luminance information to
9010 find the best motion vector.
9011 However for some video material, using the chroma planes can help find
9013 This setting toggles the use of chroma planes for motion estimation
9018 Enable a chroma optimizer prefilter.
9019 It will do some extra magic on color information to minimize the
9020 stepped-stairs effect on edges.
9021 It will improve quality at the cost of encoding speed.
9022 It reduces PSNR by nature, as the mathematical deviation to the original
9023 picture will get bigger, but the subjective image quality will raise.
9024 Since it works with color information, you might want to turn it off when
9025 encoding in grayscale.
9029 Activates high-quality prediction of AC coefficients for intra frames from
9030 neighbor blocks (default: on).
9034 The motion search algorithm is based on a search in the usual color domain
9035 and tries to find a motion vector that minimizes the difference between the
9036 reference frame and the encoded frame.
9037 With this setting activated, Xvid will also use the frequency domain (DCT)
9038 to search for a motion vector that minimizes not only the spatial
9039 difference but also the encoding length of the block.
9046 mode decision (inter/\:intra MB) (default)
9058 Adaptive quantization allows the macroblock quantizers to vary inside
9060 This is a 'psychosensory' setting that is supposed to make use of the
9061 fact that the human eye tends to notice fewer details in very bright
9062 and very dark parts of the picture.
9063 It compresses those areas more strongly than medium ones, which will
9064 save bits that can be spent again on other frames, raising overall
9065 subjective quality and possibly reducing PSNR.
9069 Make Xvid discard chroma planes so the encoded video is grayscale only.
9070 Note that this does not speed up encoding, it just prevents chroma data
9071 from being written in the last stage of encoding.
9075 Encode the fields of interlaced video material.
9076 Turn this option on for interlaced content.
9079 Should you rescale the video, you would need an interlace-aware resizer,
9080 which you can activate with \-vf scale=<width>:<height>:1.
9083 .B min_iquant=<0\-31>
9084 minimum I-frame quantizer (default: 2)
9087 .B max_iquant=<0\-31>
9088 maximum I-frame quantizer (default: 31)
9091 .B min_pquant=<0\-31>
9092 minimum P-frame quantizer (default: 2)
9095 .B max_pquant=<0\-31>
9096 maximum P-frame quantizer (default: 31)
9099 .B min_bquant=<0\-31>
9100 minimum B-frame quantizer (default: 2)
9103 .B max_bquant=<0\-31>
9104 maximum B-frame quantizer (default: 31)
9107 .B min_key_interval=<value> (two pass only)
9108 minimum interval between keyframes (default: 0)
9111 .B max_key_interval=<value>
9112 maximum interval between keyframes (default: 10*fps)
9115 .B quant_type=<h263|mpeg>
9116 Sets the type of quantizer to use.
9117 For high bitrates, you will find that MPEG quantization preserves more detail.
9118 For low bitrates, the smoothing of H.263 will give you less block noise.
9119 When using custom matrices, MPEG quantization
9124 .B quant_intra_matrix=<filename>
9125 Load a custom intra matrix file.
9126 You can build such a file with xvid4conf's matrix editor.
9129 .B quant_inter_matrix=<filename>
9130 Load a custom inter matrix file.
9131 You can build such a file with xvid4conf's matrix editor.
9134 .B keyframe_boost=<0\-1000> (two pass mode only)
9135 Shift some bits from the pool for other frame types to intra frames,
9136 thus improving keyframe quality.
9137 This amount is an extra percentage, so a value of 10 will give
9138 your keyframes 10% more bits than normal
9142 .B kfthreshold=<value> (two pass mode only)
9143 Works together with kfreduction.
9144 Determines the minimum distance below which you consider that
9145 two frames are considered consecutive and treated differently
9146 according to kfreduction
9150 .B kfreduction=<0\-100> (two pass mode only)
9151 The above two settings can be used to adjust the size of keyframes that
9152 you consider too close to the first (in a row).
9153 kfthreshold sets the range in which keyframes are reduced, and
9154 kfreduction determines the bitrate reduction they get.
9155 The last I-frame will get treated normally
9159 .B max_bframes=<0\-4>
9160 Maximum number of B-frames to put between I/P-frames (default: 2).
9163 .B bquant_ratio=<0\-1000>
9164 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9167 .B bquant_offset=<\-1000\-1000>
9168 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9171 .B bf_threshold=<\-255\-255>
9172 This setting allows you to specify what priority to place on the use of
9174 The higher the value, the higher the probability of B-frames being used
9176 Do not forget that B-frames usually have a higher quantizer, and therefore
9177 aggressive production of B-frames may cause worse visual quality.
9181 This option tells Xvid to close every GOP (Group Of Pictures bounded
9182 by two I-frames), which makes GOPs independent from each other.
9183 This just implies that the last frame of the GOP is either a P-frame or a
9184 N-frame but not a B-frame.
9185 It is usually a good idea to turn this option on (default: on).
9189 This option is meant to solve frame-order issues when encoding to
9190 container formats like AVI that cannot cope with out-of-order frames.
9191 In practice, most decoders (both software and hardware) are able to deal
9192 with frame-order themselves, and may get confused when this option is
9193 turned on, so you can safely leave if off, unless you really know what
9197 This will generate an illegal bitstream, and will not be
9198 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
9201 This will also store a fake DivX version in the file so the bug
9202 autodetection of some decoders might be confused.
9205 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
9206 This setting allows the creation of variable framerate video streams.
9207 The value of the setting specifies a threshold under which, if the
9208 difference of the following frame to the previous frame is below or equal
9209 to this threshold, a frame gets not coded (a so called n-vop is placed
9211 On playback, when reaching an n-vop the previous frame will be displayed.
9214 Playing with this setting may result in a jerky video, so use it at your
9218 .B rc_reaction_delay_factor=<value>
9219 This parameter controls the number of frames the CBR rate controller
9220 will wait before reacting to bitrate changes and compensating for them
9221 to obtain a constant bitrate over an averaging range of frames.
9224 .B rc_averaging_period=<value>
9225 Real CBR is hard to achieve.
9226 Depending on the video material, bitrate can be variable, and hard to predict.
9227 Therefore Xvid uses an averaging period for which it guarantees a given
9228 amount of bits (minus a small variation).
9229 This settings expresses the "number of frames" for which Xvid averages
9230 bitrate and tries to achieve CBR.
9233 .B rc_buffer=<value>
9234 size of the rate control buffer
9237 .B curve_compression_high=<0\-100>
9238 This setting allows Xvid to take a certain percentage of bits away from
9239 high bitrate scenes and give them back to the bit reservoir.
9240 You could also use this if you have a clip with so many bits allocated
9241 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
9245 .B curve_compression_low=<0\-100>
9246 This setting allows Xvid to give a certain percentage of extra bits to the
9247 low bitrate scenes, taking a few bits from the entire clip.
9248 This might come in handy if you have a few low-bitrate scenes that are
9249 still blocky (default: 0).
9252 .B overflow_control_strength=<0\-100>
9253 During pass one of two pass encoding, a scaled bitrate curve is computed.
9254 The difference between that expected curve and the result obtained during
9255 encoding is called overflow.
9256 Obviously, the two pass rate controller tries to compensate for that overflow,
9257 distributing it over the next frames.
9258 This setting controls how much of the overflow is distributed every time
9259 there is a new frame.
9260 Low values allow lazy overflow control, big rate bursts are compensated for
9261 more slowly (could lead to lack of precision for small clips).
9262 Higher values will make changes in bit redistribution more abrupt, possibly
9263 too abrupt if you set it too high, creating artifacts (default: 5).
9266 This setting impacts quality a lot, play with it carefully!
9269 .B max_overflow_improvement=<0\-100>
9270 During the frame bit allocation, overflow control may increase the frame
9272 This parameter specifies the maximum percentage by which the overflow
9273 control is allowed to increase the frame size, compared to the ideal curve
9278 .B max_overflow_degradation=<0\-100>
9279 During the frame bit allocation, overflow control may decrease the frame
9281 This parameter specifies the maximum percentage by which the overflow
9282 control is allowed to decrease the frame size, compared to the ideal curve
9287 .B container_frame_overhead=<0...>
9288 Specifies a frame average overhead per frame, in bytes.
9289 Most of the time users express their target bitrate for video w/o taking
9290 care of the video container overhead.
9291 This small but (mostly) constant overhead can cause the target file size
9293 Xvid allows users to set the amount of overhead per frame the
9294 container generates (give only an average per frame).
9295 0 has a special meaning, it lets Xvid use its own default values
9296 (default: 24 \- AVI average overhead).
9299 .B profile=<profile_name>
9300 Restricts options and VBV (peak bitrate over a short period) according to
9301 the Simple, Advanced Simple and DivX profiles.
9302 The resulting videos should be playable on standalone players adhering to these
9303 profile specifications.
9307 no restrictions (default)
9309 simple profile at level 0
9311 simple profile at level 1
9313 simple profile at level 2
9315 simple profile at level 3
9317 advanced simple profile at level 0
9319 advanced simple profile at level 1
9321 advanced simple profile at level 2
9323 advanced simple profile at level 3
9325 advanced simple profile at level 4
9327 advanced simple profile at level 5
9329 DXN handheld profile
9331 DXN portable NTSC profile
9333 DXN portable PAL profile
9335 DXN home theater NTSC profile
9337 DXN home theater PAL profile
9344 These profiles should be used in conjunction with an appropriate \-ffourcc.
9345 Generally DX50 is applicable, as some players do not recognize Xvid but
9346 most recognize DivX.
9351 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
9352 the Display Aspect Ratio).
9353 PAR is the ratio of the width and height of a single pixel.
9354 So both are related like this: DAR = PAR * (width/height).
9356 MPEG-4 defines 5 pixel aspect ratios and one extended
9357 one, giving the opportunity to specify a specific pixel aspect
9359 5 standard modes can be specified:
9363 It is the usual PAR for PC content.
9364 Pixels are a square unit.
9366 PAL standard 4:3 PAR.
9367 Pixels are rectangles.
9373 same as above (Do not forget to give the exact ratio.)
9375 Allows you to specify your own pixel aspect ratio with par_width and
9381 In general, setting aspect and autoaspect options is enough.
9385 .B par_width=<1\-255> (par=ext only)
9386 Specifies the width of the custom pixel aspect ratio.
9389 .B par_height=<1\-255> (par=ext only)
9390 Specifies the height of the custom pixel aspect ratio.
9393 .B aspect=<x/y | f (float value)>
9394 Store movie aspect internally, just like MPEG files.
9395 Much nicer solution than rescaling, because quality is not decreased.
9396 MPlayer and a few others players will play these files correctly, others
9397 will display them with the wrong aspect.
9398 The aspect parameter can be given as a ratio or a floating point number.
9402 Same as the aspect option, but automatically computes aspect, taking
9403 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
9408 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
9409 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
9410 the current directory.
9411 Returned values are in dB (decibel), the higher the better.
9415 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
9421 The following option is only available in Xvid 1.1.x.
9425 This setting allows vector candidates for B-frames to be used for
9426 the encoding chosen using a rate distortion optimized operator,
9427 which is what is done for P-frames by the vhq option.
9428 This produces nicer-looking B-frames while incurring almost no
9429 performance penalty (default: 1).
9433 The following option is only available in the 1.2.x version of Xvid.
9437 Create n threads to run the motion estimation (default: 0).
9438 The maximum number of threads that can be used is the picture height
9442 .SS x264enc (\-x264encopts)
9446 Sets the average bitrate to be used in kbits/\:second (default: off).
9447 Since local bitrate may vary, this average may be inaccurate for
9448 very short videos (see ratetol).
9449 Constant bitrate can be achieved by combining this with vbv_maxrate,
9450 at significant reduction in quality.
9454 This selects the quantizer to use for P-frames.
9455 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
9456 20\-40 is a useful range.
9457 Lower values result in better fidelity, but higher bitrates.
9459 Note that quantization in H.264 works differently from MPEG-1/2/4:
9460 H.264's quantization parameter (QP) is on a logarithmic scale.
9461 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
9462 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
9466 Enables constant quality mode, and selects the quality.
9467 The scale is similar to QP.
9468 Like the bitrate-based modes, this allows each frame to use a
9469 different QP based on the frame's complexity.
9473 Enable 2 or 3-pass mode.
9474 It is recommended to always encode in 2 or 3-pass mode as it leads to a
9475 better bit distribution and improves overall quality.
9481 second pass (of two pass encoding)
9483 Nth pass (second and third passes of three pass encoding)
9486 Here is how it works, and how to use it:
9488 The first pass (pass=1) collects statistics on the video and writes them
9490 You might want to deactivate some CPU-hungry options, apart from the ones
9491 that are on by default.
9493 In two pass mode, the second pass (pass=2) reads the statistics file and
9494 bases ratecontrol decisions on it.
9496 In three pass mode, the second pass (pass=3, that is not a typo)
9497 does both: It first reads the statistics, then overwrites them.
9498 You can use all encoding options, except very CPU-hungry options.
9500 The third pass (pass=3) is the same as the second pass, except that it has
9501 the second pass' statistics to work from.
9502 You can use all encoding options, including CPU-hungry ones.
9504 The first pass may use either average bitrate or constant quantizer.
9505 ABR is recommended, since it does not require guessing a quantizer.
9506 Subsequent passes are ABR, and must specify bitrate.
9511 Fast first pass mode.
9512 During the first pass of a two or more pass encode it is possible to gain
9513 speed by disabling some options with negligible or even no impact on the
9514 final pass output quality.
9520 Reduce subq, frameref and disable some inter-macroblock partition analysis
9523 Reduce subq and frameref to 1, use a diamond ME search and disable all
9524 partition analysis modes.
9527 Level 1 can increase first pass speed up to 2x with no change in the global
9528 PSNR of the final pass compared to a full quality first pass.
9530 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
9531 in the global PSNR of the final pass compared to a full quality first pass.
9536 Sets maximum interval between IDR-frames (default: 250).
9537 Larger values save bits, thus improve quality, at the cost of seeking
9539 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
9543 .B keyint_min=<1\-keyint/2>
9544 Sets minimum interval between IDR-frames (default: 25).
9545 If scenecuts appear within this interval, they are still encoded as
9546 I-frames, but do not start a new GOP.
9547 In H.264, I-frames do not necessarily bound a closed GOP because it is
9548 allowable for a P-frame to be predicted from more frames than just the one
9549 frame before it (also see frameref).
9550 Therefore, I-frames are not necessarily seekable.
9551 IDR-frames restrict subsequent P-frames from referring to any frame
9552 prior to the IDR-frame.
9555 .B scenecut=<\-1\-100>
9556 Controls how aggressively to insert extra I-frames (default: 40).
9557 With small values of scenecut, the codec often has to force an I-frame
9558 when it would exceed keyint.
9559 Good values of scenecut may find a better location for the I-frame.
9560 Large values use more I-frames than necessary, thus wasting bits.
9561 \-1 disables scene-cut detection, so I-frames are inserted only once
9562 every other keyint frames, even if a scene-cut occurs earlier.
9563 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
9564 are just as big as I-frames, but do not reset the "keyint counter".
9568 Number of previous frames used as predictors in B- and P-frames (default: 1).
9569 This is effective in anime, but in live-action material the improvements
9570 usually drop off very rapidly above 6 or so reference frames.
9571 This has no effect on decoding speed, but does increase the memory needed for
9573 Some decoders can only handle a maximum of 15 reference frames.
9577 maximum number of consecutive B-frames between I- and P-frames (default: 0)
9581 Automatically decides when to use B-frames and how many, up to the maximum
9582 specified above (default: on).
9583 If this option is disabled, then the maximum number of B-frames is used.
9586 .B b_bias=<\-100\-100>
9587 Controls the decision performed by b_adapt.
9588 A higher b_bias produces more B-frames (default: 0).
9592 Allows B-frames to be used as references for predicting other frames.
9593 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
9594 Without this option, B-frames follow the same pattern as MPEG-[124].
9595 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
9596 are predicted from I0 and P4.
9597 With this option, they are coded as I0 P4 B2 B1 B3.
9598 B2 is the same as above, but B1 is predicted from I0 and B2, and
9599 B3 is predicted from B2 and P4.
9600 This usually results in slightly improved compression, at almost no
9602 However, this is an experimental option: it is not fully tuned and
9603 may not always help.
9604 Requires bframes >= 2.
9605 Disadvantage: increases decoding delay to 2 frames.
9609 Use deblocking filter (default: on).
9610 As it takes very little time compared to its quality gain, it is not
9611 recommended to disable it.
9614 .B deblock=<\-6\-6>,<\-6\-6>
9615 The first parameter is AlphaC0 (default: 0).
9616 This adjusts thresholds for the H.264 in-loop deblocking filter.
9617 First, this parameter adjusts the maximum amount of change that the filter is
9618 allowed to cause on any one pixel.
9619 Secondly, this parameter affects the threshold for difference across the
9620 edge being filtered.
9621 A positive value reduces blocking artifacts more, but will also smear details.
9623 The second parameter is Beta (default: 0).
9624 This affects the detail threshold.
9625 Very detailed blocks are not filtered, since the smoothing caused by the
9626 filter would be more noticeable than the original blocking.
9628 The default behavior of the filter almost always achieves optimal quality,
9629 so it is best to either leave it alone, or make only small adjustments.
9630 However, if your source material already has some blocking or noise which
9631 you would like to remove, it may be a good idea to turn it up a little bit.
9635 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
9636 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
9637 Unless you are looking for decoding speed, you should not disable it.
9640 .B qp_min=<1\-51> (ABR or two pass)
9641 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
9644 .B qp_max=<1\-51> (ABR or two pass)
9645 maximum quantizer (default: 51)
9648 .B qp_step=<1\-50> (ABR or two pass)
9649 maximum value by which the quantizer may be incremented/decremented between
9653 .B ratetol=<0.1\-100.0> (ABR or two pass)
9654 allowed variance in average bitrate (no particular units) (default: 1.0)
9657 .B vbv_maxrate=<value> (ABR or two pass)
9658 maximum local bitrate, in kbits/\:second (default: disabled)
9661 .B vbv_bufsize=<value> (ABR or two pass)
9662 averaging period for vbv_maxrate, in kbits
9663 (default: none, must be specified if vbv_maxrate is enabled)
9666 .B vbv_init=<0.0\-1.0> (ABR or two pass)
9667 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
9670 .B ip_factor=<value>
9671 quantizer factor between I- and P-frames (default: 1.4)
9674 .B pb_factor=<value>
9675 quantizer factor between P- and B-frames (default: 1.3)
9678 .B qcomp=<0\-1> (ABR or two pass)
9679 quantizer compression (default: 0.6).
9680 A lower value makes the bitrate more constant,
9681 while a higher value makes the quantization parameter more constant.
9684 .B cplx_blur=<0\-999> (two pass only)
9685 Temporal blur of the estimated frame complexity, before curve compression
9687 Lower values allow the quantizer value to jump around more,
9688 higher values force it to vary more smoothly.
9689 cplx_blur ensures that each I-frame has quality comparable to the following
9690 P-frames, and ensures that alternating high and low complexity frames
9691 (e.g. low fps animation) do not waste bits on fluctuating quantizer.
9694 .B qblur=<0\-99> (two pass only)
9695 Temporal blur of the quantization parameter, after curve compression
9697 Lower values allow the quantizer value to jump around more,
9698 higher values force it to vary more smoothly.
9701 .B zones=<zone0>[/<zone1>[/...]]
9702 User specified quality for specific parts (ending, credits, ...).
9703 Each zone is <start-frame>,<end-frame>,<option> where option may be
9708 .IPs "b=<0.01\-100.0>"
9714 The quantizer option is not strictly enforced.
9715 It affects only the planning stage of ratecontrol, and is still subject
9716 to overflow compensation and qp_min/qp_max.
9720 .B direct_pred=<name>
9721 Determines the type of motion prediction used for direct macroblocks
9726 Direct macroblocks are not used.
9728 Motion vectors are extrapolated from neighboring blocks.
9731 Motion vectors are interpolated from the following P-frame.
9733 The codec selects between spatial and temporal for each frame.
9737 Spatial and temporal are approximately the same speed and PSNR,
9738 the choice between them depends on the video content.
9739 Auto is slightly better, but slower.
9740 Auto is most effective when combined with multipass.
9741 direct_pred=none is both slower and lower quality.
9746 Use weighted prediction in B-frames.
9747 Without this option, bidirectionally predicted macroblocks give
9748 equal weight to each reference frame.
9749 With this option, the weights are determined by the temporal position
9750 of the B-frame relative to the references.
9751 Requires bframes > 1.
9754 .B partitions=<list>
9755 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
9759 Enable types p16x8, p8x16, p8x8.
9761 Enable types p8x4, p4x8, p4x4.
9762 p4x4 is recommended only with subq >= 5, and only at low resolutions.
9764 Enable types b16x8, b8x16, b8x8.
9767 i8x8 has no effect unless 8x8dct is enabled.
9771 Enable all of the above types.
9773 Disable all of the above types.
9777 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
9780 The idea is to find the type and size that best describe a certain area
9782 For example, a global pan is better represented by 16x16 blocks, while
9783 small moving objects are better represented by smaller blocks.
9788 Adaptive spatial transform size: allows macroblocks to choose between
9790 Also allows the i8x8 macroblock type.
9791 Without this option, only 4x4 DCT is used.
9795 Select fullpixel motion estimation algorithm.
9799 diamond search, radius 1 (fast)
9801 hexagon search, radius 2 (default)
9803 uneven multi-hexagon search (slow)
9805 exhaustive search (very slow, and no better than umh)
9811 radius of exhaustive or multi-hexagon motion search (default: 16)
9815 Adjust subpel refinement quality.
9816 This parameter controls quality versus speed tradeoffs involved in the motion
9817 estimation decision process.
9818 subq=5 can compress up to 10% better than subq=1.
9822 Runs fullpixel precision motion estimation on all candidate
9824 Then selects the best type.
9825 Then refines the motion of that type to fast quarterpixel precision (fastest).
9827 Runs halfpixel precision motion estimation on all candidate macroblock types.
9828 Then selects the best type.
9829 Then refines the motion of that type to fast quarterpixel precision.
9831 As 2, but uses a slower quarterpixel refinement.
9833 Runs fast quarterpixel precision motion estimation on all candidate
9835 Then selects the best type.
9836 Then finishes the quarterpixel refinement for that type.
9838 Runs best quality quarterpixel precision motion estimation on all
9839 candidate macroblock types, before selecting the best type (default).
9841 Enables rate-distortion optimization of macroblock types in
9844 Enables rate-distortion optimization of motion vectors and intra modes. (best)
9848 In the above, "all candidates" does not exactly mean all enabled types:
9849 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
9854 Takes into account chroma information during subpixel motion search
9860 Allows each 8x8 or 16x8 motion partition to independently select a
9862 Without this option, a whole macroblock must use the same reference.
9863 Requires frameref>1.
9867 Enables rate-distortion optimization of macroblock types in B-frames.
9872 Refine the two motion vectors used in bidirectional macroblocks,
9873 rather than re-using vectors from the forward and backward searches.
9874 This option has no effect without B-frames.
9878 rate-distortion optimal quantization
9884 enabled only for the final encode
9886 enabled during all mode decisions (slow, requires subq>=6)
9891 .B deadzone_inter=<0\-32>
9892 Set the size of the inter luma quantization deadzone for non-trellis
9893 quantization (default: 21).
9894 Lower values help to preserve fine details and film grain (typically useful
9895 for high bitrate/quality encode), while higher values help filter out
9896 these details to save bits that can be spent again on other macroblocks
9897 and frames (typically useful for bitrate-starved encodes).
9898 It is recommended that you start by tweaking deadzone_intra before changing
9902 .B deadzone_intra=<0\-32>
9903 Set the size of the intra luma quantization deadzone for non-trellis
9904 quantization (default: 11).
9905 This option has the same effect as deadzone_inter except that it affects
9907 It is recommended that you start by tweaking this parameter before changing
9912 Performs early skip detection in P-frames (default: enabled).
9913 This usually improves speed at no cost, but it can sometimes produce
9914 artifacts in areas with no details, like sky.
9918 Eliminate dct blocks in P-frames containing only a small single coefficient
9920 This will remove some details, so it will save bits that can be spent
9921 again on other frames, hopefully raising overall subjective quality.
9922 If you are compressing non-anime content with a high target bitrate, you
9923 may want to disable this to preserve as much detail as possible.
9927 Noise reduction, 0 means disabled.
9928 100\-1000 is a useful range for typical content, but you may want to turn it
9929 up a bit more for very noisy content (default: 0).
9930 Given its small impact on speed, you might want to prefer to use this over
9931 filtering noise away with video filters like denoise3d or hqdn3d.
9934 .B chroma_qp_offset=<\-12\-12>
9935 Use a different quantizer for chroma as compared to luma.
9936 Useful values are in the range <\-2\-2> (default: 0).
9939 .B cqm=<flat|jvt|<filename>>
9940 Either uses a predefined custom quantization matrix or loads a JM format
9945 Use the predefined flat 16 matrix (default).
9947 Use the predefined JVT matrix.
9949 Use the provided JM format matrix file.
9954 Windows CMD.EXE users may experience problems with parsing the command line
9955 if they attempt to use all the CQM lists.
9956 This is due to a command line length limitation.
9957 In this case it is recommended the lists be put into a JM format CQM
9958 file and loaded as specified above.
9962 .B cqm4iy=<list> (also see cqm)
9963 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
9964 values in the 1\-255 range.
9967 .B cqm4ic=<list> (also see cqm)
9968 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
9969 separated values in the 1\-255 range.
9972 .B cqm4py=<list> (also see cqm)
9973 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
9974 values in the 1\-255 range.
9977 .B cqm4pc=<list> (also see cqm)
9978 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
9979 separated values in the 1\-255 range.
9982 .B cqm8iy=<list> (also see cqm)
9983 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
9984 values in the 1\-255 range.
9987 .B cqm8py=<list> (also see cqm)
9988 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
9989 values in the 1\-255 range.
9992 .B level_idc=<10\-51>
9993 Set the bitstream's level as defined by annex A of the H.264 standard
9994 (default: 51 \- level 5.1).
9995 This is used for telling the decoder what capabilities it needs to support.
9996 Use this parameter only if you know what it means,
9997 and you have a need to set it.
10001 Spawn threads to encode in parallel on multiple CPUs (default: 1).
10002 This has a slight penalty to compression quality.
10003 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10004 appropriate number of threads.
10007 .B (no)global_header
10008 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10009 (default: disabled).
10010 Some players, such as the Sony PSP, require the use of this option.
10011 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10015 Treat the video content as interlaced.
10019 Adjust the amount of logging info printed to the screen.
10029 PSNR and other analysis statistics when the encode finishes (default)
10031 PSNR, QP, frametype, size, and other statistics for every frame
10037 Print signal-to-noise ratio statistics.
10040 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
10041 mathematically sound (they are simply the average of per-frame PSNRs).
10042 They are kept only for comparison to the JM reference codec.
10043 For all other purposes, please use either the 'Global' PSNR, or the per-frame
10044 PSNRs printed by log=3.
10048 Print the Structural Similarity Metric results.
10049 This is an alternative to PSNR, and may be better correlated with the
10050 perceived quality of the compressed video.
10054 Enable x264 visualizations during encoding.
10055 If the x264 on your system supports it, a new window will be opened during
10056 the encoding process, in which x264 will attempt to present an overview of
10057 how each frame gets encoded.
10058 Each block type on the visualized movie will be colored as follows:
10072 This feature can be considered experimental and subject to change.
10073 In particular, it depends on x264 being compiled with visualizations enabled.
10074 Note that as of writing this, x264 pauses after encoding and visualizing
10075 each frame, waiting for the user to press a key, at which point the next
10076 frame will be encoded.
10080 .SS xvfw (\-xvfwopts)
10082 Encoding with Video for Windows codecs is mostly obsolete unless you wish
10083 to encode to some obscure fringe codec.
10087 The name of the binary codec file with which to encode.
10091 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
10094 .SS MPEG muxer (\-mpegopts)
10096 The MPEG muxer can generate 5 types of streams, each of which has reasonable
10097 default parameters that the user can override.
10098 Generally, when generating MPEG files, it is advisable to disable
10099 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
10100 harddup and softskip video filters).
10105 .IPs format=mpeg2:tsaf:vbitrate=8000
10110 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
10111 stream format (default: mpeg2).
10112 pes1 and pes2 are very broken formats (no pack header and no padding),
10113 but VDR uses them; do not choose them unless you know exactly what you
10117 .B size=<up to 65535>
10118 Pack size in bytes, do not change unless you know exactly what
10119 you are doing (default: 2048).
10123 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
10124 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
10128 Sets timestamps on all frames, if possible; recommended when format=dvd.
10129 If dvdauthor complains with a message like "..audio sector out of range...",
10130 you probably did not enable this option.
10134 Uses a better algorithm to interleave audio and video packets, based on the
10135 principle that the muxer will always try to fill the stream with the largest
10136 percentage of free space.
10139 .B vdelay=<1\-32760>
10140 Initial video delay time, in milliseconds (default: 0),
10141 use it if you want to delay video with respect to audio.
10142 It doesn't work with :drop.
10145 .B adelay=<1\-32760>
10146 Initial audio delay time, in milliseconds (default: 0),
10147 use it if you want to delay audio with respect to video.
10151 When used with vdelay the muxer drops the part of audio that was
10155 .B vwidth, vheight=<1\-4095>
10156 Set the video width and height when video is MPEG-1/2.
10159 .B vpswidth, vpsheight=<1\-4095>
10160 Set pan and scan video width and height when video is MPEG-2.
10163 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
10164 Sets the display aspect ratio for MPEG-2 video.
10165 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
10169 Sets the video bitrate in kbit/s for MPEG-1/2 video.
10172 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
10173 Sets the framerate for MPEG-1/2 video.
10174 This option will be ignored if used with the telecine option.
10178 Enables 3:2 pulldown soft telecine mode: The muxer will make the
10179 video stream look like it was encoded at 30000/1001 fps.
10180 It only works with MPEG-2 video when the output framerate is
10181 24000/1001 fps, convert it with \-ofps if necessary.
10182 Any other framerate is incompatible with this option.
10186 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
10187 will make the video stream look like it was encoded at 25 fps.
10188 It only works with MPEG-2 video when the output framerate is
10189 24000/1001 fps, convert it with \-ofps if necessary.
10190 Any other framerate is incompatible with this option.
10193 .B tele_src and tele_dest
10194 Enables arbitrary telecining using Donand Graft's DGPulldown code.
10195 You need to specify the original and the desired framerate; the
10196 muxer will make the video stream look like it was encoded at
10197 the desired framerate.
10198 It only works with MPEG-2 video when the input framerate is smaller
10199 than the output framerate and the framerate increase is <= 1.5.
10206 .IPs tele_src=25,tele_dest=30000/1001
10207 PAL to NTSC telecining
10212 .B vbuf_size=<40\-1194>
10213 Sets the size of the video decoder's buffer, expressed in kilobytes.
10214 Specify it only if the bitrate of the video stream is too high for
10215 the chosen format and if you know perfectly well what you are doing.
10216 A too high value may lead to an unplayable movie, depending on the player's
10218 When muxing HDTV video a value of 400 should suffice.
10221 .B abuf_size=<4\-64>
10222 Sets the size of the audio decoder's buffer, expressed in kilobytes.
10223 The same principle as for vbuf_size applies.
10226 .SS FFmpeg libavformat demuxers (\-lavfdopts)
10229 .B analyzeduration=<value>
10230 Maximum length in seconds to analyze the stream properties.
10234 Force a specific libavformat demuxer.
10237 .B probesize=<value>
10238 Maximum amount of data to probe during the detection phase.
10239 In the case of MPEG-TS this value identifies the maximum number
10240 of TS packets to scan.
10243 .B cryptokey=<hexstring>
10244 Encryption key the demuxer should use.
10245 This is the raw binary data of the key converted to a hexadecimal string.
10249 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
10253 Currently only meaningful for MPEG[12]: Maximum allowed distance,
10254 in seconds, between the reference timer of the output stream (SCR)
10255 and the decoding timestamp (DTS) for any stream present
10256 (demux to decode delay).
10257 Default is 0.7 (as mandated by the standards defined by MPEG).
10258 Higher values require larger buffers and must not be used.
10261 .B format=<container_format>
10262 Override which container format to mux into
10263 (default: autodetect from output file extension).
10267 MPEG-1 systems and MPEG-2 PS
10269 Advanced Streaming Format
10271 Audio Video Interleave file
10277 Macromedia Flash video files
10279 RealAudio and RealVideo
10283 NUT open container format (experimental)
10289 Sony Digital Video container
10294 Nominal bitrate of the multiplex, in bits per second;
10295 currently it is meaningful only for MPEG[12].
10296 Sometimes raising it is necessary in order to avoid "buffer underflows".
10299 .B packetsize=<size>
10300 Size, expressed in bytes, of the unitary packet for the chosen format.
10301 When muxing to MPEG[12] implementations the default values are:
10302 2324 for [S]VCD, 2048 for all others formats.
10305 .B preload=<distance>
10306 Currently only meaningful for MPEG[12]: Initial distance,
10307 in seconds, between the reference timer of the output stream (SCR)
10308 and the decoding timestamp (DTS) for any stream present
10309 (demux to decode delay).
10313 .\" --------------------------------------------------------------------------
10314 .\" environment variables
10315 .\" --------------------------------------------------------------------------
10317 .SH ENVIRONMENT VARIABLES
10319 There are a number of environment variables that can be used to
10320 control the behavior of MPlayer and MEncoder.
10323 .B MPLAYER_CHARSET (also see \-msgcharset)
10324 Convert console messages to the specified charset (default: autodetect).
10325 A value of "noconv" means no conversion.
10329 Directory where MPlayer looks for user settings.
10332 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
10333 Set the initial verbosity level across all message modules (default: 0).
10334 The resulting verbosity corresponds to that of \-msglevel 5 plus the
10335 value of MPLAYER_VERBOSE.
10341 If LADSPA_PATH is set, it searches for the specified file.
10342 If it is not set, you must supply a fully specified pathname.
10343 FIXME: This is also mentioned in the ladspa section.
10349 Specify a directory in which to store title key values.
10350 This will speed up descrambling of DVDs which are in the cache.
10351 The DVDCSS_CACHE directory is created if it does not exist,
10352 and a subdirectory is created named after the DVD's title
10353 or manufacturing date.
10354 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
10355 the default value which is "${HOME}/.dvdcss/" under Unix and
10356 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
10357 The special value "off" disables caching.
10361 Sets the authentication and decryption method that
10362 libdvdcss will use to read scrambled discs.
10363 Can be one of title, key or disc.
10367 is the default method.
10368 libdvdcss will use a set of calculated player keys to try and get the disc key.
10369 This can fail if the drive does not recognize any of the player keys.
10371 is a fallback method when key has failed.
10372 Instead of using player keys, libdvdcss will crack the disc key using
10373 a brute force algorithm.
10374 This process is CPU intensive and requires 64 MB of memory to store
10377 is the fallback when all other methods have failed.
10378 It does not rely on a key exchange with the DVD drive, but rather uses
10379 a crypto attack to guess the title key.
10380 On rare cases this may fail because there is not enough encrypted data
10381 on the disc to perform a statistical attack, but in the other hand it
10382 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
10383 the wrong region on an RPC2 drive.
10388 .B DVDCSS_RAW_DEVICE
10389 Specify the raw device to use.
10390 Exact usage will depend on your operating system, the Linux
10391 utility to set up raw devices is raw(8) for instance.
10392 Please note that on most operating systems, using a raw device
10393 requires highly aligned buffers: Linux requires a 2048 bytes
10394 alignment (which is the size of a DVD sector).
10398 Sets the libdvdcss verbosity level.
10402 Outputs no messages at all.
10404 Outputs error messages to stderr.
10406 Outputs error messages and debug messages to stderr.
10412 Skip retrieving all keys on startup.
10413 Currently disabled.
10417 FIXME: Document this.
10422 .B AO_SUN_DISABLE_SAMPLE_TIMING
10423 FIXME: Document this.
10427 FIXME: Document this.
10431 Specifies the Network Audio System server to which the
10432 nas audio output driver should connect and the transport
10433 that should be used.
10434 If unset DISPLAY is used instead.
10435 The transport can be one of tcp and unix.
10436 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
10437 or [unix]:<instancenumber>.
10438 The NAS base port is 8000 and <instancenumber> is added to that.
10445 .IPs AUDIOSERVER=somehost:0
10446 Connect to NAS server on somehost using default port and transport.
10447 .IPs AUDIOSERVER=tcp/somehost:8000
10448 Connect to NAS server on somehost listening on TCP port 8000.
10449 .IPs AUDIOSERVER=(unix)?:0
10450 Connect to NAS server instance 0 on localhost using unix domain sockets.
10456 FIXME: Document this.
10462 FIXME: Document this.
10468 FIXME: Document this.
10474 FIXME: Document this.
10478 FIXME: Document this.
10482 FIXME: Document this.
10488 FIXME: Document this.
10492 FIXME: Document this.
10496 FIXME: Document this.
10500 FIXME: Document this.
10504 FIXME: Document this.
10510 FIXME: Document this.
10516 FIXME: Document this.
10520 FIXME: Document this.
10524 FIXME: Document this.
10530 FIXME: Document this.
10534 FIXME: Document this.
10538 FIXME: Document this.
10542 FIXME: Document this.
10546 FIXME: Document this.
10550 FIXME: Document this.
10554 .\" --------------------------------------------------------------------------
10556 .\" --------------------------------------------------------------------------
10561 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
10562 MPlayer system-wide settings
10565 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
10566 MEncoder system-wide settings
10569 ~/.mplayer/\:config
10570 MPlayer user settings
10573 ~/.mplayer/\:mencoder.conf
10574 MEncoder user settings
10577 ~/.mplayer/\:input.conf
10578 input bindings (see '\-input keylist' for the full list)
10581 ~/.mplayer/\:gui.conf
10582 GUI configuration file
10585 ~/.mplayer/\:gui.pl
10590 font directory (There must be a font.desc file and files with .RAW extension.)
10593 ~/.mplayer/\:DVDkeys/
10597 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
10600 /path/\:to/\:movie.sub
10602 ~/.mplayer/\:sub/\:movie.sub
10607 .\" --------------------------------------------------------------------------
10609 .\" --------------------------------------------------------------------------
10611 .SH EXAMPLES OF MPLAYER USAGE
10614 .B Quickstart DVD playing:
10620 .B Play in Japanese with English subtitles:
10622 mplayer dvd://1 \-alang ja \-slang en
10626 .B Play only chapters 5, 6, 7:
10628 mplayer dvd://1 \-chapter 5\-7
10632 .B Play only titles 5, 6, 7:
10638 .B Play a multiangle DVD:
10640 mplayer dvd://1 \-dvdangle 2
10644 .B Play from a different DVD device:
10646 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
10650 .B Play DVD video from a directory with VOB files:
10652 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
10656 .B Copy a DVD title to hard disk, saving to file "title1.vob":
10658 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
10662 .B Stream from HTTP:
10664 mplayer http://mplayer.hq/example.avi
10668 .B Stream using RTSP:
10670 mplayer rtsp://server.example.com/streamName
10674 .B Convert subtitles to MPsub format:
10676 mplayer dummy.avi \-sub source.sub \-dumpmpsub
10680 .B Convert subtitles to MPsub format without watching the movie:
10682 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
10686 .B input from standard V4L:
10688 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
10692 .B Playback on Zoran cards (old style, deprecated):
10694 mplayer \-vo zr \-vf scale=352:288 file.avi
10698 .B Playback on Zoran cards (new style):
10700 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
10704 .B Play DTS-CD with passthrough:
10706 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
10709 You can also use \-afm hwac3 instead of \-ac hwdts.
10710 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
10711 If your external receiver supports decoding raw DTS streams,
10712 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
10715 .B Play a 6-channel AAC file with only two speakers:
10717 mplayer \-rawaudio format=0xff \-demuxer rawaudio \-af pan=2:.32:.32:.39:.06:.06:.39:.17:-.17:-.17:.17:.33:.33 adts_he-aac160_51.aac
10720 You might want to play a bit with the pan values (e.g multiply with a value) to
10721 increase volume or avoid clipping.
10724 .B checkerboard invert with geq filter:
10726 mplayer \-vf geq='128+(p(X\,Y)\-128)*(0.5\-gt(mod(X/SW\,128)\,64))*(0.5\-gt(mod(Y/SH\,128)\,64))*4'
10730 .SH EXAMPLES OF MENCODER USAGE
10733 .B Encode DVD title #2, only selected chapters:
10735 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
10739 .B Encode DVD title #2, resizing to 640x480:
10741 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
10745 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
10747 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
10751 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
10753 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
10757 .B The same, but with MJPEG compression:
10759 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
10763 .B Encode all *.jpg files in the current directory:
10765 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
10769 .B Encode from a tuner (specify a format with \-vf format):
10771 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
10775 .B Encode from a pipe:
10777 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
10781 .\" --------------------------------------------------------------------------
10782 .\" Bugs, authors, standard disclaimer
10783 .\" --------------------------------------------------------------------------
10787 If you find one, report it to us, but please make sure you have read all
10788 of the documentation first.
10789 Also look out for smileys. :)
10790 Many bugs are the result of incorrect setup or parameter usage.
10791 The bug reporting section of the documentation
10792 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
10793 explains how to create useful bug reports.
10798 MPlayer was initially written by Arpad Gereoffy.
10799 See the AUTHORS file for a list of some of the many other contributors.
10801 MPlayer is (C) 2000\-2007 The MPlayer Team
10803 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
10804 It is maintained by Diego Biurrun.
10805 Please send mails about it to the MPlayer-DOCS mailing list.
10806 Translation specific mails belong on the MPlayer-translations mailing list.