Update mplayer sources
[mplayer/kovensky.git] / DOCS / man / en / mplayer.1
blob765d25ba1dc262758298c8c31594542e9fbb474a
1 .\" $Revision$
2 .\" MPlayer (C) 2000-2010 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-03-25" "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 mencoder
128 [options] file
129 [file|URL|\-] [\-o file | file://file | smb://[user:pass@]host/filepath]
132 .B mencoder
133 [options] file1
134 [specific options] [file2] [specific options]
138 .\" --------------------------------------------------------------------------
139 .\" Description
140 .\" --------------------------------------------------------------------------
142 .SH DESCRIPTION
143 .B mplayer
144 is a movie player for Linux (runs on many other platforms and CPU
145 architectures, see the documentation).
146 It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM,
147 MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
148 native and binary codecs.
149 You can watch VCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies,
150 too.
152 MPlayer supports a wide range of video and audio output drivers.
153 It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
154 Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers),
155 VESA (on every VESA-compatible card, even without X11), some low-level
156 card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder
157 boards, such as the Siemens DVB, Hauppauge PVR (IVTV), DXR2 and DXR3/\:Hollywood+.
158 Most of them support software or hardware scaling, so you can enjoy movies in
159 fullscreen mode.
161 MPlayer has an onscreen display (OSD) for status information, nice big
162 antialiased shaded subtitles and visual feedback for keyboard controls.
163 European/\:ISO8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean
164 fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM,
165 SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and
166 DVD subtitles (SPU streams, VOBsub and Closed Captions).
168 .B mencoder
169 (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode
170 MPlayer-playable movies (see above) to other MPlayer-playable formats (see
171 below).
172 It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and
173 PCM/\:MP3/\:VBRMP3 audio in 1, 2 or 3 passes.
174 Furthermore it has stream copying abilities, a powerful filter system (crop,
175 expand, flip, postprocess, rotate, scale, noise, RGB/\:YUV conversion) and
176 more.
178 .B gmplayer
179 is MPlayer with a graphical user interface.
180 It has the same options as MPlayer.
182 Usage examples to get you started quickly can be found at the end
183 of this man page.
185 .B Also see the HTML documentation!
188 .\" --------------------------------------------------------------------------
189 .\" interactive control
190 .\" --------------------------------------------------------------------------
192 .SH "INTERACTIVE CONTROL"
193 MPlayer has a fully configurable, command-driven control layer
194 which allows you to control MPlayer using keyboard, mouse, joystick
195 or remote control (with LIRC).
196 See the \-input option for ways to customize it.
199 .B keyboard control
200 .PD 0
202 .IPs "<\- and \->"
203 Seek backward/\:forward 10 seconds.
204 .IPs "up and down"
205 Seek forward/\:backward 1 minute.
206 .IPs "pgup and pgdown"
207 Seek forward/\:backward 10 minutes.
208 .IPs "[ and ]"
209 Decrease/increase current playback speed by 10%.
210 .IPs "{ and }"
211 Halve/double current playback speed.
212 .IPs "backspace"
213 Reset playback speed to normal.
214 .IPs "< and >"
215 Go backward/\:forward in the playlist.
216 .IPs "ENTER"
217 Go forward in the playlist, even over the end.
218 .IPs "HOME and END"
219 next/\:previous playtree entry in the parent list
220 .IPs "INS and DEL (ASX playlist only)"
221 next/\:previous alternative source.
222 .IPs "p / SPACE"
223 Pause (pressing again unpauses).
224 .IPs ".\ \ \ \ "
225 Step forward.
226 Pressing once will pause movie, every consecutive press will play one frame
227 and then go into pause mode again (any other key unpauses).
228 .IPs "q / ESC"
229 Stop playing and quit.
230 .IPs "U\ \ \ \ "
231 Stop playing (and quit if \-idle is not used).
232 .IPs "+ and \-"
233 Adjust audio delay by +/\- 0.1 seconds.
234 .IPs "/ and *"
235 Decrease/\:increase volume.
236 .IPs "9 and 0"
237 Decrease/\:increase volume.
238 .IPs "( and )"
239 Adjust audio balance in favor of left/\:right channel.
240 .IPs "m\ \ \ \ "
241 Mute sound.
242 .IPs "_ (MPEG-TS, AVI and libavformat only)"
243 Cycle through the available video tracks.
244 .IPs "# (DVD, MPEG, Matroska, AVI and libavformat only)"
245 Cycle through the available audio tracks.
246 .IPs "TAB (MPEG-TS and libavformat only)"
247 Cycle through the available programs.
248 .IPs "f\ \ \ \ "
249 Toggle fullscreen (also see \-fs).
250 .IPs "T\ \ \ \ "
251 Toggle stay-on-top (also see \-ontop).
252 .IPs "w and e"
253 Decrease/\:increase pan-and-scan range.
254 .IPs "o\ \ \ \ "
255 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
256 .IPs "d\ \ \ \ "
257 Toggle frame dropping states: none / skip display / skip decoding
258 (see \-framedrop and \-hardframedrop).
259 .IPs "v\ \ \ \ "
260 Toggle subtitle visibility.
261 .IPs "j\ \ \ \ "
262 Cycle through the available subtitles.
263 .IPs "y and g"
264 Step forward/backward in the subtitle list.
265 .IPs "F\ \ \ \ "
266 Toggle displaying "forced subtitles".
267 .IPs "a\ \ \ \ "
268 Toggle subtitle alignment: top / middle / bottom.
269 .IPs "x and z"
270 Adjust subtitle delay by +/\- 0.1 seconds.
271 .IPs "r and t"
272 Move subtitles up/down.
273 .IPs "i (\-edlout mode only)"
274 Set start or end of an EDL skip and write it out to the given file.
275 .IPs "s (\-vf screenshot only)"
276 Take a screenshot.
277 .IPs "S (\-vf screenshot only)"
278 Start/stop taking screenshots.
279 .IPs "I\ \ \ \ "
280 Show filename on the OSD.
281 .IPs "! and @"
282 Seek to the beginning of the previous/next chapter.
283 .IPs "D (\-vo xvmc, \-vo vdpau, \-vf yadif, \-vf kerndeint only)"
284 Activate/deactivate deinterlacer.
285 .IPs "A\ \ \ \ "
286 Cycle through the available DVD angles.
287 .IPs "c (currently -vo vdpau and -vo xv only)"
288 Change YUV colorspace.
290 .PD 1
293 (The following keys are valid only when using a hardware accelerated video
294 output (xv, (x)vidix, (x)mga, etc), the software equalizer
295 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
298 .PD 0
300 .IPs "1 and 2"
301 Adjust contrast.
302 .IPs "3 and 4"
303 Adjust brightness.
304 .IPs "5 and 6"
305 Adjust hue.
306 .IPs "7 and 8"
307 Adjust saturation.
309 .PD 1
312 (The following keys are valid only when using the quartz or corevideo
313 video output driver.)
316 .PD 0
318 .IPs "command + 0"
319 Resize movie window to half its original size.
320 .IPs "command + 1"
321 Resize movie window to its original size.
322 .IPs "command + 2"
323 Resize movie window to double its original size.
324 .IPs "command + f"
325 Toggle fullscreen (also see \-fs).
326 .IPs "command + [ and command + ]"
327 Set movie window alpha.
329 .PD 1
332 (The following keys are valid only when using the sdl
333 video output driver.)
336 .PD 0
338 .IPs "c\ \ \ \ "
339 Cycle through available fullscreen modes.
340 .IPs "n\ \ \ \ "
341 Restore original mode.
343 .PD 1
346 (The following keys are valid if you have a keyboard
347 with multimedia keys.)
350 .PD 0
352 .IPs PAUSE
353 Pause.
354 .IPs "STOP\ "
355 Stop playing and quit.
356 .IPs "PREVIOUS and NEXT"
357 Seek backward/\:forward 1 minute.
359 .PD 1
362 (The following keys are only valid if you compiled with TV or DVB input
363 support and will take precedence over the keys defined above.)
366 .PD 0
368 .IPs "h and k"
369 Select previous/\:next channel.
370 .IPs "n\ \ \ \ "
371 Change norm.
372 .IPs "u\ \ \ \ "
373 Change channel list.
375 .PD 1
378 (The following keys are only valid if you compiled with dvdnav
379 support: They are used to navigate the menus.)
382 .PD 0
384 .IPs "keypad 8"
385 Select button up.
386 .IPs "keypad 2"
387 Select button down.
388 .IPs "keypad 4"
389 Select button left.
390 .IPs "keypad 6"
391 Select button right.
392 .IPs "keypad 5"
393 Return to main menu.
394 .IPs "keypad 7"
395 Return to nearest menu (the order of preference is: chapter->title->root).
396 .IPs "keypad ENTER"
397 Confirm choice.
399 .PD 1
403 (The following keys are only valid if teletext support is enabled during
404 compilation: They are used for controlling TV teletext, whose data may come
405 from either an analog TV source or an MPEG Transport Stream.)
408 .PD 0
410 .IPs "X\ \ \ \ "
411 Switch teletext on/\:off.
412 .IPs "Q and W"
413 Go to next/\:prev teletext page.
415 .PD 1
420 .B mouse control
421 .PD 0
423 .IPs "button 3 and button 4"
424 Seek backward/\:forward 1 minute.
425 .IPs "button 5 and button 6"
426 Decrease/\:increase volume.
428 .PD 1
431 .B joystick control
432 .PD 0
434 .IPs "left and right"
435 Seek backward/\:forward 10 seconds.
436 .IPs "up and down"
437 Seek forward/\:backward 1 minute.
438 .IPs "button 1"
439 Pause.
440 .IPs "button 2"
441 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
442 .IPs "button 3 and button 4"
443 Decrease/\:increase volume.
445 .PD 1
448 .\" --------------------------------------------------------------------------
449 .\" Usage
450 .\" --------------------------------------------------------------------------
452 .SH "USAGE"
453 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
454 \-fs option is \-nofs.
456 If an option is marked as (XXX only), it will only work in combination with
457 the XXX option or if XXX is compiled in.
459 .I NOTE:
460 The suboption parser (used for example for \-ao pcm suboptions) supports
461 a special kind of string-escaping intended for use with external GUIs.
463 It has the following format:
465 %n%string_of_length_n
467 .I EXAMPLES:
469 mplayer \-ao pcm:file=%10%C:test.wav test.avi
471 Or in a script:
473 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
476 .\" --------------------------------------------------------------------------
477 .\" Configuration files
478 .\" --------------------------------------------------------------------------
480 .SH "CONFIGURATION FILES"
481 You can put all of the options in configuration files which will be read
482 every time MPlayer/MEncoder is run.
483 The system-wide configuration file 'mplayer.conf' is in your configuration
484 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
485 specific one is '~/\:.mplayer/\:config'.
486 The configuration file for MEncoder is 'mencoder.conf' in your configuration
487 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
488 user specific one is '~/\:.mplayer/\:mencoder.conf'.
489 User specific options override system-wide options and options given on the
490 command line override either.
491 The syntax of the configuration files is 'option=<value>', everything after
492 a '#' is considered a comment.
493 Options that work without values can be enabled by setting them to 'yes'
494 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
495 Even suboptions can be specified in this way.
497 You can also write file-specific configuration files.
498 If you wish to have a configuration file for a file called 'movie.avi', create a file
499 named 'movie.avi.conf' with the file-specific options in it and put it in
500 ~/.mplayer/.
501 You can also put the configuration file in the same directory as the file to
502 be played, as long as you give the \-use\-filedir\-conf option (either on the
503 command line or in your global config file).
504 If a file-specific configuration file is found in the same directory, no
505 file-specific configuration is loaded from ~/.mplayer.
506 In addition, the \-use\-filedir\-conf option enables directory-specific
507 configuration files.
508 For this, MPlayer first tries to load a mplayer.conf from the same directory as
509 the file played and then tries to load any file-specific configuration.
511 .I EXAMPLE MPLAYER CONFIGURATION FILE:
512 .sp 1
514 # Use Matrox driver by default.
515 vo=xmga
516 # I love practicing handstands while watching videos.
517 flip=yes
518 # Decode/encode multiple files from PNG,
519 # start with mf://filemask
520 mf=type=png:fps=25
521 # Eerie negative images are cool.
522 vf=eq2=1.0:\-0.8
525 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
526 .sp 1
528 # Make MEncoder output to a default filename.
529 o=encoded.avi
530 # The next 4 lines allow mencoder tv:// to start capturing immediately.
531 oac=pcm=yes
532 ovc=lavc=yes
533 lavcopts=vcodec=mjpeg
534 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
535 # more complex default encoding option set
536 lavcopts=vcodec=mpeg4:autoaspect=1
537 lameopts=aq=2:vbr=4
538 ovc=lavc=1
539 oac=lavc=1
540 passlogfile=pass1stats.log
541 noautoexpand=1
542 subfont-autoscale=3
543 subfont-osd-scale=6
544 subfont-text-scale=4
545 subalign=2
546 subpos=96
547 spuaa=20
550 .\" --------------------------------------------------------------------------
551 .\" Profiles
552 .\" --------------------------------------------------------------------------
554 .SH "PROFILES"
555 To ease working with different configurations profiles can be defined in the
556 configuration files.
557 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
558 All following options will be part of the profile.
559 A description (shown by \-profile help) can be defined with the profile-desc
560 option.
561 To end the profile, start another one or use the profile name 'default'
562 to continue with normal options.
565 .I "EXAMPLE MPLAYER PROFILE:"
566 .sp 1
569 [protocol.dvd]
570 profile-desc="profile for dvd:// streams"
571 vf=pp=hb/vb/dr/al/fd
572 alang=en
574 [protocol.dvdnav]
575 profile-desc="profile for dvdnav:// streams"
576 profile=protocol.dvd
577 mouse-movements=yes
578 nocache=yes
580 [extension.flv]
581 profile-desc="profile for .flv files"
582 flip=yes
584 [vo.pnm]
585 outdir=/tmp
587 [ao.alsa]
588 device=spdif
591 .I "EXAMPLE MENCODER PROFILE:"
592 .sp 1
595 [mpeg4]
596 profile-desc="MPEG4 encoding"
597 ovc=lacv=yes
598 lavcopts=vcodec=mpeg4:vbitrate=1200
600 [mpeg4\-hq]
601 profile-desc="HQ MPEG4 encoding"
602 profile=mpeg4
603 lavcopts=mbd=2:trell=yes:v4mv=yes
606 .\" --------------------------------------------------------------------------
607 .\" Options
608 .\" --------------------------------------------------------------------------
610 .SH "GENERAL OPTIONS"
613 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
614 Override the standard search path and use the specified file
615 instead of the builtin codecs.conf.
618 .B \-include <configuration file>
619 Specify configuration file to be parsed after the default ones.
622 .B \-list\-options
623 Prints all available options.
626 .B \-msgcharset <charset>
627 Convert console messages to the specified character set (default: autodetect).
628 Text will be in the encoding specified with the \-\-charset configure option.
629 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
631 .I NOTE:
632 The option takes effect after command line parsing has finished.
633 The MPLAYER_CHARSET environment variable can help you get rid of
634 the first lines of garbled output.
637 .B \-msgcolor
638 Enable colorful console output on terminals that support ANSI color.
641 .B \-msglevel <all=<level>:<module>=<level>:...>
642 Control verbosity directly for each module.
643 The 'all' module changes the verbosity of all the modules not
644 explicitly specified on the command line.
645 See '\-msglevel help' for a list of all modules.
647 .I NOTE:
648 Some messages are printed before the command line is parsed and are
649 therefore not affected by \-msglevel.
650 To control these messages you have to use the MPLAYER_VERBOSE environment
651 variable, see its description below for details.
653 Available levels:
654 .PD 0
655 .RSs
656 .IPs "\-1"
657 complete silence
658 .IPs " 0"
659 fatal messages only
660 .IPs " 1"
661 error messages
662 .IPs " 2"
663 warning messages
664 .IPs " 3"
665 short hints
666 .IPs " 4"
667 informational messages
668 .IPs " 5"
669 status messages (default)
670 .IPs " 6"
671 verbose messages
672 .IPs " 7"
673 debug level 2
674 .IPs " 8"
675 debug level 3
676 .IPs " 9"
677 debug level 4
679 .PD 1
682 .B \-msgmodule
683 Prepend module name in front of each console message.
686 .B \-noconfig <options>
687 Do not parse selected configuration files.
689 .I NOTE:
690 If \-include or \-use\-filedir\-conf options are
691 specified at the command line, they will be honoured.
692 .sp 1
693 Available options are:
694 .PD 0
695 .RSs
696 .IPs "all\ \ "
697 all configuration files
698 .IPs system
699 system configuration file
700 .IPs "user\ "
701 user configuration file
703 .PD 1
706 .B "\-quiet\ "
707 Make console output less verbose; in particular, prevents the status line
708 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
709 Particularly useful on slow terminals or broken ones which do not properly
710 handle carriage return (i.e.\& \\r).
713 .B \-priority <prio> (Windows and OS/2 only)
714 Set process priority for MPlayer according to the predefined
715 priorities available under Windows and OS/2.
716 Possible values of <prio>:
717 .RSs
718 idle|belownormal|normal|abovenormal|high|realtime
720 .sp 1
722 .I WARNING:
723 Using realtime priority can cause system lockup.
727 .B \-profile <profile1,profile2,...>
728 Use the given profile(s), \-profile help displays a list of the defined profiles.
731 .B \-really\-quiet (also see \-quiet)
732 Display even less output and status messages than with \-quiet.
735 .B \-show\-profile <profile>
736 Show the description and content of a profile.
739 .B \-use\-filedir\-conf
740 Look for a file-specific configuration file in the same directory as
741 the file that is being played.
743 .I WARNING:
744 May be dangerous if playing from untrusted media.
747 .B "\-v\ \ \ \ \ "
748 Increment verbosity level, one level for each \-v
749 found on the command line.
753 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
756 .B \-autoq <quality> (use with \-vf [s]pp)
757 Dynamically changes the level of postprocessing depending on the available spare
758 CPU time.
759 The number you specify will be the maximum level used.
760 Usually you can use some big number.
761 You have to use \-vf [s]pp without parameters in order for this to work.
764 .B \-autosync <factor>
765 Gradually adjusts the A/V sync based on audio delay measurements.
766 Specifying \-autosync 0, the default, will cause frame timing to be based
767 entirely on audio delay measurements.
768 Specifying \-autosync 1 will do the same, but will subtly change the A/V
769 correction algorithm.
770 An uneven video framerate in a movie which plays fine with \-nosound can
771 often be helped by setting this to an integer value greater than 1.
772 The higher the value, the closer the timing will be to \-nosound.
773 Try \-autosync 30 to smooth out problems with sound drivers which do
774 not implement a perfect audio delay measurement.
775 With this value, if large A/V sync offsets occur, they will only take about
776 1 or 2 seconds to settle out.
777 This delay in reaction time to sudden A/V offsets should be the only
778 side-effect of turning this option on, for all sound drivers.
781 .B \-benchmark
782 Prints some statistics on CPU usage and dropped frames at the end of playback.
783 Use in combination with \-nosound and \-vo null for benchmarking only the
784 video codec.
786 .I NOTE:
787 With this option MPlayer will also ignore frame duration when playing
788 only video (you can think of that as infinite fps).
791 .B \-colorkey <number>
792 Changes the colorkey to an RGB value of your choice.
793 0x000000 is black and 0xffffff is white.
794 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
795 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
796 drivers.
799 .B \-nocolorkey
800 Disables colorkeying.
801 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
802 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
803 drivers.
806 .B \-correct\-pts
807 Switches MPlayer to a mode where timestamps for video frames
808 are calculated differently and video filters which add new frames or
809 modify timestamps of existing ones are supported.
810 The more accurate timestamps can be visible for example when playing
811 subtitles timed to scene changes with the \-ass option.
812 Without \-correct\-pts the subtitle timing will typically be off by some frames.
813 This option does not work correctly with some demuxers and codecs.
816 .B \-crash\-debug (DEBUG CODE)
817 Automatically attaches gdb upon crash or SIGTRAP.
818 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
821 .B \-doubleclick\-time
822 Time in milliseconds to recognize two consecutive button presses as
823 a double-click (default: 300).
824 Set to 0 to let your windowing system decide what a double-click is
825 (\-vo directx only).
827 .I NOTE:
828 You will get slightly different behaviour depending on whether you bind
829 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
832 .B \-edlout <filename>
833 Creates a new file and writes edit decision list (EDL) records to it.
834 During playback, the user hits 'i' to mark the start or end of a skip block.
835 This provides a starting point from which the user can fine-tune EDL entries
836 later.
837 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
840 .B \-nofixed\-vo
841 \-fixed\-vo enforces a fixed video system for multiple files (one
842 (un)initialization for all files).
843 Therefore only one window will be opened for all files.
844 Now enabled by default, use \-nofixed\-vo to disable and create a new window
845 whenever the video stream changes.
846 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
847 xmga, xv, xvidix and dfbmga.
850 .B \-framedrop (also see \-hardframedrop, experimental without \-nocorrect\-pts)
851 Skip displaying some frames to maintain A/V sync on slow systems.
852 Video filters are not applied to such frames.
853 For B-frames even decoding is skipped completely.
856 .B \-h, \-help, \-\-help
857 Show short summary of options.
860 .B \-hardframedrop (experimental without \-nocorrect\-pts)
861 More intense frame dropping (breaks decoding).
862 Leads to image distortion!
863 Note that especially the libmpeg2 decoder may crash with this,
864 so consider using "\-vc ffmpeg12,".
867 .B \-heartbeat\-cmd
868 Command that is executed every 30 seconds during playback via system() -
869 i.e.\& using the shell.
870 .sp 1
871 .I NOTE:
872 MPlayer uses this command without any checking, it is your responsibility
873 to ensure it does not cause security problems (e.g.\& make sure to use full
874 paths if "." is in your path like on Windows).
875 It also only works when playing video (i.e.\& not with \-novideo but works with \-vo null).
876 .sp 1
877 This can be "misused" to disable screensavers that do not support the proper
878 X API (also see \-stop\-xscreensaver).
879 If you think this is too complicated, ask the author of the screensaver
880 program to support the proper X APIs.
881 .sp 1
882 .I EXAMPLE for xscreensaver:
883 mplayer \-heartbeat\-cmd "xscreensaver\-command \-deactivate" file
884 .sp 1
885 .I EXAMPLE for GNOME screensaver:
886 mplayer \-heartbeat\-cmd "gnome\-screensaver\-command \-p" file
888 .PD 1
891 .B \-identify
892 Shorthand for \-msglevel identify=4.
893 Show file parameters in an easily parseable format.
894 Also prints more detailed information about subtitle and audio
895 track languages and IDs.
896 In some cases you can get more information by using \-msglevel identify=6.
897 For example, for a DVD it will list the chapters and time length of each title,
898 as well as a disk ID.
899 Combine this with \-frames 0 to suppress all output.
900 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
901 (hopefully) shellescapes the filenames.
904 .B \-idle (also see \-slave)
905 Makes MPlayer wait idly instead of quitting when there is no file to play.
906 Mostly useful in slave mode where MPlayer can be controlled
907 through input commands.
910 .B \-input <commands>
911 This option can be used to configure certain parts of the input system.
912 Paths are relative to ~/.mplayer/.
914 .I NOTE:
915 Autorepeat is currently only supported by joysticks.
916 .sp 1
917 Available commands are:
918 .sp 1
919 .PD 0
920 .RSs
921 .IPs conf=<filename>
922 Specify input configuration file other than the default
923 ~/\:.mplayer/\:input.conf.
924 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
925 .IPs ar-dev=<device>
926 Device to be used for Apple IR Remote (default is autodetected, Linux only).
927 .IPs ar-delay
928 Delay in milliseconds before we start to autorepeat a key (0 to disable).
929 .IPs ar-rate
930 Number of key presses to generate per second on autorepeat.
931 .IPs (no)default-bindings
932 Use the key bindings that MPlayer ships with by default.
933 .IPs keylist
934 Prints all keys that can be bound to commands.
935 .IPs cmdlist
936 Prints all commands that can be bound to keys.
937 .IPs js-dev
938 Specifies the joystick device to use (default: /dev/\:input/\:js0).
939 .IPs file=<filename>
940 Read commands from the given file.
941 Mostly useful with a FIFO.
943 .I NOTE:
944 When the given file is a FIFO MPlayer opens both ends so you can do
945 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
947 .PD 1
950 .B \-key\-fifo\-size <2\-65000>
951 Specify the size of the FIFO that buffers key events (default: 7).
952 A FIFO of size n can buffer (n\-1) events.
953 If it is too small some events may be lost
954 (leading to "stuck mouse buttons" and similar effects).
955 If it is too big, MPlayer may seem to hang while it
956 processes the buffered events.
957 To get the same behavior as before this option was introduced,
958 set it to 2 for Linux or 1024 for Windows.
961 .B \-lircconf <filename> (LIRC only)
962 Specifies a configuration file for LIRC (default: ~/.lircrc).
965 .B \-list\-properties
966 Print a list of the available properties.
969 .B \-loop <number>
970 Loops movie playback <number> times.
971 0 means forever.
974 .B \-menu (OSD menu only)
975 Turn on OSD menu support.
978 .B \-menu\-cfg <filename> (OSD menu only)
979 Use an alternative menu.conf.
982 .B \-menu\-chroot <path> (OSD menu only)
983 Chroot the file selection menu to a specific location.
984 .sp 1
985 .I EXAMPLE:
986 .PD 0
987 .RSs
988 .IPs "\-menu\-chroot /home"
989 Will restrict the file selection menu to /\:home and downward (i.e.\& no
990 access to / will be possible, but /home/user_name will).
992 .PD 1
995 .B \-menu\-keepdir (OSD menu only)
996 File browser starts from the last known location instead of current directory.
999 .B \-menu\-root <value> (OSD menu only)
1000 Specify the main menu.
1003 .B \-menu\-startup (OSD menu only)
1004 Display the main menu at MPlayer startup.
1007 .B \-mouse\-movements
1008 Permit MPlayer to receive pointer events reported by the video
1009 output driver.
1010 Necessary to select the buttons in DVD menus.
1011 Supported for X11-based VOs (x11, xv, xvmc, etc) and the gl, gl2, direct3d and
1012 corevideo VOs.
1015 .B \-noar
1016 Turns off AppleIR remote support.
1019 .B \-noconsolecontrols
1020 Prevent MPlayer from reading key events from standard input.
1021 Useful when reading data from standard input.
1022 This is automatically enabled when \- is found on the command line.
1023 There are situations where you have to set it manually, e.g.\&
1024 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1025 in a playlist or intend to read from stdin later on via the loadfile or
1026 loadlist slave commands.
1029 .B \-nojoystick
1030 Turns off joystick support.
1033 .B \-nolirc
1034 Turns off LIRC support.
1037 .B \-nomouseinput
1038 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1039 on this option).
1041 .B \-noordered\-chapters
1042 Disable support for Matroska ordered chapters.
1043 MPlayer will not load or search for video segments from other files,
1044 and will also ignore any chapter order specified for the main file.
1047 .B \-pts\-association\-mode <mode number>
1048 Select the method used to determine which container packet timestamp
1049 corresponds to a particular output frame from the video decoder.
1050 .PD 0
1051 .RSs
1052 .IPs 0
1053 Try to pick a working mode from the ones below automatically (default)
1054 .IPs 1
1055 Use decoder reordering functionality.
1056 .IPs 2
1057 Maintain a buffer of unused pts values and use the lowest value for the frame.
1059 .PD 1
1062 .B \-rtc (RTC only)
1063 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1064 mechanism.
1065 This wakes up the process every 1/1024 seconds to check the current time.
1066 Useless with modern Linux kernels configured for desktop use as they already
1067 wake up the process with similar accuracy when using normal timed sleep.
1070 .B \-playing\-msg <string>
1071 Print out a string before starting playback.
1072 The following expansions are supported:
1073 .RSs
1074 .IPs ${NAME}
1075 Expand to the value of the property NAME.
1076 .IPs ?(NAME:TEXT)
1077 Expand TEXT only if the property NAME is available.
1078 .IPs ?(!NAME:TEXT)
1079 Expand TEXT only if the property NAME is not available.
1083 .B \-playlist <filename>
1084 Play files according to a playlist file (ASX, Winamp, SMIL, or
1085 one-file-per-line format).
1087 .I NOTE:
1088 This option is considered an entry so options found after it will apply
1089 only to the elements of this playlist.
1091 FIXME: This needs to be clarified and documented thoroughly.
1094 .B \-rtc\-device <device>
1095 Use the specified device for RTC timing.
1098 .B \-shuffle
1099 Play files in random order.
1102 .B \-slave (also see \-input)
1103 Switches on slave mode, in which MPlayer works as a backend for other programs.
1104 Instead of intercepting keyboard events, MPlayer will read commands separated
1105 by a newline (\\n) from stdin.
1107 .I NOTE:
1108 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1109 for their description.
1110 Also, this is not intended to disable other inputs, e.g.\& via the video window,
1111 use some other method like \-input nodefault\-binds:conf=/dev/null for that.
1114 .B \-softsleep
1115 Time frames by repeatedly checking the current time instead of asking the
1116 kernel to wake up MPlayer at the correct time.
1117 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1118 Comes at the price of higher CPU consumption.
1121 .B \-sstep <sec>
1122 Skip <sec> seconds after every frame.
1123 The normal framerate of the movie is kept, so playback is accelerated.
1124 Since MPlayer can only seek to the next keyframe this may be inexact.
1128 .SH "DEMUXER/STREAM OPTIONS"
1131 .B \-a52drc <level>
1132 Select the Dynamic Range Compression level for AC-3 audio streams.
1133 <level> is a float value ranging from 0 to 1, where 0 means no compression
1134 and 1 (which is the default) means full compression (make loud passages more
1135 silent and vice versa).
1136 This option only shows an effect if the AC-3 stream contains the required range
1137 compression information.
1140 .B \-aid <ID> (also see \-alang)
1141 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1142 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1143 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1144 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1145 (if present) with the chosen audio stream.
1148 .B \-ausid <ID> (also see \-alang)
1149 Select audio substream channel.
1150 Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled
1151 by the native demuxer (not by libavformat).
1152 The format type may not be correctly identified because of how this information
1153 (or lack thereof) is embedded in the stream, but it will demux correctly the
1154 audio streams when multiple substreams are present.
1155 MPlayer prints the available substream IDs when run with \-identify.
1158 .B \-alang <language code[,language code,...]> (also see \-aid)
1159 Specify a priority list of audio languages to use.
1160 Different container formats employ different language codes.
1161 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1162 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1163 MPlayer prints the available languages when run in verbose (\-v) mode.
1164 .sp 1
1165 .I EXAMPLE:
1166 .PD 0
1167 .RSs
1168 .IPs "mplayer dvd://1 \-alang hu,en"
1169 Chooses the Hungarian language track on a DVD and falls back on English if
1170 Hungarian is not available.
1171 .IPs "mplayer \-alang jpn example.mkv"
1172 Plays a Matroska file in Japanese.
1174 .PD 1
1177 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1178 Force audio demuxer type for \-audiofile.
1179 Use a '+' before the name to force it, this will skip some checks!
1180 Give the demuxer name as printed by \-audio\-demuxer help.
1181 For backward compatibility it also accepts the demuxer ID as defined in
1182 libmpdemux/\:demuxer.h.
1183 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1186 .B \-audiofile <filename>
1187 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1188 movie.
1191 .B \-audiofile\-cache <kBytes>
1192 Enables caching for the stream used by \-audiofile, using the specified
1193 amount of memory.
1196 .B \-reuse\-socket (udp:// only)
1197 Allows a socket to be reused by other processes as soon as it is closed.
1200 .B \-bandwidth <Bytes> (network only)
1201 Specify the maximum bandwidth for network streaming (for servers that are
1202 able to send content in different bitrates).
1203 Useful if you want to watch live streamed media behind a slow connection.
1204 With Real RTSP streaming, it is also used to set the maximum delivery
1205 bandwidth allowing faster cache filling and stream dumping.
1208 .B \-cache <kBytes>
1209 This option specifies how much memory (in kBytes) to use when precaching a
1210 file or URL.
1211 Especially useful on slow media.
1214 .B \-nocache
1215 Turns off caching.
1218 .B \-cache\-min <percentage>
1219 Playback will start when the cache has been filled up to <percentage>
1220 of the total.
1223 .B \-cache\-seek\-min <percentage>
1224 If a seek is to be made to a position within <percentage> of the cache size
1225 from the current position, MPlayer will wait for the cache to be filled to
1226 this position rather than performing a stream seek (default: 50).
1229 .B \-cdda <option1:option2> (CDDA only)
1230 This option can be used to tune the CD Audio reading feature of MPlayer.
1231 .sp 1
1232 Available options are:
1233 .RSs
1234 .IPs speed=<value>
1235 Set CD spin speed.
1236 .IPs paranoia=<0\-2>
1237 Set paranoia level.
1238 Values other than 0 seem to break playback of anything but the first track.
1239 .RSss
1240 0: disable checking (default)
1242 1: overlap checking only
1244 2: full data correction and verification
1245 .REss
1246 .IPs generic-dev=<value>
1247 Use specified generic SCSI device.
1248 .IPs sector-size=<value>
1249 Set atomic read size.
1250 .IPs overlap=<value>
1251 Force minimum overlap search during verification to <value> sectors.
1252 .IPs toc-bias
1253 Assume that the beginning offset of track 1 as reported in the TOC will be
1254 addressed as LBA 0.
1255 Some Toshiba drives need this for getting track boundaries correct.
1256 .IPs toc-offset=<value>
1257 Add <value> sectors to the values reported when addressing tracks.
1258 May be negative.
1259 .IPs (no)skip
1260 (Never) accept imperfect data reconstruction.
1264 .B \-cdrom\-device <path to device>
1265 Specify the CD-ROM device (default: /dev/\:cdrom).
1268 .B \-channels <number> (also see \-af channels)
1269 Request the number of playback channels (default: 2).
1270 MPlayer asks the decoder to decode the audio into as many channels as
1271 specified.
1272 Then it is up to the decoder to fulfill the requirement.
1273 This is usually only important when playing videos with AC-3 audio (like DVDs).
1274 In that case liba52 does the decoding by default and correctly downmixes the
1275 audio into the requested number of channels.
1276 To directly control the number of output channels independently of how many
1277 channels are decoded, use the channels filter.
1279 .I NOTE:
1280 This option is honored by codecs (AC-3 only), filters (surround) and audio
1281 output drivers (OSS at least).
1282 .sp 1
1283 Available options are:
1284 .sp 1
1285 .PD 0
1286 .RSs
1287 .IPs 2
1288 stereo
1289 .IPs 4
1290 surround
1291 .IPs 6
1292 full 5.1
1293 .IPs 8
1294 full 7.1
1296 .PD 1
1299 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1300 Specify which chapter to start playing at.
1301 Optionally specify which chapter to end playing at (default: 1).
1304 .B \-edition <edition ID> (Matroska, MPlayer only)
1305 Specify the edition (set of chapters) to use, where 0 is the first. If set to
1306 -1 (the default), MPlayer will choose the first edition declared as a default,
1307 or if there is no default, the first edition defined.
1310 .B \-cookies (network only)
1311 Send cookies when making HTTP requests.
1314 .B \-cookies\-file <filename> (network only)
1315 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1316 and skip reading from default locations.
1317 The file is assumed to be in Netscape format.
1320 .B \-delay <sec>
1321 audio delay in seconds (positive or negative float value)
1323 Negative values delay the audio, and positive values delay the video.
1324 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1326 .I NOTE:
1327 When used with MEncoder, this is not guaranteed to work correctly
1328 with \-ovc copy; use \-audio\-delay instead.
1331 .B \-ignore\-start
1332 Ignore the specified starting time for streams in AVI files.
1333 In MPlayer, this nullifies stream delays in files encoded with
1334 the \-audio\-delay option.
1335 During encoding, this option prevents MEncoder from transferring
1336 original stream start times to the new file; the \-audio\-delay option is
1337 not affected.
1338 Note that MEncoder sometimes adjusts stream starting times
1339 automatically to compensate for anticipated decoding delays, so do not
1340 use this option for encoding without testing it first.
1343 .B \-demuxer <[+]name>
1344 Force demuxer type.
1345 Use a '+' before the name to force it, this will skip some checks!
1346 Give the demuxer name as printed by \-demuxer help.
1347 For backward compatibility it also accepts the demuxer ID as defined in
1348 libmpdemux/\:demuxer.h.
1351 .B \-dumpaudio (MPlayer only)
1352 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1353 in most other cases the resulting file will not be playable).
1354 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1355 on the command line only the last one will work.
1358 .B \-dumpfile <filename> (MPlayer only)
1359 Specify which file MPlayer should dump to.
1360 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream.
1363 .B \-dumpstream (MPlayer only)
1364 Dumps the raw stream to ./stream.dump.
1365 Useful when ripping from DVD or network.
1366 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1367 on the command line only the last one will work.
1370 .B \-dumpvideo (MPlayer only)
1371 Dump raw compressed video stream to ./stream.dump (not very usable).
1372 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1373 on the command line only the last one will work.
1376 .B \-dvbin <options> (DVB only)
1377 Pass the following parameters to the DVB input module, in order to override
1378 the default ones:
1379 .sp 1
1380 .PD 0
1381 .RSs
1382 .IPs card=<1\-4>
1383 Specifies using card number 1\-4 (default: 1).
1384 .IPs file=<filename>
1385 Instructs MPlayer to read the channels list from <filename>.
1386 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1387 or ~/.mplayer/\:channels.conf as a last resort.
1388 .IPs timeout=<1\-30>
1389 Maximum number of seconds to wait when trying to tune a
1390 frequency before giving up (default: 30).
1392 .PD 1
1395 .B \-dvd\-device <path to device> (DVD only)
1396 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1397 You can also specify a directory that contains files previously copied directly
1398 from a DVD (with e.g.\& vobcopy).
1401 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1402 Try to limit DVD speed (default: 0, no change).
1403 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1404 10800KB/s.
1405 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1406 quiet and fast enough.
1407 MPlayer resets the speed to the drive default value on close.
1408 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1409 10800KB/s.
1411 .I NOTE:
1412 You need write access to the DVD device to change the speed.
1415 .B \-dvdangle <angle ID> (DVD only)
1416 Some DVD discs contain scenes that can be viewed from multiple angles.
1417 Here you can tell MPlayer which angles to use (default: 1).
1420 .B \-edl <filename>
1421 Enables edit decision list (EDL) actions during playback.
1422 Video will be skipped over and audio will be muted and unmuted according to
1423 the entries in the given file.
1424 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1425 on how to use this.
1428 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1429 Stop at given time or byte position.
1431 .I NOTE:
1432 Byte position is enabled only for MEncoder and will not be accurate, as it can
1433 only stop at a frame boundary.
1434 When used in conjunction with \-ss option, \-endpos time will shift forward by
1435 seconds specified with \-ss.
1436 .sp 1
1437 .I EXAMPLE:
1438 .PD 0
1439 .RSs
1440 .IPs "\-endpos 56"
1441 Stop at 56 seconds.
1442 .IPs "\-endpos 01:10:00"
1443 Stop at 1 hour 10 minutes.
1444 .IPs "\-ss 10 \-endpos 56"
1445 Stop at 1 minute 6 seconds.
1446 .IPs "\-endpos 100mb"
1447 Encode only 100 MB.
1449 .PD 1
1452 .B \-forceidx
1453 Force index rebuilding.
1454 Useful for files with broken index (A/V desync, etc).
1455 This will enable seeking in files where seeking was not possible.
1456 You can fix the index permanently with MEncoder (see the documentation).
1458 .I NOTE:
1459 This option only works if the underlying media supports seeking
1460 (i.e.\& not with stdin, pipe, etc).
1463 .B \-fps <float value>
1464 Override video framerate.
1465 Useful if the original value is wrong or missing.
1468 .B \-frames <number>
1469 Play/\:convert only first <number> frames, then quit.
1472 .B \-hr\-mp3\-seek (MP3 only)
1473 Hi-res MP3 seeking.
1474 Enabled when playing from an external MP3 file, as we need to seek
1475 to the very exact position to keep A/V sync.
1476 Can be slow especially when seeking backwards since it has to rewind
1477 to the beginning to find an exact frame position.
1480 .B \-idx (also see \-forceidx)
1481 Rebuilds index of files if no index was found, allowing seeking.
1482 Useful with broken/\:incomplete downloads, or badly created files.
1484 .I NOTE:
1485 This option only works if the underlying media supports seeking
1486 (i.e.\& not with stdin, pipe, etc).
1489 .B \-noidx
1490 Skip rebuilding index file.
1491 MEncoder skips writing the index with this option.
1494 .B \-ipv4\-only\-proxy (network only)
1495 Skip the proxy for IPv6 addresses.
1496 It will still be used for IPv4 connections.
1499 .B \-loadidx <index file>
1500 The file from which to read the video index data saved by \-saveidx.
1501 This index will be used for seeking, overriding any index data
1502 contained in the AVI itself.
1503 MPlayer will not prevent you from loading an index file generated
1504 from a different AVI, but this is sure to cause unfavorable results.
1506 .I NOTE:
1507 This option is obsolete now that MPlayer has OpenDML support.
1510 .B \-mc <seconds/frame>
1511 maximum A-V sync correction per frame (in seconds)
1514 .B \-mf <option1:option2:...>
1515 Used when decoding from multiple PNG or JPEG files.
1516 .sp 1
1517 Available options are:
1518 .sp 1
1519 .PD 0
1520 .RSs
1521 .IPs w=<value>
1522 input file width (default: autodetect)
1523 .IPs h=<value>
1524 input file height (default: autodetect)
1525 .IPs fps=<value>
1526 output fps (default: 25)
1527 .IPs type=<value>
1528 input file type (available: jpeg, png, tga, sgi)
1530 .PD 1
1533 .B \-ni (AVI only)
1534 Force usage of non-interleaved AVI parser (fixes playback
1535 of some bad AVI files).
1538 .B \-nobps (AVI only)
1539 Do not use average byte/\:second value for A-V sync.
1540 Helps with some AVI files with broken header.
1543 .B \-noextbased
1544 Disables extension-based demuxer selection.
1545 By default, when the file type (demuxer) cannot be detected reliably
1546 (the file has no header or it is not reliable enough), the filename
1547 extension is used to select the demuxer.
1548 Always falls back on content-based demuxer selection.
1551 .B \-passwd <password> (also see \-user) (network only)
1552 Specify password for HTTP authentication.
1555 .B \-prefer\-ipv4 (network only)
1556 Use IPv4 on network connections.
1557 Falls back on IPv6 automatically.
1560 .B \-prefer\-ipv6 (IPv6 network only)
1561 Use IPv6 on network connections.
1562 Falls back on IPv4 automatically.
1565 .B \-psprobe <byte position>
1566 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1567 how many bytes in the stream you want MPlayer to scan in order to identify
1568 the video codec used.
1569 This option is needed to play EVO or VDR files containing H.264 streams.
1572 .B \-pvr <option1:option2:...> (PVR only)
1573 This option tunes various encoding properties of the PVR capture module.
1574 It has to be used with any hardware MPEG encoder based card supported by the
1575 V4L2 driver.
1576 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1577 cards are known as PVR capture cards.
1578 Be aware that only Linux 2.6.18 kernel
1579 and above is able to handle MPEG stream through V4L2 layer.
1580 For hardware capture of an MPEG stream and watching it with
1581 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1582 .sp 1
1583 Available options are:
1584 .RSs
1585 .IPs aspect=<0\-3>
1586 Specify input aspect ratio:
1587 .RSss
1588 0: 1:1
1590 1: 4:3 (default)
1592 2: 16:9
1594 3: 2.21:1
1595 .REss
1596 .IPs arate=<32000\-48000>
1597 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1598 and 48000 Hz).
1599 .IPs alayer=<1\-3>
1600 Specify MPEG audio layer encoding (default: 2).
1601 .IPs abitrate=<32\-448>
1602 Specify audio encoding bitrate in kbps (default: 384).
1603 .IPs amode=<value>
1604 Specify audio encoding mode.
1605 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1606 .IPs vbitrate=<value>
1607 Specify average video bitrate encoding in Mbps (default: 6).
1608 .IPs vmode=<value>
1609 Specify video encoding mode:
1610 .RSss
1611 vbr: Variable BitRate (default)
1613 cbr: Constant BitRate
1614 .REss
1615 .IPs vpeak=<value>
1616 Specify peak video bitrate encoding in Mbps
1617 (only useful for VBR encoding, default: 9.6).
1618 .IPs fmt=<value>
1619 Choose an MPEG format for encoding:
1620 .RSss
1621 ps:    MPEG-2 Program Stream (default)
1623 ts:    MPEG-2 Transport Stream
1625 mpeg1: MPEG-1 System Stream
1627 vcd:   Video CD compatible stream
1629 svcd:  Super Video CD compatible stream
1631 dvd:   DVD compatible stream
1632 .REss
1634 .PD 1
1637 .B \-radio <option1:option2:...> (radio only)
1638 These options set various parameters of the radio capture module.
1639 For listening to radio with MPlayer use 'radio://<frequency>'
1640 (if channels option is not given) or 'radio://<channel_number>'
1641 (if channels option is given) as a movie URL.
1642 You can see allowed frequency range by running MPlayer with '\-v'.
1643 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1644 If the capture keyword is not given you can listen to radio
1645 using the line-in cable only.
1646 Using capture to listen is not recommended due to synchronization
1647 problems, which makes this process uncomfortable.
1648 .sp 1
1649 Available options are:
1650 .RSs
1651 .IPs device=<value>
1652 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1653 .IPs driver=<value>
1654 Radio driver to use (default: v4l2 if available, otherwise v4l).
1655 Currently, v4l and v4l2 drivers are supported.
1656 .IPs volume=<0..100>
1657 sound volume for radio device (default 100)
1658 .IPs "freq_min=<value> (*BSD BT848 only)"
1659 minimum allowed frequency (default: 87.50)
1660 .IPs "freq_max=<value> (*BSD BT848 only)"
1661 maximum allowed frequency (default: 108.00)
1662 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1663 Set channel list.
1664 Use _ for spaces in names (or play with quoting ;-).
1665 The channel names will then be written using OSD and the slave commands
1666 radio_step_channel and radio_set_channel will be usable for
1667 a remote control (see LIRC).
1668 If given, number in movie URL will be treated as channel position in
1669 channel list.
1671 .I EXAMPLE:
1672 radio://1, radio://104.4, radio_set_channel 1
1673 .IPs "adevice=<value> (radio capture only)"
1674 Name of device to capture sound from.
1675 Without such a name capture will be disabled,
1676 even if the capture keyword appears in the URL.
1677 For ALSA devices use it in the form hw=<card>.<device>.
1678 If the device name contains a '=', the module will use
1679 ALSA to capture, otherwise OSS.
1680 .IPs "arate=<value> (radio capture only)"
1681 Rate in samples per second (default: 44100).
1683 .I NOTE:
1684 When using audio capture set also \-rawaudio rate=<value> option
1685 with the same value as arate.
1686 If you have problems with sound speed (runs too quickly), try to play
1687 with different rate values (e.g.\& 48000,44100,32000,...).
1688 .IPs "achannels=<value> (radio capture only)"
1689 Number of audio channels to capture.
1693 .B \-rawaudio <option1:option2:...>
1694 This option lets you play raw audio files.
1695 You have to use \-demuxer rawaudio as well.
1696 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1697 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1698 .sp 1
1699 Available options are:
1700 .sp 1
1701 .PD 0
1702 .RSs
1703 .IPs channels=<value>
1704 number of channels
1705 .IPs rate=<value>
1706 rate in samples per second
1707 .IPs samplesize=<value>
1708 sample size in bytes
1709 .IPs bitrate=<value>
1710 bitrate for rawaudio files
1711 .IPs format=<value>
1712 fourcc in hex
1714 .PD 1
1717 .B \-rawvideo <option1:option2:...>
1718 This option lets you play raw video files.
1719 You have to use \-demuxer rawvideo as well.
1720 .sp 1
1721 Available options are:
1722 .sp 1
1723 .PD 0
1724 .RSs
1725 .IPs fps=<value>
1726 rate in frames per second (default: 25.0)
1727 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1728 set standard image size
1729 .IPs w=<value>
1730 image width in pixels
1731 .IPs h=<value>
1732 image height in pixels
1733 .IPs i420|yv12|yuy2|y8
1734 set colorspace
1735 .IPs format=<value>
1736 colorspace (fourcc) in hex or string constant.
1737 Use \-rawvideo format=help for a list of possible strings.
1738 .IPs size=<value>
1739 frame size in Bytes
1740 .REss
1741 .sp 1
1743 .I EXAMPLE:
1745 .PD 0
1746 .RSs
1747 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1748 Play the famous "foreman" sample video.
1749 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1750 Play a raw YUV sample.
1752 .PD 1
1755 .B \-rtsp\-port
1756 Used with 'rtsp://' URLs to force the client's port number.
1757 This option may be useful if you are behind a router and want to forward
1758 the RTSP stream from the server to a specific client.
1761 .B \-rtsp\-destination
1762 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1763 This option may be useful with some RTSP server which do not
1764 send RTP packets to the right interface.
1765 If the connection to the RTSP server fails, use \-v to see
1766 which IP address MPlayer tries to bind to and try to force
1767 it to one assigned to your computer instead.
1770 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1771 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1772 packets be streamed over TCP (using the same TCP connection as RTSP).
1773 This option may be useful if you have a broken internet connection that does
1774 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1777 .B \-saveidx <filename>
1778 Force index rebuilding and dump the index to <filename>.
1779 Currently this only works with AVI files.
1781 .I NOTE:
1782 This option is obsolete now that MPlayer has OpenDML support.
1785 .B \-sb <byte position> (also see \-ss)
1786 Seek to byte position.
1787 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1790 .B \-speed <0.01\-100>
1791 Slow down or speed up playback by the factor given as parameter.
1792 Not guaranteed to work correctly with \-oac copy.
1795 .B \-srate <Hz>
1796 Select the output sample rate to be used
1797 (of course sound cards have limits on this).
1798 If the sample frequency selected is different from that
1799 of the current media, the resample or lavcresample audio filter will be inserted
1800 into the audio filter layer to compensate for the difference.
1801 The type of resampling can be controlled by the \-af\-adv option.
1802 The default is fast resampling that may cause distortion.
1805 .B \-ss <time> (also see \-sb)
1806 Seek to given time position.
1807 .sp 1
1808 .I EXAMPLE:
1809 .PD 0
1810 .RSs
1811 .IPs "\-ss 56"
1812 Seeks to 56 seconds.
1813 .IPs "\-ss 01:10:00"
1814 Seeks to 1 hour 10 min.
1816 .PD 1
1819 .B \-tskeepbroken
1820 Tells MPlayer not to discard TS packets reported as broken in the stream.
1821 Sometimes needed to play corrupted MPEG-TS files.
1824 .B \-tsprobe <byte position>
1825 When playing an MPEG-TS stream, this option lets you specify how many
1826 bytes in the stream you want MPlayer to search for the desired
1827 audio and video IDs.
1830 .B \-tsprog <1\-65534>
1831 When playing an MPEG-TS stream, you can specify with this option which
1832 program (if present) you want to play.
1833 Can be used with \-vid and \-aid.
1836 .B \-tv <option1:option2:...> (TV/\:PVR only)
1837 This option tunes various properties of the TV capture module.
1838 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1839 or even 'tv://<channel_name> (see option channels for channel_name below)
1840 as a movie URL.
1841 You can also use 'tv:///<input_id>' to start watching a
1842 movie from a composite or S-Video input (see option input for details).
1843 .sp 1
1844 Available options are:
1845 .RSs
1846 .IPs noaudio
1847 no sound
1848 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1849 If signal strength reported by device is less than this value,
1850 audio and video will be muted.
1851 In most cases automute=100 will be enough.
1852 Default is 0 (automute disabled).
1853 .IPs driver=<value>
1854 See \-tv driver=help for a list of compiled-in TV input drivers.
1855 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1856 .IPs device=<value>
1857 Specify TV device (default: /dev/\:video0).
1858 .I NOTE:
1859 For the bsdbt848 driver you can provide both bktr and tuner device
1860 names separating them with a comma, tuner after
1861 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1862 .IPs input=<value>
1863 Specify input (default: 0 (TV), see console output for available inputs).
1864 .IPs freq=<value>
1865 Specify the frequency to set the tuner to (e.g.\& 511.250).
1866 Not compatible with the channels parameter.
1867 .IPs outfmt=<value>
1868 Specify the output format of the tuner with a preset value supported by the
1869 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1870 arbitrary format given as hex value.
1871 Try outfmt=help for a list of all available formats.
1872 .IPs width=<value>
1873 output window width
1874 .IPs height=<value>
1875 output window height
1876 .IPs fps=<value>
1877 framerate at which to capture video (frames per second)
1878 .IPs buffersize=<value>
1879 maximum size of the capture buffer in megabytes (default: dynamical)
1880 .IPs norm=<value>
1881 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1882 For v4l2, see the console output for a list of all available norms,
1883 also see the normid option below.
1884 .IPs "normid=<value> (v4l2 only)"
1885 Sets the TV norm to the given numeric ID.
1886 The TV norm depends on the capture card.
1887 See the console output for a list of available TV norms.
1888 .IPs channel=<value>
1889 Set tuner to <value> channel.
1890 .IPs chanlist=<value>
1891 available: europe-east, europe-west, us-bcast, us-cable, etc
1892 .IPs channels=<chan>\-<name>[=<norm>],<chan>\-<name>[=<norm>],...
1893 Set names for channels.
1894 .I NOTE:
1895 If <chan> is an integer greater than 1000, it will be treated as frequency (in kHz)
1896 rather than channel name from frequency table.
1898 Use _ for spaces in names (or play with quoting ;-).
1899 The channel names will then be written using OSD, and the slave commands
1900 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1901 a remote control (see LIRC).
1902 Not compatible with the frequency parameter.
1904 .I NOTE:
1905 The channel number will then be the position in the 'channels' list,
1906 beginning with 1.
1908 .I EXAMPLE:
1909 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1910 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1911 Set the image equalizer on the card.
1912 .IPs audiorate=<value>
1913 Set audio capture bitrate.
1914 .IPs forceaudio
1915 Capture audio even if there are no audio sources reported by v4l.
1916 .IPs "alsa\ "
1917 Capture from ALSA.
1918 .IPs amode=<0\-3>
1919 Choose an audio mode:
1920 .RSss
1921 0: mono
1923 1: stereo
1925 2: language 1
1927 3: language 2
1928 .REss
1929 .IPs forcechan=<1\-2>
1930 By default, the count of recorded audio channels is determined automatically
1931 by querying the audio mode from the TV card.
1932 This option allows forcing stereo/\:mono recording regardless of the amode
1933 option and the values returned by v4l.
1934 This can be used for troubleshooting when the TV card is unable to report the
1935 current audio mode.
1936 .IPs adevice=<value>
1937 Set an audio device.
1938 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1939 You must replace any ':' by a '.' in the hardware ID for ALSA.
1940 .IPs audioid=<value>
1941 Choose an audio output of the capture card, if it has more than one.
1942 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1943 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1944 These options set parameters of the mixer on the video capture card.
1945 They will have no effect, if your card does not have one.
1946 For v4l2 50 maps to the default value of the
1947 control, as reported by the driver.
1948 .IPs "gain=<0\-100> (v4l2)"
1949 Set gain control for video devices (usually webcams) to the desired
1950 value and switch off automatic control.
1951 A value of 0 enables automatic control.
1952 If this option is omitted, gain control will not be modified.
1953 .IPs immediatemode=<bool>
1954 A value of 0 means capture and buffer audio and video together
1955 (default for MEncoder).
1956 A value of 1 (default for MPlayer) means to do video capture only and let the
1957 audio go through a loopback cable from the TV card to the sound card.
1958 .IPs mjpeg
1959 Use hardware MJPEG compression (if the card supports it).
1960 When using this option, you do not need to specify the width and height
1961 of the output window, because MPlayer will determine it automatically
1962 from the decimation value (see below).
1963 .IPs decimation=<1|2|4>
1964 choose the size of the picture that will be compressed by hardware
1965 MJPEG compression:
1966 .RSss
1967 1: full size
1968     704x576    PAL
1969     704x480    NTSC
1971 2: medium size
1972     352x288    PAL
1973     352x240    NTSC
1975 4: small size
1976     176x144    PAL
1977     176x120    NTSC
1978 .REss
1979 .IPs quality=<0\-100>
1980 Choose the quality of the JPEG compression
1981 (< 60 recommended for full size).
1982 .IPs tdevice=<value>
1983 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
1984 .IPs tformat=<format>
1985 Specify TV teletext display format (default: 0):
1986 .RSss
1987 0: opaque
1989 1: transparent
1991 2: opaque with inverted colors
1993 3: transparent with inverted colors
1994 .REss
1995 .IPs tpage=<100\-899>
1996 Specify initial TV teletext page number (default: 100).
1997 .IPs tlang=<\-1\-127>
1998 Specify default teletext language code (default: 0), which will be used
1999 as primary language until a type 28 packet is received.
2000 Useful when the teletext system uses a non-latin character set, but language
2001 codes are not transmitted via teletext type 28 packets for some reason.
2002 To see a list of supported language codes set this option to \-1.
2003 .IPs "hidden_video_renderer (dshow only)"
2004 Terminate stream with video renderer instead of Null renderer (default: off).
2005 Will help if video freezes but audio does not.
2006 .I NOTE:
2007 May not work with \-vo directx and \-vf crop combination.
2008 .IPs "hidden_vp_renderer (dshow only)"
2009 Terminate VideoPort pin stream with video renderer
2010 instead of removing it from the graph (default: off).
2011 Useful if your card has a VideoPort pin and video is choppy.
2012 .I NOTE:
2013 May not work with \-vo directx and \-vf crop combination.
2014 .IPs "system_clock (dshow only)"
2015 Use the system clock as sync source instead of the default graph clock
2016 (usually the clock from one of the live sources in graph).
2017 .IPs "normalize_audio_chunks (dshow only)"
2018 Create audio chunks with a time length equal to
2019 video frame time length (default: off).
2020 Some audio cards create audio chunks about 0.5s in size, resulting in
2021 choppy video when using immediatemode=0.
2025 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
2026 Tune the TV channel scanner.
2027 MPlayer will also print value for "-tv channels=" option,
2028 including existing and just found channels.
2029 .sp 1
2030 Available suboptions are:
2031 .RSs
2032 .IPs autostart
2033 Begin channel scanning immediately after startup (default: disabled).
2034 .IPs period=<0.1\-2.0>
2035 Specify delay in seconds before switching to next channel (default: 0.5).
2036 Lower values will cause faster scanning, but can detect
2037 inactive TV channels as active.
2038 .IPs threshold=<1\-100>
2039 Threshold value for the signal strength (in percent), as reported
2040 by the device (default: 50).
2041 A signal strength higher than this value will indicate that the
2042 currently scanning channel is active.
2046 .B \-user <username> (also see \-passwd) (network only)
2047 Specify username for HTTP authentication.
2050 .B \-user\-agent <string>
2051 Use <string> as user agent for HTTP streaming.
2054 .B \-vid <ID>
2055 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2056 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
2057 (if present) with the chosen video stream.
2060 .B \-vivo <suboption> (DEBUG CODE)
2061 Force audio parameters for the VIVO demuxer (for debugging purposes).
2062 FIXME: Document this.
2066 .SH "OSD/SUBTITLE OPTIONS"
2067 .I NOTE:
2068 Also see \-vf expand.
2071 .B \-ass (FreeType only)
2072 Turn on SSA/ASS subtitle rendering.
2073 With this option, libass will be used for SSA/ASS
2074 external subtitles and Matroska tracks.
2076 .I NOTE:
2077 Unlike normal OSD, libass uses fontconfig by default. To disable it, use
2078 \-nofontconfig.
2081 .B \-ass\-border\-color <value>
2082 Sets the border (outline) color for text subtitles.
2083 The color format is RRGGBBAA.
2086 .B \-ass\-bottom\-margin <value>
2087 Adds a black band at the bottom of the frame.
2088 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2091 .B \-ass\-color <value>
2092 Sets the color for text subtitles.
2093 The color format is RRGGBBAA.
2096 .B \-ass\-font\-scale <value>
2097 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2100 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2101 Override some style or script info parameters.
2103 .I EXAMPLE:
2104 .PD 0
2105 .RSs
2106 \-ass\-force\-style FontName=Arial,Default.Bold=1
2108 \-ass\-force\-style PlayResY=768
2110 .PD 1
2113 .B \-ass\-hinting <type>
2114 Set hinting type.
2115 <type> can be:
2116 .PD 0
2117 .RSs
2118 .IPs 0
2119 no hinting
2120 .IPs 1
2121 FreeType autohinter, light mode
2122 .IPs 2
2123 FreeType autohinter, normal mode
2124 .IPs 3
2125 font native hinter
2126 .IPs "0-3 + 4"
2127 The same, but hinting will only be performed if the OSD is rendered at
2128 screen resolution and will therefore not be scaled.
2130 .RSs
2131 The default value is 5 (use light hinter for unscaled OSD and no hinting otherwise).
2133 .PD 1
2136 .B \-ass\-line\-spacing <value>
2137 Set line spacing value for SSA/ASS renderer.
2140 .B \-ass\-styles <filename>
2141 Load all SSA/ASS styles found in the specified file and use them for
2142 rendering text subtitles.
2143 The syntax of the file is exactly like the
2144 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2147 .B \-ass\-top\-margin <value>
2148 Adds a black band at the top of the frame.
2149 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2152 .B \-ass\-use\-margins
2153 Enables placing toptitles and subtitles in black borders when they
2154 are available.
2157 .B \-dumpjacosub (MPlayer only)
2158 Convert the given subtitle (specified with the \-sub option) to the time-based
2159 JACOsub subtitle format.
2160 Creates a dumpsub.js file in the current directory.
2163 .B \-dumpmicrodvdsub (MPlayer only)
2164 Convert the given subtitle (specified with the \-sub option) to the
2165 MicroDVD subtitle format.
2166 Creates a dumpsub.sub file in the current directory.
2169 .B \-dumpmpsub (MPlayer only)
2170 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2171 subtitle format, MPsub.
2172 Creates a dump.mpsub file in the current directory.
2175 .B \-dumpsami (MPlayer only)
2176 Convert the given subtitle (specified with the \-sub option) to the time-based
2177 SAMI subtitle format.
2178 Creates a dumpsub.smi file in the current directory.
2181 .B \-dumpsrtsub (MPlayer only)
2182 Convert the given subtitle (specified with the \-sub option) to the time-based
2183 SubViewer (SRT) subtitle format.
2184 Creates a dumpsub.srt file in the current directory.
2186 .I NOTE:
2187 Some broken hardware players choke on SRT subtitle files with Unix
2188 line endings.
2189 If you are unlucky enough to have such a box, pass your subtitle
2190 files through unix2dos or a similar program to replace Unix line
2191 endings with DOS/Windows line endings.
2194 .B \-dumpsub (MPlayer only) (BETA CODE)
2195 Dumps the subtitle substream from VOB streams.
2196 Also see the \-dump*sub and \-vobsubout* options.
2199 .B \-noembeddedfonts
2200 Disables use of fonts embedded in Matroska containers and ASS scripts (default: enabled).
2201 These fonts can be used for SSA/ASS subtitle
2202 rendering (\-ass option).
2205 .B \-ffactor <number>
2206 Resample the font alphamap.
2207 Can be:
2208 .PD 0
2209 .RSs
2210 .IPs 0
2211 plain white fonts
2212 .IPs 0.75
2213 very narrow black outline (default)
2214 .IPs 1
2215 narrow black outline
2216 .IPs 10
2217 bold black outline
2219 .PD 1
2222 .B \-flip\-hebrew (FriBiDi only)
2223 Turns on flipping subtitles using FriBiDi.
2226 .B \-noflip\-hebrew\-commas
2227 Change FriBiDi's assumptions about the placements of commas in subtitles.
2228 Use this if commas in subtitles are shown at the start of a sentence
2229 instead of at the end.
2232 .B \-font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
2233 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2234 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2235 ~/.mplayer/\:subfont.ttf).
2237 .I NOTE:
2238 With FreeType, this option determines the path to the text font file.
2239 With Fontconfig, this option determines the Fontconfig font pattern.
2240 .sp 1
2241 .I EXAMPLE:
2242 .PD 0
2243 .RSs
2244 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2246 \-font ~/\:.mplayer/\:arialuni.ttf
2248 \-font 'Bitstream Vera Sans'
2250 \-font 'Bitstream Vera Sans:style=Bold'
2252 .PD 1
2255 .B \-fontconfig (fontconfig only)
2256 Enables the usage of fontconfig managed fonts.
2258 .I NOTE:
2259 By default fontconfig is used for libass-rendered subtitles and not used for
2260 OSD. With \-fontconfig it is used for both libass and OSD, with \-nofontconfig
2261 it is not used at all.
2264 .B \-forcedsubsonly
2265 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2266 \-slang.
2269 .B \-fribidi\-charset <charset name> (FriBiDi only)
2270 Specifies the character set that will be passed to FriBiDi when
2271 decoding non-UTF-8 subtitles (default: ISO8859-8).
2274 .B \-ifo <VOBsub IFO file>
2275 Indicate the file that will be used to load palette and frame size for VOBsub
2276 subtitles.
2279 .B \-noautosub
2280 Turns off automatic subtitle file loading.
2283 .B \-osd\-duration <time>
2284 Set the duration of the OSD messages in ms (default: 1000).
2287 .B \-osdlevel <0\-3> (MPlayer only)
2288 Specifies which mode the OSD should start in.
2289 .PD 0
2290 .RSs
2291 .IPs 0
2292 subtitles only
2293 .IPs 1
2294 volume + seek (default)
2295 .IPs 2
2296 volume + seek + timer + percentage
2297 .IPs 3
2298 volume + seek + timer + percentage + total time
2300 .PD 1
2303 .B \-overlapsub
2304 Allows the next subtitle to be displayed while the current one is
2305 still visible (default is to enable the support only for specific
2306 formats).
2309 .B \-sid <ID> (also see \-slang, \-vobsubid)
2310 Display the subtitle stream specified by <ID> (0\-31).
2311 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2312 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2315 .B \-nosub
2316 Disables any otherwise auto-selected subtitles (as e.g.\& the Matroska/mkv
2317 demuxer supports).
2320 .B \-slang <language code[,language code,...]> (also see \-sid)
2321 Specify a priority list of subtitle languages to use.
2322 Different container formats employ different language codes.
2323 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2324 three letter language codes while OGM uses a free-form identifier.
2325 MPlayer prints the available languages when run in verbose (\-v) mode.
2326 .sp 1
2327 .I EXAMPLE:
2328 .PD 0
2329 .RSs
2330 .IPs "mplayer dvd://1 \-slang hu,en"
2331 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2332 Hungarian is not available.
2333 .IPs "mplayer \-slang jpn example.mkv"
2334 Plays a Matroska file with Japanese subtitles.
2336 .PD 1
2339 .B \-spuaa <mode>
2340 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2341 A value of 16 may be added to <mode> in order to force scaling even
2342 when original and scaled frame size already match.
2343 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2344 Available modes are:
2345 .PD 0
2346 .RSs
2347 .IPs 0
2348 none (fastest, very ugly)
2349 .IPs 1
2350 approximate (broken?)
2351 .IPs 2
2352 full (slow)
2353 .IPs 3
2354 bilinear (default, fast and not too bad)
2355 .IPs 4
2356 uses swscaler gaussian blur (looks very good)
2358 .PD 1
2361 .B \-spualign <\-1\-2>
2362 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2363 .PD 0
2364 .RSs
2365 .IPs "\-1"
2366 original position
2367 .IPs " 0"
2368 Align at top (original behavior, default).
2369 .IPs " 1"
2370 Align at center.
2371 .IPs " 2"
2372 Align at bottom.
2374 .PD 1
2377 .B \-spugauss <0.0\-3.0>
2378 Variance parameter of gaussian used by \-spuaa 4.
2379 Higher means more blur (default: 1.0).
2382 .B \-sub <subtitlefile1,subtitlefile2,...>
2383 Use/\:display these subtitle files.
2384 Only one file can be displayed at the same time.
2387 .B \-sub\-bg\-alpha <0\-255>
2388 Specify the alpha channel value for subtitles and OSD backgrounds.
2389 Big values mean more transparency.
2390 0 means completely transparent.
2393 .B \-sub\-bg\-color <0\-255>
2394 Specify the color value for subtitles and OSD backgrounds.
2395 Currently subtitles are grayscale so this value is equivalent to the
2396 intensity of the color.
2397 255 means white and 0 black.
2400 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2401 Force subtitle demuxer type for \-subfile.
2402 Use a '+' before the name to force it, this will skip some checks!
2403 Give the demuxer name as printed by \-sub\-demuxer help.
2404 For backward compatibility it also accepts the demuxer ID as defined in
2405 subreader.h.
2408 .B \-sub\-fuzziness <mode>
2409 Adjust matching fuzziness when searching for subtitles:
2410 .PD 0
2411 .RSs
2412 .IPs 0
2413 exact match
2414 .IPs 1
2415 Load all subs containing movie name.
2416 .IPs 2
2417 Load all subs in the current directory.
2419 .PD 1
2422 .B \-sub\-no\-text\-pp
2423 Disables any kind of text post processing done after loading the subtitles.
2424 Used for debug purposes.
2427 .B \-subalign <0\-2>
2428 Specify which edge of the subtitles should be aligned at the height
2429 given by \-subpos.
2430 .PD 0
2431 .RSs
2432 .IPs 0
2433 Align subtitle top edge (original behavior).
2434 .IPs 1
2435 Align subtitle center.
2436 .IPs 2
2437 Align subtitle bottom edge (default).
2439 .PD 1
2442 .B "\-subcc \ "
2443 Display DVD Closed Caption (CC) subtitles.
2444 These are
2445 .B not
2446 the VOB subtitles, these are special ASCII subtitles for the
2447 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2448 CC subtitles have not been spotted on DVDs from other regions so far.
2451 .B \-subcp <codepage> (iconv only)
2452 If your system supports iconv(3), you can use this option to
2453 specify the subtitle codepage.
2454 .sp 1
2455 .I EXAMPLE:
2456 .PD 0
2457 .RSs
2458 \-subcp latin2
2460 \-subcp cp1250
2462 .PD 1
2465 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2466 You can specify your language using a two letter language code to
2467 make ENCA detect the codepage automatically.
2468 If unsure, enter anything and watch mplayer \-v output for available
2469 languages.
2470 Fallback codepage specifies the codepage to use, when autodetection fails.
2471 .sp 1
2472 .I EXAMPLE:
2473 .PD 0
2474 .RSs
2475 .IPs "\-subcp enca:cs:latin2"
2476 Guess the encoding, assuming the subtitles are Czech, fall back on
2477 latin 2, if the detection fails.
2478 .IPs "\-subcp enca:pl:cp1250"
2479 Guess the encoding for Polish, fall back on cp1250.
2481 .PD 1
2484 .B \-subdelay <sec>
2485 Delays subtitles by <sec> seconds.
2486 Can be negative.
2489 .B \-subfile <filename> (BETA CODE)
2490 Currently useless.
2491 Same as \-audiofile, but for subtitle streams (OggDS?).
2494 .B \-subfont <path to font (FreeType), font pattern (Fontconfig)> (FreeType only)
2495 Sets the subtitle font (see \-font).
2496 If no \-subfont is given, \-font is used.
2499 .B \-subfont\-autoscale <0\-3> (FreeType only)
2500 Sets the autoscale mode.
2502 .I NOTE:
2503 0 means that text scale and OSD scale are font heights in points.
2504 .sp 1
2505 The mode can be:
2506 .sp 1
2507 .PD 0
2508 .RSs
2509 .IPs 0
2510 no autoscale
2511 .IPs 1
2512 proportional to movie height
2513 .IPs 2
2514 proportional to movie width
2515 .IPs 3
2516 proportional to movie diagonal (default)
2518 .PD 1
2521 .B \-subfont\-blur <0\-8> (FreeType only)
2522 Sets the font blur radius (default: 2).
2525 .B \-subfont\-encoding <value> (FreeType only)
2526 Sets the font encoding.
2527 When set to 'unicode', all the glyphs from the font file will be rendered and
2528 unicode will be used (default: unicode).
2531 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2532 Sets the autoscale coefficient of the OSD elements (default: 6).
2535 .B \-subfont\-outline <0\-8> (FreeType only)
2536 Sets the font outline thickness (default: 2).
2539 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2540 Sets the subtitle text autoscale coefficient as percentage of the
2541 screen size (default: 5).
2544 .B \-subfps <rate>
2545 Specify the framerate of the subtitle file (default: movie fps).
2547 .I NOTE:
2548 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2549 slows them down for time-based ones.
2552 .B \-subpos <0\-100> (useful with \-vf expand)
2553 Specify the position of subtitles on the screen.
2554 The value is the vertical position of the subtitle in % of the screen height.
2557 .B \-subwidth <10\-100>
2558 Specify the maximum width of subtitles on the screen.
2559 Useful for TV-out.
2560 The value is the width of the subtitle in % of the screen width.
2563 .B \-noterm\-osd
2564 Disable the display of OSD messages on the console when no video output is
2565 available.
2568 .B \-term\-osd\-esc <escape sequence>
2569 Specify the escape sequence to use before writing an OSD message on the
2570 console.
2571 The escape sequence should move the pointer to the beginning of the line
2572 used for the OSD and clear it (default: ^[[A\\r^[[K).
2575 .B \-unicode
2576 Tells MPlayer to handle the subtitle file as unicode.
2579 .B \-unrarexec <path to unrar executable> (not supported on MingW)
2580 Specify the path to the unrar executable so MPlayer can use it to access
2581 rar-compressed VOBsub files (default: not set, so the feature is off).
2582 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2585 .B "\-utf8 \ \ "
2586 Tells MPlayer to handle the subtitle file as UTF-8.
2589 .B \-vobsub <VOBsub file without extension>
2590 Specify a VOBsub file to use for subtitles.
2591 Has to be the full pathname without extension, i.e.\& without
2592 the '.idx', '.ifo' or '.sub'.
2595 .B \-vobsubid <0\-31>
2596 Specify the VOBsub subtitle ID.
2600 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2603 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2604 Override audio driver/\:card buffer size detection.
2607 .B \-format <format> (also see the format audio filter)
2608 Select the sample format used for output from the audio filter
2609 layer to the sound card.
2610 The values that <format> can adopt are listed below in the
2611 description of the format audio filter.
2614 .B \-mixer <device>
2615 Use a mixer device different from the default /dev/\:mixer.
2616 For ALSA this is the mixer name.
2619 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2620 This option will tell MPlayer to use a different channel for controlling
2621 volume than the default PCM.
2622 Options for OSS include
2623 .B vol, pcm, line.
2624 For a complete list of options look for SOUND_DEVICE_NAMES in
2625 /usr/\:include/\:linux/\:soundcard.h.
2626 For ALSA you can use the names e.g.\& alsamixer displays, like
2627 .B Master, Line, PCM.
2629 .I NOTE:
2630 ALSA mixer channel names followed by a number must be specified in the
2631 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2632 be converted to
2633 .BR PCM,1 .
2636 .B \-softvol
2637 Force the use of the software mixer, instead of using the sound card
2638 mixer.
2641 .B \-softvol\-max <10.0\-10000.0>
2642 Set the maximum amplification level in percent (default: 110).
2643 A value of 200 will allow you to adjust the volume up to a maximum of
2644 double the current level.
2645 With values below 100 the initial volume (which is 100%) will be above
2646 the maximum, which e.g.\& the OSD cannot display correctly.
2649 .B \-volstep <0\-100>
2650 Set the step size of mixer volume changes in percent of the whole range
2651 (default: 3).
2654 .B \-volume <-1\-100> (also see \-af volume)
2655 Set the startup volume in the mixer, either hardware or software (if
2656 used with \-softvol).
2657 A value of -1 (the default) will not change the volume.
2661 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2662 Audio output drivers are interfaces to different audio output facilities.
2663 The syntax is:
2666 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2667 Specify a priority list of audio output drivers to be used.
2669 If the list has a trailing ',' MPlayer will fall back on drivers not
2670 contained in the list.
2671 Suboptions are optional and can mostly be omitted.
2673 .I NOTE:
2674 See \-ao help for a list of compiled-in audio output drivers.
2675 .sp 1
2676 .I EXAMPLE:
2677 .PD 0
2678 .RSs
2679 .IPs "\-ao alsa,oss,"
2680 Try the ALSA driver, then the OSS driver, then others.
2681 .IPs "\-ao alsa:noblock:device=hw=0.3"
2682 Sets noblock-mode and the device-name as first card, fourth device.
2684 .PD 1
2685 .sp 1
2686 Available audio output drivers are:
2689 .B "alsa\ \ \ "
2690 ALSA 0.9/1.x audio output driver
2691 .PD 0
2692 .RSs
2693 .IPs noblock
2694 Sets noblock-mode.
2695 .IPs device=<device>
2696 Sets the device name.
2697 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2698 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2699 you really know how to set it correctly.
2701 .PD 1
2704 .B "alsa5\ \ "
2705 ALSA 0.5 audio output driver
2708 .B "oss\ \ \ \ "
2709 OSS audio output driver
2710 .PD 0
2711 .RSs
2712 .IPs <dsp-device>
2713 Sets the audio output device (default: /dev/\:dsp).
2714 .IPs <mixer-device>
2715 Sets the audio mixer device (default: /dev/\:mixer).
2716 .IPs <mixer-channel>
2717 Sets the audio mixer channel (default: pcm).
2719 .PD 1
2722 .B sdl (SDL only)
2723 highly platform independent SDL (Simple Directmedia Layer) library
2724 audio output driver
2725 .PD 0
2726 .RSs
2727 .IPs <driver>
2728 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2730 .PD 1
2733 .B "arts\ \ \ "
2734 audio output through the aRts daemon
2737 .B "esd\ \ \ \ "
2738 audio output through the ESD daemon
2739 .PD 0
2740 .RSs
2741 .IPs <server>
2742 Explicitly choose the ESD server to use (default: localhost).
2744 .PD 1
2747 .B "jack\ \ \ \ "
2748 audio output through JACK (Jack Audio Connection Kit)
2749 .PD 0
2750 .RSs
2751 .IPs port=<name>
2752 Connects to the ports with the given name (default: physical ports).
2753 .IPs name=<client name>
2754 Client name that is passed to JACK (default: MPlayer [<PID>]).
2755 Useful if you want to have certain connections established automatically.
2756 .IPs (no)estimate
2757 Estimate the audio delay, supposed to make the video playback smoother
2758 (default: enabled).
2759 .IPs (no)autostart
2760 Automatically start jackd if necessary (default: disabled).
2761 Note that this seems unreliable and will spam stdout with server messages.
2763 .PD 1
2766 .B "nas\ \ \ \ "
2767 audio output through NAS
2770 .B coreaudio (Mac OS X only)
2771 native Mac OS X audio output driver
2774 .B "openal\ "
2775 Experimental OpenAL audio output driver
2778 .B "pulse\ \ "
2779 PulseAudio audio output driver
2780 .PD 0
2781 .RSs
2782 .IPs "[<host>][:<output sink>]"
2783 Specify the host and optionally output sink to use.
2784 An empty <host> string uses a local connection, "localhost"
2785 uses network transfer (most likely not what you want).
2787 .PD 1
2790 .B sgi (SGI only)
2791 native SGI audio output driver
2792 .PD 0
2793 .RSs
2794 .IPs "<output device name>"
2795 Explicitly choose the output device/\:interface to use
2796 (default: system-wide default).
2797 For example, 'Analog Out' or 'Digital Out'.
2799 .PD 1
2802 .B sun (Sun only)
2803 native Sun audio output driver
2804 .PD 0
2805 .RSs
2806 .IPs <device>
2807 Explicitly choose the audio device to use (default: /dev/\:audio).
2809 .PD 1
2812 .B win32 (Windows only)
2813 native Windows waveout audio output driver
2816 .B dsound (Windows only)
2817 DirectX DirectSound audio output driver
2818 .PD 0
2819 .RSs
2820 .IPs device=<devicenum>
2821 Sets the device number to use.
2822 Playing a file with \-v will show a list of available devices.
2824 .PD 1
2827 .B dart (OS/2 only)
2828 OS/2 DART audio output driver
2829 .PD 0
2830 .RSs
2831 .IPs (no)share
2832 Open DART in shareable or exclusive mode.
2833 .IPs bufsize=<size>
2834 Set buffer size to <size> in samples (default: 2048).
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 \-force\-window\-position
3040 Forcefully move MPlayer's video output window to default location whenever
3041 there is a change in video parameters, video stream or file.
3042 This used to be the default behavior.
3043 Currently only affects X11 VOs.
3046 .B \-fs (also see \-zoom)
3047 Fullscreen playback (centers movie, and paints black bands around it).
3048 Not supported by all video output drivers.
3051 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3052 Try this option if you still experience fullscreen problems.
3055 .B \-fstype <type1,type2,...> (X11 only)
3056 Specify a priority list of fullscreen modes to be used.
3057 You can negate the modes by prefixing them with '\-'.
3058 If you experience problems like the fullscreen window being covered
3059 by other windows try using a different order.
3061 .I NOTE:
3062 See \-fstype help for a full list of available modes.
3063 .sp 1
3064 The available types are:
3065 .sp 1
3066 .PD 0
3067 .RSs
3068 .IPs above
3069 Use the _NETWM_STATE_ABOVE hint if available.
3070 .IPs below
3071 Use the _NETWM_STATE_BELOW hint if available.
3072 .IPs fullscreen
3073 Use the _NETWM_STATE_FULLSCREEN hint if available.
3074 .IPs layer
3075 Use the _WIN_LAYER hint with the default layer.
3076 .IPs layer=<0...15>
3077 Use the _WIN_LAYER hint with the given layer number.
3078 .IPs netwm
3079 Force NETWM style.
3080 .IPs "none\ "
3081 Clear the list of modes; you can add modes to enable afterward.
3082 .IPs stays_on_top
3083 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3084 .REss
3085 .sp 1
3087 .I EXAMPLE:
3089 .PD 0
3090 .RSs
3091 .IPs layer,stays_on_top,above,fullscreen
3092 Default order, will be used as a fallback if incorrect or
3093 unsupported modes are specified.
3094 .IPs \-fullscreen
3095 Fixes fullscreen switching on OpenBox 1.x.
3097 .PD 1
3100 .B \-geometry x[%][:y[%]] or [WxH][+x+y]
3101 Adjust where the output is on the screen initially.
3102 The x and y specifications are in pixels measured from the top-left of the
3103 screen to the top-left of the image being displayed, however if a percentage
3104 sign is given after the argument it turns the value into a percentage of the
3105 screen size in that direction.
3106 It also supports the standard X11 \-geometry option format.
3107 If an external window is specified using the \-wid option, then the x and
3108 y coordinates are relative to the top-left corner of the window rather
3109 than the screen.
3110 The coordinates are relative to the screen given with \-xineramascreen for
3111 the video output drivers that fully support \-xineramascreen (direct3d, gl, gl2,
3112 vdpau, x11, xv, xvmc, corevideo).
3114 .I NOTE:
3115 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
3116 gl, gl2, directx, fbdev, tdfxfb and corevideo video output drivers.
3117 .sp 1
3118 .I EXAMPLE:
3119 .PD 0
3120 .RSs
3121 .IPs 50:40
3122 Places the window at x=50, y=40.
3123 .IPs 50%:50%
3124 Places the window in the middle of the screen.
3125 .IPs "100%\ "
3126 Places the window at the middle of the right edge of the screen.
3127 .IPs 100%:100%
3128 Places the window at the bottom right corner of the screen.
3130 .PD 1
3133 .B \-hue <\-100\-100>
3134 Adjust the hue of the video signal (default: 0).
3135 You can get a colored negative of the image with this option.
3136 Not supported by all video output drivers.
3139 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3140 Specify the dotclock or pixelclock range of the monitor.
3143 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3144 Specify the horizontal frequency range of the monitor.
3147 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3148 Specify the vertical frequency range of the monitor.
3151 .B \-monitoraspect <ratio> (also see \-aspect)
3152 Set the aspect ratio of your monitor or TV screen.
3153 A value of 0 disables a previous setting (e.g.\& in the config file).
3154 Overrides the \-monitorpixelaspect setting if enabled.
3155 .sp 1
3156 .I EXAMPLE:
3157 .PD 0
3158 .RSs
3159 \-monitoraspect 4:3  or 1.3333
3161 \-monitoraspect 16:9 or 1.7777
3163 .PD 1
3166 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3167 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3168 A value of 1 means square pixels
3169 (correct for (almost?) all LCDs).
3172 .B \-name (X11 only)
3173 Set the window class name.
3176 .B \-nodouble
3177 Disables double buffering, mostly for debugging purposes.
3178 Double buffering fixes flicker by storing two frames in memory, and
3179 displaying one while decoding another.
3180 It can affect OSD negatively, but often removes OSD flickering.
3183 .B \-nograbpointer
3184 Do not grab the mouse pointer after a video mode change (\-vm).
3185 Useful for multihead setups.
3188 .B \-nokeepaspect
3189 Do not keep window aspect ratio when resizing windows.
3190 By default MPlayer tries to keep the correct video aspect ratio by
3191 instructing the window manager to maintain window aspect when resizing,
3192 and by adding black bars if the window manager nevertheless allows
3193 window shape to change.
3194 This option disables window manager aspect hints and scales the video
3195 to completely fill the window without regard for aspect ratio.
3198 .B "\-ontop\ "
3199 Makes the player window stay on top of other windows.
3200 Supported by video output drivers which use X11, except SDL,
3201 as well as directx, corevideo, quartz, ggi and gl2.
3204 .B \-panscan <0.0\-1.0>
3205 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3206 movie to make it fit a 4:3 display without black bands).
3207 The range controls how much of the image is cropped.
3208 Only works with the xv, xmga, mga, gl, gl2, quartz, corevideo and xvidix
3209 video output drivers.
3211 .I NOTE:
3212 Values between \-1 and 0 are allowed as well, but highly experimental
3213 and may crash or worse.
3214 Use at your own risk!
3217 .B \-panscanrange <\-19.0\-99.0> (experimental)
3218 Change the range of the pan-and-scan functionality (default: 1).
3219 Positive values mean multiples of the default range.
3220 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3221 E.g.\& \-panscanrange \-3 allows a zoom factor of up to 4.
3222 This feature is experimental.
3223 Do not report bugs unless you are using \-vo gl.
3226 .B \-refreshrate <Hz>
3227 Set the monitor refreshrate in Hz.
3228 Currently only supported by \-vo directx combined with the \-vm option.
3231 .B \-rootwin
3232 Play movie in the root window (desktop background).
3233 Desktop background images may cover the movie window, though.
3234 Only works with the x11, xv, xmga, xvidix, quartz, corevideo and directx video output drivers.
3237 .B \-saturation <\-100\-100>
3238 Adjust the saturation of the video signal (default: 0).
3239 You can get grayscale output with this option.
3240 Not supported by all video output drivers.
3243 .B \-screenh <pixels>
3244 Specify the screen height for video output drivers which
3245 do not know the screen resolution like fbdev, x11 and TV-out.
3248 .B \-screenw <pixels>
3249 Specify the screen width for video output drivers which
3250 do not know the screen resolution like fbdev, x11 and TV-out.
3253 .B \-stop\-xscreensaver (X11 only)
3254 Turns off xscreensaver at startup and turns it on again on exit.
3255 If your screensaver supports neither the XSS nor XResetScreenSaver
3256 API please use \-heartbeat\-cmd instead.
3259 .B \-title (also see \-use\-filename\-title)
3260 Set the window title.
3261 Supported by X11-based video output drivers.
3264 .B \-use\-filename\-title (also see \-title)
3265 Set the window title using the media filename, when not set with \-title.
3266 Supported by X11-based video output drivers.
3269 .B "\-vm \ \ \ "
3270 Try to change to a different video mode.
3271 Supported by the dga, x11, xv, sdl and directx video output drivers.
3272 If used with the directx video output driver the \-screenw,
3273 \-screenh, \-bpp and \-refreshrate options can be used to set
3274 the new display mode.
3277 .B "\-vsync \ \ "
3278 Enables VBI for the vesa, dfbmga and svga video output drivers.
3281 .B \-wid <window ID> (X11, OpenGL and DirectX only)
3282 This tells MPlayer to attach to an existing window.
3283 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3284 This option fills the given window completely, thus aspect scaling,
3285 panscan, etc are no longer handled by MPlayer but must be managed by the
3286 application that created the window.
3289 .B \-xineramascreen <\-2\-...>
3290 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3291 displays) this option tells MPlayer which screen to display the movie on.
3292 A value of \-2 means fullscreen across the whole virtual display (in this case
3293 Xinerama information is completely ignored), \-1 means
3294 fullscreen on the display the window currently is on.
3295 The initial position set via the \-geometry option is relative to the
3296 specified screen.
3297 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3298 This option is not suitable to only set the startup screen (because
3299 it will always display on the given screen in fullscreen mode),
3300 \-geometry is the best that is available for that purpose
3301 currently.
3302 Supported by at least the direct3d, gl, gl2, x11, xv and corevideo video output
3303 drivers.
3306 .B \-zrbw (\-vo zr only)
3307 Display in black and white.
3308 For optimal performance, this can be combined with '\-lavdopts gray'.
3311 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3312 Select a part of the input image to display, multiple occurrences
3313 of this option switch on cinerama mode.
3314 In cinerama mode the movie is distributed over more than one TV
3315 (or beamer) to create a larger image.
3316 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3317 card should at least have a \-zrdev in addition to the \-zrcrop.
3318 For examples, see the output of \-zrhelp and the Zr section of the
3319 documentation.
3322 .B \-zrdev <device> (\-vo zr only)
3323 Specify the device special file that belongs to your MJPEG card, by default
3324 the zr video output driver takes the first v4l device it can find.
3327 .B \-zrfd (\-vo zr only)
3328 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3329 happens if the hardware scaler can stretch the image to its original size.
3330 Use this option to force decimation.
3333 .B \-zrhdec <1|2|4> (\-vo zr only)
3334 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3335 line/\:pixel of the input image to the MJPEG card and use the scaler
3336 of the MJPEG card to stretch the image to its original size.
3339 .B \-zrhelp (\-vo zr only)
3340 Display a list of all \-zr* options, their default values and a
3341 cinerama mode example.
3344 .B \-zrnorm <norm> (\-vo zr only)
3345 Specify the TV norm as PAL or NTSC (default: no change).
3348 .B \-zrquality <1\-20> (\-vo zr only)
3349 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3352 .B \-zrvdec <1|2|4> (\-vo zr only)
3353 Vertical decimation: Ask the driver to send only every 2nd or 4th
3354 line/\:pixel of the input image to the MJPEG card and use the scaler
3355 of the MJPEG card to stretch the image to its original size.
3358 .B \-zrxdoff <x display offset> (\-vo zr only)
3359 If the movie is smaller than the TV screen, this option specifies the x
3360 offset from the upper-left corner of the TV screen (default: centered).
3363 .B \-zrydoff <y display offset> (\-vo zr only)
3364 If the movie is smaller than the TV screen, this option specifies the y
3365 offset from the upper-left corner of the TV screen (default: centered).
3369 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3370 Video output drivers are interfaces to different video output facilities.
3371 The syntax is:
3374 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3375 Specify a priority list of video output drivers to be used.
3377 If the list has a trailing ',' MPlayer will fall back on drivers not
3378 contained in the list.
3379 Suboptions are optional and can mostly be omitted.
3381 .I NOTE:
3382 See \-vo help for a list of compiled-in video output drivers.
3383 .sp 1
3384 .I EXAMPLE:
3385 .PD 0
3386 .RSs
3387 .IPs "\-vo xmga,xv,"
3388 Try the Matrox X11 driver, then the Xv driver, then others.
3389 .IPs "\-vo directx:noaccel"
3390 Uses the DirectX driver with acceleration features turned off.
3392 .PD 1
3393 .sp 1
3394 Available video output drivers are:
3397 .B xv (X11 only)
3398 Uses the XVideo extension of XFree86 4.x to enable hardware
3399 accelerated playback.
3400 If you cannot use a hardware specific driver, this is probably
3401 the best option.
3402 For information about what colorkey is used and how it is drawn run MPlayer
3403 with \-v option and look out for the lines tagged with [xv common] at the
3404 beginning.
3405 .PD 0
3406 .RSs
3407 .IPs adaptor=<number>
3408 Select a specific XVideo adaptor (check xvinfo results).
3409 .IPs port=<number>
3410 Select a specific XVideo port.
3411 .IPs ck=<cur|use|set>
3412 Select the source from which the colorkey is taken (default: cur).
3413 .RSss
3414 .IPs cur
3415 The default takes the colorkey currently set in Xv.
3416 .IPs use
3417 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3418 it).
3419 .IPs set
3420 Same as use but also sets the supplied colorkey.
3422 .IPs ck-method=<man|bg|auto>
3423 Sets the colorkey drawing method (default: man).
3424 .RSss
3425 .IPs man
3426 Draw the colorkey manually (reduces flicker in some cases).
3427 .IPs bg
3428 Set the colorkey as window background.
3429 .IPs auto
3430 Let Xv draw the colorkey.
3433 .PD 1
3436 .B x11 (X11 only)
3437 Shared memory video output driver without hardware acceleration that
3438 works whenever X11 is present.
3441 .B xover (X11 only)
3442 Adds X11 support to all overlay based video output drivers.
3443 Currently only supported by tdfx_vid.
3444 .PD 0
3445 .RSs
3446 .IPs <vo_driver>
3447 Select the driver to use as source to overlay on top of X11.
3449 .PD 1
3452 .B vdpau (with \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau, ffh264vdpau
3453 or ffodivxvdpau)
3454 Video output that uses VDPAU to decode video via hardware.
3455 Also supports displaying of software-decoded video.
3456 .PD 0
3457 .RSs
3458 .IPs sharpen=<\-1\-1>
3459 For positive values, apply a sharpening algorithm to the video,
3460 for negative values a blurring algorithm (default: 0).
3461 .IPs denoise=<0\-1>
3462 Apply a noise reduction algorithm to the video (default: 0, no noise reduction).
3463 .IPs deint=<0\-4>
3464 Select the deinterlacer (default: 0).
3465 All modes > 0 respect \-field\-dominance.
3466 .RSss
3467 .IPs 0
3468 no deinterlacing
3469 .IPs 1
3470 Show only first field, similar to \-vf field.
3471 .IPs 2
3472 Bob deinterlacing, similar to \-vf tfields=1.
3473 .IPs 3
3474 motion adaptive temporal deinterlacing
3475 May lead to A/V desync with slow video hardware and/or high resolution.
3476 This is the default if "D" is used to enable deinterlacing.
3477 .IPs 4
3478 motion adaptive temporal deinterlacing with edge-guided spatial interpolation
3479 Needs fast video hardware.
3481 .IPs chroma\-deint
3482 Makes temporal deinterlacers operate both on luma and chroma (default).
3483 Use nochroma\-deint to solely use luma and speed up advanced deinterlacing.
3484 Useful with slow video memory.
3485 .IPs pullup
3486 Try to apply inverse telecine, needs motion adaptive temporal deinterlacing.
3487 .IPs colorspace
3488 Select the color space for YUV to RGB conversion.
3489 In general BT.601 should be used for standard definition (SD) content and
3490 BT.709 for high definition (HD) content.
3491 Using incorrect color space results in slightly under or over saturated and
3492 shifted colors.
3493 .RSss
3494 .IPs 0
3495 Guess the color space based on video resolution.
3496 Video with width >= 1280 or height > 576 is assumed to be HD and BT.709 color
3497 space will be used.
3498 .IPs 1
3499 Use ITU-R BT.601 color space (default).
3500 .IPs 2
3501 Use ITU-R BT.709 color space.
3502 .IPs 3
3503 Use SMPTE-240M color space.
3505 .IPs hqscaling
3506 .RSss
3507 .IPs 0
3508 Use default VDPAU scaling (default).
3509 .IPs 1\-9
3510 Apply high quality VDPAU scaling (needs capable hardware).
3512 .IPs fps=<number>
3513 Override autodetected display refresh rate value (the value is needed for framedrop to allow video playback rates higher than display refresh rate, and for vsync-aware frame timing adjustments).
3514 Default 0 means use autodetected value.
3515 A positive value is interpreted as a refresh rate in Hz and overrides the autodetected value.
3516 A negative value disables all timing adjustment and framedrop logic.
3517 .IPs queuetime_windowed=<number>
3518 .IPs queuetime_fs=<number>
3519 Use VDPAU's presentation queue functionality to queue future video frame
3520 changes at most this many milliseconds in advance (default: 50).
3521 This makes MPlayer's flip timing less sensitive to system CPU load and allows
3522 it to start decoding the next frame slightly earlier which can reduce jitter
3523 caused by individual slow-to-decode frames.
3524 However the NVIDIA graphics drivers can make other window behavior such as
3525 window moves choppy if VDPAU is using the blit queue (mainly happens
3526 if you have the composite extension enabled) and this feature is active.
3527 If this happens on your system and you care about it then you can set the
3528 time to 0 to disable this feature.
3529 The settings to use in windowed and fullscreen mode are separate because there
3530 should be less reason to disable this for fullscreen mode (as the driver issue
3531 shouldn't affect the video itself).
3533 .PD 1
3536 .B xvmc (X11 with \-vc ffmpeg12mc only)
3537 Video output driver that uses the XvMC (X Video Motion Compensation)
3538 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3539 .PD 0
3540 .RSs
3541 .IPs adaptor=<number>
3542 Select a specific XVideo adaptor (check xvinfo results).
3543 .IPs port=<number>
3544 Select a specific XVideo port.
3545 .IPs (no)benchmark
3546 Disables image display.
3547 Necessary for proper benchmarking of drivers that change
3548 image buffers on monitor retrace only (nVidia).
3549 Default is not to disable image display (nobenchmark).
3550 .IPs (no)bobdeint
3551 Very simple deinterlacer.
3552 Might not look better than \-vf tfields=1,
3553 but it is the only deinterlacer for xvmc (default: nobobdeint).
3554 .IPs (no)queue
3555 Queue frames for display to allow more parallel work of the video hardware.
3556 May add a small (not noticeable) constant A/V desync (default: noqueue).
3557 .IPs (no)sleep
3558 Use sleep function while waiting for rendering to finish
3559 (not recommended on Linux) (default: nosleep).
3560 .IPs ck=cur|use|set
3561 Same as \-vo xv:ck (see \-vo xv).
3562 .IPs ck-method=man|bg|auto
3563 Same as \-vo xv:ck-method (see \-vo xv).
3565 .PD 1
3568 .B dga (X11 only)
3569 Play video through the XFree86 Direct Graphics Access extension.
3570 Considered obsolete.
3573 .B sdl (SDL only, buggy/outdated)
3574 Highly platform independent SDL (Simple Directmedia Layer) library
3575 video output driver.
3576 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3577 any effect on SDL.
3578 Note that it has several minor bugs (\-vm/\-novm is mostly ignored,
3579 \-fs behaves like \-novm should, window is in top-left corner when
3580 returning from fullscreen, panscan is not supported, ...).
3581 .PD 0
3582 .RSs
3583 .IPs driver=<driver>
3584 Explicitly choose the SDL driver to use.
3585 .IPs (no)forcexv
3586 Use XVideo through the sdl video output driver (default: forcexv).
3587 .IPs (no)hwaccel
3588 Use hardware accelerated scaler (default: hwaccel).
3590 .PD 1
3593 .B "vidix\ \ "
3594 VIDIX (VIDeo Interface for *niX) is an interface to the
3595 video acceleration features of different graphics cards.
3596 Very fast video output driver on cards that support it.
3597 .PD 0
3598 .RSs
3599 .IPs <subdevice>
3600 Explicitly choose the VIDIX subdevice driver to use.
3601 Available subdevice drivers are cyberblade, ivtv, mach64,
3602 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, s3, sh_veu,
3603 sis_vid and unichrome.
3605 .PD 1
3608 .B xvidix (X11 only)
3609 X11 frontend for VIDIX
3610 .PD 0
3611 .RSs
3612 .IPs <subdevice>
3613 same as vidix
3615 .PD 1
3618 .B "cvidix\ "
3619 Generic and platform independent VIDIX frontend, can even run in a
3620 text console with nVidia cards.
3621 .PD 0
3622 .RSs
3623 .IPs <subdevice>
3624 same as vidix
3626 .PD 1
3629 .B winvidix (Windows only)
3630 Windows frontend for VIDIX
3631 .PD 0
3632 .RSs
3633 .IPs <subdevice>
3634 same as vidix
3636 .PD 1
3639 .B direct3d (Windows only) (BETA CODE!)
3640 Video output driver that uses the Direct3D interface (useful for Vista).
3643 .B directx (Windows only)
3644 Video output driver that uses the DirectX interface.
3645 .PD 0
3646 .RSs
3647 .IPs noaccel
3648 Turns off hardware acceleration.
3649 Try this option if you have display problems.
3651 .PD 1
3654 .B kva (OS/2 only)
3655 Video output driver that uses the libkva interface.
3656 .PD 0
3657 .RSs
3658 .IPs snap
3659 Force SNAP mode.
3660 .IPs wo
3661 Force WarpOverlay! mode.
3662 .IPs dive
3663 Force DIVE mode.
3664 .IPs (no)t23
3665 Enable or disable workaround for T23 laptop (default: disabled).
3666 Try to enable this option if your video card supports upscaling only.
3668 .PD 1
3671 .B quartz (Mac OS X only)
3672 Mac OS X Quartz video output driver.
3673 Under some circumstances, it might be more efficient to force a
3674 packed YUV output format, with e.g.\& \-vf format=yuy2.
3675 .PD 0
3676 .RSs
3677 .IPs device_id=<number>
3678 Choose the display device to use in fullscreen.
3679 .IPs fs_res=<width>:<height>
3680 Specify the fullscreen resolution (useful on slow systems).
3682 .PD 1
3685 .B corevideo (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3686 Mac OS X CoreVideo video output driver
3687 .PD 0
3688 .RSs
3689 .IPs device_id=<number>
3690 Choose the display device to use for fullscreen or set it to \-1 to
3691 always use the same screen the video window is on (default: \-1 \- auto).
3692 .IPs shared_buffer
3693 Write output to a shared memory buffer instead of displaying it and
3694 try to open an existing NSConnection for communication with a GUI.
3695 .IPs buffer_name=<name>
3696 Name of the shared buffer created with shm_open as well as the name of
3697 the NSConnection MPlayer will try to open (default: "mplayerosx").
3698 Setting buffer_name implicitly enables shared_buffer.
3700 .PD 1
3703 .B fbdev (Linux only)
3704 Uses the kernel framebuffer to play video.
3705 .PD 0
3706 .RSs
3707 .IPs <device>
3708 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3709 name of the VIDIX subdevice if the device name starts with 'vidix'
3710 (e.g.\& 'vidixsis_vid' for the sis driver).
3712 .PD 1
3715 .B fbdev2 (Linux only)
3716 Uses the kernel framebuffer to play video,
3717 alternative implementation.
3718 .PD 0
3719 .RSs
3720 .IPs <device>
3721 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3723 .PD 1
3726 .B "vesa\ \ \ "
3727 Very general video output driver that should work on any VESA VBE 2.0
3728 compatible card.
3729 .PD 0
3730 .RSs
3731 .IPs (no)dga
3732 Turns DGA mode on or off (default: on).
3733 .IPs neotv_pal
3734 Activate the NeoMagic TV out and set it to PAL norm.
3735 .IPs neotv_ntsc
3736 Activate the NeoMagic TV out and set it to NTSC norm.
3737 .IPs vidix
3738 Use the VIDIX driver.
3739 .IPs "lvo:\ \ \ "
3740 Activate the Linux Video Overlay on top of VESA mode.
3742 .PD 1
3745 .B "svga\ \ \ "
3746 Play video using the SVGA library.
3747 .PD 0
3748 .RSs
3749 .IPs "<video mode>"
3750 Specify video mode to use.
3751 The mode can be given in a <width>x<height>x<colors> format,
3752 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3753 .IPs bbosd
3754 Draw OSD into black bands below the movie (slower).
3755 .IPs native
3756 Use only native drawing functions.
3757 This avoids direct rendering, OSD and hardware acceleration.
3758 .IPs retrace
3759 Force frame switch on vertical retrace.
3760 Usable only with \-double.
3761 It has the same effect as the \-vsync option.
3762 .IPs "sq\ \ \ "
3763 Try to select a video mode with square pixels.
3764 .IPs vidix
3765 Use svga with VIDIX.
3767 .PD 1
3770 .B "gl\ \ \ \ \ "
3771 OpenGL video output driver, simple version.
3772 Video size must be smaller than
3773 the maximum texture size of your OpenGL implementation.
3774 Intended to work even with the most basic OpenGL implementations,
3775 but also makes use of newer extensions, which allow support for more
3776 colorspaces and direct rendering.
3777 For optimal speed try something similar to
3779 \-vo gl:yuv=2:rectangle=2:force\-pbo:ati\-hack \-dr \-noslices
3781 The code performs very few checks, so if a feature does not work, this
3782 might be because it is not supported by your card/OpenGL implementation
3783 even if you do not get any error message.
3784 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3785 .PD 0
3786 .RSs
3787 .IPs (no)ati\-hack
3788 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3789 or force\-pbo).
3790 This option fixes this, at the expense of using a bit more memory.
3791 .IPs (no)force\-pbo
3792 Always uses PBOs to transfer textures even if this involves an extra copy.
3793 Currently this gives a little extra speed with NVidia drivers and a lot more
3794 speed with ATI drivers.
3795 May need \-noslices and the ati\-hack suboption to work correctly.
3796 .IPs (no)scaled-osd
3797 Changes the way the OSD behaves when the size of the
3798 window changes (default: disabled).
3799 When enabled behaves more like the other video output drivers,
3800 which is better for fixed-size fonts.
3801 Disabled looks much better with FreeType fonts and uses the
3802 borders in fullscreen mode.
3803 Does not work correctly with ass subtitles (see \-ass), you can instead
3804 render them without OpenGL support via \-vf ass.
3805 .IPs osdcolor=<0xAARRGGBB>
3806 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3807 .IPs rectangle=<0,1,2>
3808 Select usage of rectangular textures which saves video RAM, but often is
3809 slower (default: 0).
3810 .RSss
3811 0: Use power-of-two textures (default).
3813 1: Use the GL_ARB_texture_rectangle extension.
3815 2: Use the GL_ARB_texture_non_power_of_two extension.
3816 In some cases only supported in software and thus very slow.
3818 .IPs swapinterval=<n>
3819 Minimum interval between two buffer swaps, counted in
3820 displayed frames (default: 1).
3821 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3822 Values below 0 will leave it at the system default.
3823 This limits the framerate to (horizontal refresh rate / n).
3824 Requires GLX_SGI_swap_control support to work.
3825 With some (most/all?) implementations this only works in fullscreen mode.
3826 .IPs ycbcr
3827 Use the GL_MESA_ycbcr_texture extension to convert YUV to RGB.
3828 In most cases this is probably slower than doing software conversion to RGB.
3829 .IPs yuv=<n>
3830 Select the type of YUV to RGB conversion.
3831 .RSss
3832 0: Use software conversion (default).
3833 Compatible with all OpenGL versions.
3834 Provides brightness, contrast and saturation control.
3836 1: Use register combiners.
3837 This uses an nVidia-specific extension (GL_NV_register_combiners).
3838 At least three texture units are needed.
3839 Provides saturation and hue control.
3840 This method is fast but inexact.
3842 2: Use a fragment program.
3843 Needs the GL_ARB_fragment_program extension and at least three texture units.
3844 Provides brightness, contrast, saturation and hue control.
3846 3: Use a fragment program using the POW instruction.
3847 Needs the GL_ARB_fragment_program extension and at least three texture units.
3848 Provides brightness, contrast, saturation, hue and gamma control.
3849 Gamma can also be set independently for red, green and blue.
3850 Method 4 is usually faster.
3852 4: Use a fragment program with additional lookup.
3853 Needs the GL_ARB_fragment_program extension and at least four texture units.
3854 Provides brightness, contrast, saturation, hue and gamma control.
3855 Gamma can also be set independently for red, green and blue.
3857 5: Use ATI-specific method (for older cards).
3858 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3859 GL_ARB_fragment_shader!).
3860 At least three texture units are needed.
3861 Provides saturation and hue control.
3862 This method is fast but inexact.
3864 6: Use a 3D texture to do conversion via lookup.
3865 Needs the GL_ARB_fragment_program extension and at least four texture units.
3866 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3867 a texture with border pixels.
3868 Provides brightness, contrast, saturation, hue and gamma control.
3869 Gamma can also be set independently for red, green and blue.
3870 Speed depends more on GPU memory bandwidth than other methods.
3872 .IPs colorspace
3873 Select the color space for YUV to RGB conversion.
3874 .RSss
3875 .IPs 0
3876 Use the formula used normally by MPlayer (default).
3877 .IPs 1
3878 Use ITU-R BT.601 color space.
3879 .IPs 2
3880 Use ITU-R BT.709 color space.
3881 .IPs 3
3882 Use SMPTE-240M color space.
3884 .IPs levelconv=<n>
3885 Select the brightness level conversion to use for the YUV to RGB conversion
3886 .RSss
3887 .IPs 0
3888 Convert TV to PC levels (default).
3889 .IPs 1
3890 Convert PC to TV levels.
3891 .IPs 2
3892 Do not do any conversion.
3894 .IPs lscale=<n>
3895 Select the scaling function to use for luminance scaling.
3896 Only valid for yuv modes 2, 3, 4 and 6.
3897 .RSss
3898 0: Use simple linear filtering (default).
3900 1: Use bicubic B-spline filtering (better quality).
3901 Needs one additional texture unit.
3902 Older cards will not be able to handle this for chroma at least in fullscreen mode.
3904 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
3905 Works on a few more cards than method 1.
3907 3: Same as 1 but does not use a lookup texture.
3908 Might be faster on some cards.
3910 4: Use experimental unsharp masking with 3x3 support and a default strength of 0.5 (see filter-strength).
3912 5: Use experimental unsharp masking with 5x5 support and a default strength of 0.5 (see filter-strength).
3914 .IPs cscale=<n>
3915 Select the scaling function to use for chrominance scaling.
3916 For details see lscale.
3917 .IPs filter-strength=<value>
3918 Set the effect strength for the lscale/cscale filters that support it.
3919 .IPs customprog=<filename>
3920 Load a custom fragment program from <filename>.
3921 See TOOLS/edgedect.fp for an example.
3922 .IPs customtex=<filename>
3923 Load a custom "gamma ramp" texture from <filename>.
3924 This can be used in combination with yuv=4 or with the customprog option.
3925 .IPs (no)customtlin
3926 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
3927 for customtex texture.
3928 .IPs (no)customtrect
3929 If enabled, use texture_rectangle for customtex texture.
3930 Default is disabled.
3931 .IPs (no)mipmapgen
3932 If enabled, mipmaps for the video are automatically generated.
3933 This should be useful together with the customprog and the TXB
3934 instruction to implement blur filters with a large radius.
3935 For most OpenGL implementations this is very slow for any non-RGB
3936 formats.
3937 Default is disabled.
3939 .sp 1
3941 Normally there is no reason to use the following options, they mostly
3942 exist for testing purposes.
3944 .sp 1
3945 .RSs
3946 .IPs (no)glfinish
3947 Call glFinish() before swapping buffers.
3948 Slower but in some cases more correct output (default: disabled).
3949 .IPs (no)manyfmts
3950 Enables support for more (RGB and BGR) color formats (default: enabled).
3951 Needs OpenGL version >= 1.2.
3952 .IPs slice-height=<0\-...>
3953 Number of lines copied to texture in one piece (default: 0).
3954 0 for whole image.
3956 .I NOTE:
3957 If YUV colorspace is used (see yuv suboption), special rules apply:
3958 .RSss
3959 If the decoder uses slice rendering (see \-noslices), this setting
3960 has no effect, the size of the slices as provided by the decoder is used.
3962 If the decoder does not use slice rendering, the default is 16.
3964 .IPs (no)osd
3965 Enable or disable support for OSD rendering via OpenGL (default: enabled).
3966 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
3967 .IPs (no)aspect
3968 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
3969 Disabling might increase speed.
3970 .REss
3972 .PD 1
3975 .B "gl2\ \ \ \ "
3976 Variant of the OpenGL video output driver.
3977 Supports videos larger than the maximum texture size but lacks many of the
3978 advanced features and optimizations of the gl driver and is unlikely to be
3979 extended further.
3980 .PD 0
3981 .RSs
3982 .IPs (no)glfinish
3983 same as gl (default: enabled)
3984 .IPs yuv=<n>
3985 Select the type of YUV to RGB conversion.
3986 If set to anything except 0 OSD will be disabled and brightness, contrast and
3987 gamma setting is only available via the global X server settings.
3988 Apart from this the values have the same meaning as for \-vo gl.
3989 .REss
3992 .B matrixview
3993 OpenGL-based renderer creating a Matrix-like running-text effect.
3994 .PD 0
3995 .RSs
3996 .IPs cols=<n>
3997 Number of text columns to display.
3998 Very low values (< 16) will probably fail due to scaler limitations.
3999 Values not divisible by 16 may cause issues as well.
4000 .IPs rows=<n>
4001 Number of text rows to display.
4002 Very low values (< 16) will probably fail due to scaler limitations.
4003 Values not divisible by 16 may cause issues as well.
4004 .REss
4007 .B "null\ \ \ "
4008 Produces no video output.
4009 Useful for benchmarking.
4012 .B "aa\ \ \ \ \ "
4013 ASCII art video output driver that works on a text console.
4014 You can get a list and an explanation of available suboptions
4015 by executing 'mplayer \-vo aa:help'.
4017 .I NOTE:
4018 The driver does not handle \-aspect correctly.
4020 .I HINT:
4021 You probably have to specify \-monitorpixelaspect.
4022 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
4025 .B "caca\ \ \ "
4026 Color ASCII art video output driver that works on a text console.
4029 .B "bl\ \ \ \ \ "
4030 Video playback using the Blinkenlights UDP protocol.
4031 This driver is highly hardware specific.
4032 .PD 0
4033 .RSs
4034 .IPs <subdevice>
4035 Explicitly choose the Blinkenlights subdevice driver to use.
4036 It is something like arcade:host=localhost:2323 or
4037 hdl:file=name1,file=name2.
4038 You must specify a subdevice.
4040 .PD 1
4043 .B "ggi\ \ \ \ "
4044 GGI graphics system video output driver
4045 .PD 0
4046 .RSs
4047 .IPs <driver>
4048 Explicitly choose the GGI driver to use.
4049 Replace any ',' that would appear in the driver string by a '.'.
4051 .PD 1
4054 .B directfb
4055 Play video using the DirectFB library.
4056 .PD 0
4057 .RSs
4058 .IPs (no)input
4059 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
4060 .IPs buffermode=single|double|triple
4061 Double and triple buffering give best results if you want to avoid tearing issues.
4062 Triple buffering is more efficient than double buffering as it does
4063 not block MPlayer while waiting for the vertical retrace.
4064 Single buffering should be avoided (default: single).
4065 .IPs fieldparity=top|bottom
4066 Control the output order for interlaced frames (default: disabled).
4067 Valid values are top = top fields first, bottom = bottom fields first.
4068 This option does not have any effect on progressive film material
4069 like most MPEG movies are.
4070 You need to enable this option if you have tearing issues or unsmooth
4071 motions watching interlaced film material.
4072 .IPs layer=N
4073 Will force layer with ID N for playback (default: \-1 \- auto).
4074 .IPs dfbopts=<list>
4075 Specify a parameter list for DirectFB.
4077 .PD 1
4080 .B "dfbmga\ "
4081 Matrox G400/\:G450/\:G550 specific video output driver that uses the
4082 DirectFB library to make use of special hardware features.
4083 Enables CRTC2 (second head), displaying video independently of the first head.
4084 .PD 0
4085 .RSs
4086 .IPs (no)input
4087 same as directfb (default: disabled)
4088 .IPs buffermode=single|double|triple
4089 same as directfb (default: triple)
4090 .IPs fieldparity=top|bottom
4091 same as directfb
4092 .IPs (no)bes
4093 Enable the use of the Matrox BES (backend scaler) (default: disabled).
4094 Gives very good results concerning speed and output quality as interpolated
4095 picture processing is done in hardware.
4096 Works only on the primary head.
4097 .IPs (no)spic
4098 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
4099 .IPs (no)crtc2
4100 Turn on TV-out on the second head (default: enabled).
4101 The output quality is amazing as it is a full interlaced picture
4102 with proper sync to every odd/\:even field.
4103 .IPs tvnorm=pal|ntsc|auto
4104 Will set the TV norm of the Matrox card without the need
4105 for modifying /etc/\:directfbrc (default: disabled).
4106 Valid norms are pal = PAL, ntsc = NTSC.
4107 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
4108 which norm to use by looking at the framerate of the movie.
4110 .PD 1
4113 .B mga (Linux only)
4114 Matrox specific video output driver that makes use of the YUV back
4115 end scaler on Gxxx cards through a kernel module.
4116 If you have a Matrox card, this is the fastest option.
4117 .PD 0
4118 .RSs
4119 .IPs <device>
4120 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4122 .PD 1
4125 .B xmga (Linux, X11 only)
4126 The mga video output driver, running in an X11 window.
4127 .PD 0
4128 .RSs
4129 .IPs <device>
4130 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4132 .PD 1
4135 .B s3fb (Linux only) (also see \-vf yuv2 and \-dr)
4136 S3 Virge specific video output driver.
4137 This driver supports the card's YUV conversion and scaling, double
4138 buffering and direct rendering features.
4139 Use \-vf yuy2 to get hardware-accelerated YUY2 rendering, which is
4140 much faster than YV12 on this card.
4141 .PD 0
4142 .RSs
4143 .IPs <device>
4144 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4146 .PD 1
4149 .B wii (Linux only)
4150 Nintendo Wii/GameCube specific video output driver.
4153 .B 3dfx (Linux only)
4154 3dfx-specific video output driver that directly uses
4155 the hardware on top of X11.
4156 Only 16 bpp are supported.
4159 .B tdfxfb (Linux only)
4160 This driver employs the tdfxfb framebuffer driver to play movies with
4161 YUV acceleration on 3dfx cards.
4162 .PD 0
4163 .RSs
4164 .IPs <device>
4165 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4167 .PD 1
4170 .B tdfx_vid (Linux only)
4171 3dfx-specific video output driver that works in combination with
4172 the tdfx_vid kernel module.
4173 .PD 0
4174 .RSs
4175 .IPs <device>
4176 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
4178 .PD 1
4181 .B dxr2 (also see \-dxr2) (DXR2 only)
4182 Creative DXR2 specific video output driver.
4183 .PD 0
4184 .RSs
4185 .IPs <vo_driver>
4186 Output video subdriver to use as overlay (x11, xv).
4188 .PD 1
4191 .B dxr3 (DXR3 only)
4192 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
4193 Hollywood Plus) specific video output driver.
4194 Also see the lavc video filter.
4195 .PD 0
4196 .RSs
4197 .IPs overlay
4198 Activates the overlay instead of TV-out.
4199 .IPs prebuf
4200 Turns on prebuffering.
4201 .IPs "sync\ "
4202 Will turn on the new sync-engine.
4203 .IPs norm=<norm>
4204 Specifies the TV norm.
4205 .RSss
4206 0: Does not change current norm (default).
4208 1: Auto-adjust using PAL/\:NTSC.
4210 2: Auto-adjust using PAL/\:PAL-60.
4212 3: PAL
4214 4: PAL-60
4216 5: NTSC
4218 .IPs <0\-3>
4219 Specifies the device number to use if you have more than one em8300 card.
4221 .PD 1
4224 .B ivtv (IVTV only)
4225 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4226 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4227 specific video output driver for TV-out.
4228 Also see the lavc video filter.
4229 .PD 0
4230 .RSs
4231 .IPs <device>
4232 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4233 .IPs <output>
4234 Explicitly choose the TV-out output to be used for the video signal.
4236 .PD 1
4239 .B v4l2 (requires Linux 2.6.22+ kernel)
4240 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4241 Also see the lavc video filter.
4242 .PD 0
4243 .RSs
4244 .IPs <device>
4245 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4246 .IPs <output>
4247 Explicitly choose the TV-out output to be used for the video signal.
4249 .PD 1
4252 .B mpegpes (DVB only)
4253 Video output driver for DVB cards that writes the output to an MPEG-PES file
4254 if no DVB card is installed.
4255 .PD 0
4256 .RSs
4257 .IPs card=<1\-4>
4258 Specifies the device number to use if you have more than one DVB output card
4259 (V3 API only, such as 1.x.y series drivers).
4260 If not specified MPlayer will search the first usable card.
4261 .IPs <filename>
4262 output filename (default: ./grab.mpg)
4264 .PD 1
4267 .B zr (also see \-zr* and \-zrhelp)
4268 Video output driver for a number of MJPEG capture/\:playback cards.
4271 .B zr2 (also see the zrmjpeg video filter)
4272 Video output driver for a number of MJPEG capture/\:playback cards,
4273 second generation.
4274 .PD 0
4275 .RSs
4276 .IPs dev=<device>
4277 Specifies the video device to use.
4278 .IPs norm=<PAL|NTSC|SECAM|auto>
4279 Specifies the video norm to use (default: auto).
4280 .IPs (no)prebuf
4281 (De)Activate prebuffering, not yet supported.
4283 .PD 1
4286 .B "md5sum\ "
4287 Calculate MD5 sums of each frame and write them to a file.
4288 Supports RGB24 and YV12 colorspaces.
4289 Useful for debugging.
4290 .PD 0
4291 .RSs
4292 .IPs outfile=<value>
4293 Specify the output filename (default: ./md5sums).
4295 .PD 1
4298 .B yuv4mpeg
4299 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4300 images and stores it in a file (default: ./stream.yuv).
4301 The format is the same as the one employed by mjpegtools, so this is
4302 useful if you want to process the video with the mjpegtools suite.
4303 It supports the YV12, RGB (24 bpp) and BGR (24 bpp) format.
4304 You can combine it with the \-fixed\-vo option to concatenate files
4305 with the same dimensions and fps value.
4306 .PD 0
4307 .RSs
4308 .IPs interlaced
4309 Write the output as interlaced frames, top field first.
4310 .IPs interlaced_bf
4311 Write the output as interlaced frames, bottom field first.
4312 .IPs file=<filename>
4313 Write the output to <filename> instead of the default stream.yuv.
4314 .REss
4315 .PD 1
4317 .sp 1
4318 .I NOTE:
4319 If you do not specify any option the output is progressive
4320 (i.e.\& not interlaced).
4324 .B "gif89a\ "
4325 Output each frame into a single animated GIF file in the current directory.
4326 It supports only RGB format with 24 bpp and the output is converted to 256
4327 colors.
4328 .PD 0
4329 .RSs
4330 .IPs <fps>
4331 Float value to specify framerate (default: 5.0).
4332 .IPs <output>
4333 Specify the output filename (default: ./out.gif).
4334 .REss
4335 .PD 1
4337 .sp 1
4338 .I NOTE:
4339 You must specify the framerate before the filename or the framerate will
4340 be part of the filename.
4341 .sp 1
4342 .I EXAMPLE:
4344 .PD 0
4345 .RSs
4346 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4348 .PD 1
4351 .B "jpeg\ \ \ "
4352 Output each frame into a JPEG file in the current directory.
4353 Each file takes the frame number padded with leading zeros as name.
4354 .PD 0
4355 .RSs
4356 .IPs [no]progressive
4357 Specify standard or progressive JPEG (default: noprogressive).
4358 .IPs [no]baseline
4359 Specify use of baseline or not (default: baseline).
4360 .IPs optimize=<0\-100>
4361 optimization factor (default: 100)
4362 .IPs smooth=<0\-100>
4363 smooth factor (default: 0)
4364 .IPs quality=<0\-100>
4365 quality factor (default: 75)
4366 .IPs outdir=<dirname>
4367 Specify the directory to save the JPEG files to (default: ./).
4368 .IPs subdirs=<prefix>
4369 Create numbered subdirectories with the specified prefix to
4370 save the files in instead of the current directory.
4371 .IPs "maxfiles=<value> (subdirs only)"
4372 Maximum number of files to be saved per subdirectory.
4373 Must be equal to or larger than 1 (default: 1000).
4375 .PD 1
4378 .B "pnm\ \ \ \ "
4379 Output each frame into a PNM file in the current directory.
4380 Each file takes the frame number padded with leading zeros as name.
4381 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4382 Also see pnm(5), ppm(5) and pgm(5).
4383 .PD 0
4384 .RSs
4385 .IPs "ppm\ \ "
4386 Write PPM files (default).
4387 .IPs "pgm\ \ "
4388 Write PGM files.
4389 .IPs pgmyuv
4390 Write PGMYUV files.
4391 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4392 bottom of the picture.
4393 .IPs "raw\ \ "
4394 Write PNM files in raw mode (default).
4395 .IPs ascii
4396 Write PNM files in ASCII mode.
4397 .IPs outdir=<dirname>
4398 Specify the directory to save the PNM files to (default: ./).
4399 .IPs subdirs=<prefix>
4400 Create numbered subdirectories with the specified prefix to
4401 save the files in instead of the current directory.
4402 .IPs "maxfiles=<value> (subdirs only)"
4403 Maximum number of files to be saved per subdirectory.
4404 Must be equal to or larger than 1 (default: 1000).
4406 .PD 1
4409 .B "png\ \ \ \ "
4410 Output each frame into a PNG file in the current directory.
4411 Each file takes the frame number padded with leading zeros as name.
4412 24bpp RGB and BGR formats are supported.
4413 .PD 0
4414 .RSs
4415 .IPs z=<0\-9>
4416 Specifies the compression level.
4417 0 is no compression, 9 is maximum compression.
4418 .IPs alpha (default: noalpha)
4419 Create PNG files with an alpha channel.
4420 Note that MPlayer in general does not support alpha, so this will only
4421 be useful in some rare cases.
4423 .PD 1
4426 .B "tga\ \ \ \ "
4427 Output each frame into a Targa file in the current directory.
4428 Each file takes the frame number padded with leading zeros as name.
4429 The purpose of this video output driver is to have a simple lossless
4430 image writer to use without any external library.
4431 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4432 You can force a particular format with the format video filter.
4433 .sp 1
4434 .I EXAMPLE:
4436 .PD 0
4437 .RSs
4438 mplayer video.nut \-vf format=bgr15 \-vo tga
4440 .PD 1
4444 .SH "DECODING/FILTERING OPTIONS"
4447 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4448 Specify a priority list of audio codecs to be used, according to their codec
4449 name in codecs.conf.
4450 Use a '\-' before the codec name to omit it.
4451 Use a '+' before the codec name to force it, this will likely crash!
4452 If the list has a trailing ',' MPlayer will fall back on codecs not
4453 contained in the list.
4455 .I NOTE:
4456 See \-ac help for a full list of available codecs.
4457 .sp 1
4458 .I EXAMPLE:
4459 .PD 0
4460 .RSs
4461 .IPs "\-ac mp3acm"
4462 Force the l3codeca.acm MP3 codec.
4463 .IPs "\-ac mad,"
4464 Try libmad first, then fall back on others.
4465 .IPs "\-ac hwac3,a52,"
4466 Try hardware AC-3 passthrough, software AC-3, then others.
4467 .IPs "\-ac hwdts,"
4468 Try hardware DTS passthrough, then fall back on others.
4469 .IPs "\-ac \-ffmp3,"
4470 Skip FFmpeg's MP3 decoder.
4472 .PD 1
4475 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4476 Specify advanced audio filter options:
4477 .RSs
4478 .IPs force=<0\-7>
4479 Forces the insertion of audio filters to one of the following:
4480 .RSss
4481 0: Use completely automatic filter insertion.
4483 1: Optimize for accuracy (default).
4485 2: Optimize for speed.
4486 .I Warning:
4487 Some features in the audio filters may silently fail,
4488 and the sound quality may drop.
4490 3: Use no automatic insertion of filters and no optimization.
4491 .I Warning:
4492 It may be possible to crash MPlayer using this setting.
4494 4: Use automatic insertion of filters according to 0 above,
4495 but use floating point processing when possible.
4497 5: Use automatic insertion of filters according to 1 above,
4498 but use floating point processing when possible.
4500 6: Use automatic insertion of filters according to 2 above,
4501 but use floating point processing when possible.
4503 7: Use no automatic insertion of filters according to 3 above,
4504 and use floating point processing when possible.
4505 .REss
4506 .IPs list=<filters>
4507 Same as \-af.
4511 .B \-afm <driver1,driver2,...>
4512 Specify a priority list of audio codec families to be used, according
4513 to their codec name in codecs.conf.
4514 Falls back on the default codecs if none of the given codec families work.
4516 .I NOTE:
4517 See \-afm help for a full list of available codec families.
4518 .sp 1
4519 .I EXAMPLE:
4520 .PD 0
4521 .RSs
4522 .IPs "\-afm ffmpeg"
4523 Try FFmpeg's libavcodec codecs first.
4524 .IPs "\-afm acm,dshow"
4525 Try Win32 codecs first.
4527 .PD 1
4530 .B \-aspect <ratio> (also see \-zoom)
4531 Override movie aspect ratio, in case aspect information is
4532 incorrect or missing in the file being played.
4533 .sp 1
4534 .I EXAMPLE:
4535 .PD 0
4536 .RSs
4537 \-aspect 4:3  or \-aspect 1.3333
4539 \-aspect 16:9 or \-aspect 1.7777
4541 .PD 1
4544 .B \-noaspect
4545 Disable automatic movie aspect ratio compensation.
4548 .B "\-field\-dominance <\-1\-1>"
4549 Set first field for interlaced content.
4550 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4551 \-vf yadif=1, \-vo vdpau:deint and \-vo xvmc:bobdeint.
4552 .PD 0
4553 .RSs
4554 .IPs \-1
4555 auto (default): If the decoder does not export the appropriate information,
4556 it falls back to 0 (top field first).
4557 .IPs 0
4558 top field first
4559 .IPs 1
4560 bottom field first
4562 .PD 1
4565 .B "\-flip \ "
4566 Flip image upside-down.
4569 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4570 Specify libavcodec decoding parameters.
4571 Separate multiple options with a colon.
4572 .sp 1
4573 .I EXAMPLE:
4574 .PD 0
4575 .RSs
4576 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4578 .PD 1
4579 .sp 1
4581 Available options are:
4583 .RSs
4584 .IPs bitexact
4585 Only use bit-exact algorithms in all decoding steps (for codec testing).
4586 .IPs bug=<value>
4587 Manually work around encoder bugs.
4588 .RSss
4589 0: nothing
4591 1: autodetect bugs (default)
4593 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4595 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4597 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4599 16 (mpeg4): padding bug (autodetected)
4601 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4603 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4605 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4607 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4609 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4611 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4612 .REss
4613 .IPs debug=<value>
4614 Display debugging information.
4615 .RSss
4617 0: disabled
4619 1: picture info
4621 2: rate control
4623 4: bitstream
4625 8: macroblock (MB) type
4627 16: per-block quantization parameter (QP)
4629 32: motion vector
4631 0x0040: motion vector visualization (use \-noslices)
4633 0x0080: macroblock (MB) skip
4635 0x0100: startcode
4637 0x0200: PTS
4639 0x0400: error resilience
4641 0x0800: memory management control operations (H.264)
4643 0x1000: bugs
4645 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4647 0x4000: Visualize block types.
4648 .REss
4649 .IPs ec=<value>
4650 Set error concealment strategy.
4651 .RSss
4652 1: Use strong deblock filter for damaged MBs.
4654 2: iterative motion vector (MV) search (slow)
4656 3: all (default)
4657 .REss
4658 .IPs er=<value>
4659 Set error resilience strategy.
4660 .RSss
4662 0: disabled
4664 1: careful (Should work with broken encoders.)
4666 2: normal (default) (Works with compliant encoders.)
4668 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4670 4: very aggressive
4671 .REss
4672 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4673 Enable optimizations which do not comply to the specification and might
4674 potentially cause problems, like simpler dequantization, simpler motion
4675 compensation, assuming use of the default quantization matrix, assuming
4676 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4677 .IPs "gray\ "
4678 grayscale only decoding (a bit faster than with color)
4679 .IPs "idct=<0\-99> (see \-lavcopts)"
4680 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4681 This may come at a price in accuracy, though.
4682 .IPs lowres=<number>[,<w>]
4683 Decode at lower resolutions.
4684 Low resolution decoding is not supported by all codecs, and it will
4685 often result in ugly artifacts.
4686 This is not a bug, but a side effect of not decoding at full resolution.
4687 .RSss
4689 0: disabled
4691 1: 1/2 resolution
4693 2: 1/4 resolution
4695 3: 1/8 resolution
4696 .REss
4698 If <w> is specified lowres decoding will be used only if the width of the
4699 video is major than or equal to <w>.
4701 .B o=<key>=<value>[,<key>=<value>[,...]]
4702 Pass AVOptions to libavcodec decoder.
4703 Note, a patch to make the o= unneeded and pass all unknown options through
4704 the AVOption system is welcome.
4705 A full list of AVOptions can be found in the FFmpeg manual.
4706 Note that some options may conflict with MEncoder options.
4707 .sp 1
4709 .I EXAMPLE:
4711 .RSs
4712 .PD 0
4713 .IPs o=debug=pict
4714 .PD 1
4716 .IPs "sb=<number> (MPEG-2 only)"
4717 Skip the given number of macroblock rows at the bottom.
4718 .IPs "st=<number> (MPEG-2 only)"
4719 Skip the given number of macroblock rows at the top.
4720 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4721 Skips the loop filter (AKA deblocking) during H.264 decoding.
4722 Since the filtered frame is supposed to be used as reference
4723 for decoding dependent frames this has a worse effect on quality
4724 than not doing deblocking on e.g.\& MPEG-2 video.
4725 But at least for high bitrate HDTV this provides a big speedup with
4726 no visible quality loss.
4727 .sp 1
4728 <skipvalue> can be either one of the following:
4729 .RSss
4731 none: Never skip.
4733 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4735 nonref: Skip frames that are not referenced (i.e.\& not used for
4736 decoding other frames, the error cannot "build up").
4738 bidir: Skip B-Frames.
4740 nonkey: Skip all frames except keyframes.
4742 all: Skip all frames.
4743 .REss
4744 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4745 Skips the IDCT step.
4746 This degrades quality a lot of in almost all cases
4747 (see skiploopfilter for available skip values).
4748 .IPs skipframe=<skipvalue>
4749 Skips decoding of frames completely.
4750 Big speedup, but jerky motion and sometimes bad artifacts
4751 (see skiploopfilter for available skip values).
4752 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4753 number of threads to use for decoding (default: 1)
4754 .IPs vismv=<value>
4755 Visualize motion vectors.
4756 .RSss
4758 0: disabled
4760 1: Visualize forward predicted MVs of P-frames.
4762 2: Visualize forward predicted MVs of B-frames.
4764 4: Visualize backward predicted MVs of B-frames.
4765 .REss
4766 .IPs vstats
4767 Prints some statistics and stores them in ./vstats_*.log.
4771 .B \-noslices
4772 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4773 whole frame in a single run.
4774 May be faster or slower, depending on video card and available cache.
4775 It has effect only with libmpeg2 and libavcodec codecs.
4778 .B \-nosound
4779 Do not play/\:encode sound.
4780 Useful for benchmarking.
4783 .B \-novideo
4784 Do not play/\:encode video.
4785 In many cases this will not work, use \-vc null \-vo null instead.
4788 .B \-pp <quality> (also see \-vf pp)
4789 Set the DLL postprocess level.
4790 This option is no longer usable with \-vf pp.
4791 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4792 The valid range of \-pp values varies by codec, it is mostly
4793 0\-6, where 0=disable, 6=slowest/\:best.
4796 .B \-pphelp (also see \-vf pp)
4797 Show a summary about the available postprocess filters and their usage.
4800 .B \-ssf <mode>
4801 Specifies software scaler parameters.
4802 .sp 1
4803 .I EXAMPLE:
4804 .PD 0
4805 .RSs
4806 \-vf scale \-ssf lgb=3.0
4808 .PD 1
4809 .PD 0
4810 .RSs
4811 .IPs lgb=<0\-100>
4812 gaussian blur filter (luma)
4813 .IPs cgb=<0\-100>
4814 gaussian blur filter (chroma)
4815 .IPs ls=<\-100\-100>
4816 sharpen filter (luma)
4817 .IPs cs=<\-100\-100>
4818 sharpen filter (chroma)
4819 .IPs chs=<h>
4820 chroma horizontal shifting
4821 .IPs cvs=<v>
4822 chroma vertical shifting
4824 .PD 1
4827 .B \-stereo <mode>
4828 Select type of MP2/\:MP3 stereo output.
4829 .PD 0
4830 .RSs
4831 .IPs 0
4832 stereo
4833 .IPs 1
4834 left channel
4835 .IPs 2
4836 right channel
4838 .PD 1
4841 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4842 Specify the software scaler algorithm to be used with the \-zoom option.
4843 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4844 .sp 1
4845 Available types are:
4846 .sp 1
4847 .PD 0
4848 .RSs
4849 .IPs 0
4850 fast bilinear
4851 .IPs 1
4852 bilinear
4853 .IPs 2
4854 bicubic (good quality) (default)
4855 .IPs 3
4856 experimental
4857 .IPs 4
4858 nearest neighbor (bad quality)
4859 .IPs 5
4860 area
4861 .IPs 6
4862 luma bicubic / chroma bilinear
4863 .IPs 7
4864 gauss
4865 .IPs 8
4866 sincR
4867 .IPs 9
4868 lanczos
4869 .IPs 10
4870 natural bicubic spline
4872 .PD 1
4873 .sp 1
4875 .I NOTE:
4876 Some \-sws options are tunable.
4877 The description of the scale video filter has further information.
4881 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
4882 Specify a priority list of video codecs to be used, according to their codec
4883 name in codecs.conf.
4884 Use a '\-' before the codec name to omit it.
4885 Use a '+' before the codec name to force it, this will likely crash!
4886 If the list has a trailing ',' MPlayer will fall back on codecs not
4887 contained in the list.
4889 .I NOTE:
4890 See \-vc help for a full list of available codecs.
4891 .sp 1
4892 .I EXAMPLE:
4893 .PD 0
4894 .RSs
4895 .IPs "\-vc divx"
4896 Force Win32/\:VfW DivX codec, no fallback.
4897 .IPs "\-vc \-divxds,\-divx,"
4898 Skip Win32 DivX codecs.
4899 .IPs "\-vc ffmpeg12,mpeg12,"
4900 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
4902 .PD 1
4905 .B \-vfm <driver1,driver2,...>
4906 Specify a priority list of video codec families to be used, according
4907 to their names in codecs.conf.
4908 Falls back on the default codecs if none of the given codec families work.
4910 .I NOTE:
4911 See \-vfm help for a full list of available codec families.
4912 .sp 1
4913 .I EXAMPLE:
4914 .PD 0
4915 .RSs
4916 .IPs "\-vfm ffmpeg,dshow,vfw"
4917 Try the libavcodec, then Directshow, then VfW codecs and fall back
4918 on others, if they do not work.
4919 .IPs "\-vfm xanim"
4920 Try XAnim codecs first.
4922 .PD 1
4925 .B \-x <x> (also see \-zoom) (MPlayer only)
4926 Scale image to width <x> (if software/\:hardware scaling is available).
4927 Disables aspect calculations.
4930 .B \-xvidopts <option1:option2:...>
4931 Specify additional parameters when decoding with Xvid.
4933 .I NOTE:
4934 Since libavcodec is faster than Xvid you might want to use the libavcodec
4935 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
4936 .sp 1
4937 Xvid's internal postprocessing filters:
4938 .PD 0
4939 .RSs
4940 .IPs "deblock-chroma (also see \-vf pp)"
4941 chroma deblock filter
4942 .IPs "deblock-luma (also see \-vf pp)"
4943 luma deblock filter
4944 .IPs "dering-luma (also see \-vf pp)"
4945 luma deringing filter
4946 .IPs "dering-chroma (also see \-vf pp)"
4947 chroma deringing filter
4948 .IPs "filmeffect (also see \-vf noise)"
4949 Adds artificial film grain to the video.
4950 May increase perceived quality, while lowering true quality.
4952 .sp 1
4954 rendering methods:
4956 .PD 0
4957 .RSs
4958 .IPs "dr2\ \ "
4959 Activate direct rendering method 2.
4960 .IPs nodr2
4961 Deactivate direct rendering method 2.
4963 .PD 1
4966 .B \-xy <value> (also see \-zoom)
4967 .PD 0
4968 .RSs
4969 .IPs value<=8
4970 Scale image by factor <value>.
4971 .IPs value>8
4972 Set width to value and calculate height to keep correct aspect ratio.
4974 .PD 1
4977 .B \-y <y> (also see \-zoom) (MPlayer only)
4978 Scale image to height <y> (if software/\:hardware scaling is available).
4979 Disables aspect calculations.
4982 .B "\-zoom\ \ "
4983 Allow software scaling, where available.
4984 This will allow scaling with output drivers (like x11, fbdev) that
4985 do not support hardware scaling where MPlayer disables scaling by
4986 default for performance reasons.
4990 .SH "AUDIO FILTERS"
4991 Audio filters allow you to modify the audio stream and its properties.
4992 The syntax is:
4995 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
4996 Setup a chain of audio filters.
4998 .I NOTE:
4999 To get a full list of available audio filters, see \-af help.
5000 .sp 1
5001 Audio filters are managed in lists.
5002 There are a few commands to manage the filter list.
5005 .B \-af\-add <filter1[,filter2,...]>
5006 Appends the filters given as arguments to the filter list.
5009 .B \-af\-pre <filter1[,filter2,...]>
5010 Prepends the filters given as arguments to the filter list.
5013 .B \-af\-del <index1[,index2,...]>
5014 Deletes the filters at the given indexes.
5015 Index numbers start at 0, negative numbers address the end of the
5016 list (\-1 is the last).
5019 .B \-af\-clr
5020 Completely empties the filter list.
5022 Available filters are:
5025 .B resample[=srate[:sloppy[:type]]]
5026 Changes the sample rate of the audio stream.
5027 Can be used if you have a fixed frequency sound card or if you are
5028 stuck with an old sound card that is only capable of max 44.1kHz.
5029 This filter is automatically enabled if necessary.
5030 It only supports 16-bit integer and float in native-endian format as input.
5032 .I NOTE:
5033 With MEncoder, you need to also use \-srate <srate>.
5034 .PD 0
5035 .RSs
5036 .IPs <srate>
5037 output sample frequency in Hz.
5038 The valid range for this parameter is 8000 to 192000.
5039 If the input and output sample frequency are the same or if this
5040 parameter is omitted the filter is automatically unloaded.
5041 A high sample frequency normally improves the audio quality,
5042 especially when used in combination with other filters.
5043 .IPs <sloppy>
5044 Allow (1) or disallow (0) the output frequency to differ slightly
5045 from the frequency given by <srate> (default: 1).
5046 Can be used if the startup of the playback is extremely slow.
5047 .IPs <type>
5048 Select which resampling method to use.
5049 .RSss
5050 0: linear interpolation (fast, poor quality especially when upsampling)
5052 1: polyphase filterbank and integer processing
5054 2: polyphase filterbank and floating point processing (slow, best quality)
5055 .REss
5056 .PD 1
5058 .sp 1
5060 .I EXAMPLE:
5062 .PD 0
5063 .RSs
5064 .IPs "mplayer \-af resample=44100:0:0"
5065 would set the output frequency of the resample filter to 44100Hz using
5066 exact output frequency scaling and linear interpolation.
5068 .PD 1
5071 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
5072 Changes the sample rate of the audio stream to an integer <srate> in Hz.
5073 It only supports the 16-bit native-endian format.
5075 .I NOTE:
5076 With MEncoder, you need to also use \-srate <srate>.
5077 .PD 0
5078 .RSs
5079 .IPs <srate>
5080 the output sample rate
5081 .IPs <length>
5082 length of the filter with respect to the lower sampling rate (default: 16)
5083 .IPs <linear>
5084 if 1 then filters will be linearly interpolated between polyphase entries
5085 .IPs <count>
5086 log2 of the number of polyphase entries
5087 (..., 10->1024, 11->2048, 12->4096, ...)
5088 (default: 10->1024)
5089 .IPs <cutoff>
5090 cutoff frequency (0.0\-1.0), default set depending upon filter length
5092 .PD 1
5095 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
5096 Encode multi-channel audio to AC-3 at runtime using libavcodec.
5097 Supports 16-bit native-endian input format, maximum 6 channels.
5098 The output is big-endian when outputting a raw AC-3 stream,
5099 native-endian when outputting to S/PDIF.
5100 The output sample rate of this filter is same with the input sample rate.
5101 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
5102 Otherwise a resampling filter is auto-inserted before this filter to make
5103 the input and output sample rate be 48kHz.
5104 You need to specify '\-channels N' to make the decoder decode audio into
5105 N-channel, then the filter can encode the N-channel input to AC-3.
5107 .PD 0
5108 .RSs
5109 .IPs <tospdif>
5110 Output raw AC-3 stream if zero or not set,
5111 output to S/PDIF for passthrough when <tospdif> is set non-zero.
5112 .IPs <bitrate>
5113 The bitrate to encode the AC-3 stream.
5114 Set it to either 384 or 384000 to get 384kbits.
5115 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
5116               320, 384, 448, 512, 576, 640
5117 Default bitrate is based on the input channel number:
5118 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
5119 .IPs <minchn>
5120 If the input channel number is less than <minchn>, the filter will
5121 detach itself (default: 5).
5123 .PD 1
5126 .B sweep[=speed]
5127 Produces a sine sweep.
5128 .PD 0
5129 .RSs
5130 .IPs <0.0\-1.0>
5131 Sine function delta, use very low values to hear the sweep.
5133 .PD 1
5136 .B sinesuppress[=freq:decay]
5137 Remove a sine at the specified frequency.
5138 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
5139 It probably only works on mono input.
5140 .PD 0
5141 .RSs
5142 .IPs <freq>
5143 The frequency of the sine which should be removed (in Hz) (default: 50)
5144 .IPs <decay>
5145 Controls the adaptivity (a larger value will make the filter adapt to
5146 amplitude and phase changes quicker, a smaller value will make the
5147 adaptation slower) (default: 0.0001).
5148 Reasonable values are around 0.001.
5150 .PD 1
5153 .B bs2b[=option1:option2:...]
5154 Bauer stereophonic to binaural transformation using libbs2b.
5155 Improves the headphone listening experience by making the sound
5156 similar to that from loudspeakers, allowing each ear to hear both
5157 channels and taking into account the distance difference and the
5158 head shadowing effect.
5159 It is applicable only to 2 channel audio.
5160 .PD 0
5161 .RSs
5162 .IPs fcut=<300\-1000>
5163 Set cut frequency in Hz.
5164 .IPs feed=<10\-150>
5165 Set feed level for low frequencies in 0.1*dB.
5166 .IPs profile=<value>
5167 Several profiles are available for convenience:
5168 .PD 0
5169 .RSs
5170 .IPs default
5171 will be used if nothing else was specified (fcut=700, feed=45)
5172 .IPs "cmoy\ "
5173 Chu Moy circuit implementation (fcut=700, feed=60)
5174 .IPs jmeier
5175 Jan Meier circuit implementation (fcut=650, feed=95)
5178 .sp 1
5180 If fcut or feed options are specified together with a profile, they
5181 will be applied on top of the selected profile.
5183 .PD 1
5186 .B hrtf[=flag]
5187 Head-related transfer function: Converts multichannel audio to
5188 2 channel output for headphones, preserving the spatiality of the sound.
5189 .sp 1
5190 .PD 0
5192 .IPs "Flag  Meaning"
5193 .IPs "m     matrix decoding of the rear channel"
5194 .IPs "s     2-channel matrix decoding"
5195 .IPs "0     no matrix decoding (default)"
5197 .PD 1
5200 .B equalizer=[g1:g2:g3:...:g10]
5201 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
5202 This means that it works regardless of what type of audio is being played back.
5203 The center frequencies for the 10 bands are:
5204 .sp 1
5205 .PD 0
5207 .IPs "No. frequency"
5208 .IPs "0    31.25 Hz"
5209 .IPs "1    62.50 Hz"
5210 .IPs "2   125.00 Hz"
5211 .IPs "3   250.00 Hz"
5212 .IPs "4   500.00 Hz"
5213 .IPs "5    1.00 kHz"
5214 .IPs "6    2.00 kHz"
5215 .IPs "7    4.00 kHz"
5216 .IPs "8    8.00 kHz"
5217 .IPs "9   16.00 kHz"
5219 .PD 1
5220 .sp 1
5222 If the sample rate of the sound being played is lower than the center
5223 frequency for a frequency band, then that band will be disabled.
5224 A known bug with this filter is that the characteristics for the
5225 uppermost band are not completely symmetric if the sample
5226 rate is close to the center frequency of that band.
5227 This problem can be worked around by upsampling the sound
5228 using the resample filter before it reaches this filter.
5230 .PD 0
5231 .RSs
5232 .IPs <g1>:<g2>:<g3>:...:<g10>
5233 floating point numbers representing the gain in dB
5234 for each frequency band (\-12\-12)
5236 .sp 1
5238 .I EXAMPLE:
5240 .RSs
5241 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
5242 Would amplify the sound in the upper and lower frequency region
5243 while canceling it almost completely around 1kHz.
5245 .PD 1
5248 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
5249 Can be used for adding, removing, routing and copying audio channels.
5250 If only <nch> is given the default routing is used, it works as
5251 follows: If the number of output channels is bigger than the number of
5252 input channels empty channels are inserted (except mixing from mono to
5253 stereo, then the mono channel is repeated in both of the output
5254 channels).
5255 If the number of output channels is smaller than the number
5256 of input channels the exceeding channels are truncated.
5257 .PD 0
5258 .RSs
5259 .IPs <nch>
5260 number of output channels (1\-8)
5261 .IPs "<nr>\ "
5262 number of routes (1\-8)
5263 .IPs <from1:to1:from2:to2:from3:to3:...>
5264 Pairs of numbers between 0 and 7 that define where to route each channel.
5266 .sp 1
5268 .I EXAMPLE:
5270 .RSs
5271 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5272 Would change the number of channels to 4 and set up 4 routes that
5273 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5274 Observe that if media containing two channels was played back, channels
5275 2 and 3 would contain silence but 0 and 1 would still be swapped.
5276 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5277 Would change the number of channels to 6 and set up 4 routes
5278 that copy channel 0 to channels 0 to 3.
5279 Channel 4 and 5 will contain silence.
5281 .PD 1
5284 .B format[=format] (also see \-format)
5285 Convert between different sample formats.
5286 Automatically enabled when needed by the sound card or another filter.
5287 .PD 0
5288 .RSs
5289 .IPs <format>
5290 Sets the desired format.
5291 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5292 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5293 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5294 and 'ne' the endianness of the computer MPlayer is running on).
5295 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5296 Exceptions to this rule that are also valid format specifiers: u8, s8,
5297 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5299 .PD 1
5302 .B volume[=v[:sc]]
5303 Implements software volume control.
5304 Use this filter with caution since it can reduce the signal
5305 to noise ratio of the sound.
5306 In most cases it is best to set the level for the PCM sound to max,
5307 leave this filter out and control the output level to your
5308 speakers with the master volume control of the mixer.
5309 In case your sound card has a digital PCM mixer instead of an analog
5310 one, and you hear distortion, use the MASTER mixer instead.
5311 If there is an external amplifier connected to the computer (this
5312 is almost always the case), the noise level can be minimized by
5313 adjusting the master level and the volume knob on the amplifier
5314 until the hissing noise in the background is gone.
5316 This filter has a second feature: It measures the overall maximum
5317 sound level and prints out that level when MPlayer exits.
5318 This volume estimate can be used for setting the sound level in
5319 MEncoder such that the maximum dynamic range is utilized.
5321 .I NOTE:
5322 This filter is not reentrant and can therefore only be enabled
5323 once for every audio stream.
5324 .PD 0
5325 .RSs
5326 .IPs "<v>\ \ "
5327 Sets the desired gain in dB for all channels in the stream
5328 from \-200dB to +60dB, where \-200dB mutes the sound
5329 completely and +60dB equals a gain of 1000 (default: 0).
5330 .IPs "<sc>\ "
5331 Turns soft clipping on (1) or off (0).
5332 Soft-clipping can make the sound more smooth if very
5333 high volume levels are used.
5334 Enable this option if the dynamic range of the
5335 loudspeakers is very low.
5337 .I WARNING:
5338 This feature creates distortion and should be considered a last resort.
5340 .sp 1
5342 .I EXAMPLE:
5344 .RSs
5345 .IPs "mplayer \-af volume=10.1:0 media.avi"
5346 Would amplify the sound by 10.1dB and hard-clip if the
5347 sound level is too high.
5349 .PD 1
5352 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5353 Mixes channels arbitrarily.
5354 Basically a combination of the volume and the channels filter
5355 that can be used to down-mix many channels to only a few,
5356 e.g.\& stereo to mono or vary the "width" of the center
5357 speaker in a surround sound system.
5358 This filter is hard to use, and will require some tinkering
5359 before the desired result is obtained.
5360 The number of options for this filter depends on
5361 the number of output channels.
5362 An example how to downmix a six-channel file to two channels with
5363 this filter can be found in the examples section near the end.
5364 .PD 0
5365 .RSs
5366 .IPs "<n>\ \ "
5367 number of output channels (1\-8)
5368 .IPs <Lij>
5369 How much of input channel i is mixed into output channel j (0\-1).
5370 So in principle you first have n numbers saying what to do with the
5371 first input channel, then n numbers that act on the second input channel
5372 etc.
5373 If you do not specify any numbers for some input channels, 0 is assumed.
5375 .sp 1
5377 .I EXAMPLE:
5379 .RSs
5380 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5381 Would down-mix from stereo to mono.
5382 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5383 Would give 3 channel output leaving channels 0 and 1 intact,
5384 and mix channels 0 and 1 into output channel 2 (which could
5385 be sent to a subwoofer for example).
5387 .PD 1
5390 .B sub[=fc:ch]
5391 Adds a subwoofer channel to the audio stream.
5392 The audio data used for creating the subwoofer channel is
5393 an average of the sound in channel 0 and channel 1.
5394 The resulting sound is then low-pass filtered by a 4th order
5395 Butterworth filter with a default cutoff frequency of 60Hz
5396 and added to a separate channel in the audio stream.
5398 .I Warning:
5399 Disable this filter when you are playing DVDs with Dolby
5400 Digital 5.1 sound, otherwise this filter will disrupt
5401 the sound to the subwoofer.
5402 .PD 0
5403 .RSs
5404 .IPs "<fc>\ "
5405 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5406 For the best result try setting the cutoff frequency as low as possible.
5407 This will improve the stereo or surround sound experience.
5408 .IPs "<ch>\ "
5409 Determines the channel number in which to insert the sub-channel audio.
5410 Channel number can be between 0 and 7 (default: 5).
5411 Observe that the number of channels will automatically
5412 be increased to <ch> if necessary.
5414 .sp 1
5416 .I EXAMPLE:
5418 .RSs
5419 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5420 Would add a sub-woofer channel with a cutoff frequency of
5421 100Hz to output channel 4.
5423 .PD 1
5426 .B "center\ "
5427 Creates a center channel from the front channels.
5428 May currently be low quality as it does not implement a
5429 high-pass filter for proper extraction yet, but averages and
5430 halves the channels instead.
5431 .PD 0
5432 .RSs
5433 .IPs "<ch>\ "
5434 Determines the channel number in which to insert the center channel.
5435 Channel number can be between 0 and 7 (default: 5).
5436 Observe that the number of channels will automatically
5437 be increased to <ch> if necessary.
5439 .PD 1
5442 .B surround[=delay]
5443 Decoder for matrix encoded surround sound like Dolby Surround.
5444 Many files with 2 channel audio actually contain matrixed surround sound.
5445 Requires a sound card supporting at least 4 channels.
5446 .PD 0
5447 .RSs
5448 .IPs <delay>
5449 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5450 This delay should be set as follows: If d1 is the distance
5451 from the listening position to the front speakers and d2 is the distance
5452 from the listening position to the rear speakers, then the delay should
5453 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5455 .sp 1
5457 .I EXAMPLE:
5459 .RSs
5460 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5461 Would add surround sound decoding with 15ms delay for the sound to the
5462 rear speakers.
5464 .PD 1
5467 .B delay[=ch1:ch2:...]
5468 Delays the sound to the loudspeakers such that the sound from the
5469 different channels arrives at the listening position simultaneously.
5470 It is only useful if you have more than 2 loudspeakers.
5471 .PD 0
5472 .RSs
5473 .IPs ch1,ch2,...
5474 The delay in ms that should be imposed on each channel
5475 (floating point number between 0 and 1000).
5477 .PD 1
5478 .sp 1
5480 To calculate the required delay for the different channels do as follows:
5481 .IP 1. 3
5482 Measure the distance to the loudspeakers in meters in relation
5483 to your listening position, giving you the distances s1 to s5
5484 (for a 5.1 system).
5485 There is no point in compensating for the subwoofer (you will not hear the
5486 difference anyway).
5487 .IP 2. 3
5488 Subtract the distances s1 to s5 from the maximum distance,
5489 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5490 .IP 3.
5491 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5493 .PD 0
5494 .sp 1
5496 .I EXAMPLE:
5498 .RSs
5499 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5500 Would delay front left and right by 10.5ms, the two rear channels
5501 and the sub by 0ms and the center channel by 7ms.
5503 .PD 1
5506 .B export[=mmapped_file[:nsamples]]
5507 Exports the incoming signal to other processes using memory mapping (mmap()).
5508 Memory mapped areas contain a header:
5509 .sp 1
5511 int nch                      /*number of channels*/
5512 int size                     /*buffer size*/
5513 unsigned long long counter   /*Used to keep sync, updated every
5514                                time new data is exported.*/
5516 .sp 1
5517 The rest is payload (non-interleaved) 16 bit data.
5518 .PD 0
5519 .RSs
5520 .IPs <mmapped_file>
5521 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5522 .IPs <nsamples>
5523 number of samples per channel (default: 512)
5525 .sp 1
5527 .I EXAMPLE:
5529 .RSs
5530 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5531 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5533 .PD 1
5536 .B extrastereo[=mul]
5537 (Linearly) increases the difference between left and right channels
5538 which adds some sort of "live" effect to playback.
5539 .PD 0
5540 .RSs
5541 .IPs <mul>
5542 Sets the difference coefficient (default: 2.5).
5543 0.0 means mono sound (average of both channels), with 1.0 sound will be
5544 unchanged, with \-1.0 left and right channels will be swapped.
5546 .PD 1
5549 .B volnorm[=method:target]
5550 Maximizes the volume without distorting the sound.
5551 .PD 0
5552 .RSs
5553 .IPs <method>
5554 Sets the used method.
5555 .RSss
5556 1: Use a single sample to smooth the variations via the standard
5557 weighted mean over past samples (default).
5559 2: Use several samples to smooth the variations via the standard
5560 weighted mean over past samples.
5561 .REss
5562 .IPs <target>
5563 Sets the target amplitude as a fraction of the maximum for the
5564 sample type (default: 0.25).
5566 .PD 1
5569 .B ladspa=file:label[:controls...]
5570 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5571 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5572 .PD 0
5573 .RSs
5574 .IPs <file>
5575 Specifies the LADSPA plugin library file.
5576 If LADSPA_PATH is set, it searches for the specified file.
5577 If it is not set, you must supply a fully specified pathname.
5578 .IPs <label>
5579 Specifies the filter within the library.
5580 Some libraries contain only one filter, but others contain many of them.
5581 Entering 'help' here, will list all available filters within the specified
5582 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5583 .IPs <controls>
5584 Controls are zero or more floating point values that determine the
5585 behavior of the loaded plugin (for example delay, threshold or gain).
5586 In verbose mode (add \-v to the MPlayer command line), all available controls
5587 and their valid ranges are printed.
5588 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5590 .PD 1
5593 .B "comp\ \ \ "
5594 Compressor/expander filter usable for microphone input.
5595 Prevents artifacts on very loud sound and raises the volume on
5596 very low sound.
5597 This filter is untested, maybe even unusable.
5600 .B "gate\ \ \ "
5601 Noise gate filter similar to the comp audio filter.
5602 This filter is untested, maybe even unusable.
5605 .B karaoke
5606 Simple voice removal filter exploiting the fact that voice is
5607 usually recorded with mono gear and later 'center' mixed onto
5608 the final audio stream.
5609 Beware that this filter will turn your signal into mono.
5610 Works well for 2 channel tracks; do not bother trying it
5611 on anything but 2 channel stereo.
5614 .B scaletempo[=option1:option2:...]
5615 Scales audio tempo without altering pitch, optionally synced to playback
5616 speed (default).
5618 This works by playing \'stride\' ms of audio at normal speed then
5619 consuming \'stride*scale\' ms of input audio.
5620 It pieces the strides together by blending \'overlap\'% of stride with
5621 audio following the previous stride.
5622 It optionally performs a short statistical analysis on the next \'search\'
5623 ms of audio to determine the best overlap position.
5624 .PD 0
5625 .RSs
5626 .IPs scale=<amount>
5627 Nominal amount to scale tempo.
5628 Scales this amount in addition to speed.
5629 (default: 1.0)
5630 .IPs stride=<amount>
5631 Length in milliseconds to output each stride.
5632 Too high of value will cause noticable skips at high scale amounts and
5633 an echo at low scale amounts.
5634 Very low values will alter pitch.
5635 Increasing improves performance.
5636 (default: 60)
5637 .IPs overlap=<percent>
5638 Percentage of stride to overlap.
5639 Decreasing improves performance.
5640 (default: .20)
5641 .IPs search=<amount>
5642 Length in milliseconds to search for best overlap position.
5643 Decreasing improves performance greatly.
5644 On slow systems, you will probably want to set this very low.
5645 (default: 14)
5646 .IPs speed=<tempo|pitch|both|none>
5647 Set response to speed change.
5648 .RSss
5649 .IPs tempo
5650 Scale tempo in sync with speed (default).
5651 .IPs pitch
5652 Reverses effect of filter.
5653 Scales pitch without altering tempo.
5654 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5655 to your input.conf to step by musical semi-tones.
5656 .I WARNING:
5657 Loses sync with video.
5658 .IPs both
5659 Scale both tempo and pitch.
5660 .IPs none
5661 Ignore speed changes.
5664 .sp 1
5666 .I EXAMPLE:
5668 .RSs
5669 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5670 Would playback media at 1.2x normal speed, with audio at normal pitch.
5671 Changing playback speed, would change audio tempo to match.
5672 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5673 Would playback media at 1.2x normal speed, with audio at normal pitch,
5674 but changing playback speed has no effect on audio tempo.
5675 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5676 Would tweak the quality and performace parameters.
5677 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5678 Would make scaletempo use float code.
5679 Maybe faster on some platforms.
5680 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5681 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5682 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5684 .PD 1
5687 .B "stats\ \ "
5688 Collects and prints statistics about the audio stream, especially the volume.
5689 These statistics are especially intended to help adjusting the volume while
5690 avoiding clipping.
5691 The volumes are printed in dB and compatible with the volume audio filter.
5695 .SH "VIDEO FILTERS"
5696 Video filters allow you to modify the video stream and its properties.
5697 The syntax is:
5700 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5701 Setup a chain of video filters.
5703 Many parameters are optional and set to default values if omitted.
5704 To explicitly use a default value set a parameter to '\-1'.
5705 Parameters w:h means width x height in pixels, x:y means x;y position counted
5706 from the upper left corner of the bigger image.
5708 .I NOTE:
5709 To get a full list of available video filters, see \-vf help.
5710 .sp 1
5711 Video filters are managed in lists.
5712 There are a few commands to manage the filter list.
5715 .B \-vf\-add <filter1[,filter2,...]>
5716 Appends the filters given as arguments to the filter list.
5719 .B \-vf\-pre <filter1[,filter2,...]>
5720 Prepends the filters given as arguments to the filter list.
5723 .B \-vf\-del <index1[,index2,...]>
5724 Deletes the filters at the given indexes.
5725 Index numbers start at 0, negative numbers address the end of the
5726 list (\-1 is the last).
5729 .B \-vf\-clr
5730 Completely empties the filter list.
5732 With filters that support it, you can access parameters by their name.
5735 .B \-vf <filter>=help
5736 Prints the parameter names and parameter value ranges for a particular
5737 filter.
5740 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5741 Sets a named parameter to the given value.
5742 Use on and off or yes and no to set flag parameters.
5744 Available filters are:
5747 .B crop[=w:h:x:y]
5748 Crops the given part of the image and discards the rest.
5749 Useful to remove black bands from widescreen movies.
5750 .PD 0
5751 .RSs
5752 .IPs <w>,<h>
5753 Cropped width and height, defaults to original width and height.
5754 .IPs <x>,<y>
5755 Position of the cropped picture, defaults to center.
5757 .PD 1
5760 .B cropdetect[=limit:round[:reset]]
5761 Calculates necessary cropping parameters and prints the recommended parameters
5762 to stdout.
5763 .PD 0
5764 .RSs
5765 .IPs <limit>
5766 Threshold, which can be optionally specified from nothing (0) to
5767 everything (255) (default: 24).
5769 .IPs <round>
5770 Value which the width/\:height should be divisible by (default: 16).
5771 The offset is automatically adjusted to center the video.
5772 Use 2 to get only even dimensions (needed for 4:2:2 video).
5773 16 is best when encoding to most video codecs.
5775 .IPs <reset>
5776 Counter that determines after how many frames cropdetect will reset
5777 the previously detected largest video area and start over to detect
5778 the current optimal crop area.  This can be useful when channel
5779 logos distort the video area.  0 indicates never reset and return
5780 the largest area encountered during playback. (default: 0).
5782 .PD 1
5785 .B rectangle[=w:h:x:y]
5786 Draws a rectangle of the requested width and height at the specified
5787 coordinates over the image and prints current rectangle parameters
5788 to the console.
5789 This can be used to find optimal cropping parameters.
5790 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5791 you can move and resize the rectangle on the fly.
5792 .PD 0
5793 .RSs
5794 .IPs <w>,<h>
5795 width and height (default: \-1, maximum possible width where boundaries
5796 are still visible.)
5797 .IPs <x>,<y>
5798 top left corner position (default: \-1, uppermost leftmost)
5800 .PD 1
5803 .B expand[=w:h:x:y:o:a:r]
5804 Expands (not scales) movie resolution to the given value and places the
5805 unscaled original at coordinates x, y.
5806 Can be used for placing subtitles/\:OSD in the resulting black bands.
5807 .RSs
5808 .IPs <w>,<h>
5809 Expanded width,height (default: original width,height).
5810 Negative values for w and h are treated as offsets to the original size.
5811 .sp 1
5812 .I EXAMPLE:
5813 .PD 0
5814 .RSs
5815 .IP expand=0:\-50:0:0
5816 Adds a 50 pixel border to the bottom of the picture.
5818 .PD 1
5819 .IPs <x>,<y>
5820 position of original image on the expanded image (default: center)
5821 .IPs "<o>\ \ "
5822 OSD/\:subtitle rendering
5823 .RSss
5824 0: disable (default)
5826 1: enable
5827 .REss
5828 .IPs "<a>\ \ "
5829 Expands to fit an aspect instead of a resolution (default: 0).
5830 .sp 1
5831 .I EXAMPLE:
5832 .PD 0
5833 .RSs
5834 .IP expand=800:::::4/3
5835 Expands to 800x600, unless the source is higher resolution, in which
5836 case it expands to fill a 4/3 aspect.
5838 .PD 1
5839 .IPs "<r>\ \ "
5840 Rounds up to make both width and height divisible by <r> (default: 1).
5844 .B flip (also see \-flip)
5845 Flips the image upside down.
5848 .B "mirror\ "
5849 Mirrors the image on the Y axis.
5852 .B rotate[=<0\-7>]
5853 Rotates the image by 90 degrees and optionally flips it.
5854 For values between 4\-7 rotation is only done if the movie geometry is
5855 portrait and not landscape.
5856 .RSs
5857 .IPs 0
5858 Rotate by 90 degrees clockwise and flip (default).
5859 .IPs 1
5860 Rotate by 90 degrees clockwise.
5861 .IPs 2
5862 Rotate by 90 degrees counterclockwise.
5863 .IPs 3
5864 Rotate by 90 degrees counterclockwise and flip.
5868 .B scale[=w:h[:interlaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5869 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5870 colorspace conversion (also see \-sws).
5871 .RSs
5872 .IPs <w>,<h>
5873 scaled width/\:height (default: original width/\:height)
5875 .I NOTE:
5876 If \-zoom is used, and underlying filters (including libvo) are
5877 incapable of scaling, it defaults to d_width/\:d_height!
5878 .RSss
5879  0:   scaled d_width/\:d_height
5881 \-1:   original width/\:height
5883 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
5885 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
5887 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
5888 .REss
5889 .IPs <interlaced>
5890 Toggle interlaced scaling.
5891 .RSss
5892 0: off (default)
5894 1: on
5895 .REss
5896 .IPs <chr_drop>
5897 chroma skipping
5898 .RSss
5899 0: Use all available input lines for chroma.
5901 1: Use only every 2. input line for chroma.
5903 2: Use only every 4. input line for chroma.
5905 3: Use only every 8. input line for chroma.
5906 .REss
5907 .IPs "<par>[:<par2>] (also see \-sws)"
5908 Set some scaling parameters depending on the type of scaler selected
5909 with \-sws.
5910 .RSss
5911 \-sws 2 (bicubic):  B (blurring) and C (ringing)
5913 0.00:0.60 default
5915 0.00:0.75 VirtualDub's "precise bicubic"
5917 0.00:0.50 Catmull-Rom spline
5919 0.33:0.33 Mitchell-Netravali spline
5921 1.00:0.00 cubic B-spline
5923 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
5925 \-sws 9 (lanczos):  filter length (1\-10)
5926 .REss
5927 .IPs <presize>
5928 Scale to preset sizes.
5929 .RSss
5930 qntsc:   352x240 (NTSC quarter screen)
5932 qpal:    352x288 (PAL quarter screen)
5934 ntsc:    720x480 (standard NTSC)
5936 pal:     720x576 (standard PAL)
5938 sntsc:   640x480 (square pixel NTSC)
5940 spal:    768x576 (square pixel PAL)
5941 .REss
5942 .IPs <noup>
5943 Disallow upscaling past the original dimensions.
5944 .RSss
5945 0: Allow upscaling (default).
5947 1: Disallow upscaling if one dimension exceeds its original value.
5949 2: Disallow upscaling if both dimensions exceed their original values.
5950 .REss
5951 .IPs <arnd>
5952 Accurate rounding for the vertical scaler, which may be faster
5953 or slower than the default rounding.
5954 .RSss
5955 0: Disable accurate rounding (default).
5957 1: Enable accurate rounding.
5958 .REss
5962 .B dsize[=aspect|w:h:aspect-method:r]
5963 Changes the intended display size/\:aspect at an arbitrary point in the
5964 filter chain.
5965 Aspect can be given as a fraction (4/3) or floating point number
5966 (1.33).
5967 Alternatively, you may specify the exact display width and height
5968 desired.
5969 Note that this filter does
5970 .B not
5971 do any scaling itself; it just affects
5972 what later scalers (software or hardware) will do when auto-scaling to
5973 correct aspect.
5974 .RSs
5975 .IPs <w>,<h>
5976 New display width and height.
5977 Can also be these special values:
5978 .RSss
5979  0:   original display width and height
5981 \-1:   original video width and height (default)
5983 \-2:   Calculate w/h using the other dimension and the original display
5984 aspect ratio.
5986 \-3:   Calculate w/h using the other dimension and the original video
5987 aspect ratio.
5988 .REss
5989 .sp 1
5990 .I EXAMPLE:
5991 .PD 0
5992 .RSs
5993 .IP dsize=800:\-2
5994 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
5995 800x450 for a 16/9 aspect video.
5997 .IPs <aspect-method>
5998 Modifies width and height according to original aspect ratios.
5999 .RSss
6000 \-1: Ignore original aspect ratio (default).
6002  0: Keep display aspect ratio by using <w> and <h> as maximum
6003 resolution.
6005  1: Keep display aspect ratio by using <w> and <h> as minimum
6006 resolution.
6008  2: Keep video aspect ratio by using <w> and <h> as maximum
6009 resolution.
6011  3: Keep video aspect ratio by using <w> and <h> as minimum
6012 resolution.
6013 .REss
6014 .sp 1
6015 .I EXAMPLE:
6016 .PD 0
6017 .RSs
6018 .IP dsize=800:600:0
6019 Specifies a display resolution of at most 800x600, or smaller, in order
6020 to keep aspect.
6022 .PD 1
6023 .IPs "<r>\ \ "
6024 Rounds up to make both width and height divisible by <r> (default: 1).
6028 .B "yuy2\ \ \ "
6029 Forces software YV12/\:I420/\:422P to YUY2 conversion.
6030 Useful for video cards/\:drivers with slow YV12 but fast YUY2 support.
6033 .B "yvu9\ \ \ "
6034 Forces software YVU9 to YV12 colorspace conversion.
6035 Deprecated in favor of the software scaler.
6038 .B "yuvcsp\ "
6039 Clamps YUV color values to the CCIR 601 range without doing real conversion.
6042 .B rgb2bgr[=swap]
6043 RGB 24/32 <\-> BGR 24/32 colorspace conversion.
6044 .PD 0
6045 .RSs
6046 .IPs "swap\ "
6047 Also perform  R <\-> B swapping.
6049 .PD 1
6052 .B palette
6053 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
6056 .B format[=fourcc]
6057 Restricts the colorspace for the next filter without doing any conversion.
6058 Use together with the scale filter for a real conversion.
6060 .I NOTE:
6061 For a list of available formats see format=fmt=help.
6062 .PD 0
6063 .RSs
6064 .IPs <fourcc>
6065 format name like rgb15, bgr24, yv12, etc (default: yuy2)
6067 .PD 1
6070 .B noformat[=fourcc]
6071 Restricts the colorspace for the next filter without doing any conversion.
6072 Unlike the format filter, this will allow any colorspace
6073 .B except
6074 the one you specify.
6076 .I NOTE:
6077 For a list of available formats see noformat=fmt=help.
6078 .PD 0
6079 .RSs
6080 .IPs <fourcc>
6081 format name like rgb15, bgr24, yv12, etc (default: yv12)
6083 .PD 1
6086 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
6087 Enables the specified chain of postprocessing subfilters.
6088 Subfilters must be separated by '/' and can be disabled by
6089 prepending a '\-'.
6090 Each subfilter and some options have a short and a long name that can be
6091 used interchangeably, i.e.\& dr/dering are the same.
6092 All subfilters share common options to determine their scope:
6093 .PD 0
6094 .RSs
6095 .IPs a/autoq
6096 Automatically switch the subfilter off if the CPU is too slow.
6097 .IPs c/chrom
6098 Do chrominance filtering, too (default).
6099 .IPs y/nochrom
6100 Do luminance filtering only (no chrominance).
6101 .IPs n/noluma
6102 Do chrominance filtering only (no luminance).
6104 .PD 1
6105 .sp 1
6108 .I NOTE:
6109 \-pphelp shows a list of available subfilters.
6110 .sp 1
6111 Available subfilters are
6113 .RSs
6114 .IPs hb/hdeblock[:difference[:flatness]]
6115 horizontal deblocking filter
6116 .RSss
6117 <difference>: Difference factor where higher values mean
6118 more deblocking (default: 32).
6120 <flatness>: Flatness threshold where lower values mean
6121 more deblocking (default: 39).
6122 .REss
6123 .IPs vb/vdeblock[:difference[:flatness]]
6124 vertical deblocking filter
6125 .RSss
6126 <difference>: Difference factor where higher values mean
6127 more deblocking (default: 32).
6129 <flatness>: Flatness threshold where lower values mean
6130 more deblocking (default: 39).
6131 .REss
6132 .IPs ha/hadeblock[:difference[:flatness]]
6133 accurate horizontal deblocking filter
6134 .RSss
6135 <difference>: Difference factor where higher values mean
6136 more deblocking (default: 32).
6138 <flatness>: Flatness threshold where lower values mean
6139 more deblocking (default: 39).
6140 .REss
6141 .IPs va/vadeblock[:difference[:flatness]]
6142 accurate vertical deblocking filter
6143 .RSss
6144 <difference>: Difference factor where higher values mean
6145 more deblocking (default: 32).
6147 <flatness>: Flatness threshold where lower values mean
6148 more deblocking (default: 39).
6149 .REss
6150 .sp 1
6151 The horizontal and vertical deblocking filters share the
6152 difference and flatness values so you cannot set
6153 different horizontal and vertical thresholds.
6154 .sp 1
6155 .IPs h1/x1hdeblock
6156 experimental horizontal deblocking filter
6157 .IPs v1/x1vdeblock
6158 experimental vertical deblocking filter
6159 .IPs dr/dering
6160 deringing filter
6161 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
6162 temporal noise reducer
6163 .RSss
6164 <threshold1>: larger -> stronger filtering
6166 <threshold2>: larger -> stronger filtering
6168 <threshold3>: larger -> stronger filtering
6169 .REss
6170 .IPs al/autolevels[:f/fullyrange]
6171 automatic brightness / contrast correction
6172 .RSss
6173 f/fullyrange: Stretch luminance to (0\-255).
6174 .REss
6175 .IPs lb/linblenddeint
6176 Linear blend deinterlacing filter that deinterlaces the given block
6177 by filtering all lines with a (1 2 1) filter.
6178 .IPs li/linipoldeint
6179 Linear interpolating deinterlacing filter that deinterlaces the given block
6180 by linearly interpolating every second line.
6181 .IPs ci/cubicipoldeint
6182 Cubic interpolating deinterlacing filter deinterlaces the given block
6183 by cubically interpolating every second line.
6184 .IPs md/mediandeint
6185 Median deinterlacing filter that deinterlaces the given block
6186 by applying a median filter to every second line.
6187 .IPs fd/ffmpegdeint
6188 FFmpeg deinterlacing filter that deinterlaces the given block
6189 by filtering every second line with a (\-1 4 2 4 \-1) filter.
6190 .IPs l5/lowpass5
6191 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
6192 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
6193 .IPs fq/forceQuant[:quantizer]
6194 Overrides the quantizer table from the input with the constant
6195 quantizer you specify.
6196 .RSss
6197 <quantizer>: quantizer to use
6198 .REss
6199 .IPs de/default
6200 default pp filter combination (hb:a,vb:a,dr:a)
6201 .IPs fa/fast
6202 fast pp filter combination (h1:a,v1:a,dr:a)
6203 .IPs "ac\ \ \ "
6204 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
6207 .sp 1
6208 .I EXAMPLE:
6210 .PD 0
6211 .RSs
6212 .IPs "\-vf pp=hb/vb/dr/al"
6213 horizontal and vertical deblocking, deringing and automatic
6214 brightness/\:contrast
6215 .IPs "\-vf pp=de/\-al"
6216 default filters without brightness/\:contrast correction
6217 .IPs "\-vf pp=default/tmpnoise:1:2:3"
6218 Enable default filters & temporal denoiser.
6219 .IPs "\-vf pp=hb:y/vb:a"
6220 Horizontal deblocking on luminance only, and switch vertical deblocking
6221 on or off automatically depending on available CPU time.
6223 .PD 1
6226 .B spp[=quality[:qp[:mode]]]
6227 Simple postprocessing filter that compresses and decompresses the
6228 image at several (or \- in the case of quality level 6 \- all)
6229 shifts and averages the results.
6230 .RSs
6231 .IPs <quality>
6232 0\-6 (default: 3)
6233 .IPs "<qp>\ "
6234 Force quantization parameter (default: 0, use QP from video).
6235 .IPs <mode>
6236 0: hard thresholding (default)
6238 1: soft thresholding (better deringing, but blurrier)
6240 4: like 0, but also use B-frames' QP (may cause flicker)
6242 5: like 1, but also use B-frames' QP (may cause flicker)
6246 .B uspp[=quality[:qp]]
6247 Ultra simple & slow postprocessing filter that compresses and
6248 decompresses the image at several (or \- in the case of quality
6249 level 8 \- all) shifts and averages the results.
6250 The way this differs from the behavior of spp is that uspp actually
6251 encodes & decodes each case with libavcodec Snow, whereas spp uses
6252 a simplified intra only 8x8 DCT similar to MJPEG.
6253 .RSs
6254 .IPs <quality>
6255 0\-8 (default: 3)
6256 .IPs "<qp>\ "
6257 Force quantization parameter (default: 0, use QP from video).
6261 .B fspp[=quality[:qp[:strength[:bframes]]]]
6262 faster version of the simple postprocessing filter
6263 .RSs
6264 .IPs <quality>
6265 4\-5 (equivalent to spp; default: 4)
6266 .IPs "<qp>\ "
6267 Force quantization parameter (default: 0, use QP from video).
6268 .IPs <\-15\-32>
6269 Filter strength, lower values mean more details but also more artifacts,
6270 while higher values make the image smoother but also blurrier (default:
6271 0 \- PSNR optimal).
6272 .IPs <bframes>
6273 0: do not use QP from B-frames (default)
6275 1: use QP from B-frames too (may cause flicker)
6279 .B pp7[=qp[:mode]]
6280 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6281 only the center sample is used after IDCT.
6282 .RSs
6283 .IPs "<qp>\ "
6284 Force quantization parameter (default: 0, use QP from video).
6285 .IPs <mode>
6286 0: hard thresholding
6288 1: soft thresholding (better deringing, but blurrier)
6290 2: medium thresholding (default, good results)
6294 .B qp=equation
6295 quantization parameter (QP) change filter
6296 .RSs
6297 .IPs <equation>
6298 some equation like "2+2*sin(PI*qp)"
6302 .B geq=equation
6303 generic equation change filter
6304 .RSs
6305 .IPs <equation>
6306 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6307 You can use whitespace to make the equation more readable.
6308 There are a couple of constants that can be used in the equation:
6309 .RSss
6310 PI: the number pi
6312 E: the number e
6314 X / Y: the coordinates of the current sample
6316 W / H: width and height of the image
6318 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6319 1,1 and 0.5,0.5 for YUV 4:2:0.
6321 p(x,y): returns the value of the pixel at location x/y of the current plane.
6322 .REss
6326 .B "test\ \ \ "
6327 Generate various test patterns.
6330 .B rgbtest[=width:height]
6331 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6332 You should see a red, green and blue stripe from top to bottom.
6333 .RSs
6334 .IPs <width>
6335 Desired width of generated image (default: 0).
6336 0 means width of input image.
6338 .IPs <height>
6339 Desired height of generated image (default: 0).
6340 0 means height of input image.
6344 .B lavc[=quality:fps]
6345 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6346 .RSs
6347 .IPs <quality>
6348 1\-31: fixed qscale
6350 32\-:  fixed bitrate in kbits
6351 .IPs <fps>
6352 force output fps (float value) (default: 0, autodetect based on height)
6356 .B dvbscale[=aspect]
6357 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6358 calculating the y axis scaling in software to keep aspect.
6359 Only useful together with expand and scale.
6360 .RSs
6361 .IPs <aspect>
6362 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6363 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6365 .sp 1
6367 .I EXAMPLE:
6369 .PD 0
6370 .RSs
6371 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6372 FIXME: Explain what this does.
6374 .PD 1
6377 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6378 Adds noise.
6379 .PD 0
6380 .RSs
6381 .IPs <0\-100>
6382 luma noise
6383 .IPs <0\-100>
6384 chroma noise
6385 .IPs u
6386 uniform noise (gaussian otherwise)
6387 .IPs t
6388 temporal noise (noise pattern changes between frames)
6389 .IPs a
6390 averaged temporal noise (smoother, but a lot slower)
6391 .IPs h
6392 high quality (slightly better looking, slightly slower)
6393 .IPs p
6394 mix random noise with a (semi)regular pattern
6396 .PD 1
6399 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6400 This filter aims to reduce image noise producing smooth images and making still
6401 images really still (This should enhance compressibility.).
6402 .PD 0
6403 .RSs
6404 .IPs <luma_spatial>
6405 spatial luma strength (default: 4)
6406 .IPs <chroma_spatial>
6407 spatial chroma strength (default: 3)
6408 .IPs <luma_tmp>
6409 luma temporal strength (default: 6)
6410 .IPs <chroma_tmp>
6411 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6413 .PD 1
6416 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6417 High precision/\:quality version of the denoise3d filter.
6418 Parameters and usage are the same.
6421 .B ow[=depth[:luma_strength[:chroma_strength]]]
6422 Overcomplete Wavelet denoiser.
6423 .PD 0
6424 .RSs
6425 .IPs <depth>
6426 Larger depth values will denoise lower frequency components more, but
6427 slow down filtering (default: 8).
6428 .IPs <luma_strength>
6429 luma strength (default: 1.0)
6430 .IPs <chroma_strength>
6431 chroma strength (default: 1.0)
6433 .PD 1
6436 .B eq[=brightness:contrast] (OBSOLETE)
6437 Software equalizer with interactive controls just like the hardware
6438 equalizer, for cards/\:drivers that do not support brightness and
6439 contrast controls in hardware.
6440 Might also be useful with MEncoder, either for fixing poorly captured
6441 movies, or for slightly reducing contrast to mask artifacts and get by
6442 with lower bitrates.
6443 .PD 0
6444 .RSs
6445 .IPs <\-100\-100>
6446 initial brightness
6447 .IPs <\-100\-100>
6448 initial contrast
6450 .PD 1
6453 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6454 Alternative software equalizer that uses lookup tables (very slow),
6455 allowing gamma correction in addition to simple brightness
6456 and contrast adjustment.
6457 Note that it uses the same MMX optimized code as \-vf eq if all
6458 gamma values are 1.0.
6459 The parameters are given as floating point values.
6460 .PD 0
6461 .RSs
6462 .IPs <0.1\-10>
6463 initial gamma value (default: 1.0)
6464 .IPs <\-2\-2>
6465 initial contrast, where negative values result in a
6466 negative image (default: 1.0)
6467 .IPs <\-1\-1>
6468 initial brightness (default: 0.0)
6469 .IPs <0\-3>
6470 initial saturation (default: 1.0)
6471 .IPs <0.1\-10>
6472 gamma value for the red component (default: 1.0)
6473 .IPs <0.1\-10>
6474 gamma value for the green component (default: 1.0)
6475 .IPs <0.1\-10>
6476 gamma value for the blue component (default: 1.0)
6477 .IPs <0\-1>
6478 The weight parameter can be used to reduce the effect of a high gamma value on
6479 bright image areas, e.g.\& keep them from getting overamplified and just plain
6480 white.
6481 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6482 at its full strength (default: 1.0).
6484 .PD 1
6487 .B hue[=hue:saturation]
6488 Software equalizer with interactive controls just like the hardware
6489 equalizer, for cards/\:drivers that do not support hue and
6490 saturation controls in hardware.
6491 .PD 0
6492 .RSs
6493 .IPs <\-180\-180>
6494 initial hue (default: 0.0)
6495 .IPs <\-100\-100>
6496 initial saturation, where negative values result
6497 in a negative chroma (default: 1.0)
6499 .PD 1
6502 .B halfpack[=f]
6503 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6504 keeping all chroma samples.
6505 Useful for output to low-resolution display devices when hardware downscaling
6506 is poor quality or is not available.
6507 Can also be used as a primitive luma-only deinterlacer with very low CPU
6508 usage.
6509 .PD 0
6510 .RSs
6511 .IPs "<f>\ \ "
6512 By default, halfpack averages pairs of lines when downsampling.
6513 Any value different from 0 or 1 gives the default (averaging) behavior.
6514 .RSss
6515 0: Only use even lines when downsampling.
6517 1: Only use odd lines when downsampling.
6518 .REss
6520 .PD 1
6523 .B ilpack[=mode]
6524 When interlaced video is stored in YUV 4:2:0 formats, chroma
6525 interlacing does not line up properly due to vertical downsampling of
6526 the chroma channels.
6527 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6528 the chroma lines in their proper locations, so that in any given
6529 scanline, the luma and chroma data both come from the same field.
6530 .PD 0
6531 .RSs
6532 .IPs <mode>
6533 Select the sampling mode.
6534 .RSss
6535 0: nearest-neighbor sampling, fast but incorrect
6537 1: linear interpolation (default)
6538 .REss
6540 .PD 1
6543 .B harddup
6544 Only useful with MEncoder.
6545 If harddup is used when encoding, it will force duplicate frames to be
6546 encoded in the output.
6547 This uses slightly more space, but is necessary for output to MPEG
6548 files or if you plan to demux and remux the video stream after
6549 encoding.
6550 Should be placed at or near the end of the filter chain unless you
6551 have a good reason to do otherwise.
6554 .B softskip
6555 Only useful with MEncoder.
6556 Softskip moves the frame skipping (dropping) step of encoding from
6557 before the filter chain to some point during the filter chain.
6558 This allows filters which need to see all frames (inverse telecine,
6559 temporal denoising, etc.) to function properly.
6560 Should be placed after the filters which need to see all frames and
6561 before any subsequent filters that are CPU-intensive.
6564 .B decimate[=max:hi:lo:frac]
6565 Drops frames that do not differ greatly from the previous frame in
6566 order to reduce framerate.
6567 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6568 streaming over dialup modem), but it could in theory be used for
6569 fixing movies that were inverse-telecined incorrectly.
6570 .PD 0
6571 .RSs
6572 .IPs <max>
6573 Sets the maximum number of consecutive frames which can be
6574 dropped (if positive), or the minimum interval between
6575 dropped frames (if negative).
6576 .IPs <hi>,<lo>,<frac>
6577 A frame is a candidate for dropping if no 8x8 region differs by more
6578 than a threshold of <hi>, and if not more than <frac> portion (1
6579 meaning the whole image) differs by more than a threshold of <lo>.
6580 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6581 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6582 difference for each pixel, or the same spread out differently over the
6583 block.
6585 .PD 1
6588 .B dint[=sense:level]
6589 The drop-deinterlace (dint) filter detects and drops the first from a set
6590 of interlaced video frames.
6591 .PD 0
6592 .RSs
6593 .IPs <0.0\-1.0>
6594 relative difference between neighboring pixels (default: 0.1)
6595 .IPs <0.0\-1.0>
6596 What part of the image has to be detected as interlaced to
6597 drop the frame (default: 0.15).
6599 .PD 1
6602 .B lavcdeint (OBSOLETE)
6603 FFmpeg deinterlacing filter, same as \-vf pp=fd
6606 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6607 Donald Graft's adaptive kernel deinterlacer.
6608 Deinterlaces parts of a video if a configurable threshold is exceeded.
6609 .PD 0
6610 .RSs
6611 .IPs <0\-255>
6612 threshold (default: 10)
6613 .IPs <map>
6614 .RSss
6615 0: Ignore pixels exceeding the threshold (default).
6617 1: Paint pixels exceeding the threshold white.
6618 .REss
6619 .IPs <order>
6620 .RSss
6621 0: Leave fields alone (default).
6623 1: Swap fields.
6624 .REss
6625 .IPs <sharp>
6626 .RSss
6627 0: Disable additional sharpening (default).
6629 1: Enable additional sharpening.
6630 .REss
6631 .IPs <twoway>
6632 .RSss
6633 0: Disable twoway sharpening (default).
6635 1: Enable twoway sharpening.
6636 .REss
6638 .PD 1
6641 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6642 unsharp mask / gaussian blur
6643 .RSs
6644 .IPs "l\ \ \ \ "
6645 Apply effect on luma component.
6646 .IPs "c\ \ \ \ "
6647 Apply effect on chroma components.
6648 .IPs <width>x<height>
6649 width and height of the matrix, odd sized in both directions
6650 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6651 .IPs amount
6652 Relative amount of sharpness/\:blur to add to the image
6653 (a sane range should be \-1.5\-1.5).
6654 .RSss
6655 <0: blur
6657 >0: sharpen
6658 .REss
6662 .B "swapuv\ "
6663 Swap U & V plane.
6666 .B il[=d|i][s][:[d|i][s]]
6667 (De)interleaves lines.
6668 The goal of this filter is to add the ability to process interlaced images
6669 pre-field without deinterlacing them.
6670 You can filter your interlaced DVD and play it on a TV without breaking the
6671 interlacing.
6672 While deinterlacing (with the postprocessing filter) removes interlacing
6673 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6674 2 fields (so called half pictures), so you can process (filter) them
6675 independently and then re-interleave them.
6676 .PD 0
6677 .RSs
6678 .IPs d
6679 deinterleave (placing one above the other)
6680 .IPs i
6681 interleave
6682 .IPs s
6683 swap fields (exchange even & odd lines)
6685 .PD 1
6688 .B fil[=i|d]
6689 (De)interleaves lines.
6690 This filter is very similar to the il filter but much faster, the main
6691 disadvantage is that it does not always work.
6692 Especially if combined with other filters it may produce randomly messed
6693 up images, so be happy if it works but do not complain if it does not for
6694 your combination of filters.
6695 .PD 0
6696 .RSs
6697 .IPs d
6698 Deinterleave fields, placing them side by side.
6699 .IPs i
6700 Interleave fields again (reversing the effect of fil=d).
6702 .PD 1
6705 .B field[=n]
6706 Extracts a single field from an interlaced image using stride arithmetic
6707 to avoid wasting CPU time.
6708 The optional argument n specifies whether to extract the even or the odd
6709 field (depending on whether n is even or odd).
6712 .B detc[=var1=value1:var2=value2:...]
6713 Attempts to reverse the 'telecine' process to recover a clean,
6714 non-interlaced stream at film framerate.
6715 This was the first and most primitive inverse telecine filter to be
6716 added to MPlayer/\:MEncoder.
6717 It works by latching onto the telecine 3:2 pattern and following it as
6718 long as possible.
6719 This makes it suitable for perfectly-telecined material, even in the
6720 presence of a fair degree of noise, but it will fail in the presence
6721 of complex post-telecine edits.
6722 Development on this filter is no longer taking place, as ivtc, pullup,
6723 and filmdint are better for most applications.
6724 The following arguments (see syntax above) may be used to control
6725 detc's behavior:
6726 .RSs
6727 .IPs "<dr>\ "
6728 Set the frame dropping mode.
6729 .RSss
6730 0: Do not drop frames to maintain fixed output framerate (default).
6732 1: Always drop a frame when there have been no drops or telecine
6733 merges in the past 5 frames.
6735 2: Always maintain exact 5:4 input to output frame ratio.
6737 .I NOTE:
6738 Use mode 1 or 2 with MEncoder.
6739 .REss
6740 .IPs "<am>\ "
6741 Analysis mode.
6742 .RSss
6743 0: Fixed pattern with initial frame number specified by <fr>.
6745 1: aggressive search for telecine pattern (default)
6746 .REss
6747 .IPs "<fr>\ "
6748 Set initial frame number in sequence.
6749 0\-2 are the three clean progressive frames; 3 and 4 are the two
6750 interlaced frames.
6751 The default, \-1, means 'not in telecine sequence'.
6752 The number specified here is the type for the imaginary previous
6753 frame before the movie starts.
6754 .IPs "<t0>, <t1>, <t2>, <t3>"
6755 Threshold values to be used in certain modes.
6759 .B ivtc[=1]
6760 Experimental 'stateless' inverse telecine filter.
6761 Rather than trying to lock on to a pattern like the detc filter does,
6762 ivtc makes its decisions independently for each frame.
6763 This will give much better results for material that has undergone
6764 heavy editing after telecine was applied, but as a result it is not as
6765 forgiving of noisy input, for example TV capture.
6766 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6767 detc filter, and should be used with MEncoder but not with MPlayer.
6768 As with detc, you must specify the correct output framerate (\-ofps
6769 24000/1001) when using MEncoder.
6770 Further development on ivtc has stopped, as the pullup and filmdint
6771 filters appear to be much more accurate.
6774 .B pullup[=jl:jr:jt:jb:sb:mp]
6775 Third-generation pulldown reversal (inverse telecine) filter,
6776 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6777 fps progressive content.
6778 The pullup filter is designed to be much more robust than detc or
6779 ivtc, by taking advantage of future context in making its decisions.
6780 Like ivtc, pullup is stateless in the sense that it does not lock onto
6781 a pattern to follow, but it instead looks forward to the following
6782 fields in order to identify matches and rebuild progressive frames.
6783 It is still under development, but believed to be quite accurate.
6784 .RSs
6785 .IPs "jl, jr, jt, and jb"
6786 These options set the amount of "junk" to ignore at
6787 the left, right, top, and bottom of the image, respectively.
6788 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6789 2 lines.
6790 The default is 8 pixels on each side.
6792 .IPs "sb (strict breaks)"
6793 Setting this option to 1 will reduce the chances of
6794 pullup generating an occasional mismatched frame, but it may also
6795 cause an excessive number of frames to be dropped during high motion
6796 sequences.
6797 Conversely, setting it to \-1 will make pullup match fields more
6798 easily.
6799 This may help processing of video where there is slight blurring
6800 between the fields, but may also cause there to be interlaced frames
6801 in the output.
6803 .IPs "mp (metric plane)"
6804 This option may be set to 1 or 2 to use a chroma
6805 plane instead of the luma plane for doing pullup's computations.
6806 This may improve accuracy on very clean source material, but more
6807 likely will decrease accuracy, especially if there is chroma noise
6808 (rainbow effect) or any grayscale video.
6809 The main purpose of setting mp to a chroma plane is to reduce CPU load
6810 and make pullup usable in realtime on slow machines.
6811 .REss
6813 .sp 1
6814 .I NOTE:
6815 Always follow pullup with the softskip filter when encoding to ensure
6816 that pullup is able to see each frame.
6817 Failure to do so will lead to incorrect output and will usually crash,
6818 due to design limitations in the codec/\:filter layer.
6819 .REss
6822 .B filmdint[=options]
6823 Inverse telecine filter, similar to the pullup filter above.
6824 It is designed to handle any pulldown pattern, including mixed soft and
6825 hard telecine and limited support for movies that are slowed down or sped
6826 up from their original framerate for TV.
6827 Only the luma plane is used to find the frame breaks.
6828 If a field has no match, it is deinterlaced with simple linear
6829 approximation.
6830 If the source is MPEG-2, this must be the first filter to allow
6831 access to the field-flags set by the MPEG-2 decoder.
6832 Depending on the source MPEG, you may be fine ignoring this advice, as
6833 long as you do not see lots of "Bottom-first field" warnings.
6834 With no options it does normal inverse telecine, and should be used
6835 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6836 When this filter is used with MPlayer, it will result in an uneven
6837 framerate during playback, but it is still generally better than using
6838 pp=lb or no deinterlacing at all.
6839 Multiple options can be specified separated by /.
6840 .RSs
6841 .IPs crop=<w>:<h>:<x>:<y>
6842 Just like the crop filter, but faster, and works on mixed hard and soft
6843 telecined content as well as when y is not a multiple of 4.
6844 If x or y would require cropping fractional pixels from the chroma
6845 planes, the crop area is extended.
6846 This usually means that x and y must be even.
6847 .IPs io=<ifps>:<ofps>
6848 For each ifps input frames the filter will output ofps frames.
6849 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
6850 This could be used to filter movies that are broadcast on TV at a frame
6851 rate different from their original framerate.
6852 .IPs luma_only=<n>
6853 If n is nonzero, the chroma plane is copied unchanged.
6854 This is useful for YV12 sampled TV, which discards one of the chroma
6855 fields.
6856 .IPs mmx2=<n>
6857 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6858 optimized functions, otherwise, use plain C.
6859 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6860 this option to override auto-detection.
6861 .IPs fast=<n>
6862 The larger n will speed up the filter at the expense of accuracy.
6863 The default value is n=3.
6864 If n is odd, a frame immediately following a frame marked with the
6865 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6866 will not spend any time on soft-telecined MPEG-2 content.
6867 This is the only effect of this flag if MMX2 or 3DNow! is available.
6868 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6869 as with n=2 or 3.
6870 If n=2 or 3, the number of luma levels used to find the frame breaks is
6871 reduced from 256 to 128, which results in a faster filter without losing
6872 much accuracy.
6873 If n=4 or 5, a faster, but much less accurate metric will be used to
6874 find the frame breaks, which is more likely to misdetect high vertical
6875 detail as interlaced content.
6876 .IPs verbose=<n>
6877 If n is nonzero, print the detailed metrics for each frame.
6878 Useful for debugging.
6879 .IPs dint_thres=<n>
6880 Deinterlace threshold.
6881 Used during de-interlacing of unmatched frames.
6882 Larger value means less deinterlacing, use n=256 to completely turn off
6883 deinterlacing.
6884 Default is n=8.
6885 .IPs comb_thres=<n>
6886 Threshold for comparing a top and bottom fields.
6887 Defaults to 128.
6888 .IPs diff_thres=<n>
6889 Threshold to detect temporal change of a field.
6890 Default is 128.
6891 .IPs sad_thres=<n>
6892 Sum of Absolute Difference threshold, default is 64.
6893 .IPs vfr=<n>
6894 If n is nonzero, attempt to output meaningful PTS values, and try to discard
6895 only frames that are duplicates in telecine sequences. Experimental, should
6896 be used in mencoder with -noskip, in which case output must be used with
6897 tcdump filter and an external tool to apply the timestamps to frames.
6901 .B softpulldown
6902 This filter works only correct with MEncoder and acts on the MPEG-2 flags
6903 used for soft 3:2 pulldown (soft telecine).
6904 If you want to use the ivtc or detc filter on movies that are partly soft
6905 telecined, inserting this filter before them should make them more reliable.
6908 .B divtc[=options]
6909 Inverse telecine for deinterlaced video.
6910 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
6911 using a method that keeps one field and interpolates the other, the result is
6912 a juddering video that has every fourth frame duplicated.
6913 This filter is intended to find and drop those duplicates and restore the
6914 original film framerate.
6915 When using this filter, you must specify \-ofps that is 4/5 of
6916 the fps of the input file and place the softskip later in the
6917 filter chain to make sure that divtc sees all the frames.
6918 Two different modes are available:
6919 One pass mode is the default and is straightforward to use,
6920 but has the disadvantage that any changes in the telecine
6921 phase (lost frames or bad edits) cause momentary judder
6922 until the filter can resync again.
6923 Two pass mode avoids this by analyzing the whole video
6924 beforehand so it will have forward knowledge about the
6925 phase changes and can resync at the exact spot.
6926 These passes do
6927 .B not
6928 correspond to pass one and two of the encoding process.
6929 You must run an extra pass using divtc pass one before the
6930 actual encoding throwing the resulting video away.
6931 Use \-nosound \-ovc raw \-o /dev/null to avoid
6932 wasting CPU power for this pass.
6933 You may add something like crop=2:2:0:0 after divtc
6934 to speed things up even more.
6935 Then use divtc pass two for the actual encoding.
6936 If you use multiple encoder passes, use divtc
6937 pass two for all of them.
6938 The options are:
6939 .RSs
6940 .IPs pass=1|2
6941 Use two pass mode.
6942 .IPs file=<filename>
6943 Set the two pass log filename (default: "framediff.log").
6944 .IPs threshold=<value>
6945 Set the minimum strength the telecine pattern must have for the filter to
6946 believe in it (default: 0.5).
6947 This is used to avoid recognizing false pattern from the parts of the video
6948 that are very dark or very still.
6949 .IPs window=<numframes>
6950 Set the number of past frames to look at when searching for pattern
6951 (default: 30).
6952 Longer window improves the reliability of the pattern search, but shorter
6953 window improves the reaction time to the changes in the telecine phase.
6954 This only affects the one pass mode.
6955 The two pass mode currently uses fixed window that extends to both future
6956 and past.
6957 .IPs phase=0|1|2|3|4
6958 Sets the initial telecine phase for one pass mode (default: 0).
6959 The two pass mode can see the future, so it is able to use the correct
6960 phase from the beginning, but one pass mode can only guess.
6961 It catches the correct phase when it finds it, but this option can be used
6962 to fix the possible juddering at the beginning.
6963 The first pass of the two pass mode also uses this, so if you save the output
6964 from the first pass, you get constant phase result.
6965 .IPs deghost=<value>
6966 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
6967 mode, default 0).
6968 If nonzero, deghosting mode is used.
6969 This is for video that has been deinterlaced by blending the fields
6970 together instead of dropping one of the fields.
6971 Deghosting amplifies any compression artifacts in the blended frames, so the
6972 parameter value is used as a threshold to exclude those pixels from
6973 deghosting that differ from the previous frame less than specified value.
6974 If two pass mode is used, then negative value can be used to make the
6975 filter analyze the whole video in the beginning of pass-2 to determine
6976 whether it needs deghosting or not and then select either zero or the
6977 absolute value of the parameter.
6978 Specify this option for pass-2, it makes no difference on pass-1.
6982 .B phase[=t|b|p|a|u|T|B|A|U][:v]
6983 Delay interlaced video by one field time so that the field order
6984 changes.
6985 The intended use is to fix PAL movies that have been captured with the
6986 opposite field order to the film-to-video transfer.
6987 The options are:
6988 .RSs
6989 .IPs t
6990 Capture field order top-first, transfer bottom-first.
6991 Filter will delay the bottom field.
6992 .IPs b
6993 Capture bottom-first, transfer top-first.
6994 Filter will delay the top field.
6995 .IPs p
6996 Capture and transfer with the same field order.
6997 This mode only exists for the documentation of the other options to refer to,
6998 but if you actually select it, the filter will faithfully do nothing ;-)
6999 .IPs a
7000 Capture field order determined automatically by field flags, transfer opposite.
7001 Filter selects among t and b modes on a frame by frame basis using field flags.
7002 If no field information is available, then this works just like u.
7003 .IPs u
7004 Capture unknown or varying, transfer opposite.
7005 Filter selects among t and b on a frame by frame basis by analyzing the
7006 images and selecting the alternative that produces best match between the
7007 fields.
7008 .IPs T
7009 Capture top-first, transfer unknown or varying.
7010 Filter selects among t and p using image analysis.
7011 .IPs B
7012 Capture bottom-first, transfer unknown or varying.
7013 Filter selects among b and p using image analysis.
7014 .IPs A
7015 Capture determined by field flags, transfer unknown or varying.
7016 Filter selects among t, b and p using field flags and image analysis.
7017 If no field information is available, then this works just like U.
7018 This is the default mode.
7019 .IPs U
7020 Both capture and transfer unknown or varying.
7021 Filter selects among t, b and p using image analysis only.
7022 .IPs v
7023 Verbose operation.
7024 Prints the selected mode for each frame and the average squared difference
7025 between fields for t, b, and p alternatives.
7029 .B telecine[=start]
7030 Apply 3:2 'telecine' process to increase framerate by 20%.
7031 This most likely will not work correctly with MPlayer, but it can
7032 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
7033 Both fps options are essential!
7034 (A/V sync will break if they are wrong.)
7035 The optional start parameter tells the filter where in the telecine
7036 pattern to start (0\-3).
7039 .B tinterlace[=mode]
7040 Temporal field interlacing \- merge pairs of frames into an interlaced
7041 frame, halving the framerate.
7042 Even frames are moved into the upper field, odd frames to the lower field.
7043 This can be used to fully reverse the effect of the tfields filter (in mode 0).
7044 Available modes are:
7045 .PD 0
7046 .RSs
7047 .IPs 0
7048 Move odd frames into the upper field, even into the lower field, generating
7049 a full-height frame at half framerate.
7050 .IPs 1
7051 Only output odd frames, even frames are dropped; height unchanged.
7052 .IPs 2
7053 Only output even frames, odd frames are dropped; height unchanged.
7054 .IPs 3
7055 Expand each frame to full height, but pad alternate lines with black;
7056 framerate unchanged.
7057 .IPs 4
7058 Interleave even lines from even frames with odd lines from odd frames.
7059 Height unchanged at half framerate.
7061 .PD 1
7064 .B tfields[=mode[:field_dominance]]
7065 Temporal field separation \- split fields into frames, doubling the
7066 output framerate.
7067 Like the telecine filter, tfields will only work properly with
7068 MEncoder, and only if both \-fps and \-ofps are set to the
7069 desired (double) framerate!
7070 .PD 0
7071 .RSs
7072 .IPs <mode>
7073 0: Leave fields unchanged (will jump/\:flicker).
7075 1: Interpolate missing lines. (The algorithm used might not be so good.)
7077 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
7079 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
7080 .IPs <field_dominance>\ (DEPRECATED)
7081 \-1: auto (default)
7082 Only works if the decoder exports the appropriate information and
7083 no other filters which discard that information come before tfields
7084 in the filter chain, otherwise it falls back to 0 (top field first).
7086 0: top field first
7088 1: bottom field first
7090 .I NOTE:
7091 This option will possibly be removed in a future version.
7092 Use \-field\-dominance instead.
7094 .PD 1
7097 .B yadif=[mode[:field_dominance]]
7098 Yet another deinterlacing filter
7099 .PD 0
7100 .RSs
7101 .IPs <mode>
7102 0: Output 1 frame for each frame.
7104 1: Output 1 frame for each field.
7106 2: Like 0 but skips spatial interlacing check.
7108 3: Like 1 but skips spatial interlacing check.
7109 .IPs <field_dominance>\ (DEPRECATED)
7110 Operates like tfields.
7112 .I NOTE:
7113 This option will possibly be removed in a future version.
7114 Use \-field\-dominance instead.
7116 .PD 1
7119 .B mcdeint=[mode[:parity[:qp]]]
7120 Motion compensating deinterlacer.
7121 It needs one field per frame as input and must thus be used together
7122 with tfields=1 or yadif=1/3 or equivalent.
7123 .PD 0
7124 .RSs
7125 .IPs <mode>
7126 0: fast
7128 1: medium
7130 2: slow, iterative motion estimation
7132 3: extra slow, like 2 plus multiple reference frames
7133 .IPs <parity>
7134 0 or 1 selects which field to use (note: no autodetection yet!).
7135 .IPs "<qp>\ "
7136 Higher values should result in a smoother motion vector
7137 field but less optimal individual vectors.
7139 .PD 1
7142 .B boxblur=radius:power[:radius:power]
7143 box blur
7144 .PD 0
7145 .RSs
7146 .IPs <radius>
7147 blur filter strength
7148 .IPs <power>
7149 number of filter applications
7151 .PD 1
7154 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
7155 shape adaptive blur
7156 .PD 0
7157 .RSs
7158 .IPs <radius>
7159 blur filter strength (~0.1\-4.0) (slower if larger)
7160 .IPs "<pf>\ "
7161 prefilter strength (~0.1\-2.0)
7162 .IPs <colorDiff>
7163 maximum difference between pixels to still be considered (~0.1\-100.0)
7165 .PD 1
7168 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
7169 smart blur
7170 .PD 0
7171 .RSs
7172 .IPs <radius>
7173 blur filter strength (~0.1\-5.0) (slower if larger)
7174 .IPs <strength>
7175 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
7176 .IPs <threshold>
7177 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
7179 .PD 1
7182 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
7183 Correct the perspective of movies not filmed perpendicular to the screen.
7184 .PD 0
7185 .RSs
7186 .IPs <x0>,<y0>,...
7187 coordinates of the top left, top right, bottom left, bottom right corners
7188 .IPs "<t>\ \ "
7189 linear (0) or cubic resampling (1)
7191 .PD 1
7194 .B "2xsai\ \ "
7195 Scale and smooth the image with the 2x scale and interpolate algorithm.
7198 .B "1bpp\ \ \ "
7199 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
7202 .B down3dright[=lines]
7203 Reposition and resize stereoscopic images.
7204 Extracts both stereo fields and places them side by side, resizing
7205 them to maintain the original movie aspect.
7206 .PD 0
7207 .RSs
7208 .IPs <lines>
7209 number of lines to select from the middle of the image (default: 12)
7211 .PD 1
7214 .B bmovl=hidden:opaque:fifo
7215 The bitmap overlay filter reads bitmaps from a FIFO and displays them
7216 on top of the movie, allowing some transformations on the image.
7217 Also see TOOLS/bmovl-test.c for a small bmovl test program.
7218 .PD 0
7219 .RSs
7220 .IPs <hidden>
7221 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
7222 .IPs <opaque>
7223 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
7224 .IPs <fifo>
7225 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
7226 controlling application)
7228 .PD 1
7229 .sp 1
7231 FIFO commands are:
7233 .PD 0
7234 .RSs
7235 .IPs "RGBA32 width height xpos ypos alpha clear"
7236 followed by width*height*4 Bytes of raw RGBA32 data.
7237 .IPs "ABGR32 width height xpos ypos alpha clear"
7238 followed by width*height*4 Bytes of raw ABGR32 data.
7239 .IPs "RGB24 width height xpos ypos alpha clear"
7240 followed by width*height*3 Bytes of raw RGB24 data.
7241 .IPs "BGR24 width height xpos ypos alpha clear"
7242 followed by width*height*3 Bytes of raw BGR24 data.
7243 .IPs "ALPHA width height xpos ypos alpha"
7244 Change alpha transparency of the specified area.
7245 .IPs "CLEAR width height xpos ypos"
7246 Clear area.
7247 .IPs OPAQUE
7248 Disable all alpha transparency.
7249 Send "ALPHA 0 0 0 0 0" to enable it again.
7250 .IPs "HIDE\ "
7251 Hide bitmap.
7252 .IPs "SHOW\ "
7253 Show bitmap.
7255 .PD 1
7256 .sp 1
7258 Arguments are:
7260 .PD 0
7261 .RSs
7262 .IPs "<width>, <height>"
7263 image/area size
7264 .IPs "<xpos>, <ypos>"
7265 Start blitting at position x/y.
7266 .IPs <alpha>
7267 Set alpha difference.
7268 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
7269 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
7270 .RSss
7271 0:    same as original
7273 255:  Make everything opaque.
7275 \-255: Make everything transparent.
7276 .REss
7277 .IPs <clear>
7278 Clear the framebuffer before blitting.
7279 .RSss
7280 0: The image will just be blitted on top of the old one, so you do not need to
7281 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7283 1: clear
7284 .REss
7286 .PD 1
7289 .B framestep=I|[i]step
7290 Renders only every nth frame or every intra frame (keyframe).
7291 .sp 1
7292 If you call the filter with I (uppercase) as the parameter, then
7293 .B only
7294 keyframes are rendered.
7295 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7296 for AVI it means every scene change or every keyint value (see \-lavcopts
7297 keyint= value if you use MEncoder to encode the video).
7298 .sp 1
7299 When a keyframe is found, an 'I!' string followed by a newline character is
7300 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
7301 because it contains the time (in seconds) and frame number of the keyframe
7302 (You can use this information to split the AVI.).
7303 .sp 1
7304 If you call the filter with a numeric parameter 'step' then only one in
7305 every 'step' frames is rendered.
7306 .sp 1
7307 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7308 (like the I parameter).
7309 .sp 1
7310 If you give only the i then nothing is done to the frames, only I! is
7311 printed.
7314 .B tile=xtiles:ytiles:output:start:delta
7315 Tile a series of images into a single, bigger image.
7316 If you omit a parameter or use a value less than 0, then the default
7317 value is used.
7318 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7319 It is probably a good idea to put the scale filter before the tile :-)
7320 .sp 1
7321 The parameters are:
7322 .sp 1
7323 .PD 0
7324 .RSs
7325 .IPs <xtiles>
7326 number of tiles on the x axis (default: 5)
7327 .IPs <ytiles>
7328 number of tiles on the y axis (default: 5)
7329 .IPs <output>
7330 Render the tile when 'output' number of frames are reached, where 'output'
7331 should be a number less than xtile * ytile.
7332 Missing tiles are left blank.
7333 You could, for example, write an 8 * 7 tile every 50 frames to have one
7334 image every 2 seconds @ 25 fps.
7335 .IPs <start>
7336 outer border thickness in pixels (default: 2)
7337 .IPs <delta>
7338 inner border thickness in pixels (default: 4)
7340 .PD 1
7343 .B delogo[=x:y:w:h:t]
7344 Suppresses a TV station logo by a simple interpolation of the
7345 surrounding pixels.
7346 Just set a rectangle covering the logo and watch it disappear (and
7347 sometimes something even uglier appear \- your mileage may vary).
7348 .PD 0
7349 .RSs
7350 .IPs <x>,<y>
7351 top left corner of the logo
7352 .IPs <w>,<h>
7353 width and height of the cleared rectangle
7354 .IPs <t>
7355 Thickness of the fuzzy edge of the rectangle (added to w and h).
7356 When set to \-1, a green rectangle is drawn on the screen to
7357 simplify finding the right x,y,w,h parameters.
7359 .PD 1
7362 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7363 Suppresses a TV station logo, using a PGM or PPM image
7364 file to determine which pixels comprise the logo.
7365 The width and height of the image file must match
7366 those of the video stream being processed.
7367 Uses the filter image and a circular blur
7368 algorithm to remove the logo.
7369 .RSs
7370 .IPs /path/to/logo_bitmap_file_name.pgm
7371 [path] + filename of the filter image.
7375 .B zrmjpeg[=options]
7376 Software YV12 to MJPEG encoder for use with the zr2 video
7377 output device.
7378 .RSs
7379 .IPs maxheight=<h>|maxwidth=<w>
7380 These options set the maximum width and height the zr card
7381 can handle (the MPlayer filter layer currently cannot query those).
7382 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
7383 Use these options to set maxwidth and maxheight automatically to the
7384 values known for card/\:mode combo.
7385 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
7386 .IPs color|bw
7387 Select color or black and white encoding.
7388 Black and white encoding is faster.
7389 Color is the default.
7390 .IPs hdec={1,2,4}
7391 Horizontal decimation 1, 2 or 4.
7392 .IPs vdec={1,2,4}
7393 Vertical decimation 1, 2 or 4.
7394 .IPs quality=1\-20
7395 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
7396 .IPs fd|nofd
7397 By default, decimation is only performed if the Zoran hardware
7398 can upscale the resulting MJPEG images to the original size.
7399 The option fd instructs the filter to always perform the requested
7400 decimation (ugly).
7404 .B screenshot
7405 Allows acquiring screenshots of the movie using slave mode
7406 commands that can be bound to keypresses.
7407 See the slave mode documentation and the INTERACTIVE CONTROL
7408 section for details.
7409 Files named 'shotNNNN.png' will be saved in the working directory,
7410 using the first available number \- no files will be overwritten.
7411 The filter has no overhead when not used and accepts an arbitrary
7412 colorspace, so it is safe to add it to the configuration file.
7413 Make sure that the screenshot filter is added after all other filters
7414 whose effect you want to record on the saved image.
7415 E.g.\& it should be the last filter if you want to have an exact
7416 screenshot of what you see on the monitor.
7420 .B "ass\ \ \ \ "
7421 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7422 Only useful with the \-ass option.
7423 .sp 1
7424 .I EXAMPLE:
7425 .PD 0
7426 .RSs
7427 .IPs "\-vf ass,screenshot"
7428 Moves SSA/ASS rendering before the screenshot filter.
7429 Screenshots taken this way will contain subtitles.
7431 .PD 1
7434 .B blackframe[=amount:threshold]
7435 Detect frames that are (almost) completely black.
7436 Can be useful to detect chapter transitions or commercials.
7437 Output lines consist of the frame number of the detected frame, the
7438 percentage of blackness, the frame type and the frame number of the last
7439 encountered keyframe.
7440 .RSs
7441 .IPs <amount>
7442 Percentage of the pixels that have to be below the threshold (default: 98).
7443 .IPs <threshold>
7444 Threshold below which a pixel value is considered black (default: 32).
7448 .B gradfun[=strength[:radius]]
7449 Fix the banding artifacts that are sometimes introduced into nearly flat
7450 regions by truncation to 8bit colordepth.
7451 Interpolates the gradients that should go where the bands are, and
7452 dithers them.
7453 .sp 1
7454 This filter is designed for playback only.
7455 Do not use it prior to lossy compression, because compression tends
7456 to lose the dither and bring back the bands.
7457 .RSs
7458 .IPs <strength>
7459 Maximum amount by which the filter will change any one pixel.
7460 Also the threshold for detecting nearly flat regions (default: 1.2).
7461 .IPs <radius>
7462 Neighborhood to fit the gradient to.
7463 Larger radius makes for smoother gradients, but also prevents the filter
7464 from modifying pixels near detailed regions (default: 16).
7468 .B tcdump[=filename]
7469 Dump frame timecodes to a file, in the v2 external timecode file used by
7470 mkvmerge. With proper post-processing, this could be used to produce VFR
7471 files with mplayer/mencoder. Note that mencoder does not pass timestamps
7472 to the filter chain, and will not work with this filter. If none is given,
7473 the default filename is "timecodesv2.txt".
7477 .B fixpts[=options]
7478 Fixes the presentation timestamps (PTS) of the frames.
7479 By default, the PTS passed to the next filter is dropped, but the following
7480 options can change that:
7481 .RSs
7482 .IPs print
7483 Print the incoming PTS.
7484 .IPs fps=<fps>
7485 Specify a frame per second value.
7486 .IPs start=<pts>
7487 Specify an initial value for the PTS.
7488 .IPs autostart=<n>
7489 Uses the 
7490 .IR n th
7491 incoming PTS as the initial PTS.
7492 All previous pts are kept, so setting a huge value or \-1 keeps the PTS
7493 intact.
7494 .IPs autofps=<n>
7495 Uses the 
7496 .IR n th
7497 incoming PTS after the end of autostart to determine the framerate.
7499 .sp 1
7501 .I EXAMPLE:
7503 .PD 0
7504 .RSs
7505 .IPs "\-vf fixpts=fps=24000/1001,ass,fixpts"
7506 Generates a new sequence of PTS, uses it for ASS subtitles, then drops it.
7507 Generating a new sequence is useful when the timestamps are reset during the
7508 program; this is frequent on DVDs.
7509 Dropping it may be necessary to avoid confusing encoders.
7511 .PD 1
7512 .sp 1
7514 .I NOTE:
7515 Using this filter together with any sort of seeking (including -ss and EDLs)
7516 may make demons fly out of your nose.
7519 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7522 .B \-audio\-delay <any floating-point number>
7523 Delays either audio or video by setting a delay field in the header
7524 (default: 0.0).
7525 This does not delay either stream while encoding, but the player will
7526 see the delay field and compensate accordingly.
7527 Positive values delay the audio, and negative values delay the video.
7528 Note that this is the exact opposite of the \-delay option.
7529 For example, if a video plays correctly with \-delay 0.2, you can
7530 fix the video with MEncoder by using \-audio\-delay \-0.2.
7531 .sp 1
7532 Currently, this option only works with the default muxer (\-of avi).
7533 If you are using a different muxer, then you must use \-delay instead.
7536 .B \-audio\-density <1\-50>
7537 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7539 .I NOTE:
7540 CBR only, VBR ignores this as it puts each packet in a new chunk.
7543 .B \-audio\-preload <0.0\-2.0>
7544 Sets up the audio buffering time interval (default: 0.5s).
7547 .B \-fafmttag <format>
7548 Can be used to override the audio format tag of the output file.
7549 .sp 1
7550 .I EXAMPLE:
7551 .PD 0
7552 .RSs
7553 .IPs "\-fafmttag 0x55"
7554 Will have the output file contain 0x55 (mp3) as audio format tag.
7556 .PD 1
7559 .B \-ffourcc <fourcc>
7560 Can be used to override the video fourcc of the output file.
7561 .sp 1
7562 .I EXAMPLE:
7563 .PD 0
7564 .RSs
7565 .IPs "\-ffourcc div3"
7566 Will have the output file contain 'div3' as video fourcc.
7568 .PD 1
7571 .B \-force\-avi\-aspect <0.2\-3.0>
7572 Override the aspect stored in the AVI OpenDML vprp header.
7573 This can be used to change the aspect ratio with '\-ovc copy'.
7576 .B \-frameno\-file <filename> (DEPRECATED)
7577 Specify the name of the audio file with framenumber mappings created in
7578 the first (audio only) pass of a special three pass encoding mode.
7580 .I NOTE:
7581 Using this mode will most likely give you A-V desync.
7582 Do not use it.
7583 It is kept for backwards compatibility only and will possibly
7584 be removed in a future version.
7587 .B \-hr\-edl\-seek
7588 Use a more precise, but much slower method for skipping areas.
7589 Areas marked for skipping are not seeked over, instead all
7590 frames are decoded, but only the necessary frames are encoded.
7591 This allows starting at non-keyframe boundaries.
7593 .I NOTE:
7594 Not guaranteed to work right with '\-ovc copy'.
7597 .B \-info <option1:option2:...> (AVI only)
7598 Specify the info header of the resulting AVI file.
7599 .sp 1
7600 Available options are:
7601 .RSs
7602 .IPs "help\ "
7603 Show this description.
7604 .IPs name=<value>
7605 title of the work
7606 .IPs artist=<value>
7607 artist or author of the work
7608 .IPs genre=<value>
7609 original work category
7610 .IPs subject=<value>
7611 contents of the work
7612 .IPs copyright=<value>
7613 copyright information
7614 .IPs srcform=<value>
7615 original format of the digitized material
7616 .IPs comment=<value>
7617 general comments about the work
7621 .B \-noautoexpand
7622 Do not automatically insert the expand filter into the MEncoder filter chain.
7623 Useful to control at which point of the filter chain subtitles are rendered
7624 when hardcoding subtitles onto a movie.
7627 .B \-noencodedups
7628 Do not attempt to encode duplicate frames in duplicate; always output
7629 zero-byte frames to indicate duplicates.
7630 Zero-byte frames will be written anyway unless a filter or encoder
7631 capable of doing duplicate encoding is loaded.
7632 Currently the only such filter is harddup.
7635 .B \-noodml (\-of avi only)
7636 Do not write OpenDML index for AVI files >1GB.
7639 .B \-keep\-pts
7640 Send the original presentation timestamp (PTS) down the filter and encoder
7641 chain.
7642 This may cause incorrect output ("badly interleaved") if the original PTS
7643 are wrong or the framerate is changed, but can be necessary for certain
7644 filters (such as ASS).
7647 .B \-noskip
7648 Do not skip frames.
7651 .B \-o <filename>
7652 Outputs to the given filename.
7654 If you want a default output filename, you can put this option in the
7655 MEncoder config file.
7658 .B \-oac <codec name>
7659 Encode with the given audio codec (no default set).
7661 .I NOTE:
7662 Use \-oac help to get a list of available audio codecs.
7663 .sp 1
7664 .I EXAMPLE:
7665 .PD 0
7666 .RSs
7667 .IPs "\-oac copy"
7668 no encoding, just streamcopy
7669 .IPs "\-oac pcm"
7670 Encode to uncompressed PCM.
7671 .IPs "\-oac mp3lame"
7672 Encode to MP3 (using LAME).
7673 .IPs "\-oac lavc"
7674 Encode with a libavcodec codec.
7676 .PD 1
7679 .B \-of <format> (BETA CODE!)
7680 Encode to the specified container format (default: AVI).
7682 .I NOTE:
7683 Use \-of help to get a list of available container formats.
7684 .sp 1
7685 .I EXAMPLE:
7686 .PD 0
7687 .RSs
7688 .IPs "\-of avi"
7689 Encode to AVI.
7690 .IPs "\-of mpeg"
7691 Encode to MPEG (also see \-mpegopts).
7692 .IPs "\-of lavf"
7693 Encode with libavformat muxers (also see \-lavfopts).
7694 .IPs "\-of rawvideo"
7695 raw video stream (no muxing \- one video stream only)
7696 .IPs "\-of rawaudio"
7697 raw audio stream (no muxing \- one audio stream only)
7699 .PD 1
7702 .B \-ofps <fps>
7703 Specify a frames per second (fps) value for the output file,
7704 which can be different from that of the source material.
7705 Must be set for variable fps (ASF, some MOV) and progressive
7706 (30000/1001 fps telecined MPEG) files.
7709 .B \-ovc <codec name>
7710 Encode with the given video codec (no default set).
7712 .I NOTE:
7713 Use \-ovc help to get a list of available video codecs.
7714 .sp 1
7715 .I EXAMPLE:
7716 .PD 0
7717 .RSs
7718 .IPs "\-ovc copy"
7719 no encoding, just streamcopy
7720 .IPs "\-ovc raw"
7721 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7722 .IPs "\-ovc lavc"
7723 Encode with a libavcodec codec.
7725 .PD 1
7728 .B \-passlogfile <filename>
7729 Dump first pass information to <filename> instead of the default divx2pass.log
7730 in two pass encoding mode.
7733 .B \-skiplimit <value>
7734 Specify the maximum number of frames that may be skipped after
7735 encoding one frame (\-noskiplimit for unlimited).
7738 .B \-vobsubout <basename>
7739 Specify the basename for the output .idx and .sub files.
7740 This turns off subtitle rendering in the encoded movie and diverts it to
7741 VOBsub subtitle files.
7744 .B \-vobsuboutid <langid>
7745 Specify the language two letter code for the subtitles.
7746 This overrides what is read from the DVD or the .ifo file.
7749 .B \-vobsuboutindex <index>
7750 Specify the index of the subtitles in the output files (default: 0).
7754 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7755 You can specify codec specific encoding parameters using the following
7756 syntax:
7759 .B \-<codec>opts <option1[=value1]:option2[=value2]:...>
7762 Where <codec> may be: lavc, xvidenc, mp3lame, toolame, twolame,
7763 nuv, xvfw, faac, x264enc, mpeg, lavf.
7766 .SS mp3lame (\-lameopts)
7769 .B "help\ \ \ "
7770 get help
7773 .B vbr=<0\-4>
7774 variable bitrate method
7775 .PD 0
7776 .RSs
7777 .IPs 0
7779 .IPs 1
7781 .IPs 2
7782 rh (default)
7783 .IPs 3
7785 .IPs 4
7786 mtrh
7788 .PD 1
7791 .B "abr\ \ \ \ "
7792 average bitrate
7795 .B "cbr\ \ \ \ "
7796 constant bitrate
7797 Also forces CBR mode encoding on subsequent ABR presets modes.
7800 .B br=<0\-1024>
7801 bitrate in kbps (CBR and ABR only)
7804 .B q=<0\-9>
7805 quality (0 \- highest, 9 \- lowest) (VBR only)
7808 .B aq=<0\-9>
7809 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
7812 .B ratio=<1\-100>
7813 compression ratio
7816 .B vol=<0\-10>
7817 audio input gain
7820 .B mode=<0\-3>
7821 (default: auto)
7822 .PD 0
7823 .RSs
7824 .IPs 0
7825 stereo
7826 .IPs 1
7827 joint-stereo
7828 .IPs 2
7829 dualchannel
7830 .IPs 3
7831 mono
7833 .PD 1
7836 .B padding=<0\-2>
7837 .PD 0
7838 .RSs
7839 .IPs 0
7840 none
7841 .IPs 1
7843 .IPs 2
7844 adjust
7846 .PD 1
7849 .B "fast\ \ \ "
7850 Switch on faster encoding on subsequent VBR presets modes.
7851 This results in slightly lower quality and higher bitrates.
7854 .B highpassfreq=<freq>
7855 Set a highpass filtering frequency in Hz.
7856 Frequencies below the specified one will be cut off.
7857 A value of \-1 will disable filtering, a value of 0
7858 will let LAME choose values automatically.
7861 .B lowpassfreq=<freq>
7862 Set a lowpass filtering frequency in Hz.
7863 Frequencies above the specified one will be cut off.
7864 A value of \-1 will disable filtering, a value of 0
7865 will let LAME choose values automatically.
7868 .B preset=<value>
7869 preset values
7870 .RSs
7871 .IPs "help\ "
7872 Print additional options and information about presets settings.
7873 .IPs medium
7874 VBR encoding, good quality, 150\-180 kbps bitrate range
7875 .IPs standard
7876 VBR encoding, high quality, 170\-210 kbps bitrate range
7877 .IPs extreme
7878 VBR encoding, very high quality, 200\-240 kbps bitrate range
7879 .IPs insane
7880 CBR encoding, highest preset quality, 320 kbps bitrate
7881 .IPs <8\-320>
7882 ABR encoding at average given kbps bitrate
7884 .sp 1
7886 .I EXAMPLES:
7888 .PD 0
7889 .RSs
7890 .IPs fast:preset=standard
7891 suitable for most people and most music types and already quite high quality
7892 .IPs cbr:preset=192
7893 Encode with ABR presets at a 192 kbps forced constant bitrate.
7894 .IPs preset=172
7895 Encode with ABR presets at a 172 kbps average bitrate.
7896 .IPs preset=extreme
7897 for people with extremely good hearing and similar equipment
7899 .PD 1
7902 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
7905 .B br=<32\-384>
7906 In CBR mode this parameter indicates the bitrate in kbps,
7907 when in VBR mode it is the minimum bitrate allowed per frame.
7908 VBR mode will not work with a value below 112.
7911 .B vbr=<\-50\-50> (VBR only)
7912 variability range; if negative the encoder shifts the average bitrate
7913 towards the lower limit, if positive towards the higher.
7914 When set to 0 CBR is used (default).
7917 .B maxvbr=<32\-384> (VBR only)
7918 maximum bitrate allowed per frame, in kbps
7921 .B mode=<stereo  |  jstereo  |  mono  |  dual>
7922 (default: mono for 1-channel audio, stereo otherwise)
7925 .B psy=<\-1\-4>
7926 psychoacoustic model (default: 2)
7929 .B errprot=<0 | 1>
7930 Include error protection.
7933 .B debug=<0\-10>
7934 debug level
7936 .PD 1
7939 .SS faac (\-faacopts)
7942 .B br=<bitrate>
7943 average bitrate in kbps (mutually exclusive with quality)
7946 .B quality=<1\-1000>
7947 quality mode, the higher the better (mutually exclusive with br)
7950 .B object=<1\-4>
7951 object type complexity
7952 .PD 0
7953 .RSs
7954 .IPs 1
7955 MAIN (default)
7956 .IPs 2
7958 .IPs 3
7960 .IPs 4
7961 LTP (extremely slow)
7963 .PD 1
7966 .B mpeg=<2|4>
7967 MPEG version (default: 4)
7970 .B "tns\ \ \ \ "
7971 Enables temporal noise shaping.
7974 .B cutoff=<0\-sampling_rate/2>
7975 cutoff frequency (default: sampling_rate/2)
7978 .B "raw\ \ \ \ "
7979 Stores the bitstream as raw payload with extradata in the container header
7980 (default: 0, corresponds to ADTS).
7981 Do not set this flag if not explicitly required or you will not be able to
7982 remux the audio stream later on.
7984 .PD 1
7987 .SS lavc (\-lavcopts)
7989 Many libavcodec (lavc for short) options are tersely documented.
7990 Read the source for full details.
7992 .I EXAMPLE:
7993 .PD 0
7994 .RSs
7995 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
7997 .PD 1
8000 .B o=<key>=<value>[,<key>=<value>[,...]]
8001 Pass AVOptions to libavcodec encoder.
8002 Note, a patch to make the o= unneeded and pass all unknown options through
8003 the AVOption system is welcome.
8004 A full list of AVOptions can be found in the FFmpeg manual.
8005 Note that some AVOptions may conflict with MEncoder options.
8006 .sp 1
8008 .I EXAMPLE:
8010 .RSs
8011 .PD 0
8012 .IPs o=bt=100k
8013 .PD 1
8017 .B acodec=<value>
8018 audio codec (default: mp2)
8019 .PD 0
8020 .RSs
8021 .IPs "ac3\ \ "
8022 Dolby Digital (AC-3)
8023 .IPs adpcm_*
8024 Adaptive PCM formats \- see the HTML documentation for details.
8025 .IPs "flac\ "
8026 Free Lossless Audio Codec (FLAC)
8027 .IPs "g726\ "
8028 G.726 ADPCM
8029 .IPs libfaac
8030 Advanced Audio Coding (AAC) \- using FAAC
8031 .IPs libmp3lame
8032 MPEG-1 audio layer 3 (MP3) \- using LAME
8033 .IPs "mp2\ \ "
8034 MPEG-1 audio layer 2 (MP2)
8035 .IPs pcm_*
8036 PCM formats \- see the HTML documentation for details.
8037 .IPs roq_dpcm
8038 Id Software RoQ DPCM
8039 .IPs sonic
8040 experimental simple lossy codec
8041 .IPs sonicls
8042 experimental simple lossless codec
8043 .IPs vorbis
8044 Vorbis
8045 .IPs wmav1
8046 Windows Media Audio v1
8047 .IPs wmav2
8048 Windows Media Audio v2
8050 .PD 1
8053 .B abitrate=<value>
8054 audio bitrate in kbps (default: 224)
8057 .B atag=<value>
8058 Use the specified Windows audio format tag (e.g.\& atag=0x55).
8061 .B bit_exact
8062 Use only bit exact algorithms (except (I)DCT).
8063 Additionally bit_exact disables several optimizations and thus
8064 should only be used for regression tests, which need binary
8065 identical files even if the encoder version changes.
8066 This also suppresses the user_data header in MPEG-4 streams.
8067 Do not use this option unless you know exactly what you are doing.
8070 .B threads=<1\-8>
8071 Maximum number of threads to use (default: 1).
8072 May have a slight negative effect on motion estimation.
8076 .B vcodec=<value>
8077 Employ the specified codec (default: mpeg4).
8078 .PD 0
8079 .RSs
8080 .IPs "asv1\ "
8081 ASUS Video v1
8082 .IPs "asv2\ "
8083 ASUS Video v2
8084 .IPs dvvideo
8085 Sony Digital Video
8086 .IPs "ffv1\ "
8087 FFmpeg's lossless video codec
8088 .IPs ffvhuff
8089 nonstandard 20% smaller HuffYUV using YV12
8090 .IPs "flv\ \ "
8091 Sorenson H.263 used in Flash Video
8092 .IPs "h261\ "
8093 H.261
8094 .IPs "h263\ "
8095 H.263
8096 .IPs h263p
8097 H.263+
8098 .IPs huffyuv
8099 HuffYUV
8100 .IPs libtheora
8101 Theora
8102 .IPs libx264
8103 x264 H.264/AVC MPEG-4 Part 10
8104 .IPs libxvid
8105 Xvid MPEG-4 Part 2 (ASP)
8106 .IPs ljpeg
8107 Lossless JPEG
8108 .IPs mjpeg
8109 Motion JPEG
8110 .IPs mpeg1video
8111 MPEG-1 video
8112 .IPs mpeg2video
8113 MPEG-2 video
8114 .IPs mpeg4
8115 MPEG-4 (DivX 4/5)
8116 .IPs msmpeg4
8117 DivX 3
8118 .IPs msmpeg4v2
8119 MS MPEG4v2
8120 .IPs roqvideo
8121 ID Software RoQ Video
8122 .IPs "rv10\ "
8123 an old RealVideo codec
8124 .IPs "snow (also see: vstrict)"
8125 FFmpeg's experimental wavelet-based codec
8126 .IPs "svq1\ "
8127 Apple Sorenson Video 1
8128 .IPs "wmv1\ "
8129 Windows Media Video, version 1 (AKA WMV7)
8130 .IPs "wmv2\ "
8131 Windows Media Video, version 2 (AKA WMV8)
8133 .PD 1
8136 .B vqmin=<1\-31>
8137 minimum quantizer
8138 .RSs
8139 .IPs 1
8140 Not recommended (much larger file, little quality difference and weird side
8141 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
8142 resulting in lower quality and some decoders will not be able to decode it).
8143 .IPs 2
8144 Recommended for normal mpeg4/\:mpeg1video encoding (default).
8145 .IPs 3
8146 Recommended for h263(p)/\:msmpeg4.
8147 The reason for preferring 3 over 2 is that 2 could lead to overflows.
8148 (This will be fixed for h263(p) by changing the quantizer per MB in
8149 the future, msmpeg4 cannot be fixed as it does not support that.)
8153 .B lmin=<0.01\-255.0>
8154 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
8155 Lavc will rarely use quantizers below the value of lmin.
8156 Lowering lmin will make lavc more likely to choose lower quantizers for
8157 some frames, but not lower than the value of vqmin.
8158 Likewise, raising lmin will make lavc less likely to choose low
8159 quantizers, even if vqmin would have allowed them.
8160 You probably want to set lmin approximately equal to vqmin.
8161 When adaptive quantization is in use, changing lmin/lmax may have less
8162 of an effect; see mblmin/mblmax.
8166 .B lmax=<0.01\-255.0>
8167 maximum Lagrange multiplier for ratecontrol (default: 31.0)
8171 .B mblmin=<0.01\-255.0>
8172 Minimum macroblock-level Lagrange multiplier for ratecontrol
8173 (default:2.0).
8174 This parameter affects adaptive quantization options like qprd,
8175 lumi_mask, etc..
8179 .B mblmax=<0.01\-255.0>
8180 Maximum macroblock-level Lagrange multiplier for ratecontrol
8181 (default: 31.0).
8185 .B vqscale=<0\-31>
8186 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
8187 A lower value means better quality but larger files (default: \-1).
8188 In case of snow codec, value 0 means lossless encoding.
8189 Since the other codecs do not support this, vqscale=0 will have an undefined
8190 effect.
8191 1 is not recommended (see vqmin for details).
8194 .B vqmax=<1\-31>
8195 Maximum quantizer, 10\-31 should be a sane range (default: 31).
8198 .B mbqmin=<1\-31>
8199 obsolete, use vqmin
8202 .B mbqmax=<1\-31>
8203 obsolete, use vqmax
8206 .B vqdiff=<1\-31>
8207 maximum quantizer difference between consecutive I- or P-frames
8208 (default: 3)
8211 .B vmax_b_frames=<0\-4>
8212 maximum number of B-frames between non-B-frames:
8213 .PD 0
8214 .RSs
8215 .IPs 0
8216 no B-frames (default)
8217 .IPs 0\-2
8218 sane range for MPEG-4
8220 .PD 1
8223 .B vme=<0\-5>
8224 motion estimation method.
8225 Available methods are:
8226 .PD 0
8227 .RSs
8228 .IPs 0
8229 none (very low quality)
8230 .IPs 1
8231 full (slow, currently unmaintained and disabled)
8232 .IPs 2
8233 log (low quality, currently unmaintained and disabled)
8234 .IPs 3
8235 phods (low quality, currently unmaintained and disabled)
8236 .IPs 4
8237 EPZS: size=1 diamond, size can be adjusted with the *dia options
8238 (default)
8239 .IPs 5
8240 X1 (experimental, currently aliased to EPZS)
8241 .IPs 8
8242 iter (iterative overlapped block, only used in snow)
8244 .PD 1
8245 .sp 1
8248 .I NOTE:
8249 0\-3 currently ignores the amount of bits spent,
8250 so quality may be low.
8254 .B me_range=<0\-9999>
8255 motion estimation search range (default: 0 (unlimited))
8258 .B mbd=<0\-2> (also see *cmp, qpel)
8259 Macroblock decision algorithm (high quality mode), encode each macro
8260 block in all modes and choose the best.
8261 This is slow but results in better quality and file size.
8262 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
8263 macroblocks (the mbcmp value is still used in other places though, in particular
8264 the motion search algorithms).
8265 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
8266 however, a slower but better half-pel motion search will be used,
8267 regardless of what mbd is set to.
8268 If qpel is set, quarter-pel motion search will be used regardless.
8269 .PD 0
8270 .RSs
8271 .IPs 0
8272 Use comparison function given by mbcmp (default).
8273 .IPs 1
8274 Select the MB mode which needs the fewest bits (=vhq).
8275 .IPs 2
8276 Select the MB mode which has the best rate distortion.
8278 .PD 1
8281 .B "vhq\ \ \ \ "
8282 Same as mbd=1, kept for compatibility reasons.
8285 .B "v4mv\ \ \ "
8286 Allow 4 motion vectors per macroblock (slightly better quality).
8287 Works better if used with mbd>0.
8290 .B "obmc\ \ \ "
8291 overlapped block motion compensation (H.263+)
8294 .B "loop\ \ \ "
8295 loop filter (H.263+)
8296 note, this is broken
8299 .B inter_threshold <\-1000\-1000>
8300 Does absolutely nothing at the moment.
8303 .B keyint=<0\-300>
8304 maximum interval between keyframes in frames (default: 250 or one
8305 keyframe every ten seconds in a 25fps movie.
8306 This is the recommended default for MPEG-4).
8307 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
8308 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
8309 keyframes need more space than other frames, so larger numbers here mean
8310 slightly smaller files but less precise seeking.
8311 0 is equivalent to 1, which makes every frame a keyframe.
8312 Values >300 are not recommended as the quality might be bad depending upon
8313 decoder, encoder and luck.
8314 It is common for MPEG-1/2 to use values <=30.
8317 .B sc_threshold=<\-1000000000\-1000000000>
8318 Threshold for scene change detection.
8319 A keyframe is inserted by libavcodec when it detects a scene change.
8320 You can specify the sensitivity of the detection with this option.
8321 \-1000000000 means there is a scene change detected at every frame,
8322 1000000000 means no scene changes are detected (default: 0).
8325 .B sc_factor=<any positive integer>
8326 Causes frames with higher quantizers to be more likely to trigger a
8327 scene change detection and make libavcodec use an I-frame (default: 1).
8328 1\-16 is a sane range.
8329 Values between 2 and 6 may yield increasing PSNR (up to approximately
8330 0.04 dB) and better placement of I-frames in high-motion scenes.
8331 Higher values than 6 may give very slightly better PSNR (approximately
8332 0.01 dB more than sc_factor=6), but noticably worse visual quality.
8335 .B vb_strategy=<0\-2> (pass one only)
8336 strategy to choose between I/P/B-frames:
8337 .PD 0
8338 .RSs
8339 .IPs 0
8340 Always use the maximum number of B-frames (default).
8341 .IPs 1
8342 Avoid B-frames in high motion scenes.
8343 See the b_sensitivity option to tune this strategy.
8344 .IPs 2
8345 Places B-frames more or less optimally to yield maximum quality (slower).
8346 You may want to reduce the speed impact of this option by tuning the
8347 option brd_scale.
8349 .PD 1
8352 .B b_sensitivity=<any integer greater than 0>
8353 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
8354 B-frames (default: 40).
8355 Lower sensitivities will result in more B-frames.
8356 Using more B-frames usually improves PSNR, but too many B-frames can
8357 hurt quality in high-motion scenes.
8358 Unless there is an extremely high amount of motion, b_sensitivity can
8359 safely be lowered below the default; 10 is a reasonable value in most
8360 cases.
8363 .B brd_scale=<0\-10>
8364 Downscales frames for dynamic B-frame decision (default: 0).
8365 Each time brd_scale is increased by one, the frame dimensions are
8366 divided by two, which improves speed by a factor of four.
8367 Both dimensions of the fully downscaled frame must be even numbers, so
8368 brd_scale=1 requires the original dimensions to be multiples of four,
8369 brd_scale=2 requires multiples of eight, etc.
8370 In other words, the dimensions of the original frame must both be
8371 divisible by 2^(brd_scale+1) with no remainder.
8374 .B bidir_refine=<0\-4>
8375 Refine the two motion vectors used in bidirectional macroblocks,
8376 rather than re-using vectors from the forward and backward searches.
8377 This option has no effect without B-frames.
8378 .PD 0
8379 .RSs
8380 .IPs 0
8381 Disabled (default).
8382 .IPs 1\-4
8383 Use a wider search (larger values are slower).
8385 .PD 1
8388 .B vpass=<1\-3>
8389 Activates internal two (or more) pass mode, only specify if you wish to
8390 use two (or more) pass encoding.
8391 .PD 0
8392 .RSs
8393 .IPs 1
8394 first pass (also see turbo)
8395 .IPs 2
8396 second pass
8397 .IPs 3
8398 Nth pass (second and subsequent passes of N-pass encoding)
8401 Here is how it works, and how to use it:
8403 The first pass (vpass=1) writes the statistics file.
8404 You might want to deactivate some CPU-hungry options, like "turbo"
8405 mode does.
8407 In two pass mode, the second pass (vpass=2) reads the statistics file and
8408 bases ratecontrol decisions on it.
8410 In N-pass mode, the second pass (vpass=3, that is not a typo)
8411 does both: It first reads the statistics, then overwrites them.
8412 You might want to backup divx2pass.log before doing this if there is
8413 any possibility that you will have to cancel MEncoder.
8414 You can use all encoding options, except very CPU-hungry options like "qns".
8416 You can run this same pass over and over to refine the encode.
8417 Each subsequent pass will use the statistics from the previous pass to improve.
8418 The final pass can include any CPU-hungry encoding options.
8420 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
8422 If you want a 3 or more pass encode, use vpass=1 for the first pass
8423 and then vpass=3 and then vpass=3 again and again until you are
8424 satisfied with the encode.
8426 .PD 1
8427 .sp 1
8429 huffyuv:
8431 .PD 0
8432 .RSs
8433 .IPs "pass 1"
8434 Saves statistics.
8435 .IPs "pass 2"
8436 Encodes with an optimal Huffman table based upon statistics
8437 from the first pass.
8439 .PD 1
8442 .B turbo (two pass only)
8443 Dramatically speeds up pass one using faster algorithms and disabling
8444 CPU-intensive options.
8445 This will probably reduce global PSNR a little bit (around 0.01dB) and
8446 change individual frame type and PSNR a little bit more (up to 0.03dB).
8449 .B aspect=<x/y>
8450 Store movie aspect internally, just like with MPEG files.
8451 Much nicer than rescaling, because quality is not decreased.
8452 Only MPlayer will play these files correctly, other players will display
8453 them with wrong aspect.
8454 The aspect parameter can be given as a ratio or a floating point number.
8455 .sp 1
8457 .I EXAMPLE:
8459 .RSs
8460 .PD 0
8461 .IPs "aspect=16/9 or aspect=1.78"
8462 .PD 1
8466 .B autoaspect
8467 Same as the aspect option, but automatically computes aspect, taking
8468 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
8469 filter chain.
8470 Does not incur a performance penalty, so you can safely leave it
8471 always on.
8474 .B vbitrate=<value>
8475 Specify bitrate (default: 800).
8477 .I WARNING:
8478 1kbit = 1000 bits
8479 .PD 0
8480 .RSs
8481 .IPs 4\-16000
8482 (in kbit)
8483 .IPs 16001\-24000000
8484 (in bit)
8486 .PD 1
8489 .B vratetol=<value>
8490 approximated file size tolerance in kbit.
8491 1000\-100000 is a sane range.
8492 (warning: 1kbit = 1000 bits)
8493 (default: 8000)
8495 .I NOTE:
8496 vratetol should not be too large during the second pass or there might
8497 be problems if vrc_(min|max)rate is used.
8500 .B vrc_maxrate=<value>
8501 maximum bitrate in kbit/\:sec
8502 (default: 0, unlimited)
8505 .B vrc_minrate=<value>
8506 minimum bitrate in kbit/\:sec
8507 (default: 0, unlimited)
8510 .B vrc_buf_size=<value>
8511 buffer size in kbit
8512 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
8513 917 for SVCD and 1835 for DVD.
8516 .B vrc_buf_aggressivity
8517 currently useless
8520 .B vrc_strategy
8521 Ratecontrol method.
8522 Note that some of the ratecontrol-affecting options will have no effect
8523 if vrc_strategy is not set to 0.
8524 .PD 0
8525 .RSs
8526 .IPs 0
8527 Use internal lavc ratecontrol (default).
8528 .IPs 1
8529 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
8530 with support for Xvid 1.1 or higher).
8532 .PD 1
8535 .B vb_qfactor=<\-31.0\-31.0>
8536 quantizer factor between B- and non-B-frames (default: 1.25)
8539 .B vi_qfactor=<\-31.0\-31.0>
8540 quantizer factor between I- and non-I-frames (default: 0.8)
8543 .B vb_qoffset=<\-31.0\-31.0>
8544 quantizer offset between B- and non-B-frames (default: 1.25)
8547 .B vi_qoffset=<\-31.0\-31.0>
8548 (default: 0.0)
8550 if v{b|i}_qfactor > 0
8552 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8554 else
8556 do normal ratecontrol (do not lock to next P-frame quantizer) and
8557 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8559 .I HINT:
8560 To do constant quantizer encoding with different quantizers for
8561 I/P- and B-frames you can use:
8562 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8565 .B vqblur=<0.0\-1.0> (pass one)
8566 Quantizer blur (default: 0.5), larger values will average the
8567 quantizer more over time (slower change).
8568 .PD 0
8569 .RSs
8570 .IPs 0.0
8571 Quantizer blur disabled.
8572 .IPs 1.0
8573 Average the quantizer over all previous frames.
8575 .PD 1
8578 .B vqblur=<0.0\-99.0> (pass two)
8579 Quantizer gaussian blur (default: 0.5), larger values will average
8580 the quantizer more over time (slower change).
8583 .B vqcomp=<0.0\-1.0>
8584 Quantizer compression, vrc_eq depends upon this (default: 0.5).
8585 .I NOTE:
8586 Perceptual quality will be optimal somewhere in between the range's extremes.
8589 .B vrc_eq=<equation>
8590 main ratecontrol equation
8592 .RSs
8593 .IPs 1+(tex/\:avgTex-1)*qComp
8594 approximately the equation of the old ratecontrol code
8595 .IPs tex^qComp
8596 with qcomp 0.5 or something like that (default)
8600 infix operators:
8602 .RSs
8603 .IPs +,\-,*,/,^
8607 variables:
8609 .RSs
8610 .IPs "tex\ \ "
8611 texture complexity
8612 .IPs iTex,pTex
8613 intra, non-intra texture complexity
8614 .IPs avgTex
8615 average texture complexity
8616 .IPs avgIITex
8617 average intra texture complexity in I-frames
8618 .IPs avgPITex
8619 average intra texture complexity in P-frames
8620 .IPs avgPPTex
8621 average non-intra texture complexity in P-frames
8622 .IPs avgBPTex
8623 average non-intra texture complexity in B-frames
8624 .IPs "mv\ \ \ "
8625 bits used for motion vectors
8626 .IPs fCode
8627 maximum length of motion vector in log2 scale
8628 .IPs iCount
8629 number of intra macroblocks / number of macroblocks
8630 .IPs "var\ \ "
8631 spatial complexity
8632 .IPs mcVar
8633 temporal complexity
8634 .IPs qComp
8635 qcomp from the command line
8636 .IPs "isI, isP, isB"
8637 Is 1 if picture type is I/P/B else 0.
8638 .IPs "Pi,E\ "
8639 See your favorite math book.
8643 functions:
8645 .RSs
8646 .IPs max(a,b),min(a,b)
8647 maximum / minimum
8648 .IPs gt(a,b)
8649 is 1 if a>b, 0 otherwise
8650 .IPs lt(a,b)
8651 is 1 if a<b, 0 otherwise
8652 .IPs eq(a,b)
8653 is 1 if a==b, 0 otherwise
8654 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8658 .B vrc_override=<options>
8659 User specified quality for specific parts (ending, credits, ...).
8660 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8661 <end-frame>, <quality>[/...]]:
8662 .PD 0
8663 .RSs
8664 .IPs "quality (2\-31)"
8665 quantizer
8666 .IPs "quality (\-500\-0)"
8667 quality correction in %
8669 .PD 1
8672 .B vrc_init_cplx=<0\-1000>
8673 initial complexity (pass 1)
8676 .B vrc_init_occupancy=<0.0\-1.0>
8677 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8680 .B vqsquish=<0|1>
8681 Specify how to keep the quantizer between qmin and qmax.
8682 .PD 0
8683 .RSs
8684 .IPs 0
8685 Use clipping.
8686 .IPs 1
8687 Use a nice differentiable function (default).
8689 .PD 1
8692 .B vlelim=<\-1000\-1000>
8693 Sets single coefficient elimination threshold for luminance.
8694 Negative values will also consider the DC coefficient (should be at least \-4
8695 or lower for encoding at quant=1):
8696 .PD 0
8697 .RSs
8698 .IPs 0
8699 disabled (default)
8700 .IPs \-4
8701 JVT recommendation
8703 .PD 1
8706 .B vcelim=<\-1000\-1000>
8707 Sets single coefficient elimination threshold for chrominance.
8708 Negative values will also consider the DC coefficient (should be at least \-4
8709 or lower for encoding at quant=1):
8710 .PD 0
8711 .RSs
8712 .IPs 0
8713 disabled (default)
8714 .IPs 7
8715 JVT recommendation
8717 .PD 1
8720 .B vstrict=<\-2|\-1|0|1>
8721 strict standard compliance
8722 .PD 0
8723 .RSs
8724 .IPs 0
8725 disabled
8726 .IPs 1
8727 Only recommended if you want to feed the output into the
8728 MPEG-4 reference decoder.
8729 .IPs \-1
8730 Allow libavcodec specific extensions (default).
8731 .IPs \-2
8732 Enables experimental codecs and features which may not be playable
8733 with future MPlayer versions (snow).
8735 .PD 1
8738 .B "vdpart\ "
8739 Data partitioning.
8740 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8741 unreliable channels (e.g.\& streaming over the internet).
8742 Each video packet will be encoded in 3 separate partitions:
8743 .PD 0
8744 .RSs
8745 .IPs "1. MVs"
8746 movement
8747 .IPs "2. DC coefficients"
8748 low res picture
8749 .IPs "3. AC coefficients"
8750 details
8752 .PD 1
8754 MV & DC are most important, losing them looks far worse than losing
8755 the AC and the 1. & 2. partition.
8756 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8757 will hit the AC partition much more often than the MV & DC partitions.
8758 Thus, the picture will look better with partitioning than without,
8759 as without partitioning an error will trash AC/\:DC/\:MV equally.
8763 .B vpsize=<0\-10000> (also see vdpart)
8764 Video packet size, improves error-resistance.
8765 .PD 0
8766 .RSs
8767 .IPs "0\ \ \ \ "
8768 disabled (default)
8769 .IPs 100\-1000
8770 good choice
8772 .PD 1
8775 .B "ss\ \ \ \ \ "
8776 slice structured mode for H.263+
8779 .B "gray\ \ \ "
8780 grayscale only encoding (faster)
8783 .B vfdct=<0\-10>
8784 DCT algorithm
8785 .PD 0
8786 .RSs
8787 .IPs 0
8788 Automatically select a good one (default).
8789 .IPs 1
8790 fast integer
8791 .IPs 2
8792 accurate integer
8793 .IPs 3
8795 .IPs 4
8796 mlib
8797 .IPs 5
8798 AltiVec
8799 .IPs 6
8800 floating point AAN
8802 .PD 1
8805 .B idct=<0\-99>
8806 IDCT algorithm
8808 .I NOTE:
8809 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
8810 .PD 0
8811 .RSs
8812 .IPs 0
8813 Automatically select a good one (default).
8814 .IPs 1
8815 JPEG reference integer
8816 .IPs 2
8817 simple
8818 .IPs 3
8819 simplemmx
8820 .IPs 4
8821 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
8822 .IPs 5
8824 .IPs 6
8825 mlib
8826 .IPs 7
8828 .IPs 8
8829 AltiVec
8830 .IPs 9
8832 .IPs 10
8833 simplearm
8834 .IPs 11
8835 H.264
8836 .IPs 12
8838 .IPs 13
8840 .IPs 14
8841 xvidmmx
8842 .IPs 15
8843 CAVS
8844 .IPs 16
8845 simplearmv5te
8846 .IPs 17
8847 simplearmv6
8849 .PD 1
8852 .B lumi_mask=<0.0\-1.0>
8853 Luminance masking is a 'psychosensory' setting that is supposed to
8854 make use of the fact that the human eye tends to notice fewer details
8855 in very bright parts of the picture.
8856 Luminance masking compresses bright areas stronger than medium ones,
8857 so it will save bits that can be spent again on other frames, raising
8858 overall subjective quality, while possibly reducing PSNR.
8860 .I WARNING:
8861 Be careful, overly large values can cause disastrous things.
8863 .I WARNING:
8864 Large values might look good on some monitors but may look horrible
8865 on other monitors.
8866 .PD 0
8867 .RSs
8868 .IPs "0.0\ \ "
8869 disabled (default)
8870 .IPs 0.0\-0.3
8871 sane range
8873 .PD 1
8876 .B dark_mask=<0.0\-1.0>
8877 Darkness masking is a 'psychosensory' setting that is supposed to
8878 make use of the fact that the human eye tends to notice fewer details
8879 in very dark parts of the picture.
8880 Darkness masking compresses dark areas stronger than medium ones,
8881 so it will save bits that can be spent again on other frames, raising
8882 overall subjective quality, while possibly reducing PSNR.
8884 .I WARNING:
8885 Be careful, overly large values can cause disastrous things.
8887 .I WARNING:
8888 Large values might look good on some monitors but may look horrible
8889 on other monitors / TV / TFT.
8890 .PD 0
8891 .RSs
8892 .IPs "0.0\ \ "
8893 disabled (default)
8894 .IPs 0.0\-0.3
8895 sane range
8897 .PD 1
8900 .B tcplx_mask=<0.0\-1.0>
8901 Temporal complexity masking (default: 0.0 (disabled)).
8902 Imagine a scene with a bird flying across the whole scene; tcplx_mask
8903 will raise the quantizers of the bird's macroblocks (thus decreasing their
8904 quality), as the human eye usually does not have time to see all the bird's
8905 details.
8906 Be warned that if the masked object stops (e.g.\& the bird lands) it is
8907 likely to look horrible for a short period of time, until the encoder
8908 figures out that the object is not moving and needs refined blocks.
8909 The saved bits will be spent on other parts of the video, which may increase
8910 subjective quality, provided that tcplx_mask is carefully chosen.
8913 .B scplx_mask=<0.0\-1.0>
8914 Spatial complexity masking.
8915 Larger values help against blockiness, if no deblocking filter is used for
8916 decoding, which is maybe not a good idea.
8918 Imagine a scene with grass (which usually has great spatial complexity),
8919 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
8920 macroblocks, thus decreasing its quality, in order to spend more bits on
8921 the sky and the house.
8923 .I HINT:
8924 Crop any black borders completely as they will reduce the quality
8925 of the macroblocks (also applies without scplx_mask).
8926 .PD 0
8927 .RSs
8928 .IPs "0.0\ \ "
8929 disabled (default)
8930 .IPs 0.0\-0.5
8931 sane range
8933 .PD 1
8934 .sp 1
8936 .I NOTE:
8937 This setting does not have the same effect as using a custom matrix that
8938 would compress high frequencies harder, as scplx_mask will reduce the
8939 quality of P blocks even if only DC is changing.
8940 The result of scplx_mask will probably not look as good.
8944 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
8945 Reduces the quality of inter blocks.
8946 This is equivalent to increasing the quality of intra blocks, because the
8947 same average bitrate will be distributed by the rate controller to the
8948 whole video sequence (default: 0.0 (disabled)).
8949 p_mask=1.0 doubles the bits allocated to each intra block.
8952 .B border_mask=<0.0\-1.0>
8953 border-processing for MPEG-style encoders.
8954 Border processing increases the quantizer for macroblocks which are less
8955 than 1/5th of the frame width/height away from the frame border,
8956 since they are often visually less important.
8959 .B "naq\ \ \ \ "
8960 Normalize adaptive quantization (experimental).
8961 When using adaptive quantization (*_mask), the average per-MB quantizer may no
8962 longer match the requested frame-level quantizer.
8963 Naq will attempt to adjust the per-MB quantizers to maintain the proper
8964 average.
8967 .B "ildct\ \ "
8968 Use interlaced DCT.
8971 .B "ilme\ \ \ "
8972 Use interlaced motion estimation (mutually exclusive with qpel).
8975 .B "alt\ \ \ \ "
8976 Use alternative scantable.
8979 .B "top=<\-1\-1>\ \ \ "
8980 .PD 0
8981 .RSs
8982 .IPs \-1
8983 automatic
8984 .IPs 0
8985 bottom field first
8986 .IPs 1
8987 top field first
8989 .PD 1
8992 .B format=<value>
8993 .PD 0
8994 .RSs
8995 .IPs "YV12\ "
8996 default
8997 .IPs "444P\ "
8998 for ffv1
8999 .IPs "422P\ "
9000 for HuffYUV, lossless JPEG, dv and ffv1
9001 .IPs "411P\ "
9002 for lossless JPEG, dv and ffv1
9003 .IPs "YVU9\ "
9004 for lossless JPEG, ffv1 and svq1
9005 .IPs "BGR32"
9006 for lossless JPEG and ffv1
9008 .PD 1
9011 .B "pred\ \ \ "
9012 (for HuffYUV)
9013 .PD 0
9014 .RSs
9015 .IPs 0
9016 left prediction
9017 .IPs 1
9018 plane/\:gradient prediction
9019 .IPs 2
9020 median prediction
9022 .PD 1
9025 .B "pred\ \ \ "
9026 (for lossless JPEG)
9027 .PD 0
9028 .RSs
9029 .IPs 0
9030 left prediction
9031 .IPs 1
9032 top prediction
9033 .IPs 2
9034 topleft prediction
9035 .IPs 3
9036 plane/\:gradient prediction
9037 .IPs 6
9038 mean prediction
9040 .PD 1
9043 .B "coder\ \ "
9044 (for ffv1)
9045 .PD 0
9046 .RSs
9047 .IPs 0
9048 vlc coding (Golomb-Rice)
9049 .IPs 1
9050 arithmetic coding (CABAC)
9052 .PD 1
9055 .B context
9056 (for ffv1)
9057 .PD 0
9058 .RSs
9059 .IPs 0
9060 small context model
9061 .IPs 1
9062 large context model
9064 .PD 1
9065 .sp 1
9067 (for ffvhuff)
9069 .PD 0
9070 .RSs
9071 .IPs 0
9072 predetermined Huffman tables (builtin or two pass)
9073 .IPs 1
9074 adaptive Huffman tables
9076 .PD 1
9079 .B "qpel\ \ \ "
9080 Use quarter pel motion compensation (mutually exclusive with ilme).
9082 .I HINT:
9083 This seems only useful for high bitrate encodings.
9086 .B mbcmp=<0\-2000>
9087 Sets the comparison function for the macroblock decision, has only
9088 an effect if mbd=0.
9089 This is also used for some motion search functions, in which case
9090 it has an effect regardless of mbd setting.
9091 .PD 0
9092 .RSs
9093 .IPs "0 (SAD)"
9094 sum of absolute differences, fast (default)
9095 .IPs "1 (SSE)"
9096 sum of squared errors
9097 .IPs "2 (SATD)"
9098 sum of absolute Hadamard transformed differences
9099 .IPs "3 (DCT)"
9100 sum of absolute DCT transformed differences
9101 .IPs "4 (PSNR)"
9102 sum of squared quantization errors (avoid, low quality)
9103 .IPs "5 (BIT)"
9104 number of bits needed for the block
9105 .IPs "6 (RD)"
9106 rate distortion optimal, slow
9107 .IPs "7 (ZERO)"
9109 .IPs "8 (VSAD)"
9110 sum of absolute vertical differences
9111 .IPs "9 (VSSE)"
9112 sum of squared vertical differences
9113 .IPs "10 (NSSE)"
9114 noise preserving sum of squared differences
9115 .IPs "11 (W53)"
9116 5/3 wavelet, only used in snow
9117 .IPs "12 (W97)"
9118 9/7 wavelet, only used in snow
9119 .IPs "+256\ "
9120 Also use chroma, currently does not work (correctly) with B-frames.
9122 .PD 1
9125 .B ildctcmp=<0\-2000>
9126 Sets the comparison function for interlaced DCT decision
9127 (see mbcmp for available comparison functions).
9130 .B precmp=<0\-2000>
9131 Sets the comparison function for motion estimation pre pass
9132 (see mbcmp for available comparison functions) (default: 0).
9135 .B cmp=<0\-2000>
9136 Sets the comparison function for full pel motion estimation
9137 (see mbcmp for available comparison functions) (default: 0).
9140 .B subcmp=<0\-2000>
9141 Sets the comparison function for sub pel motion estimation
9142 (see mbcmp for available comparison functions) (default: 0).
9145 .B skipcmp=<0\-2000>
9146 FIXME: Document this.
9149 .B nssew=<0\-1000000>
9150 This setting controls NSSE weight, where larger weights will result in
9151 more noise.
9152 0 NSSE is identical to SSE
9153 You may find this useful if you prefer to keep some noise in your encoded
9154 video rather than filtering it away before encoding (default: 8).
9157 .B predia=<\-99\-6>
9158 diamond type and size for motion estimation pre-pass
9161 .B dia=<\-99\-6>
9162 Diamond type & size for motion estimation.
9163 Motion search is an iterative process.
9164 Using a small diamond does not limit the search to finding only small
9165 motion vectors.
9166 It is just somewhat more likely to stop before finding the very best motion
9167 vector, especially when noise is involved.
9168 Bigger diamonds allow a wider search for the best motion vector, thus are
9169 slower but result in better quality.
9171 Big normal diamonds are better quality than shape-adaptive diamonds.
9173 Shape-adaptive diamonds are a good tradeoff between speed and quality.
9175 .I NOTE:
9176 The sizes of the normal diamonds and shape adaptive ones do not have
9177 the same meaning.
9178 .RSs
9179 .IPs \-3
9180 shape adaptive (fast) diamond with size 3
9181 .IPs \-2
9182 shape adaptive (fast) diamond with size 2
9183 .IPs \-1
9184 uneven multi-hexagon search (slow)
9185 .IPs  1
9186 normal size=1 diamond (default) =EPZS type diamond
9189       0
9190      000
9191       0
9193 .IPs 2
9194 normal size=2 diamond
9197       0
9198      000
9199     00000
9200      000
9201       0
9206 .B "trell\ \ "
9207 Trellis searched quantization.
9208 This will find the optimal encoding for each 8x8 block.
9209 Trellis searched quantization is quite simply an optimal quantization in
9210 the PSNR versus bitrate sense (Assuming that there would be no rounding
9211 errors introduced by the IDCT, which is obviously not the case.).
9212 It simply finds a block for the minimum of error and lambda*bits.
9213 .PD 0
9214 .RSs
9215 .IPs lambda
9216 quantization parameter (QP) dependent constant
9217 .IPs "bits\ "
9218 amount of bits needed to encode the block
9219 .IPs error
9220 sum of squared errors of the quantization
9222 .PD 1
9225 .B "cbp\ \ \ \ "
9226 Rate distorted optimal coded block pattern.
9227 Will select the coded block pattern which minimizes distortion + lambda*rate.
9228 This can only be used together with trellis quantization.
9231 .B "mv0\ \ \ \ "
9232 Try to encode each MB with MV=<0,0> and choose the better one.
9233 This has no effect if mbd=0.
9236 .B mv0_threshold=<any non-negative integer>
9237 When surrounding motion vectors are <0,0> and the motion estimation
9238 score of the current block is less than mv0_threshold, <0,0> is used for
9239 the motion vector and further motion estimation is skipped (default:
9240 256).
9241 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
9242 possibly make the encoded video look slightly better; raising
9243 mv0_threshold past 320 results in diminished PSNR and visual quality.
9244 Higher values speed up encoding very slightly (usually less than 1%,
9245 depending on the other options used).
9247 .I NOTE:
9248 This option does not require mv0 to be enabled.
9251 .B qprd (mbd=2 only)
9252 rate distorted optimal quantization parameter (QP) for the given
9253 lambda of each macroblock
9256 .B last_pred=<0\-99>
9257 amount of motion predictors from the previous frame
9258 .PD 0
9259 .RSs
9260 .IPs 0
9261 (default)
9262 .IPs a
9263 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
9264 previous frame.
9266 .PD 1
9269 .B preme=<0\-2>
9270 motion estimation pre-pass
9271 .PD 0
9272 .RSs
9273 .IPs 0
9274 disabled
9275 .IPs 1
9276 only after I-frames (default)
9277 .IPs 2
9278 always
9280 .PD 1
9283 .B subq=<1\-8>
9284 subpel refinement quality (for qpel) (default: 8 (high quality))
9286 .I NOTE:
9287 This has a significant effect on speed.
9290 .B refs=<1\-8>
9291 number of reference frames to consider for motion compensation
9292 (Snow only) (default: 1)
9295 .B "psnr\ \ \ "
9296 print the PSNR (peak signal to noise ratio) for the whole video after encoding
9297 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
9298 Returned values are in dB (decibel), the higher the better.
9301 .B mpeg_quant
9302 Use MPEG quantizers instead of H.263.
9305 .B "aic\ \ \ \ "
9306 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
9307 This will improve quality very slightly (around 0.02 dB PSNR) and slow
9308 down encoding very slightly (about 1%).
9310 .I NOTE:
9311 vqmin should be 8 or larger for H.263+ AIC.
9314 .B "aiv\ \ \ \ "
9315 alternative inter vlc for H.263+
9318 .B "umv\ \ \ \ "
9319 unlimited MVs (H.263+ only)
9320 Allows encoding of arbitrarily long MVs.
9323 .B ibias=<\-256\-256>
9324 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
9325 H.263 style quantizer default: 0)
9327 .I NOTE:
9328 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9329 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9332 .B pbias=<\-256\-256>
9333 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
9334 H.263 style quantizer default: \-64)
9336 .I NOTE:
9337 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9338 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9340 .I HINT:
9341 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
9344 .B nr=<0\-100000>
9345 Noise reduction, 0 means disabled.
9346 0\-600 is a useful range for typical content, but you may want to turn it
9347 up a bit more for very noisy content (default: 0).
9348 Given its small impact on speed, you might want to prefer to use this over
9349 filtering noise away with video filters like denoise3d or hqdn3d.
9352 .B qns=<0\-3>
9353 Quantizer noise shaping.
9354 Rather than choosing quantization to most closely match the source video
9355 in the PSNR sense, it chooses quantization such that noise (usually ringing)
9356 will be masked by similar-frequency content in the image.
9357 Larger values are slower but may not result in better quality.
9358 This can and should be used together with trellis quantization, in which case
9359 the trellis quantization (optimal for constant weight) will be used as
9360 startpoint for the iterative search.
9361 .PD 0
9362 .RSs
9363 .IPs 0
9364 disabled (default)
9365 .IPs 1
9366 Only lower the absolute value of coefficients.
9367 .IPs 2
9368 Only change coefficients before the last non-zero coefficient + 1.
9369 .IPs 3
9370 Try all.
9372 .PD 1
9375 .B inter_matrix=<comma separated matrix>
9376 Use custom inter matrix.
9377 It needs a comma separated string of 64 integers.
9380 .B intra_matrix=<comma separated matrix>
9381 Use custom intra matrix.
9382 It needs a comma separated string of 64 integers.
9385 .B vqmod_amp
9386 experimental quantizer modulation
9389 .B vqmod_freq
9390 experimental quantizer modulation
9393 .B "dc\ \ \ \ \ "
9394 intra DC precision in bits (default: 8).
9395 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
9398 .B cgop (also see sc_threshold)
9399 Close all GOPs.
9400 Currently it only works if scene change detection is disabled
9401 (sc_threshold=1000000000).
9404 .B "gmc\ \ \ \ "
9405 Enable Global Motion Compensation.
9408 .B (no)lowdelay
9409 Sets the low delay flag for MPEG-1/2 (disables B-frames).
9412 .B vglobal=<0\-3>
9413 Control writing global video headers.
9414 .PD 0
9415 .RSs
9416 .IPs 0
9417 Codec decides where to write global headers (default).
9418 .IPs 1
9419 Write global headers only in extradata (needed for .mp4/MOV/NUT).
9420 .IPs 2
9421 Write global headers only in front of keyframes.
9422 .IPs 3
9423 Combine 1 and 2.
9425 .PD 1
9428 .B aglobal=<0\-3>
9429 Same as vglobal for audio headers.
9432 .B level=<value>
9433 Set CodecContext Level.
9434 Use 31 or 41 to play video on a Playstation 3.
9437 .B skip_exp=<0\-1000000>
9438 FIXME: Document this.
9441 .B skip_factor=<0\-1000000>
9442 FIXME: Document this.
9445 .B skip_threshold=<0\-1000000>
9446 FIXME: Document this.
9449 .SS nuv (\-nuvopts)
9451 Nuppel video is based on RTJPEG and LZO.
9452 By default frames are first encoded with RTJPEG and then compressed with LZO,
9453 but it is possible to disable either or both of the two passes.
9454 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
9455 or the default LZO compressed RTJPEG.
9457 .I NOTE:
9458 The nuvrec documentation contains some advice and examples about the
9459 settings to use for the most common TV encodings.
9462 .B c=<0\-20>
9463 chrominance threshold (default: 1)
9466 .B l=<0\-20>
9467 luminance threshold (default: 1)
9470 .B "lzo\ \ \ \ "
9471 Enable LZO compression (default).
9474 .B "nolzo\ \ "
9475 Disable LZO compression.
9478 .B q=<3\-255>
9479 quality level (default: 255)
9482 .B "raw \ \ \ "
9483 Disable RTJPEG encoding.
9486 .B "rtjpeg\ "
9487 Enable RTJPEG encoding (default).
9490 .SS xvidenc (\-xvidencopts)
9492 There are three modes available: constant bitrate (CBR), fixed quantizer and
9493 two pass.
9496 .B pass=<1|2>
9497 Specify the pass in two pass mode.
9500 .B turbo (two pass only)
9501 Dramatically speeds up pass one using faster algorithms and disabling
9502 CPU-intensive options.
9503 This will probably reduce global PSNR a little bit and change individual
9504 frame type and PSNR a little bit more.
9507 .B bitrate=<value> (CBR or two pass mode)
9508 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
9509 if >16000.
9510 If <value> is negative, Xvid will use its absolute value as the target size
9511 (in kBytes) of the video and compute the associated bitrate automagically
9512 (default: 687 kbits/s).
9515 .B fixed_quant=<1\-31>
9516 Switch to fixed quantizer mode and specify the quantizer to be used.
9519 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
9520 User specified quality for specific parts (ending, credits, ...).
9521 Each zone is <start-frame>,<mode>,<value> where <mode> may be
9522 .PD 0
9523 .RSs
9524 .IPs "q"
9525 Constant quantizer override, where value=<2.0\-31.0>
9526 represents the quantizer value.
9527 .IPs "w"
9528 Ratecontrol weight override, where value=<0.01\-2.00>
9529 represents the quality correction in %.
9531 .PD 1
9532 .sp 1
9534 .I EXAMPLE:
9536 .PD 0
9537 .RSs
9538 .IPs zones=90000,q,20
9539 Encodes all frames starting with frame 90000 at constant quantizer 20.
9540 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9541 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9542 up to the end at constant quantizer 20.
9543 Note that the second zone is needed to delimit the first zone, as
9544 without it everything up until frame 89999 would be encoded at 10%
9545 bitrate.
9547 .PD 1
9550 .B me_quality=<0\-6>
9551 This option controls the motion estimation subsystem.
9552 The higher the value, the more precise the estimation should be (default: 6).
9553 The more precise the motion estimation is, the more bits can be saved.
9554 Precision is gained at the expense of CPU time so decrease this setting if
9555 you need realtime encoding.
9558 .B (no)qpel
9559 MPEG-4 uses a half pixel precision for its motion search by default.
9560 The standard proposes a mode where encoders are allowed to use quarter
9561 pixel precision.
9562 This option usually results in a sharper image.
9563 Unfortunately it has a great impact on bitrate and sometimes the
9564 higher bitrate use will prevent it from giving a better image
9565 quality at a fixed bitrate.
9566 It is better to test with and without this option and see whether it
9567 is worth activating.
9570 .B (no)gmc
9571 Enable Global Motion Compensation, which makes Xvid generate special
9572 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9573 Whether or not the use of this option will save bits is highly
9574 dependent on the source material.
9577 .B (no)trellis
9578 Trellis Quantization is a kind of adaptive quantization method that
9579 saves bits by modifying quantized coefficients to make them more
9580 compressible by the entropy encoder.
9581 Its impact on quality is good, and if VHQ uses too much CPU for you,
9582 this setting can be a good alternative to save a few bits (and gain
9583 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9586 .B (no)cartoon
9587 Activate this if your encoded sequence is an anime/\:cartoon.
9588 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9589 frame types and motion vectors for flat looking cartoons.
9592 .B (no)chroma_me
9593 The usual motion estimation algorithm uses only the luminance information to
9594 find the best motion vector.
9595 However for some video material, using the chroma planes can help find
9596 better vectors.
9597 This setting toggles the use of chroma planes for motion estimation
9598 (default: on).
9601 .B (no)chroma_opt
9602 Enable a chroma optimizer prefilter.
9603 It will do some extra magic on color information to minimize the
9604 stepped-stairs effect on edges.
9605 It will improve quality at the cost of encoding speed.
9606 It reduces PSNR by nature, as the mathematical deviation to the original
9607 picture will get bigger, but the subjective image quality will raise.
9608 Since it works with color information, you might want to turn it off when
9609 encoding in grayscale.
9612 .B (no)hq_ac
9613 Activates high-quality prediction of AC coefficients for intra frames from
9614 neighbor blocks (default: on).
9617 .B vhq=<0\-4>
9618 The motion search algorithm is based on a search in the usual color domain
9619 and tries to find a motion vector that minimizes the difference between the
9620 reference frame and the encoded frame.
9621 With this setting activated, Xvid will also use the frequency domain (DCT)
9622 to search for a motion vector that minimizes not only the spatial
9623 difference but also the encoding length of the block.
9624 Fastest to slowest:
9625 .PD 0
9626 .RSs
9627 .IPs 0
9629 .IPs 1
9630 mode decision (inter/\:intra MB) (default)
9631 .IPs 2
9632 limited search
9633 .IPs 3
9634 medium search
9635 .IPs 4
9636 wide search
9638 .PD 1
9641 .B (no)lumi_mask
9642 Adaptive quantization allows the macroblock quantizers to vary inside
9643 each frame.
9644 This is a 'psychosensory' setting that is supposed to make use of the
9645 fact that the human eye tends to notice fewer details in very bright
9646 and very dark parts of the picture.
9647 It compresses those areas more strongly than medium ones, which will
9648 save bits that can be spent again on other frames, raising overall
9649 subjective quality and possibly reducing PSNR.
9652 .B (no)grayscale
9653 Make Xvid discard chroma planes so the encoded video is grayscale only.
9654 Note that this does not speed up encoding, it just prevents chroma data
9655 from being written in the last stage of encoding.
9658 .B (no)interlacing
9659 Encode the fields of interlaced video material.
9660 Turn this option on for interlaced content.
9662 .I NOTE:
9663 Should you rescale the video, you would need an interlace-aware resizer,
9664 which you can activate with \-vf scale=<width>:<height>:1.
9667 .B min_iquant=<0\-31>
9668 minimum I-frame quantizer (default: 2)
9671 .B max_iquant=<0\-31>
9672 maximum I-frame quantizer (default: 31)
9675 .B min_pquant=<0\-31>
9676 minimum P-frame quantizer (default: 2)
9679 .B max_pquant=<0\-31>
9680 maximum P-frame quantizer (default: 31)
9683 .B min_bquant=<0\-31>
9684 minimum B-frame quantizer (default: 2)
9687 .B max_bquant=<0\-31>
9688 maximum B-frame quantizer (default: 31)
9691 .B min_key_interval=<value> (two pass only)
9692 minimum interval between keyframes (default: 0)
9695 .B max_key_interval=<value>
9696 maximum interval between keyframes (default: 10*fps)
9699 .B quant_type=<h263|mpeg>
9700 Sets the type of quantizer to use.
9701 For high bitrates, you will find that MPEG quantization preserves more detail.
9702 For low bitrates, the smoothing of H.263 will give you less block noise.
9703 When using custom matrices, MPEG quantization
9704 .B must
9705 be used.
9708 .B quant_intra_matrix=<filename>
9709 Load a custom intra matrix file.
9710 You can build such a file with xvid4conf's matrix editor.
9713 .B quant_inter_matrix=<filename>
9714 Load a custom inter matrix file.
9715 You can build such a file with xvid4conf's matrix editor.
9718 .B keyframe_boost=<0\-1000> (two pass mode only)
9719 Shift some bits from the pool for other frame types to intra frames,
9720 thus improving keyframe quality.
9721 This amount is an extra percentage, so a value of 10 will give
9722 your keyframes 10% more bits than normal
9723 (default: 0).
9726 .B kfthreshold=<value> (two pass mode only)
9727 Works together with kfreduction.
9728 Determines the minimum distance below which you consider that
9729 two frames are considered consecutive and treated differently
9730 according to kfreduction
9731 (default: 10).
9734 .B kfreduction=<0\-100> (two pass mode only)
9735 The above two settings can be used to adjust the size of keyframes that
9736 you consider too close to the first (in a row).
9737 kfthreshold sets the range in which keyframes are reduced, and
9738 kfreduction determines the bitrate reduction they get.
9739 The last I-frame will get treated normally
9740 (default: 30).
9743 .B max_bframes=<0\-4>
9744 Maximum number of B-frames to put between I/P-frames (default: 2).
9747 .B bquant_ratio=<0\-1000>
9748 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9751 .B bquant_offset=<\-1000\-1000>
9752 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9755 .B bf_threshold=<\-255\-255>
9756 This setting allows you to specify what priority to place on the use of
9757 B-frames.
9758 The higher the value, the higher the probability of B-frames being used
9759 (default: 0).
9760 Do not forget that B-frames usually have a higher quantizer, and therefore
9761 aggressive production of B-frames may cause worse visual quality.
9764 .B (no)closed_gop
9765 This option tells Xvid to close every GOP (Group Of Pictures bounded
9766 by two I-frames), which makes GOPs independent from each other.
9767 This just implies that the last frame of the GOP is either a P-frame or a
9768 N-frame but not a B-frame.
9769 It is usually a good idea to turn this option on (default: on).
9772 .B (no)packed
9773 This option is meant to solve frame-order issues when encoding to
9774 container formats like AVI that cannot cope with out-of-order frames.
9775 In practice, most decoders (both software and hardware) are able to deal
9776 with frame-order themselves, and may get confused when this option is
9777 turned on, so you can safely leave if off, unless you really know what
9778 you are doing.
9780 .I WARNING:
9781 This will generate an illegal bitstream, and will not be
9782 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
9784 .I WARNING:
9785 This will also store a fake DivX version in the file so the bug
9786 autodetection of some decoders might be confused.
9789 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
9790 This setting allows the creation of variable framerate video streams.
9791 The value of the setting specifies a threshold under which, if the
9792 difference of the following frame to the previous frame is below or equal
9793 to this threshold, a frame gets not coded (a so called n-vop is placed
9794 in the stream).
9795 On playback, when reaching an n-vop the previous frame will be displayed.
9797 .I WARNING:
9798 Playing with this setting may result in a jerky video, so use it at your
9799 own risks!
9802 .B rc_reaction_delay_factor=<value>
9803 This parameter controls the number of frames the CBR rate controller
9804 will wait before reacting to bitrate changes and compensating for them
9805 to obtain a constant bitrate over an averaging range of frames.
9808 .B rc_averaging_period=<value>
9809 Real CBR is hard to achieve.
9810 Depending on the video material, bitrate can be variable, and hard to predict.
9811 Therefore Xvid uses an averaging period for which it guarantees a given
9812 amount of bits (minus a small variation).
9813 This settings expresses the "number of frames" for which Xvid averages
9814 bitrate and tries to achieve CBR.
9817 .B rc_buffer=<value>
9818 size of the rate control buffer
9821 .B curve_compression_high=<0\-100>
9822 This setting allows Xvid to take a certain percentage of bits away from
9823 high bitrate scenes and give them back to the bit reservoir.
9824 You could also use this if you have a clip with so many bits allocated
9825 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
9826 (default: 0).
9829 .B curve_compression_low=<0\-100>
9830 This setting allows Xvid to give a certain percentage of extra bits to the
9831 low bitrate scenes, taking a few bits from the entire clip.
9832 This might come in handy if you have a few low-bitrate scenes that are
9833 still blocky (default: 0).
9836 .B overflow_control_strength=<0\-100>
9837 During pass one of two pass encoding, a scaled bitrate curve is computed.
9838 The difference between that expected curve and the result obtained during
9839 encoding is called overflow.
9840 Obviously, the two pass rate controller tries to compensate for that overflow,
9841 distributing it over the next frames.
9842 This setting controls how much of the overflow is distributed every time
9843 there is a new frame.
9844 Low values allow lazy overflow control, big rate bursts are compensated for
9845 more slowly (could lead to lack of precision for small clips).
9846 Higher values will make changes in bit redistribution more abrupt, possibly
9847 too abrupt if you set it too high, creating artifacts (default: 5).
9849 .I NOTE:
9850 This setting impacts quality a lot, play with it carefully!
9853 .B max_overflow_improvement=<0\-100>
9854 During the frame bit allocation, overflow control may increase the frame
9855 size.
9856 This parameter specifies the maximum percentage by which the overflow
9857 control is allowed to increase the frame size, compared to the ideal curve
9858 allocation
9859 (default: 5).
9862 .B max_overflow_degradation=<0\-100>
9863 During the frame bit allocation, overflow control may decrease the frame
9864 size.
9865 This parameter specifies the maximum percentage by which the overflow
9866 control is allowed to decrease the frame size, compared to the ideal curve
9867 allocation
9868 (default: 5).
9871 .B container_frame_overhead=<0...>
9872 Specifies a frame average overhead per frame, in bytes.
9873 Most of the time users express their target bitrate for video w/o taking
9874 care of the video container overhead.
9875 This small but (mostly) constant overhead can cause the target file size
9876 to be exceeded.
9877 Xvid allows users to set the amount of overhead per frame the
9878 container generates (give only an average per frame).
9879 0 has a special meaning, it lets Xvid use its own default values
9880 (default: 24 \- AVI average overhead).
9883 .B profile=<profile_name>
9884 Restricts options and VBV (peak bitrate over a short period) according to
9885 the Simple, Advanced Simple and DivX profiles.
9886 The resulting videos should be playable on standalone players adhering to these
9887 profile specifications.
9888 .PD 0
9889 .RSs
9890 .IPs unrestricted
9891 no restrictions (default)
9892 .IPs "sp0\ \ "
9893 simple profile at level 0
9894 .IPs "sp1\ \ "
9895 simple profile at level 1
9896 .IPs "sp2\ \ "
9897 simple profile at level 2
9898 .IPs "sp3\ \ "
9899 simple profile at level 3
9900 .IPs "asp0\ "
9901 advanced simple profile at level 0
9902 .IPs "asp1\ "
9903 advanced simple profile at level 1
9904 .IPs "asp2\ "
9905 advanced simple profile at level 2
9906 .IPs "asp3\ "
9907 advanced simple profile at level 3
9908 .IPs "asp4\ "
9909 advanced simple profile at level 4
9910 .IPs "asp5\ "
9911 advanced simple profile at level 5
9912 .IPs dxnhandheld
9913 DXN handheld profile
9914 .IPs dxnportntsc
9915 DXN portable NTSC profile
9916 .IPs dxnportpal
9917 DXN portable PAL profile
9918 .IPs dxnhtntsc
9919 DXN home theater NTSC profile
9920 .IPs dxnhtpal
9921 DXN home theater PAL profile
9922 .IPs dxnhdtv
9923 DXN HDTV profile
9925 .PD 1
9927 .I NOTE:
9928 These profiles should be used in conjunction with an appropriate \-ffourcc.
9929 Generally DX50 is applicable, as some players do not recognize Xvid but
9930 most recognize DivX.
9934 .B par=<mode>
9935 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
9936 the Display Aspect Ratio).
9937 PAR is the ratio of the width and height of a single pixel.
9938 So both are related like this: DAR = PAR * (width/height).
9940 MPEG-4 defines 5 pixel aspect ratios and one extended
9941 one, giving the opportunity to specify a specific pixel aspect
9942 ratio.
9943 5 standard modes can be specified:
9944 .PD 0
9945 .RSs
9946 .IPs vga11
9947 It is the usual PAR for PC content.
9948 Pixels are a square unit.
9949 .IPs pal43
9950 PAL standard 4:3 PAR.
9951 Pixels are rectangles.
9952 .IPs pal169
9953 same as above
9954 .IPs ntsc43
9955 same as above
9956 .IPs ntsc169
9957 same as above (Do not forget to give the exact ratio.)
9958 .IPs "ext\ \ "
9959 Allows you to specify your own pixel aspect ratio with par_width and
9960 par_height.
9962 .PD 1
9964 .I NOTE:
9965 In general, setting aspect and autoaspect options is enough.
9969 .B par_width=<1\-255> (par=ext only)
9970 Specifies the width of the custom pixel aspect ratio.
9973 .B par_height=<1\-255> (par=ext only)
9974 Specifies the height of the custom pixel aspect ratio.
9977 .B aspect=<x/y | f (float value)>
9978 Store movie aspect internally, just like MPEG files.
9979 Much nicer solution than rescaling, because quality is not decreased.
9980 MPlayer and a few others players will play these files correctly, others
9981 will display them with the wrong aspect.
9982 The aspect parameter can be given as a ratio or a floating point number.
9985 .B (no)autoaspect
9986 Same as the aspect option, but automatically computes aspect, taking
9987 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
9988 filter chain.
9991 .B "psnr\ \ \ "
9992 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
9993 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
9994 the current directory.
9995 Returned values are in dB (decibel), the higher the better.
9998 .B "debug\ \ "
9999 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
10000 file.)
10004 .sp 1
10005 The following option is only available in Xvid 1.1.x.
10008 .B bvhq=<0|1>
10009 This setting allows vector candidates for B-frames to be used for
10010 the encoding chosen using a rate distortion optimized operator,
10011 which is what is done for P-frames by the vhq option.
10012 This produces nicer-looking B-frames while incurring almost no
10013 performance penalty (default: 1).
10016 .sp 1
10017 The following option is only available in the 1.2.x version of Xvid.
10020 .B threads=<0\-n>
10021 Create n threads to run the motion estimation (default: 0).
10022 The maximum number of threads that can be used is the picture height
10023 divided by 16.
10026 .SS x264enc (\-x264encopts)
10029 .B bitrate=<value>
10030 Sets the average bitrate to be used in kbits/\:second (default: off).
10031 Since local bitrate may vary, this average may be inaccurate for
10032 very short videos (see ratetol).
10033 Constant bitrate can be achieved by combining this with vbv_maxrate,
10034 at significant reduction in quality.
10037 .B qp=<0\-51>
10038 This selects the quantizer to use for P-frames.
10039 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
10040 20\-40 is a useful range.
10041 Lower values result in better fidelity, but higher bitrates.
10042 0 is lossless.
10043 Note that quantization in H.264 works differently from MPEG-1/2/4:
10044 H.264's quantization parameter (QP) is on a logarithmic scale.
10045 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
10046 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
10049 .B crf=<1.0\-50.0>
10050 Enables constant quality mode, and selects the quality.
10051 The scale is similar to QP.
10052 Like the bitrate-based modes, this allows each frame to use a
10053 different QP based on the frame's complexity.
10056 .B pass=<1\-3>
10057 Enable 2 or 3-pass mode.
10058 It is recommended to always encode in 2 or 3-pass mode as it leads to a
10059 better bit distribution and improves overall quality.
10060 .PD 0
10061 .RSs
10062 .IPs 1
10063 first pass
10064 .IPs 2
10065 second pass (of two pass encoding)
10066 .IPs 3
10067 Nth pass (second and third passes of three pass encoding)
10070 Here is how it works, and how to use it:
10072 The first pass (pass=1) collects statistics on the video and writes them
10073 to a file.
10074 You might want to deactivate some CPU-hungry options, apart from the ones
10075 that are on by default.
10077 In two pass mode, the second pass (pass=2) reads the statistics file and
10078 bases ratecontrol decisions on it.
10080 In three pass mode, the second pass (pass=3, that is not a typo)
10081 does both: It first reads the statistics, then overwrites them.
10082 You can use all encoding options, except very CPU-hungry options.
10084 The third pass (pass=3) is the same as the second pass, except that it has
10085 the second pass' statistics to work from.
10086 You can use all encoding options, including CPU-hungry ones.
10088 The first pass may use either average bitrate or constant quantizer.
10089 ABR is recommended, since it does not require guessing a quantizer.
10090 Subsequent passes are ABR, and must specify bitrate.
10091 .REss
10094 .B turbo=<0\-2>
10095 Fast first pass mode.
10096 During the first pass of a two or more pass encode it is possible to gain
10097 speed by disabling some options with negligible or even no impact on the
10098 final pass output quality.
10099 .PD 0
10100 .RSs
10101 .IPs 0
10102 disabled (default)
10103 .IPs 1
10104 Reduce subq, frameref and disable some inter-macroblock partition analysis
10105 modes.
10106 .IPs 2
10107 Reduce subq and frameref to 1, use a diamond ME search and disable all
10108 partition analysis modes.
10111 Level 1 can increase first pass speed up to 2x with no change in the global
10112 PSNR of the final pass compared to a full quality first pass.
10114 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
10115 in the global PSNR of the final pass compared to a full quality first pass.
10116 .REss
10119 .B keyint=<value>
10120 Sets maximum interval between IDR-frames (default: 250).
10121 Larger values save bits, thus improve quality, at the cost of seeking
10122 precision.
10123 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
10124 values of keyint.
10127 .B keyint_min=<1\-keyint/2>
10128 Sets minimum interval between IDR-frames (default: 25).
10129 If scenecuts appear within this interval, they are still encoded as
10130 I-frames, but do not start a new GOP.
10131 In H.264, I-frames do not necessarily bound a closed GOP because it is
10132 allowable for a P-frame to be predicted from more frames than just the one
10133 frame before it (also see frameref).
10134 Therefore, I-frames are not necessarily seekable.
10135 IDR-frames restrict subsequent P-frames from referring to any frame
10136 prior to the IDR-frame.
10139 .B scenecut=<\-1\-100>
10140 Controls how aggressively to insert extra I-frames (default: 40).
10141 With small values of scenecut, the codec often has to force an I-frame
10142 when it would exceed keyint.
10143 Good values of scenecut may find a better location for the I-frame.
10144 Large values use more I-frames than necessary, thus wasting bits.
10145 \-1 disables scene-cut detection, so I-frames are inserted only once
10146 every other keyint frames, even if a scene-cut occurs earlier.
10147 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
10148 are just as big as I-frames, but do not reset the "keyint counter".
10151 .B frameref=<1\-16>
10152 Number of previous frames used as predictors in B- and P-frames (default: 1).
10153 This is effective in anime, but in live-action material the improvements
10154 usually drop off very rapidly above 6 or so reference frames.
10155 This has no effect on decoding speed, but does increase the memory needed for
10156 decoding.
10157 Some decoders can only handle a maximum of 15 reference frames.
10160 .B bframes=<0\-16>
10161 maximum number of consecutive B-frames between I- and P-frames (default: 0)
10164 .B (no)b_adapt
10165 Automatically decides when to use B-frames and how many, up to the maximum
10166 specified above (default: on).
10167 If this option is disabled, then the maximum number of B-frames is used.
10170 .B b_bias=<\-100\-100>
10171 Controls the decision performed by b_adapt.
10172 A higher b_bias produces more B-frames (default: 0).
10175 .B (no)b_pyramid
10176 Allows B-frames to be used as references for predicting other frames.
10177 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
10178 Without this option, B-frames follow the same pattern as MPEG-[124].
10179 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
10180 are predicted from I0 and P4.
10181 With this option, they are coded as I0 P4 B2 B1 B3.
10182 B2 is the same as above, but B1 is predicted from I0 and B2, and
10183 B3 is predicted from B2 and P4.
10184 This usually results in slightly improved compression, at almost no
10185 speed cost.
10186 However, this is an experimental option: it is not fully tuned and
10187 may not always help.
10188 Requires bframes >= 2.
10189 Disadvantage: increases decoding delay to 2 frames.
10192 .B (no)deblock
10193 Use deblocking filter (default: on).
10194 As it takes very little time compared to its quality gain, it is not
10195 recommended to disable it.
10198 .B deblock=<\-6\-6>,<\-6\-6>
10199 The first parameter is AlphaC0 (default: 0).
10200 This adjusts thresholds for the H.264 in-loop deblocking filter.
10201 First, this parameter adjusts the maximum amount of change that the filter is
10202 allowed to cause on any one pixel.
10203 Secondly, this parameter affects the threshold for difference across the
10204 edge being filtered.
10205 A positive value reduces blocking artifacts more, but will also smear details.
10207 The second parameter is Beta (default: 0).
10208 This affects the detail threshold.
10209 Very detailed blocks are not filtered, since the smoothing caused by the
10210 filter would be more noticeable than the original blocking.
10212 The default behavior of the filter almost always achieves optimal quality,
10213 so it is best to either leave it alone, or make only small adjustments.
10214 However, if your source material already has some blocking or noise which
10215 you would like to remove, it may be a good idea to turn it up a little bit.
10218 .B (no)cabac
10219 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
10220 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
10221 Unless you are looking for decoding speed, you should not disable it.
10224 .B qp_min=<1\-51> (ABR or two pass)
10225 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
10228 .B qp_max=<1\-51> (ABR or two pass)
10229 maximum quantizer (default: 51)
10232 .B qp_step=<1\-50> (ABR or two pass)
10233 maximum value by which the quantizer may be incremented/decremented between
10234 frames (default: 4)
10237 .B ratetol=<0.1\-100.0> (ABR or two pass)
10238 allowed variance in average bitrate (no particular units) (default: 1.0)
10241 .B vbv_maxrate=<value> (ABR or two pass)
10242 maximum local bitrate, in kbits/\:second (default: disabled)
10245 .B vbv_bufsize=<value> (ABR or two pass)
10246 averaging period for vbv_maxrate, in kbits
10247 (default: none, must be specified if vbv_maxrate is enabled)
10250 .B vbv_init=<0.0\-1.0> (ABR or two pass)
10251 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
10254 .B ip_factor=<value>
10255 quantizer factor between I- and P-frames (default: 1.4)
10258 .B pb_factor=<value>
10259 quantizer factor between P- and B-frames (default: 1.3)
10262 .B qcomp=<0\-1> (ABR or two pass)
10263 quantizer compression (default: 0.6).
10264 A lower value makes the bitrate more constant,
10265 while a higher value makes the quantization parameter more constant.
10268 .B cplx_blur=<0\-999> (two pass only)
10269 Temporal blur of the estimated frame complexity, before curve compression
10270 (default: 20).
10271 Lower values allow the quantizer value to jump around more,
10272 higher values force it to vary more smoothly.
10273 cplx_blur ensures that each I-frame has quality comparable to the following
10274 P-frames, and ensures that alternating high and low complexity frames
10275 (e.g.\& low fps animation) do not waste bits on fluctuating quantizer.
10278 .B qblur=<0\-99> (two pass only)
10279 Temporal blur of the quantization parameter, after curve compression
10280 (default: 0.5).
10281 Lower values allow the quantizer value to jump around more,
10282 higher values force it to vary more smoothly.
10285 .B zones=<zone0>[/<zone1>[/...]]
10286 User specified quality for specific parts (ending, credits, ...).
10287 Each zone is <start-frame>,<end-frame>,<option> where option may be
10288 .PD 0
10289 .RSs
10290 .IPs "q=<0\-51>"
10291 quantizer
10292 .IPs "b=<0.01\-100.0>"
10293 bitrate multiplier
10295 .PD 1
10297 .I NOTE:
10298 The quantizer option is not strictly enforced.
10299 It affects only the planning stage of ratecontrol, and is still subject
10300 to overflow compensation and qp_min/qp_max.
10304 .B direct_pred=<name>
10305 Determines the type of motion prediction used for direct macroblocks
10306 in B-frames.
10307 .PD 0
10308 .RSs
10309 .IPs none
10310 Direct macroblocks are not used.
10311 .IPs spatial
10312 Motion vectors are extrapolated from neighboring blocks.
10313 (default)
10314 .IPs temporal
10315 Motion vectors are extrapolated from the following P-frame.
10316 .IPs auto
10317 The codec selects between spatial and temporal for each frame.
10319 .PD 1
10321 Spatial and temporal are approximately the same speed and PSNR,
10322 the choice between them depends on the video content.
10323 Auto is slightly better, but slower.
10324 Auto is most effective when combined with multipass.
10325 direct_pred=none is both slower and lower quality.
10329 .B (no)weight_b
10330 Use weighted prediction in B-frames.
10331 Without this option, bidirectionally predicted macroblocks give
10332 equal weight to each reference frame.
10333 With this option, the weights are determined by the temporal position
10334 of the B-frame relative to the references.
10335 Requires bframes > 1.
10338 .B partitions=<list>
10339 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
10340 .PD 0
10341 .RSs
10342 .IPs p8x8
10343 Enable types p16x8, p8x16, p8x8.
10344 .IPs p4x4
10345 Enable types p8x4, p4x8, p4x4.
10346 p4x4 is recommended only with subq >= 5, and only at low resolutions.
10347 .IPs b8x8
10348 Enable types b16x8, b8x16, b8x8.
10349 .IPs i8x8
10350 Enable type i8x8.
10351 i8x8 has no effect unless 8x8dct is enabled.
10352 .IPs i4x4
10353 Enable type i4x4.
10354 .IPs all
10355 Enable all of the above types.
10356 .IPs none
10357 Disable all of the above types.
10359 .PD 1
10361 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
10362 are always enabled.
10364 The idea is to find the type and size that best describe a certain area
10365 of the picture.
10366 For example, a global pan is better represented by 16x16 blocks, while
10367 small moving objects are better represented by smaller blocks.
10371 .B (no)8x8dct
10372 Adaptive spatial transform size: allows macroblocks to choose between
10373 4x4 and 8x8 DCT.
10374 Also allows the i8x8 macroblock type.
10375 Without this option, only 4x4 DCT is used.
10378 .B me=<name>
10379 Select fullpixel motion estimation algorithm.
10380 .PD 0
10381 .RSs
10382 .IPs dia
10383 diamond search, radius 1 (fast)
10384 .IPs hex
10385 hexagon search, radius 2 (default)
10386 .IPs umh
10387 uneven multi-hexagon search (slow)
10388 .IPs esa
10389 exhaustive search (very slow, and no better than umh)
10391 .PD 1
10394 .B me_range=<4\-64>
10395 radius of exhaustive or multi-hexagon motion search (default: 16)
10398 .B subq=<0\-9>
10399 Adjust subpel refinement quality.
10400 This parameter controls quality versus speed tradeoffs involved in the motion
10401 estimation decision process.
10402 subq=5 can compress up to 10% better than subq=1.
10403 .PD 0
10404 .RSs
10405 .IPs 0
10406 Runs fullpixel precision motion estimation on all candidate
10407 macroblock types.
10408 Then selects the best type with SAD metric (faster than subq=1, not recommended
10409 unless you're looking for ultra-fast encoding).
10410 .IPs 1
10411 Does as 0, then refines the motion of that type to fast quarterpixel precision
10412 (fast).
10413 .IPs 2
10414 Runs halfpixel precision motion estimation on all candidate macroblock types.
10415 Then selects the best type with SATD metric.
10416 Then refines the motion of that type to fast quarterpixel precision.
10417 .IPs 3
10418 As 2, but uses a slower quarterpixel refinement.
10419 .IPs 4
10420 Runs fast quarterpixel precision motion estimation on all candidate
10421 macroblock types.
10422 Then selects the best type with SATD metric.
10423 Then finishes the quarterpixel refinement for that type.
10424 .IPs 5
10425 Runs best quality quarterpixel precision motion estimation on all
10426 candidate macroblock types, before selecting the best type.
10427 Also refines the two motion vectors used in bidirectional macroblocks with
10428 SATD metric, rather than reusing vectors from the forward and backward
10429 searches.
10430 .IPs 6
10431 Enables rate-distortion optimization of macroblock types in
10432 I- and P-frames (default).
10433 .IPs 7
10434 Enables rate-distortion optimization of macroblock types in all frames.
10435 .IPs 8
10436 Enables rate-distortion optimization of motion vectors and intra prediction modes in I- and P-frames.
10437 .IPs 9
10438 Enables rate-distortion optimization of motion vectors and intra prediction modes in all frames (best).
10440 .PD 1
10442 In the above, "all candidates" does not exactly mean all enabled types:
10443 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
10447 .B (no)chroma_me
10448 Takes into account chroma information during subpixel motion search
10449 (default: enabled).
10450 Requires subq>=5.
10453 .B (no)mixed_refs
10454 Allows each 8x8 or 16x8 motion partition to independently select a
10455 reference frame.
10456 Without this option, a whole macroblock must use the same reference.
10457 Requires frameref>1.
10460 .B trellis=<0\-2> (cabac only)
10461 rate-distortion optimal quantization
10462 .PD 0
10463 .RSs
10464 .IPs 0
10465 disabled (default)
10466 .IPs 1
10467 enabled only for the final encode
10468 .IPs 2
10469 enabled during all mode decisions (slow, requires subq>=6)
10471 .PD 1
10474 .B psy-rd=rd[,trell]
10475 Sets the strength of the psychovisual optimization.
10476 .PD 0
10477 .RSs
10478 .IPs rd=<0.0\-10.0>
10479 psy optimization strength (requires subq>=6) (default: 1.0)
10480 .IPs trell=<0.0\-10.0>
10481 trellis (requires trellis, experimental) (default: 0.0)
10483 .PD 1
10486 .B deadzone_inter=<0\-32>
10487 Set the size of the inter luma quantization deadzone for non-trellis
10488 quantization (default: 21).
10489 Lower values help to preserve fine details and film grain (typically useful
10490 for high bitrate/quality encode), while higher values help filter out
10491 these details to save bits that can be spent again on other macroblocks
10492 and frames (typically useful for bitrate-starved encodes).
10493 It is recommended that you start by tweaking deadzone_intra before changing
10494 this parameter.
10497 .B deadzone_intra=<0\-32>
10498 Set the size of the intra luma quantization deadzone for non-trellis
10499 quantization (default: 11).
10500 This option has the same effect as deadzone_inter except that it affects
10501 intra frames.
10502 It is recommended that you start by tweaking this parameter before changing
10503 deadzone_inter.
10506 .B (no)fast_pskip
10507 Performs early skip detection in P-frames (default: enabled).
10508 This usually improves speed at no cost, but it can sometimes produce
10509 artifacts in areas with no details, like sky.
10512 .B (no)dct_decimate
10513 Eliminate dct blocks in P-frames containing only a small single coefficient
10514 (default: enabled).
10515 This will remove some details, so it will save bits that can be spent
10516 again on other frames, hopefully raising overall subjective quality.
10517 If you are compressing non-anime content with a high target bitrate, you
10518 may want to disable this to preserve as much detail as possible.
10521 .B nr=<0\-100000>
10522 Noise reduction, 0 means disabled.
10523 100\-1000 is a useful range for typical content, but you may want to turn it
10524 up a bit more for very noisy content (default: 0).
10525 Given its small impact on speed, you might want to prefer to use this over
10526 filtering noise away with video filters like denoise3d or hqdn3d.
10529 .B chroma_qp_offset=<\-12\-12>
10530 Use a different quantizer for chroma as compared to luma.
10531 Useful values are in the range <\-2\-2> (default: 0).
10534 .B aq_mode=<0\-2>
10535 Defines how adaptive quantization (AQ) distributes bits:
10536 .PD 0
10537 .RSs
10538 .IPs 0
10539 disabled
10540 .IPs 1
10541 Avoid moving bits between frames.
10542 .IPs 2
10543 Move bits between frames (by default).
10545 .PD 1
10548 .B aq_strength=<positive float value>
10549 Controls how much adaptive quantization (AQ) reduces blocking and blurring
10550 in flat and textured areas (default: 1.0).
10551 A value of 0.5 will lead to weak AQ and less details, when a value of 1.5
10552 will lead to strong AQ and more details.
10555 .B cqm=<flat|jvt|<filename>>
10556 Either uses a predefined custom quantization matrix or loads a JM format
10557 matrix file.
10558 .PD 0
10559 .RSs
10560 .IPs "flat\ "
10561 Use the predefined flat 16 matrix (default).
10562 .IPs "jvt\ \ "
10563 Use the predefined JVT matrix.
10564 .IPs <filename>
10565 Use the provided JM format matrix file.
10566 .PD 1
10569 .I NOTE:
10570 Windows CMD.EXE users may experience problems with parsing the command line
10571 if they attempt to use all the CQM lists.
10572 This is due to a command line length limitation.
10573 In this case it is recommended the lists be put into a JM format CQM
10574 file and loaded as specified above.
10578 .B cqm4iy=<list> (also see cqm)
10579 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10580 values in the 1\-255 range.
10583 .B cqm4ic=<list> (also see cqm)
10584 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10585 separated values in the 1\-255 range.
10588 .B cqm4py=<list> (also see cqm)
10589 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10590 values in the 1\-255 range.
10593 .B cqm4pc=<list> (also see cqm)
10594 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10595 separated values in the 1\-255 range.
10598 .B cqm8iy=<list> (also see cqm)
10599 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10600 values in the 1\-255 range.
10603 .B cqm8py=<list> (also see cqm)
10604 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10605 values in the 1\-255 range.
10608 .B level_idc=<10\-51>
10609 Set the bitstream's level as defined by annex A of the H.264 standard
10610 (default: 51 \- level 5.1).
10611 This is used for telling the decoder what capabilities it needs to support.
10612 Use this parameter only if you know what it means,
10613 and you have a need to set it.
10616 .B threads=<0\-16>
10617 Spawn threads to encode in parallel on multiple CPUs (default: 1).
10618 This has a slight penalty to compression quality.
10619 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10620 appropriate number of threads.
10623 .B (no)global_header
10624 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10625 (default: disabled).
10626 Some players, such as the Sony PSP, require the use of this option.
10627 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10630 .B (no)interlaced
10631 Treat the video content as interlaced.
10634 .B log=<\-1\-3>
10635 Adjust the amount of logging info printed to the screen.
10636 .PD 0
10637 .RSs
10638 .IPs "\-1"
10639 none
10640 .IPs " 0"
10641 Print errors only.
10642 .IPs " 1"
10643 warnings
10644 .IPs " 2"
10645 PSNR and other analysis statistics when the encode finishes (default)
10646 .IPs " 3"
10647 PSNR, QP, frametype, size, and other statistics for every frame
10649 .PD 1
10652 .B (no)psnr
10653 Print signal-to-noise ratio statistics.
10655 .I NOTE:
10656 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
10657 mathematically sound (they are simply the average of per-frame PSNRs).
10658 They are kept only for comparison to the JM reference codec.
10659 For all other purposes, please use either the 'Global' PSNR, or the per-frame
10660 PSNRs printed by log=3.
10663 .B (no)ssim
10664 Print the Structural Similarity Metric results.
10665 This is an alternative to PSNR, and may be better correlated with the
10666 perceived quality of the compressed video.
10669 .B (no)visualize
10670 Enable x264 visualizations during encoding.
10671 If the x264 on your system supports it, a new window will be opened during
10672 the encoding process, in which x264 will attempt to present an overview of
10673 how each frame gets encoded.
10674 Each block type on the visualized movie will be colored as follows:
10675 .PD 0
10676 .RSs
10677 .IPs red/pink
10678 intra block
10679 .IPs "blue\ "
10680 inter block
10681 .IPs green
10682 skip block
10683 .IPs yellow
10684 B-block
10686 .PD 1
10688 This feature can be considered experimental and subject to change.
10689 In particular, it depends on x264 being compiled with visualizations enabled.
10690 Note that as of writing this, x264 pauses after encoding and visualizing
10691 each frame, waiting for the user to press a key, at which point the next
10692 frame will be encoded.
10696 .SS xvfw (\-xvfwopts)
10698 Encoding with Video for Windows codecs is mostly obsolete unless you wish
10699 to encode to some obscure fringe codec.
10702 .B codec=<name>
10703 The name of the binary codec file with which to encode.
10706 .B compdata=<file>
10707 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
10710 .SS MPEG muxer (\-mpegopts)
10712 The MPEG muxer can generate 5 types of streams, each of which has reasonable
10713 default parameters that the user can override.
10714 Generally, when generating MPEG files, it is advisable to disable
10715 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
10716 harddup and softskip video filters).
10718 .I EXAMPLE:
10719 .PD 0
10720 .RSs
10721 .IPs format=mpeg2:tsaf:vbitrate=8000
10723 .PD 1
10726 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
10727 stream format (default: mpeg2).
10728 pes1 and pes2 are very broken formats (no pack header and no padding),
10729 but VDR uses them; do not choose them unless you know exactly what you
10730 are doing.
10733 .B size=<up to 65535>
10734 Pack size in bytes, do not change unless you know exactly what
10735 you are doing (default: 2048).
10738 .B muxrate=<int>
10739 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
10740 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
10743 .B "tsaf\ \ \ "
10744 Sets timestamps on all frames, if possible; recommended when format=dvd.
10745 If dvdauthor complains with a message like "..audio sector out of range...",
10746 you probably did not enable this option.
10749 .B interleaving2
10750 Uses a better algorithm to interleave audio and video packets, based on the
10751 principle that the muxer will always try to fill the stream with the largest
10752 percentage of free space.
10755 .B vdelay=<1\-32760>
10756 Initial video delay time, in milliseconds (default: 0),
10757 use it if you want to delay video with respect to audio.
10758 It doesn't work with :drop.
10761 .B adelay=<1\-32760>
10762 Initial audio delay time, in milliseconds (default: 0),
10763 use it if you want to delay audio with respect to video.
10766 .B "drop\ \ \ "
10767 When used with vdelay the muxer drops the part of audio that was
10768 anticipated.
10771 .B vwidth, vheight=<1\-4095>
10772 Set the video width and height when video is MPEG-1/2.
10775 .B vpswidth, vpsheight=<1\-4095>
10776 Set pan and scan video width and height when video is MPEG-2.
10779 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
10780 Sets the display aspect ratio for MPEG-2 video.
10781 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
10784 .B vbitrate=<int>
10785 Sets the video bitrate in kbit/s for MPEG-1/2 video.
10788 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
10789 Sets the framerate for MPEG-1/2 video.
10790 This option will be ignored if used with the telecine option.
10793 .B telecine
10794 Enables 3:2 pulldown soft telecine mode: The muxer will make the
10795 video stream look like it was encoded at 30000/1001 fps.
10796 It only works with MPEG-2 video when the output framerate is
10797 24000/1001 fps, convert it with \-ofps if necessary.
10798 Any other framerate is incompatible with this option.
10801 .B film2pal
10802 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
10803 will make the video stream look like it was encoded at 25 fps.
10804 It only works with MPEG-2 video when the output framerate is
10805 24000/1001 fps, convert it with \-ofps if necessary.
10806 Any other framerate is incompatible with this option.
10809 .B tele_src and tele_dest
10810 Enables arbitrary telecining using Donand Graft's DGPulldown code.
10811 You need to specify the original and the desired framerate; the
10812 muxer will make the video stream look like it was encoded at
10813 the desired framerate.
10814 It only works with MPEG-2 video when the input framerate is smaller
10815 than the output framerate and the framerate increase is <= 1.5.
10816 .sp 1
10818 .I EXAMPLE:
10820 .PD 0
10821 .RSs
10822 .IPs tele_src=25,tele_dest=30000/1001
10823 PAL to NTSC telecining
10825 .PD 1
10828 .B vbuf_size=<40\-1194>
10829 Sets the size of the video decoder's buffer, expressed in kilobytes.
10830 Specify it only if the bitrate of the video stream is too high for
10831 the chosen format and if you know perfectly well what you are doing.
10832 A too high value may lead to an unplayable movie, depending on the player's
10833 capabilities.
10834 When muxing HDTV video a value of 400 should suffice.
10837 .B abuf_size=<4\-64>
10838 Sets the size of the audio decoder's buffer, expressed in kilobytes.
10839 The same principle as for vbuf_size applies.
10842 .SS FFmpeg libavformat demuxers (\-lavfdopts)
10845 .B analyzeduration=<value>
10846 Maximum length in seconds to analyze the stream properties.
10849 .B format=<value>
10850 Force a specific libavformat demuxer.
10853 .B o=<key>=<value>[,<key>=<value>[,...]]
10854 Pass AVOptions to libavformat demuxer.
10855 Note, a patch to make the o= unneeded and pass all unknown options through
10856 the AVOption system is welcome.
10857 A full list of AVOptions can be found in the FFmpeg manual.
10858 Note that some options may conflict with MPlayer/MEncoder options.
10859 .sp 1
10861 .I EXAMPLE:
10863 .RSs
10864 .PD 0
10865 .IPs o=ignidx
10866 .PD 1
10870 .B probesize=<value>
10871 Maximum amount of data to probe during the detection phase.
10872 In the case of MPEG-TS this value identifies the maximum number
10873 of TS packets to scan.
10876 .B cryptokey=<hexstring>
10877 Encryption key the demuxer should use.
10878 This is the raw binary data of the key converted to a hexadecimal string.
10881 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
10884 .B delay=<value>
10885 Currently only meaningful for MPEG[12]: Maximum allowed distance,
10886 in seconds, between the reference timer of the output stream (SCR)
10887 and the decoding timestamp (DTS) for any stream present
10888 (demux to decode delay).
10889 Default is 0.7 (as mandated by the standards defined by MPEG).
10890 Higher values require larger buffers and must not be used.
10893 .B format=<container_format>
10894 Override which container format to mux into
10895 (default: autodetect from output file extension).
10896 .PD 0
10897 .RSs
10898 .IPs "mpg\ \ "
10899 MPEG-1 systems and MPEG-2 PS
10900 .IPs "asf\ \ "
10901 Advanced Streaming Format
10902 .IPs "avi\ \ "
10903 Audio Video Interleave file
10904 .IPs "wav\ \ "
10905 Waveform Audio
10906 .IPs "swf\ \ "
10907 Macromedia Flash
10908 .IPs "flv\ \ "
10909 Macromedia Flash video files
10910 .IPs "rm\ \ \ "
10911 RealAudio and RealVideo
10912 .IPs "au\ \ \ "
10913 SUN AU format
10914 .IPs "nut\ \ "
10915 NUT open container format (experimental)
10916 .IPs "mov\ \ "
10917 QuickTime
10918 .IPs "mp4\ \ "
10919 MPEG-4 format
10920 .IPs "ipod\ "
10921 MPEG-4 format with extra header flags required by Apple iPod firmware
10922 .IPs "dv\ \ \ "
10923 Sony Digital Video container
10924 .IPs "matroska\ \ \ "
10925 Matroska
10927 .PD 1
10929 .B muxrate=<rate>
10930 Nominal bitrate of the multiplex, in bits per second;
10931 currently it is meaningful only for MPEG[12].
10932 Sometimes raising it is necessary in order to avoid "buffer underflows".
10935 .B o=<key>=<value>[,<key>=<value>[,...]]
10936 Pass AVOptions to libavformat muxer.
10937 Note, a patch to make the o= unneeded and pass all unknown options through
10938 the AVOption system is welcome.
10939 A full list of AVOptions can be found in the FFmpeg manual.
10940 Note that some options may conflict with MEncoder options.
10941 .sp 1
10943 .I EXAMPLE:
10945 .RSs
10946 .PD 0
10947 .IPs o=packetsize=100
10948 .PD 1
10952 .B packetsize=<size>
10953 Size, expressed in bytes, of the unitary packet for the chosen format.
10954 When muxing to MPEG[12] implementations the default values are:
10955 2324 for [S]VCD, 2048 for all others formats.
10958 .B preload=<distance>
10959 Currently only meaningful for MPEG[12]: Initial distance,
10960 in seconds, between the reference timer of the output stream (SCR)
10961 and the decoding timestamp (DTS) for any stream present
10962 (demux to decode delay).
10966 .\" --------------------------------------------------------------------------
10967 .\" environment variables
10968 .\" --------------------------------------------------------------------------
10970 .SH ENVIRONMENT VARIABLES
10972 There are a number of environment variables that can be used to
10973 control the behavior of MPlayer and MEncoder.
10976 .B MPLAYER_CHARSET (also see \-msgcharset)
10977 Convert console messages to the specified charset (default: autodetect).
10978 A value of "noconv" means no conversion.
10981 .B MPLAYER_HOME
10982 Directory where MPlayer looks for user settings.
10985 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
10986 Set the initial verbosity level across all message modules (default: 0).
10987 The resulting verbosity corresponds to that of \-msglevel 5 plus the
10988 value of MPLAYER_VERBOSE.
10990 .SS libaf:
10993 .B LADSPA_PATH
10994 If LADSPA_PATH is set, it searches for the specified file.
10995 If it is not set, you must supply a fully specified pathname.
10996 FIXME: This is also mentioned in the ladspa section.
10998 .SS libdvdcss:
11001 .B DVDCSS_CACHE
11002 Specify a directory in which to store title key values.
11003 This will speed up descrambling of DVDs which are in the cache.
11004 The DVDCSS_CACHE directory is created if it does not exist,
11005 and a subdirectory is created named after the DVD's title
11006 or manufacturing date.
11007 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
11008 the default value which is "${HOME}/.dvdcss/" under Unix and
11009 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
11010 The special value "off" disables caching.
11013 .B DVDCSS_METHOD
11014 Sets the authentication and decryption method that
11015 libdvdcss will use to read scrambled discs.
11016 Can be one of title, key or disc.
11017 .PD 0
11018 .RSs
11019 .IPs "key\ \ "
11020 is the default method.
11021 libdvdcss will use a set of calculated player keys to try and get the disc key.
11022 This can fail if the drive does not recognize any of the player keys.
11023 .IPs "disc\ "
11024 is a fallback method when key has failed.
11025 Instead of using player keys, libdvdcss will crack the disc key using
11026 a brute force algorithm.
11027 This process is CPU intensive and requires 64 MB of memory to store
11028 temporary data.
11029 .IPs title
11030 is the fallback when all other methods have failed.
11031 It does not rely on a key exchange with the DVD drive, but rather uses
11032 a crypto attack to guess the title key.
11033 On rare cases this may fail because there is not enough encrypted data
11034 on the disc to perform a statistical attack, but in the other hand it
11035 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
11036 the wrong region on an RPC2 drive.
11038 .PD 1
11041 .B DVDCSS_RAW_DEVICE
11042 Specify the raw device to use.
11043 Exact usage will depend on your operating system, the Linux
11044 utility to set up raw devices is raw(8) for instance.
11045 Please note that on most operating systems, using a raw device
11046 requires highly aligned buffers: Linux requires a 2048 bytes
11047 alignment (which is the size of a DVD sector).
11050 .B DVDCSS_VERBOSE
11051 Sets the libdvdcss verbosity level.
11052 .PD 0
11053 .RSs
11054 .IPs 0
11055 Outputs no messages at all.
11056 .IPs 1
11057 Outputs error messages to stderr.
11058 .IPs 2
11059 Outputs error messages and debug messages to stderr.
11061 .PD 1
11064 .B DVDREAD_NOKEYS
11065 Skip retrieving all keys on startup.
11066 Currently disabled.
11069 .B HOME
11070 FIXME: Document this.
11072 .SS libao2:
11075 .B AO_SUN_DISABLE_SAMPLE_TIMING
11076 FIXME: Document this.
11079 .B AUDIODEV
11080 FIXME: Document this.
11083 .B AUDIOSERVER
11084 Specifies the Network Audio System server to which the
11085 nas audio output driver should connect and the transport
11086 that should be used.
11087 If unset DISPLAY is used instead.
11088 The transport can be one of tcp and unix.
11089 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
11090 or [unix]:<instancenumber>.
11091 The NAS base port is 8000 and <instancenumber> is added to that.
11092 .sp 1
11094 .I EXAMPLES:
11096 .PD 0
11097 .RSs
11098 .IPs AUDIOSERVER=somehost:0
11099 Connect to NAS server on somehost using default port and transport.
11100 .IPs AUDIOSERVER=tcp/somehost:8000
11101 Connect to NAS server on somehost listening on TCP port 8000.
11102 .IPs AUDIOSERVER=(unix)?:0
11103 Connect to NAS server instance 0 on localhost using unix domain sockets.
11105 .PD 1
11108 .B DISPLAY
11109 FIXME: Document this.
11111 .SS vidix:
11114 .B VIDIX_CRT
11115 FIXME: Document this.
11118 .B VIDIXIVTVALPHA
11119 Set this to 'disable' in order to stop the VIDIX driver from controlling
11120 alphablending settings.
11121 You can then manipulate it yourself with 'ivtvfbctl'.
11123 .SS osdep:
11126 .B TERM
11127 FIXME: Document this.
11129 .SS libvo:
11132 .B DISPLAY
11133 FIXME: Document this.
11136 .B FRAMEBUFFER
11137 FIXME: Document this.
11140 .B HOME
11141 FIXME: Document this.
11143 .SS libmpdemux:
11146 .B HOME
11147 FIXME: Document this.
11150 .B HOMEPATH
11151 FIXME: Document this.
11154 .B http_proxy
11155 FIXME: Document this.
11158 .B LOGNAME
11159 FIXME: Document this.
11162 .B USERPROFILE
11163 FIXME: Document this.
11165 .SS libmpcodecs:
11168 .B XANIM_MOD_DIR
11169 FIXME: Document this.
11171 .SS GUI:
11174 .B CHARSET
11175 FIXME: Document this.
11178 .B DISPLAY
11179 FIXME: Document this.
11182 .B HOME
11183 FIXME: Document this.
11185 .SS libavformat:
11188 .B AUDIO_FLIP_LEFT
11189 FIXME: Document this.
11192 .B BKTR_DEV
11193 FIXME: Document this.
11196 .B BKTR_FORMAT
11197 FIXME: Document this.
11200 .B BKTR_FREQUENCY
11201 FIXME: Document this.
11204 .B http_proxy
11205 FIXME: Document this.
11208 .B no_proxy
11209 FIXME: Document this.
11213 .\" --------------------------------------------------------------------------
11214 .\" Files
11215 .\" --------------------------------------------------------------------------
11217 .SH FILES
11220 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
11221 MPlayer system-wide settings
11224 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
11225 MEncoder system-wide settings
11228 ~/.mplayer/\:config
11229 MPlayer user settings
11232 ~/.mplayer/\:mencoder.conf
11233 MEncoder user settings
11236 ~/.mplayer/\:input.conf
11237 input bindings (see '\-input keylist' for the full list)
11240 ~/.mplayer/\:font/
11241 font directory (There must be a font.desc file and files with .RAW extension.)
11244 ~/.mplayer/\:DVDkeys/
11245 cached CSS keys
11248 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
11249 in this order:
11251 /path/\:to/\:movie.sub
11253 ~/.mplayer/\:sub/\:movie.sub
11255 .PD 1
11258 .\" --------------------------------------------------------------------------
11259 .\" Examples
11260 .\" --------------------------------------------------------------------------
11262 .SH EXAMPLES OF MPLAYER USAGE
11265 .B Quickstart DVD playing:
11267 mplayer dvd://1
11271 .B Play in Japanese with English subtitles:
11273 mplayer dvd://1 \-alang ja \-slang en
11277 .B Play only chapters 5, 6, 7:
11279 mplayer dvd://1 \-chapter 5\-7
11283 .B Play only titles 5, 6, 7:
11285 mplayer dvd://5\-7
11289 .B Play a multiangle DVD:
11291 mplayer dvd://1 \-dvdangle 2
11295 .B Play from a different DVD device:
11297 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
11301 .B Play DVD video from a directory with VOB files:
11303 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
11307 .B Copy a DVD title to hard disk, saving to file "title1.vob":
11309 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
11313 .B Play a DVD with dvdnav from path /dev/sr1:
11315 mplayer dvdnav:////dev/sr1
11319 .B Stream from HTTP:
11321 mplayer http://mplayer.hq/example.avi
11325 .B Stream using RTSP:
11327 mplayer rtsp://server.example.com/streamName
11331 .B Convert subtitles to MPsub format:
11333 mplayer dummy.avi \-sub source.sub \-dumpmpsub
11337 .B Convert subtitles to MPsub format without watching the movie:
11339 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
11343 .B input from standard V4L:
11345 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
11349 .B Playback on Zoran cards (old style, deprecated):
11351 mplayer \-vo zr \-vf scale=352:288 file.avi
11355 .B Playback on Zoran cards (new style):
11357 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
11361 .B Play DTS-CD with passthrough:
11363 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
11366 You can also use \-afm hwac3 instead of \-ac hwdts.
11367 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
11368 If your external receiver supports decoding raw DTS streams,
11369 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
11372 .B Play a 6-channel AAC file with only two speakers:
11374 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
11377 You might want to play a bit with the pan values (e.g multiply with a value) to
11378 increase volume or avoid clipping.
11381 .B checkerboard invert with geq filter:
11383 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'
11387 .SH EXAMPLES OF MENCODER USAGE
11390 .B Encode DVD title #2, only selected chapters:
11392 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11396 .B Encode DVD title #2, resizing to 640x480:
11398 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11402 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
11404 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11408 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
11410 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
11414 .B The same, but with MJPEG compression:
11416 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
11420 .B Encode all *.jpg files in the current directory:
11422 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
11426 .B Encode from a tuner (specify a format with \-vf format):
11428 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
11432 .B Encode from a pipe:
11434 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
11438 .\" --------------------------------------------------------------------------
11439 .\" Bugs, authors, standard disclaimer
11440 .\" --------------------------------------------------------------------------
11442 .SH BUGS
11443 Don't panic.
11444 If you find one, report it to us, but please make sure you have read all
11445 of the documentation first.
11446 Also look out for smileys. :)
11447 Many bugs are the result of incorrect setup or parameter usage.
11448 The bug reporting section of the documentation
11449 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
11450 explains how to create useful bug reports.
11454 .SH AUTHORS
11455 MPlayer was initially written by Arpad Gereoffy.
11456 See the AUTHORS file for a list of some of the many other contributors.
11458 MPlayer is (C) 2000\-2009 The MPlayer Team
11460 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
11461 It is maintained by Diego Biurrun.
11462 Please send mails about it to the MPlayer-DOCS mailing list.
11463 Translation specific mails belong on the MPlayer-translations mailing list.
11464 .\" end of file