Merge svn changes up to r28755
[mplayer.git] / DOCS / man / en / mplayer.1
bloba518775ae23667848ba227dc1063f12d410d2925
1 .\" $Revision$
2 .\" MPlayer (C) 2000-2009 MPlayer Team
3 .\" This man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
5 .\" --------------------------------------------------------------------------
6 .\" Macro definitions
7 .\" --------------------------------------------------------------------------
9 .\" define indentation for suboptions
10 .nr SS 5
11 .\" add new suboption
12 .de IPs
13 .IP "\\$1" \n(SS
15 .\" begin of first level suboptions, end with .RE
16 .de RSs
17 .RS 10
19 .\" begin of 2nd level suboptions
20 .de RSss
21 .PD 0
22 .RS \n(SS+3
24 .\" end of 2nd level suboptions
25 .de REss
26 .RE
27 .PD 1
30 .\" --------------------------------------------------------------------------
31 .\" Title
32 .\" --------------------------------------------------------------------------
34 .TH MPlayer 1 "2009-01-05" "The MPlayer Project" "The Movie Player"
36 .SH NAME
37 mplayer  \- movie player
38 .br
39 mencoder \- movie encoder
41 .\" --------------------------------------------------------------------------
42 .\" Synopsis
43 .\" --------------------------------------------------------------------------
45 .SH SYNOPSIS
46 .na
47 .nh
48 .B mplayer
49 [options] [file|URL|playlist|\-]
51 .br
52 .B mplayer
53 [options] file1
54 [specific options] [file2] [specific options]
56 .br
57 .B mplayer
58 [options]
59 {group of files and options}
60 [group-specific options]
62 .br
63 .B mplayer
64 [dvd|dvdnav]://[title|[start_title]\-end_title][/device]
65 [options]
67 .br
68 .B mplayer
69 vcd://track[/device]
71 .br
72 .B mplayer
73 tv://[channel][/input_id]
74 [options]
76 .br
77 .B mplayer
78 radio://[channel|frequency][/capture]
79 [options]
81 .br
82 .B mplayer
83 pvr://
84 [options]
86 .br
87 .B mplayer
88 dvb://[card_number@]channel
89 [options]
91 .br
92 .B mplayer
93 mf://[filemask|@listfile]
94 [\-mf options] [options]
96 .br
97 .B mplayer
98 [cdda|cddb]://track[\-endtrack][:speed][/device]
99 [options]
102 .B mplayer
103 cue://file[:track]
104 [options]
107 .B mplayer
108 [file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|icyx|noicyx|smb]://
109 [user:pass@]URL[:port] [options]
112 .B mplayer
113 sdp://file
114 [options]
117 .B mplayer
118 mpst://host[:port]/URL
119 [options]
122 .B mplayer
123 tivo://host/[list|llist|fsid]
124 [options]
127 .B gmplayer
128 [options]
129 [\-skin\ skin]
132 .B mencoder
133 [options] file
134 [file|URL|\-] [\-o file | file://file | smb://[user:pass@]host/filepath]
137 .B mencoder
138 [options] file1
139 [specific options] [file2] [specific options]
143 .\" --------------------------------------------------------------------------
144 .\" Description
145 .\" --------------------------------------------------------------------------
147 .SH DESCRIPTION
148 .B mplayer
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 VCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies,
155 too.
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
164 fullscreen mode.
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).
173 .B mencoder
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
176 below).
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
181 more.
183 .B gmplayer
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
188 of this man page.
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.
204 .B keyboard control
205 .PD 0
207 .IPs "<\- and \->"
208 Seek backward/\:forward 10 seconds.
209 .IPs "up and down"
210 Seek forward/\:backward 1 minute.
211 .IPs "pgup and pgdown"
212 Seek forward/\:backward 10 minutes.
213 .IPs "[ and ]"
214 Decrease/increase current playback speed by 10%.
215 .IPs "{ and }"
216 Halve/double current playback speed.
217 .IPs "backspace"
218 Reset playback speed to normal.
219 .IPs "< and >"
220 Go backward/\:forward in the playlist.
221 .IPs "ENTER"
222 Go forward in the playlist, even over the end.
223 .IPs "HOME and END"
224 next/\:previous playtree entry in the parent list
225 .IPs "INS and DEL (ASX playlist only)"
226 next/\:previous alternative source.
227 .IPs "p / SPACE"
228 Pause (pressing again unpauses).
229 .IPs ".\ \ \ \ "
230 Step forward.
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).
233 .IPs "q / ESC"
234 Stop playing and quit.
235 .IPs "U\ \ \ \ "
236 Stop playing (and quit if \-idle is not used).
237 .IPs "+ and \-"
238 Adjust audio delay by +/\- 0.1 seconds.
239 .IPs "/ and *"
240 Decrease/\:increase volume.
241 .IPs "9 and 0"
242 Decrease/\:increase volume.
243 .IPs "( and )"
244 Adjust audio balance in favor of left/\:right channel.
245 .IPs "m\ \ \ \ "
246 Mute sound.
247 .IPs "_ (MPEG-TS, AVI and libavformat only)"
248 Cycle through the available video tracks.
249 .IPs "# (DVD, MPEG, Matroska, AVI and libavformat only)"
250 Cycle through the available audio tracks.
251 .IPs "TAB (MPEG-TS and libavformat only)"
252 Cycle through the available programs.
253 .IPs "f\ \ \ \ "
254 Toggle fullscreen (also see \-fs).
255 .IPs "T\ \ \ \ "
256 Toggle stay-on-top (also see \-ontop).
257 .IPs "w and e"
258 Decrease/\:increase pan-and-scan range.
259 .IPs "o\ \ \ \ "
260 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
261 .IPs "d\ \ \ \ "
262 Toggle frame dropping states: none / skip display / skip decoding
263 (see \-framedrop and \-hardframedrop).
264 .IPs "v\ \ \ \ "
265 Toggle subtitle visibility.
266 .IPs "j\ \ \ \ "
267 Cycle through the available subtitles.
268 .IPs "y and g"
269 Step forward/backward in the subtitle list.
270 .IPs "F\ \ \ \ "
271 Toggle displaying "forced subtitles".
272 .IPs "a\ \ \ \ "
273 Toggle subtitle alignment: top / middle / bottom.
274 .IPs "x and z"
275 Adjust subtitle delay by +/\- 0.1 seconds.
276 .IPs "r and t"
277 Move subtitles up/down.
278 .IPs "i (\-edlout mode only)"
279 Set start or end of an EDL skip and write it out to the given file.
280 .IPs "s (\-vf screenshot only)"
281 Take a screenshot.
282 .IPs "S (\-vf screenshot only)"
283 Start/stop taking screenshots.
284 .IPs "I\ \ \ \ "
285 Show filename on the OSD.
286 .IPs "! and @"
287 Seek to the beginning of the previous/next chapter.
288 .IPs "D (\-vo xvmc, \-vo vdpau, \-vf yadif, \-vf kerndeint only)"
289 Activate/deactivate deinterlacer.
290 .IPs "A"
291 Cycle through the available DVD angles.
293 .PD 1
296 (The following keys are valid only when using a hardware accelerated video
297 output (xv, (x)vidix, (x)mga, etc), the software equalizer
298 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
301 .PD 0
303 .IPs "1 and 2"
304 Adjust contrast.
305 .IPs "3 and 4"
306 Adjust brightness.
307 .IPs "5 and 6"
308 Adjust hue.
309 .IPs "7 and 8"
310 Adjust saturation.
312 .PD 1
315 (The following keys are valid only when using the quartz or macosx
316 video output driver.)
319 .PD 0
321 .IPs "command + 0"
322 Resize movie window to half its original size.
323 .IPs "command + 1"
324 Resize movie window to its original size.
325 .IPs "command + 2"
326 Resize movie window to double its original size.
327 .IPs "command + f"
328 Toggle fullscreen (also see \-fs).
329 .IPs "command + [ and command + ]"
330 Set movie window alpha.
332 .PD 1
335 (The following keys are valid only when using the sdl
336 video output driver.)
339 .PD 0
341 .IPs "c\ \ \ \ "
342 Cycle through available fullscreen modes.
343 .IPs "n\ \ \ \ "
344 Restore original mode.
346 .PD 1
349 (The following keys are valid if you have a keyboard
350 with multimedia keys.)
353 .PD 0
355 .IPs PAUSE
356 Pause.
357 .IPs "STOP\ "
358 Stop playing and quit.
359 .IPs "PREVIOUS and NEXT"
360 Seek backward/\:forward 1 minute.
362 .PD 1
365 (The following keys are only valid if GUI support is compiled in
366 and will take precedence over the keys defined above.)
369 .PD 0
371 .IPs ENTER
372 Start playing.
373 .IPs "ESC\ \ "
374 Stop playing.
375 .IPs "l\ \ \ \ "
376 Load file.
377 .IPs "t\ \ \ \ "
378 Load subtitle.
379 .IPs "c\ \ \ \ "
380 Open skin browser.
381 .IPs "p\ \ \ \ "
382 Open playlist.
383 .IPs "r\ \ \ \ "
384 Open preferences.
386 .PD 1
389 (The following keys are only valid if you compiled with TV or DVB input
390 support and will take precedence over the keys defined above.)
393 .PD 0
395 .IPs "h and k"
396 Select previous/\:next channel.
397 .IPs "n\ \ \ \ "
398 Change norm.
399 .IPs "u\ \ \ \ "
400 Change channel list.
402 .PD 1
405 (The following keys are only valid if you compiled with dvdnav
406 support: They are used to navigate the menus.)
409 .PD 0
411 .IPs "keypad 8"
412 Select button up.
413 .IPs "keypad 2"
414 Select button down.
415 .IPs "keypad 4"
416 Select button left.
417 .IPs "keypad 6"
418 Select button right.
419 .IPs "keypad 5"
420 Return to main menu.
421 .IPs "keypad 7"
422 Return to nearest menu (the order of preference is: chapter->title->root).
423 .IPs "keypad ENTER"
424 Confirm choice.
426 .PD 1
430 (The following keys are only valid if teletext support is enabled during
431 compilation: They are used for controlling TV teletext.)
434 .PD 0
436 .IPs "X\ \ \ \ "
437 Switch teletext on/\:off.
438 .IPs "Q and W"
439 Go to next/\:prev teletext page.
441 .PD 1
446 .B mouse control
447 .PD 0
449 .IPs "button 3 and button 4"
450 Seek backward/\:forward 1 minute.
451 .IPs "button 5 and button 6"
452 Decrease/\:increase volume.
454 .PD 1
457 .B joystick control
458 .PD 0
460 .IPs "left and right"
461 Seek backward/\:forward 10 seconds.
462 .IPs "up and down"
463 Seek forward/\:backward 1 minute.
464 .IPs "button 1"
465 Pause.
466 .IPs "button 2"
467 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
468 .IPs "button 3 and button 4"
469 Decrease/\:increase volume.
471 .PD 1
474 .\" --------------------------------------------------------------------------
475 .\" Usage
476 .\" --------------------------------------------------------------------------
478 .SH "USAGE"
479 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
480 \-fs option is \-nofs.
482 If an option is marked as (XXX only), it will only work in combination with
483 the XXX option or if XXX is compiled in.
485 .I NOTE:
486 The suboption parser (used for example for \-ao pcm suboptions) supports
487 a special kind of string-escaping intended for use with external GUIs.
489 It has the following format:
491 %n%string_of_length_n
493 .I EXAMPLES:
495 mplayer \-ao pcm:file=%10%C:test.wav test.avi
497 Or in a script:
499 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
502 .\" --------------------------------------------------------------------------
503 .\" Configuration files
504 .\" --------------------------------------------------------------------------
506 .SH "CONFIGURATION FILES"
507 You can put all of the options in configuration files which will be read
508 every time MPlayer/MEncoder is run.
509 The system-wide configuration file 'mplayer.conf' is in your configuration
510 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
511 specific one is '~/\:.mplayer/\:config'.
512 The configuration file for MEncoder is 'mencoder.conf' in your configuration
513 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
514 user specific one is '~/\:.mplayer/\:mencoder.conf'.
515 User specific options override system-wide options and options given on the
516 command line override either.
517 The syntax of the configuration files is 'option=<value>', everything after
518 a '#' is considered a comment.
519 Options that work without values can be enabled by setting them to 'yes'
520 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
521 Even suboptions can be specified in this way.
523 You can also write file-specific configuration files.
524 If you wish to have a configuration file for a file called 'movie.avi', create a file
525 named 'movie.avi.conf' with the file-specific options in it and put it in
526 ~/.mplayer/.
527 You can also put the configuration file in the same directory as the file to
528 be played, as long as you give the \-use\-filedir\-conf option (either on the
529 command line or in your global config file).
531 .I EXAMPLE MPLAYER CONFIGURATION FILE:
532 .sp 1
534 # Use Matrox driver by default.
535 vo=xmga
536 # I love practicing handstands while watching videos.
537 flip=yes
538 # Decode/encode multiple files from PNG,
539 # start with mf://filemask
540 mf=type=png:fps=25
541 # Eerie negative images are cool.
542 vf=eq2=1.0:\-0.8
545 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
546 .sp 1
548 # Make MEncoder output to a default filename.
549 o=encoded.avi
550 # The next 4 lines allow mencoder tv:// to start capturing immediately.
551 oac=pcm=yes
552 ovc=lavc=yes
553 lavcopts=vcodec=mjpeg
554 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
555 # more complex default encoding option set
556 lavcopts=vcodec=mpeg4:autoaspect=1
557 lameopts=aq=2:vbr=4
558 ovc=lavc=1
559 oac=lavc=1
560 passlogfile=pass1stats.log
561 noautoexpand=1
562 subfont-autoscale=3
563 subfont-osd-scale=6
564 subfont-text-scale=4
565 subalign=2
566 subpos=96
567 spuaa=20
570 .\" --------------------------------------------------------------------------
571 .\" Profiles
572 .\" --------------------------------------------------------------------------
574 .SH "PROFILES"
575 To ease working with different configurations profiles can be defined in the
576 configuration files.
577 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
578 All following options will be part of the profile.
579 A description (shown by \-profile help) can be defined with the profile-desc
580 option.
581 To end the profile, start another one or use the profile name 'default'
582 to continue with normal options.
585 .I "EXAMPLE MPLAYER PROFILE:"
586 .sp 1
589 [protocol.dvd]
590 profile-desc="profile for dvd:// streams"
591 vf=pp=hb/vb/dr/al/fd
592 alang=en
594 [protocol.dvdnav]
595 profile-desc="profile for dvdnav:// streams"
596 profile=protocol.dvd
597 mouse-movements=yes
598 nocache=yes
600 [extension.flv]
601 profile-desc="profile for .flv files"
602 flip=yes
604 [vo.pnm]
605 outdir=/tmp
607 [ao.alsa]
608 device=spdif
611 .I "EXAMPLE MENCODER PROFILE:"
612 .sp 1
615 [mpeg4]
616 profile-desc="MPEG4 encoding"
617 ovc=lacv=yes
618 lavcopts=vcodec=mpeg4:vbitrate=1200
620 [mpeg4\-hq]
621 profile-desc="HQ MPEG4 encoding"
622 profile=mpeg4
623 lavcopts=mbd=2:trell=yes:v4mv=yes
626 .\" --------------------------------------------------------------------------
627 .\" Options
628 .\" --------------------------------------------------------------------------
630 .SH "GENERAL OPTIONS"
633 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
634 Override the standard search path and use the specified file
635 instead of the builtin codecs.conf.
638 .B \-include <configuration file>
639 Specify configuration file to be parsed after the default ones.
642 .B \-list\-options
643 Prints all available options.
646 .B \-msgcharset <charset>
647 Convert console messages to the specified character set (default: autodetect).
648 Text will be in the encoding specified with the \-\-charset configure option.
649 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
651 .I NOTE:
652 The option takes effect after command line parsing has finished.
653 The MPLAYER_CHARSET environment variable can help you get rid of
654 the first lines of garbled output.
657 .B \-msgcolor
658 Enable colorful console output on terminals that support ANSI color.
661 .B \-msglevel <all=<level>:<module>=<level>:...>
662 Control verbosity directly for each module.
663 The 'all' module changes the verbosity of all the modules not
664 explicitly specified on the command line.
665 See '\-msglevel help' for a list of all modules.
667 .I NOTE:
668 Some messages are printed before the command line is parsed and are
669 therefore not affected by \-msglevel.
670 To control these messages you have to use the MPLAYER_VERBOSE environment
671 variable, see its description below for details.
673 Available levels:
674 .PD 0
675 .RSs
676 .IPs "\-1"
677 complete silence
678 .IPs " 0"
679 fatal messages only
680 .IPs " 1"
681 error messages
682 .IPs " 2"
683 warning messages
684 .IPs " 3"
685 short hints
686 .IPs " 4"
687 informational messages
688 .IPs " 5"
689 status messages (default)
690 .IPs " 6"
691 verbose messages
692 .IPs " 7"
693 debug level 2
694 .IPs " 8"
695 debug level 3
696 .IPs " 9"
697 debug level 4
699 .PD 1
702 .B \-msgmodule
703 Prepend module name in front of each console message.
706 .B \-noconfig <options>
707 Do not parse selected configuration files.
709 .I NOTE:
710 If \-include or \-use\-filedir\-conf options are
711 specified at the command line, they will be honoured.
712 .sp 1
713 Available options are:
714 .PD 0
715 .RSs
716 .IPs "all\ \ "
717 all configuration files
718 .IPs "gui (GUI only)"
719 GUI configuration file
720 .IPs system
721 system configuration file
722 .IPs "user\ "
723 user configuration file
725 .PD 1
728 .B "\-quiet\ "
729 Make console output less verbose; in particular, prevents the status line
730 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
731 Particularly useful on slow terminals or broken ones which do not properly
732 handle carriage return (i.e.\& \\r).
735 .B \-priority <prio> (Windows and OS/2 only)
736 Set process priority for MPlayer according to the predefined
737 priorities available under Windows and OS/2.
738 Possible values of <prio>:
739 .RSs
740 idle|belownormal|normal|abovenormal|high|realtime
742 .sp 1
744 .I WARNING:
745 Using realtime priority can cause system lockup.
749 .B \-profile <profile1,profile2,...>
750 Use the given profile(s), \-profile help displays a list of the defined profiles.
753 .B \-really\-quiet (also see \-quiet)
754 Display even less output and status messages than with \-quiet.
755 Also suppresses the GUI error message boxes.
758 .B \-show\-profile <profile>
759 Show the description and content of a profile.
762 .B \-use\-filedir\-conf
763 Look for a file-specific configuration file in the same directory as
764 the file that is being played.
766 .I WARNING:
767 May be dangerous if playing from untrusted media.
770 .B "\-v\ \ \ \ \ "
771 Increment verbosity level, one level for each \-v
772 found on the command line.
776 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
779 .B \-autoq <quality> (use with \-vf [s]pp)
780 Dynamically changes the level of postprocessing depending on the available spare
781 CPU time.
782 The number you specify will be the maximum level used.
783 Usually you can use some big number.
784 You have to use \-vf [s]pp without parameters in order for this to work.
787 .B \-autosync <factor>
788 Gradually adjusts the A/V sync based on audio delay measurements.
789 Specifying \-autosync 0, the default, will cause frame timing to be based
790 entirely on audio delay measurements.
791 Specifying \-autosync 1 will do the same, but will subtly change the A/V
792 correction algorithm.
793 An uneven video framerate in a movie which plays fine with \-nosound can
794 often be helped by setting this to an integer value greater than 1.
795 The higher the value, the closer the timing will be to \-nosound.
796 Try \-autosync 30 to smooth out problems with sound drivers which do
797 not implement a perfect audio delay measurement.
798 With this value, if large A/V sync offsets occur, they will only take about
799 1 or 2 seconds to settle out.
800 This delay in reaction time to sudden A/V offsets should be the only
801 side-effect of turning this option on, for all sound drivers.
804 .B \-benchmark
805 Prints some statistics on CPU usage and dropped frames at the end of playback.
806 Use in combination with \-nosound and \-vo null for benchmarking only the
807 video codec.
809 .I NOTE:
810 With this option MPlayer will also ignore frame duration when playing
811 only video (you can think of that as infinite fps).
814 .B \-colorkey <number>
815 Changes the colorkey to an RGB value of your choice.
816 0x000000 is black and 0xffffff is white.
817 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
818 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
819 drivers.
822 .B \-nocolorkey
823 Disables colorkeying.
824 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
825 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
826 drivers.
829 .B \-correct\-pts (EXPERIMENTAL)
830 Switches MPlayer to an experimental mode where timestamps for video frames
831 are calculated differently and video filters which add new frames or
832 modify timestamps of existing ones are supported.
833 The more accurate timestamps can be visible for example when playing
834 subtitles timed to scene changes with the \-ass option.
835 Without \-correct\-pts the subtitle timing will typically be off by some frames.
836 This option does not work correctly with some demuxers and codecs.
839 .B \-crash\-debug (DEBUG CODE)
840 Automatically attaches gdb upon crash or SIGTRAP.
841 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
844 .B \-doubleclick\-time
845 Time in milliseconds to recognize two consecutive button presses as
846 a double-click (default: 300).
847 Set to 0 to let your windowing system decide what a double-click is
848 (\-vo directx only).
850 .I NOTE:
851 You will get slightly different behaviour depending on whether you bind
852 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
855 .B \-edlout <filename>
856 Creates a new file and writes edit decision list (EDL) records to it.
857 During playback, the user hits 'i' to mark the start or end of a skip block.
858 This provides a starting point from which the user can fine-tune EDL entries
859 later.
860 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
863 .B \-enqueue (GUI only)
864 Enqueue files given on the command line in the playlist instead of playing them
865 immediately.
868 .B \-fixed\-vo
869 Enforces a fixed video system for multiple files (one (un)initialization for
870 all files).
871 Therefore only one window will be opened for all files.
872 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
873 xmga, xv, xvidix and dfbmga.
876 .B \-framedrop (also see \-hardframedrop, experimental without \-nocorrect\-pts)
877 Skip displaying some frames to maintain A/V sync on slow systems.
878 Video filters are not applied to such frames.
879 For B-frames even decoding is skipped completely.
882 .B \-(no)gui
883 Enable or disable the GUI interface (default depends on binary name).
884 Only works as the first argument on the command line.
885 Does not work as a config-file option.
888 .B \-h, \-help, \-\-help
889 Show short summary of options.
892 .B \-hardframedrop (experimental without \-nocorrect\-pts)
893 More intense frame dropping (breaks decoding).
894 Leads to image distortion!
895 Note that especially the libmpeg2 decoder may crash with this,
896 so consider using "\-vc ffmpeg12,".
899 .B \-heartbeat\-cmd
900 Command that is executed every 30 seconds during playback via system() -
901 i.e.\& using the shell.
902 .sp 1
903 .I NOTE:
904 MPlayer uses this command without any checking, it is your responsibility
905 to ensure it does not cause security problems (e.g.\& make sure to use full
906 paths if "." is in your path like on Windows).
907 .sp 1
908 This can be "misused" to disable screensavers that do not support the proper
909 X API (also see \-stop\-xscreensaver).
910 If you think this is too complicated, ask the author of the screensaver
911 program to support the proper X APIs.
912 .sp 1
913 .I EXAMPLE for xscreensaver:
914 mplayer \-heartbeat\-cmd "xscreensaver\-command \-deactivate" file
915 .sp 1
916 .I EXAMPLE for GNOME screensaver:
917 mplayer \-heartbeat\-cmd "gnome\-screensaver\-command \-p" file
919 .PD 1
922 .B \-identify
923 Shorthand for \-msglevel identify=4.
924 Show file parameters in an easily parseable format.
925 Also prints more detailed information about subtitle and audio
926 track languages and IDs.
927 In some cases you can get more information by using \-msglevel identify=6.
928 For example, for a DVD it will list the chapters and time length of each title,
929 as well as a disk ID.
930 Combine this with \-frames 0 to suppress all output.
931 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
932 (hopefully) shellescapes the filenames.
935 .B \-idle (also see \-slave)
936 Makes MPlayer wait idly instead of quitting when there is no file to play.
937 Mostly useful in slave mode where MPlayer can be controlled
938 through input commands.
941 .B \-input <commands>
942 This option can be used to configure certain parts of the input system.
943 Paths are relative to ~/.mplayer/.
945 .I NOTE:
946 Autorepeat is currently only supported by joysticks.
947 .sp 1
948 Available commands are:
949 .sp 1
950 .PD 0
951 .RSs
952 .IPs conf=<filename>
953 Specify input configuration file other than the default
954 ~/\:.mplayer/\:input.conf.
955 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
956 .IPs ar-dev=<device>
957 Device to be used for Apple IR Remote (default is autodetected, Linux only).
958 .IPs ar-delay
959 Delay in milliseconds before we start to autorepeat a key (0 to disable).
960 .IPs ar-rate
961 Number of key presses to generate per second on autorepeat.
962 .IPs keylist
963 Prints all keys that can be bound to commands.
964 .IPs cmdlist
965 Prints all commands that can be bound to keys.
966 .IPs js-dev
967 Specifies the joystick device to use (default: /dev/\:input/\:js0).
968 .IPs file=<filename>
969 Read commands from the given file.
970 Mostly useful with a FIFO.
972 .I NOTE:
973 When the given file is a FIFO MPlayer opens both ends so you can do
974 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
976 .PD 1
979 .B \-key\-fifo\-size <2\-65000>
980 Specify the size of the FIFO that buffers key events (default: 7).
981 A FIFO of size n can buffer (n\-1) events.
982 If it is too small some events may be lost
983 (leading to "stuck mouse buttons" and similar effects).
984 If it is too big, MPlayer may seem to hang while it
985 processes the buffered events.
986 To get the same behavior as before this option was introduced,
987 set it to 2 for Linux or 1024 for Windows.
990 .B \-lircconf <filename> (LIRC only)
991 Specifies a configuration file for LIRC (default: ~/.lircrc).
994 .B \-list\-properties
995 Print a list of the available properties.
998 .B \-loop <number>
999 Loops movie playback <number> times.
1000 0 means forever.
1003 .B \-menu (OSD menu only)
1004 Turn on OSD menu support.
1007 .B \-menu\-cfg <filename> (OSD menu only)
1008 Use an alternative menu.conf.
1011 .B \-menu\-chroot <path> (OSD menu only)
1012 Chroot the file selection menu to a specific location.
1013 .sp 1
1014 .I EXAMPLE:
1015 .PD 0
1016 .RSs
1017 .IPs "\-menu\-chroot /home"
1018 Will restrict the file selection menu to /\:home and downward (i.e.\& no
1019 access to / will be possible, but /home/user_name will).
1021 .PD 1
1024 .B \-menu\-keepdir (OSD menu only)
1025 File browser starts from the last known location instead of current directory.
1028 .B \-menu\-root <value> (OSD menu only)
1029 Specify the main menu.
1032 .B \-menu\-startup (OSD menu only)
1033 Display the main menu at MPlayer startup.
1036 .B \-mouse\-movements
1037 Permit MPlayer to receive pointer events reported by the video
1038 output driver.
1039 Necessary to select the buttons in DVD menus.
1040 Supported for X11 based VOs (x11, xv, xvmc, etc.) and the gl, gl2, direct3d and
1041 macosx VOs.
1044 .B \-noar
1045 Turns off AppleIR remote support.
1048 .B \-noconsolecontrols
1049 Prevent MPlayer from reading key events from standard input.
1050 Useful when reading data from standard input.
1051 This is automatically enabled when \- is found on the command line.
1052 There are situations where you have to set it manually, e.g.\&
1053 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1054 in a playlist or intend to read from stdin later on via the loadfile or
1055 loadlist slave commands.
1058 .B \-nojoystick
1059 Turns off joystick support.
1062 .B \-nolirc
1063 Turns off LIRC support.
1066 .B \-nomouseinput
1067 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1068 on this option).
1071 .B \-rtc (RTC only)
1072 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1073 mechanism.
1074 This wakes up the process every 1/1024 seconds to check the current time.
1075 Useless with modern Linux kernels configured for desktop use as they already
1076 wake up the process with similar accuracy when using normal timed sleep.
1079 .B \-playing\-msg <string>
1080 Print out a string before starting playback.
1081 The following expansions are supported:
1082 .RSs
1083 .IPs ${NAME}
1084 Expand to the value of the property NAME.
1085 .IPs ?(NAME:TEXT)
1086 Expand TEXT only if the property NAME is available.
1087 .IPs ?(!NAME:TEXT)
1088 Expand TEXT only if the property NAME is not available.
1092 .B \-playlist <filename>
1093 Play files according to a playlist file (ASX, Winamp, SMIL, or
1094 one-file-per-line format).
1096 .I NOTE:
1097 This option is considered an entry so options found after it will apply
1098 only to the elements of this playlist.
1100 FIXME: This needs to be clarified and documented thoroughly.
1103 .B \-rtc\-device <device>
1104 Use the specified device for RTC timing.
1107 .B \-shuffle
1108 Play files in random order.
1111 .B \-skin <name> (GUI only)
1112 Loads a skin from the directory given as parameter below the default skin
1113 directories, /usr/\:local/\:share/\:mplayer/\:skins/\: and ~/.mplayer/\:skins/.
1114 .sp 1
1115 .I EXAMPLE:
1116 .PD 0
1117 .RSs
1118 .IPs "\-skin fittyfene"
1119 Tries /usr/\:local/\:share/\:mplayer/\:skins/\:fittyfene
1120 and afterwards ~/.mplayer/\:skins/\:fittyfene.
1122 .PD 1
1125 .B \-slave (also see \-input)
1126 Switches on slave mode, in which MPlayer works as a backend for other programs.
1127 Instead of intercepting keyboard events, MPlayer will read commands separated
1128 by a newline (\\n) from stdin.
1130 .I NOTE:
1131 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1132 for their description.
1135 .B \-softsleep
1136 Time frames by repeatedly checking the current time instead of asking the
1137 kernel to wake up MPlayer at the correct time.
1138 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1139 Comes at the price of higher CPU consumption.
1142 .B \-sstep <sec>
1143 Skip <sec> seconds after every frame.
1144 The normal framerate of the movie is kept, so playback is accelerated.
1145 Since MPlayer can only seek to the next keyframe this may be inexact.
1149 .SH "DEMUXER/STREAM OPTIONS"
1152 .B \-a52drc <level>
1153 Select the Dynamic Range Compression level for AC-3 audio streams.
1154 <level> is a float value ranging from 0 to 1, where 0 means no compression
1155 and 1 (which is the default) means full compression (make loud passages more
1156 silent and vice versa).
1157 This option only shows an effect if the AC-3 stream contains the required range
1158 compression information.
1161 .B \-aid <ID> (also see \-alang)
1162 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1163 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1164 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1165 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1166 (if present) with the chosen audio stream.
1169 .B \-ausid <ID> (also see \-alang)
1170 Select audio substream channel.
1171 Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled
1172 by the native demuxer (not by libavformat).
1173 The format type may not be correctly identified because of how this information
1174 (or lack thereof) is embedded in the stream, but it will demux correctly the
1175 audio streams when multiple substreams are present.
1176 MPlayer prints the available substream IDs when run with \-identify.
1179 .B \-alang <language code[,language code,...]> (also see \-aid)
1180 Specify a priority list of audio languages to use.
1181 Different container formats employ different language codes.
1182 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1183 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1184 MPlayer prints the available languages when run in verbose (\-v) mode.
1185 .sp 1
1186 .I EXAMPLE:
1187 .PD 0
1188 .RSs
1189 .IPs "mplayer dvd://1 \-alang hu,en"
1190 Chooses the Hungarian language track on a DVD and falls back on English if
1191 Hungarian is not available.
1192 .IPs "mplayer \-alang jpn example.mkv"
1193 Plays a Matroska file in Japanese.
1195 .PD 1
1198 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1199 Force audio demuxer type for \-audiofile.
1200 Use a '+' before the name to force it, this will skip some checks!
1201 Give the demuxer name as printed by \-audio\-demuxer help.
1202 For backward compatibility it also accepts the demuxer ID as defined in
1203 libmpdemux/\:demuxer.h.
1204 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1207 .B \-audiofile <filename>
1208 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1209 movie.
1212 .B \-audiofile\-cache <kBytes>
1213 Enables caching for the stream used by \-audiofile, using the specified
1214 amount of memory.
1217 .B \-reuse\-socket (udp:// only)
1218 Allows a socket to be reused by other processes as soon as it is closed.
1221 .B \-bandwidth <value> (network only)
1222 Specify the maximum bandwidth for network streaming (for servers that are
1223 able to send content in different bitrates).
1224 Useful if you want to watch live streamed media behind a slow connection.
1225 With Real RTSP streaming, it is also used to set the maximum delivery
1226 bandwidth allowing faster cache filling and stream dumping.
1229 .B \-cache <kBytes>
1230 This option specifies how much memory (in kBytes) to use when precaching a
1231 file or URL.
1232 Especially useful on slow media.
1235 .B \-nocache
1236 Turns off caching.
1239 .B \-cache\-min <percentage>
1240 Playback will start when the cache has been filled up to <percentage>
1241 of the total.
1244 .B \-cache\-seek\-min <percentage>
1245 If a seek is to be made to a position within <percentage> of the cache size
1246 from the current position, MPlayer will wait for the cache to be filled to
1247 this position rather than performing a stream seek (default: 50).
1250 .B \-cdda <option1:option2> (CDDA only)
1251 This option can be used to tune the CD Audio reading feature of MPlayer.
1252 .sp 1
1253 Available options are:
1254 .RSs
1255 .IPs speed=<value>
1256 Set CD spin speed.
1257 .IPs paranoia=<0\-2>
1258 Set paranoia level.
1259 Values other than 0 seem to break playback of anything but the first track.
1260 .RSss
1261 0: disable checking (default)
1263 1: overlap checking only
1265 2: full data correction and verification
1266 .REss
1267 .IPs generic-dev=<value>
1268 Use specified generic SCSI device.
1269 .IPs sector-size=<value>
1270 Set atomic read size.
1271 .IPs overlap=<value>
1272 Force minimum overlap search during verification to <value> sectors.
1273 .IPs toc-bias
1274 Assume that the beginning offset of track 1 as reported in the TOC will be
1275 addressed as LBA 0.
1276 Some Toshiba drives need this for getting track boundaries correct.
1277 .IPs toc-offset=<value>
1278 Add <value> sectors to the values reported when addressing tracks.
1279 May be negative.
1280 .IPs (no)skip
1281 (Never) accept imperfect data reconstruction.
1285 .B \-cdrom\-device <path to device>
1286 Specify the CD-ROM device (default: /dev/\:cdrom).
1289 .B \-channels <number> (also see \-af channels)
1290 Request the number of playback channels (default: 2).
1291 MPlayer asks the decoder to decode the audio into as many channels as
1292 specified.
1293 Then it is up to the decoder to fulfill the requirement.
1294 This is usually only important when playing videos with AC-3 audio (like DVDs).
1295 In that case liba52 does the decoding by default and correctly downmixes the
1296 audio into the requested number of channels.
1297 To directly control the number of output channels independently of how many
1298 channels are decoded, use the channels filter.
1300 .I NOTE:
1301 This option is honored by codecs (AC-3 only), filters (surround) and audio
1302 output drivers (OSS at least).
1303 .sp 1
1304 Available options are:
1305 .sp 1
1306 .PD 0
1307 .RSs
1308 .IPs 2
1309 stereo
1310 .IPs 4
1311 surround
1312 .IPs 6
1313 full 5.1
1315 .PD 1
1318 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1319 Specify which chapter to start playing at.
1320 Optionally specify which chapter to end playing at (default: 1).
1323 .B \-cookies (network only)
1324 Send cookies when making HTTP requests.
1327 .B \-cookies\-file <filename> (network only)
1328 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1329 and skip reading from default locations.
1330 The file is assumed to be in Netscape format.
1333 .B \-delay <sec>
1334 audio delay in seconds (positive or negative float value)
1336 Negative values delay the audio, and positive values delay the video.
1337 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1339 .I NOTE:
1340 When used with MEncoder, this is not guaranteed to work correctly
1341 with \-ovc copy; use \-audio\-delay instead.
1344 .B \-ignore\-start
1345 Ignore the specified starting time for streams in AVI files.
1346 In MPlayer, this nullifies stream delays in files encoded with
1347 the \-audio\-delay option.
1348 During encoding, this option prevents MEncoder from transferring
1349 original stream start times to the new file; the \-audio\-delay option is
1350 not affected.
1351 Note that MEncoder sometimes adjusts stream starting times
1352 automatically to compensate for anticipated decoding delays, so do not
1353 use this option for encoding without testing it first.
1356 .B \-demuxer <[+]name>
1357 Force demuxer type.
1358 Use a '+' before the name to force it, this will skip some checks!
1359 Give the demuxer name as printed by \-demuxer help.
1360 For backward compatibility it also accepts the demuxer ID as defined in
1361 libmpdemux/\:demuxer.h.
1364 .B \-dumpaudio (MPlayer only)
1365 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1366 in most other cases the resulting file will not be playable).
1367 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1368 on the command line only the last one will work.
1371 .B \-dumpfile <filename> (MPlayer only)
1372 Specify which file MPlayer should dump to.
1373 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream.
1376 .B \-dumpstream (MPlayer only)
1377 Dumps the raw stream to ./stream.dump.
1378 Useful when ripping from DVD or network.
1379 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1380 on the command line only the last one will work.
1383 .B \-dumpvideo (MPlayer only)
1384 Dump raw compressed video stream to ./stream.dump (not very usable).
1385 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1386 on the command line only the last one will work.
1389 .B \-dvbin <options> (DVB only)
1390 Pass the following parameters to the DVB input module, in order to override
1391 the default ones:
1392 .sp 1
1393 .PD 0
1394 .RSs
1395 .IPs card=<1\-4>
1396 Specifies using card number 1\-4 (default: 1).
1397 .IPs file=<filename>
1398 Instructs MPlayer to read the channels list from <filename>.
1399 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1400 or ~/.mplayer/\:channels.conf as a last resort.
1401 .IPs timeout=<1\-30>
1402 Maximum number of seconds to wait when trying to tune a
1403 frequency before giving up (default: 30).
1405 .PD 1
1408 .B \-dvd\-device <path to device> (DVD only)
1409 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1410 You can also specify a directory that contains files previously copied directly
1411 from a DVD (with e.g.\& vobcopy).
1414 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1415 Try to limit DVD speed (default: 0, no change).
1416 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1417 10800KB/s.
1418 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1419 quiet and fast enough.
1420 MPlayer resets the speed to the drive default value on close.
1421 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1422 10800KB/s.
1424 .I NOTE:
1425 You need write access to the DVD device to change the speed.
1428 .B \-dvdangle <angle ID> (DVD only)
1429 Some DVD discs contain scenes that can be viewed from multiple angles.
1430 Here you can tell MPlayer which angles to use (default: 1).
1433 .B \-edl <filename>
1434 Enables edit decision list (EDL) actions during playback.
1435 Video will be skipped over and audio will be muted and unmuted according to
1436 the entries in the given file.
1437 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1438 on how to use this.
1441 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1442 Stop at given time or byte position.
1444 .I NOTE:
1445 Byte position is enabled only for MEncoder and will not be accurate, as it can
1446 only stop at a frame boundary.
1447 When used in conjunction with \-ss option, \-endpos time will shift forward by
1448 seconds specified with \-ss.
1449 .sp 1
1450 .I EXAMPLE:
1451 .PD 0
1452 .RSs
1453 .IPs "\-endpos 56"
1454 Stop at 56 seconds.
1455 .IPs "\-endpos 01:10:00"
1456 Stop at 1 hour 10 minutes.
1457 .IPs "\-ss 10 \-endpos 56"
1458 Stop at 1 minute 6 seconds.
1459 .IPs "\-endpos 100mb"
1460 Encode only 100 MB.
1462 .PD 1
1465 .B \-forceidx
1466 Force index rebuilding.
1467 Useful for files with broken index (A/V desync, etc).
1468 This will enable seeking in files where seeking was not possible.
1469 You can fix the index permanently with MEncoder (see the documentation).
1471 .I NOTE:
1472 This option only works if the underlying media supports seeking
1473 (i.e.\& not with stdin, pipe, etc).
1476 .B \-fps <float value>
1477 Override video framerate.
1478 Useful if the original value is wrong or missing.
1481 .B \-frames <number>
1482 Play/\:convert only first <number> frames, then quit.
1485 .B \-hr\-mp3\-seek (MP3 only)
1486 Hi-res MP3 seeking.
1487 Enabled when playing from an external MP3 file, as we need to seek
1488 to the very exact position to keep A/V sync.
1489 Can be slow especially when seeking backwards since it has to rewind
1490 to the beginning to find an exact frame position.
1493 .B \-idx (also see \-forceidx)
1494 Rebuilds index of files if no index was found, allowing seeking.
1495 Useful with broken/\:incomplete downloads, or badly created files.
1497 .I NOTE:
1498 This option only works if the underlying media supports seeking
1499 (i.e.\& not with stdin, pipe, etc).
1502 .B \-noidx
1503 Skip rebuilding index file.
1504 MEncoder skips writing the index with this option.
1507 .B \-ipv4\-only\-proxy (network only)
1508 Skip the proxy for IPv6 addresses.
1509 It will still be used for IPv4 connections.
1512 .B \-loadidx <index file>
1513 The file from which to read the video index data saved by \-saveidx.
1514 This index will be used for seeking, overriding any index data
1515 contained in the AVI itself.
1516 MPlayer will not prevent you from loading an index file generated
1517 from a different AVI, but this is sure to cause unfavorable results.
1519 .I NOTE:
1520 This option is obsolete now that MPlayer has OpenDML support.
1523 .B \-mc <seconds/frame>
1524 maximum A-V sync correction per frame (in seconds)
1527 .B \-mf <option1:option2:...>
1528 Used when decoding from multiple PNG or JPEG files.
1529 .sp 1
1530 Available options are:
1531 .sp 1
1532 .PD 0
1533 .RSs
1534 .IPs w=<value>
1535 input file width (default: autodetect)
1536 .IPs h=<value>
1537 input file height (default: autodetect)
1538 .IPs fps=<value>
1539 output fps (default: 25)
1540 .IPs type=<value>
1541 input file type (available: jpeg, png, tga, sgi)
1543 .PD 1
1546 .B \-ni (AVI only)
1547 Force usage of non-interleaved AVI parser (fixes playback
1548 of some bad AVI files).
1551 .B \-nobps (AVI only)
1552 Do not use average byte/\:second value for A-V sync.
1553 Helps with some AVI files with broken header.
1556 .B \-noextbased
1557 Disables extension-based demuxer selection.
1558 By default, when the file type (demuxer) cannot be detected reliably
1559 (the file has no header or it is not reliable enough), the filename
1560 extension is used to select the demuxer.
1561 Always falls back on content-based demuxer selection.
1564 .B \-passwd <password> (also see \-user) (network only)
1565 Specify password for HTTP authentication.
1568 .B \-prefer\-ipv4 (network only)
1569 Use IPv4 on network connections.
1570 Falls back on IPv6 automatically.
1573 .B \-prefer\-ipv6 (IPv6 network only)
1574 Use IPv6 on network connections.
1575 Falls back on IPv4 automatically.
1578 .B \-psprobe <byte position>
1579 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1580 how many bytes in the stream you want MPlayer to scan in order to identify
1581 the video codec used.
1582 This option is needed to play EVO or VDR files containing H.264 streams.
1585 .B \-pvr <option1:option2:...> (PVR only)
1586 This option tunes various encoding properties of the PVR capture module.
1587 It has to be used with any hardware MPEG encoder based card supported by the
1588 V4L2 driver.
1589 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1590 cards are known as PVR capture cards.
1591 Be aware that only Linux 2.6.18 kernel
1592 and above is able to handle MPEG stream through V4L2 layer.
1593 For hardware capture of an MPEG stream and watching it with
1594 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1595 .sp 1
1596 Available options are:
1597 .RSs
1598 .IPs aspect=<0\-3>
1599 Specify input aspect ratio:
1600 .RSss
1601 0: 1:1
1603 1: 4:3 (default)
1605 2: 16:9
1607 3: 2.21:1
1608 .REss
1609 .IPs arate=<32000\-48000>
1610 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1611 and 48000 Hz).
1612 .IPs alayer=<1\-3>
1613 Specify MPEG audio layer encoding (default: 2).
1614 .IPs abitrate=<32\-448>
1615 Specify audio encoding bitrate in kbps (default: 384).
1616 .IPs amode=<value>
1617 Specify audio encoding mode.
1618 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1619 .IPs vbitrate=<value>
1620 Specify average video bitrate encoding in Mbps (default: 6).
1621 .IPs vmode=<value>
1622 Specify video encoding mode:
1623 .RSss
1624 vbr: Variable BitRate (default)
1626 cbr: Constant BitRate
1627 .REss
1628 .IPs vpeak=<value>
1629 Specify peak video bitrate encoding in Mbps
1630 (only useful for VBR encoding, default: 9.6).
1631 .IPs fmt=<value>
1632 Choose an MPEG format for encoding:
1633 .RSss
1634 ps:    MPEG-2 Program Stream (default)
1636 ts:    MPEG-2 Transport Stream
1638 mpeg1: MPEG-1 System Stream
1640 vcd:   Video CD compatible stream
1642 svcd:  Super Video CD compatible stream
1644 dvd:   DVD compatible stream
1645 .REss
1647 .PD 1
1650 .B \-radio <option1:option2:...> (radio only)
1651 These options set various parameters of the radio capture module.
1652 For listening to radio with MPlayer use 'radio://<frequency>'
1653 (if channels option is not given) or 'radio://<channel_number>'
1654 (if channels option is given) as a movie URL.
1655 You can see allowed frequency range by running MPlayer with '\-v'.
1656 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1657 If the capture keyword is not given you can listen to radio
1658 using the line-in cable only.
1659 Using capture to listen is not recommended due to synchronization
1660 problems, which makes this process uncomfortable.
1661 .sp 1
1662 Available options are:
1663 .RSs
1664 .IPs device=<value>
1665 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1666 .IPs driver=<value>
1667 Radio driver to use (default: v4l2 if available, otherwise v4l).
1668 Currently, v4l and v4l2 drivers are supported.
1669 .IPs volume=<0..100>
1670 sound volume for radio device (default 100)
1671 .IPs "freq_min=<value> (*BSD BT848 only)"
1672 minimum allowed frequency (default: 87.50)
1673 .IPs "freq_max=<value> (*BSD BT848 only)"
1674 maximum allowed frequency (default: 108.00)
1675 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1676 Set channel list.
1677 Use _ for spaces in names (or play with quoting ;-).
1678 The channel names will then be written using OSD and the slave commands
1679 radio_step_channel and radio_set_channel will be usable for
1680 a remote control (see LIRC).
1681 If given, number in movie URL will be treated as channel position in
1682 channel list.
1684 .I EXAMPLE:
1685 radio://1, radio://104.4, radio_set_channel 1
1686 .IPs "adevice=<value> (radio capture only)"
1687 Name of device to capture sound from.
1688 Without such a name capture will be disabled,
1689 even if the capture keyword appears in the URL.
1690 For ALSA devices use it in the form hw=<card>.<device>.
1691 If the device name contains a '=', the module will use
1692 ALSA to capture, otherwise OSS.
1693 .IPs "arate=<value> (radio capture only)"
1694 Rate in samples per second (default: 44100).
1696 .I NOTE:
1697 When using audio capture set also \-rawaudio rate=<value> option
1698 with the same value as arate.
1699 If you have problems with sound speed (runs too quickly), try to play
1700 with different rate values (e.g.\& 48000,44100,32000,...).
1701 .IPs "achannels=<value> (radio capture only)"
1702 Number of audio channels to capture.
1706 .B \-rawaudio <option1:option2:...>
1707 This option lets you play raw audio files.
1708 You have to use \-demuxer rawaudio as well.
1709 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1710 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1711 .sp 1
1712 Available options are:
1713 .sp 1
1714 .PD 0
1715 .RSs
1716 .IPs channels=<value>
1717 number of channels
1718 .IPs rate=<value>
1719 rate in samples per second
1720 .IPs samplesize=<value>
1721 sample size in bytes
1722 .IPs bitrate=<value>
1723 bitrate for rawaudio files
1724 .IPs format=<value>
1725 fourcc in hex
1727 .PD 1
1730 .B \-rawvideo <option1:option2:...>
1731 This option lets you play raw video files.
1732 You have to use \-demuxer rawvideo as well.
1733 .sp 1
1734 Available options are:
1735 .sp 1
1736 .PD 0
1737 .RSs
1738 .IPs fps=<value>
1739 rate in frames per second (default: 25.0)
1740 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1741 set standard image size
1742 .IPs w=<value>
1743 image width in pixels
1744 .IPs h=<value>
1745 image height in pixels
1746 .IPs i420|yv12|yuy2|y8
1747 set colorspace
1748 .IPs format=<value>
1749 colorspace (fourcc) in hex or string constant.
1750 Use \-rawvideo format=help for a list of possible strings.
1751 .IPs size=<value>
1752 frame size in Bytes
1753 .REss
1754 .sp 1
1756 .I EXAMPLE:
1758 .PD 0
1759 .RSs
1760 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1761 Play the famous "foreman" sample video.
1762 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1763 Play a raw YUV sample.
1765 .PD 1
1768 .B \-rtsp\-port
1769 Used with 'rtsp://' URLs to force the client's port number.
1770 This option may be useful if you are behind a router and want to forward
1771 the RTSP stream from the server to a specific client.
1774 .B \-rtsp\-destination
1775 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1776 This option may be useful with some RTSP server which do not
1777 send RTP packets to the right interface.
1778 If the connection to the RTSP server fails, use \-v to see
1779 which IP address MPlayer tries to bind to and try to force
1780 it to one assigned to your computer instead.
1783 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1784 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1785 packets be streamed over TCP (using the same TCP connection as RTSP).
1786 This option may be useful if you have a broken internet connection that does
1787 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1790 .B \-saveidx <filename>
1791 Force index rebuilding and dump the index to <filename>.
1792 Currently this only works with AVI files.
1794 .I NOTE:
1795 This option is obsolete now that MPlayer has OpenDML support.
1798 .B \-sb <byte position> (also see \-ss)
1799 Seek to byte position.
1800 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1803 .B \-speed <0.01\-100>
1804 Slow down or speed up playback by the factor given as parameter.
1805 Not guaranteed to work correctly with \-oac copy.
1808 .B \-srate <Hz>
1809 Selects the output sample rate to be used
1810 (of course sound cards have limits on this).
1811 If the sample frequency selected is different from that
1812 of the current media, the resample or lavcresample audio filter will be inserted
1813 into the audio filter layer to compensate for the difference.
1814 The type of resampling can be controlled by the \-af\-adv option.
1815 The default is fast resampling that may cause distortion.
1818 .B \-ss <time> (also see \-sb)
1819 Seek to given time position.
1820 .sp 1
1821 .I EXAMPLE:
1822 .PD 0
1823 .RSs
1824 .IPs "\-ss 56"
1825 Seeks to 56 seconds.
1826 .IPs "\-ss 01:10:00"
1827 Seeks to 1 hour 10 min.
1829 .PD 1
1832 .B \-tskeepbroken
1833 Tells MPlayer not to discard TS packets reported as broken in the stream.
1834 Sometimes needed to play corrupted MPEG-TS files.
1837 .B \-tsprobe <byte position>
1838 When playing an MPEG-TS stream, this option lets you specify how many
1839 bytes in the stream you want MPlayer to search for the desired
1840 audio and video IDs.
1843 .B \-tsprog <1\-65534>
1844 When playing an MPEG-TS stream, you can specify with this option which
1845 program (if present) you want to play.
1846 Can be used with \-vid and \-aid.
1849 .B \-tv <option1:option2:...> (TV/\:PVR only)
1850 This option tunes various properties of the TV capture module.
1851 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1852 or even 'tv://<channel_name> (see option channels for channel_name below)
1853 as a movie URL.
1854 You can also use 'tv:///<input_id>' to start watching a
1855 movie from a composite or S-Video input (see option input for details).
1856 .sp 1
1857 Available options are:
1858 .RSs
1859 .IPs noaudio
1860 no sound
1861 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1862 If signal strength reported by device is less than this value,
1863 audio and video will be muted.
1864 In most cases automute=100 will be enough.
1865 Default is 0 (automute disabled).
1866 .IPs driver=<value>
1867 See \-tv driver=help for a list of compiled-in TV input drivers.
1868 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1869 .IPs device=<value>
1870 Specify TV device (default: /dev/\:video0).
1871 .I NOTE:
1872 For the bsdbt848 driver you can provide both bktr and tuner device
1873 names separating them with a comma, tuner after
1874 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1875 .IPs input=<value>
1876 Specify input (default: 0 (TV), see console output for available inputs).
1877 .IPs freq=<value>
1878 Specify the frequency to set the tuner to (e.g.\& 511.250).
1879 Not compatible with the channels parameter.
1880 .IPs outfmt=<value>
1881 Specify the output format of the tuner with a preset value supported by the
1882 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1883 arbitrary format given as hex value.
1884 Try outfmt=help for a list of all available formats.
1885 .IPs width=<value>
1886 output window width
1887 .IPs height=<value>
1888 output window height
1889 .IPs fps=<value>
1890 framerate at which to capture video (frames per second)
1891 .IPs buffersize=<value>
1892 maximum size of the capture buffer in megabytes (default: dynamical)
1893 .IPs norm=<value>
1894 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1895 For v4l2, see the console output for a list of all available norms,
1896 also see the normid option below.
1897 .IPs "normid=<value> (v4l2 only)"
1898 Sets the TV norm to the given numeric ID.
1899 The TV norm depends on the capture card.
1900 See the console output for a list of available TV norms.
1901 .IPs channel=<value>
1902 Set tuner to <value> channel.
1903 .IPs chanlist=<value>
1904 available: europe-east, europe-west, us-bcast, us-cable, etc
1905 .IPs channels=<chan>\-<name>[=<norm>],<chan>\-<name>[=<norm>],...
1906 Set names for channels.
1907 .I NOTE:
1908 If <chan> is an integer greater than 1000, it will be treated as frequency (in kHz)
1909 rather than channel name from frequency table.
1911 Use _ for spaces in names (or play with quoting ;-).
1912 The channel names will then be written using OSD, and the slave commands
1913 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1914 a remote control (see LIRC).
1915 Not compatible with the frequency parameter.
1917 .I NOTE:
1918 The channel number will then be the position in the 'channels' list,
1919 beginning with 1.
1921 .I EXAMPLE:
1922 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1923 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1924 Set the image equalizer on the card.
1925 .IPs audiorate=<value>
1926 Set audio capture bitrate.
1927 .IPs forceaudio
1928 Capture audio even if there are no audio sources reported by v4l.
1929 .IPs "alsa\ "
1930 Capture from ALSA.
1931 .IPs amode=<0\-3>
1932 Choose an audio mode:
1933 .RSss
1934 0: mono
1936 1: stereo
1938 2: language 1
1940 3: language 2
1941 .REss
1942 .IPs forcechan=<1\-2>
1943 By default, the count of recorded audio channels is determined automatically
1944 by querying the audio mode from the TV card.
1945 This option allows forcing stereo/\:mono recording regardless of the amode
1946 option and the values returned by v4l.
1947 This can be used for troubleshooting when the TV card is unable to report the
1948 current audio mode.
1949 .IPs adevice=<value>
1950 Set an audio device.
1951 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1952 You must replace any ':' by a '.' in the hardware ID for ALSA.
1953 .IPs audioid=<value>
1954 Choose an audio output of the capture card, if it has more than one.
1955 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1956 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1957 These options set parameters of the mixer on the video capture card.
1958 They will have no effect, if your card does not have one.
1959 For v4l2 50 maps to the default value of the
1960 control, as reported by the driver.
1961 .IPs "gain=<0\-100> (v4l2)"
1962 Set gain control for video devices (usually webcams) to the desired
1963 value and switch off automatic control.
1964 A value of 0 enables automatic control.
1965 If this option is omitted, gain control will not be modified.
1966 .IPs immediatemode=<bool>
1967 A value of 0 means capture and buffer audio and video together
1968 (default for MEncoder).
1969 A value of 1 (default for MPlayer) means to do video capture only and let the
1970 audio go through a loopback cable from the TV card to the sound card.
1971 .IPs mjpeg
1972 Use hardware MJPEG compression (if the card supports it).
1973 When using this option, you do not need to specify the width and height
1974 of the output window, because MPlayer will determine it automatically
1975 from the decimation value (see below).
1976 .IPs decimation=<1|2|4>
1977 choose the size of the picture that will be compressed by hardware
1978 MJPEG compression:
1979 .RSss
1980 1: full size
1981     704x576    PAL
1982     704x480    NTSC
1984 2: medium size
1985     352x288    PAL
1986     352x240    NTSC
1988 4: small size
1989     176x144    PAL
1990     176x120    NTSC
1991 .REss
1992 .IPs quality=<0\-100>
1993 Choose the quality of the JPEG compression
1994 (< 60 recommended for full size).
1995 .IPs tdevice=<value>
1996 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
1997 .IPs tformat=<format>
1998 Specify TV teletext display format (default: 0):
1999 .RSss
2000 0: opaque
2002 1: transparent
2004 2: opaque with inverted colors
2006 3: transparent with inverted colors
2007 .REss
2008 .IPs tpage=<100\-899>
2009 Specify initial TV teletext page number (default: 100).
2010 .IPs tlang=<\-1\-127>
2011 Specify default teletext language code (default: 0), which will be used
2012 as primary language until a type 28 packet is received.
2013 Useful when the teletext system uses a non-latin character set, but language
2014 codes are not transmitted via teletext type 28 packets for some reason.
2015 To see a list of supported language codes set this option to \-1.
2016 .IPs "hidden_video_renderer (dshow only)"
2017 Terminate stream with video renderer instead of Null renderer (default: off).
2018 Will help if video freezes but audio does not.
2019 .I NOTE:
2020 May not work with \-vo directx and \-vf crop combination.
2021 .IPs "hidden_vp_renderer (dshow only)"
2022 Terminate VideoPort pin stream with video renderer
2023 instead of removing it from the graph (default: off).
2024 Useful if your card has a VideoPort pin and video is choppy.
2025 .I NOTE:
2026 May not work with \-vo directx and \-vf crop combination.
2027 .IPs "system_clock (dshow only)"
2028 Use the system clock as sync source instead of the default graph clock
2029 (usually the clock from one of the live sources in graph).
2030 .IPs "normalize_audio_chunks (dshow only)"
2031 Create audio chunks with a time length equal to
2032 video frame time length (default: off).
2033 Some audio cards create audio chunks about 0.5s in size, resulting in
2034 choppy video when using immediatemode=0.
2038 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
2039 Tune the TV channel scanner.
2040 MPlayer will also print value for "-tv channels=" option,
2041 including existing and just found channels.
2042 .sp 1
2043 Available suboptions are:
2044 .RSs
2045 .IPs autostart
2046 Begin channel scanning immediately after startup (default: disabled).
2047 .IPs period=<0.1\-2.0>
2048 Specify delay in seconds before switching to next channel (default: 0.5).
2049 Lower values will cause faster scanning, but can detect
2050 inactive TV channels as active.
2051 .IPs threshold=<1\-100>
2052 Threshold value for the signal strength (in percent), as reported
2053 by the device (default: 50).
2054 A signal strength higher than this value will indicate that the
2055 currently scanning channel is active.
2059 .B \-user <username> (also see \-passwd) (network only)
2060 Specify username for HTTP authentication.
2063 .B \-user\-agent <string>
2064 Use <string> as user agent for HTTP streaming.
2067 .B \-vid <ID>
2068 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2069 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
2070 (if present) with the chosen video stream.
2073 .B \-vivo <suboption> (DEBUG CODE)
2074 Force audio parameters for the VIVO demuxer (for debugging purposes).
2075 FIXME: Document this.
2079 .SH "OSD/SUBTITLE OPTIONS"
2080 .I NOTE:
2081 Also see \-vf expand.
2084 .B \-ass (FreeType only)
2085 Turn on SSA/ASS subtitle rendering.
2086 With this option, libass will be used for SSA/ASS
2087 external subtitles and Matroska tracks.
2088 You may also want to use \-embeddedfonts.
2090 .I NOTE:
2091 Unlike normal OSD, libass uses fontconfig by default. To disable it, use
2092 \-nofontconfig.
2095 .B \-ass\-border\-color <value>
2096 Sets the border (outline) color for text subtitles.
2097 The color format is RRGGBBAA.
2100 .B \-ass\-bottom\-margin <value>
2101 Adds a black band at the bottom of the frame.
2102 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2105 .B \-ass\-color <value>
2106 Sets the color for text subtitles.
2107 The color format is RRGGBBAA.
2110 .B \-ass\-font\-scale <value>
2111 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2114 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2115 Override some style or script info parameters.
2117 .I EXAMPLE:
2118 .PD 0
2119 .RSs
2120 \-ass\-force\-style FontName=Arial,Default.Bold=1
2122 \-ass\-force\-style PlayResY=768
2124 .PD 1
2127 .B \-ass\-hinting <type>
2128 Set hinting type.
2129 <type> can be:
2130 .PD 0
2131 .RSs
2132 .IPs 0
2133 no hinting
2134 .IPs 1
2135 FreeType autohinter, light mode
2136 .IPs 2
2137 FreeType autohinter, normal mode
2138 .IPs 3
2139 font native hinter
2140 .IPs "0-3 + 4"
2141 The same, but hinting will only be performed if the OSD is rendered at
2142 screen resolution and will therefore not be scaled.
2144 .RSs
2145 The default value is 7 (use native hinter for unscaled OSD and no hinting otherwise).
2147 .PD 1
2150 .B \-ass\-line\-spacing <value>
2151 Set line spacing value for SSA/ASS renderer.
2154 .B \-ass\-styles <filename>
2155 Load all SSA/ASS styles found in the specified file and use them for
2156 rendering text subtitles.
2157 The syntax of the file is exactly like the
2158 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2161 .B \-ass\-top\-margin <value>
2162 Adds a black band at the top of the frame.
2163 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2166 .B \-ass\-use\-margins
2167 Enables placing toptitles and subtitles in black borders when they
2168 are available.
2171 .B \-dumpjacosub (MPlayer only)
2172 Convert the given subtitle (specified with the \-sub option) to the time-based
2173 JACOsub subtitle format.
2174 Creates a dumpsub.js file in the current directory.
2177 .B \-dumpmicrodvdsub (MPlayer only)
2178 Convert the given subtitle (specified with the \-sub option) to the
2179 MicroDVD subtitle format.
2180 Creates a dumpsub.sub file in the current directory.
2183 .B \-dumpmpsub (MPlayer only)
2184 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2185 subtitle format, MPsub.
2186 Creates a dump.mpsub file in the current directory.
2189 .B \-dumpsami (MPlayer only)
2190 Convert the given subtitle (specified with the \-sub option) to the time-based
2191 SAMI subtitle format.
2192 Creates a dumpsub.smi file in the current directory.
2195 .B \-dumpsrtsub (MPlayer only)
2196 Convert the given subtitle (specified with the \-sub option) to the time-based
2197 SubViewer (SRT) subtitle format.
2198 Creates a dumpsub.srt file in the current directory.
2200 .I NOTE:
2201 Some broken hardware players choke on SRT subtitle files with Unix
2202 line endings.
2203 If you are unlucky enough to have such a box, pass your subtitle
2204 files through unix2dos or a similar program to replace Unix line
2205 endings with DOS/Windows line endings.
2208 .B \-dumpsub (MPlayer only) (BETA CODE)
2209 Dumps the subtitle substream from VOB streams.
2210 Also see the \-dump*sub and \-vobsubout* options.
2213 .B \-embeddedfonts (FreeType only)
2214 Enables extraction of Matroska embedded fonts (default: disabled).
2215 These fonts can be used for SSA/ASS subtitle
2216 rendering (\-ass option).
2217 Font files are created in the ~/.mplayer/\:fonts directory.
2219 .I NOTE:
2220 With FontConfig 2.4.2 or newer, embedded fonts are opened directly from memory,
2221 and this option is enabled by default.
2224 .B \-ffactor <number>
2225 Resample the font alphamap.
2226 Can be:
2227 .PD 0
2228 .RSs
2229 .IPs 0
2230 plain white fonts
2231 .IPs 0.75
2232 very narrow black outline (default)
2233 .IPs 1
2234 narrow black outline
2235 .IPs 10
2236 bold black outline
2238 .PD 1
2241 .B \-flip\-hebrew (FriBiDi only)
2242 Turns on flipping subtitles using FriBiDi.
2245 .B \-noflip\-hebrew\-commas
2246 Change FriBiDi's assumptions about the placements of commas in subtitles.
2247 Use this if commas in subtitles are shown at the start of a sentence
2248 instead of at the end.
2251 .B \-font <path to font.desc file>
2252 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2253 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2254 ~/.mplayer/\:subfont.ttf).
2256 .I NOTE:
2257 With FreeType, this option determines the path to the text font file.
2258 With fontconfig, this option determines the fontconfig font name.
2259 .sp 1
2260 .I EXAMPLE:
2261 .PD 0
2262 .RSs
2263 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2265 \-font ~/\:.mplayer/\:arialuni.ttf
2267 \-font 'Bitstream Vera Sans'
2269 .PD 1
2272 .B \-fontconfig (fontconfig only)
2273 Enables the usage of fontconfig managed fonts.
2275 .I NOTE:
2276 By default fontconfig is used for libass-rendered subtitles and not used for
2277 OSD. With \-fontconfig it is used for both libass and OSD, with \-nofontconfig
2278 it is not used at all.
2281 .B \-forcedsubsonly
2282 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2283 \-slang.
2286 .B \-fribidi\-charset <charset name> (FriBiDi only)
2287 Specifies the character set that will be passed to FriBiDi when
2288 decoding non-UTF-8 subtitles (default: ISO8859-8).
2291 .B \-ifo <VOBsub IFO file>
2292 Indicate the file that will be used to load palette and frame size for VOBsub
2293 subtitles.
2296 .B \-noautosub
2297 Turns off automatic subtitle file loading.
2300 .B \-osd\-duration <time>
2301 Set the duration of the OSD messages in ms (default: 1000).
2304 .B \-osdlevel <0\-3> (MPlayer only)
2305 Specifies which mode the OSD should start in.
2306 .PD 0
2307 .RSs
2308 .IPs 0
2309 subtitles only
2310 .IPs 1
2311 volume + seek (default)
2312 .IPs 2
2313 volume + seek + timer + percentage
2314 .IPs 3
2315 volume + seek + timer + percentage + total time
2317 .PD 1
2320 .B \-overlapsub
2321 Allows the next subtitle to be displayed while the current one is
2322 still visible (default is to enable the support only for specific
2323 formats).
2326 .B \-sid <ID> (also see \-slang, \-vobsubid)
2327 Display the subtitle stream specified by <ID> (0\-31).
2328 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2329 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2332 .B \-slang <language code[,language code,...]> (also see \-sid)
2333 Specify a priority list of subtitle languages to use.
2334 Different container formats employ different language codes.
2335 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2336 three letter language codes while OGM uses a free-form identifier.
2337 MPlayer prints the available languages when run in verbose (\-v) mode.
2338 .sp 1
2339 .I EXAMPLE:
2340 .PD 0
2341 .RSs
2342 .IPs "mplayer dvd://1 \-slang hu,en"
2343 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2344 Hungarian is not available.
2345 .IPs "mplayer \-slang jpn example.mkv"
2346 Plays a Matroska file with Japanese subtitles.
2348 .PD 1
2351 .B \-spuaa <mode>
2352 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2353 A value of 16 may be added to <mode> in order to force scaling even
2354 when original and scaled frame size already match.
2355 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2356 Available modes are:
2357 .PD 0
2358 .RSs
2359 .IPs 0
2360 none (fastest, very ugly)
2361 .IPs 1
2362 approximate (broken?)
2363 .IPs 2
2364 full (slow)
2365 .IPs 3
2366 bilinear (default, fast and not too bad)
2367 .IPs 4
2368 uses swscaler gaussian blur (looks very good)
2370 .PD 1
2373 .B \-spualign <\-1\-2>
2374 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2375 .PD 0
2376 .RSs
2377 .IPs "\-1"
2378 original position
2379 .IPs " 0"
2380 Align at top (original behavior, default).
2381 .IPs " 1"
2382 Align at center.
2383 .IPs " 2"
2384 Align at bottom.
2386 .PD 1
2389 .B \-spugauss <0.0\-3.0>
2390 Variance parameter of gaussian used by \-spuaa 4.
2391 Higher means more blur (default: 1.0).
2394 .B \-sub <subtitlefile1,subtitlefile2,...>
2395 Use/\:display these subtitle files.
2396 Only one file can be displayed at the same time.
2399 .B \-sub\-bg\-alpha <0\-255>
2400 Specify the alpha channel value for subtitles and OSD backgrounds.
2401 Big values mean more transparency.
2402 0 means completely transparent.
2405 .B \-sub\-bg\-color <0\-255>
2406 Specify the color value for subtitles and OSD backgrounds.
2407 Currently subtitles are grayscale so this value is equivalent to the
2408 intensity of the color.
2409 255 means white and 0 black.
2412 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2413 Force subtitle demuxer type for \-subfile.
2414 Use a '+' before the name to force it, this will skip some checks!
2415 Give the demuxer name as printed by \-sub\-demuxer help.
2416 For backward compatibility it also accepts the demuxer ID as defined in
2417 subreader.h.
2420 .B \-sub\-fuzziness <mode>
2421 Adjust matching fuzziness when searching for subtitles:
2422 .PD 0
2423 .RSs
2424 .IPs 0
2425 exact match
2426 .IPs 1
2427 Load all subs containing movie name.
2428 .IPs 2
2429 Load all subs in the current directory.
2431 .PD 1
2434 .B \-sub\-no\-text\-pp
2435 Disables any kind of text post processing done after loading the subtitles.
2436 Used for debug purposes.
2439 .B \-subalign <0\-2>
2440 Specify which edge of the subtitles should be aligned at the height
2441 given by \-subpos.
2442 .PD 0
2443 .RSs
2444 .IPs 0
2445 Align subtitle top edge (original behavior).
2446 .IPs 1
2447 Align subtitle center.
2448 .IPs 2
2449 Align subtitle bottom edge (default).
2451 .PD 1
2454 .B "\-subcc \ "
2455 Display DVD Closed Caption (CC) subtitles.
2456 These are
2457 .B not
2458 the VOB subtitles, these are special ASCII subtitles for the
2459 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2460 CC subtitles have not been spotted on DVDs from other regions so far.
2463 .B \-subcp <codepage> (iconv only)
2464 If your system supports iconv(3), you can use this option to
2465 specify the subtitle codepage.
2466 .sp 1
2467 .I EXAMPLE:
2468 .PD 0
2469 .RSs
2470 \-subcp latin2
2472 \-subcp cp1250
2474 .PD 1
2477 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2478 You can specify your language using a two letter language code to
2479 make ENCA detect the codepage automatically.
2480 If unsure, enter anything and watch mplayer \-v output for available
2481 languages.
2482 Fallback codepage specifies the codepage to use, when autodetection fails.
2483 .sp 1
2484 .I EXAMPLE:
2485 .PD 0
2486 .RSs
2487 .IPs "\-subcp enca:cs:latin2"
2488 Guess the encoding, assuming the subtitles are Czech, fall back on
2489 latin 2, if the detection fails.
2490 .IPs "\-subcp enca:pl:cp1250"
2491 Guess the encoding for Polish, fall back on cp1250.
2493 .PD 1
2496 .B \-subdelay <sec>
2497 Delays subtitles by <sec> seconds.
2498 Can be negative.
2501 .B \-subfile <filename> (BETA CODE)
2502 Currently useless.
2503 Same as \-audiofile, but for subtitle streams (OggDS?).
2506 .B \-subfont <filename> (FreeType only)
2507 Sets the subtitle font.
2508 If no \-subfont is given, \-font is used.
2511 .B \-subfont\-autoscale <0\-3> (FreeType only)
2512 Sets the autoscale mode.
2514 .I NOTE:
2515 0 means that text scale and OSD scale are font heights in points.
2516 .sp 1
2517 The mode can be:
2518 .sp 1
2519 .PD 0
2520 .RSs
2521 .IPs 0
2522 no autoscale
2523 .IPs 1
2524 proportional to movie height
2525 .IPs 2
2526 proportional to movie width
2527 .IPs 3
2528 proportional to movie diagonal (default)
2530 .PD 1
2533 .B \-subfont\-blur <0\-8> (FreeType only)
2534 Sets the font blur radius (default: 2).
2537 .B \-subfont\-encoding <value> (FreeType only)
2538 Sets the font encoding.
2539 When set to 'unicode', all the glyphs from the font file will be rendered and
2540 unicode will be used (default: unicode).
2543 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2544 Sets the autoscale coefficient of the OSD elements (default: 6).
2547 .B \-subfont\-outline <0\-8> (FreeType only)
2548 Sets the font outline thickness (default: 2).
2551 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2552 Sets the subtitle text autoscale coefficient as percentage of the
2553 screen size (default: 5).
2556 .B \-subfps <rate>
2557 Specify the framerate of the subtitle file (default: movie fps).
2559 .I NOTE:
2560 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2561 slows them down for time-based ones.
2564 .B \-subpos <0\-100> (useful with \-vf expand)
2565 Specify the position of subtitles on the screen.
2566 The value is the vertical position of the subtitle in % of the screen height.
2569 .B \-subwidth <10\-100>
2570 Specify the maximum width of subtitles on the screen.
2571 Useful for TV-out.
2572 The value is the width of the subtitle in % of the screen width.
2575 .B \-noterm\-osd
2576 Disable the display of OSD messages on the console when no video output is
2577 available.
2580 .B \-term\-osd\-esc <escape sequence>
2581 Specify the escape sequence to use before writing an OSD message on the
2582 console.
2583 The escape sequence should move the pointer to the beginning of the line
2584 used for the OSD and clear it (default: ^[[A\\r^[[K).
2587 .B \-unicode
2588 Tells MPlayer to handle the subtitle file as unicode.
2591 .B \-unrarexec <path to unrar executable> (not supported on MingW)
2592 Specify the path to the unrar executable so MPlayer can use it to access
2593 rar-compressed VOBsub files (default: not set, so the feature is off).
2594 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2597 .B "\-utf8 \ \ "
2598 Tells MPlayer to handle the subtitle file as UTF-8.
2601 .B \-vobsub <VOBsub file without extension>
2602 Specify a VOBsub file to use for subtitles.
2603 Has to be the full pathname without extension, i.e.\& without
2604 the '.idx', '.ifo' or '.sub'.
2607 .B \-vobsubid <0\-31>
2608 Specify the VOBsub subtitle ID.
2612 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2615 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2616 Override audio driver/\:card buffer size detection.
2619 .B \-format <format> (also see the format audio filter)
2620 Select the sample format used for output from the audio filter
2621 layer to the sound card.
2622 The values that <format> can adopt are listed below in the
2623 description of the format audio filter.
2626 .B \-mixer <device>
2627 Use a mixer device different from the default /dev/\:mixer.
2628 For ALSA this is the mixer name.
2631 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2632 This option will tell MPlayer to use a different channel for controlling
2633 volume than the default PCM.
2634 Options for OSS include
2635 .B vol, pcm, line.
2636 For a complete list of options look for SOUND_DEVICE_NAMES in
2637 /usr/\:include/\:linux/\:soundcard.h.
2638 For ALSA you can use the names e.g.\& alsamixer displays, like
2639 .B Master, Line, PCM.
2641 .I NOTE:
2642 ALSA mixer channel names followed by a number must be specified in the
2643 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2644 be converted to
2645 .BR PCM,1 .
2648 .B \-softvol
2649 Force the use of the software mixer, instead of using the sound card
2650 mixer.
2653 .B \-softvol\-max <10.0\-10000.0>
2654 Set the maximum amplification level in percent (default: 110).
2655 A value of 200 will allow you to adjust the volume up to a maximum of
2656 double the current level.
2657 With values below 100 the initial volume (which is 100%) will be above
2658 the maximum, which e.g.\& the OSD cannot display correctly.
2661 .B \-volstep <0\-100>
2662 Set the step size of mixer volume changes in percent of the whole range
2663 (default: 3).
2666 .B \-volume <-1\-100> (also see \-af volume)
2667 Set the startup volume in the mixer, either hardware or software (if
2668 used with \-softvol).
2669 A value of -1 (the default) will not change the volume.
2673 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2674 Audio output drivers are interfaces to different audio output facilities.
2675 The syntax is:
2678 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2679 Specify a priority list of audio output drivers to be used.
2681 If the list has a trailing ',' MPlayer will fall back on drivers not
2682 contained in the list.
2683 Suboptions are optional and can mostly be omitted.
2685 .I NOTE:
2686 See \-ao help for a list of compiled-in audio output drivers.
2687 .sp 1
2688 .I EXAMPLE:
2689 .PD 0
2690 .RSs
2691 .IPs "\-ao alsa,oss,"
2692 Try the ALSA driver, then the OSS driver, then others.
2693 .IPs "\-ao alsa:noblock:device=hw=0.3"
2694 Sets noblock-mode and the device-name as first card, fourth device.
2696 .PD 1
2697 .sp 1
2698 Available audio output drivers are:
2701 .B "alsa\ \ \ "
2702 ALSA 0.9/1.x audio output driver
2703 .PD 0
2704 .RSs
2705 .IPs noblock
2706 Sets noblock-mode.
2707 .IPs device=<device>
2708 Sets the device name.
2709 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2710 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2711 you really know how to set it correctly.
2713 .PD 1
2716 .B "alsa5\ \ "
2717 ALSA 0.5 audio output driver
2720 .B "oss\ \ \ \ "
2721 OSS audio output driver
2722 .PD 0
2723 .RSs
2724 .IPs <dsp-device>
2725 Sets the audio output device (default: /dev/\:dsp).
2726 .IPs <mixer-device>
2727 Sets the audio mixer device (default: /dev/\:mixer).
2728 .IPs <mixer-channel>
2729 Sets the audio mixer channel (default: pcm).
2731 .PD 1
2734 .B sdl (SDL only)
2735 highly platform independent SDL (Simple Directmedia Layer) library
2736 audio output driver
2737 .PD 0
2738 .RSs
2739 .IPs <driver>
2740 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2742 .PD 1
2745 .B "arts\ \ \ "
2746 audio output through the aRts daemon
2749 .B "esd\ \ \ \ "
2750 audio output through the ESD daemon
2751 .PD 0
2752 .RSs
2753 .IPs <server>
2754 Explicitly choose the ESD server to use (default: localhost).
2756 .PD 1
2759 .B "jack\ \ \ \ "
2760 audio output through JACK (Jack Audio Connection Kit)
2761 .PD 0
2762 .RSs
2763 .IPs port=<name>
2764 Connects to the ports with the given name (default: physical ports).
2765 .IPs name=<client name>
2766 Client name that is passed to JACK (default: MPlayer [<PID>]).
2767 Useful if you want to have certain connections established automatically.
2768 .IPs (no)estimate
2769 Estimate the audio delay, supposed to make the video playback smoother
2770 (default: enabled).
2771 .IPs (no)autostart (default: disabled)
2772 Automatically start jackd if necessary.
2773 Note that this seems unreliable and will spam stdout with server messages.
2775 .PD 1
2778 .B "nas\ \ \ \ "
2779 audio output through NAS
2782 .B macosx (Mac OS X only)
2783 native Mac OS X audio output driver
2786 .B "openal\ "
2787 Experimental OpenAL audio output driver
2790 .B "pulse\ \ "
2791 PulseAudio audio output driver
2792 .PD 0
2793 .RSs
2794 .IPs "[<host>][:<output sink>]"
2795 Specify the host and optionally output sink to use.
2796 An empty <host> string uses a local connection, "localhost"
2797 uses network transfer (most likely not what you want).
2799 .PD 1
2802 .B sgi (SGI only)
2803 native SGI audio output driver
2804 .PD 0
2805 .RSs
2806 .IPs "<output device name>"
2807 Explicitly choose the output device/\:interface to use
2808 (default: system-wide default).
2809 For example, 'Analog Out' or 'Digital Out'.
2811 .PD 1
2814 .B sun (Sun only)
2815 native Sun audio output driver
2816 .PD 0
2817 .RSs
2818 .IPs <device>
2819 Explicitly choose the audio device to use (default: /dev/\:audio).
2821 .PD 1
2824 .B win32 (Windows only)
2825 native Windows waveout audio output driver
2828 .B dsound (Windows only)
2829 DirectX DirectSound audio output driver
2830 .PD 0
2831 .RSs
2832 .IPs device=<devicenum>
2833 Sets the device number to use.
2834 Playing a file with \-v will show a list of available devices.
2836 .PD 1
2839 .B dxr2 (also see \-dxr2) (DXR2 only)
2840 Creative DXR2 specific output driver
2843 .B ivtv (IVTV only)
2844 IVTV specific MPEG audio output driver.
2845 Works with \-ac hwmpa only.
2848 .B v4l2 (requires Linux 2.6.22+ kernel)
2849 Audio output driver for V4L2 cards with hardware MPEG decoder.
2852 .B mpegpes (DVB only)
2853 Audio output driver for DVB cards that writes the output to an MPEG-PES
2854 file if no DVB card is installed.
2855 .PD 0
2856 .RSs
2857 .IPs card=<1\-4>
2858 DVB card to use if more than one card is present.
2859 If not specified MPlayer will search the first usable card.
2860 .IPs file=<filename>
2861 output filename
2863 .PD 1
2866 .B "null\ \ \ "
2867 Produces no audio output but maintains video playback speed.
2868 Use \-nosound for benchmarking.
2871 .B "pcm\ \ \ \ "
2872 raw PCM/wave file writer audio output
2873 .PD 0
2874 .RSs
2875 .IPs (no)waveheader
2876 Include or do not include the wave header (default: included).
2877 When not included, raw PCM will be generated.
2878 .IPs file=<filename>
2879 Write the sound to <filename> instead of the default
2880 audiodump.wav.
2881 If nowaveheader is specified, the default is audiodump.pcm.
2882 .IPs "fast\ "
2883 Try to dump faster than realtime.
2884 Make sure the output does not get truncated (usually with
2885 "Too many video packets in buffer" message).
2886 It is normal that you get a "Your system is too SLOW to play this!" message.
2888 .PD 1
2891 .B "plugin\ \ "
2892 plugin audio output driver
2896 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
2899 .B \-adapter <value>
2900 Set the graphics card that will receive the image.
2901 You can get a list of available cards when you run this option with \-v.
2902 Currently only works with the directx video output driver.
2905 .B \-bpp <depth>
2906 Override the autodetected color depth.
2907 Only supported by the fbdev, dga, svga, vesa video output drivers.
2910 .B \-border
2911 Play movie with window border and decorations.
2912 Since this is on by default, use \-noborder to disable the standard window
2913 decorations.
2916 .B \-brightness <\-100\-100>
2917 Adjust the brightness of the video signal (default: 0).
2918 Not supported by all video output drivers.
2921 .B \-contrast <\-100\-100>
2922 Adjust the contrast of the video signal (default: 0).
2923 Not supported by all video output drivers.
2926 .B \-display <name> (X11 only)
2927 Specify the hostname and display number of the X server you want to display
2929 .sp 1
2930 .I EXAMPLE:
2931 .PD 0
2932 .RSs
2933 \-display xtest.localdomain:0
2935 .PD 1
2938 .B "\-dr \ \ \ "
2939 Turns on direct rendering (not supported by all codecs and video outputs)
2941 .I WARNING:
2942 May cause OSD/SUB corruption!
2945 .B \-dxr2 <option1:option2:...>
2946 This option is used to control the dxr2 video output driver.
2947 .RSs
2948 .IPs ar-mode=<value>
2949 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
2950 .IPs iec958-encoded
2951 Set iec958 output mode to encoded.
2952 .IPs iec958-decoded
2953 Set iec958 output mode to decoded (default).
2954 .IPs macrovision=<value>
2955 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
2956 3 = agc 4 colorstripe)
2957 .IPs "mute\ "
2958 mute sound output
2959 .IPs unmute
2960 unmute sound output
2961 .IPs ucode=<value>
2962 path to the microcode
2965 .sp 1
2966 .I TV output
2968 .RSs
2969 .IPs 75ire
2970 enable 7.5 IRE output mode
2971 .IPs no75ire
2972 disable 7.5 IRE output mode (default)
2973 .IPs "bw\ \ \ "
2974 b/w TV output
2975 .IPs color
2976 color TV output (default)
2977 .IPs interlaced
2978 interlaced TV output (default)
2979 .IPs nointerlaced
2980 disable interlaced TV output
2981 .IPs norm=<value>
2982 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
2983 .IPs square-pixel
2984 set pixel mode to square
2985 .IPs ccir601-pixel
2986 set pixel mode to ccir601
2989 .sp 1
2990 .I overlay
2992 .RSs
2993 .IPs cr-left=<0\-500>
2994 Set the left cropping value (default: 50).
2995 .IPs cr-right=<0\-500>
2996 Set the right cropping value (default: 300).
2997 .IPs cr-top=<0\-500>
2998 Set the top cropping value (default: 0).
2999 .IPs cr-bottom=<0\-500>
3000 Set the bottom cropping value (default: 0).
3001 .IPs ck-[r|g|b]=<0\-255>
3002 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
3003 .IPs ck-[r|g|b]min=<0\-255>
3004 minimum value for the respective color key
3005 .IPs ck-[r|g|b]max=<0\-255>
3006 maximum value for the respective color key
3007 .IPs ignore-cache
3008 Ignore cached overlay settings.
3009 .IPs update-cache
3010 Update cached overlay settings.
3011 .IPs ol-osd
3012 Enable overlay onscreen display.
3013 .IPs nool-osd
3014 Disable overlay onscreen display (default).
3015 .IPs ol[h|w|x|y]-cor=<\-20\-20>
3016 Adjust the overlay size (h,w) and position (x,y) in case it does not
3017 match the window perfectly (default: 0).
3018 .IPs overlay
3019 Activate overlay (default).
3020 .IPs nooverlay
3021 Activate TV-out.
3022 .IPs overlay-ratio=<1\-2500>
3023 Tune the overlay (default: 1000).
3027 .B \-fbmode <modename> (\-vo fbdev only)
3028 Change video mode to the one that is labeled as <modename> in
3029 /etc/\:fb.modes.
3031 .I NOTE:
3032 VESA framebuffer does not support mode changing.
3035 .B \-fbmodeconfig <filename> (\-vo fbdev only)
3036 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
3039 .B \-fs (also see \-zoom)
3040 Fullscreen playback (centers movie, and paints black bands around it).
3041 Not supported by all video output drivers.
3044 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3045 Try this option if you still experience fullscreen problems.
3048 .B \-fstype <type1,type2,...> (X11 only)
3049 Specify a priority list of fullscreen modes to be used.
3050 You can negate the modes by prefixing them with '\-'.
3051 If you experience problems like the fullscreen window being covered
3052 by other windows try using a different order.
3054 .I NOTE:
3055 See \-fstype help for a full list of available modes.
3056 .sp 1
3057 The available types are:
3058 .sp 1
3059 .PD 0
3060 .RSs
3061 .IPs above
3062 Use the _NETWM_STATE_ABOVE hint if available.
3063 .IPs below
3064 Use the _NETWM_STATE_BELOW hint if available.
3065 .IPs fullscreen
3066 Use the _NETWM_STATE_FULLSCREEN hint if available.
3067 .IPs layer
3068 Use the _WIN_LAYER hint with the default layer.
3069 .IPs layer=<0...15>
3070 Use the _WIN_LAYER hint with the given layer number.
3071 .IPs netwm
3072 Force NETWM style.
3073 .IPs "none\ "
3074 Do not set fullscreen window layer.
3075 .IPs stays_on_top
3076 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3077 .REss
3078 .sp 1
3080 .I EXAMPLE:
3082 .PD 0
3083 .RSs
3084 .IPs layer,stays_on_top,above,fullscreen
3085 Default order, will be used as a fallback if incorrect or
3086 unsupported modes are specified.
3087 .IPs \-fullscreen
3088 Fixes fullscreen switching on OpenBox 1.x.
3090 .PD 1
3093 .B \-geometry x[%][:y[%]] or [WxH][+x+y]
3094 Adjust where the output is on the screen initially.
3095 The x and y specifications are in pixels measured from the top-left of the
3096 screen to the top-left of the image being displayed, however if a percentage
3097 sign is given after the argument it turns the value into a percentage of the
3098 screen size in that direction.
3099 It also supports the standard X11 \-geometry option format.
3100 If an external window is specified using the \-wid option, then the x and
3101 y coordinates are relative to the top-left corner of the window rather
3102 than the screen.
3104 .I NOTE:
3105 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
3106 gl, gl2, directx, fbdev and tdfxfb video output drivers.
3107 .sp 1
3108 .I EXAMPLE:
3109 .PD 0
3110 .RSs
3111 .IPs 50:40
3112 Places the window at x=50, y=40.
3113 .IPs 50%:50%
3114 Places the window in the middle of the screen.
3115 .IPs "100%\ "
3116 Places the window at the middle of the right edge of the screen.
3117 .IPs 100%:100%
3118 Places the window at the bottom right corner of the screen.
3120 .PD 1
3123 .B \-guiwid <window ID> (also see \-wid) (GUI only)
3124 This tells the GUI to also use an X11 window and stick itself to the bottom
3125 of the video, which is useful to embed a mini-GUI in a browser (with the
3126 MPlayer plugin for instance).
3129 .B \-hue <\-100\-100>
3130 Adjust the hue of the video signal (default: 0).
3131 You can get a colored negative of the image with this option.
3132 Not supported by all video output drivers.
3135 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3136 Specify the dotclock or pixelclock range of the monitor.
3139 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3140 Specify the horizontal frequency range of the monitor.
3143 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3144 Specify the vertical frequency range of the monitor.
3147 .B \-monitoraspect <ratio> (also see \-aspect)
3148 Set the aspect ratio of your monitor or TV screen.
3149 A value of 0 disables a previous setting (e.g.\& in the config file).
3150 Overrides the \-monitorpixelaspect setting if enabled.
3151 .sp 1
3152 .I EXAMPLE:
3153 .PD 0
3154 .RSs
3155 \-monitoraspect 4:3  or 1.3333
3157 \-monitoraspect 16:9 or 1.7777
3159 .PD 1
3162 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3163 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3164 A value of 1 means square pixels
3165 (correct for (almost?) all LCDs).
3168 .B \-nodouble
3169 Disables double buffering, mostly for debugging purposes.
3170 Double buffering fixes flicker by storing two frames in memory, and
3171 displaying one while decoding another.
3172 It can affect OSD negatively, but often removes OSD flickering.
3175 .B \-nograbpointer
3176 Do not grab the mouse pointer after a video mode change (\-vm).
3177 Useful for multihead setups.
3180 .B \-nokeepaspect
3181 Do not keep window aspect ratio when resizing windows.
3182 Only works with the x11, xv, xmga, xvidix, directx video output drivers.
3183 Furthermore under X11 your window manager has to honor window aspect hints.
3186 .B "\-ontop\ "
3187 Makes the player window stay on top of other windows.
3188 Supported by video output drivers which use X11, except SDL,
3189 as well as directx, macosx, quartz, ggi and gl2.
3192 .B \-panscan <0.0\-1.0>
3193 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3194 movie to make it fit a 4:3 display without black bands).
3195 The range controls how much of the image is cropped.
3196 Only works with the xv, xmga, mga, gl, gl2, quartz, macosx and xvidix
3197 video output drivers.
3199 .I NOTE:
3200 Values between \-1 and 0 are allowed as well, but highly experimental
3201 and may crash or worse.
3202 Use at your own risk!
3205 .B \-panscanrange <\-19.0\-99.0> (experimental)
3206 Change the range of the pan-and-scan functionality (default: 1).
3207 Positive values mean multiples of the default range.
3208 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3209 E.g. \-panscanrange \-3 allows a zoom factor of up to 4.
3210 This feature is experimental.
3211 Do not report bugs unless you are using \-vo gl.
3214 .B \-refreshrate <Hz>
3215 Set the monitor refreshrate in Hz.
3216 Currently only supported by \-vo directx combined with the \-vm option.
3219 .B \-rootwin
3220 Play movie in the root window (desktop background).
3221 Desktop background images may cover the movie window, though.
3222 Only works with the x11, xv, xmga, xvidix, quartz, macosx and directx video output drivers.
3225 .B \-saturation <\-100\-100>
3226 Adjust the saturation of the video signal (default: 0).
3227 You can get grayscale output with this option.
3228 Not supported by all video output drivers.
3231 .B \-screenh <pixels>
3232 Specify the screen height for video output drivers which
3233 do not know the screen resolution like fbdev, x11 and TV-out.
3236 .B \-screenw <pixels>
3237 Specify the screen width for video output drivers which
3238 do not know the screen resolution like fbdev, x11 and TV-out.
3241 .B \-stop\-xscreensaver (X11 only)
3242 Turns off xscreensaver at startup and turns it on again on exit.
3243 If your screensaver supports neither the XSS nor XResetScreenSaver
3244 API please use \-heartbeat\-cmd instead.
3247 .B "\-vm \ \ \ "
3248 Try to change to a different video mode.
3249 Supported by the dga, x11, xv, sdl and directx video output drivers.
3250 If used with the directx video output driver the \-screenw,
3251 \-screenh, \-bpp and \-refreshrate options can be used to set
3252 the new display mode.
3255 .B "\-vsync \ \ "
3256 Enables VBI for the vesa, dfbmga and svga video output drivers.
3259 .B \-wid <window ID> (also see \-guiwid) (X11, OpenGL and DirectX only)
3260 This tells MPlayer to attach to an existing window.
3261 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3264 .B \-xineramascreen <\-2\-...>
3265 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3266 displays) this option tells MPlayer which screen to display the movie on.
3267 A value of \-2 means fullscreen across the whole virtual display (in this case
3268 Xinerama information is completely ignored), \-1 means
3269 fullscreen on the display the window currently is on.
3270 The initial position set via the \-geometry option is relative to the
3271 specified screen.
3272 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3273 This option is not suitable to only set the startup screen (because
3274 it will always display on the given screen in fullscreen mode),
3275 \-geometry is the best that is available for that purpose
3276 currently.
3277 Supported by the gl, gl2, x11, and xv video output drivers.
3280 .B \-zrbw (\-vo zr only)
3281 Display in black and white.
3282 For optimal performance, this can be combined with '\-lavdopts gray'.
3285 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3286 Select a part of the input image to display, multiple occurrences
3287 of this option switch on cinerama mode.
3288 In cinerama mode the movie is distributed over more than one TV
3289 (or beamer) to create a larger image.
3290 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3291 card should at least have a \-zrdev in addition to the \-zrcrop.
3292 For examples, see the output of \-zrhelp and the Zr section of the
3293 documentation.
3296 .B \-zrdev <device> (\-vo zr only)
3297 Specify the device special file that belongs to your MJPEG card, by default
3298 the zr video output driver takes the first v4l device it can find.
3301 .B \-zrfd (\-vo zr only)
3302 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3303 happens if the hardware scaler can stretch the image to its original size.
3304 Use this option to force decimation.
3307 .B \-zrhdec <1|2|4> (\-vo zr only)
3308 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3309 line/\:pixel of the input image to the MJPEG card and use the scaler
3310 of the MJPEG card to stretch the image to its original size.
3313 .B \-zrhelp (\-vo zr only)
3314 Display a list of all \-zr* options, their default values and a
3315 cinerama mode example.
3318 .B \-zrnorm <norm> (\-vo zr only)
3319 Specify the TV norm as PAL or NTSC (default: no change).
3322 .B \-zrquality <1\-20> (\-vo zr only)
3323 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3326 .B \-zrvdec <1|2|4> (\-vo zr only)
3327 Vertical decimation: Ask the driver to send only every 2nd or 4th
3328 line/\:pixel of the input image to the MJPEG card and use the scaler
3329 of the MJPEG card to stretch the image to its original size.
3332 .B \-zrxdoff <x display offset> (\-vo zr only)
3333 If the movie is smaller than the TV screen, this option specifies the x
3334 offset from the upper-left corner of the TV screen (default: centered).
3337 .B \-zrydoff <y display offset> (\-vo zr only)
3338 If the movie is smaller than the TV screen, this option specifies the y
3339 offset from the upper-left corner of the TV screen (default: centered).
3343 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3344 Video output drivers are interfaces to different video output facilities.
3345 The syntax is:
3348 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3349 Specify a priority list of video output drivers to be used.
3351 If the list has a trailing ',' MPlayer will fall back on drivers not
3352 contained in the list.
3353 Suboptions are optional and can mostly be omitted.
3355 .I NOTE:
3356 See \-vo help for a list of compiled-in video output drivers.
3357 .sp 1
3358 .I EXAMPLE:
3359 .PD 0
3360 .RSs
3361 .IPs "\-vo xmga,xv,"
3362 Try the Matrox X11 driver, then the Xv driver, then others.
3363 .IPs "\-vo directx:noaccel"
3364 Uses the DirectX driver with acceleration features turned off.
3366 .PD 1
3367 .sp 1
3368 Available video output drivers are:
3371 .B xv (X11 only)
3372 Uses the XVideo extension of XFree86 4.x to enable hardware
3373 accelerated playback.
3374 If you cannot use a hardware specific driver, this is probably
3375 the best option.
3376 For information about what colorkey is used and how it is drawn run MPlayer
3377 with \-v option and look out for the lines tagged with [xv common] at the
3378 beginning.
3379 .PD 0
3380 .RSs
3381 .IPs adaptor=<number>
3382 Select a specific XVideo adaptor (check xvinfo results).
3383 .IPs port=<number>
3384 Select a specific XVideo port.
3385 .IPs ck=<cur|use|set>
3386 Select the source from which the colorkey is taken (default: cur).
3387 .RSss
3388 .IPs cur
3389 The default takes the colorkey currently set in Xv.
3390 .IPs use
3391 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3392 it).
3393 .IPs set
3394 Same as use but also sets the supplied colorkey.
3396 .IPs ck-method=<man|bg|auto>
3397 Sets the colorkey drawing method (default: man).
3398 .RSss
3399 .IPs man
3400 Draw the colorkey manually (reduces flicker in some cases).
3401 .IPs bg
3402 Set the colorkey as window background.
3403 .IPs auto
3404 Let Xv draw the colorkey.
3407 .PD 1
3410 .B x11 (X11 only)
3411 Shared memory video output driver without hardware acceleration that
3412 works whenever X11 is present.
3415 .B xover (X11 only)
3416 Adds X11 support to all overlay based video output drivers.
3417 Currently only supported by tdfx_vid.
3418 .PD 0
3419 .RSs
3420 .IPs <vo_driver>
3421 Select the driver to use as source to overlay on top of X11.
3423 .PD 1
3426 .B vdpau (with \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau or ffh264vdpau)
3427 Video output that uses VDPAU to decode video via hardware.
3428 Also supports displaying of software-decoded video.
3429 .PD 0
3430 .RSs
3431 .IPs sharpen=<\-1\-1>
3432 For positive values, apply a sharpening algorithm to the video,
3433 for negative values a blurring algorithm (default: 0).
3434 .IPs denoise=<0\-1>
3435 Apply a noise reduction algorithm to the video (default: 0, no noise reduction).
3436 .IPs deint=<0\-3>
3437 Chooses the deinterlacer (default: 0).
3438 .RSss
3439 .IPs 0
3440 No deinterlacing.
3441 .IPs 1
3442 Show only one field, similar to \-vf field.
3443 .IPs 2
3444 Bob deinterlacing (current fallback for advanced deinterlacers).
3445 .IPs 3
3446 Motion adaptive temporal deinterlacing (not yet working).
3447 This is the default if "D" is used to enable deinterlacing.
3448 .IPs 4
3449 Motion adaptive temporal deinterlacing with edge-guided spatial interpolation
3450 (not yet working).
3452 .IPs pullup
3453 Try to apply inverse telecine, needs temporal deinterlacing.
3455 .PD 1 
3458 .B xvmc (X11 with \-vc ffmpeg12mc only)
3459 Video output driver that uses the XvMC (X Video Motion Compensation)
3460 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3461 .PD 0
3462 .RSs
3463 .IPs adaptor=<number>
3464 Select a specific XVideo adaptor (check xvinfo results).
3465 .IPs port=<number>
3466 Select a specific XVideo port.
3467 .IPs (no)benchmark
3468 Disables image display.
3469 Necessary for proper benchmarking of drivers that change
3470 image buffers on monitor retrace only (nVidia).
3471 Default is not to disable image display (nobenchmark).
3472 .IPs (no)bobdeint
3473 Very simple deinterlacer.
3474 Might not look better than \-vf tfields=1,
3475 but it is the only deinterlacer for xvmc (default: nobobdeint).
3476 .IPs (no)queue
3477 Queue frames for display to allow more parallel work of the video hardware.
3478 May add a small (not noticeable) constant A/V desync (default: noqueue).
3479 .IPs (no)sleep
3480 Use sleep function while waiting for rendering to finish
3481 (not recommended on Linux) (default: nosleep).
3482 .IPs ck=cur|use|set
3483 Same as \-vo xv:ck (see \-vo xv).
3484 .IPs ck-method=man|bg|auto
3485 Same as \-vo xv:ck-method (see \-vo xv).
3487 .PD 1
3490 .B dga (X11 only)
3491 Play video through the XFree86 Direct Graphics Access extension.
3492 Considered obsolete.
3495 .B sdl (SDL only, buggy/outdated)
3496 Highly platform independent SDL (Simple Directmedia Layer) library
3497 video output driver.
3498 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3499 any effect on SDL.
3500 Note that it has several minor bugs (\-vm/\-novm is mostly ignored,
3501 \-fs behaves like \-novm should, window is in top-left corner when
3502 returning from fullscreen, panscan is not supported, ...)
3503 .PD 0
3504 .RSs
3505 .IPs driver=<driver>
3506 Explicitly choose the SDL driver to use.
3507 .IPs (no)forcexv
3508 Use XVideo through the sdl video output driver (default: forcexv).
3509 .IPs (no)hwaccel
3510 Use hardware accelerated scaler (default: hwaccel).
3512 .PD 1
3515 .B "vidix\ \ "
3516 VIDIX (VIDeo Interface for *niX) is an interface to the
3517 video acceleration features of different graphics cards.
3518 Very fast video output driver on cards that support it.
3519 .PD 0
3520 .RSs
3521 .IPs <subdevice>
3522 Explicitly choose the VIDIX subdevice driver to use.
3523 Available subdevice drivers are cyberblade, ivtv, mach64,
3524 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, s3, sh_veu,
3525 sis_vid and unichrome.
3527 .PD 1
3530 .B xvidix (X11 only)
3531 X11 frontend for VIDIX
3532 .PD 0
3533 .RSs
3534 .IPs <subdevice>
3535 same as vidix
3537 .PD 1
3540 .B "cvidix\ "
3541 Generic and platform independent VIDIX frontend, can even run in a
3542 text console with nVidia cards.
3543 .PD 0
3544 .RSs
3545 .IPs <subdevice>
3546 same as vidix
3548 .PD 1
3551 .B winvidix (Windows only)
3552 Windows frontend for VIDIX
3553 .PD 0
3554 .RSs
3555 .IPs <subdevice>
3556 same as vidix
3558 .PD 1
3561 .B direct3d (Windows only) (BETA CODE!)
3562 Video output driver that uses the Direct3D interface (useful for Vista).
3565 .B directx (Windows only)
3566 Video output driver that uses the DirectX interface.
3567 .PD 0
3568 .RSs
3569 .IPs noaccel
3570 Turns off hardware acceleration.
3571 Try this option if you have display problems.
3573 .PD 1
3576 .B quartz (Mac OS X only)
3577 Mac OS X Quartz video output driver.
3578 Under some circumstances, it might be more efficient to force a
3579 packed YUV output format, with e.g.\& \-vf format=yuy2.
3580 .PD 0
3581 .RSs
3582 .IPs device_id=<number>
3583 Choose the display device to use in fullscreen.
3584 .IPs fs_res=<width>:<height>
3585 Specify the fullscreen resolution (useful on slow systems).
3587 .PD 1
3590 .B macosx (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3591 Mac OS X CoreVideo video output driver
3592 .PD 0
3593 .RSs
3594 .IPs device_id=<number>
3595 Choose the display device to use for fullscreen or set it to \-1 to
3596 always use the same screen the video window is on (default: \-1 \- auto).
3597 .IPs shared_buffer
3598 Write output to a shared memory buffer instead of displaying it and
3599 try to open an existing NSConnection for communication with a GUI.
3600 .IPs buffer_name=<name>
3601 Name of the shared buffer created with shm_open as well as the name of
3602 the NSConnection MPlayer will try to open (default: "mplayerosx").
3603 Setting buffer_name implicitly enables shared_buffer.
3605 .PD 1
3608 .B fbdev (Linux only)
3609 Uses the kernel framebuffer to play video.
3610 .PD 0
3611 .RSs
3612 .IPs <device>
3613 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3614 name of the VIDIX subdevice if the device name starts with 'vidix'
3615 (e.g.\& 'vidixsis_vid' for the sis driver).
3617 .PD 1
3620 .B fbdev2 (Linux only)
3621 Uses the kernel framebuffer to play video,
3622 alternative implementation.
3623 .PD 0
3624 .RSs
3625 .IPs <device>
3626 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3628 .PD 1
3631 .B "vesa\ \ \ "
3632 Very general video output driver that should work on any VESA VBE 2.0
3633 compatible card.
3634 .PD 0
3635 .RSs
3636 .IPs (no)dga
3637 Turns DGA mode on or off (default: on).
3638 .IPs neotv_pal
3639 Activate the NeoMagic TV out and set it to PAL norm.
3640 .IPs neotv_ntsc
3641 Activate the NeoMagic TV out and set it to NTSC norm.
3642 .IPs vidix
3643 Use the VIDIX driver.
3644 .IPs "lvo:\ \ \ "
3645 Activate the Linux Video Overlay on top of VESA mode.
3647 .PD 1
3650 .B "svga\ \ \ "
3651 Play video using the SVGA library.
3652 .PD 0
3653 .RSs
3654 .IPs "<video mode>"
3655 Specify video mode to use.
3656 The mode can be given in a <width>x<height>x<colors> format,
3657 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3658 .IPs bbosd
3659 Draw OSD into black bands below the movie (slower).
3660 .IPs native
3661 Use only native drawing functions.
3662 This avoids direct rendering, OSD and hardware acceleration.
3663 .IPs retrace
3664 Force frame switch on vertical retrace.
3665 Usable only with \-double.
3666 It has the same effect as the \-vsync option.
3667 .IPs "sq\ \ \ "
3668 Try to select a video mode with square pixels.
3669 .IPs vidix
3670 Use svga with VIDIX.
3672 .PD 1
3675 .B "gl\ \ \ \ \ "
3676 OpenGL video output driver, simple version.
3677 Video size must be smaller than
3678 the maximum texture size of your OpenGL implementation.
3679 Intended to work even with the most basic OpenGL implementations,
3680 but also makes use of newer extensions, which allow support for more
3681 colorspaces and direct rendering.
3682 For optimal speed try something similar to
3684 \-vo gl:yuv=2:rectangle=2:force\-pbo:ati\-hack \-dr \-noslices
3686 The code performs very few checks, so if a feature does not work, this
3687 might be because it is not supported by your card/OpenGL implementation
3688 even if you do not get any error message.
3689 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3690 .PD 0
3691 .RSs
3692 .IPs (no)ati\-hack
3693 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3694 or force\-pbo).
3695 This option fixes this, at the expense of using a bit more memory.
3696 .IPs (no)force\-pbo
3697 Always uses PBOs to transfer textures even if this involves an extra copy.
3698 Currently this gives a little extra speed with NVidia drivers and a lot more
3699 speed with ATI drivers.
3700 May need \-noslices and the ati\-hack suboption to work correctly.
3701 .IPs (no)scaled-osd
3702 Changes the way the OSD behaves when the size of the
3703 window changes (default: disabled).
3704 When enabled behaves more like the other video output drivers,
3705 which is better for fixed-size fonts.
3706 Disabled looks much better with FreeType fonts and uses the
3707 borders in fullscreen mode.
3708 Does not work correctly with ass subtitles (see \-ass), you can instead
3709 render them without OpenGL support via \-vf ass.
3710 .IPs osdcolor=<0xAARRGGBB>
3711 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3712 .IPs rectangle=<0,1,2>
3713 Select usage of rectangular textures which saves video RAM, but often is
3714 slower (default: 0).
3715 .RSss
3716 0: Use power-of-two textures (default).
3718 1: Use the GL_ARB_texture_rectangle extension.
3720 2: Use the GL_ARB_texture_non_power_of_two extension.
3721 In some cases only supported in software and thus very slow.
3723 .IPs swapinterval=<n>
3724 Minimum interval between two buffer swaps, counted in
3725 displayed frames (default: 1).
3726 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3727 Values below 0 will leave it at the system default.
3728 This limits the framerate to (horizontal refresh rate / n).
3729 Requires GLX_SGI_swap_control support to work.
3730 With some (most/all?) implementations this only works in fullscreen mode.
3731 .IPs yuv=<n>
3732 Select the type of YUV to RGB conversion.
3733 .RSss
3734 0: Use software conversion (default).
3735 Compatible with all OpenGL versions.
3736 Provides brightness, contrast and saturation control.
3738 1: Use register combiners.
3739 This uses an nVidia-specific extension (GL_NV_register_combiners).
3740 At least three texture units are needed.
3741 Provides saturation and hue control.
3742 This method is fast but inexact.
3744 2: Use a fragment program.
3745 Needs the GL_ARB_fragment_program extension and at least three texture units.
3746 Provides brightness, contrast, saturation and hue control.
3748 3: Use a fragment program using the POW instruction.
3749 Needs the GL_ARB_fragment_program extension and at least three texture units.
3750 Provides brightness, contrast, saturation, hue and gamma control.
3751 Gamma can also be set independently for red, green and blue.
3752 Method 4 is usually faster.
3754 4: Use a fragment program with additional lookup.
3755 Needs the GL_ARB_fragment_program extension and at least four texture units.
3756 Provides brightness, contrast, saturation, hue and gamma control.
3757 Gamma can also be set independently for red, green and blue.
3759 5: Use ATI-specific method (for older cards).
3760 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3761 GL_ARB_fragment_shader!).
3762 At least three texture units are needed.
3763 Provides saturation and hue control.
3764 This method is fast but inexact.
3766 6: Use a 3D texture to do conversion via lookup.
3767 Needs the GL_ARB_fragment_program extension and at least four texture units.
3768 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3769 a texture with border pixels.
3770 Provides brightness, contrast, saturation, hue and gamma control.
3771 Gamma can also be set independently for red, green and blue.
3772 Speed depends more on GPU memory bandwidth than other methods.
3774 .IPs ycbcr
3775 Use the GL_MESA_ycbcr_texture extension to convert YUV to RGB.
3776 In most cases this is probably slower than doing software conversion to RGB.
3777 .IPs lscale=<n>
3778 Select the scaling function to use for luminance scaling.
3779 Only valid for yuv modes 2, 3, 4 and 6.
3780 .RSss
3781 0: Use simple linear filtering (default).
3783 1: Use bicubic B-spline filtering (better quality).
3784 Needs one additional texture unit.
3785 Older cards will not be able to handle this for chroma at least in fullscreen mode.
3787 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
3788 Works on a few more cards than method 1.
3790 3: Same as 1 but does not use a lookup texture.
3791 Might be faster on some cards.
3793 4: Use experimental unsharp masking with 3x3 support and a default strength of 0.5 (see filter-strength).
3795 5: Use experimental unsharp masking with 5x5 support and a default strength of 0.5 (see filter-strength).
3797 .IPs cscale=<n>
3798 Select the scaling function to use for chrominance scaling.
3799 For details see lscale.
3800 .IPs filter-strength=<value>
3801 Set the effect strength for the lscale/cscale filters that support it.
3802 .IPs customprog=<filename>
3803 Load a custom fragment program from <filename>.
3804 See TOOLS/edgedect.fp for an example.
3805 .IPs customtex=<filename>
3806 Load a custom "gamma ramp" texture from <filename>.
3807 This can be used in combination with yuv=4 or with the customprog option.
3808 .IPs (no)customtlin
3809 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
3810 for customtex texture.
3811 .IPs (no)customtrect
3812 If enabled, use texture_rectangle for customtex texture.
3813 Default is disabled.
3815 .sp 1
3817 Normally there is no reason to use the following options, they mostly
3818 exist for testing purposes.
3820 .sp 1
3821 .RSs
3822 .IPs (no)glfinish
3823 Call glFinish() before swapping buffers.
3824 Slower but in some cases more correct output (default: disabled).
3825 .IPs (no)manyfmts
3826 Enables support for more (RGB and BGR) color formats (default: enabled).
3827 Needs OpenGL version >= 1.2.
3828 .IPs slice-height=<0\-...>
3829 Number of lines copied to texture in one piece (default: 0).
3830 0 for whole image.
3832 .I NOTE:
3833 If YUV colorspace is used (see yuv suboption), special rules apply:
3834 .RSss
3835 If the decoder uses slice rendering (see \-noslices), this setting
3836 has no effect, the size of the slices as provided by the decoder is used.
3838 If the decoder does not use slice rendering, the default is 16.
3840 .IPs (no)osd
3841 Enable or disable support for OSD rendering via OpenGL (default: enabled).
3842 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
3843 .IPs (no)aspect
3844 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
3845 Disabling might increase speed.
3846 .REss
3848 .PD 1
3851 .B "gl2\ \ \ \ "
3852 Variant of the OpenGL video output driver.
3853 Supports videos larger than the maximum texture size but lacks many of the
3854 advanced features and optimizations of the gl driver and is unlikely to be
3855 extended further.
3856 .PD 0
3857 .RSs
3858 .IPs (no)glfinish
3859 same as gl (default: enabled)
3860 .IPs yuv=<n>
3861 Select the type of YUV to RGB conversion.
3862 If set to anything except 0 OSD will be disabled and brightness, contrast and
3863 gamma setting is only available via the global X server settings.
3864 Apart from this the values have the same meaning as for \-vo gl.
3865 .REss
3868 .B "null\ \ \ "
3869 Produces no video output.
3870 Useful for benchmarking.
3873 .B "aa\ \ \ \ \ "
3874 ASCII art video output driver that works on a text console.
3875 You can get a list and an explanation of available suboptions
3876 by executing 'mplayer \-vo aa:help'.
3878 .I NOTE:
3879 The driver does not handle \-aspect correctly.
3881 .I HINT:
3882 You probably have to specify \-monitorpixelaspect.
3883 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
3886 .B "caca\ \ \ "
3887 Color ASCII art video output driver that works on a text console.
3890 .B "bl\ \ \ \ \ "
3891 Video playback using the Blinkenlights UDP protocol.
3892 This driver is highly hardware specific.
3893 .PD 0
3894 .RSs
3895 .IPs <subdevice>
3896 Explicitly choose the Blinkenlights subdevice driver to use.
3897 It is something like arcade:host=localhost:2323 or
3898 hdl:file=name1,file=name2.
3899 You must specify a subdevice.
3901 .PD 1
3904 .B "ggi\ \ \ \ "
3905 GGI graphics system video output driver
3906 .PD 0
3907 .RSs
3908 .IPs <driver>
3909 Explicitly choose the GGI driver to use.
3910 Replace any ',' that would appear in the driver string by a '.'.
3912 .PD 1
3915 .B directfb
3916 Play video using the DirectFB library.
3917 .PD 0
3918 .RSs
3919 .IPs (no)input
3920 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
3921 .IPs buffermode=single|double|triple
3922 Double and triple buffering give best results if you want to avoid tearing issues.
3923 Triple buffering is more efficient than double buffering as it does
3924 not block MPlayer while waiting for the vertical retrace.
3925 Single buffering should be avoided (default: single).
3926 .IPs fieldparity=top|bottom
3927 Control the output order for interlaced frames (default: disabled).
3928 Valid values are top = top fields first, bottom = bottom fields first.
3929 This option does not have any effect on progressive film material
3930 like most MPEG movies are.
3931 You need to enable this option if you have tearing issues or unsmooth
3932 motions watching interlaced film material.
3933 .IPs layer=N
3934 Will force layer with ID N for playback (default: \-1 \- auto).
3935 .IPs dfbopts=<list>
3936 Specify a parameter list for DirectFB.
3938 .PD 1
3941 .B "dfbmga\ "
3942 Matrox G400/\:G450/\:G550 specific video output driver that uses the
3943 DirectFB library to make use of special hardware features.
3944 Enables CRTC2 (second head), displaying video independently of the first head.
3945 .PD 0
3946 .RSs
3947 .IPs (no)input
3948 same as directfb (default: disabled)
3949 .IPs buffermode=single|double|triple
3950 same as directfb (default: triple)
3951 .IPs fieldparity=top|bottom
3952 same as directfb
3953 .IPs (no)bes
3954 Enable the use of the Matrox BES (backend scaler) (default: disabled).
3955 Gives very good results concerning speed and output quality as interpolated
3956 picture processing is done in hardware.
3957 Works only on the primary head.
3958 .IPs (no)spic
3959 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
3960 .IPs (no)crtc2
3961 Turn on TV-out on the second head (default: enabled).
3962 The output quality is amazing as it is a full interlaced picture
3963 with proper sync to every odd/\:even field.
3964 .IPs tvnorm=pal|ntsc|auto
3965 Will set the TV norm of the Matrox card without the need
3966 for modifying /etc/\:directfbrc (default: disabled).
3967 Valid norms are pal = PAL, ntsc = NTSC.
3968 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
3969 which norm to use by looking at the framerate of the movie.
3971 .PD 1
3974 .B mga (Linux only)
3975 Matrox specific video output driver that makes use of the YUV back
3976 end scaler on Gxxx cards through a kernel module.
3977 If you have a Matrox card, this is the fastest option.
3978 .PD 0
3979 .RSs
3980 .IPs <device>
3981 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
3983 .PD 1
3986 .B xmga (Linux, X11 only)
3987 The mga video output driver, running in an X11 window.
3988 .PD 0
3989 .RSs
3990 .IPs <device>
3991 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
3993 .PD 1
3996 .B s3fb (Linux only) (also see \-vf yuv2 and \-dr)
3997 S3 Virge specific video output driver.
3998 This driver supports the card's YUV conversion and scaling, double
3999 buffering and direct rendering features.
4000 Use \-vf yuy2 to get hardware-accelerated YUY2 rendering, which is
4001 much faster than YV12 on this card.
4002 .PD 0
4003 .RSs
4004 .IPs <device>
4005 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4007 .PD 1
4010 .B wii (Linux only)
4011 Nintendo Wii/GameCube specific video output driver.
4014 .B 3dfx (Linux only)
4015 3dfx-specific video output driver that directly uses
4016 the hardware on top of X11.
4017 Only 16 bpp are supported.
4020 .B tdfxfb (Linux only)
4021 This driver employs the tdfxfb framebuffer driver to play movies with
4022 YUV acceleration on 3dfx cards.
4023 .PD 0
4024 .RSs
4025 .IPs <device>
4026 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4028 .PD 1
4031 .B tdfx_vid (Linux only)
4032 3dfx-specific video output driver that works in combination with
4033 the tdfx_vid kernel module.
4034 .PD 0
4035 .RSs
4036 .IPs <device>
4037 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
4039 .PD 1
4042 .B dxr2 (also see \-dxr2) (DXR2 only)
4043 Creative DXR2 specific video output driver.
4044 .PD 0
4045 .RSs
4046 .IPs <vo_driver>
4047 Output video subdriver to use as overlay (x11, xv).
4049 .PD 1
4052 .B dxr3 (DXR3 only)
4053 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
4054 Hollywood Plus) specific video output driver.
4055 Also see the lavc video filter.
4056 .PD 0
4057 .RSs
4058 .IPs overlay
4059 Activates the overlay instead of TV-out.
4060 .IPs prebuf
4061 Turns on prebuffering.
4062 .IPs "sync\ "
4063 Will turn on the new sync-engine.
4064 .IPs norm=<norm>
4065 Specifies the TV norm.
4066 .RSss
4067 0: Does not change current norm (default).
4069 1: Auto-adjust using PAL/\:NTSC.
4071 2: Auto-adjust using PAL/\:PAL-60.
4073 3: PAL
4075 4: PAL-60
4077 5: NTSC
4079 .IPs <0\-3>
4080 Specifies the device number to use if you have more than one em8300 card.
4082 .PD 1
4085 .B ivtv (IVTV only)
4086 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4087 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4088 specific video output driver for TV-out.
4089 Also see the lavc video filter.
4090 .PD 0
4091 .RSs
4092 .IPs <device>
4093 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4094 .IPs <output>
4095 Explicitly choose the TV-out output to be used for the video signal.
4097 .PD 1
4100 .B v4l2 (requires Linux 2.6.22+ kernel)
4101 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4102 Also see the lavc video filter.
4103 .PD 0
4104 .RSs
4105 .IPs <device>
4106 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4107 .IPs <output>
4108 Explicitly choose the TV-out output to be used for the video signal.
4110 .PD 1
4113 .B mpegpes (DVB only)
4114 Video output driver for DVB cards that writes the output to an MPEG-PES file
4115 if no DVB card is installed.
4116 .PD 0
4117 .RSs
4118 .IPs card=<1\-4>
4119 Specifies the device number to use if you have more than one DVB output card
4120 (V3 API only, such as 1.x.y series drivers).
4121 If not specified MPlayer will search the first usable card.
4122 .IPs <filename>
4123 output filename (default: ./grab.mpg)
4125 .PD 1
4128 .B zr (also see \-zr* and \-zrhelp)
4129 Video output driver for a number of MJPEG capture/\:playback cards.
4132 .B zr2 (also see the zrmjpeg video filter)
4133 Video output driver for a number of MJPEG capture/\:playback cards,
4134 second generation.
4135 .PD 0
4136 .RSs
4137 .IPs dev=<device>
4138 Specifies the video device to use.
4139 .IPs norm=<PAL|NTSC|SECAM|auto>
4140 Specifies the video norm to use (default: auto).
4141 .IPs (no)prebuf
4142 (De)Activate prebuffering, not yet supported.
4144 .PD 1
4147 .B "md5sum\ "
4148 Calculate MD5 sums of each frame and write them to a file.
4149 Supports RGB24 and YV12 colorspaces.
4150 Useful for debugging.
4151 .PD 0
4152 .RSs
4153 .IPs outfile=<value>
4154 Specify the output filename (default: ./md5sums).
4156 .PD 1
4159 .B yuv4mpeg
4160 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4161 images and stores it in a file (default: ./stream.yuv).
4162 The format is the same as the one employed by mjpegtools, so this is
4163 useful if you want to process the video with the mjpegtools suite.
4164 It supports the YV12, RGB (24 bpp) and BGR (24 bpp) format.
4165 You can combine it with the \-fixed\-vo option to concatenate files
4166 with the same dimensions and fps value.
4167 .PD 0
4168 .RSs
4169 .IPs interlaced
4170 Write the output as interlaced frames, top field first.
4171 .IPs interlaced_bf
4172 Write the output as interlaced frames, bottom field first.
4173 .IPs file=<filename>
4174 Write the output to <filename> instead of the default stream.yuv.
4175 .REss
4176 .PD 1
4178 .sp 1
4179 .I NOTE:
4180 If you do not specify any option the output is progressive
4181 (i.e.\& not interlaced).
4185 .B "gif89a\ "
4186 Output each frame into a single animated GIF file in the current directory.
4187 It supports only RGB format with 24 bpp and the output is converted to 256
4188 colors.
4189 .PD 0
4190 .RSs
4191 .IPs <fps>
4192 Float value to specify framerate (default: 5.0).
4193 .IPs <output>
4194 Specify the output filename (default: ./out.gif).
4195 .REss
4196 .PD 1
4198 .sp 1
4199 .I NOTE:
4200 You must specify the framerate before the filename or the framerate will
4201 be part of the filename.
4202 .sp 1
4203 .I EXAMPLE:
4205 .PD 0
4206 .RSs
4207 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4209 .PD 1
4212 .B "jpeg\ \ \ "
4213 Output each frame into a JPEG file in the current directory.
4214 Each file takes the frame number padded with leading zeros as name.
4215 .PD 0
4216 .RSs
4217 .IPs [no]progressive
4218 Specify standard or progressive JPEG (default: noprogressive).
4219 .IPs [no]baseline
4220 Specify use of baseline or not (default: baseline).
4221 .IPs optimize=<0\-100>
4222 optimization factor (default: 100)
4223 .IPs smooth=<0\-100>
4224 smooth factor (default: 0)
4225 .IPs quality=<0\-100>
4226 quality factor (default: 75)
4227 .IPs outdir=<dirname>
4228 Specify the directory to save the JPEG files to (default: ./).
4229 .IPs subdirs=<prefix>
4230 Create numbered subdirectories with the specified prefix to
4231 save the files in instead of the current directory.
4232 .IPs "maxfiles=<value> (subdirs only)"
4233 Maximum number of files to be saved per subdirectory.
4234 Must be equal to or larger than 1 (default: 1000).
4236 .PD 1
4239 .B "pnm\ \ \ \ "
4240 Output each frame into a PNM file in the current directory.
4241 Each file takes the frame number padded with leading zeros as name.
4242 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4243 Also see pnm(5), ppm(5) and pgm(5).
4244 .PD 0
4245 .RSs
4246 .IPs "ppm\ \ "
4247 Write PPM files (default).
4248 .IPs "pgm\ \ "
4249 Write PGM files.
4250 .IPs pgmyuv
4251 Write PGMYUV files.
4252 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4253 bottom of the picture.
4254 .IPs "raw\ \ "
4255 Write PNM files in raw mode (default).
4256 .IPs ascii
4257 Write PNM files in ASCII mode.
4258 .IPs outdir=<dirname>
4259 Specify the directory to save the PNM files to (default: ./).
4260 .IPs subdirs=<prefix>
4261 Create numbered subdirectories with the specified prefix to
4262 save the files in instead of the current directory.
4263 .IPs "maxfiles=<value> (subdirs only)"
4264 Maximum number of files to be saved per subdirectory.
4265 Must be equal to or larger than 1 (default: 1000).
4267 .PD 1
4270 .B "png\ \ \ \ "
4271 Output each frame into a PNG file in the current directory.
4272 Each file takes the frame number padded with leading zeros as name.
4273 24bpp RGB and BGR formats are supported.
4274 .PD 0
4275 .RSs
4276 .IPs z=<0\-9>
4277 Specifies the compression level.
4278 0 is no compression, 9 is maximum compression.
4279 .IPs alpha (default: noalpha)
4280 Create PNG files with an alpha channel.
4281 Note that MPlayer in general does not support alpha, so this will only
4282 be useful in some rare cases.
4284 .PD 1
4287 .B "tga\ \ \ \ "
4288 Output each frame into a Targa file in the current directory.
4289 Each file takes the frame number padded with leading zeros as name.
4290 The purpose of this video output driver is to have a simple lossless
4291 image writer to use without any external library.
4292 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4293 You can force a particular format with the format video filter.
4294 .sp 1
4295 .I EXAMPLE:
4297 .PD 0
4298 .RSs
4299 mplayer video.nut \-vf format=bgr15 \-vo tga
4301 .PD 1
4305 .SH "DECODING/FILTERING OPTIONS"
4308 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4309 Specify a priority list of audio codecs to be used, according to their codec
4310 name in codecs.conf.
4311 Use a '\-' before the codec name to omit it.
4312 Use a '+' before the codec name to force it, this will likely crash!
4313 If the list has a trailing ',' MPlayer will fall back on codecs not
4314 contained in the list.
4316 .I NOTE:
4317 See \-ac help for a full list of available codecs.
4318 .sp 1
4319 .I EXAMPLE:
4320 .PD 0
4321 .RSs
4322 .IPs "\-ac mp3acm"
4323 Force the l3codeca.acm MP3 codec.
4324 .IPs "\-ac mad,"
4325 Try libmad first, then fall back on others.
4326 .IPs "\-ac hwac3,a52,"
4327 Try hardware AC-3 passthrough, software AC-3, then others.
4328 .IPs "\-ac hwdts,"
4329 Try hardware DTS passthrough, then fall back on others.
4330 .IPs "\-ac \-ffmp3,"
4331 Skip FFmpeg's MP3 decoder.
4333 .PD 1
4336 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4337 Specify advanced audio filter options:
4338 .RSs
4339 .IPs force=<0\-7>
4340 Forces the insertion of audio filters to one of the following:
4341 .RSss
4342 0: Use completely automatic filter insertion.
4344 1: Optimize for accuracy (default).
4346 2: Optimize for speed.
4347 .I Warning:
4348 Some features in the audio filters may silently fail,
4349 and the sound quality may drop.
4351 3: Use no automatic insertion of filters and no optimization.
4352 .I Warning:
4353 It may be possible to crash MPlayer using this setting.
4355 4: Use automatic insertion of filters according to 0 above,
4356 but use floating point processing when possible.
4358 5: Use automatic insertion of filters according to 1 above,
4359 but use floating point processing when possible.
4361 6: Use automatic insertion of filters according to 2 above,
4362 but use floating point processing when possible.
4364 7: Use no automatic insertion of filters according to 3 above,
4365 and use floating point processing when possible.
4366 .REss
4367 .IPs list=<filters>
4368 Same as \-af.
4372 .B \-afm <driver1,driver2,...>
4373 Specify a priority list of audio codec families to be used, according
4374 to their codec name in codecs.conf.
4375 Falls back on the default codecs if none of the given codec families work.
4377 .I NOTE:
4378 See \-afm help for a full list of available codec families.
4379 .sp 1
4380 .I EXAMPLE:
4381 .PD 0
4382 .RSs
4383 .IPs "\-afm ffmpeg"
4384 Try FFmpeg's libavcodec codecs first.
4385 .IPs "\-afm acm,dshow"
4386 Try Win32 codecs first.
4388 .PD 1
4391 .B \-aspect <ratio> (also see \-zoom)
4392 Override movie aspect ratio, in case aspect information is
4393 incorrect or missing in the file being played.
4394 .sp 1
4395 .I EXAMPLE:
4396 .PD 0
4397 .RSs
4398 \-aspect 4:3  or \-aspect 1.3333
4400 \-aspect 16:9 or \-aspect 1.7777
4402 .PD 1
4405 .B \-noaspect
4406 Disable automatic movie aspect ratio compensation.
4409 .B "\-field\-dominance <\-1\-1>"
4410 Set first field for interlaced content.
4411 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4412 \-vf yadif=1, \-vo vdpau:deint and \-vo xvmc:bobdeint.
4413 .PD 0
4414 .RSs
4415 .IPs \-1
4416 auto (default): If the decoder does not export the appropriate information,
4417 it falls back to 0 (top field first).
4418 .IPs 0
4419 top field first
4420 .IPs 1
4421 bottom field first
4423 .PD 1
4426 .B "\-flip \ "
4427 Flip image upside-down.
4430 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4431 Specify libavcodec decoding parameters.
4432 Separate multiple options with a colon.
4433 .sp 1
4434 .I EXAMPLE:
4435 .PD 0
4436 .RSs
4437 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4439 .PD 1
4440 .sp 1
4442 Available options are:
4444 .RSs
4445 .IPs bitexact
4446 Only use bit-exact algorithms in all decoding steps (for codec testing).
4447 .IPs bug=<value>
4448 Manually work around encoder bugs.
4449 .RSss
4450 0: nothing
4452 1: autodetect bugs (default)
4454 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4456 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4458 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4460 16 (mpeg4): padding bug (autodetected)
4462 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4464 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4466 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4468 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4470 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4472 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4473 .REss
4474 .IPs debug=<value>
4475 Display debugging information.
4476 .RSss
4478 0: disabled
4480 1: picture info
4482 2: rate control
4484 4: bitstream
4486 8: macroblock (MB) type
4488 16: per-block quantization parameter (QP)
4490 32: motion vector
4492 0x0040: motion vector visualization (use \-noslices)
4494 0x0080: macroblock (MB) skip
4496 0x0100: startcode
4498 0x0200: PTS
4500 0x0400: error resilience
4502 0x0800: memory management control operations (H.264)
4504 0x1000: bugs
4506 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4508 0x4000: Visualize block types.
4509 .REss
4510 .IPs ec=<value>
4511 Set error concealment strategy.
4512 .RSss
4513 1: Use strong deblock filter for damaged MBs.
4515 2: iterative motion vector (MV) search (slow)
4517 3: all (default)
4518 .REss
4519 .IPs er=<value>
4520 Set error resilience strategy.
4521 .RSss
4523 0: disabled
4525 1: careful (Should work with broken encoders.)
4527 2: normal (default) (Works with compliant encoders.)
4529 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4531 4: very aggressive
4532 .REss
4533 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4534 Enable optimizations which do not comply to the specification and might
4535 potentially cause problems, like simpler dequantization, simpler motion
4536 compensation, assuming use of the default quantization matrix, assuming
4537 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4538 .IPs "gray\ "
4539 grayscale only decoding (a bit faster than with color)
4540 .IPs "idct=<0\-99> (see \-lavcopts)"
4541 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4542 This may come at a price in accuracy, though.
4543 .IPs lowres=<number>[,<w>]
4544 Decode at lower resolutions.
4545 Low resolution decoding is not supported by all codecs, and it will
4546 often result in ugly artifacts.
4547 This is not a bug, but a side effect of not decoding at full resolution.
4548 .RSss
4550 0: disabled
4552 1: 1/2 resolution
4554 2: 1/4 resolution
4556 3: 1/8 resolution
4557 .REss
4559 If <w> is specified lowres decoding will be used only if the width of the
4560 video is major than or equal to <w>.
4562 .B o=<key>=<value>[,<key>=<value>[,...]]
4563 Pass AVOptions to libavcodec decoder.
4564 Note, a patch to make the o= unneeded and pass all unknown options through
4565 the AVOption system is welcome.
4566 A full list of AVOptions can be found in the FFmpeg manual.
4567 Note that some options may conflict with MEncoder options.
4568 .sp 1
4570 .I EXAMPLE:
4572 .RSs
4573 .PD 0
4574 .IPs o=debug=pict
4575 .PD 1
4577 .IPs "sb=<number> (MPEG-2 only)"
4578 Skip the given number of macroblock rows at the bottom.
4579 .IPs "st=<number> (MPEG-2 only)"
4580 Skip the given number of macroblock rows at the top.
4581 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4582 Skips the loop filter (AKA deblocking) during H.264 decoding.
4583 Since the filtered frame is supposed to be used as reference
4584 for decoding dependent frames this has a worse effect on quality
4585 than not doing deblocking on e.g.\& MPEG-2 video.
4586 But at least for high bitrate HDTV this provides a big speedup with
4587 no visible quality loss.
4588 .sp 1
4589 <skipvalue> can be either one of the following:
4590 .RSss
4592 none: Never skip.
4594 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4596 nonref: Skip frames that are not referenced (i.e.\& not used for
4597 decoding other frames, the error cannot "build up").
4599 bidir: Skip B-Frames.
4601 nonkey: Skip all frames except keyframes.
4603 all: Skip all frames.
4604 .REss
4605 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4606 Skips the IDCT step.
4607 This degrades quality a lot of in almost all cases
4608 (see skiploopfilter for available skip values).
4609 .IPs skipframe=<skipvalue>
4610 Skips decoding of frames completely.
4611 Big speedup, but jerky motion and sometimes bad artifacts
4612 (see skiploopfilter for available skip values).
4613 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4614 number of threads to use for decoding (default: 1)
4615 .IPs vismv=<value>
4616 Visualize motion vectors.
4617 .RSss
4619 0: disabled
4621 1: Visualize forward predicted MVs of P-frames.
4623 2: Visualize forward predicted MVs of B-frames.
4625 4: Visualize backward predicted MVs of B-frames.
4626 .REss
4627 .IPs vstats
4628 Prints some statistics and stores them in ./vstats_*.log.
4632 .B \-noslices
4633 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4634 whole frame in a single run.
4635 May be faster or slower, depending on video card and available cache.
4636 It has effect only with libmpeg2 and libavcodec codecs.
4639 .B \-nosound
4640 Do not play/\:encode sound.
4641 Useful for benchmarking.
4644 .B \-novideo
4645 Do not play/\:encode video.
4646 In many cases this will not work, use \-vc null \-vo null instead.
4649 .B \-pp <quality> (also see \-vf pp)
4650 Set the DLL postprocess level.
4651 This option is no longer usable with \-vf pp.
4652 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4653 The valid range of \-pp values varies by codec, it is mostly
4654 0\-6, where 0=disable, 6=slowest/\:best.
4657 .B \-pphelp (also see \-vf pp)
4658 Show a summary about the available postprocess filters and their usage.
4661 .B \-ssf <mode>
4662 Specifies software scaler parameters.
4663 .sp 1
4664 .I EXAMPLE:
4665 .PD 0
4666 .RSs
4667 \-vf scale \-ssf lgb=3.0
4669 .PD 1
4670 .PD 0
4671 .RSs
4672 .IPs lgb=<0\-100>
4673 gaussian blur filter (luma)
4674 .IPs cgb=<0\-100>
4675 gaussian blur filter (chroma)
4676 .IPs ls=<\-100\-100>
4677 sharpen filter (luma)
4678 .IPs cs=<\-100\-100>
4679 sharpen filter (chroma)
4680 .IPs chs=<h>
4681 chroma horizontal shifting
4682 .IPs cvs=<v>
4683 chroma vertical shifting
4685 .PD 1
4688 .B \-stereo <mode>
4689 Select type of MP2/\:MP3 stereo output.
4690 .PD 0
4691 .RSs
4692 .IPs 0
4693 stereo
4694 .IPs 1
4695 left channel
4696 .IPs 2
4697 right channel
4699 .PD 1
4702 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4703 Specify the software scaler algorithm to be used with the \-zoom option.
4704 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4705 .sp 1
4706 Available types are:
4707 .sp 1
4708 .PD 0
4709 .RSs
4710 .IPs 0
4711 fast bilinear
4712 .IPs 1
4713 bilinear
4714 .IPs 2
4715 bicubic (good quality) (default)
4716 .IPs 3
4717 experimental
4718 .IPs 4
4719 nearest neighbor (bad quality)
4720 .IPs 5
4721 area
4722 .IPs 6
4723 luma bicubic / chroma bilinear
4724 .IPs 7
4725 gauss
4726 .IPs 8
4727 sincR
4728 .IPs 9
4729 lanczos
4730 .IPs 10
4731 natural bicubic spline
4733 .PD 1
4734 .sp 1
4736 .I NOTE:
4737 Some \-sws options are tunable.
4738 The description of the scale video filter has further information.
4742 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
4743 Specify a priority list of video codecs to be used, according to their codec
4744 name in codecs.conf.
4745 Use a '\-' before the codec name to omit it.
4746 Use a '+' before the codec name to force it, this will likely crash!
4747 If the list has a trailing ',' MPlayer will fall back on codecs not
4748 contained in the list.
4750 .I NOTE:
4751 See \-vc help for a full list of available codecs.
4752 .sp 1
4753 .I EXAMPLE:
4754 .PD 0
4755 .RSs
4756 .IPs "\-vc divx"
4757 Force Win32/\:VfW DivX codec, no fallback.
4758 .IPs "\-vc \-divxds,\-divx,"
4759 Skip Win32 DivX codecs.
4760 .IPs "\-vc ffmpeg12,mpeg12,"
4761 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
4763 .PD 1
4766 .B \-vfm <driver1,driver2,...>
4767 Specify a priority list of video codec families to be used, according
4768 to their names in codecs.conf.
4769 Falls back on the default codecs if none of the given codec families work.
4771 .I NOTE:
4772 See \-vfm help for a full list of available codec families.
4773 .sp 1
4774 .I EXAMPLE:
4775 .PD 0
4776 .RSs
4777 .IPs "\-vfm ffmpeg,dshow,vfw"
4778 Try the libavcodec, then Directshow, then VfW codecs and fall back
4779 on others, if they do not work.
4780 .IPs "\-vfm xanim"
4781 Try XAnim codecs first.
4783 .PD 1
4786 .B \-x <x> (also see \-zoom) (MPlayer only)
4787 Scale image to width <x> (if software/\:hardware scaling is available).
4788 Disables aspect calculations.
4791 .B \-xvidopts <option1:option2:...>
4792 Specify additional parameters when decoding with Xvid.
4794 .I NOTE:
4795 Since libavcodec is faster than Xvid you might want to use the libavcodec
4796 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
4797 .sp 1
4798 Xvid's internal postprocessing filters:
4799 .PD 0
4800 .RSs
4801 .IPs "deblock-chroma (also see \-vf pp)"
4802 chroma deblock filter
4803 .IPs "deblock-luma (also see \-vf pp)"
4804 luma deblock filter
4805 .IPs "dering-luma (also see \-vf pp)"
4806 luma deringing filter
4807 .IPs "dering-chroma (also see \-vf pp)"
4808 chroma deringing filter
4809 .IPs "filmeffect (also see \-vf noise)"
4810 Adds artificial film grain to the video.
4811 May increase perceived quality, while lowering true quality.
4813 .sp 1
4815 rendering methods:
4817 .PD 0
4818 .RSs
4819 .IPs "dr2\ \ "
4820 Activate direct rendering method 2.
4821 .IPs nodr2
4822 Deactivate direct rendering method 2.
4824 .PD 1
4827 .B \-xy <value> (also see \-zoom)
4828 .PD 0
4829 .RSs
4830 .IPs value<=8
4831 Scale image by factor <value>.
4832 .IPs value>8
4833 Set width to value and calculate height to keep correct aspect ratio.
4835 .PD 1
4838 .B \-y <y> (also see \-zoom) (MPlayer only)
4839 Scale image to height <y> (if software/\:hardware scaling is available).
4840 Disables aspect calculations.
4843 .B "\-zoom\ \ "
4844 Allow software scaling, where available.
4845 This will allow scaling with output drivers (like x11, fbdev) that
4846 do not support hardware scaling where MPlayer disables scaling by
4847 default for performance reasons.
4851 .SH "AUDIO FILTERS"
4852 Audio filters allow you to modify the audio stream and its properties.
4853 The syntax is:
4856 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
4857 Setup a chain of audio filters.
4859 .I NOTE:
4860 To get a full list of available audio filters, see \-af help.
4861 .sp 1
4862 Audio filters are managed in lists.
4863 There are a few commands to manage the filter list.
4866 .B \-af\-add <filter1[,filter2,...]>
4867 Appends the filters given as arguments to the filter list.
4870 .B \-af\-pre <filter1[,filter2,...]>
4871 Prepends the filters given as arguments to the filter list.
4874 .B \-af\-del <index1[,index2,...]>
4875 Deletes the filters at the given indexes.
4876 Index numbers start at 0, negative numbers address the end of the
4877 list (\-1 is the last).
4880 .B \-af\-clr
4881 Completely empties the filter list.
4883 Available filters are:
4886 .B resample[=srate[:sloppy[:type]]]
4887 Changes the sample rate of the audio stream.
4888 Can be used if you have a fixed frequency sound card or if you are
4889 stuck with an old sound card that is only capable of max 44.1kHz.
4890 This filter is automatically enabled if necessary.
4891 It only supports 16-bit integer and float in native-endian format as input.
4893 .I NOTE:
4894 With MEncoder, you need to also use \-srate <srate>.
4895 .PD 0
4896 .RSs
4897 .IPs <srate>
4898 output sample frequency in Hz.
4899 The valid range for this parameter is 8000 to 192000.
4900 If the input and output sample frequency are the same or if this
4901 parameter is omitted the filter is automatically unloaded.
4902 A high sample frequency normally improves the audio quality,
4903 especially when used in combination with other filters.
4904 .IPs <sloppy>
4905 Allow (1) or disallow (0) the output frequency to differ slightly
4906 from the frequency given by <srate> (default: 1).
4907 Can be used if the startup of the playback is extremely slow.
4908 .IPs <type>
4909 Selects which resampling method to use.
4910 .RSss
4911 0: linear interpolation (fast, poor quality especially when upsampling)
4913 1: polyphase filterbank and integer processing
4915 2: polyphase filterbank and floating point processing (slow, best quality)
4916 .REss
4917 .PD 1
4919 .sp 1
4921 .I EXAMPLE:
4923 .PD 0
4924 .RSs
4925 .IPs "mplayer \-af resample=44100:0:0"
4926 would set the output frequency of the resample filter to 44100Hz using
4927 exact output frequency scaling and linear interpolation.
4929 .PD 1
4932 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
4933 Changes the sample rate of the audio stream to an integer <srate> in Hz.
4934 It only supports the 16-bit native-endian format.
4936 .I NOTE:
4937 With MEncoder, you need to also use \-srate <srate>.
4938 .PD 0
4939 .RSs
4940 .IPs <srate>
4941 the output sample rate
4942 .IPs <length>
4943 length of the filter with respect to the lower sampling rate (default: 16)
4944 .IPs <linear>
4945 if 1 then filters will be linearly interpolated between polyphase entries
4946 .IPs <count>
4947 log2 of the number of polyphase entries
4948 (..., 10->1024, 11->2048, 12->4096, ...)
4949 (default: 10->1024)
4950 .IPs <cutoff>
4951 cutoff frequency (0.0\-1.0), default set depending upon filter length
4953 .PD 1
4956 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
4957 Encode multi-channel audio to AC-3 at runtime using libavcodec.
4958 Supports 16-bit native-endian input format, maximum 6 channels.
4959 The output is big-endian when outputting a raw AC-3 stream,
4960 native-endian when outputting to S/PDIF.
4961 The output sample rate of this filter is same with the input sample rate.
4962 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
4963 Otherwise a resampling filter is auto-inserted before this filter to make
4964 the input and output sample rate be 48kHz.
4965 You need to specify '\-channels N' to make the decoder decode audio into
4966 N-channel, then the filter can encode the N-channel input to AC-3.
4968 .PD 0
4969 .RSs
4970 .IPs <tospdif>
4971 Output raw AC-3 stream if zero or not set,
4972 output to S/PDIF for passthrough when <tospdif> is set non-zero.
4973 .IPs <bitrate>
4974 The bitrate to encode the AC-3 stream.
4975 Set it to either 384 or 384000 to get 384kbits.
4976 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
4977               320, 384, 448, 512, 576, 640
4978 Default bitrate is based on the input channel number:
4979 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
4980 .IPs <minchn>
4981 If the input channel number is less than <minchn>, the filter will
4982 detach itself (default: 5).
4984 .PD 1
4987 .B sweep[=speed]
4988 Produces a sine sweep.
4989 .PD 0
4990 .RSs
4991 .IPs <0.0\-1.0>
4992 Sine function delta, use very low values to hear the sweep.
4994 .PD 1
4997 .B sinesuppress[=freq:decay]
4998 Remove a sine at the specified frequency.
4999 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
5000 It probably only works on mono input.
5001 .PD 0
5002 .RSs
5003 .IPs <freq>
5004 The frequency of the sine which should be removed (in Hz) (default: 50)
5005 .IPs <decay>
5006 Controls the adaptivity (a larger value will make the filter adapt to
5007 amplitude and phase changes quicker, a smaller value will make the
5008 adaptation slower) (default: 0.0001).
5009 Reasonable values are around 0.001.
5011 .PD 1
5014 .B hrtf[=flag]
5015 Head-related transfer function: Converts multichannel audio to
5016 2 channel output for headphones, preserving the spatiality of the sound.
5017 .sp 1
5018 .PD 0
5020 .IPs "Flag  Meaning"
5021 .IPs "m     matrix decoding of the rear channel"
5022 .IPs "s     2-channel matrix decoding"
5023 .IPs "0     no matrix decoding (default)"
5025 .PD 1
5028 .B equalizer=[g1:g2:g3:...:g10]
5029 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
5030 This means that it works regardless of what type of audio is being played back.
5031 The center frequencies for the 10 bands are:
5032 .sp 1
5033 .PD 0
5035 .IPs "No. frequency"
5036 .IPs "0    31.25 Hz"
5037 .IPs "1    62.50 Hz"
5038 .IPs "2   125.00 Hz"
5039 .IPs "3   250.00 Hz"
5040 .IPs "4   500.00 Hz"
5041 .IPs "5    1.00 kHz"
5042 .IPs "6    2.00 kHz"
5043 .IPs "7    4.00 kHz"
5044 .IPs "8    8.00 kHz"
5045 .IPs "9   16.00 kHz"
5047 .PD 1
5048 .sp 1
5050 If the sample rate of the sound being played is lower than the center
5051 frequency for a frequency band, then that band will be disabled.
5052 A known bug with this filter is that the characteristics for the
5053 uppermost band are not completely symmetric if the sample
5054 rate is close to the center frequency of that band.
5055 This problem can be worked around by upsampling the sound
5056 using the resample filter before it reaches this filter.
5058 .PD 0
5059 .RSs
5060 .IPs <g1>:<g2>:<g3>:...:<g10>
5061 floating point numbers representing the gain in dB
5062 for each frequency band (\-12\-12)
5064 .sp 1
5066 .I EXAMPLE:
5068 .RSs
5069 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
5070 Would amplify the sound in the upper and lower frequency region
5071 while canceling it almost completely around 1kHz.
5073 .PD 1
5076 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
5077 Can be used for adding, removing, routing and copying audio channels.
5078 If only <nch> is given the default routing is used, it works as
5079 follows: If the number of output channels is bigger than the number of
5080 input channels empty channels are inserted (except mixing from mono to
5081 stereo, then the mono channel is repeated in both of the output
5082 channels).
5083 If the number of output channels is smaller than the number
5084 of input channels the exceeding channels are truncated.
5085 .PD 0
5086 .RSs
5087 .IPs <nch>
5088 number of output channels (1\-6)
5089 .IPs "<nr>\ "
5090 number of routes (1\-6)
5091 .IPs <from1:to1:from2:to2:from3:to3:...>
5092 Pairs of numbers between 0 and 5 that define where to route each channel.
5094 .sp 1
5096 .I EXAMPLE:
5098 .RSs
5099 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5100 Would change the number of channels to 4 and set up 4 routes that
5101 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5102 Observe that if media containing two channels was played back, channels
5103 2 and 3 would contain silence but 0 and 1 would still be swapped.
5104 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5105 Would change the number of channels to 6 and set up 4 routes
5106 that copy channel 0 to channels 0 to 3.
5107 Channel 4 and 5 will contain silence.
5109 .PD 1
5112 .B format[=format] (also see \-format)
5113 Convert between different sample formats.
5114 Automatically enabled when needed by the sound card or another filter.
5115 .PD 0
5116 .RSs
5117 .IPs <format>
5118 Sets the desired format.
5119 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5120 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5121 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5122 and 'ne' the endianness of the computer MPlayer is running on).
5123 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5124 Exceptions to this rule that are also valid format specifiers: u8, s8,
5125 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5127 .PD 1
5130 .B volume[=v[:sc]]
5131 Implements software volume control.
5132 Use this filter with caution since it can reduce the signal
5133 to noise ratio of the sound.
5134 In most cases it is best to set the level for the PCM sound to max,
5135 leave this filter out and control the output level to your
5136 speakers with the master volume control of the mixer.
5137 In case your sound card has a digital PCM mixer instead of an analog
5138 one, and you hear distortion, use the MASTER mixer instead.
5139 If there is an external amplifier connected to the computer (this
5140 is almost always the case), the noise level can be minimized by
5141 adjusting the master level and the volume knob on the amplifier
5142 until the hissing noise in the background is gone.
5144 This filter has a second feature: It measures the overall maximum
5145 sound level and prints out that level when MPlayer exits.
5146 This volume estimate can be used for setting the sound level in
5147 MEncoder such that the maximum dynamic range is utilized.
5149 .I NOTE:
5150 This filter is not reentrant and can therefore only be enabled
5151 once for every audio stream.
5152 .PD 0
5153 .RSs
5154 .IPs "<v>\ \ "
5155 Sets the desired gain in dB for all channels in the stream
5156 from \-200dB to +60dB, where \-200dB mutes the sound
5157 completely and +60dB equals a gain of 1000 (default: 0).
5158 .IPs "<sc>\ "
5159 Turns soft clipping on (1) or off (0).
5160 Soft-clipping can make the sound more smooth if very
5161 high volume levels are used.
5162 Enable this option if the dynamic range of the
5163 loudspeakers is very low.
5165 .I WARNING:
5166 This feature creates distortion and should be considered a last resort.
5168 .sp 1
5170 .I EXAMPLE:
5172 .RSs
5173 .IPs "mplayer \-af volume=10.1:0 media.avi"
5174 Would amplify the sound by 10.1dB and hard-clip if the
5175 sound level is too high.
5177 .PD 1
5180 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5181 Mixes channels arbitrarily.
5182 Basically a combination of the volume and the channels filter
5183 that can be used to down-mix many channels to only a few,
5184 e.g.\& stereo to mono or vary the "width" of the center
5185 speaker in a surround sound system.
5186 This filter is hard to use, and will require some tinkering
5187 before the desired result is obtained.
5188 The number of options for this filter depends on
5189 the number of output channels.
5190 An example how to downmix a six-channel file to two channels with
5191 this filter can be found in the examples section near the end.
5192 .PD 0
5193 .RSs
5194 .IPs "<n>\ \ "
5195 number of output channels (1\-6)
5196 .IPs <Lij>
5197 How much of input channel i is mixed into output channel j (0\-1).
5198 So in principle you first have n numbers saying what to do with the
5199 first input channel, then n numbers that act on the second input channel
5200 etc.
5201 If you do not specify any numbers for some input channels, 0 is assumed.
5203 .sp 1
5205 .I EXAMPLE:
5207 .RSs
5208 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5209 Would down-mix from stereo to mono.
5210 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5211 Would give 3 channel output leaving channels 0 and 1 intact,
5212 and mix channels 0 and 1 into output channel 2 (which could
5213 be sent to a subwoofer for example).
5215 .PD 1
5218 .B sub[=fc:ch]
5219 Adds a subwoofer channel to the audio stream.
5220 The audio data used for creating the subwoofer channel is
5221 an average of the sound in channel 0 and channel 1.
5222 The resulting sound is then low-pass filtered by a 4th order
5223 Butterworth filter with a default cutoff frequency of 60Hz
5224 and added to a separate channel in the audio stream.
5226 .I Warning:
5227 Disable this filter when you are playing DVDs with Dolby
5228 Digital 5.1 sound, otherwise this filter will disrupt
5229 the sound to the subwoofer.
5230 .PD 0
5231 .RSs
5232 .IPs "<fc>\ "
5233 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5234 For the best result try setting the cutoff frequency as low as possible.
5235 This will improve the stereo or surround sound experience.
5236 .IPs "<ch>\ "
5237 Determines the channel number in which to insert the sub-channel audio.
5238 Channel number can be between 0 and 5 (default: 5).
5239 Observe that the number of channels will automatically
5240 be increased to <ch> if necessary.
5242 .sp 1
5244 .I EXAMPLE:
5246 .RSs
5247 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5248 Would add a sub-woofer channel with a cutoff frequency of
5249 100Hz to output channel 4.
5251 .PD 1
5254 .B "center\ "
5255 Creates a center channel from the front channels.
5256 May currently be low quality as it does not implement a
5257 high-pass filter for proper extraction yet, but averages and
5258 halves the channels instead.
5259 .PD 0
5260 .RSs
5261 .IPs "<ch>\ "
5262 Determines the channel number in which to insert the center channel.
5263 Channel number can be between 0 and 5 (default: 5).
5264 Observe that the number of channels will automatically
5265 be increased to <ch> if necessary.
5267 .PD 1
5270 .B surround[=delay]
5271 Decoder for matrix encoded surround sound like Dolby Surround.
5272 Many files with 2 channel audio actually contain matrixed surround sound.
5273 Requires a sound card supporting at least 4 channels.
5274 .PD 0
5275 .RSs
5276 .IPs <delay>
5277 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5278 This delay should be set as follows: If d1 is the distance
5279 from the listening position to the front speakers and d2 is the distance
5280 from the listening position to the rear speakers, then the delay should
5281 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5283 .sp 1
5285 .I EXAMPLE:
5287 .RSs
5288 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5289 Would add surround sound decoding with 15ms delay for the sound to the
5290 rear speakers.
5292 .PD 1
5295 .B delay[=ch1:ch2:...]
5296 Delays the sound to the loudspeakers such that the sound from the
5297 different channels arrives at the listening position simultaneously.
5298 It is only useful if you have more than 2 loudspeakers.
5299 .PD 0
5300 .RSs
5301 .IPs ch1,ch2,...
5302 The delay in ms that should be imposed on each channel
5303 (floating point number between 0 and 1000).
5305 .PD 1
5306 .sp 1
5308 To calculate the required delay for the different channels do as follows:
5309 .IP 1. 3
5310 Measure the distance to the loudspeakers in meters in relation
5311 to your listening position, giving you the distances s1 to s5
5312 (for a 5.1 system).
5313 There is no point in compensating for the subwoofer (you will not hear the
5314 difference anyway).
5315 .IP 2. 3
5316 Subtract the distances s1 to s5 from the maximum distance,
5317 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5318 .IP 3.
5319 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5321 .PD 0
5322 .sp 1
5324 .I EXAMPLE:
5326 .RSs
5327 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5328 Would delay front left and right by 10.5ms, the two rear channels
5329 and the sub by 0ms and the center channel by 7ms.
5331 .PD 1
5334 .B export[=mmapped_file[:nsamples]]
5335 Exports the incoming signal to other processes using memory mapping (mmap()).
5336 Memory mapped areas contain a header:
5337 .sp 1
5339 int nch                      /*number of channels*/
5340 int size                     /*buffer size*/
5341 unsigned long long counter   /*Used to keep sync, updated every
5342                                time new data is exported.*/
5344 .sp 1
5345 The rest is payload (non-interleaved) 16 bit data.
5346 .PD 0
5347 .RSs
5348 .IPs <mmapped_file>
5349 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5350 .IPs <nsamples>
5351 number of samples per channel (default: 512)
5353 .sp 1
5355 .I EXAMPLE:
5357 .RSs
5358 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5359 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5361 .PD 1
5364 .B extrastereo[=mul]
5365 (Linearly) increases the difference between left and right channels
5366 which adds some sort of "live" effect to playback.
5367 .PD 0
5368 .RSs
5369 .IPs <mul>
5370 Sets the difference coefficient (default: 2.5).
5371 0.0 means mono sound (average of both channels), with 1.0 sound will be
5372 unchanged, with \-1.0 left and right channels will be swapped.
5374 .PD 1
5377 .B volnorm[=method:target]
5378 Maximizes the volume without distorting the sound.
5379 .PD 0
5380 .RSs
5381 .IPs <method>
5382 Sets the used method.
5383 .RSss
5384 1: Use a single sample to smooth the variations via the standard
5385 weighted mean over past samples (default).
5387 2: Use several samples to smooth the variations via the standard
5388 weighted mean over past samples.
5389 .REss
5390 .IPs <target>
5391 Sets the target amplitude as a fraction of the maximum for the
5392 sample type (default: 0.25).
5394 .PD 1
5397 .B ladspa=file:label[:controls...]
5398 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5399 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5400 .PD 0
5401 .RSs
5402 .IPs <file>
5403 Specifies the LADSPA plugin library file.
5404 If LADSPA_PATH is set, it searches for the specified file.
5405 If it is not set, you must supply a fully specified pathname.
5406 .IPs <label>
5407 Specifies the filter within the library.
5408 Some libraries contain only one filter, but others contain many of them.
5409 Entering 'help' here, will list all available filters within the specified
5410 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5411 .IPs <controls>
5412 Controls are zero or more floating point values that determine the
5413 behavior of the loaded plugin (for example delay, threshold or gain).
5414 In verbose mode (add \-v to the MPlayer command line), all available controls
5415 and their valid ranges are printed.
5416 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5418 .PD 1
5421 .B "comp\ \ \ "
5422 Compressor/expander filter usable for microphone input.
5423 Prevents artifacts on very loud sound and raises the volume on
5424 very low sound.
5425 This filter is untested, maybe even unusable.
5428 .B "gate\ \ \ "
5429 Noise gate filter similar to the comp audio filter.
5430 This filter is untested, maybe even unusable.
5433 .B karaoke
5434 Simple voice removal filter exploiting the fact that voice is
5435 usually recorded with mono gear and later 'center' mixed onto
5436 the final audio stream.
5437 Beware that this filter will turn your signal into mono.
5438 Works well for 2 channel tracks; do not bother trying it
5439 on anything but 2 channel stereo.
5442 .B scaletempo[=option1:option2:...]
5443 Scales audio tempo without altering pitch, optionally synced to playback
5444 speed (default).
5446 This works by playing \'stride\' ms of audio at normal speed then
5447 consuming \'stride*scale\' ms of input audio.
5448 It pieces the strides together by blending \'overlap\'% of stride with
5449 audio following the previous stride.
5450 It optionally performs a short statistical analysis on the next \'search\'
5451 ms of audio to determine the best overlap position.
5452 .PD 0
5453 .RSs
5454 .IPs scale=<amount>
5455 Nominal amount to scale tempo.
5456 Scales this amount in addition to speed.
5457 (default: 1.0)
5458 .IPs stride=<amount>
5459 Length in milliseconds to output each stride.
5460 Too high of value will cause noticable skips at high scale amounts and
5461 an echo at low scale amounts.
5462 Very low values will alter pitch.
5463 Increasing improves performance.
5464 (default: 60)
5465 .IPs overlap=<percent>
5466 Percentage of stride to overlap.
5467 Decreasing improves performance.
5468 (default: .20)
5469 .IPs search=<amount>
5470 Length in milliseconds to search for best overlap position.
5471 Decreasing improves performance greatly.
5472 On slow systems, you will probably want to set this very low.
5473 (default: 14)
5474 .IPs speed=<tempo|pitch|both|none>
5475 Set response to speed change.
5476 .RSss
5477 .IPs tempo
5478 Scale tempo in sync with speed (default).
5479 .IPs pitch
5480 Reverses effect of filter.
5481 Scales pitch without altering tempo.
5482 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5483 to your input.conf to step by musical semi-tones.
5484 .I WARNING:
5485 Loses sync with video.
5486 .IPs both
5487 Scale both tempo and pitch.
5488 .IPs none
5489 Ignore speed changes.
5492 .sp 1
5494 .I EXAMPLE:
5496 .RSs
5497 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5498 Would playback media at 1.2x normal speed, with audio at normal pitch.
5499 Changing playback speed, would change audio tempo to match.
5500 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5501 Would playback media at 1.2x normal speed, with audio at normal pitch,
5502 but changing playback speed has no effect on audio tempo.
5503 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5504 Would tweak the quality and performace parameters.
5505 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5506 Would make scaletempo use float code.
5507 Maybe faster on some platforms.
5508 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5509 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5510 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5512 .PD 1
5515 .B "stats\ \ "
5516 Collects and prints statistics about the audio stream, especially the volume.
5517 These statistics are especially intended to help adjusting the volume while
5518 avoiding clipping.
5519 The volumes are printed in dB and compatible with the volume audio filter.
5523 .SH "VIDEO FILTERS"
5524 Video filters allow you to modify the video stream and its properties.
5525 The syntax is:
5528 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5529 Setup a chain of video filters.
5531 Many parameters are optional and set to default values if omitted.
5532 To explicitly use a default value set a parameter to '\-1'.
5533 Parameters w:h means width x height in pixels, x:y means x;y position counted
5534 from the upper left corner of the bigger image.
5536 .I NOTE:
5537 To get a full list of available video filters, see \-vf help.
5538 .sp 1
5539 Video filters are managed in lists.
5540 There are a few commands to manage the filter list.
5543 .B \-vf\-add <filter1[,filter2,...]>
5544 Appends the filters given as arguments to the filter list.
5547 .B \-vf\-pre <filter1[,filter2,...]>
5548 Prepends the filters given as arguments to the filter list.
5551 .B \-vf\-del <index1[,index2,...]>
5552 Deletes the filters at the given indexes.
5553 Index numbers start at 0, negative numbers address the end of the
5554 list (\-1 is the last).
5557 .B \-vf\-clr
5558 Completely empties the filter list.
5560 With filters that support it, you can access parameters by their name.
5563 .B \-vf <filter>=help
5564 Prints the parameter names and parameter value ranges for a particular
5565 filter.
5568 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5569 Sets a named parameter to the given value.
5570 Use on and off or yes and no to set flag parameters.
5572 Available filters are:
5575 .B crop[=w:h:x:y]
5576 Crops the given part of the image and discards the rest.
5577 Useful to remove black bands from widescreen movies.
5578 .PD 0
5579 .RSs
5580 .IPs <w>,<h>
5581 Cropped width and height, defaults to original width and height.
5582 .IPs <x>,<y>
5583 Position of the cropped picture, defaults to center.
5585 .PD 1
5588 .B cropdetect[=limit:round]
5589 Calculates necessary cropping parameters and prints the recommended parameters
5590 to stdout.
5591 .PD 0
5592 .RSs
5593 .IPs <limit>
5594 Threshold, which can be optionally specified from nothing (0) to
5595 everything (255) (default: 24).
5597 .IPs <round>
5598 Value which the width/\:height should be divisible by (default: 16).
5599 The offset is automatically adjusted to center the video.
5600 Use 2 to get only even dimensions (needed for 4:2:2 video).
5601 16 is best when encoding to most video codecs.
5603 .PD 1
5606 .B rectangle[=w:h:x:y]
5607 Draws a rectangle of the requested width and height at the specified
5608 coordinates over the image and prints current rectangle parameters
5609 to the console.
5610 This can be used to find optimal cropping parameters.
5611 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5612 you can move and resize the rectangle on the fly.
5613 .PD 0
5614 .RSs
5615 .IPs <w>,<h>
5616 width and height (default: \-1, maximum possible width where boundaries
5617 are still visible.)
5618 .IPs <x>,<y>
5619 top left corner position (default: \-1, uppermost leftmost)
5621 .PD 1
5624 .B expand[=w:h:x:y:o:a:r]
5625 Expands (not scales) movie resolution to the given value and places the
5626 unscaled original at coordinates x, y.
5627 Can be used for placing subtitles/\:OSD in the resulting black bands.
5628 .RSs
5629 .IPs <w>,<h>
5630 Expanded width,height (default: original width,height).
5631 Negative values for w and h are treated as offsets to the original size.
5632 .sp 1
5633 .I EXAMPLE:
5634 .PD 0
5635 .RSs
5636 .IP expand=0:\-50:0:0
5637 Adds a 50 pixel border to the bottom of the picture.
5639 .PD 1
5640 .IPs <x>,<y>
5641 position of original image on the expanded image (default: center)
5642 .IPs "<o>\ \ "
5643 OSD/\:subtitle rendering
5644 .RSss
5645 0: disable (default)
5647 1: enable
5648 .REss
5649 .IPs "<a>\ \ "
5650 Expands to fit an aspect instead of a resolution (default: 0).
5651 .sp 1
5652 .I EXAMPLE:
5653 .PD 0
5654 .RSs
5655 .IP expand=800:::::4/3
5656 Expands to 800x600, unless the source is higher resolution, in which
5657 case it expands to fill a 4/3 aspect.
5659 .PD 1
5660 .IPs "<r>\ \ "
5661 Rounds up to make both width and height divisible by <r> (default: 1).
5665 .B flip (also see \-flip)
5666 Flips the image upside down.
5669 .B "mirror\ "
5670 Mirrors the image on the Y axis.
5673 .B rotate[=<0\-7>]
5674 Rotates the image by 90 degrees and optionally flips it.
5675 For values between 4\-7 rotation is only done if the movie geometry is
5676 portrait and not landscape.
5677 .RSs
5678 .IPs 0
5679 Rotate by 90 degrees clockwise and flip (default).
5680 .IPs 1
5681 Rotate by 90 degrees clockwise.
5682 .IPs 2
5683 Rotate by 90 degrees counterclockwise.
5684 .IPs 3
5685 Rotate by 90 degrees counterclockwise and flip.
5689 .B scale[=w:h[:ilaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5690 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5691 colorspace conversion (also see \-sws).
5692 .RSs
5693 .IPs <w>,<h>
5694 scaled width/\:height (default: original width/\:height)
5696 .I NOTE:
5697 If \-zoom is used, and underlying filters (including libvo) are
5698 incapable of scaling, it defaults to d_width/\:d_height!
5699 .RSss
5700  0:   scaled d_width/\:d_height
5702 \-1:   original width/\:height
5704 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
5706 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
5708 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
5709 .REss
5710 .IPs <ilaced>
5711 Toggle interlaced scaling.
5712 .RSss
5713 0: off (default)
5715 1: on
5716 .REss
5717 .IPs <chr_drop>
5718 chroma skipping
5719 .RSss
5720 0: Use all available input lines for chroma.
5722 1: Use only every 2. input line for chroma.
5724 2: Use only every 4. input line for chroma.
5726 3: Use only every 8. input line for chroma.
5727 .REss
5728 .IPs "<par>[:<par2>] (also see \-sws)"
5729 Set some scaling parameters depending on the type of scaler selected
5730 with \-sws.
5731 .RSss
5732 \-sws 2 (bicubic):  B (blurring) and C (ringing)
5734 0.00:0.60 default
5736 0.00:0.75 VirtualDub's "precise bicubic"
5738 0.00:0.50 Catmull-Rom spline
5740 0.33:0.33 Mitchell-Netravali spline
5742 1.00:0.00 cubic B-spline
5744 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
5746 \-sws 9 (lanczos):  filter length (1\-10)
5747 .REss
5748 .IPs <presize>
5749 Scale to preset sizes.
5750 .RSss
5751 qntsc:   352x240 (NTSC quarter screen)
5753 qpal:    352x288 (PAL quarter screen)
5755 ntsc:    720x480 (standard NTSC)
5757 pal:     720x576 (standard PAL)
5759 sntsc:   640x480 (square pixel NTSC)
5761 spal:    768x576 (square pixel PAL)
5762 .REss
5763 .IPs <noup>
5764 Disallow upscaling past the original dimensions.
5765 .RSss
5766 0: Allow upscaling (default).
5768 1: Disallow upscaling if one dimension exceeds its original value.
5770 2: Disallow upscaling if both dimensions exceed their original values.
5771 .REss
5772 .IPs <arnd>
5773 Accurate rounding for the vertical scaler, which may be faster
5774 or slower than the default rounding.
5775 .RSss
5776 0: Disable accurate rounding (default).
5778 1: Enable accurate rounding.
5779 .REss
5783 .B dsize[=aspect|w:h:aspect-method:r]
5784 Changes the intended display size/\:aspect at an arbitrary point in the
5785 filter chain.
5786 Aspect can be given as a fraction (4/3) or floating point number
5787 (1.33).
5788 Alternatively, you may specify the exact display width and height
5789 desired.
5790 Note that this filter does
5791 .B not
5792 do any scaling itself; it just affects
5793 what later scalers (software or hardware) will do when auto-scaling to
5794 correct aspect.
5795 .RSs
5796 .IPs <w>,<h>
5797 New display width and height.
5798 Can also be these special values:
5799 .RSss
5800  0:   original display width and height
5802 \-1:   original video width and height (default)
5804 \-2:   Calculate w/h using the other dimension and the original display
5805 aspect ratio.
5807 \-3:   Calculate w/h using the other dimension and the original video
5808 aspect ratio.
5809 .REss
5810 .sp 1
5811 .I EXAMPLE:
5812 .PD 0
5813 .RSs
5814 .IP dsize=800:\-2
5815 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
5816 800x450 for a 16/9 aspect video.
5818 .IPs <aspect-method>
5819 Modifies width and height according to original aspect ratios.
5820 .RSss
5821 \-1: Ignore original aspect ratio (default).
5823  0: Keep display aspect ratio by using <w> and <h> as maximum
5824 resolution.
5826  1: Keep display aspect ratio by using <w> and <h> as minimum
5827 resolution.
5829  2: Keep video aspect ratio by using <w> and <h> as maximum
5830 resolution.
5832  3: Keep video aspect ratio by using <w> and <h> as minimum
5833 resolution.
5834 .REss
5835 .sp 1
5836 .I EXAMPLE:
5837 .PD 0
5838 .RSs
5839 .IP dsize=800:600:0
5840 Specifies a display resolution of at most 800x600, or smaller, in order
5841 to keep aspect.
5843 .PD 1
5844 .IPs "<r>\ \ "
5845 Rounds up to make both width and height divisible by <r> (default: 1).
5849 .B "yuy2\ \ \ "
5850 Forces software YV12/\:I420/\:422P to YUY2 conversion.
5851 Useful for video cards/\:drivers with slow YV12 but fast YUY2 support.
5854 .B "yvu9\ \ \ "
5855 Forces software YVU9 to YV12 colorspace conversion.
5856 Deprecated in favor of the software scaler.
5859 .B "yuvcsp\ "
5860 Clamps YUV color values to the CCIR 601 range without doing real conversion.
5863 .B rgb2bgr[=swap]
5864 RGB 24/32 <\-> BGR 24/32 colorspace conversion.
5865 .PD 0
5866 .RSs
5867 .IPs "swap\ "
5868 Also perform  R <\-> B swapping.
5870 .PD 1
5873 .B palette
5874 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
5877 .B format[=fourcc]
5878 Restricts the colorspace for the next filter without doing any conversion.
5879 Use together with the scale filter for a real conversion.
5881 .I NOTE:
5882 For a list of available formats see format=fmt=help.
5883 .PD 0
5884 .RSs
5885 .IPs <fourcc>
5886 format name like rgb15, bgr24, yv12, etc (default: yuy2)
5888 .PD 1
5891 .B noformat[=fourcc]
5892 Restricts the colorspace for the next filter without doing any conversion.
5893 Unlike the format filter, this will allow any colorspace
5894 .B except
5895 the one you specify.
5897 .I NOTE:
5898 For a list of available formats see noformat=fmt=help.
5899 .PD 0
5900 .RSs
5901 .IPs <fourcc>
5902 format name like rgb15, bgr24, yv12, etc (default: yv12)
5904 .PD 1
5907 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
5908 Enables the specified chain of postprocessing subfilters.
5909 Subfilters must be separated by '/' and can be disabled by
5910 prepending a '\-'.
5911 Each subfilter and some options have a short and a long name that can be
5912 used interchangeably, i.e.\& dr/dering are the same.
5913 All subfilters share common options to determine their scope:
5914 .PD 0
5915 .RSs
5916 .IPs a/autoq
5917 Automatically switch the subfilter off if the CPU is too slow.
5918 .IPs c/chrom
5919 Do chrominance filtering, too (default).
5920 .IPs y/nochrom
5921 Do luminance filtering only (no chrominance).
5922 .IPs n/noluma
5923 Do chrominance filtering only (no luminance).
5925 .PD 1
5926 .sp 1
5929 .I NOTE:
5930 \-pphelp shows a list of available subfilters.
5931 .sp 1
5932 Available subfilters are
5934 .RSs
5935 .IPs hb/hdeblock[:difference[:flatness]]
5936 horizontal deblocking filter
5937 .RSss
5938 <difference>: Difference factor where higher values mean
5939 more deblocking (default: 32).
5941 <flatness>: Flatness threshold where lower values mean
5942 more deblocking (default: 39).
5943 .REss
5944 .IPs vb/vdeblock[:difference[:flatness]]
5945 vertical deblocking filter
5946 .RSss
5947 <difference>: Difference factor where higher values mean
5948 more deblocking (default: 32).
5950 <flatness>: Flatness threshold where lower values mean
5951 more deblocking (default: 39).
5952 .REss
5953 .IPs ha/hadeblock[:difference[:flatness]]
5954 accurate horizontal deblocking filter
5955 .RSss
5956 <difference>: Difference factor where higher values mean
5957 more deblocking (default: 32).
5959 <flatness>: Flatness threshold where lower values mean
5960 more deblocking (default: 39).
5961 .REss
5962 .IPs va/vadeblock[:difference[:flatness]]
5963 accurate vertical deblocking filter
5964 .RSss
5965 <difference>: Difference factor where higher values mean
5966 more deblocking (default: 32).
5968 <flatness>: Flatness threshold where lower values mean
5969 more deblocking (default: 39).
5970 .REss
5971 .sp 1
5972 The horizontal and vertical deblocking filters share the
5973 difference and flatness values so you cannot set
5974 different horizontal and vertical thresholds.
5975 .sp 1
5976 .IPs h1/x1hdeblock
5977 experimental horizontal deblocking filter
5978 .IPs v1/x1vdeblock
5979 experimental vertical deblocking filter
5980 .IPs dr/dering
5981 deringing filter
5982 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
5983 temporal noise reducer
5984 .RSss
5985 <threshold1>: larger -> stronger filtering
5987 <threshold2>: larger -> stronger filtering
5989 <threshold3>: larger -> stronger filtering
5990 .REss
5991 .IPs al/autolevels[:f/fullyrange]
5992 automatic brightness / contrast correction
5993 .RSss
5994 f/fullyrange: Stretch luminance to (0\-255).
5995 .REss
5996 .IPs lb/linblenddeint
5997 Linear blend deinterlacing filter that deinterlaces the given block
5998 by filtering all lines with a (1 2 1) filter.
5999 .IPs li/linipoldeint
6000 Linear interpolating deinterlacing filter that deinterlaces the given block
6001 by linearly interpolating every second line.
6002 .IPs ci/cubicipoldeint
6003 Cubic interpolating deinterlacing filter deinterlaces the given block
6004 by cubically interpolating every second line.
6005 .IPs md/mediandeint
6006 Median deinterlacing filter that deinterlaces the given block
6007 by applying a median filter to every second line.
6008 .IPs fd/ffmpegdeint
6009 FFmpeg deinterlacing filter that deinterlaces the given block
6010 by filtering every second line with a (\-1 4 2 4 \-1) filter.
6011 .IPs l5/lowpass5
6012 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
6013 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
6014 .IPs fq/forceQuant[:quantizer]
6015 Overrides the quantizer table from the input with the constant
6016 quantizer you specify.
6017 .RSss
6018 <quantizer>: quantizer to use
6019 .REss
6020 .IPs de/default
6021 default pp filter combination (hb:a,vb:a,dr:a)
6022 .IPs fa/fast
6023 fast pp filter combination (h1:a,v1:a,dr:a)
6024 .IPs "ac\ \ \ "
6025 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
6028 .sp 1
6029 .I EXAMPLE:
6031 .PD 0
6032 .RSs
6033 .IPs "\-vf pp=hb/vb/dr/al"
6034 horizontal and vertical deblocking, deringing and automatic
6035 brightness/\:contrast
6036 .IPs "\-vf pp=de/\-al"
6037 default filters without brightness/\:contrast correction
6038 .IPs "\-vf pp=default/tmpnoise:1:2:3"
6039 Enable default filters & temporal denoiser.
6040 .IPs "\-vf pp=hb:y/vb:a"
6041 Horizontal deblocking on luminance only, and switch vertical deblocking
6042 on or off automatically depending on available CPU time.
6044 .PD 1
6047 .B spp[=quality[:qp[:mode]]]
6048 Simple postprocessing filter that compresses and decompresses the
6049 image at several (or \- in the case of quality level 6 \- all)
6050 shifts and averages the results.
6051 .RSs
6052 .IPs <quality>
6053 0\-6 (default: 3)
6054 .IPs "<qp>\ "
6055 Force quantization parameter (default: 0, use QP from video).
6056 .IPs <mode>
6057 0: hard thresholding (default)
6059 1: soft thresholding (better deringing, but blurrier)
6061 4: like 0, but also use B-frames' QP (may cause flicker)
6063 5: like 1, but also use B-frames' QP (may cause flicker)
6067 .B uspp[=quality[:qp]]
6068 Ultra simple & slow postprocessing filter that compresses and
6069 decompresses the image at several (or \- in the case of quality
6070 level 8 \- all) shifts and averages the results.
6071 The way this differs from the behavior of spp is that uspp actually
6072 encodes & decodes each case with libavcodec Snow, whereas spp uses
6073 a simplified intra only 8x8 DCT similar to MJPEG.
6074 .RSs
6075 .IPs <quality>
6076 0\-8 (default: 3)
6077 .IPs "<qp>\ "
6078 Force quantization parameter (default: 0, use QP from video).
6082 .B fspp[=quality[:qp[:strength[:bframes]]]]
6083 faster version of the simple postprocessing filter
6084 .RSs
6085 .IPs <quality>
6086 4\-5 (equivalent to spp; default: 4)
6087 .IPs "<qp>\ "
6088 Force quantization parameter (default: 0, use QP from video).
6089 .IPs <\-15\-32>
6090 Filter strength, lower values mean more details but also more artifacts,
6091 while higher values make the image smoother but also blurrier (default:
6092 0 \- PSNR optimal).
6093 .IPs <bframes>
6094 0: do not use QP from B-frames (default)
6096 1: use QP from B-frames too (may cause flicker)
6100 .B pp7[=qp[:mode]]
6101 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6102 only the center sample is used after IDCT.
6103 .RSs
6104 .IPs "<qp>\ "
6105 Force quantization parameter (default: 0, use QP from video).
6106 .IPs <mode>
6107 0: hard thresholding
6109 1: soft thresholding (better deringing, but blurrier)
6111 2: medium thresholding (default, good results)
6115 .B qp=equation
6116 quantization parameter (QP) change filter
6117 .RSs
6118 .IPs <equation>
6119 some equation like "2+2*sin(PI*qp)"
6123 .B geq=equation
6124 generic equation change filter
6125 .RSs
6126 .IPs <equation>
6127 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6128 You can use whitespace to make the equation more readable.
6129 There are a couple of constants that can be used in the equation:
6130 .RSss
6131 PI: the number pi
6133 E: the number e
6135 X / Y: the coordinates of the current sample
6137 W / H: width and height of the image
6139 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6140 1,1 and 0.5,0.5 for YUV 4:2:0.
6142 p(x,y): returns the value of the pixel at location x/y of the current plane.
6143 .REss
6147 .B "test\ \ \ "
6148 Generate various test patterns.
6151 .B rgbtest[=width:height]
6152 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6153 You should see a red, green and blue stripe from top to bottom.
6154 .RSs
6155 .IPs <width>
6156 Desired width of generated image (default: 0).
6157 0 means width of input image.
6159 .IPs <height>
6160 Desired height of generated image (default: 0).
6161 0 means height of input image.
6165 .B lavc[=quality:fps]
6166 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6167 .RSs
6168 .IPs <quality>
6169 1\-31: fixed qscale
6171 32\-:  fixed bitrate in kbits
6172 .IPs <fps>
6173 force output fps (float value) (default: 0, autodetect based on height)
6177 .B dvbscale[=aspect]
6178 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6179 calculating the y axis scaling in software to keep aspect.
6180 Only useful together with expand and scale.
6181 .RSs
6182 .IPs <aspect>
6183 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6184 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6186 .sp 1
6188 .I EXAMPLE:
6190 .PD 0
6191 .RSs
6192 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6193 FIXME: Explain what this does.
6195 .PD 1
6198 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6199 Adds noise.
6200 .PD 0
6201 .RSs
6202 .IPs <0\-100>
6203 luma noise
6204 .IPs <0\-100>
6205 chroma noise
6206 .IPs u
6207 uniform noise (gaussian otherwise)
6208 .IPs t
6209 temporal noise (noise pattern changes between frames)
6210 .IPs a
6211 averaged temporal noise (smoother, but a lot slower)
6212 .IPs h
6213 high quality (slightly better looking, slightly slower)
6214 .IPs p
6215 mix random noise with a (semi)regular pattern
6217 .PD 1
6220 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6221 This filter aims to reduce image noise producing smooth images and making still
6222 images really still (This should enhance compressibility.).
6223 .PD 0
6224 .RSs
6225 .IPs <luma_spatial>
6226 spatial luma strength (default: 4)
6227 .IPs <chroma_spatial>
6228 spatial chroma strength (default: 3)
6229 .IPs <luma_tmp>
6230 luma temporal strength (default: 6)
6231 .IPs <chroma_tmp>
6232 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6234 .PD 1
6237 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6238 High precision/\:quality version of the denoise3d filter.
6239 Parameters and usage are the same.
6242 .B ow[=depth[:luma_strength[:chroma_strength]]]
6243 Overcomplete Wavelet denoiser.
6244 .PD 0
6245 .RSs
6246 .IPs <depth>
6247 Larger depth values will denoise lower frequency components more, but
6248 slow down filtering (default: 8).
6249 .IPs <luma_strength>
6250 luma strength (default: 1.0)
6251 .IPs <chroma_strength>
6252 chroma strength (default: 1.0)
6254 .PD 1
6257 .B eq[=brightness:contrast] (OBSOLETE)
6258 Software equalizer with interactive controls just like the hardware
6259 equalizer, for cards/\:drivers that do not support brightness and
6260 contrast controls in hardware.
6261 Might also be useful with MEncoder, either for fixing poorly captured
6262 movies, or for slightly reducing contrast to mask artifacts and get by
6263 with lower bitrates.
6264 .PD 0
6265 .RSs
6266 .IPs <\-100\-100>
6267 initial brightness
6268 .IPs <\-100\-100>
6269 initial contrast
6271 .PD 1
6274 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6275 Alternative software equalizer that uses lookup tables (very slow),
6276 allowing gamma correction in addition to simple brightness
6277 and contrast adjustment.
6278 Note that it uses the same MMX optimized code as \-vf eq if all
6279 gamma values are 1.0.
6280 The parameters are given as floating point values.
6281 .PD 0
6282 .RSs
6283 .IPs <0.1\-10>
6284 initial gamma value (default: 1.0)
6285 .IPs <\-2\-2>
6286 initial contrast, where negative values result in a
6287 negative image (default: 1.0)
6288 .IPs <\-1\-1>
6289 initial brightness (default: 0.0)
6290 .IPs <0\-3>
6291 initial saturation (default: 1.0)
6292 .IPs <0.1\-10>
6293 gamma value for the red component (default: 1.0)
6294 .IPs <0.1\-10>
6295 gamma value for the green component (default: 1.0)
6296 .IPs <0.1\-10>
6297 gamma value for the blue component (default: 1.0)
6298 .IPs <0\-1>
6299 The weight parameter can be used to reduce the effect of a high gamma value on
6300 bright image areas, e.g.\& keep them from getting overamplified and just plain
6301 white.
6302 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6303 at its full strength (default: 1.0).
6305 .PD 1
6308 .B hue[=hue:saturation]
6309 Software equalizer with interactive controls just like the hardware
6310 equalizer, for cards/\:drivers that do not support hue and
6311 saturation controls in hardware.
6312 .PD 0
6313 .RSs
6314 .IPs <\-180\-180>
6315 initial hue (default: 0.0)
6316 .IPs <\-100\-100>
6317 initial saturation, where negative values result
6318 in a negative chroma (default: 1.0)
6320 .PD 1
6323 .B halfpack[=f]
6324 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6325 keeping all chroma samples.
6326 Useful for output to low-resolution display devices when hardware downscaling
6327 is poor quality or is not available.
6328 Can also be used as a primitive luma-only deinterlacer with very low CPU
6329 usage.
6330 .PD 0
6331 .RSs
6332 .IPs "<f>\ \ "
6333 By default, halfpack averages pairs of lines when downsampling.
6334 Any value different from 0 or 1 gives the default (averaging) behavior.
6335 .RSss
6336 0: Only use even lines when downsampling.
6338 1: Only use odd lines when downsampling.
6339 .REss
6341 .PD 1
6344 .B ilpack[=mode]
6345 When interlaced video is stored in YUV 4:2:0 formats, chroma
6346 interlacing does not line up properly due to vertical downsampling of
6347 the chroma channels.
6348 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6349 the chroma lines in their proper locations, so that in any given
6350 scanline, the luma and chroma data both come from the same field.
6351 .PD 0
6352 .RSs
6353 .IPs <mode>
6354 Select the sampling mode.
6355 .RSss
6356 0: nearest-neighbor sampling, fast but incorrect
6358 1: linear interpolation (default)
6359 .REss
6361 .PD 1
6364 .B harddup
6365 Only useful with MEncoder.
6366 If harddup is used when encoding, it will force duplicate frames to be
6367 encoded in the output.
6368 This uses slightly more space, but is necessary for output to MPEG
6369 files or if you plan to demux and remux the video stream after
6370 encoding.
6371 Should be placed at or near the end of the filter chain unless you
6372 have a good reason to do otherwise.
6375 .B softskip
6376 Only useful with MEncoder.
6377 Softskip moves the frame skipping (dropping) step of encoding from
6378 before the filter chain to some point during the filter chain.
6379 This allows filters which need to see all frames (inverse telecine,
6380 temporal denoising, etc.) to function properly.
6381 Should be placed after the filters which need to see all frames and
6382 before any subsequent filters that are CPU-intensive.
6385 .B decimate[=max:hi:lo:frac]
6386 Drops frames that do not differ greatly from the previous frame in
6387 order to reduce framerate.
6388 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6389 streaming over dialup modem), but it could in theory be used for
6390 fixing movies that were inverse-telecined incorrectly.
6391 .PD 0
6392 .RSs
6393 .IPs <max>
6394 Sets the maximum number of consecutive frames which can be
6395 dropped (if positive), or the minimum interval between
6396 dropped frames (if negative).
6397 .IPs <hi>,<lo>,<frac>
6398 A frame is a candidate for dropping if no 8x8 region differs by more
6399 than a threshold of <hi>, and if not more than <frac> portion (1
6400 meaning the whole image) differs by more than a threshold of <lo>.
6401 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6402 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6403 difference for each pixel, or the same spread out differently over the
6404 block.
6406 .PD 1
6409 .B dint[=sense:level]
6410 The drop-deinterlace (dint) filter detects and drops the first from a set
6411 of interlaced video frames.
6412 .PD 0
6413 .RSs
6414 .IPs <0.0\-1.0>
6415 relative difference between neighboring pixels (default: 0.1)
6416 .IPs <0.0\-1.0>
6417 What part of the image has to be detected as interlaced to
6418 drop the frame (default: 0.15).
6420 .PD 1
6423 .B lavcdeint (OBSOLETE)
6424 FFmpeg deinterlacing filter, same as \-vf pp=fd
6427 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6428 Donald Graft's adaptive kernel deinterlacer.
6429 Deinterlaces parts of a video if a configurable threshold is exceeded.
6430 .PD 0
6431 .RSs
6432 .IPs <0\-255>
6433 threshold (default: 10)
6434 .IPs <map>
6435 .RSss
6436 0: Ignore pixels exceeding the threshold (default).
6438 1: Paint pixels exceeding the threshold white.
6439 .REss
6440 .IPs <order>
6441 .RSss
6442 0: Leave fields alone (default).
6444 1: Swap fields.
6445 .REss
6446 .IPs <sharp>
6447 .RSss
6448 0: Disable additional sharpening (default).
6450 1: Enable additional sharpening.
6451 .REss
6452 .IPs <twoway>
6453 .RSss
6454 0: Disable twoway sharpening (default).
6456 1: Enable twoway sharpening.
6457 .REss
6459 .PD 1
6462 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6463 unsharp mask / gaussian blur
6464 .RSs
6465 .IPs "l\ \ \ \ "
6466 Apply effect on luma component.
6467 .IPs "c\ \ \ \ "
6468 Apply effect on chroma components.
6469 .IPs <width>x<height>
6470 width and height of the matrix, odd sized in both directions
6471 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6472 .IPs amount
6473 Relative amount of sharpness/\:blur to add to the image
6474 (a sane range should be \-1.5\-1.5).
6475 .RSss
6476 <0: blur
6478 >0: sharpen
6479 .REss
6483 .B "swapuv\ "
6484 Swap U & V plane.
6487 .B il[=d|i][s][:[d|i][s]]
6488 (De)interleaves lines.
6489 The goal of this filter is to add the ability to process interlaced images
6490 pre-field without deinterlacing them.
6491 You can filter your interlaced DVD and play it on a TV without breaking the
6492 interlacing.
6493 While deinterlacing (with the postprocessing filter) removes interlacing
6494 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6495 2 fields (so called half pictures), so you can process (filter) them
6496 independently and then re-interleave them.
6497 .PD 0
6498 .RSs
6499 .IPs d
6500 deinterleave (placing one above the other)
6501 .IPs i
6502 interleave
6503 .IPs s
6504 swap fields (exchange even & odd lines)
6506 .PD 1
6509 .B fil[=i|d]
6510 (De)interleaves lines.
6511 This filter is very similar to the il filter but much faster, the main
6512 disadvantage is that it does not always work.
6513 Especially if combined with other filters it may produce randomly messed
6514 up images, so be happy if it works but do not complain if it does not for
6515 your combination of filters.
6516 .PD 0
6517 .RSs
6518 .IPs d
6519 Deinterleave fields, placing them side by side.
6520 .IPs i
6521 Interleave fields again (reversing the effect of fil=d).
6523 .PD 1
6526 .B field[=n]
6527 Extracts a single field from an interlaced image using stride arithmetic
6528 to avoid wasting CPU time.
6529 The optional argument n specifies whether to extract the even or the odd
6530 field (depending on whether n is even or odd).
6533 .B detc[=var1=value1:var2=value2:...]
6534 Attempts to reverse the 'telecine' process to recover a clean,
6535 non-interlaced stream at film framerate.
6536 This was the first and most primitive inverse telecine filter to be
6537 added to MPlayer/\:MEncoder.
6538 It works by latching onto the telecine 3:2 pattern and following it as
6539 long as possible.
6540 This makes it suitable for perfectly-telecined material, even in the
6541 presence of a fair degree of noise, but it will fail in the presence
6542 of complex post-telecine edits.
6543 Development on this filter is no longer taking place, as ivtc, pullup,
6544 and filmdint are better for most applications.
6545 The following arguments (see syntax above) may be used to control
6546 detc's behavior:
6547 .RSs
6548 .IPs "<dr>\ "
6549 Set the frame dropping mode.
6550 .RSss
6551 0: Do not drop frames to maintain fixed output framerate (default).
6553 1: Always drop a frame when there have been no drops or telecine
6554 merges in the past 5 frames.
6556 2: Always maintain exact 5:4 input to output frame ratio.
6558 .I NOTE:
6559 Use mode 1 or 2 with MEncoder.
6560 .REss
6561 .IPs "<am>\ "
6562 Analysis mode.
6563 .RSss
6564 0: Fixed pattern with initial frame number specified by <fr>.
6566 1: aggressive search for telecine pattern (default)
6567 .REss
6568 .IPs "<fr>\ "
6569 Set initial frame number in sequence.
6570 0\-2 are the three clean progressive frames; 3 and 4 are the two
6571 interlaced frames.
6572 The default, \-1, means 'not in telecine sequence'.
6573 The number specified here is the type for the imaginary previous
6574 frame before the movie starts.
6575 .IPs "<t0>, <t1>, <t2>, <t3>"
6576 Threshold values to be used in certain modes.
6580 .B ivtc[=1]
6581 Experimental 'stateless' inverse telecine filter.
6582 Rather than trying to lock on to a pattern like the detc filter does,
6583 ivtc makes its decisions independently for each frame.
6584 This will give much better results for material that has undergone
6585 heavy editing after telecine was applied, but as a result it is not as
6586 forgiving of noisy input, for example TV capture.
6587 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6588 detc filter, and should be used with MEncoder but not with MPlayer.
6589 As with detc, you must specify the correct output framerate (\-ofps
6590 24000/1001) when using MEncoder.
6591 Further development on ivtc has stopped, as the pullup and filmdint
6592 filters appear to be much more accurate.
6595 .B pullup[=jl:jr:jt:jb:sb:mp]
6596 Third-generation pulldown reversal (inverse telecine) filter,
6597 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6598 fps progressive content.
6599 The pullup filter is designed to be much more robust than detc or
6600 ivtc, by taking advantage of future context in making its decisions.
6601 Like ivtc, pullup is stateless in the sense that it does not lock onto
6602 a pattern to follow, but it instead looks forward to the following
6603 fields in order to identify matches and rebuild progressive frames.
6604 It is still under development, but believed to be quite accurate.
6605 .RSs
6606 .IPs "jl, jr, jt, and jb"
6607 These options set the amount of "junk" to ignore at
6608 the left, right, top, and bottom of the image, respectively.
6609 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6610 2 lines.
6611 The default is 8 pixels on each side.
6613 .IPs "sb (strict breaks)"
6614 Setting this option to 1 will reduce the chances of
6615 pullup generating an occasional mismatched frame, but it may also
6616 cause an excessive number of frames to be dropped during high motion
6617 sequences.
6618 Conversely, setting it to \-1 will make pullup match fields more
6619 easily.
6620 This may help processing of video where there is slight blurring
6621 between the fields, but may also cause there to be interlaced frames
6622 in the output.
6624 .IPs "mp (metric plane)"
6625 This option may be set to 1 or 2 to use a chroma
6626 plane instead of the luma plane for doing pullup's computations.
6627 This may improve accuracy on very clean source material, but more
6628 likely will decrease accuracy, especially if there is chroma noise
6629 (rainbow effect) or any grayscale video.
6630 The main purpose of setting mp to a chroma plane is to reduce CPU load
6631 and make pullup usable in realtime on slow machines.
6632 .REss
6634 .sp 1
6635 .I NOTE:
6636 Always follow pullup with the softskip filter when encoding to ensure
6637 that pullup is able to see each frame.
6638 Failure to do so will lead to incorrect output and will usually crash,
6639 due to design limitations in the codec/\:filter layer.
6640 .REss
6643 .B filmdint[=options]
6644 Inverse telecine filter, similar to the pullup filter above.
6645 It is designed to handle any pulldown pattern, including mixed soft and
6646 hard telecine and limited support for movies that are slowed down or sped
6647 up from their original framerate for TV.
6648 Only the luma plane is used to find the frame breaks.
6649 If a field has no match, it is deinterlaced with simple linear
6650 approximation.
6651 If the source is MPEG-2, this must be the first filter to allow
6652 access to the field-flags set by the MPEG-2 decoder.
6653 Depending on the source MPEG, you may be fine ignoring this advice, as
6654 long as you do not see lots of "Bottom-first field" warnings.
6655 With no options it does normal inverse telecine, and should be used
6656 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6657 When this filter is used with MPlayer, it will result in an uneven
6658 framerate during playback, but it is still generally better than using
6659 pp=lb or no deinterlacing at all.
6660 Multiple options can be specified separated by /.
6661 .RSs
6662 .IPs crop=<w>:<h>:<x>:<y>
6663 Just like the crop filter, but faster, and works on mixed hard and soft
6664 telecined content as well as when y is not a multiple of 4.
6665 If x or y would require cropping fractional pixels from the chroma
6666 planes, the crop area is extended.
6667 This usually means that x and y must be even.
6668 .IPs io=<ifps>:<ofps>
6669 For each ifps input frames the filter will output ofps frames.
6670 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
6671 This could be used to filter movies that are broadcast on TV at a frame
6672 rate different from their original framerate.
6673 .IPs luma_only=<n>
6674 If n is nonzero, the chroma plane is copied unchanged.
6675 This is useful for YV12 sampled TV, which discards one of the chroma
6676 fields.
6677 .IPs mmx2=<n>
6678 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6679 optimized functions, otherwise, use plain C.
6680 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6681 this option to override auto-detection.
6682 .IPs fast=<n>
6683 The larger n will speed up the filter at the expense of accuracy.
6684 The default value is n=3.
6685 If n is odd, a frame immediately following a frame marked with the
6686 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6687 will not spend any time on soft-telecined MPEG-2 content.
6688 This is the only effect of this flag if MMX2 or 3DNow! is available.
6689 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6690 as with n=2 or 3.
6691 If n=2 or 3, the number of luma levels used to find the frame breaks is
6692 reduced from 256 to 128, which results in a faster filter without losing
6693 much accuracy.
6694 If n=4 or 5, a faster, but much less accurate metric will be used to
6695 find the frame breaks, which is more likely to misdetect high vertical
6696 detail as interlaced content.
6697 .IPs verbose=<n>
6698 If n is nonzero, print the detailed metrics for each frame.
6699 Useful for debugging.
6700 .IPs dint_thres=<n>
6701 Deinterlace threshold.
6702 Used during de-interlacing of unmatched frames.
6703 Larger value means less deinterlacing, use n=256 to completely turn off
6704 deinterlacing.
6705 Default is n=8.
6706 .IPs comb_thres=<n>
6707 Threshold for comparing a top and bottom fields.
6708 Defaults to 128.
6709 .IPs diff_thres=<n>
6710 Threshold to detect temporal change of a field.
6711 Default is 128.
6712 .IPs sad_thres=<n>
6713 Sum of Absolute Difference threshold, default is 64.
6717 .B softpulldown
6718 This filter works only correct with MEncoder and acts on the MPEG-2 flags
6719 used for soft 3:2 pulldown (soft telecine).
6720 If you want to use the ivtc or detc filter on movies that are partly soft
6721 telecined, inserting this filter before them should make them more reliable.
6724 .B divtc[=options]
6725 Inverse telecine for deinterlaced video.
6726 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
6727 using a method that keeps one field and interpolates the other, the result is
6728 a juddering video that has every fourth frame duplicated.
6729 This filter is intended to find and drop those duplicates and restore the
6730 original film framerate.
6731 When using this filter, you must specify \-ofps that is 4/5 of
6732 the fps of the input file and place the softskip later in the
6733 filter chain to make sure that divtc sees all the frames.
6734 Two different modes are available:
6735 One pass mode is the default and is straightforward to use,
6736 but has the disadvantage that any changes in the telecine
6737 phase (lost frames or bad edits) cause momentary judder
6738 until the filter can resync again.
6739 Two pass mode avoids this by analyzing the whole video
6740 beforehand so it will have forward knowledge about the
6741 phase changes and can resync at the exact spot.
6742 These passes do
6743 .B not
6744 correspond to pass one and two of the encoding process.
6745 You must run an extra pass using divtc pass one before the
6746 actual encoding throwing the resulting video away.
6747 Use \-nosound \-ovc raw \-o /dev/null to avoid
6748 wasting CPU power for this pass.
6749 You may add something like crop=2:2:0:0 after divtc
6750 to speed things up even more.
6751 Then use divtc pass two for the actual encoding.
6752 If you use multiple encoder passes, use divtc
6753 pass two for all of them.
6754 The options are:
6755 .RSs
6756 .IPs pass=1|2
6757 Use two pass mode.
6758 .IPs file=<filename>
6759 Set the two pass log filename (default: "framediff.log").
6760 .IPs threshold=<value>
6761 Set the minimum strength the telecine pattern must have for the filter to
6762 believe in it (default: 0.5).
6763 This is used to avoid recognizing false pattern from the parts of the video
6764 that are very dark or very still.
6765 .IPs window=<numframes>
6766 Set the number of past frames to look at when searching for pattern
6767 (default: 30).
6768 Longer window improves the reliability of the pattern search, but shorter
6769 window improves the reaction time to the changes in the telecine phase.
6770 This only affects the one pass mode.
6771 The two pass mode currently uses fixed window that extends to both future
6772 and past.
6773 .IPs phase=0|1|2|3|4
6774 Sets the initial telecine phase for one pass mode (default: 0).
6775 The two pass mode can see the future, so it is able to use the correct
6776 phase from the beginning, but one pass mode can only guess.
6777 It catches the correct phase when it finds it, but this option can be used
6778 to fix the possible juddering at the beginning.
6779 The first pass of the two pass mode also uses this, so if you save the output
6780 from the first pass, you get constant phase result.
6781 .IPs deghost=<value>
6782 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
6783 mode, default 0).
6784 If nonzero, deghosting mode is used.
6785 This is for video that has been deinterlaced by blending the fields
6786 together instead of dropping one of the fields.
6787 Deghosting amplifies any compression artifacts in the blended frames, so the
6788 parameter value is used as a threshold to exclude those pixels from
6789 deghosting that differ from the previous frame less than specified value.
6790 If two pass mode is used, then negative value can be used to make the
6791 filter analyze the whole video in the beginning of pass-2 to determine
6792 whether it needs deghosting or not and then select either zero or the
6793 absolute value of the parameter.
6794 Specify this option for pass-2, it makes no difference on pass-1.
6798 .B phase[=t|b|p|a|u|T|B|A|U][:v]
6799 Delay interlaced video by one field time so that the field order
6800 changes.
6801 The intended use is to fix PAL movies that have been captured with the
6802 opposite field order to the film-to-video transfer.
6803 The options are:
6804 .RSs
6805 .IPs t
6806 Capture field order top-first, transfer bottom-first.
6807 Filter will delay the bottom field.
6808 .IPs b
6809 Capture bottom-first, transfer top-first.
6810 Filter will delay the top field.
6811 .IPs p
6812 Capture and transfer with the same field order.
6813 This mode only exists for the documentation of the other options to refer to,
6814 but if you actually select it, the filter will faithfully do nothing ;-)
6815 .IPs a
6816 Capture field order determined automatically by field flags, transfer opposite.
6817 Filter selects among t and b modes on a frame by frame basis using field flags.
6818 If no field information is available, then this works just like u.
6819 .IPs u
6820 Capture unknown or varying, transfer opposite.
6821 Filter selects among t and b on a frame by frame basis by analyzing the
6822 images and selecting the alternative that produces best match between the
6823 fields.
6824 .IPs T
6825 Capture top-first, transfer unknown or varying.
6826 Filter selects among t and p using image analysis.
6827 .IPs B
6828 Capture bottom-first, transfer unknown or varying.
6829 Filter selects among b and p using image analysis.
6830 .IPs A
6831 Capture determined by field flags, transfer unknown or varying.
6832 Filter selects among t, b and p using field flags and image analysis.
6833 If no field information is available, then this works just like U.
6834 This is the default mode.
6835 .IPs U
6836 Both capture and transfer unknown or varying.
6837 Filter selects among t, b and p using image analysis only.
6838 .IPs v
6839 Verbose operation.
6840 Prints the selected mode for each frame and the average squared difference
6841 between fields for t, b, and p alternatives.
6845 .B telecine[=start]
6846 Apply 3:2 'telecine' process to increase framerate by 20%.
6847 This most likely will not work correctly with MPlayer, but it can
6848 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
6849 Both fps options are essential!
6850 (A/V sync will break if they are wrong.)
6851 The optional start parameter tells the filter where in the telecine
6852 pattern to start (0\-3).
6855 .B tinterlace[=mode]
6856 Temporal field interlacing \- merge pairs of frames into an interlaced
6857 frame, halving the framerate.
6858 Even frames are moved into the upper field, odd frames to the lower field.
6859 This can be used to fully reverse the effect of the tfields filter (in mode 0).
6860 Available modes are:
6861 .PD 0
6862 .RSs
6863 .IPs 0
6864 Move odd frames into the upper field, even into the lower field, generating
6865 a full-height frame at half framerate.
6866 .IPs 1
6867 Only output odd frames, even frames are dropped; height unchanged.
6868 .IPs 2
6869 Only output even frames, odd frames are dropped; height unchanged.
6870 .IPs 3
6871 Expand each frame to full height, but pad alternate lines with black;
6872 framerate unchanged.
6873 .IPs 4
6874 Interleave even lines from even frames with odd lines from odd frames.
6875 Height unchanged at half framerate.
6877 .PD 1
6880 .B tfields[=mode[:field_dominance]]
6881 Temporal field separation \- split fields into frames, doubling the
6882 output framerate.
6883 Like the telecine filter, tfields will only work properly with
6884 MEncoder, and only if both \-fps and \-ofps are set to the
6885 desired (double) framerate!
6886 .PD 0
6887 .RSs
6888 .IPs <mode>
6889 0: Leave fields unchanged (will jump/\:flicker).
6891 1: Interpolate missing lines. (The algorithm used might not be so good.)
6893 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
6895 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
6896 .IPs <field_dominance>\ (DEPRECATED)
6897 \-1: auto (default)
6898 Only works if the decoder exports the appropriate information and
6899 no other filters which discard that information come before tfields
6900 in the filter chain, otherwise it falls back to 0 (top field first).
6902 0: top field first
6904 1: bottom field first
6906 .I NOTE:
6907 This option will possibly be removed in a future version.
6908 Use \-field\-dominance instead.
6910 .PD 1
6913 .B yadif=[mode[:field_dominance]]
6914 Yet another deinterlacing filter
6915 .PD 0
6916 .RSs
6917 .IPs <mode>
6918 0: Output 1 frame for each frame.
6920 1: Output 1 frame for each field.
6922 2: Like 0 but skips spatial interlacing check.
6924 3: Like 1 but skips spatial interlacing check.
6925 .IPs <field_dominance>\ (DEPRECATED)
6926 Operates like tfields.
6928 .I NOTE:
6929 This option will possibly be removed in a future version.
6930 Use \-field\-dominance instead.
6932 .PD 1
6935 .B mcdeint=[mode[:parity[:qp]]]
6936 Motion compensating deinterlacer.
6937 It needs one field per frame as input and must thus be used together
6938 with tfields=1 or yadif=1/3 or equivalent.
6939 .PD 0
6940 .RSs
6941 .IPs <mode>
6942 0: fast
6944 1: medium
6946 2: slow, iterative motion estimation
6948 3: extra slow, like 2 plus multiple reference frames
6949 .IPs <parity>
6950 0 or 1 selects which field to use (note: no autodetection yet!).
6951 .IPs "<qp>\ "
6952 Higher values should result in a smoother motion vector
6953 field but less optimal individual vectors.
6955 .PD 1
6958 .B boxblur=radius:power[:radius:power]
6959 box blur
6960 .PD 0
6961 .RSs
6962 .IPs <radius>
6963 blur filter strength
6964 .IPs <power>
6965 number of filter applications
6967 .PD 1
6970 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
6971 shape adaptive blur
6972 .PD 0
6973 .RSs
6974 .IPs <radius>
6975 blur filter strength (~0.1\-4.0) (slower if larger)
6976 .IPs "<pf>\ "
6977 prefilter strength (~0.1\-2.0)
6978 .IPs <colorDiff>
6979 maximum difference between pixels to still be considered (~0.1\-100.0)
6981 .PD 1
6984 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
6985 smart blur
6986 .PD 0
6987 .RSs
6988 .IPs <radius>
6989 blur filter strength (~0.1\-5.0) (slower if larger)
6990 .IPs <strength>
6991 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
6992 .IPs <threshold>
6993 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
6995 .PD 1
6998 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
6999 Correct the perspective of movies not filmed perpendicular to the screen.
7000 .PD 0
7001 .RSs
7002 .IPs <x0>,<y0>,...
7003 coordinates of the top left, top right, bottom left, bottom right corners
7004 .IPs "<t>\ \ "
7005 linear (0) or cubic resampling (1)
7007 .PD 1
7010 .B "2xsai\ \ "
7011 Scale and smooth the image with the 2x scale and interpolate algorithm.
7014 .B "1bpp\ \ \ "
7015 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
7018 .B down3dright[=lines]
7019 Reposition and resize stereoscopic images.
7020 Extracts both stereo fields and places them side by side, resizing
7021 them to maintain the original movie aspect.
7022 .PD 0
7023 .RSs
7024 .IPs <lines>
7025 number of lines to select from the middle of the image (default: 12)
7027 .PD 1
7030 .B bmovl=hidden:opaque:fifo
7031 The bitmap overlay filter reads bitmaps from a FIFO and displays them
7032 on top of the movie, allowing some transformations on the image.
7033 Also see TOOLS/bmovl-test.c for a small bmovl test program.
7034 .PD 0
7035 .RSs
7036 .IPs <hidden>
7037 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
7038 .IPs <opaque>
7039 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
7040 .IPs <fifo>
7041 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
7042 controlling application)
7044 .PD 1
7045 .sp 1
7047 FIFO commands are:
7049 .PD 0
7050 .RSs
7051 .IPs "RGBA32 width height xpos ypos alpha clear"
7052 followed by width*height*4 Bytes of raw RGBA32 data.
7053 .IPs "ABGR32 width height xpos ypos alpha clear"
7054 followed by width*height*4 Bytes of raw ABGR32 data.
7055 .IPs "RGB24 width height xpos ypos alpha clear"
7056 followed by width*height*3 Bytes of raw RGB24 data.
7057 .IPs "BGR24 width height xpos ypos alpha clear"
7058 followed by width*height*3 Bytes of raw BGR24 data.
7059 .IPs "ALPHA width height xpos ypos alpha"
7060 Change alpha transparency of the specified area.
7061 .IPs "CLEAR width height xpos ypos"
7062 Clear area.
7063 .IPs OPAQUE
7064 Disable all alpha transparency.
7065 Send "ALPHA 0 0 0 0 0" to enable it again.
7066 .IPs "HIDE\ "
7067 Hide bitmap.
7068 .IPs "SHOW\ "
7069 Show bitmap.
7071 .PD 1
7072 .sp 1
7074 Arguments are:
7076 .PD 0
7077 .RSs
7078 .IPs "<width>, <height>"
7079 image/area size
7080 .IPs "<xpos>, <ypos>"
7081 Start blitting at position x/y.
7082 .IPs <alpha>
7083 Set alpha difference.
7084 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
7085 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
7086 .RSss
7087 0:    same as original
7089 255:  Make everything opaque.
7091 \-255: Make everything transparent.
7092 .REss
7093 .IPs <clear>
7094 Clear the framebuffer before blitting.
7095 .RSss
7096 0: The image will just be blitted on top of the old one, so you do not need to
7097 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7099 1: clear
7100 .REss
7102 .PD 1
7105 .B framestep=I|[i]step
7106 Renders only every nth frame or every intra frame (keyframe).
7107 .sp 1
7108 If you call the filter with I (uppercase) as the parameter, then
7109 .B only
7110 keyframes are rendered.
7111 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7112 for AVI it means every scene change or every keyint value (see \-lavcopts
7113 keyint= value if you use MEncoder to encode the video).
7114 .sp 1
7115 When a keyframe is found, an 'I!' string followed by a newline character is
7116 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
7117 because it contains the time (in seconds) and frame number of the keyframe
7118 (You can use this information to split the AVI.).
7119 .sp 1
7120 If you call the filter with a numeric parameter 'step' then only one in
7121 every 'step' frames is rendered.
7122 .sp 1
7123 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7124 (like the I parameter).
7125 .sp 1
7126 If you give only the i then nothing is done to the frames, only I! is
7127 printed.
7130 .B tile=xtiles:ytiles:output:start:delta
7131 Tile a series of images into a single, bigger image.
7132 If you omit a parameter or use a value less than 0, then the default
7133 value is used.
7134 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7135 It is probably a good idea to put the scale filter before the tile :-)
7136 .sp 1
7137 The parameters are:
7138 .sp 1
7139 .PD 0
7140 .RSs
7141 .IPs <xtiles>
7142 number of tiles on the x axis (default: 5)
7143 .IPs <ytiles>
7144 number of tiles on the y axis (default: 5)
7145 .IPs <output>
7146 Render the tile when 'output' number of frames are reached, where 'output'
7147 should be a number less than xtile * ytile.
7148 Missing tiles are left blank.
7149 You could, for example, write an 8 * 7 tile every 50 frames to have one
7150 image every 2 seconds @ 25 fps.
7151 .IPs <start>
7152 outer border thickness in pixels (default: 2)
7153 .IPs <delta>
7154 inner border thickness in pixels (default: 4)
7156 .PD 1
7159 .B delogo[=x:y:w:h:t]
7160 Suppresses a TV station logo by a simple interpolation of the
7161 surrounding pixels.
7162 Just set a rectangle covering the logo and watch it disappear (and
7163 sometimes something even uglier appear \- your mileage may vary).
7164 .PD 0
7165 .RSs
7166 .IPs <x>,<y>
7167 top left corner of the logo
7168 .IPs <w>,<h>
7169 width and height of the cleared rectangle
7170 .IPs <t>
7171 Thickness of the fuzzy edge of the rectangle (added to w and h).
7172 When set to \-1, a green rectangle is drawn on the screen to
7173 simplify finding the right x,y,w,h parameters.
7175 .PD 1
7178 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7179 Suppresses a TV station logo, using a PGM or PPM image
7180 file to determine which pixels comprise the logo.
7181 The width and height of the image file must match
7182 those of the video stream being processed.
7183 Uses the filter image and a circular blur
7184 algorithm to remove the logo.
7185 .RSs
7186 .IPs /path/to/logo_bitmap_file_name.pgm
7187 [path] + filename of the filter image.
7191 .B zrmjpeg[=options]
7192 Software YV12 to MJPEG encoder for use with the zr2 video
7193 output device.
7194 .RSs
7195 .IPs maxheight=<h>|maxwidth=<w>
7196 These options set the maximum width and height the zr card
7197 can handle (the MPlayer filter layer currently cannot query those).
7198 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
7199 Use these options to set maxwidth and maxheight automatically to the
7200 values known for card/\:mode combo.
7201 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
7202 .IPs color|bw
7203 Select color or black and white encoding.
7204 Black and white encoding is faster.
7205 Color is the default.
7206 .IPs hdec={1,2,4}
7207 Horizontal decimation 1, 2 or 4.
7208 .IPs vdec={1,2,4}
7209 Vertical decimation 1, 2 or 4.
7210 .IPs quality=1\-20
7211 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
7212 .IPs fd|nofd
7213 By default, decimation is only performed if the Zoran hardware
7214 can upscale the resulting MJPEG images to the original size.
7215 The option fd instructs the filter to always perform the requested
7216 decimation (ugly).
7220 .B screenshot
7221 Allows acquiring screenshots of the movie using slave mode
7222 commands that can be bound to keypresses.
7223 See the slave mode documentation and the INTERACTIVE CONTROL
7224 section for details.
7225 Files named 'shotNNNN.png' will be saved in the working directory,
7226 using the first available number \- no files will be overwritten.
7227 The filter has no overhead when not used and accepts an arbitrary
7228 colorspace, so it is safe to add it to the configuration file.
7232 .B "ass\ \ \ \ "
7233 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7234 Only useful with the \-ass option.
7235 .sp 1
7236 .I EXAMPLE:
7237 .PD 0
7238 .RSs
7239 .IPs "\-vf ass,screenshot"
7240 Moves SSA/ASS rendering before the screenshot filter.
7241 Screenshots taken this way will contain subtitles.
7243 .PD 1
7246 .B blackframe[=amount:threshold]
7247 Detect frames that are (almost) completely black.
7248 Can be useful to detect chapter transitions or commercials.
7249 Output lines consist of the frame number of the detected frame, the
7250 percentage of blackness, the frame type and the frame number of the last
7251 encountered keyframe.
7252 .RSs
7253 .IPs <amount>
7254 Percentage of the pixels that have to be below the threshold (default: 98).
7255 .IPs <threshold>
7256 Threshold below which a pixel value is considered black (default: 32).
7261 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7264 .B \-audio\-delay <any floating-point number>
7265 Delays either audio or video by setting a delay field in the header
7266 (default: 0.0).
7267 This does not delay either stream while encoding, but the player will
7268 see the delay field and compensate accordingly.
7269 Positive values delay the audio, and negative values delay the video.
7270 Note that this is the exact opposite of the \-delay option.
7271 For example, if a video plays correctly with \-delay 0.2, you can
7272 fix the video with MEncoder by using \-audio\-delay \-0.2.
7273 .sp 1
7274 Currently, this option only works with the default muxer (\-of avi).
7275 If you are using a different muxer, then you must use \-delay instead.
7278 .B \-audio\-density <1\-50>
7279 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7281 .I NOTE:
7282 CBR only, VBR ignores this as it puts each packet in a new chunk.
7285 .B \-audio\-preload <0.0\-2.0>
7286 Sets up the audio buffering time interval (default: 0.5s).
7289 .B \-fafmttag <format>
7290 Can be used to override the audio format tag of the output file.
7291 .sp 1
7292 .I EXAMPLE:
7293 .PD 0
7294 .RSs
7295 .IPs "\-fafmttag 0x55"
7296 Will have the output file contain 0x55 (mp3) as audio format tag.
7298 .PD 1
7301 .B \-ffourcc <fourcc>
7302 Can be used to override the video fourcc of the output file.
7303 .sp 1
7304 .I EXAMPLE:
7305 .PD 0
7306 .RSs
7307 .IPs "\-ffourcc div3"
7308 Will have the output file contain 'div3' as video fourcc.
7310 .PD 1
7313 .B \-force\-avi\-aspect <0.2\-3.0>
7314 Override the aspect stored in the AVI OpenDML vprp header.
7315 This can be used to change the aspect ratio with '\-ovc copy'.
7318 .B \-frameno\-file <filename> (DEPRECATED)
7319 Specify the name of the audio file with framenumber mappings created in
7320 the first (audio only) pass of a special three pass encoding mode.
7322 .I NOTE:
7323 Using this mode will most likely give you A-V desync.
7324 Do not use it.
7325 It is kept for backwards compatibility only and will possibly
7326 be removed in a future version.
7329 .B \-hr\-edl\-seek
7330 Use a more precise, but much slower method for skipping areas.
7331 Areas marked for skipping are not seeked over, instead all
7332 frames are decoded, but only the necessary frames are encoded.
7333 This allows starting at non-keyframe boundaries.
7335 .I NOTE:
7336 Not guaranteed to work right with '\-ovc copy'.
7339 .B \-info <option1:option2:...> (AVI only)
7340 Specify the info header of the resulting AVI file.
7341 .sp 1
7342 Available options are:
7343 .RSs
7344 .IPs "help\ "
7345 Show this description.
7346 .IPs name=<value>
7347 title of the work
7348 .IPs artist=<value>
7349 artist or author of the work
7350 .IPs genre=<value>
7351 original work category
7352 .IPs subject=<value>
7353 contents of the work
7354 .IPs copyright=<value>
7355 copyright information
7356 .IPs srcform=<value>
7357 original format of the digitized material
7358 .IPs comment=<value>
7359 general comments about the work
7363 .B \-noautoexpand
7364 Do not automatically insert the expand filter into the MEncoder filter chain.
7365 Useful to control at which point of the filter chain subtitles are rendered
7366 when hardcoding subtitles onto a movie.
7369 .B \-noencodedups
7370 Do not attempt to encode duplicate frames in duplicate; always output
7371 zero-byte frames to indicate duplicates.
7372 Zero-byte frames will be written anyway unless a filter or encoder
7373 capable of doing duplicate encoding is loaded.
7374 Currently the only such filter is harddup.
7377 .B \-noodml (\-of avi only)
7378 Do not write OpenDML index for AVI files >1GB.
7381 .B \-noskip
7382 Do not skip frames.
7385 .B \-o <filename>
7386 Outputs to the given filename.
7388 If you want a default output filename, you can put this option in the
7389 MEncoder config file.
7392 .B \-oac <codec name>
7393 Encode with the given audio codec (no default set).
7395 .I NOTE:
7396 Use \-oac help to get a list of available audio codecs.
7397 .sp 1
7398 .I EXAMPLE:
7399 .PD 0
7400 .RSs
7401 .IPs "\-oac copy"
7402 no encoding, just streamcopy
7403 .IPs "\-oac pcm"
7404 Encode to uncompressed PCM.
7405 .IPs "\-oac mp3lame"
7406 Encode to MP3 (using LAME).
7407 .IPs "\-oac lavc"
7408 Encode with a libavcodec codec.
7410 .PD 1
7413 .B \-of <format> (BETA CODE!)
7414 Encode to the specified container format (default: AVI).
7416 .I NOTE:
7417 Use \-of help to get a list of available container formats.
7418 .sp 1
7419 .I EXAMPLE:
7420 .PD 0
7421 .RSs
7422 .IPs "\-of avi"
7423 Encode to AVI.
7424 .IPs "\-of mpeg"
7425 Encode to MPEG (also see \-mpegopts).
7426 .IPs "\-of lavf"
7427 Encode with libavformat muxers (also see \-lavfopts).
7428 .IPs "\-of rawvideo"
7429 raw video stream (no muxing \- one video stream only)
7430 .IPs "\-of rawaudio"
7431 raw audio stream (no muxing \- one audio stream only)
7433 .PD 1
7436 .B \-ofps <fps>
7437 Specify a frames per second (fps) value for the output file,
7438 which can be different from that of the source material.
7439 Must be set for variable fps (ASF, some MOV) and progressive
7440 (30000/1001 fps telecined MPEG) files.
7443 .B \-ovc <codec name>
7444 Encode with the given video codec (no default set).
7446 .I NOTE:
7447 Use \-ovc help to get a list of available video codecs.
7448 .sp 1
7449 .I EXAMPLE:
7450 .PD 0
7451 .RSs
7452 .IPs "\-ovc copy"
7453 no encoding, just streamcopy
7454 .IPs "\-ovc raw"
7455 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7456 .IPs "\-ovc lavc"
7457 Encode with a libavcodec codec.
7459 .PD 1
7462 .B \-passlogfile <filename>
7463 Dump first pass information to <filename> instead of the default divx2pass.log
7464 in two pass encoding mode.
7467 .B \-skiplimit <value>
7468 Specify the maximum number of frames that may be skipped after
7469 encoding one frame (\-noskiplimit for unlimited).
7472 .B \-vobsubout <basename>
7473 Specify the basename for the output .idx and .sub files.
7474 This turns off subtitle rendering in the encoded movie and diverts it to
7475 VOBsub subtitle files.
7478 .B \-vobsuboutid <langid>
7479 Specify the language two letter code for the subtitles.
7480 This overrides what is read from the DVD or the .ifo file.
7483 .B \-vobsuboutindex <index>
7484 Specify the index of the subtitles in the output files (default: 0).
7488 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7489 You can specify codec specific encoding parameters using the following
7490 syntax:
7493 .B \-<codec>opts <option1[=value1]:option2[=value2]:...>
7496 Where <codec> may be: lavc, xvidenc, mp3lame, toolame, twolame,
7497 nuv, xvfw, faac, x264enc, mpeg, lavf.
7500 .SS mp3lame (\-lameopts)
7503 .B "help\ \ \ "
7504 get help
7507 .B vbr=<0\-4>
7508 variable bitrate method
7509 .PD 0
7510 .RSs
7511 .IPs 0
7513 .IPs 1
7515 .IPs 2
7516 rh (default)
7517 .IPs 3
7519 .IPs 4
7520 mtrh
7522 .PD 1
7525 .B "abr\ \ \ \ "
7526 average bitrate
7529 .B "cbr\ \ \ \ "
7530 constant bitrate
7531 Also forces CBR mode encoding on subsequent ABR presets modes.
7534 .B br=<0\-1024>
7535 bitrate in kbps (CBR and ABR only)
7538 .B q=<0\-9>
7539 quality (0 \- highest, 9 \- lowest) (VBR only)
7542 .B aq=<0\-9>
7543 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
7546 .B ratio=<1\-100>
7547 compression ratio
7550 .B vol=<0\-10>
7551 audio input gain
7554 .B mode=<0\-3>
7555 (default: auto)
7556 .PD 0
7557 .RSs
7558 .IPs 0
7559 stereo
7560 .IPs 1
7561 joint-stereo
7562 .IPs 2
7563 dualchannel
7564 .IPs 3
7565 mono
7567 .PD 1
7570 .B padding=<0\-2>
7571 .PD 0
7572 .RSs
7573 .IPs 0
7574 none
7575 .IPs 1
7577 .IPs 2
7578 adjust
7580 .PD 1
7583 .B "fast\ \ \ "
7584 Switch on faster encoding on subsequent VBR presets modes.
7585 This results in slightly lower quality and higher bitrates.
7588 .B highpassfreq=<freq>
7589 Set a highpass filtering frequency in Hz.
7590 Frequencies below the specified one will be cut off.
7591 A value of \-1 will disable filtering, a value of 0
7592 will let LAME choose values automatically.
7595 .B lowpassfreq=<freq>
7596 Set a lowpass filtering frequency in Hz.
7597 Frequencies above the specified one will be cut off.
7598 A value of \-1 will disable filtering, a value of 0
7599 will let LAME choose values automatically.
7602 .B preset=<value>
7603 preset values
7604 .RSs
7605 .IPs "help\ "
7606 Print additional options and information about presets settings.
7607 .IPs medium
7608 VBR encoding, good quality, 150\-180 kbps bitrate range
7609 .IPs standard
7610 VBR encoding, high quality, 170\-210 kbps bitrate range
7611 .IPs extreme
7612 VBR encoding, very high quality, 200\-240 kbps bitrate range
7613 .IPs insane
7614 CBR encoding, highest preset quality, 320 kbps bitrate
7615 .IPs <8\-320>
7616 ABR encoding at average given kbps bitrate
7618 .sp 1
7620 .I EXAMPLES:
7622 .PD 0
7623 .RSs
7624 .IPs fast:preset=standard
7625 suitable for most people and most music types and already quite high quality
7626 .IPs cbr:preset=192
7627 Encode with ABR presets at a 192 kbps forced constant bitrate.
7628 .IPs preset=172
7629 Encode with ABR presets at a 172 kbps average bitrate.
7630 .IPs preset=extreme
7631 for people with extremely good hearing and similar equipment
7633 .PD 1
7636 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
7639 .B br=<32\-384>
7640 In CBR mode this parameter indicates the bitrate in kbps,
7641 when in VBR mode it is the minimum bitrate allowed per frame.
7642 VBR mode will not work with a value below 112.
7645 .B vbr=<\-50\-50> (VBR only)
7646 variability range; if negative the encoder shifts the average bitrate
7647 towards the lower limit, if positive towards the higher.
7648 When set to 0 CBR is used (default).
7651 .B maxvbr=<32\-384> (VBR only)
7652 maximum bitrate allowed per frame, in kbps
7655 .B mode=<stereo  |  jstereo  |  mono  |  dual>
7656 (default: mono for 1-channel audio, stereo otherwise)
7659 .B psy=<\-1\-4>
7660 psychoacoustic model (default: 2)
7663 .B errprot=<0 | 1>
7664 Include error protection.
7667 .B debug=<0\-10>
7668 debug level
7670 .PD 1
7673 .SS faac (\-faacopts)
7676 .B br=<bitrate>
7677 average bitrate in kbps (mutually exclusive with quality)
7680 .B quality=<1\-1000>
7681 quality mode, the higher the better (mutually exclusive with br)
7684 .B object=<1\-4>
7685 object type complexity
7686 .PD 0
7687 .RSs
7688 .IPs 1
7689 MAIN (default)
7690 .IPs 2
7692 .IPs 3
7694 .IPs 4
7695 LTP (extremely slow)
7697 .PD 1
7700 .B mpeg=<2|4>
7701 MPEG version (default: 4)
7704 .B "tns\ \ \ \ "
7705 Enables temporal noise shaping.
7708 .B cutoff=<0\-sampling_rate/2>
7709 cutoff frequency (default: sampling_rate/2)
7712 .B "raw\ \ \ \ "
7713 Stores the bitstream as raw payload with extradata in the container header
7714 (default: 0, corresponds to ADTS).
7715 Do not set this flag if not explicitly required or you will not be able to
7716 remux the audio stream later on.
7718 .PD 1
7721 .SS lavc (\-lavcopts)
7723 Many libavcodec (lavc for short) options are tersely documented.
7724 Read the source for full details.
7726 .I EXAMPLE:
7727 .PD 0
7728 .RSs
7729 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
7731 .PD 1
7734 .B o=<key>=<value>[,<key>=<value>[,...]]
7735 Pass AVOptions to libavcodec encoder.
7736 Note, a patch to make the o= unneeded and pass all unknown options through
7737 the AVOption system is welcome.
7738 A full list of AVOptions can be found in the FFmpeg manual.
7739 Note that some AVOptions may conflict with MEncoder options.
7740 .sp 1
7742 .I EXAMPLE:
7744 .RSs
7745 .PD 0
7746 .IPs o=bt=100k
7747 .PD 1
7751 .B acodec=<value>
7752 audio codec (default: mp2)
7753 .PD 0
7754 .RSs
7755 .IPs "ac3\ \ "
7756 Dolby Digital (AC-3)
7757 .IPs adpcm_*
7758 Adaptive PCM formats \- see the HTML documentation for details.
7759 .IPs "flac\ "
7760 Free Lossless Audio Codec (FLAC)
7761 .IPs "g726\ "
7762 G.726 ADPCM
7763 .IPs libamr_nb
7764 3GPP Adaptive Multi-Rate (AMR) narrow-band
7765 .IPs libamr_wb
7766 3GPP Adaptive Multi-Rate (AMR) wide-band
7767 .IPs libfaac
7768 Advanced Audio Coding (AAC) \- using FAAC
7769 .IPs libmp3lame
7770 MPEG-1 audio layer 3 (MP3) \- using LAME
7771 .IPs "mp2\ \ "
7772 MPEG-1 audio layer 2 (MP2)
7773 .IPs pcm_*
7774 PCM formats \- see the HTML documentation for details.
7775 .IPs roq_dpcm
7776 Id Software RoQ DPCM
7777 .IPs sonic
7778 experimental simple lossy codec
7779 .IPs sonicls
7780 experimental simple lossless codec
7781 .IPs vorbis
7782 Vorbis
7783 .IPs wmav1
7784 Windows Media Audio v1
7785 .IPs wmav2
7786 Windows Media Audio v2
7788 .PD 1
7791 .B abitrate=<value>
7792 audio bitrate in kbps (default: 224)
7795 .B atag=<value>
7796 Use the specified Windows audio format tag (e.g.\& atag=0x55).
7799 .B bit_exact
7800 Use only bit exact algorithms (except (I)DCT).
7801 Additionally bit_exact disables several optimizations and thus
7802 should only be used for regression tests, which need binary
7803 identical files even if the encoder version changes.
7804 This also suppresses the user_data header in MPEG-4 streams.
7805 Do not use this option unless you know exactly what you are doing.
7808 .B threads=<1\-8>
7809 Maximum number of threads to use (default: 1).
7810 May have a slight negative effect on motion estimation.
7814 .B vcodec=<value>
7815 Employ the specified codec (default: mpeg4).
7816 .PD 0
7817 .RSs
7818 .IPs "asv1\ "
7819 ASUS Video v1
7820 .IPs "asv2\ "
7821 ASUS Video v2
7822 .IPs dvvideo
7823 Sony Digital Video
7824 .IPs "ffv1\ "
7825 FFmpeg's lossless video codec
7826 .IPs ffvhuff
7827 nonstandard 20% smaller HuffYUV using YV12
7828 .IPs "flv\ \ "
7829 Sorenson H.263 used in Flash Video
7830 .IPs "h261\ "
7831 H.261
7832 .IPs "h263\ "
7833 H.263
7834 .IPs h263p
7835 H.263+
7836 .IPs huffyuv
7837 HuffYUV
7838 .IPs libtheora
7839 Theora
7840 .IPs libx264
7841 x264 H.264/AVC MPEG-4 Part 10
7842 .IPs libxvid
7843 Xvid MPEG-4 Part 2 (ASP)
7844 .IPs ljpeg
7845 Lossless JPEG
7846 .IPs mjpeg
7847 Motion JPEG
7848 .IPs mpeg1video
7849 MPEG-1 video
7850 .IPs mpeg2video
7851 MPEG-2 video
7852 .IPs mpeg4
7853 MPEG-4 (DivX 4/5)
7854 .IPs msmpeg4
7855 DivX 3
7856 .IPs msmpeg4v2
7857 MS MPEG4v2
7858 .IPs roqvideo
7859 ID Software RoQ Video
7860 .IPs "rv10\ "
7861 an old RealVideo codec
7862 .IPs "snow (also see: vstrict)"
7863 FFmpeg's experimental wavelet-based codec
7864 .IPs "svq1\ "
7865 Apple Sorenson Video 1
7866 .IPs "wmv1\ "
7867 Windows Media Video, version 1 (AKA WMV7)
7868 .IPs "wmv2\ "
7869 Windows Media Video, version 2 (AKA WMV8)
7871 .PD 1
7874 .B vqmin=<1\-31>
7875 minimum quantizer
7876 .RSs
7877 .IPs 1
7878 Not recommended (much larger file, little quality difference and weird side
7879 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
7880 resulting in lower quality and some decoders will not be able to decode it).
7881 .IPs 2
7882 Recommended for normal mpeg4/\:mpeg1video encoding (default).
7883 .IPs 3
7884 Recommended for h263(p)/\:msmpeg4.
7885 The reason for preferring 3 over 2 is that 2 could lead to overflows.
7886 (This will be fixed for h263(p) by changing the quantizer per MB in
7887 the future, msmpeg4 cannot be fixed as it does not support that.)
7891 .B lmin=<0.01\-255.0>
7892 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
7893 Lavc will rarely use quantizers below the value of lmin.
7894 Lowering lmin will make lavc more likely to choose lower quantizers for
7895 some frames, but not lower than the value of vqmin.
7896 Likewise, raising lmin will make lavc less likely to choose low
7897 quantizers, even if vqmin would have allowed them.
7898 You probably want to set lmin approximately equal to vqmin.
7899 When adaptive quantization is in use, changing lmin/lmax may have less
7900 of an effect; see mblmin/mblmax.
7904 .B lmax=<0.01\-255.0>
7905 maximum Lagrange multiplier for ratecontrol (default: 31.0)
7909 .B mblmin=<0.01\-255.0>
7910 Minimum macroblock-level Lagrange multiplier for ratecontrol
7911 (default:2.0).
7912 This parameter affects adaptive quantization options like qprd,
7913 lumi_mask, etc..
7917 .B mblmax=<0.01\-255.0>
7918 Maximum macroblock-level Lagrange multiplier for ratecontrol
7919 (default: 31.0).
7923 .B vqscale=<0\-31>
7924 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
7925 A lower value means better quality but larger files (default: \-1).
7926 In case of snow codec, value 0 means lossless encoding.
7927 Since the other codecs do not support this, vqscale=0 will have an undefined
7928 effect.
7929 1 is not recommended (see vqmin for details).
7932 .B vqmax=<1\-31>
7933 Maximum quantizer, 10\-31 should be a sane range (default: 31).
7936 .B mbqmin=<1\-31>
7937 obsolete, use vqmin
7940 .B mbqmax=<1\-31>
7941 obsolete, use vqmax
7944 .B vqdiff=<1\-31>
7945 maximum quantizer difference between consecutive I- or P-frames
7946 (default: 3)
7949 .B vmax_b_frames=<0\-4>
7950 maximum number of B-frames between non-B-frames:
7951 .PD 0
7952 .RSs
7953 .IPs 0
7954 no B-frames (default)
7955 .IPs 0\-2
7956 sane range for MPEG-4
7958 .PD 1
7961 .B vme=<0\-5>
7962 motion estimation method.
7963 Available methods are:
7964 .PD 0
7965 .RSs
7966 .IPs 0
7967 none (very low quality)
7968 .IPs 1
7969 full (slow, currently unmaintained and disabled)
7970 .IPs 2
7971 log (low quality, currently unmaintained and disabled)
7972 .IPs 3
7973 phods (low quality, currently unmaintained and disabled)
7974 .IPs 4
7975 EPZS: size=1 diamond, size can be adjusted with the *dia options
7976 (default)
7977 .IPs 5
7978 X1 (experimental, currently aliased to EPZS)
7979 .IPs 8
7980 iter (iterative overlapped block, only used in snow)
7982 .PD 1
7983 .sp 1
7986 .I NOTE:
7987 0\-3 currently ignores the amount of bits spent,
7988 so quality may be low.
7992 .B me_range=<0\-9999>
7993 motion estimation search range (default: 0 (unlimited))
7996 .B mbd=<0\-2> (also see *cmp, qpel)
7997 Macroblock decision algorithm (high quality mode), encode each macro
7998 block in all modes and choose the best.
7999 This is slow but results in better quality and file size.
8000 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
8001 macroblocks (the mbcmp value is still used in other places though, in particular
8002 the motion search algorithms).
8003 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
8004 however, a slower but better half-pel motion search will be used,
8005 regardless of what mbd is set to.
8006 If qpel is set, quarter-pel motion search will be used regardless.
8007 .PD 0
8008 .RSs
8009 .IPs 0
8010 Use comparison function given by mbcmp (default).
8011 .IPs 1
8012 Select the MB mode which needs the fewest bits (=vhq).
8013 .IPs 2
8014 Select the MB mode which has the best rate distortion.
8016 .PD 1
8019 .B "vhq\ \ \ \ "
8020 Same as mbd=1, kept for compatibility reasons.
8023 .B "v4mv\ \ \ "
8024 Allow 4 motion vectors per macroblock (slightly better quality).
8025 Works better if used with mbd>0.
8028 .B "obmc\ \ \ "
8029 overlapped block motion compensation (H.263+)
8032 .B "loop\ \ \ "
8033 loop filter (H.263+)
8034 note, this is broken
8037 .B inter_threshold <\-1000\-1000>
8038 Does absolutely nothing at the moment.
8041 .B keyint=<0\-300>
8042 maximum interval between keyframes in frames (default: 250 or one
8043 keyframe every ten seconds in a 25fps movie.
8044 This is the recommended default for MPEG-4).
8045 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
8046 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
8047 keyframes need more space than other frames, so larger numbers here mean
8048 slightly smaller files but less precise seeking.
8049 0 is equivalent to 1, which makes every frame a keyframe.
8050 Values >300 are not recommended as the quality might be bad depending upon
8051 decoder, encoder and luck.
8052 It is common for MPEG-1/2 to use values <=30.
8055 .B sc_threshold=<\-1000000000\-1000000000>
8056 Threshold for scene change detection.
8057 A keyframe is inserted by libavcodec when it detects a scene change.
8058 You can specify the sensitivity of the detection with this option.
8059 \-1000000000 means there is a scene change detected at every frame,
8060 1000000000 means no scene changes are detected (default: 0).
8063 .B sc_factor=<any positive integer>
8064 Causes frames with higher quantizers to be more likely to trigger a
8065 scene change detection and make libavcodec use an I-frame (default: 1).
8066 1\-16 is a sane range.
8067 Values between 2 and 6 may yield increasing PSNR (up to approximately
8068 0.04 dB) and better placement of I-frames in high-motion scenes.
8069 Higher values than 6 may give very slightly better PSNR (approximately
8070 0.01 dB more than sc_factor=6), but noticably worse visual quality.
8073 .B vb_strategy=<0\-2> (pass one only)
8074 strategy to choose between I/P/B-frames:
8075 .PD 0
8076 .RSs
8077 .IPs 0
8078 Always use the maximum number of B-frames (default).
8079 .IPs 1
8080 Avoid B-frames in high motion scenes.
8081 See the b_sensitivity option to tune this strategy.
8082 .IPs 2
8083 Places B-frames more or less optimally to yield maximum quality (slower).
8084 You may want to reduce the speed impact of this option by tuning the
8085 option brd_scale.
8087 .PD 1
8090 .B b_sensitivity=<any integer greater than 0>
8091 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
8092 B-frames (default: 40).
8093 Lower sensitivities will result in more B-frames.
8094 Using more B-frames usually improves PSNR, but too many B-frames can
8095 hurt quality in high-motion scenes.
8096 Unless there is an extremely high amount of motion, b_sensitivity can
8097 safely be lowered below the default; 10 is a reasonable value in most
8098 cases.
8101 .B brd_scale=<0\-10>
8102 Downscales frames for dynamic B-frame decision (default: 0).
8103 Each time brd_scale is increased by one, the frame dimensions are
8104 divided by two, which improves speed by a factor of four.
8105 Both dimensions of the fully downscaled frame must be even numbers, so
8106 brd_scale=1 requires the original dimensions to be multiples of four,
8107 brd_scale=2 requires multiples of eight, etc.
8108 In other words, the dimensions of the original frame must both be
8109 divisible by 2^(brd_scale+1) with no remainder.
8112 .B bidir_refine=<0\-4>
8113 Refine the two motion vectors used in bidirectional macroblocks,
8114 rather than re-using vectors from the forward and backward searches.
8115 This option has no effect without B-frames.
8116 .PD 0
8117 .RSs
8118 .IPs 0
8119 Disabled (default).
8120 .IPs 1\-4
8121 Use a wider search (larger values are slower).
8123 .PD 1
8126 .B vpass=<1\-3>
8127 Activates internal two (or more) pass mode, only specify if you wish to
8128 use two (or more) pass encoding.
8129 .PD 0
8130 .RSs
8131 .IPs 1
8132 first pass (also see turbo)
8133 .IPs 2
8134 second pass
8135 .IPs 3
8136 Nth pass (second and subsequent passes of N-pass encoding)
8139 Here is how it works, and how to use it:
8141 The first pass (vpass=1) writes the statistics file.
8142 You might want to deactivate some CPU-hungry options, like "turbo"
8143 mode does.
8145 In two pass mode, the second pass (vpass=2) reads the statistics file and
8146 bases ratecontrol decisions on it.
8148 In N-pass mode, the second pass (vpass=3, that is not a typo)
8149 does both: It first reads the statistics, then overwrites them.
8150 You might want to backup divx2pass.log before doing this if there is
8151 any possibility that you will have to cancel MEncoder.
8152 You can use all encoding options, except very CPU-hungry options like "qns".
8154 You can run this same pass over and over to refine the encode.
8155 Each subsequent pass will use the statistics from the previous pass to improve.
8156 The final pass can include any CPU-hungry encoding options.
8158 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
8160 If you want a 3 or more pass encode, use vpass=1 for the first pass
8161 and then vpass=3 and then vpass=3 again and again until you are
8162 satisfied with the encode.
8164 .PD 1
8165 .sp 1
8167 huffyuv:
8169 .PD 0
8170 .RSs
8171 .IPs "pass 1"
8172 Saves statistics.
8173 .IPs "pass 2"
8174 Encodes with an optimal Huffman table based upon statistics
8175 from the first pass.
8177 .PD 1
8180 .B turbo (two pass only)
8181 Dramatically speeds up pass one using faster algorithms and disabling
8182 CPU-intensive options.
8183 This will probably reduce global PSNR a little bit (around 0.01dB) and
8184 change individual frame type and PSNR a little bit more (up to 0.03dB).
8187 .B aspect=<x/y>
8188 Store movie aspect internally, just like with MPEG files.
8189 Much nicer than rescaling, because quality is not decreased.
8190 Only MPlayer will play these files correctly, other players will display
8191 them with wrong aspect.
8192 The aspect parameter can be given as a ratio or a floating point number.
8193 .sp 1
8195 .I EXAMPLE:
8197 .RSs
8198 .PD 0
8199 .IPs "aspect=16/9 or aspect=1.78"
8200 .PD 1
8204 .B autoaspect
8205 Same as the aspect option, but automatically computes aspect, taking
8206 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
8207 filter chain.
8208 Does not incur a performance penalty, so you can safely leave it
8209 always on.
8212 .B vbitrate=<value>
8213 Specify bitrate (default: 800).
8215 .I WARNING:
8216 1kbit = 1000 bits
8217 .PD 0
8218 .RSs
8219 .IPs 4\-16000
8220 (in kbit)
8221 .IPs 16001\-24000000
8222 (in bit)
8224 .PD 1
8227 .B vratetol=<value>
8228 approximated file size tolerance in kbit.
8229 1000\-100000 is a sane range.
8230 (warning: 1kbit = 1000 bits)
8231 (default: 8000)
8233 .I NOTE:
8234 vratetol should not be too large during the second pass or there might
8235 be problems if vrc_(min|max)rate is used.
8238 .B vrc_maxrate=<value>
8239 maximum bitrate in kbit/\:sec
8240 (default: 0, unlimited)
8243 .B vrc_minrate=<value>
8244 minimum bitrate in kbit/\:sec
8245 (default: 0, unlimited)
8248 .B vrc_buf_size=<value>
8249 buffer size in kbit
8250 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
8251 917 for SVCD and 1835 for DVD.
8254 .B vrc_buf_aggressivity
8255 currently useless
8258 .B vrc_strategy
8259 Ratecontrol method.
8260 Note that some of the ratecontrol-affecting options will have no effect
8261 if vrc_strategy is not set to 0.
8262 .PD 0
8263 .RSs
8264 .IPs 0
8265 Use internal lavc ratecontrol (default).
8266 .IPs 1
8267 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
8268 with support for Xvid 1.1 or higher).
8270 .PD 1
8273 .B vb_qfactor=<\-31.0\-31.0>
8274 quantizer factor between B- and non-B-frames (default: 1.25)
8277 .B vi_qfactor=<\-31.0\-31.0>
8278 quantizer factor between I- and non-I-frames (default: 0.8)
8281 .B vb_qoffset=<\-31.0\-31.0>
8282 quantizer offset between B- and non-B-frames (default: 1.25)
8285 .B vi_qoffset=<\-31.0\-31.0>
8286 (default: 0.0)
8288 if v{b|i}_qfactor > 0
8290 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8292 else
8294 do normal ratecontrol (do not lock to next P-frame quantizer) and
8295 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8297 .I HINT:
8298 To do constant quantizer encoding with different quantizers for
8299 I/P- and B-frames you can use:
8300 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8303 .B vqblur=<0.0\-1.0> (pass one)
8304 Quantizer blur (default: 0.5), larger values will average the
8305 quantizer more over time (slower change).
8306 .PD 0
8307 .RSs
8308 .IPs 0.0
8309 Quantizer blur disabled.
8310 .IPs 1.0
8311 Average the quantizer over all previous frames.
8313 .PD 1
8316 .B vqblur=<0.0\-99.0> (pass two)
8317 Quantizer gaussian blur (default: 0.5), larger values will average
8318 the quantizer more over time (slower change).
8321 .B vqcomp=<0.0\-1.0>
8322 Quantizer compression, vrc_eq depends upon this (default: 0.5).
8323 .I NOTE:
8324 Perceptual quality will be optimal somewhere in between the range's extremes.
8327 .B vrc_eq=<equation>
8328 main ratecontrol equation
8330 .RSs
8331 .IPs 1+(tex/\:avgTex-1)*qComp
8332 approximately the equation of the old ratecontrol code
8333 .IPs tex^qComp
8334 with qcomp 0.5 or something like that (default)
8338 infix operators:
8340 .RSs
8341 .IPs +,\-,*,/,^
8345 variables:
8347 .RSs
8348 .IPs "tex\ \ "
8349 texture complexity
8350 .IPs iTex,pTex
8351 intra, non-intra texture complexity
8352 .IPs avgTex
8353 average texture complexity
8354 .IPs avgIITex
8355 average intra texture complexity in I-frames
8356 .IPs avgPITex
8357 average intra texture complexity in P-frames
8358 .IPs avgPPTex
8359 average non-intra texture complexity in P-frames
8360 .IPs avgBPTex
8361 average non-intra texture complexity in B-frames
8362 .IPs "mv\ \ \ "
8363 bits used for motion vectors
8364 .IPs fCode
8365 maximum length of motion vector in log2 scale
8366 .IPs iCount
8367 number of intra macroblocks / number of macroblocks
8368 .IPs "var\ \ "
8369 spatial complexity
8370 .IPs mcVar
8371 temporal complexity
8372 .IPs qComp
8373 qcomp from the command line
8374 .IPs "isI, isP, isB"
8375 Is 1 if picture type is I/P/B else 0.
8376 .IPs "Pi,E\ "
8377 See your favorite math book.
8381 functions:
8383 .RSs
8384 .IPs max(a,b),min(a,b)
8385 maximum / minimum
8386 .IPs gt(a,b)
8387 is 1 if a>b, 0 otherwise
8388 .IPs lt(a,b)
8389 is 1 if a<b, 0 otherwise
8390 .IPs eq(a,b)
8391 is 1 if a==b, 0 otherwise
8392 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8396 .B vrc_override=<options>
8397 User specified quality for specific parts (ending, credits, ...).
8398 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8399 <end-frame>, <quality>[/...]]:
8400 .PD 0
8401 .RSs
8402 .IPs "quality (2\-31)"
8403 quantizer
8404 .IPs "quality (\-500\-0)"
8405 quality correction in %
8407 .PD 1
8410 .B vrc_init_cplx=<0\-1000>
8411 initial complexity (pass 1)
8414 .B vrc_init_occupancy=<0.0\-1.0>
8415 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8418 .B vqsquish=<0|1>
8419 Specify how to keep the quantizer between qmin and qmax.
8420 .PD 0
8421 .RSs
8422 .IPs 0
8423 Use clipping.
8424 .IPs 1
8425 Use a nice differentiable function (default).
8427 .PD 1
8430 .B vlelim=<\-1000\-1000>
8431 Sets single coefficient elimination threshold for luminance.
8432 Negative values will also consider the DC coefficient (should be at least \-4
8433 or lower for encoding at quant=1):
8434 .PD 0
8435 .RSs
8436 .IPs 0
8437 disabled (default)
8438 .IPs \-4
8439 JVT recommendation
8441 .PD 1
8444 .B vcelim=<\-1000\-1000>
8445 Sets single coefficient elimination threshold for chrominance.
8446 Negative values will also consider the DC coefficient (should be at least \-4
8447 or lower for encoding at quant=1):
8448 .PD 0
8449 .RSs
8450 .IPs 0
8451 disabled (default)
8452 .IPs 7
8453 JVT recommendation
8455 .PD 1
8458 .B vstrict=<\-2|\-1|0|1>
8459 strict standard compliance
8460 .PD 0
8461 .RSs
8462 .IPs 0
8463 disabled
8464 .IPs 1
8465 Only recommended if you want to feed the output into the
8466 MPEG-4 reference decoder.
8467 .IPs \-1
8468 Allow libavcodec specific extensions (default).
8469 .IPs \-2
8470 Enables experimental codecs and features which may not be playable
8471 with future MPlayer versions (snow).
8473 .PD 1
8476 .B "vdpart\ "
8477 Data partitioning.
8478 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8479 unreliable channels (e.g.\& streaming over the internet).
8480 Each video packet will be encoded in 3 separate partitions:
8481 .PD 0
8482 .RSs
8483 .IPs "1. MVs"
8484 movement
8485 .IPs "2. DC coefficients"
8486 low res picture
8487 .IPs "3. AC coefficients"
8488 details
8490 .PD 1
8492 MV & DC are most important, losing them looks far worse than losing
8493 the AC and the 1. & 2. partition.
8494 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8495 will hit the AC partition much more often than the MV & DC partitions.
8496 Thus, the picture will look better with partitioning than without,
8497 as without partitioning an error will trash AC/\:DC/\:MV equally.
8501 .B vpsize=<0\-10000> (also see vdpart)
8502 Video packet size, improves error-resistance.
8503 .PD 0
8504 .RSs
8505 .IPs "0\ \ \ \ "
8506 disabled (default)
8507 .IPs 100\-1000
8508 good choice
8510 .PD 1
8513 .B "ss\ \ \ \ \ "
8514 slice structured mode for H.263+
8517 .B "gray\ \ \ "
8518 grayscale only encoding (faster)
8521 .B vfdct=<0\-10>
8522 DCT algorithm
8523 .PD 0
8524 .RSs
8525 .IPs 0
8526 Automatically select a good one (default).
8527 .IPs 1
8528 fast integer
8529 .IPs 2
8530 accurate integer
8531 .IPs 3
8533 .IPs 4
8534 mlib
8535 .IPs 5
8536 AltiVec
8537 .IPs 6
8538 floating point AAN
8540 .PD 1
8543 .B idct=<0\-99>
8544 IDCT algorithm
8546 .I NOTE:
8547 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
8548 .PD 0
8549 .RSs
8550 .IPs 0
8551 Automatically select a good one (default).
8552 .IPs 1
8553 JPEG reference integer
8554 .IPs 2
8555 simple
8556 .IPs 3
8557 simplemmx
8558 .IPs 4
8559 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
8560 .IPs 5
8562 .IPs 6
8563 mlib
8564 .IPs 7
8566 .IPs 8
8567 AltiVec
8568 .IPs 9
8570 .IPs 10
8571 simplearm
8572 .IPs 11
8573 H.264
8574 .IPs 12
8576 .IPs 13
8578 .IPs 14
8579 xvidmmx
8580 .IPs 15
8581 CAVS
8582 .IPs 16
8583 simplearmv5te
8584 .IPs 17
8585 simplearmv6
8587 .PD 1
8590 .B lumi_mask=<0.0\-1.0>
8591 Luminance masking is a 'psychosensory' setting that is supposed to
8592 make use of the fact that the human eye tends to notice fewer details
8593 in very bright parts of the picture.
8594 Luminance masking compresses bright areas stronger than medium ones,
8595 so it will save bits that can be spent again on other frames, raising
8596 overall subjective quality, while possibly reducing PSNR.
8598 .I WARNING:
8599 Be careful, overly large values can cause disastrous things.
8601 .I WARNING:
8602 Large values might look good on some monitors but may look horrible
8603 on other monitors.
8604 .PD 0
8605 .RSs
8606 .IPs "0.0\ \ "
8607 disabled (default)
8608 .IPs 0.0\-0.3
8609 sane range
8611 .PD 1
8614 .B dark_mask=<0.0\-1.0>
8615 Darkness masking is a 'psychosensory' setting that is supposed to
8616 make use of the fact that the human eye tends to notice fewer details
8617 in very dark parts of the picture.
8618 Darkness masking compresses dark areas stronger than medium ones,
8619 so it will save bits that can be spent again on other frames, raising
8620 overall subjective quality, while possibly reducing PSNR.
8622 .I WARNING:
8623 Be careful, overly large values can cause disastrous things.
8625 .I WARNING:
8626 Large values might look good on some monitors but may look horrible
8627 on other monitors / TV / TFT.
8628 .PD 0
8629 .RSs
8630 .IPs "0.0\ \ "
8631 disabled (default)
8632 .IPs 0.0\-0.3
8633 sane range
8635 .PD 1
8638 .B tcplx_mask=<0.0\-1.0>
8639 Temporal complexity masking (default: 0.0 (disabled)).
8640 Imagine a scene with a bird flying across the whole scene; tcplx_mask
8641 will raise the quantizers of the bird's macroblocks (thus decreasing their
8642 quality), as the human eye usually does not have time to see all the bird's
8643 details.
8644 Be warned that if the masked object stops (e.g.\& the bird lands) it is
8645 likely to look horrible for a short period of time, until the encoder
8646 figures out that the object is not moving and needs refined blocks.
8647 The saved bits will be spent on other parts of the video, which may increase
8648 subjective quality, provided that tcplx_mask is carefully chosen.
8651 .B scplx_mask=<0.0\-1.0>
8652 Spatial complexity masking.
8653 Larger values help against blockiness, if no deblocking filter is used for
8654 decoding, which is maybe not a good idea.
8656 Imagine a scene with grass (which usually has great spatial complexity),
8657 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
8658 macroblocks, thus decreasing its quality, in order to spend more bits on
8659 the sky and the house.
8661 .I HINT:
8662 Crop any black borders completely as they will reduce the quality
8663 of the macroblocks (also applies without scplx_mask).
8664 .PD 0
8665 .RSs
8666 .IPs "0.0\ \ "
8667 disabled (default)
8668 .IPs 0.0\-0.5
8669 sane range
8671 .PD 1
8672 .sp 1
8674 .I NOTE:
8675 This setting does not have the same effect as using a custom matrix that
8676 would compress high frequencies harder, as scplx_mask will reduce the
8677 quality of P blocks even if only DC is changing.
8678 The result of scplx_mask will probably not look as good.
8682 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
8683 Reduces the quality of inter blocks.
8684 This is equivalent to increasing the quality of intra blocks, because the
8685 same average bitrate will be distributed by the rate controller to the
8686 whole video sequence (default: 0.0 (disabled)).
8687 p_mask=1.0 doubles the bits allocated to each intra block.
8690 .B border_mask=<0.0\-1.0>
8691 border-processing for MPEG-style encoders.
8692 Border processing increases the quantizer for macroblocks which are less
8693 than 1/5th of the frame width/height away from the frame border,
8694 since they are often visually less important.
8697 .B "naq\ \ \ \ "
8698 Normalize adaptive quantization (experimental).
8699 When using adaptive quantization (*_mask), the average per-MB quantizer may no
8700 longer match the requested frame-level quantizer.
8701 Naq will attempt to adjust the per-MB quantizers to maintain the proper
8702 average.
8705 .B "ildct\ \ "
8706 Use interlaced DCT.
8709 .B "ilme\ \ \ "
8710 Use interlaced motion estimation (mutually exclusive with qpel).
8713 .B "alt\ \ \ \ "
8714 Use alternative scantable.
8717 .B "top=<\-1\-1>\ \ \ "
8718 .PD 0
8719 .RSs
8720 .IPs \-1
8721 automatic
8722 .IPs 0
8723 bottom field first
8724 .IPs 1
8725 top field first
8727 .PD 1
8730 .B format=<value>
8731 .PD 0
8732 .RSs
8733 .IPs "YV12\ "
8734 default
8735 .IPs "444P\ "
8736 for ffv1
8737 .IPs "422P\ "
8738 for HuffYUV, lossless JPEG, dv and ffv1
8739 .IPs "411P\ "
8740 for lossless JPEG, dv and ffv1
8741 .IPs "YVU9\ "
8742 for lossless JPEG, ffv1 and svq1
8743 .IPs "BGR32"
8744 for lossless JPEG and ffv1
8746 .PD 1
8749 .B "pred\ \ \ "
8750 (for HuffYUV)
8751 .PD 0
8752 .RSs
8753 .IPs 0
8754 left prediction
8755 .IPs 1
8756 plane/\:gradient prediction
8757 .IPs 2
8758 median prediction
8760 .PD 1
8763 .B "pred\ \ \ "
8764 (for lossless JPEG)
8765 .PD 0
8766 .RSs
8767 .IPs 0
8768 left prediction
8769 .IPs 1
8770 top prediction
8771 .IPs 2
8772 topleft prediction
8773 .IPs 3
8774 plane/\:gradient prediction
8775 .IPs 6
8776 mean prediction
8778 .PD 1
8781 .B "coder\ \ "
8782 (for ffv1)
8783 .PD 0
8784 .RSs
8785 .IPs 0
8786 vlc coding (Golomb-Rice)
8787 .IPs 1
8788 arithmetic coding (CABAC)
8790 .PD 1
8793 .B context
8794 (for ffv1)
8795 .PD 0
8796 .RSs
8797 .IPs 0
8798 small context model
8799 .IPs 1
8800 large context model
8802 .PD 1
8803 .sp 1
8805 (for ffvhuff)
8807 .PD 0
8808 .RSs
8809 .IPs 0
8810 predetermined Huffman tables (builtin or two pass)
8811 .IPs 1
8812 adaptive Huffman tables
8814 .PD 1
8817 .B "qpel\ \ \ "
8818 Use quarter pel motion compensation (mutually exclusive with ilme).
8820 .I HINT:
8821 This seems only useful for high bitrate encodings.
8824 .B mbcmp=<0\-2000>
8825 Sets the comparison function for the macroblock decision, has only
8826 an effect if mbd=0.
8827 This is also used for some motion search functions, in which case
8828 it has an effect regardless of mbd setting.
8829 .PD 0
8830 .RSs
8831 .IPs "0 (SAD)"
8832 sum of absolute differences, fast (default)
8833 .IPs "1 (SSE)"
8834 sum of squared errors
8835 .IPs "2 (SATD)"
8836 sum of absolute Hadamard transformed differences
8837 .IPs "3 (DCT)"
8838 sum of absolute DCT transformed differences
8839 .IPs "4 (PSNR)"
8840 sum of squared quantization errors (avoid, low quality)
8841 .IPs "5 (BIT)"
8842 number of bits needed for the block
8843 .IPs "6 (RD)"
8844 rate distortion optimal, slow
8845 .IPs "7 (ZERO)"
8847 .IPs "8 (VSAD)"
8848 sum of absolute vertical differences
8849 .IPs "9 (VSSE)"
8850 sum of squared vertical differences
8851 .IPs "10 (NSSE)"
8852 noise preserving sum of squared differences
8853 .IPs "11 (W53)"
8854 5/3 wavelet, only used in snow
8855 .IPs "12 (W97)"
8856 9/7 wavelet, only used in snow
8857 .IPs "+256\ "
8858 Also use chroma, currently does not work (correctly) with B-frames.
8860 .PD 1
8863 .B ildctcmp=<0\-2000>
8864 Sets the comparison function for interlaced DCT decision
8865 (see mbcmp for available comparison functions).
8868 .B precmp=<0\-2000>
8869 Sets the comparison function for motion estimation pre pass
8870 (see mbcmp for available comparison functions) (default: 0).
8873 .B cmp=<0\-2000>
8874 Sets the comparison function for full pel motion estimation
8875 (see mbcmp for available comparison functions) (default: 0).
8878 .B subcmp=<0\-2000>
8879 Sets the comparison function for sub pel motion estimation
8880 (see mbcmp for available comparison functions) (default: 0).
8883 .B skipcmp=<0\-2000>
8884 FIXME: Document this.
8887 .B nssew=<0\-1000000>
8888 This setting controls NSSE weight, where larger weights will result in
8889 more noise.
8890 0 NSSE is identical to SSE
8891 You may find this useful if you prefer to keep some noise in your encoded
8892 video rather than filtering it away before encoding (default: 8).
8895 .B predia=<\-99\-6>
8896 diamond type and size for motion estimation pre-pass
8899 .B dia=<\-99\-6>
8900 Diamond type & size for motion estimation.
8901 Motion search is an iterative process.
8902 Using a small diamond does not limit the search to finding only small
8903 motion vectors.
8904 It is just somewhat more likely to stop before finding the very best motion
8905 vector, especially when noise is involved.
8906 Bigger diamonds allow a wider search for the best motion vector, thus are
8907 slower but result in better quality.
8909 Big normal diamonds are better quality than shape-adaptive diamonds.
8911 Shape-adaptive diamonds are a good tradeoff between speed and quality.
8913 .I NOTE:
8914 The sizes of the normal diamonds and shape adaptive ones do not have
8915 the same meaning.
8916 .RSs
8917 .IPs \-3
8918 shape adaptive (fast) diamond with size 3
8919 .IPs \-2
8920 shape adaptive (fast) diamond with size 2
8921 .IPs \-1
8922 uneven multi-hexagon search (slow)
8923 .IPs  1
8924 normal size=1 diamond (default) =EPZS type diamond
8927       0
8928      000
8929       0
8931 .IPs 2
8932 normal size=2 diamond
8935       0
8936      000
8937     00000
8938      000
8939       0
8944 .B "trell\ \ "
8945 Trellis searched quantization.
8946 This will find the optimal encoding for each 8x8 block.
8947 Trellis searched quantization is quite simply an optimal quantization in
8948 the PSNR versus bitrate sense (Assuming that there would be no rounding
8949 errors introduced by the IDCT, which is obviously not the case.).
8950 It simply finds a block for the minimum of error and lambda*bits.
8951 .PD 0
8952 .RSs
8953 .IPs lambda
8954 quantization parameter (QP) dependent constant
8955 .IPs "bits\ "
8956 amount of bits needed to encode the block
8957 .IPs error
8958 sum of squared errors of the quantization
8960 .PD 1
8963 .B "cbp\ \ \ \ "
8964 Rate distorted optimal coded block pattern.
8965 Will select the coded block pattern which minimizes distortion + lambda*rate.
8966 This can only be used together with trellis quantization.
8969 .B "mv0\ \ \ \ "
8970 Try to encode each MB with MV=<0,0> and choose the better one.
8971 This has no effect if mbd=0.
8974 .B mv0_threshold=<any non-negative integer>
8975 When surrounding motion vectors are <0,0> and the motion estimation
8976 score of the current block is less than mv0_threshold, <0,0> is used for
8977 the motion vector and further motion estimation is skipped (default:
8978 256).
8979 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
8980 possibly make the encoded video look slightly better; raising
8981 mv0_threshold past 320 results in diminished PSNR and visual quality.
8982 Higher values speed up encoding very slightly (usually less than 1%,
8983 depending on the other options used).
8985 .I NOTE:
8986 This option does not require mv0 to be enabled.
8989 .B qprd (mbd=2 only)
8990 rate distorted optimal quantization parameter (QP) for the given
8991 lambda of each macroblock
8994 .B last_pred=<0\-99>
8995 amount of motion predictors from the previous frame
8996 .PD 0
8997 .RSs
8998 .IPs 0
8999 (default)
9000 .IPs a
9001 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
9002 previous frame.
9004 .PD 1
9007 .B preme=<0\-2>
9008 motion estimation pre-pass
9009 .PD 0
9010 .RSs
9011 .IPs 0
9012 disabled
9013 .IPs 1
9014 only after I-frames (default)
9015 .IPs 2
9016 always
9018 .PD 1
9021 .B subq=<1\-8>
9022 subpel refinement quality (for qpel) (default: 8 (high quality))
9024 .I NOTE:
9025 This has a significant effect on speed.
9028 .B refs=<1\-8>
9029 number of reference frames to consider for motion compensation
9030 (Snow only) (default: 1)
9033 .B "psnr\ \ \ "
9034 print the PSNR (peak signal to noise ratio) for the whole video after encoding
9035 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
9036 Returned values are in dB (decibel), the higher the better.
9039 .B mpeg_quant
9040 Use MPEG quantizers instead of H.263.
9043 .B "aic\ \ \ \ "
9044 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
9045 This will improve quality very slightly (around 0.02 dB PSNR) and slow
9046 down encoding very slightly (about 1%).
9048 .I NOTE:
9049 vqmin should be 8 or larger for H.263+ AIC.
9052 .B "aiv\ \ \ \ "
9053 alternative inter vlc for H.263+
9056 .B "umv\ \ \ \ "
9057 unlimited MVs (H.263+ only)
9058 Allows encoding of arbitrarily long MVs.
9061 .B ibias=<\-256\-256>
9062 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
9063 H.263 style quantizer default: 0)
9065 .I NOTE:
9066 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9067 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9070 .B pbias=<\-256\-256>
9071 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
9072 H.263 style quantizer default: \-64)
9074 .I NOTE:
9075 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9076 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9078 .I HINT:
9079 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
9082 .B nr=<0\-100000>
9083 Noise reduction, 0 means disabled.
9084 0\-600 is a useful range for typical content, but you may want to turn it
9085 up a bit more for very noisy content (default: 0).
9086 Given its small impact on speed, you might want to prefer to use this over
9087 filtering noise away with video filters like denoise3d or hqdn3d.
9090 .B qns=<0\-3>
9091 Quantizer noise shaping.
9092 Rather than choosing quantization to most closely match the source video
9093 in the PSNR sense, it chooses quantization such that noise (usually ringing)
9094 will be masked by similar-frequency content in the image.
9095 Larger values are slower but may not result in better quality.
9096 This can and should be used together with trellis quantization, in which case
9097 the trellis quantization (optimal for constant weight) will be used as
9098 startpoint for the iterative search.
9099 .PD 0
9100 .RSs
9101 .IPs 0
9102 disabled (default)
9103 .IPs 1
9104 Only lower the absolute value of coefficients.
9105 .IPs 2
9106 Only change coefficients before the last non-zero coefficient + 1.
9107 .IPs 3
9108 Try all.
9110 .PD 1
9113 .B inter_matrix=<comma separated matrix>
9114 Use custom inter matrix.
9115 It needs a comma separated string of 64 integers.
9118 .B intra_matrix=<comma separated matrix>
9119 Use custom intra matrix.
9120 It needs a comma separated string of 64 integers.
9123 .B vqmod_amp
9124 experimental quantizer modulation
9127 .B vqmod_freq
9128 experimental quantizer modulation
9131 .B "dc\ \ \ \ \ "
9132 intra DC precision in bits (default: 8).
9133 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
9136 .B cgop (also see sc_threshold)
9137 Close all GOPs.
9138 Currently it only works if scene change detection is disabled
9139 (sc_threshold=1000000000).
9142 .B "gmc\ \ \ \ "
9143 Enable Global Motion Compensation.
9146 .B (no)lowdelay
9147 Sets the low delay flag for MPEG-1/2 (disables B-frames).
9150 .B vglobal=<0\-3>
9151 Control writing global video headers.
9152 .PD 0
9153 .RSs
9154 .IPs 0
9155 Codec decides where to write global headers (default).
9156 .IPs 1
9157 Write global headers only in extradata (needed for .mp4/MOV/NUT).
9158 .IPs 2
9159 Write global headers only in front of keyframes.
9160 .IPs 3
9161 Combine 1 and 2.
9163 .PD 1
9166 .B aglobal=<0\-3>
9167 Same as vglobal for audio headers.
9170 .B level=<value>
9171 Set CodecContext Level.
9172 Use 31 or 41 to play video on a Playstation 3.
9175 .B skip_exp=<0\-1000000>
9176 FIXME: Document this.
9179 .B skip_factor=<0\-1000000>
9180 FIXME: Document this.
9183 .B skip_threshold=<0\-1000000>
9184 FIXME: Document this.
9187 .SS nuv (\-nuvopts)
9189 Nuppel video is based on RTJPEG and LZO.
9190 By default frames are first encoded with RTJPEG and then compressed with LZO,
9191 but it is possible to disable either or both of the two passes.
9192 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
9193 or the default LZO compressed RTJPEG.
9195 .I NOTE:
9196 The nuvrec documentation contains some advice and examples about the
9197 settings to use for the most common TV encodings.
9200 .B c=<0\-20>
9201 chrominance threshold (default: 1)
9204 .B l=<0\-20>
9205 luminance threshold (default: 1)
9208 .B "lzo\ \ \ \ "
9209 Enable LZO compression (default).
9212 .B "nolzo\ \ "
9213 Disable LZO compression.
9216 .B q=<3\-255>
9217 quality level (default: 255)
9220 .B "raw \ \ \ "
9221 Disable RTJPEG encoding.
9224 .B "rtjpeg\ "
9225 Enable RTJPEG encoding (default).
9228 .SS xvidenc (\-xvidencopts)
9230 There are three modes available: constant bitrate (CBR), fixed quantizer and
9231 two pass.
9234 .B pass=<1|2>
9235 Specify the pass in two pass mode.
9238 .B turbo (two pass only)
9239 Dramatically speeds up pass one using faster algorithms and disabling
9240 CPU-intensive options.
9241 This will probably reduce global PSNR a little bit and change individual
9242 frame type and PSNR a little bit more.
9245 .B bitrate=<value> (CBR or two pass mode)
9246 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
9247 if >16000.
9248 If <value> is negative, Xvid will use its absolute value as the target size
9249 (in kBytes) of the video and compute the associated bitrate automagically
9250 (default: 687 kbits/s).
9253 .B fixed_quant=<1\-31>
9254 Switch to fixed quantizer mode and specify the quantizer to be used.
9257 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
9258 User specified quality for specific parts (ending, credits, ...).
9259 Each zone is <start-frame>,<mode>,<value> where <mode> may be
9260 .PD 0
9261 .RSs
9262 .IPs "q"
9263 Constant quantizer override, where value=<2.0\-31.0>
9264 represents the quantizer value.
9265 .IPs "w"
9266 Ratecontrol weight override, where value=<0.01\-2.00>
9267 represents the quality correction in %.
9269 .PD 1
9270 .sp 1
9272 .I EXAMPLE:
9274 .PD 0
9275 .RSs
9276 .IPs zones=90000,q,20
9277 Encodes all frames starting with frame 90000 at constant quantizer 20.
9278 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9279 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9280 up to the end at constant quantizer 20.
9281 Note that the second zone is needed to delimit the first zone, as
9282 without it everything up until frame 89999 would be encoded at 10%
9283 bitrate.
9285 .PD 1
9288 .B me_quality=<0\-6>
9289 This option controls the motion estimation subsystem.
9290 The higher the value, the more precise the estimation should be (default: 6).
9291 The more precise the motion estimation is, the more bits can be saved.
9292 Precision is gained at the expense of CPU time so decrease this setting if
9293 you need realtime encoding.
9296 .B (no)qpel
9297 MPEG-4 uses a half pixel precision for its motion search by default.
9298 The standard proposes a mode where encoders are allowed to use quarter
9299 pixel precision.
9300 This option usually results in a sharper image.
9301 Unfortunately it has a great impact on bitrate and sometimes the
9302 higher bitrate use will prevent it from giving a better image
9303 quality at a fixed bitrate.
9304 It is better to test with and without this option and see whether it
9305 is worth activating.
9308 .B (no)gmc
9309 Enable Global Motion Compensation, which makes Xvid generate special
9310 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9311 Whether or not the use of this option will save bits is highly
9312 dependent on the source material.
9315 .B (no)trellis
9316 Trellis Quantization is a kind of adaptive quantization method that
9317 saves bits by modifying quantized coefficients to make them more
9318 compressible by the entropy encoder.
9319 Its impact on quality is good, and if VHQ uses too much CPU for you,
9320 this setting can be a good alternative to save a few bits (and gain
9321 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9324 .B (no)cartoon
9325 Activate this if your encoded sequence is an anime/\:cartoon.
9326 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9327 frame types and motion vectors for flat looking cartoons.
9330 .B (no)chroma_me
9331 The usual motion estimation algorithm uses only the luminance information to
9332 find the best motion vector.
9333 However for some video material, using the chroma planes can help find
9334 better vectors.
9335 This setting toggles the use of chroma planes for motion estimation
9336 (default: on).
9339 .B (no)chroma_opt
9340 Enable a chroma optimizer prefilter.
9341 It will do some extra magic on color information to minimize the
9342 stepped-stairs effect on edges.
9343 It will improve quality at the cost of encoding speed.
9344 It reduces PSNR by nature, as the mathematical deviation to the original
9345 picture will get bigger, but the subjective image quality will raise.
9346 Since it works with color information, you might want to turn it off when
9347 encoding in grayscale.
9350 .B (no)hq_ac
9351 Activates high-quality prediction of AC coefficients for intra frames from
9352 neighbor blocks (default: on).
9355 .B vhq=<0\-4>
9356 The motion search algorithm is based on a search in the usual color domain
9357 and tries to find a motion vector that minimizes the difference between the
9358 reference frame and the encoded frame.
9359 With this setting activated, Xvid will also use the frequency domain (DCT)
9360 to search for a motion vector that minimizes not only the spatial
9361 difference but also the encoding length of the block.
9362 Fastest to slowest:
9363 .PD 0
9364 .RSs
9365 .IPs 0
9367 .IPs 1
9368 mode decision (inter/\:intra MB) (default)
9369 .IPs 2
9370 limited search
9371 .IPs 3
9372 medium search
9373 .IPs 4
9374 wide search
9376 .PD 1
9379 .B (no)lumi_mask
9380 Adaptive quantization allows the macroblock quantizers to vary inside
9381 each frame.
9382 This is a 'psychosensory' setting that is supposed to make use of the
9383 fact that the human eye tends to notice fewer details in very bright
9384 and very dark parts of the picture.
9385 It compresses those areas more strongly than medium ones, which will
9386 save bits that can be spent again on other frames, raising overall
9387 subjective quality and possibly reducing PSNR.
9390 .B (no)grayscale
9391 Make Xvid discard chroma planes so the encoded video is grayscale only.
9392 Note that this does not speed up encoding, it just prevents chroma data
9393 from being written in the last stage of encoding.
9396 .B (no)interlacing
9397 Encode the fields of interlaced video material.
9398 Turn this option on for interlaced content.
9400 .I NOTE:
9401 Should you rescale the video, you would need an interlace-aware resizer,
9402 which you can activate with \-vf scale=<width>:<height>:1.
9405 .B min_iquant=<0\-31>
9406 minimum I-frame quantizer (default: 2)
9409 .B max_iquant=<0\-31>
9410 maximum I-frame quantizer (default: 31)
9413 .B min_pquant=<0\-31>
9414 minimum P-frame quantizer (default: 2)
9417 .B max_pquant=<0\-31>
9418 maximum P-frame quantizer (default: 31)
9421 .B min_bquant=<0\-31>
9422 minimum B-frame quantizer (default: 2)
9425 .B max_bquant=<0\-31>
9426 maximum B-frame quantizer (default: 31)
9429 .B min_key_interval=<value> (two pass only)
9430 minimum interval between keyframes (default: 0)
9433 .B max_key_interval=<value>
9434 maximum interval between keyframes (default: 10*fps)
9437 .B quant_type=<h263|mpeg>
9438 Sets the type of quantizer to use.
9439 For high bitrates, you will find that MPEG quantization preserves more detail.
9440 For low bitrates, the smoothing of H.263 will give you less block noise.
9441 When using custom matrices, MPEG quantization
9442 .B must
9443 be used.
9446 .B quant_intra_matrix=<filename>
9447 Load a custom intra matrix file.
9448 You can build such a file with xvid4conf's matrix editor.
9451 .B quant_inter_matrix=<filename>
9452 Load a custom inter matrix file.
9453 You can build such a file with xvid4conf's matrix editor.
9456 .B keyframe_boost=<0\-1000> (two pass mode only)
9457 Shift some bits from the pool for other frame types to intra frames,
9458 thus improving keyframe quality.
9459 This amount is an extra percentage, so a value of 10 will give
9460 your keyframes 10% more bits than normal
9461 (default: 0).
9464 .B kfthreshold=<value> (two pass mode only)
9465 Works together with kfreduction.
9466 Determines the minimum distance below which you consider that
9467 two frames are considered consecutive and treated differently
9468 according to kfreduction
9469 (default: 10).
9472 .B kfreduction=<0\-100> (two pass mode only)
9473 The above two settings can be used to adjust the size of keyframes that
9474 you consider too close to the first (in a row).
9475 kfthreshold sets the range in which keyframes are reduced, and
9476 kfreduction determines the bitrate reduction they get.
9477 The last I-frame will get treated normally
9478 (default: 30).
9481 .B max_bframes=<0\-4>
9482 Maximum number of B-frames to put between I/P-frames (default: 2).
9485 .B bquant_ratio=<0\-1000>
9486 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9489 .B bquant_offset=<\-1000\-1000>
9490 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9493 .B bf_threshold=<\-255\-255>
9494 This setting allows you to specify what priority to place on the use of
9495 B-frames.
9496 The higher the value, the higher the probability of B-frames being used
9497 (default: 0).
9498 Do not forget that B-frames usually have a higher quantizer, and therefore
9499 aggressive production of B-frames may cause worse visual quality.
9502 .B (no)closed_gop
9503 This option tells Xvid to close every GOP (Group Of Pictures bounded
9504 by two I-frames), which makes GOPs independent from each other.
9505 This just implies that the last frame of the GOP is either a P-frame or a
9506 N-frame but not a B-frame.
9507 It is usually a good idea to turn this option on (default: on).
9510 .B (no)packed
9511 This option is meant to solve frame-order issues when encoding to
9512 container formats like AVI that cannot cope with out-of-order frames.
9513 In practice, most decoders (both software and hardware) are able to deal
9514 with frame-order themselves, and may get confused when this option is
9515 turned on, so you can safely leave if off, unless you really know what
9516 you are doing.
9518 .I WARNING:
9519 This will generate an illegal bitstream, and will not be
9520 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
9522 .I WARNING:
9523 This will also store a fake DivX version in the file so the bug
9524 autodetection of some decoders might be confused.
9527 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
9528 This setting allows the creation of variable framerate video streams.
9529 The value of the setting specifies a threshold under which, if the
9530 difference of the following frame to the previous frame is below or equal
9531 to this threshold, a frame gets not coded (a so called n-vop is placed
9532 in the stream).
9533 On playback, when reaching an n-vop the previous frame will be displayed.
9535 .I WARNING:
9536 Playing with this setting may result in a jerky video, so use it at your
9537 own risks!
9540 .B rc_reaction_delay_factor=<value>
9541 This parameter controls the number of frames the CBR rate controller
9542 will wait before reacting to bitrate changes and compensating for them
9543 to obtain a constant bitrate over an averaging range of frames.
9546 .B rc_averaging_period=<value>
9547 Real CBR is hard to achieve.
9548 Depending on the video material, bitrate can be variable, and hard to predict.
9549 Therefore Xvid uses an averaging period for which it guarantees a given
9550 amount of bits (minus a small variation).
9551 This settings expresses the "number of frames" for which Xvid averages
9552 bitrate and tries to achieve CBR.
9555 .B rc_buffer=<value>
9556 size of the rate control buffer
9559 .B curve_compression_high=<0\-100>
9560 This setting allows Xvid to take a certain percentage of bits away from
9561 high bitrate scenes and give them back to the bit reservoir.
9562 You could also use this if you have a clip with so many bits allocated
9563 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
9564 (default: 0).
9567 .B curve_compression_low=<0\-100>
9568 This setting allows Xvid to give a certain percentage of extra bits to the
9569 low bitrate scenes, taking a few bits from the entire clip.
9570 This might come in handy if you have a few low-bitrate scenes that are
9571 still blocky (default: 0).
9574 .B overflow_control_strength=<0\-100>
9575 During pass one of two pass encoding, a scaled bitrate curve is computed.
9576 The difference between that expected curve and the result obtained during
9577 encoding is called overflow.
9578 Obviously, the two pass rate controller tries to compensate for that overflow,
9579 distributing it over the next frames.
9580 This setting controls how much of the overflow is distributed every time
9581 there is a new frame.
9582 Low values allow lazy overflow control, big rate bursts are compensated for
9583 more slowly (could lead to lack of precision for small clips).
9584 Higher values will make changes in bit redistribution more abrupt, possibly
9585 too abrupt if you set it too high, creating artifacts (default: 5).
9587 .I NOTE:
9588 This setting impacts quality a lot, play with it carefully!
9591 .B max_overflow_improvement=<0\-100>
9592 During the frame bit allocation, overflow control may increase the frame
9593 size.
9594 This parameter specifies the maximum percentage by which the overflow
9595 control is allowed to increase the frame size, compared to the ideal curve
9596 allocation
9597 (default: 5).
9600 .B max_overflow_degradation=<0\-100>
9601 During the frame bit allocation, overflow control may decrease the frame
9602 size.
9603 This parameter specifies the maximum percentage by which the overflow
9604 control is allowed to decrease the frame size, compared to the ideal curve
9605 allocation
9606 (default: 5).
9609 .B container_frame_overhead=<0...>
9610 Specifies a frame average overhead per frame, in bytes.
9611 Most of the time users express their target bitrate for video w/o taking
9612 care of the video container overhead.
9613 This small but (mostly) constant overhead can cause the target file size
9614 to be exceeded.
9615 Xvid allows users to set the amount of overhead per frame the
9616 container generates (give only an average per frame).
9617 0 has a special meaning, it lets Xvid use its own default values
9618 (default: 24 \- AVI average overhead).
9621 .B profile=<profile_name>
9622 Restricts options and VBV (peak bitrate over a short period) according to
9623 the Simple, Advanced Simple and DivX profiles.
9624 The resulting videos should be playable on standalone players adhering to these
9625 profile specifications.
9626 .PD 0
9627 .RSs
9628 .IPs unrestricted
9629 no restrictions (default)
9630 .IPs "sp0\ \ "
9631 simple profile at level 0
9632 .IPs "sp1\ \ "
9633 simple profile at level 1
9634 .IPs "sp2\ \ "
9635 simple profile at level 2
9636 .IPs "sp3\ \ "
9637 simple profile at level 3
9638 .IPs "asp0\ "
9639 advanced simple profile at level 0
9640 .IPs "asp1\ "
9641 advanced simple profile at level 1
9642 .IPs "asp2\ "
9643 advanced simple profile at level 2
9644 .IPs "asp3\ "
9645 advanced simple profile at level 3
9646 .IPs "asp4\ "
9647 advanced simple profile at level 4
9648 .IPs "asp5\ "
9649 advanced simple profile at level 5
9650 .IPs dxnhandheld
9651 DXN handheld profile
9652 .IPs dxnportntsc
9653 DXN portable NTSC profile
9654 .IPs dxnportpal
9655 DXN portable PAL profile
9656 .IPs dxnhtntsc
9657 DXN home theater NTSC profile
9658 .IPs dxnhtpal
9659 DXN home theater PAL profile
9660 .IPs dxnhdtv
9661 DXN HDTV profile
9663 .PD 1
9665 .I NOTE:
9666 These profiles should be used in conjunction with an appropriate \-ffourcc.
9667 Generally DX50 is applicable, as some players do not recognize Xvid but
9668 most recognize DivX.
9672 .B par=<mode>
9673 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
9674 the Display Aspect Ratio).
9675 PAR is the ratio of the width and height of a single pixel.
9676 So both are related like this: DAR = PAR * (width/height).
9678 MPEG-4 defines 5 pixel aspect ratios and one extended
9679 one, giving the opportunity to specify a specific pixel aspect
9680 ratio.
9681 5 standard modes can be specified:
9682 .PD 0
9683 .RSs
9684 .IPs vga11
9685 It is the usual PAR for PC content.
9686 Pixels are a square unit.
9687 .IPs pal43
9688 PAL standard 4:3 PAR.
9689 Pixels are rectangles.
9690 .IPs pal169
9691 same as above
9692 .IPs ntsc43
9693 same as above
9694 .IPs ntsc169
9695 same as above (Do not forget to give the exact ratio.)
9696 .IPs "ext\ \ "
9697 Allows you to specify your own pixel aspect ratio with par_width and
9698 par_height.
9700 .PD 1
9702 .I NOTE:
9703 In general, setting aspect and autoaspect options is enough.
9707 .B par_width=<1\-255> (par=ext only)
9708 Specifies the width of the custom pixel aspect ratio.
9711 .B par_height=<1\-255> (par=ext only)
9712 Specifies the height of the custom pixel aspect ratio.
9715 .B aspect=<x/y | f (float value)>
9716 Store movie aspect internally, just like MPEG files.
9717 Much nicer solution than rescaling, because quality is not decreased.
9718 MPlayer and a few others players will play these files correctly, others
9719 will display them with the wrong aspect.
9720 The aspect parameter can be given as a ratio or a floating point number.
9723 .B (no)autoaspect
9724 Same as the aspect option, but automatically computes aspect, taking
9725 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
9726 filter chain.
9729 .B "psnr\ \ \ "
9730 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
9731 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
9732 the current directory.
9733 Returned values are in dB (decibel), the higher the better.
9736 .B "debug\ \ "
9737 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
9738 file.)
9742 .sp 1
9743 The following option is only available in Xvid 1.1.x.
9746 .B bvhq=<0|1>
9747 This setting allows vector candidates for B-frames to be used for
9748 the encoding chosen using a rate distortion optimized operator,
9749 which is what is done for P-frames by the vhq option.
9750 This produces nicer-looking B-frames while incurring almost no
9751 performance penalty (default: 1).
9754 .sp 1
9755 The following option is only available in the 1.2.x version of Xvid.
9758 .B threads=<0\-n>
9759 Create n threads to run the motion estimation (default: 0).
9760 The maximum number of threads that can be used is the picture height
9761 divided by 16.
9764 .SS x264enc (\-x264encopts)
9767 .B bitrate=<value>
9768 Sets the average bitrate to be used in kbits/\:second (default: off).
9769 Since local bitrate may vary, this average may be inaccurate for
9770 very short videos (see ratetol).
9771 Constant bitrate can be achieved by combining this with vbv_maxrate,
9772 at significant reduction in quality.
9775 .B qp=<0\-51>
9776 This selects the quantizer to use for P-frames.
9777 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
9778 20\-40 is a useful range.
9779 Lower values result in better fidelity, but higher bitrates.
9780 0 is lossless.
9781 Note that quantization in H.264 works differently from MPEG-1/2/4:
9782 H.264's quantization parameter (QP) is on a logarithmic scale.
9783 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
9784 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
9787 .B crf=<1.0\-50.0>
9788 Enables constant quality mode, and selects the quality.
9789 The scale is similar to QP.
9790 Like the bitrate-based modes, this allows each frame to use a
9791 different QP based on the frame's complexity.
9794 .B pass=<1\-3>
9795 Enable 2 or 3-pass mode.
9796 It is recommended to always encode in 2 or 3-pass mode as it leads to a
9797 better bit distribution and improves overall quality.
9798 .PD 0
9799 .RSs
9800 .IPs 1
9801 first pass
9802 .IPs 2
9803 second pass (of two pass encoding)
9804 .IPs 3
9805 Nth pass (second and third passes of three pass encoding)
9808 Here is how it works, and how to use it:
9810 The first pass (pass=1) collects statistics on the video and writes them
9811 to a file.
9812 You might want to deactivate some CPU-hungry options, apart from the ones
9813 that are on by default.
9815 In two pass mode, the second pass (pass=2) reads the statistics file and
9816 bases ratecontrol decisions on it.
9818 In three pass mode, the second pass (pass=3, that is not a typo)
9819 does both: It first reads the statistics, then overwrites them.
9820 You can use all encoding options, except very CPU-hungry options.
9822 The third pass (pass=3) is the same as the second pass, except that it has
9823 the second pass' statistics to work from.
9824 You can use all encoding options, including CPU-hungry ones.
9826 The first pass may use either average bitrate or constant quantizer.
9827 ABR is recommended, since it does not require guessing a quantizer.
9828 Subsequent passes are ABR, and must specify bitrate.
9829 .REss
9832 .B turbo=<0\-2>
9833 Fast first pass mode.
9834 During the first pass of a two or more pass encode it is possible to gain
9835 speed by disabling some options with negligible or even no impact on the
9836 final pass output quality.
9837 .PD 0
9838 .RSs
9839 .IPs 0
9840 disabled (default)
9841 .IPs 1
9842 Reduce subq, frameref and disable some inter-macroblock partition analysis
9843 modes.
9844 .IPs 2
9845 Reduce subq and frameref to 1, use a diamond ME search and disable all
9846 partition analysis modes.
9849 Level 1 can increase first pass speed up to 2x with no change in the global
9850 PSNR of the final pass compared to a full quality first pass.
9852 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
9853 in the global PSNR of the final pass compared to a full quality first pass.
9854 .REss
9857 .B keyint=<value>
9858 Sets maximum interval between IDR-frames (default: 250).
9859 Larger values save bits, thus improve quality, at the cost of seeking
9860 precision.
9861 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
9862 values of keyint.
9865 .B keyint_min=<1\-keyint/2>
9866 Sets minimum interval between IDR-frames (default: 25).
9867 If scenecuts appear within this interval, they are still encoded as
9868 I-frames, but do not start a new GOP.
9869 In H.264, I-frames do not necessarily bound a closed GOP because it is
9870 allowable for a P-frame to be predicted from more frames than just the one
9871 frame before it (also see frameref).
9872 Therefore, I-frames are not necessarily seekable.
9873 IDR-frames restrict subsequent P-frames from referring to any frame
9874 prior to the IDR-frame.
9877 .B scenecut=<\-1\-100>
9878 Controls how aggressively to insert extra I-frames (default: 40).
9879 With small values of scenecut, the codec often has to force an I-frame
9880 when it would exceed keyint.
9881 Good values of scenecut may find a better location for the I-frame.
9882 Large values use more I-frames than necessary, thus wasting bits.
9883 \-1 disables scene-cut detection, so I-frames are inserted only once
9884 every other keyint frames, even if a scene-cut occurs earlier.
9885 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
9886 are just as big as I-frames, but do not reset the "keyint counter".
9889 .B frameref=<1\-16>
9890 Number of previous frames used as predictors in B- and P-frames (default: 1).
9891 This is effective in anime, but in live-action material the improvements
9892 usually drop off very rapidly above 6 or so reference frames.
9893 This has no effect on decoding speed, but does increase the memory needed for
9894 decoding.
9895 Some decoders can only handle a maximum of 15 reference frames.
9898 .B bframes=<0\-16>
9899 maximum number of consecutive B-frames between I- and P-frames (default: 0)
9902 .B (no)b_adapt
9903 Automatically decides when to use B-frames and how many, up to the maximum
9904 specified above (default: on).
9905 If this option is disabled, then the maximum number of B-frames is used.
9908 .B b_bias=<\-100\-100>
9909 Controls the decision performed by b_adapt.
9910 A higher b_bias produces more B-frames (default: 0).
9913 .B (no)b_pyramid
9914 Allows B-frames to be used as references for predicting other frames.
9915 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
9916 Without this option, B-frames follow the same pattern as MPEG-[124].
9917 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
9918 are predicted from I0 and P4.
9919 With this option, they are coded as I0 P4 B2 B1 B3.
9920 B2 is the same as above, but B1 is predicted from I0 and B2, and
9921 B3 is predicted from B2 and P4.
9922 This usually results in slightly improved compression, at almost no
9923 speed cost.
9924 However, this is an experimental option: it is not fully tuned and
9925 may not always help.
9926 Requires bframes >= 2.
9927 Disadvantage: increases decoding delay to 2 frames.
9930 .B (no)deblock
9931 Use deblocking filter (default: on).
9932 As it takes very little time compared to its quality gain, it is not
9933 recommended to disable it.
9936 .B deblock=<\-6\-6>,<\-6\-6>
9937 The first parameter is AlphaC0 (default: 0).
9938 This adjusts thresholds for the H.264 in-loop deblocking filter.
9939 First, this parameter adjusts the maximum amount of change that the filter is
9940 allowed to cause on any one pixel.
9941 Secondly, this parameter affects the threshold for difference across the
9942 edge being filtered.
9943 A positive value reduces blocking artifacts more, but will also smear details.
9945 The second parameter is Beta (default: 0).
9946 This affects the detail threshold.
9947 Very detailed blocks are not filtered, since the smoothing caused by the
9948 filter would be more noticeable than the original blocking.
9950 The default behavior of the filter almost always achieves optimal quality,
9951 so it is best to either leave it alone, or make only small adjustments.
9952 However, if your source material already has some blocking or noise which
9953 you would like to remove, it may be a good idea to turn it up a little bit.
9956 .B (no)cabac
9957 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
9958 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
9959 Unless you are looking for decoding speed, you should not disable it.
9962 .B qp_min=<1\-51> (ABR or two pass)
9963 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
9966 .B qp_max=<1\-51> (ABR or two pass)
9967 maximum quantizer (default: 51)
9970 .B qp_step=<1\-50> (ABR or two pass)
9971 maximum value by which the quantizer may be incremented/decremented between
9972 frames (default: 4)
9975 .B ratetol=<0.1\-100.0> (ABR or two pass)
9976 allowed variance in average bitrate (no particular units) (default: 1.0)
9979 .B vbv_maxrate=<value> (ABR or two pass)
9980 maximum local bitrate, in kbits/\:second (default: disabled)
9983 .B vbv_bufsize=<value> (ABR or two pass)
9984 averaging period for vbv_maxrate, in kbits
9985 (default: none, must be specified if vbv_maxrate is enabled)
9988 .B vbv_init=<0.0\-1.0> (ABR or two pass)
9989 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
9992 .B ip_factor=<value>
9993 quantizer factor between I- and P-frames (default: 1.4)
9996 .B pb_factor=<value>
9997 quantizer factor between P- and B-frames (default: 1.3)
10000 .B qcomp=<0\-1> (ABR or two pass)
10001 quantizer compression (default: 0.6).
10002 A lower value makes the bitrate more constant,
10003 while a higher value makes the quantization parameter more constant.
10006 .B cplx_blur=<0\-999> (two pass only)
10007 Temporal blur of the estimated frame complexity, before curve compression
10008 (default: 20).
10009 Lower values allow the quantizer value to jump around more,
10010 higher values force it to vary more smoothly.
10011 cplx_blur ensures that each I-frame has quality comparable to the following
10012 P-frames, and ensures that alternating high and low complexity frames
10013 (e.g. low fps animation) do not waste bits on fluctuating quantizer.
10016 .B qblur=<0\-99> (two pass only)
10017 Temporal blur of the quantization parameter, after curve compression
10018 (default: 0.5).
10019 Lower values allow the quantizer value to jump around more,
10020 higher values force it to vary more smoothly.
10023 .B zones=<zone0>[/<zone1>[/...]]
10024 User specified quality for specific parts (ending, credits, ...).
10025 Each zone is <start-frame>,<end-frame>,<option> where option may be
10026 .PD 0
10027 .RSs
10028 .IPs "q=<0\-51>"
10029 quantizer
10030 .IPs "b=<0.01\-100.0>"
10031 bitrate multiplier
10033 .PD 1
10035 .I NOTE:
10036 The quantizer option is not strictly enforced.
10037 It affects only the planning stage of ratecontrol, and is still subject
10038 to overflow compensation and qp_min/qp_max.
10042 .B direct_pred=<name>
10043 Determines the type of motion prediction used for direct macroblocks
10044 in B-frames.
10045 .PD 0
10046 .RSs
10047 .IPs none
10048 Direct macroblocks are not used.
10049 .IPs spatial
10050 Motion vectors are extrapolated from neighboring blocks.
10051 (default)
10052 .IPs temporal
10053 Motion vectors are extrapolated from the following P-frame.
10054 .IPs auto
10055 The codec selects between spatial and temporal for each frame.
10057 .PD 1
10059 Spatial and temporal are approximately the same speed and PSNR,
10060 the choice between them depends on the video content.
10061 Auto is slightly better, but slower.
10062 Auto is most effective when combined with multipass.
10063 direct_pred=none is both slower and lower quality.
10067 .B (no)weight_b
10068 Use weighted prediction in B-frames.
10069 Without this option, bidirectionally predicted macroblocks give
10070 equal weight to each reference frame.
10071 With this option, the weights are determined by the temporal position
10072 of the B-frame relative to the references.
10073 Requires bframes > 1.
10076 .B partitions=<list>
10077 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
10078 .PD 0
10079 .RSs
10080 .IPs p8x8
10081 Enable types p16x8, p8x16, p8x8.
10082 .IPs p4x4
10083 Enable types p8x4, p4x8, p4x4.
10084 p4x4 is recommended only with subq >= 5, and only at low resolutions.
10085 .IPs b8x8
10086 Enable types b16x8, b8x16, b8x8.
10087 .IPs i8x8
10088 Enable type i8x8.
10089 i8x8 has no effect unless 8x8dct is enabled.
10090 .IPs i4x4
10091 Enable type i4x4.
10092 .IPs all
10093 Enable all of the above types.
10094 .IPs none
10095 Disable all of the above types.
10097 .PD 1
10099 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
10100 are always enabled.
10102 The idea is to find the type and size that best describe a certain area
10103 of the picture.
10104 For example, a global pan is better represented by 16x16 blocks, while
10105 small moving objects are better represented by smaller blocks.
10109 .B (no)8x8dct
10110 Adaptive spatial transform size: allows macroblocks to choose between
10111 4x4 and 8x8 DCT.
10112 Also allows the i8x8 macroblock type.
10113 Without this option, only 4x4 DCT is used.
10116 .B me=<name>
10117 Select fullpixel motion estimation algorithm.
10118 .PD 0
10119 .RSs
10120 .IPs dia
10121 diamond search, radius 1 (fast)
10122 .IPs hex
10123 hexagon search, radius 2 (default)
10124 .IPs umh
10125 uneven multi-hexagon search (slow)
10126 .IPs esa
10127 exhaustive search (very slow, and no better than umh)
10129 .PD 1
10132 .B me_range=<4\-64>
10133 radius of exhaustive or multi-hexagon motion search (default: 16)
10136 .B subq=<0\-9>
10137 Adjust subpel refinement quality.
10138 This parameter controls quality versus speed tradeoffs involved in the motion
10139 estimation decision process.
10140 subq=5 can compress up to 10% better than subq=1.
10141 .PD 0
10142 .RSs
10143 .IPs 0
10144 Runs fullpixel precision motion estimation on all candidate
10145 macroblock types.
10146 Then selects the best type with SAD metric (faster than subq=1, not recommended
10147 unless you're looking for ultra-fast encoding).
10148 .IPs 1
10149 Does as 0, then refines the motion of that type to fast quarterpixel precision
10150 (fast).
10151 .IPs 2
10152 Runs halfpixel precision motion estimation on all candidate macroblock types.
10153 Then selects the best type with SATD metric.
10154 Then refines the motion of that type to fast quarterpixel precision.
10155 .IPs 3
10156 As 2, but uses a slower quarterpixel refinement.
10157 .IPs 4
10158 Runs fast quarterpixel precision motion estimation on all candidate
10159 macroblock types.
10160 Then selects the best type with SATD metric.
10161 Then finishes the quarterpixel refinement for that type.
10162 .IPs 5
10163 Runs best quality quarterpixel precision motion estimation on all
10164 candidate macroblock types, before selecting the best type.
10165 Also refines the two motion vectors used in bidirectional macroblocks with
10166 SATD metric, rather than reusing vectors from the forward and backward
10167 searches.
10168 .IPs 6
10169 Enables rate-distortion optimization of macroblock types in
10170 I- and P-frames (default).
10171 .IPs 7
10172 Enables rate-distortion optimization of macroblock types in all frames.
10173 .IPs 8
10174 Enables rate-distortion optimization of motion vectors and intra prediction modes in I- and P-frames.
10175 .IPs 9
10176 Enables rate-distortion optimization of motion vectors and intra prediction modes in all frames (best).
10178 .PD 1
10180 In the above, "all candidates" does not exactly mean all enabled types:
10181 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
10185 .B (no)chroma_me
10186 Takes into account chroma information during subpixel motion search
10187 (default: enabled).
10188 Requires subq>=5.
10191 .B (no)mixed_refs
10192 Allows each 8x8 or 16x8 motion partition to independently select a
10193 reference frame.
10194 Without this option, a whole macroblock must use the same reference.
10195 Requires frameref>1.
10198 .B trellis=<0\-2> (cabac only)
10199 rate-distortion optimal quantization
10200 .PD 0
10201 .RSs
10202 .IPs 0
10203 disabled (default)
10204 .IPs 1
10205 enabled only for the final encode
10206 .IPs 2
10207 enabled during all mode decisions (slow, requires subq>=6)
10209 .PD 1
10212 .B psy-rd=rd[,trell]
10213 Sets the strength of the psychovisual optimization.
10214 .PD 0
10215 .RSs
10216 .IPs rd=<0.0\-10.0>
10217 psy optimization strength (requires subq>=6) (default: 1.0)
10218 .IPs trell=<0.0\-10.0>
10219 trellis (requires trellis, experimental) (default: 0.0)
10221 .PD 1
10225 .B deadzone_inter=<0\-32>
10226 Set the size of the inter luma quantization deadzone for non-trellis
10227 quantization (default: 21).
10228 Lower values help to preserve fine details and film grain (typically useful
10229 for high bitrate/quality encode), while higher values help filter out
10230 these details to save bits that can be spent again on other macroblocks
10231 and frames (typically useful for bitrate-starved encodes).
10232 It is recommended that you start by tweaking deadzone_intra before changing
10233 this parameter.
10236 .B deadzone_intra=<0\-32>
10237 Set the size of the intra luma quantization deadzone for non-trellis
10238 quantization (default: 11).
10239 This option has the same effect as deadzone_inter except that it affects
10240 intra frames.
10241 It is recommended that you start by tweaking this parameter before changing
10242 deadzone_inter.
10245 .B (no)fast_pskip
10246 Performs early skip detection in P-frames (default: enabled).
10247 This usually improves speed at no cost, but it can sometimes produce
10248 artifacts in areas with no details, like sky.
10251 .B (no)dct_decimate
10252 Eliminate dct blocks in P-frames containing only a small single coefficient
10253 (default: enabled).
10254 This will remove some details, so it will save bits that can be spent
10255 again on other frames, hopefully raising overall subjective quality.
10256 If you are compressing non-anime content with a high target bitrate, you
10257 may want to disable this to preserve as much detail as possible.
10260 .B nr=<0\-100000>
10261 Noise reduction, 0 means disabled.
10262 100\-1000 is a useful range for typical content, but you may want to turn it
10263 up a bit more for very noisy content (default: 0).
10264 Given its small impact on speed, you might want to prefer to use this over
10265 filtering noise away with video filters like denoise3d or hqdn3d.
10268 .B chroma_qp_offset=<\-12\-12>
10269 Use a different quantizer for chroma as compared to luma.
10270 Useful values are in the range <\-2\-2> (default: 0).
10273 .B aq_mode=<0\-2>
10274 Defines how adaptive quantization (AQ) distributes bits:
10275 .PD 0
10276 .RSs
10277 .IPs 0
10278 disabled
10279 .IPs 1
10280 Avoid moving bits between frames.
10281 .IPs 2
10282 Move bits between frames (by default).
10284 .PD 1
10287 .B aq_strength=<positive float value>
10288 Controls how much adaptive quantization (AQ) reduces blocking and blurring
10289 in flat and textured areas (default: 1.0).
10290 A value of 0.5 will lead to weak AQ and less details, when a value of 1.5
10291 will lead to strong AQ and more details.
10294 .B cqm=<flat|jvt|<filename>>
10295 Either uses a predefined custom quantization matrix or loads a JM format
10296 matrix file.
10297 .PD 0
10298 .RSs
10299 .IPs "flat\ "
10300 Use the predefined flat 16 matrix (default).
10301 .IPs "jvt\ \ "
10302 Use the predefined JVT matrix.
10303 .IPs <filename>
10304 Use the provided JM format matrix file.
10305 .PD 1
10308 .I NOTE:
10309 Windows CMD.EXE users may experience problems with parsing the command line
10310 if they attempt to use all the CQM lists.
10311 This is due to a command line length limitation.
10312 In this case it is recommended the lists be put into a JM format CQM
10313 file and loaded as specified above.
10317 .B cqm4iy=<list> (also see cqm)
10318 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10319 values in the 1\-255 range.
10322 .B cqm4ic=<list> (also see cqm)
10323 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10324 separated values in the 1\-255 range.
10327 .B cqm4py=<list> (also see cqm)
10328 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10329 values in the 1\-255 range.
10332 .B cqm4pc=<list> (also see cqm)
10333 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10334 separated values in the 1\-255 range.
10337 .B cqm8iy=<list> (also see cqm)
10338 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10339 values in the 1\-255 range.
10342 .B cqm8py=<list> (also see cqm)
10343 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10344 values in the 1\-255 range.
10347 .B level_idc=<10\-51>
10348 Set the bitstream's level as defined by annex A of the H.264 standard
10349 (default: 51 \- level 5.1).
10350 This is used for telling the decoder what capabilities it needs to support.
10351 Use this parameter only if you know what it means,
10352 and you have a need to set it.
10355 .B threads=<0\-16>
10356 Spawn threads to encode in parallel on multiple CPUs (default: 1).
10357 This has a slight penalty to compression quality.
10358 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10359 appropriate number of threads.
10362 .B (no)global_header
10363 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10364 (default: disabled).
10365 Some players, such as the Sony PSP, require the use of this option.
10366 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10369 .B (no)interlaced
10370 Treat the video content as interlaced.
10373 .B log=<\-1\-3>
10374 Adjust the amount of logging info printed to the screen.
10375 .PD 0
10376 .RSs
10377 .IPs "\-1"
10378 none
10379 .IPs " 0"
10380 Print errors only.
10381 .IPs " 1"
10382 warnings
10383 .IPs " 2"
10384 PSNR and other analysis statistics when the encode finishes (default)
10385 .IPs " 3"
10386 PSNR, QP, frametype, size, and other statistics for every frame
10388 .PD 1
10391 .B (no)psnr
10392 Print signal-to-noise ratio statistics.
10394 .I NOTE:
10395 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
10396 mathematically sound (they are simply the average of per-frame PSNRs).
10397 They are kept only for comparison to the JM reference codec.
10398 For all other purposes, please use either the 'Global' PSNR, or the per-frame
10399 PSNRs printed by log=3.
10402 .B (no)ssim
10403 Print the Structural Similarity Metric results.
10404 This is an alternative to PSNR, and may be better correlated with the
10405 perceived quality of the compressed video.
10408 .B (no)visualize
10409 Enable x264 visualizations during encoding.
10410 If the x264 on your system supports it, a new window will be opened during
10411 the encoding process, in which x264 will attempt to present an overview of
10412 how each frame gets encoded.
10413 Each block type on the visualized movie will be colored as follows:
10414 .PD 0
10415 .RSs
10416 .IPs red/pink
10417 intra block
10418 .IPs "blue\ "
10419 inter block
10420 .IPs green
10421 skip block
10422 .IPs yellow
10423 B-block
10425 .PD 1
10427 This feature can be considered experimental and subject to change.
10428 In particular, it depends on x264 being compiled with visualizations enabled.
10429 Note that as of writing this, x264 pauses after encoding and visualizing
10430 each frame, waiting for the user to press a key, at which point the next
10431 frame will be encoded.
10435 .SS xvfw (\-xvfwopts)
10437 Encoding with Video for Windows codecs is mostly obsolete unless you wish
10438 to encode to some obscure fringe codec.
10441 .B codec=<name>
10442 The name of the binary codec file with which to encode.
10445 .B compdata=<file>
10446 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
10449 .SS MPEG muxer (\-mpegopts)
10451 The MPEG muxer can generate 5 types of streams, each of which has reasonable
10452 default parameters that the user can override.
10453 Generally, when generating MPEG files, it is advisable to disable
10454 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
10455 harddup and softskip video filters).
10457 .I EXAMPLE:
10458 .PD 0
10459 .RSs
10460 .IPs format=mpeg2:tsaf:vbitrate=8000
10462 .PD 1
10465 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
10466 stream format (default: mpeg2).
10467 pes1 and pes2 are very broken formats (no pack header and no padding),
10468 but VDR uses them; do not choose them unless you know exactly what you
10469 are doing.
10472 .B size=<up to 65535>
10473 Pack size in bytes, do not change unless you know exactly what
10474 you are doing (default: 2048).
10477 .B muxrate=<int>
10478 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
10479 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
10482 .B "tsaf\ \ \ "
10483 Sets timestamps on all frames, if possible; recommended when format=dvd.
10484 If dvdauthor complains with a message like "..audio sector out of range...",
10485 you probably did not enable this option.
10488 .B interleaving2
10489 Uses a better algorithm to interleave audio and video packets, based on the
10490 principle that the muxer will always try to fill the stream with the largest
10491 percentage of free space.
10494 .B vdelay=<1\-32760>
10495 Initial video delay time, in milliseconds (default: 0),
10496 use it if you want to delay video with respect to audio.
10497 It doesn't work with :drop.
10500 .B adelay=<1\-32760>
10501 Initial audio delay time, in milliseconds (default: 0),
10502 use it if you want to delay audio with respect to video.
10505 .B "drop\ \ \ "
10506 When used with vdelay the muxer drops the part of audio that was
10507 anticipated.
10510 .B vwidth, vheight=<1\-4095>
10511 Set the video width and height when video is MPEG-1/2.
10514 .B vpswidth, vpsheight=<1\-4095>
10515 Set pan and scan video width and height when video is MPEG-2.
10518 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
10519 Sets the display aspect ratio for MPEG-2 video.
10520 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
10523 .B vbitrate=<int>
10524 Sets the video bitrate in kbit/s for MPEG-1/2 video.
10527 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
10528 Sets the framerate for MPEG-1/2 video.
10529 This option will be ignored if used with the telecine option.
10532 .B telecine
10533 Enables 3:2 pulldown soft telecine mode: The muxer will make the
10534 video stream look like it was encoded at 30000/1001 fps.
10535 It only works with MPEG-2 video when the output framerate is
10536 24000/1001 fps, convert it with \-ofps if necessary.
10537 Any other framerate is incompatible with this option.
10540 .B film2pal
10541 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
10542 will make the video stream look like it was encoded at 25 fps.
10543 It only works with MPEG-2 video when the output framerate is
10544 24000/1001 fps, convert it with \-ofps if necessary.
10545 Any other framerate is incompatible with this option.
10548 .B tele_src and tele_dest
10549 Enables arbitrary telecining using Donand Graft's DGPulldown code.
10550 You need to specify the original and the desired framerate; the
10551 muxer will make the video stream look like it was encoded at
10552 the desired framerate.
10553 It only works with MPEG-2 video when the input framerate is smaller
10554 than the output framerate and the framerate increase is <= 1.5.
10555 .sp 1
10557 .I EXAMPLE:
10559 .PD 0
10560 .RSs
10561 .IPs tele_src=25,tele_dest=30000/1001
10562 PAL to NTSC telecining
10564 .PD 1
10567 .B vbuf_size=<40\-1194>
10568 Sets the size of the video decoder's buffer, expressed in kilobytes.
10569 Specify it only if the bitrate of the video stream is too high for
10570 the chosen format and if you know perfectly well what you are doing.
10571 A too high value may lead to an unplayable movie, depending on the player's
10572 capabilities.
10573 When muxing HDTV video a value of 400 should suffice.
10576 .B abuf_size=<4\-64>
10577 Sets the size of the audio decoder's buffer, expressed in kilobytes.
10578 The same principle as for vbuf_size applies.
10581 .SS FFmpeg libavformat demuxers (\-lavfdopts)
10584 .B analyzeduration=<value>
10585 Maximum length in seconds to analyze the stream properties.
10588 .B format=<value>
10589 Force a specific libavformat demuxer.
10592 .B o=<key>=<value>[,<key>=<value>[,...]]
10593 Pass AVOptions to libavformat demuxer.
10594 Note, a patch to make the o= unneeded and pass all unknown options through
10595 the AVOption system is welcome.
10596 A full list of AVOptions can be found in the FFmpeg manual.
10597 Note that some options may conflict with MPlayer/MEncoder options.
10598 .sp 1
10600 .I EXAMPLE:
10602 .RSs
10603 .PD 0
10604 .IPs o=ignidx
10605 .PD 1
10609 .B probesize=<value>
10610 Maximum amount of data to probe during the detection phase.
10611 In the case of MPEG-TS this value identifies the maximum number
10612 of TS packets to scan.
10615 .B cryptokey=<hexstring>
10616 Encryption key the demuxer should use.
10617 This is the raw binary data of the key converted to a hexadecimal string.
10620 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
10623 .B delay=<value>
10624 Currently only meaningful for MPEG[12]: Maximum allowed distance,
10625 in seconds, between the reference timer of the output stream (SCR)
10626 and the decoding timestamp (DTS) for any stream present
10627 (demux to decode delay).
10628 Default is 0.7 (as mandated by the standards defined by MPEG).
10629 Higher values require larger buffers and must not be used.
10632 .B format=<container_format>
10633 Override which container format to mux into
10634 (default: autodetect from output file extension).
10635 .PD 0
10636 .RSs
10637 .IPs "mpg\ \ "
10638 MPEG-1 systems and MPEG-2 PS
10639 .IPs "asf\ \ "
10640 Advanced Streaming Format
10641 .IPs "avi\ \ "
10642 Audio Video Interleave file
10643 .IPs "wav\ \ "
10644 Waveform Audio
10645 .IPs "swf\ \ "
10646 Macromedia Flash
10647 .IPs "flv\ \ "
10648 Macromedia Flash video files
10649 .IPs "rm\ \ \ "
10650 RealAudio and RealVideo
10651 .IPs "au\ \ \ "
10652 SUN AU format
10653 .IPs "nut\ \ "
10654 NUT open container format (experimental)
10655 .IPs "mov\ \ "
10656 QuickTime
10657 .IPs "mp4\ \ "
10658 MPEG-4 format
10659 .IPs "ipod\ "
10660 MPEG-4 format with extra header flags required by Apple iPod firmware
10661 .IPs "dv\ \ \ "
10662 Sony Digital Video container
10663 .IPs "matroska\ \ \ "
10664 Matroska
10666 .PD 1
10668 .B muxrate=<rate>
10669 Nominal bitrate of the multiplex, in bits per second;
10670 currently it is meaningful only for MPEG[12].
10671 Sometimes raising it is necessary in order to avoid "buffer underflows".
10674 .B o=<key>=<value>[,<key>=<value>[,...]]
10675 Pass AVOptions to libavformat muxer.
10676 Note, a patch to make the o= unneeded and pass all unknown options through
10677 the AVOption system is welcome.
10678 A full list of AVOptions can be found in the FFmpeg manual.
10679 Note that some options may conflict with MEncoder options.
10680 .sp 1
10682 .I EXAMPLE:
10684 .RSs
10685 .PD 0
10686 .IPs o=packetsize=100
10687 .PD 1
10691 .B packetsize=<size>
10692 Size, expressed in bytes, of the unitary packet for the chosen format.
10693 When muxing to MPEG[12] implementations the default values are:
10694 2324 for [S]VCD, 2048 for all others formats.
10697 .B preload=<distance>
10698 Currently only meaningful for MPEG[12]: Initial distance,
10699 in seconds, between the reference timer of the output stream (SCR)
10700 and the decoding timestamp (DTS) for any stream present
10701 (demux to decode delay).
10705 .\" --------------------------------------------------------------------------
10706 .\" environment variables
10707 .\" --------------------------------------------------------------------------
10709 .SH ENVIRONMENT VARIABLES
10711 There are a number of environment variables that can be used to
10712 control the behavior of MPlayer and MEncoder.
10715 .B MPLAYER_CHARSET (also see \-msgcharset)
10716 Convert console messages to the specified charset (default: autodetect).
10717 A value of "noconv" means no conversion.
10720 .B MPLAYER_HOME
10721 Directory where MPlayer looks for user settings.
10724 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
10725 Set the initial verbosity level across all message modules (default: 0).
10726 The resulting verbosity corresponds to that of \-msglevel 5 plus the
10727 value of MPLAYER_VERBOSE.
10729 .SS libaf:
10732 .B LADSPA_PATH
10733 If LADSPA_PATH is set, it searches for the specified file.
10734 If it is not set, you must supply a fully specified pathname.
10735 FIXME: This is also mentioned in the ladspa section.
10737 .SS libdvdcss:
10740 .B DVDCSS_CACHE
10741 Specify a directory in which to store title key values.
10742 This will speed up descrambling of DVDs which are in the cache.
10743 The DVDCSS_CACHE directory is created if it does not exist,
10744 and a subdirectory is created named after the DVD's title
10745 or manufacturing date.
10746 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
10747 the default value which is "${HOME}/.dvdcss/" under Unix and
10748 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
10749 The special value "off" disables caching.
10752 .B DVDCSS_METHOD
10753 Sets the authentication and decryption method that
10754 libdvdcss will use to read scrambled discs.
10755 Can be one of title, key or disc.
10756 .PD 0
10757 .RSs
10758 .IPs "key\ \ "
10759 is the default method.
10760 libdvdcss will use a set of calculated player keys to try and get the disc key.
10761 This can fail if the drive does not recognize any of the player keys.
10762 .IPs "disc\ "
10763 is a fallback method when key has failed.
10764 Instead of using player keys, libdvdcss will crack the disc key using
10765 a brute force algorithm.
10766 This process is CPU intensive and requires 64 MB of memory to store
10767 temporary data.
10768 .IPs title
10769 is the fallback when all other methods have failed.
10770 It does not rely on a key exchange with the DVD drive, but rather uses
10771 a crypto attack to guess the title key.
10772 On rare cases this may fail because there is not enough encrypted data
10773 on the disc to perform a statistical attack, but in the other hand it
10774 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
10775 the wrong region on an RPC2 drive.
10777 .PD 1
10780 .B DVDCSS_RAW_DEVICE
10781 Specify the raw device to use.
10782 Exact usage will depend on your operating system, the Linux
10783 utility to set up raw devices is raw(8) for instance.
10784 Please note that on most operating systems, using a raw device
10785 requires highly aligned buffers: Linux requires a 2048 bytes
10786 alignment (which is the size of a DVD sector).
10789 .B DVDCSS_VERBOSE
10790 Sets the libdvdcss verbosity level.
10791 .PD 0
10792 .RSs
10793 .IPs 0
10794 Outputs no messages at all.
10795 .IPs 1
10796 Outputs error messages to stderr.
10797 .IPs 2
10798 Outputs error messages and debug messages to stderr.
10800 .PD 1
10803 .B DVDREAD_NOKEYS
10804 Skip retrieving all keys on startup.
10805 Currently disabled.
10808 .B HOME
10809 FIXME: Document this.
10811 .SS libao2:
10814 .B AO_SUN_DISABLE_SAMPLE_TIMING
10815 FIXME: Document this.
10818 .B AUDIODEV
10819 FIXME: Document this.
10822 .B AUDIOSERVER
10823 Specifies the Network Audio System server to which the
10824 nas audio output driver should connect and the transport
10825 that should be used.
10826 If unset DISPLAY is used instead.
10827 The transport can be one of tcp and unix.
10828 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
10829 or [unix]:<instancenumber>.
10830 The NAS base port is 8000 and <instancenumber> is added to that.
10831 .sp 1
10833 .I EXAMPLES:
10835 .PD 0
10836 .RSs
10837 .IPs AUDIOSERVER=somehost:0
10838 Connect to NAS server on somehost using default port and transport.
10839 .IPs AUDIOSERVER=tcp/somehost:8000
10840 Connect to NAS server on somehost listening on TCP port 8000.
10841 .IPs AUDIOSERVER=(unix)?:0
10842 Connect to NAS server instance 0 on localhost using unix domain sockets.
10844 .PD 1
10847 .B DISPLAY
10848 FIXME: Document this.
10850 .SS vidix:
10853 .B VIDIX_CRT
10854 FIXME: Document this.
10857 .B VIDIXIVTVALPHA
10858 Set this to 'disable' in order to stop the VIDIX driver from controlling
10859 alphablending settings.
10860 You can then manipulate it yourself with 'ivtvfbctl'.
10862 .SS osdep:
10865 .B TERM
10866 FIXME: Document this.
10868 .SS libvo:
10871 .B DISPLAY
10872 FIXME: Document this.
10875 .B FRAMEBUFFER
10876 FIXME: Document this.
10879 .B HOME
10880 FIXME: Document this.
10882 .SS libmpdemux:
10885 .B HOME
10886 FIXME: Document this.
10889 .B HOMEPATH
10890 FIXME: Document this.
10893 .B http_proxy
10894 FIXME: Document this.
10897 .B LOGNAME
10898 FIXME: Document this.
10901 .B USERPROFILE
10902 FIXME: Document this.
10904 .SS libmpcodecs:
10907 .B XANIM_MOD_DIR
10908 FIXME: Document this.
10910 .SS GUI:
10913 .B CHARSET
10914 FIXME: Document this.
10917 .B DISPLAY
10918 FIXME: Document this.
10921 .B HOME
10922 FIXME: Document this.
10924 .SS libavformat:
10927 .B AUDIO_FLIP_LEFT
10928 FIXME: Document this.
10931 .B BKTR_DEV
10932 FIXME: Document this.
10935 .B BKTR_FORMAT
10936 FIXME: Document this.
10939 .B BKTR_FREQUENCY
10940 FIXME: Document this.
10943 .B http_proxy
10944 FIXME: Document this.
10947 .B no_proxy
10948 FIXME: Document this.
10952 .\" --------------------------------------------------------------------------
10953 .\" Files
10954 .\" --------------------------------------------------------------------------
10956 .SH FILES
10959 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
10960 MPlayer system-wide settings
10963 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
10964 MEncoder system-wide settings
10967 ~/.mplayer/\:config
10968 MPlayer user settings
10971 ~/.mplayer/\:mencoder.conf
10972 MEncoder user settings
10975 ~/.mplayer/\:input.conf
10976 input bindings (see '\-input keylist' for the full list)
10979 ~/.mplayer/\:gui.conf
10980 GUI configuration file
10983 ~/.mplayer/\:gui.pl
10984 GUI playlist
10987 ~/.mplayer/\:font/
10988 font directory (There must be a font.desc file and files with .RAW extension.)
10991 ~/.mplayer/\:DVDkeys/
10992 cached CSS keys
10995 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
10996 in this order:
10998 /path/\:to/\:movie.sub
11000 ~/.mplayer/\:sub/\:movie.sub
11002 .PD 1
11005 .\" --------------------------------------------------------------------------
11006 .\" Examples
11007 .\" --------------------------------------------------------------------------
11009 .SH EXAMPLES OF MPLAYER USAGE
11012 .B Quickstart DVD playing:
11014 mplayer dvd://1
11018 .B Play in Japanese with English subtitles:
11020 mplayer dvd://1 \-alang ja \-slang en
11024 .B Play only chapters 5, 6, 7:
11026 mplayer dvd://1 \-chapter 5\-7
11030 .B Play only titles 5, 6, 7:
11032 mplayer dvd://5\-7
11036 .B Play a multiangle DVD:
11038 mplayer dvd://1 \-dvdangle 2
11042 .B Play from a different DVD device:
11044 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
11048 .B Play DVD video from a directory with VOB files:
11050 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
11054 .B Copy a DVD title to hard disk, saving to file "title1.vob":
11056 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
11060 .B Play a DVD with dvdnav from path /dev/sr1:
11062 mplayer dvdnav:////dev/sr1
11066 .B Stream from HTTP:
11068 mplayer http://mplayer.hq/example.avi
11072 .B Stream using RTSP:
11074 mplayer rtsp://server.example.com/streamName
11078 .B Convert subtitles to MPsub format:
11080 mplayer dummy.avi \-sub source.sub \-dumpmpsub
11084 .B Convert subtitles to MPsub format without watching the movie:
11086 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
11090 .B input from standard V4L:
11092 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
11096 .B Playback on Zoran cards (old style, deprecated):
11098 mplayer \-vo zr \-vf scale=352:288 file.avi
11102 .B Playback on Zoran cards (new style):
11104 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
11108 .B Play DTS-CD with passthrough:
11110 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
11113 You can also use \-afm hwac3 instead of \-ac hwdts.
11114 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
11115 If your external receiver supports decoding raw DTS streams,
11116 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
11119 .B Play a 6-channel AAC file with only two speakers:
11121 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
11124 You might want to play a bit with the pan values (e.g multiply with a value) to
11125 increase volume or avoid clipping.
11128 .B checkerboard invert with geq filter:
11130 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'
11134 .SH EXAMPLES OF MENCODER USAGE
11137 .B Encode DVD title #2, only selected chapters:
11139 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11143 .B Encode DVD title #2, resizing to 640x480:
11145 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11149 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
11151 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11155 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
11157 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
11161 .B The same, but with MJPEG compression:
11163 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
11167 .B Encode all *.jpg files in the current directory:
11169 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
11173 .B Encode from a tuner (specify a format with \-vf format):
11175 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
11179 .B Encode from a pipe:
11181 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
11185 .\" --------------------------------------------------------------------------
11186 .\" Bugs, authors, standard disclaimer
11187 .\" --------------------------------------------------------------------------
11189 .SH BUGS
11190 Don't panic.
11191 If you find one, report it to us, but please make sure you have read all
11192 of the documentation first.
11193 Also look out for smileys. :)
11194 Many bugs are the result of incorrect setup or parameter usage.
11195 The bug reporting section of the documentation
11196 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
11197 explains how to create useful bug reports.
11201 .SH AUTHORS
11202 MPlayer was initially written by Arpad Gereoffy.
11203 See the AUTHORS file for a list of some of the many other contributors.
11205 MPlayer is (C) 2000\-2009 The MPlayer Team
11207 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
11208 It is maintained by Diego Biurrun.
11209 Please send mails about it to the MPlayer-DOCS mailing list.
11210 Translation specific mails belong on the MPlayer-translations mailing list.
11211 .\" end of file