Merge svn changes up to r30475
[mplayer/glamo.git] / DOCS / man / en / mplayer.1
blob6e9282ae25f5de9805840f0bcd8158154ffeaa55
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
418 .B mouse control
419 .PD 0
421 .IPs "button 3 and button 4"
422 Seek backward/\:forward 1 minute.
423 .IPs "button 5 and button 6"
424 Decrease/\:increase volume.
426 .PD 1
429 .B joystick control
430 .PD 0
432 .IPs "left and right"
433 Seek backward/\:forward 10 seconds.
434 .IPs "up and down"
435 Seek forward/\:backward 1 minute.
436 .IPs "button 1"
437 Pause.
438 .IPs "button 2"
439 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
440 .IPs "button 3 and button 4"
441 Decrease/\:increase volume.
443 .PD 1
446 .\" --------------------------------------------------------------------------
447 .\" Usage
448 .\" --------------------------------------------------------------------------
450 .SH "USAGE"
451 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
452 \-fs option is \-nofs.
454 If an option is marked as (XXX only), it will only work in combination with
455 the XXX option or if XXX is compiled in.
457 .I NOTE:
458 The suboption parser (used for example for \-ao pcm suboptions) supports
459 a special kind of string-escaping intended for use with external GUIs.
461 It has the following format:
463 %n%string_of_length_n
465 .I EXAMPLES:
467 mplayer \-ao pcm:file=%10%C:test.wav test.avi
469 Or in a script:
471 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
474 .\" --------------------------------------------------------------------------
475 .\" Configuration files
476 .\" --------------------------------------------------------------------------
478 .SH "CONFIGURATION FILES"
479 You can put all of the options in configuration files which will be read
480 every time MPlayer/MEncoder is run.
481 The system-wide configuration file 'mplayer.conf' is in your configuration
482 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
483 specific one is '~/\:.mplayer/\:config'.
484 The configuration file for MEncoder is 'mencoder.conf' in your configuration
485 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
486 user specific one is '~/\:.mplayer/\:mencoder.conf'.
487 User specific options override system-wide options and options given on the
488 command line override either.
489 The syntax of the configuration files is 'option=<value>', everything after
490 a '#' is considered a comment.
491 Options that work without values can be enabled by setting them to 'yes'
492 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
493 Even suboptions can be specified in this way.
495 You can also write file-specific configuration files.
496 If you wish to have a configuration file for a file called 'movie.avi', create a file
497 named 'movie.avi.conf' with the file-specific options in it and put it in
498 ~/.mplayer/.
499 You can also put the configuration file in the same directory as the file to
500 be played, as long as you give the \-use\-filedir\-conf option (either on the
501 command line or in your global config file).
502 If a file-specific configuration file is found in the same directory, no
503 file-specific configuration is loaded from ~/.mplayer.
504 In addition, the \-use\-filedir\-conf option enables directory-specific
505 configuration files.
506 For this, MPlayer first tries to load a mplayer.conf from the same directory as
507 the file played and then tries to load any file-specific configuration.
509 .I EXAMPLE MPLAYER CONFIGURATION FILE:
510 .sp 1
512 # Use Matrox driver by default.
513 vo=xmga
514 # I love practicing handstands while watching videos.
515 flip=yes
516 # Decode/encode multiple files from PNG,
517 # start with mf://filemask
518 mf=type=png:fps=25
519 # Eerie negative images are cool.
520 vf=eq2=1.0:\-0.8
523 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
524 .sp 1
526 # Make MEncoder output to a default filename.
527 o=encoded.avi
528 # The next 4 lines allow mencoder tv:// to start capturing immediately.
529 oac=pcm=yes
530 ovc=lavc=yes
531 lavcopts=vcodec=mjpeg
532 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
533 # more complex default encoding option set
534 lavcopts=vcodec=mpeg4:autoaspect=1
535 lameopts=aq=2:vbr=4
536 ovc=lavc=1
537 oac=lavc=1
538 passlogfile=pass1stats.log
539 noautoexpand=1
540 subfont-autoscale=3
541 subfont-osd-scale=6
542 subfont-text-scale=4
543 subalign=2
544 subpos=96
545 spuaa=20
548 .\" --------------------------------------------------------------------------
549 .\" Profiles
550 .\" --------------------------------------------------------------------------
552 .SH "PROFILES"
553 To ease working with different configurations profiles can be defined in the
554 configuration files.
555 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
556 All following options will be part of the profile.
557 A description (shown by \-profile help) can be defined with the profile-desc
558 option.
559 To end the profile, start another one or use the profile name 'default'
560 to continue with normal options.
563 .I "EXAMPLE MPLAYER PROFILE:"
564 .sp 1
567 [protocol.dvd]
568 profile-desc="profile for dvd:// streams"
569 vf=pp=hb/vb/dr/al/fd
570 alang=en
572 [protocol.dvdnav]
573 profile-desc="profile for dvdnav:// streams"
574 profile=protocol.dvd
575 mouse-movements=yes
576 nocache=yes
578 [extension.flv]
579 profile-desc="profile for .flv files"
580 flip=yes
582 [vo.pnm]
583 outdir=/tmp
585 [ao.alsa]
586 device=spdif
589 .I "EXAMPLE MENCODER PROFILE:"
590 .sp 1
593 [mpeg4]
594 profile-desc="MPEG4 encoding"
595 ovc=lacv=yes
596 lavcopts=vcodec=mpeg4:vbitrate=1200
598 [mpeg4\-hq]
599 profile-desc="HQ MPEG4 encoding"
600 profile=mpeg4
601 lavcopts=mbd=2:trell=yes:v4mv=yes
604 .\" --------------------------------------------------------------------------
605 .\" Options
606 .\" --------------------------------------------------------------------------
608 .SH "GENERAL OPTIONS"
611 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
612 Override the standard search path and use the specified file
613 instead of the builtin codecs.conf.
616 .B \-include <configuration file>
617 Specify configuration file to be parsed after the default ones.
620 .B \-list\-options
621 Prints all available options.
624 .B \-msgcharset <charset>
625 Convert console messages to the specified character set (default: autodetect).
626 Text will be in the encoding specified with the \-\-charset configure option.
627 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
629 .I NOTE:
630 The option takes effect after command line parsing has finished.
631 The MPLAYER_CHARSET environment variable can help you get rid of
632 the first lines of garbled output.
635 .B \-msgcolor
636 Enable colorful console output on terminals that support ANSI color.
639 .B \-msglevel <all=<level>:<module>=<level>:...>
640 Control verbosity directly for each module.
641 The 'all' module changes the verbosity of all the modules not
642 explicitly specified on the command line.
643 See '\-msglevel help' for a list of all modules.
645 .I NOTE:
646 Some messages are printed before the command line is parsed and are
647 therefore not affected by \-msglevel.
648 To control these messages you have to use the MPLAYER_VERBOSE environment
649 variable, see its description below for details.
651 Available levels:
652 .PD 0
653 .RSs
654 .IPs "\-1"
655 complete silence
656 .IPs " 0"
657 fatal messages only
658 .IPs " 1"
659 error messages
660 .IPs " 2"
661 warning messages
662 .IPs " 3"
663 short hints
664 .IPs " 4"
665 informational messages
666 .IPs " 5"
667 status messages (default)
668 .IPs " 6"
669 verbose messages
670 .IPs " 7"
671 debug level 2
672 .IPs " 8"
673 debug level 3
674 .IPs " 9"
675 debug level 4
677 .PD 1
680 .B \-msgmodule
681 Prepend module name in front of each console message.
684 .B \-noconfig <options>
685 Do not parse selected configuration files.
687 .I NOTE:
688 If \-include or \-use\-filedir\-conf options are
689 specified at the command line, they will be honoured.
690 .sp 1
691 Available options are:
692 .PD 0
693 .RSs
694 .IPs "all\ \ "
695 all configuration files
696 .IPs system
697 system configuration file
698 .IPs "user\ "
699 user configuration file
701 .PD 1
704 .B "\-quiet\ "
705 Make console output less verbose; in particular, prevents the status line
706 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
707 Particularly useful on slow terminals or broken ones which do not properly
708 handle carriage return (i.e.\& \\r).
711 .B \-priority <prio> (Windows and OS/2 only)
712 Set process priority for MPlayer according to the predefined
713 priorities available under Windows and OS/2.
714 Possible values of <prio>:
715 .RSs
716 idle|belownormal|normal|abovenormal|high|realtime
718 .sp 1
720 .I WARNING:
721 Using realtime priority can cause system lockup.
725 .B \-profile <profile1,profile2,...>
726 Use the given profile(s), \-profile help displays a list of the defined profiles.
729 .B \-really\-quiet (also see \-quiet)
730 Display even less output and status messages than with \-quiet.
733 .B \-show\-profile <profile>
734 Show the description and content of a profile.
737 .B \-use\-filedir\-conf
738 Look for a file-specific configuration file in the same directory as
739 the file that is being played.
741 .I WARNING:
742 May be dangerous if playing from untrusted media.
745 .B "\-v\ \ \ \ \ "
746 Increment verbosity level, one level for each \-v
747 found on the command line.
751 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
754 .B \-autoq <quality> (use with \-vf [s]pp)
755 Dynamically changes the level of postprocessing depending on the available spare
756 CPU time.
757 The number you specify will be the maximum level used.
758 Usually you can use some big number.
759 You have to use \-vf [s]pp without parameters in order for this to work.
762 .B \-autosync <factor>
763 Gradually adjusts the A/V sync based on audio delay measurements.
764 Specifying \-autosync 0, the default, will cause frame timing to be based
765 entirely on audio delay measurements.
766 Specifying \-autosync 1 will do the same, but will subtly change the A/V
767 correction algorithm.
768 An uneven video framerate in a movie which plays fine with \-nosound can
769 often be helped by setting this to an integer value greater than 1.
770 The higher the value, the closer the timing will be to \-nosound.
771 Try \-autosync 30 to smooth out problems with sound drivers which do
772 not implement a perfect audio delay measurement.
773 With this value, if large A/V sync offsets occur, they will only take about
774 1 or 2 seconds to settle out.
775 This delay in reaction time to sudden A/V offsets should be the only
776 side-effect of turning this option on, for all sound drivers.
779 .B \-benchmark
780 Prints some statistics on CPU usage and dropped frames at the end of playback.
781 Use in combination with \-nosound and \-vo null for benchmarking only the
782 video codec.
784 .I NOTE:
785 With this option MPlayer will also ignore frame duration when playing
786 only video (you can think of that as infinite fps).
789 .B \-colorkey <number>
790 Changes the colorkey to an RGB value of your choice.
791 0x000000 is black and 0xffffff is white.
792 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
793 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
794 drivers.
797 .B \-nocolorkey
798 Disables colorkeying.
799 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
800 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
801 drivers.
804 .B \-correct\-pts
805 Switches MPlayer to a mode where timestamps for video frames
806 are calculated differently and video filters which add new frames or
807 modify timestamps of existing ones are supported.
808 The more accurate timestamps can be visible for example when playing
809 subtitles timed to scene changes with the \-ass option.
810 Without \-correct\-pts the subtitle timing will typically be off by some frames.
811 This option does not work correctly with some demuxers and codecs.
814 .B \-crash\-debug (DEBUG CODE)
815 Automatically attaches gdb upon crash or SIGTRAP.
816 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
819 .B \-doubleclick\-time
820 Time in milliseconds to recognize two consecutive button presses as
821 a double-click (default: 300).
822 Set to 0 to let your windowing system decide what a double-click is
823 (\-vo directx only).
825 .I NOTE:
826 You will get slightly different behaviour depending on whether you bind
827 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
830 .B \-edlout <filename>
831 Creates a new file and writes edit decision list (EDL) records to it.
832 During playback, the user hits 'i' to mark the start or end of a skip block.
833 This provides a starting point from which the user can fine-tune EDL entries
834 later.
835 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
838 .B \-nofixed\-vo
839 \-fixed\-vo enforces a fixed video system for multiple files (one
840 (un)initialization for all files).
841 Therefore only one window will be opened for all files.
842 Now enabled by default, use \-nofixed\-vo to disable and create a new window
843 whenever the video stream changes.
844 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
845 xmga, xv, xvidix and dfbmga.
848 .B \-framedrop (also see \-hardframedrop, experimental without \-nocorrect\-pts)
849 Skip displaying some frames to maintain A/V sync on slow systems.
850 Video filters are not applied to such frames.
851 For B-frames even decoding is skipped completely.
854 .B \-h, \-help, \-\-help
855 Show short summary of options.
858 .B \-hardframedrop (experimental without \-nocorrect\-pts)
859 More intense frame dropping (breaks decoding).
860 Leads to image distortion!
861 Note that especially the libmpeg2 decoder may crash with this,
862 so consider using "\-vc ffmpeg12,".
865 .B \-heartbeat\-cmd
866 Command that is executed every 30 seconds during playback via system() -
867 i.e.\& using the shell.
868 .sp 1
869 .I NOTE:
870 MPlayer uses this command without any checking, it is your responsibility
871 to ensure it does not cause security problems (e.g.\& make sure to use full
872 paths if "." is in your path like on Windows).
873 It also only works when playing video (i.e.\& not with \-novideo but works with \-vo null).
874 .sp 1
875 This can be "misused" to disable screensavers that do not support the proper
876 X API (also see \-stop\-xscreensaver).
877 If you think this is too complicated, ask the author of the screensaver
878 program to support the proper X APIs.
879 .sp 1
880 .I EXAMPLE for xscreensaver:
881 mplayer \-heartbeat\-cmd "xscreensaver\-command \-deactivate" file
882 .sp 1
883 .I EXAMPLE for GNOME screensaver:
884 mplayer \-heartbeat\-cmd "gnome\-screensaver\-command \-p" file
886 .PD 1
889 .B \-identify
890 Shorthand for \-msglevel identify=4.
891 Show file parameters in an easily parseable format.
892 Also prints more detailed information about subtitle and audio
893 track languages and IDs.
894 In some cases you can get more information by using \-msglevel identify=6.
895 For example, for a DVD it will list the chapters and time length of each title,
896 as well as a disk ID.
897 Combine this with \-frames 0 to suppress all output.
898 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
899 (hopefully) shellescapes the filenames.
902 .B \-idle (also see \-slave)
903 Makes MPlayer wait idly instead of quitting when there is no file to play.
904 Mostly useful in slave mode where MPlayer can be controlled
905 through input commands.
908 .B \-input <commands>
909 This option can be used to configure certain parts of the input system.
910 Paths are relative to ~/.mplayer/.
912 .I NOTE:
913 Autorepeat is currently only supported by joysticks.
914 .sp 1
915 Available commands are:
916 .sp 1
917 .PD 0
918 .RSs
919 .IPs conf=<filename>
920 Specify input configuration file other than the default
921 ~/\:.mplayer/\:input.conf.
922 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
923 .IPs ar-dev=<device>
924 Device to be used for Apple IR Remote (default is autodetected, Linux only).
925 .IPs ar-delay
926 Delay in milliseconds before we start to autorepeat a key (0 to disable).
927 .IPs ar-rate
928 Number of key presses to generate per second on autorepeat.
929 .IPs (no)default-bindings
930 Use the key bindings that MPlayer ships with by default.
931 .IPs keylist
932 Prints all keys that can be bound to commands.
933 .IPs cmdlist
934 Prints all commands that can be bound to keys.
935 .IPs js-dev
936 Specifies the joystick device to use (default: /dev/\:input/\:js0).
937 .IPs file=<filename>
938 Read commands from the given file.
939 Mostly useful with a FIFO.
941 .I NOTE:
942 When the given file is a FIFO MPlayer opens both ends so you can do
943 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
945 .PD 1
948 .B \-key\-fifo\-size <2\-65000>
949 Specify the size of the FIFO that buffers key events (default: 7).
950 A FIFO of size n can buffer (n\-1) events.
951 If it is too small some events may be lost
952 (leading to "stuck mouse buttons" and similar effects).
953 If it is too big, MPlayer may seem to hang while it
954 processes the buffered events.
955 To get the same behavior as before this option was introduced,
956 set it to 2 for Linux or 1024 for Windows.
959 .B \-lircconf <filename> (LIRC only)
960 Specifies a configuration file for LIRC (default: ~/.lircrc).
963 .B \-list\-properties
964 Print a list of the available properties.
967 .B \-loop <number>
968 Loops movie playback <number> times.
969 0 means forever.
972 .B \-menu (OSD menu only)
973 Turn on OSD menu support.
976 .B \-menu\-cfg <filename> (OSD menu only)
977 Use an alternative menu.conf.
980 .B \-menu\-chroot <path> (OSD menu only)
981 Chroot the file selection menu to a specific location.
982 .sp 1
983 .I EXAMPLE:
984 .PD 0
985 .RSs
986 .IPs "\-menu\-chroot /home"
987 Will restrict the file selection menu to /\:home and downward (i.e.\& no
988 access to / will be possible, but /home/user_name will).
990 .PD 1
993 .B \-menu\-keepdir (OSD menu only)
994 File browser starts from the last known location instead of current directory.
997 .B \-menu\-root <value> (OSD menu only)
998 Specify the main menu.
1001 .B \-menu\-startup (OSD menu only)
1002 Display the main menu at MPlayer startup.
1005 .B \-mouse\-movements
1006 Permit MPlayer to receive pointer events reported by the video
1007 output driver.
1008 Necessary to select the buttons in DVD menus.
1009 Supported for X11-based VOs (x11, xv, xvmc, etc) and the gl, gl2, direct3d and
1010 corevideo VOs.
1013 .B \-noar
1014 Turns off AppleIR remote support.
1017 .B \-noconsolecontrols
1018 Prevent MPlayer from reading key events from standard input.
1019 Useful when reading data from standard input.
1020 This is automatically enabled when \- is found on the command line.
1021 There are situations where you have to set it manually, e.g.\&
1022 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1023 in a playlist or intend to read from stdin later on via the loadfile or
1024 loadlist slave commands.
1027 .B \-nojoystick
1028 Turns off joystick support.
1031 .B \-nolirc
1032 Turns off LIRC support.
1035 .B \-nomouseinput
1036 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1037 on this option).
1039 .B \-noordered\-chapters
1040 Disable support for Matroska ordered chapters.
1041 MPlayer will not load or search for video segments from other files,
1042 and will also ignore any chapter order specified for the main file.
1045 .B \-pts\-association\-mode <mode number>
1046 Select the method used to determine which container packet timestamp
1047 corresponds to a particular output frame from the video decoder.
1048 .PD 0
1049 .RSs
1050 .IPs 0
1051 Try to pick a working mode from the ones below automatically (default)
1052 .IPs 1
1053 Use decoder reordering functionality.
1054 .IPs 2
1055 Maintain a buffer of unused pts values and use the lowest value for the frame.
1057 .PD 1
1060 .B \-rtc (RTC only)
1061 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1062 mechanism.
1063 This wakes up the process every 1/1024 seconds to check the current time.
1064 Useless with modern Linux kernels configured for desktop use as they already
1065 wake up the process with similar accuracy when using normal timed sleep.
1068 .B \-playing\-msg <string>
1069 Print out a string before starting playback.
1070 The following expansions are supported:
1071 .RSs
1072 .IPs ${NAME}
1073 Expand to the value of the property NAME.
1074 .IPs ?(NAME:TEXT)
1075 Expand TEXT only if the property NAME is available.
1076 .IPs ?(!NAME:TEXT)
1077 Expand TEXT only if the property NAME is not available.
1081 .B \-playlist <filename>
1082 Play files according to a playlist file (ASX, Winamp, SMIL, or
1083 one-file-per-line format).
1085 .I NOTE:
1086 This option is considered an entry so options found after it will apply
1087 only to the elements of this playlist.
1089 FIXME: This needs to be clarified and documented thoroughly.
1092 .B \-rtc\-device <device>
1093 Use the specified device for RTC timing.
1096 .B \-shuffle
1097 Play files in random order.
1100 .B \-slave (also see \-input)
1101 Switches on slave mode, in which MPlayer works as a backend for other programs.
1102 Instead of intercepting keyboard events, MPlayer will read commands separated
1103 by a newline (\\n) from stdin.
1105 .I NOTE:
1106 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1107 for their description.
1108 Also, this is not intended to disable other inputs, e.g.\& via the video window,
1109 use some other method like \-input nodefault\-binds:conf=/dev/null for that.
1112 .B \-softsleep
1113 Time frames by repeatedly checking the current time instead of asking the
1114 kernel to wake up MPlayer at the correct time.
1115 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1116 Comes at the price of higher CPU consumption.
1119 .B \-sstep <sec>
1120 Skip <sec> seconds after every frame.
1121 The normal framerate of the movie is kept, so playback is accelerated.
1122 Since MPlayer can only seek to the next keyframe this may be inexact.
1126 .SH "DEMUXER/STREAM OPTIONS"
1129 .B \-a52drc <level>
1130 Select the Dynamic Range Compression level for AC-3 audio streams.
1131 <level> is a float value ranging from 0 to 1, where 0 means no compression
1132 and 1 (which is the default) means full compression (make loud passages more
1133 silent and vice versa).
1134 This option only shows an effect if the AC-3 stream contains the required range
1135 compression information.
1138 .B \-aid <ID> (also see \-alang)
1139 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1140 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1141 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1142 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1143 (if present) with the chosen audio stream.
1146 .B \-ausid <ID> (also see \-alang)
1147 Select audio substream channel.
1148 Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled
1149 by the native demuxer (not by libavformat).
1150 The format type may not be correctly identified because of how this information
1151 (or lack thereof) is embedded in the stream, but it will demux correctly the
1152 audio streams when multiple substreams are present.
1153 MPlayer prints the available substream IDs when run with \-identify.
1156 .B \-alang <language code[,language code,...]> (also see \-aid)
1157 Specify a priority list of audio languages to use.
1158 Different container formats employ different language codes.
1159 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1160 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1161 MPlayer prints the available languages when run in verbose (\-v) mode.
1162 .sp 1
1163 .I EXAMPLE:
1164 .PD 0
1165 .RSs
1166 .IPs "mplayer dvd://1 \-alang hu,en"
1167 Chooses the Hungarian language track on a DVD and falls back on English if
1168 Hungarian is not available.
1169 .IPs "mplayer \-alang jpn example.mkv"
1170 Plays a Matroska file in Japanese.
1172 .PD 1
1175 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1176 Force audio demuxer type for \-audiofile.
1177 Use a '+' before the name to force it, this will skip some checks!
1178 Give the demuxer name as printed by \-audio\-demuxer help.
1179 For backward compatibility it also accepts the demuxer ID as defined in
1180 libmpdemux/\:demuxer.h.
1181 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1184 .B \-audiofile <filename>
1185 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1186 movie.
1189 .B \-audiofile\-cache <kBytes>
1190 Enables caching for the stream used by \-audiofile, using the specified
1191 amount of memory.
1194 .B \-reuse\-socket (udp:// only)
1195 Allows a socket to be reused by other processes as soon as it is closed.
1198 .B \-bandwidth <Bytes> (network only)
1199 Specify the maximum bandwidth for network streaming (for servers that are
1200 able to send content in different bitrates).
1201 Useful if you want to watch live streamed media behind a slow connection.
1202 With Real RTSP streaming, it is also used to set the maximum delivery
1203 bandwidth allowing faster cache filling and stream dumping.
1206 .B \-cache <kBytes>
1207 This option specifies how much memory (in kBytes) to use when precaching a
1208 file or URL.
1209 Especially useful on slow media.
1212 .B \-nocache
1213 Turns off caching.
1216 .B \-cache\-min <percentage>
1217 Playback will start when the cache has been filled up to <percentage>
1218 of the total.
1221 .B \-cache\-seek\-min <percentage>
1222 If a seek is to be made to a position within <percentage> of the cache size
1223 from the current position, MPlayer will wait for the cache to be filled to
1224 this position rather than performing a stream seek (default: 50).
1227 .B \-cdda <option1:option2> (CDDA only)
1228 This option can be used to tune the CD Audio reading feature of MPlayer.
1229 .sp 1
1230 Available options are:
1231 .RSs
1232 .IPs speed=<value>
1233 Set CD spin speed.
1234 .IPs paranoia=<0\-2>
1235 Set paranoia level.
1236 Values other than 0 seem to break playback of anything but the first track.
1237 .RSss
1238 0: disable checking (default)
1240 1: overlap checking only
1242 2: full data correction and verification
1243 .REss
1244 .IPs generic-dev=<value>
1245 Use specified generic SCSI device.
1246 .IPs sector-size=<value>
1247 Set atomic read size.
1248 .IPs overlap=<value>
1249 Force minimum overlap search during verification to <value> sectors.
1250 .IPs toc-bias
1251 Assume that the beginning offset of track 1 as reported in the TOC will be
1252 addressed as LBA 0.
1253 Some Toshiba drives need this for getting track boundaries correct.
1254 .IPs toc-offset=<value>
1255 Add <value> sectors to the values reported when addressing tracks.
1256 May be negative.
1257 .IPs (no)skip
1258 (Never) accept imperfect data reconstruction.
1262 .B \-cdrom\-device <path to device>
1263 Specify the CD-ROM device (default: /dev/\:cdrom).
1266 .B \-channels <number> (also see \-af channels)
1267 Request the number of playback channels (default: 2).
1268 MPlayer asks the decoder to decode the audio into as many channels as
1269 specified.
1270 Then it is up to the decoder to fulfill the requirement.
1271 This is usually only important when playing videos with AC-3 audio (like DVDs).
1272 In that case liba52 does the decoding by default and correctly downmixes the
1273 audio into the requested number of channels.
1274 To directly control the number of output channels independently of how many
1275 channels are decoded, use the channels filter.
1277 .I NOTE:
1278 This option is honored by codecs (AC-3 only), filters (surround) and audio
1279 output drivers (OSS at least).
1280 .sp 1
1281 Available options are:
1282 .sp 1
1283 .PD 0
1284 .RSs
1285 .IPs 2
1286 stereo
1287 .IPs 4
1288 surround
1289 .IPs 6
1290 full 5.1
1291 .IPs 8
1292 full 7.1
1294 .PD 1
1297 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1298 Specify which chapter to start playing at.
1299 Optionally specify which chapter to end playing at (default: 1).
1302 .B \-edition <edition ID> (Matroska, MPlayer only)
1303 Specify the edition (set of chapters) to use, where 0 is the first. If set to
1304 -1 (the default), MPlayer will choose the first edition declared as a default,
1305 or if there is no default, the first edition defined.
1308 .B \-cookies (network only)
1309 Send cookies when making HTTP requests.
1312 .B \-cookies\-file <filename> (network only)
1313 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1314 and skip reading from default locations.
1315 The file is assumed to be in Netscape format.
1318 .B \-delay <sec>
1319 audio delay in seconds (positive or negative float value)
1321 Negative values delay the audio, and positive values delay the video.
1322 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1324 .I NOTE:
1325 When used with MEncoder, this is not guaranteed to work correctly
1326 with \-ovc copy; use \-audio\-delay instead.
1329 .B \-ignore\-start
1330 Ignore the specified starting time for streams in AVI files.
1331 In MPlayer, this nullifies stream delays in files encoded with
1332 the \-audio\-delay option.
1333 During encoding, this option prevents MEncoder from transferring
1334 original stream start times to the new file; the \-audio\-delay option is
1335 not affected.
1336 Note that MEncoder sometimes adjusts stream starting times
1337 automatically to compensate for anticipated decoding delays, so do not
1338 use this option for encoding without testing it first.
1341 .B \-demuxer <[+]name>
1342 Force demuxer type.
1343 Use a '+' before the name to force it, this will skip some checks!
1344 Give the demuxer name as printed by \-demuxer help.
1345 For backward compatibility it also accepts the demuxer ID as defined in
1346 libmpdemux/\:demuxer.h.
1349 .B \-dumpaudio (MPlayer only)
1350 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1351 in most other cases the resulting file will not be playable).
1352 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1353 on the command line only the last one will work.
1356 .B \-dumpfile <filename> (MPlayer only)
1357 Specify which file MPlayer should dump to.
1358 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream.
1361 .B \-dumpstream (MPlayer only)
1362 Dumps the raw stream to ./stream.dump.
1363 Useful when ripping from DVD or network.
1364 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1365 on the command line only the last one will work.
1368 .B \-dumpvideo (MPlayer only)
1369 Dump raw compressed video stream to ./stream.dump (not very usable).
1370 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1371 on the command line only the last one will work.
1374 .B \-dvbin <options> (DVB only)
1375 Pass the following parameters to the DVB input module, in order to override
1376 the default ones:
1377 .sp 1
1378 .PD 0
1379 .RSs
1380 .IPs card=<1\-4>
1381 Specifies using card number 1\-4 (default: 1).
1382 .IPs file=<filename>
1383 Instructs MPlayer to read the channels list from <filename>.
1384 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1385 or ~/.mplayer/\:channels.conf as a last resort.
1386 .IPs timeout=<1\-30>
1387 Maximum number of seconds to wait when trying to tune a
1388 frequency before giving up (default: 30).
1390 .PD 1
1393 .B \-dvd\-device <path to device> (DVD only)
1394 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1395 You can also specify a directory that contains files previously copied directly
1396 from a DVD (with e.g.\& vobcopy).
1399 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1400 Try to limit DVD speed (default: 0, no change).
1401 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1402 10800KB/s.
1403 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1404 quiet and fast enough.
1405 MPlayer resets the speed to the drive default value on close.
1406 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1407 10800KB/s.
1409 .I NOTE:
1410 You need write access to the DVD device to change the speed.
1413 .B \-dvdangle <angle ID> (DVD only)
1414 Some DVD discs contain scenes that can be viewed from multiple angles.
1415 Here you can tell MPlayer which angles to use (default: 1).
1418 .B \-edl <filename>
1419 Enables edit decision list (EDL) actions during playback.
1420 Video will be skipped over and audio will be muted and unmuted according to
1421 the entries in the given file.
1422 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1423 on how to use this.
1426 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1427 Stop at given time or byte position.
1429 .I NOTE:
1430 Byte position is enabled only for MEncoder and will not be accurate, as it can
1431 only stop at a frame boundary.
1432 When used in conjunction with \-ss option, \-endpos time will shift forward by
1433 seconds specified with \-ss.
1434 .sp 1
1435 .I EXAMPLE:
1436 .PD 0
1437 .RSs
1438 .IPs "\-endpos 56"
1439 Stop at 56 seconds.
1440 .IPs "\-endpos 01:10:00"
1441 Stop at 1 hour 10 minutes.
1442 .IPs "\-ss 10 \-endpos 56"
1443 Stop at 1 minute 6 seconds.
1444 .IPs "\-endpos 100mb"
1445 Encode only 100 MB.
1447 .PD 1
1450 .B \-forceidx
1451 Force index rebuilding.
1452 Useful for files with broken index (A/V desync, etc).
1453 This will enable seeking in files where seeking was not possible.
1454 You can fix the index permanently with MEncoder (see the documentation).
1456 .I NOTE:
1457 This option only works if the underlying media supports seeking
1458 (i.e.\& not with stdin, pipe, etc).
1461 .B \-fps <float value>
1462 Override video framerate.
1463 Useful if the original value is wrong or missing.
1466 .B \-frames <number>
1467 Play/\:convert only first <number> frames, then quit.
1470 .B \-hr\-mp3\-seek (MP3 only)
1471 Hi-res MP3 seeking.
1472 Enabled when playing from an external MP3 file, as we need to seek
1473 to the very exact position to keep A/V sync.
1474 Can be slow especially when seeking backwards since it has to rewind
1475 to the beginning to find an exact frame position.
1478 .B \-idx (also see \-forceidx)
1479 Rebuilds index of files if no index was found, allowing seeking.
1480 Useful with broken/\:incomplete downloads, or badly created files.
1482 .I NOTE:
1483 This option only works if the underlying media supports seeking
1484 (i.e.\& not with stdin, pipe, etc).
1487 .B \-noidx
1488 Skip rebuilding index file.
1489 MEncoder skips writing the index with this option.
1492 .B \-ipv4\-only\-proxy (network only)
1493 Skip the proxy for IPv6 addresses.
1494 It will still be used for IPv4 connections.
1497 .B \-loadidx <index file>
1498 The file from which to read the video index data saved by \-saveidx.
1499 This index will be used for seeking, overriding any index data
1500 contained in the AVI itself.
1501 MPlayer will not prevent you from loading an index file generated
1502 from a different AVI, but this is sure to cause unfavorable results.
1504 .I NOTE:
1505 This option is obsolete now that MPlayer has OpenDML support.
1508 .B \-mc <seconds/frame>
1509 maximum A-V sync correction per frame (in seconds)
1512 .B \-mf <option1:option2:...>
1513 Used when decoding from multiple PNG or JPEG files.
1514 .sp 1
1515 Available options are:
1516 .sp 1
1517 .PD 0
1518 .RSs
1519 .IPs w=<value>
1520 input file width (default: autodetect)
1521 .IPs h=<value>
1522 input file height (default: autodetect)
1523 .IPs fps=<value>
1524 output fps (default: 25)
1525 .IPs type=<value>
1526 input file type (available: jpeg, png, tga, sgi)
1528 .PD 1
1531 .B \-ni (AVI only)
1532 Force usage of non-interleaved AVI parser (fixes playback
1533 of some bad AVI files).
1536 .B \-nobps (AVI only)
1537 Do not use average byte/\:second value for A-V sync.
1538 Helps with some AVI files with broken header.
1541 .B \-noextbased
1542 Disables extension-based demuxer selection.
1543 By default, when the file type (demuxer) cannot be detected reliably
1544 (the file has no header or it is not reliable enough), the filename
1545 extension is used to select the demuxer.
1546 Always falls back on content-based demuxer selection.
1549 .B \-passwd <password> (also see \-user) (network only)
1550 Specify password for HTTP authentication.
1553 .B \-prefer\-ipv4 (network only)
1554 Use IPv4 on network connections.
1555 Falls back on IPv6 automatically.
1558 .B \-prefer\-ipv6 (IPv6 network only)
1559 Use IPv6 on network connections.
1560 Falls back on IPv4 automatically.
1563 .B \-psprobe <byte position>
1564 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1565 how many bytes in the stream you want MPlayer to scan in order to identify
1566 the video codec used.
1567 This option is needed to play EVO or VDR files containing H.264 streams.
1570 .B \-pvr <option1:option2:...> (PVR only)
1571 This option tunes various encoding properties of the PVR capture module.
1572 It has to be used with any hardware MPEG encoder based card supported by the
1573 V4L2 driver.
1574 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1575 cards are known as PVR capture cards.
1576 Be aware that only Linux 2.6.18 kernel
1577 and above is able to handle MPEG stream through V4L2 layer.
1578 For hardware capture of an MPEG stream and watching it with
1579 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1580 .sp 1
1581 Available options are:
1582 .RSs
1583 .IPs aspect=<0\-3>
1584 Specify input aspect ratio:
1585 .RSss
1586 0: 1:1
1588 1: 4:3 (default)
1590 2: 16:9
1592 3: 2.21:1
1593 .REss
1594 .IPs arate=<32000\-48000>
1595 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1596 and 48000 Hz).
1597 .IPs alayer=<1\-3>
1598 Specify MPEG audio layer encoding (default: 2).
1599 .IPs abitrate=<32\-448>
1600 Specify audio encoding bitrate in kbps (default: 384).
1601 .IPs amode=<value>
1602 Specify audio encoding mode.
1603 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1604 .IPs vbitrate=<value>
1605 Specify average video bitrate encoding in Mbps (default: 6).
1606 .IPs vmode=<value>
1607 Specify video encoding mode:
1608 .RSss
1609 vbr: Variable BitRate (default)
1611 cbr: Constant BitRate
1612 .REss
1613 .IPs vpeak=<value>
1614 Specify peak video bitrate encoding in Mbps
1615 (only useful for VBR encoding, default: 9.6).
1616 .IPs fmt=<value>
1617 Choose an MPEG format for encoding:
1618 .RSss
1619 ps:    MPEG-2 Program Stream (default)
1621 ts:    MPEG-2 Transport Stream
1623 mpeg1: MPEG-1 System Stream
1625 vcd:   Video CD compatible stream
1627 svcd:  Super Video CD compatible stream
1629 dvd:   DVD compatible stream
1630 .REss
1632 .PD 1
1635 .B \-radio <option1:option2:...> (radio only)
1636 These options set various parameters of the radio capture module.
1637 For listening to radio with MPlayer use 'radio://<frequency>'
1638 (if channels option is not given) or 'radio://<channel_number>'
1639 (if channels option is given) as a movie URL.
1640 You can see allowed frequency range by running MPlayer with '\-v'.
1641 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1642 If the capture keyword is not given you can listen to radio
1643 using the line-in cable only.
1644 Using capture to listen is not recommended due to synchronization
1645 problems, which makes this process uncomfortable.
1646 .sp 1
1647 Available options are:
1648 .RSs
1649 .IPs device=<value>
1650 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1651 .IPs driver=<value>
1652 Radio driver to use (default: v4l2 if available, otherwise v4l).
1653 Currently, v4l and v4l2 drivers are supported.
1654 .IPs volume=<0..100>
1655 sound volume for radio device (default 100)
1656 .IPs "freq_min=<value> (*BSD BT848 only)"
1657 minimum allowed frequency (default: 87.50)
1658 .IPs "freq_max=<value> (*BSD BT848 only)"
1659 maximum allowed frequency (default: 108.00)
1660 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1661 Set channel list.
1662 Use _ for spaces in names (or play with quoting ;-).
1663 The channel names will then be written using OSD and the slave commands
1664 radio_step_channel and radio_set_channel will be usable for
1665 a remote control (see LIRC).
1666 If given, number in movie URL will be treated as channel position in
1667 channel list.
1669 .I EXAMPLE:
1670 radio://1, radio://104.4, radio_set_channel 1
1671 .IPs "adevice=<value> (radio capture only)"
1672 Name of device to capture sound from.
1673 Without such a name capture will be disabled,
1674 even if the capture keyword appears in the URL.
1675 For ALSA devices use it in the form hw=<card>.<device>.
1676 If the device name contains a '=', the module will use
1677 ALSA to capture, otherwise OSS.
1678 .IPs "arate=<value> (radio capture only)"
1679 Rate in samples per second (default: 44100).
1681 .I NOTE:
1682 When using audio capture set also \-rawaudio rate=<value> option
1683 with the same value as arate.
1684 If you have problems with sound speed (runs too quickly), try to play
1685 with different rate values (e.g.\& 48000,44100,32000,...).
1686 .IPs "achannels=<value> (radio capture only)"
1687 Number of audio channels to capture.
1691 .B \-rawaudio <option1:option2:...>
1692 This option lets you play raw audio files.
1693 You have to use \-demuxer rawaudio as well.
1694 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1695 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1696 .sp 1
1697 Available options are:
1698 .sp 1
1699 .PD 0
1700 .RSs
1701 .IPs channels=<value>
1702 number of channels
1703 .IPs rate=<value>
1704 rate in samples per second
1705 .IPs samplesize=<value>
1706 sample size in bytes
1707 .IPs bitrate=<value>
1708 bitrate for rawaudio files
1709 .IPs format=<value>
1710 fourcc in hex
1712 .PD 1
1715 .B \-rawvideo <option1:option2:...>
1716 This option lets you play raw video files.
1717 You have to use \-demuxer rawvideo as well.
1718 .sp 1
1719 Available options are:
1720 .sp 1
1721 .PD 0
1722 .RSs
1723 .IPs fps=<value>
1724 rate in frames per second (default: 25.0)
1725 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1726 set standard image size
1727 .IPs w=<value>
1728 image width in pixels
1729 .IPs h=<value>
1730 image height in pixels
1731 .IPs i420|yv12|yuy2|y8
1732 set colorspace
1733 .IPs format=<value>
1734 colorspace (fourcc) in hex or string constant.
1735 Use \-rawvideo format=help for a list of possible strings.
1736 .IPs size=<value>
1737 frame size in Bytes
1738 .REss
1739 .sp 1
1741 .I EXAMPLE:
1743 .PD 0
1744 .RSs
1745 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1746 Play the famous "foreman" sample video.
1747 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1748 Play a raw YUV sample.
1750 .PD 1
1753 .B \-rtsp\-port
1754 Used with 'rtsp://' URLs to force the client's port number.
1755 This option may be useful if you are behind a router and want to forward
1756 the RTSP stream from the server to a specific client.
1759 .B \-rtsp\-destination
1760 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1761 This option may be useful with some RTSP server which do not
1762 send RTP packets to the right interface.
1763 If the connection to the RTSP server fails, use \-v to see
1764 which IP address MPlayer tries to bind to and try to force
1765 it to one assigned to your computer instead.
1768 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1769 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1770 packets be streamed over TCP (using the same TCP connection as RTSP).
1771 This option may be useful if you have a broken internet connection that does
1772 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1775 .B \-saveidx <filename>
1776 Force index rebuilding and dump the index to <filename>.
1777 Currently this only works with AVI files.
1779 .I NOTE:
1780 This option is obsolete now that MPlayer has OpenDML support.
1783 .B \-sb <byte position> (also see \-ss)
1784 Seek to byte position.
1785 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1788 .B \-speed <0.01\-100>
1789 Slow down or speed up playback by the factor given as parameter.
1790 Not guaranteed to work correctly with \-oac copy.
1793 .B \-srate <Hz>
1794 Select the output sample rate to be used
1795 (of course sound cards have limits on this).
1796 If the sample frequency selected is different from that
1797 of the current media, the resample or lavcresample audio filter will be inserted
1798 into the audio filter layer to compensate for the difference.
1799 The type of resampling can be controlled by the \-af\-adv option.
1800 The default is fast resampling that may cause distortion.
1803 .B \-ss <time> (also see \-sb)
1804 Seek to given time position.
1805 .sp 1
1806 .I EXAMPLE:
1807 .PD 0
1808 .RSs
1809 .IPs "\-ss 56"
1810 Seeks to 56 seconds.
1811 .IPs "\-ss 01:10:00"
1812 Seeks to 1 hour 10 min.
1814 .PD 1
1817 .B \-tskeepbroken
1818 Tells MPlayer not to discard TS packets reported as broken in the stream.
1819 Sometimes needed to play corrupted MPEG-TS files.
1822 .B \-tsprobe <byte position>
1823 When playing an MPEG-TS stream, this option lets you specify how many
1824 bytes in the stream you want MPlayer to search for the desired
1825 audio and video IDs.
1828 .B \-tsprog <1\-65534>
1829 When playing an MPEG-TS stream, you can specify with this option which
1830 program (if present) you want to play.
1831 Can be used with \-vid and \-aid.
1834 .B \-tv <option1:option2:...> (TV/\:PVR only)
1835 This option tunes various properties of the TV capture module.
1836 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1837 or even 'tv://<channel_name> (see option channels for channel_name below)
1838 as a movie URL.
1839 You can also use 'tv:///<input_id>' to start watching a
1840 movie from a composite or S-Video input (see option input for details).
1841 .sp 1
1842 Available options are:
1843 .RSs
1844 .IPs noaudio
1845 no sound
1846 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1847 If signal strength reported by device is less than this value,
1848 audio and video will be muted.
1849 In most cases automute=100 will be enough.
1850 Default is 0 (automute disabled).
1851 .IPs driver=<value>
1852 See \-tv driver=help for a list of compiled-in TV input drivers.
1853 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1854 .IPs device=<value>
1855 Specify TV device (default: /dev/\:video0).
1856 .I NOTE:
1857 For the bsdbt848 driver you can provide both bktr and tuner device
1858 names separating them with a comma, tuner after
1859 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1860 .IPs input=<value>
1861 Specify input (default: 0 (TV), see console output for available inputs).
1862 .IPs freq=<value>
1863 Specify the frequency to set the tuner to (e.g.\& 511.250).
1864 Not compatible with the channels parameter.
1865 .IPs outfmt=<value>
1866 Specify the output format of the tuner with a preset value supported by the
1867 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1868 arbitrary format given as hex value.
1869 Try outfmt=help for a list of all available formats.
1870 .IPs width=<value>
1871 output window width
1872 .IPs height=<value>
1873 output window height
1874 .IPs fps=<value>
1875 framerate at which to capture video (frames per second)
1876 .IPs buffersize=<value>
1877 maximum size of the capture buffer in megabytes (default: dynamical)
1878 .IPs norm=<value>
1879 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1880 For v4l2, see the console output for a list of all available norms,
1881 also see the normid option below.
1882 .IPs "normid=<value> (v4l2 only)"
1883 Sets the TV norm to the given numeric ID.
1884 The TV norm depends on the capture card.
1885 See the console output for a list of available TV norms.
1886 .IPs channel=<value>
1887 Set tuner to <value> channel.
1888 .IPs chanlist=<value>
1889 available: europe-east, europe-west, us-bcast, us-cable, etc
1890 .IPs channels=<chan>\-<name>[=<norm>],<chan>\-<name>[=<norm>],...
1891 Set names for channels.
1892 .I NOTE:
1893 If <chan> is an integer greater than 1000, it will be treated as frequency (in kHz)
1894 rather than channel name from frequency table.
1896 Use _ for spaces in names (or play with quoting ;-).
1897 The channel names will then be written using OSD, and the slave commands
1898 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1899 a remote control (see LIRC).
1900 Not compatible with the frequency parameter.
1902 .I NOTE:
1903 The channel number will then be the position in the 'channels' list,
1904 beginning with 1.
1906 .I EXAMPLE:
1907 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1908 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1909 Set the image equalizer on the card.
1910 .IPs audiorate=<value>
1911 Set audio capture bitrate.
1912 .IPs forceaudio
1913 Capture audio even if there are no audio sources reported by v4l.
1914 .IPs "alsa\ "
1915 Capture from ALSA.
1916 .IPs amode=<0\-3>
1917 Choose an audio mode:
1918 .RSss
1919 0: mono
1921 1: stereo
1923 2: language 1
1925 3: language 2
1926 .REss
1927 .IPs forcechan=<1\-2>
1928 By default, the count of recorded audio channels is determined automatically
1929 by querying the audio mode from the TV card.
1930 This option allows forcing stereo/\:mono recording regardless of the amode
1931 option and the values returned by v4l.
1932 This can be used for troubleshooting when the TV card is unable to report the
1933 current audio mode.
1934 .IPs adevice=<value>
1935 Set an audio device.
1936 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1937 You must replace any ':' by a '.' in the hardware ID for ALSA.
1938 .IPs audioid=<value>
1939 Choose an audio output of the capture card, if it has more than one.
1940 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1941 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1942 These options set parameters of the mixer on the video capture card.
1943 They will have no effect, if your card does not have one.
1944 For v4l2 50 maps to the default value of the
1945 control, as reported by the driver.
1946 .IPs "gain=<0\-100> (v4l2)"
1947 Set gain control for video devices (usually webcams) to the desired
1948 value and switch off automatic control.
1949 A value of 0 enables automatic control.
1950 If this option is omitted, gain control will not be modified.
1951 .IPs immediatemode=<bool>
1952 A value of 0 means capture and buffer audio and video together
1953 (default for MEncoder).
1954 A value of 1 (default for MPlayer) means to do video capture only and let the
1955 audio go through a loopback cable from the TV card to the sound card.
1956 .IPs mjpeg
1957 Use hardware MJPEG compression (if the card supports it).
1958 When using this option, you do not need to specify the width and height
1959 of the output window, because MPlayer will determine it automatically
1960 from the decimation value (see below).
1961 .IPs decimation=<1|2|4>
1962 choose the size of the picture that will be compressed by hardware
1963 MJPEG compression:
1964 .RSss
1965 1: full size
1966     704x576    PAL
1967     704x480    NTSC
1969 2: medium size
1970     352x288    PAL
1971     352x240    NTSC
1973 4: small size
1974     176x144    PAL
1975     176x120    NTSC
1976 .REss
1977 .IPs quality=<0\-100>
1978 Choose the quality of the JPEG compression
1979 (< 60 recommended for full size).
1980 .IPs tdevice=<value>
1981 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
1982 .IPs tformat=<format>
1983 Specify TV teletext display format (default: 0):
1984 .RSss
1985 0: opaque
1987 1: transparent
1989 2: opaque with inverted colors
1991 3: transparent with inverted colors
1992 .REss
1993 .IPs tpage=<100\-899>
1994 Specify initial TV teletext page number (default: 100).
1995 .IPs tlang=<\-1\-127>
1996 Specify default teletext language code (default: 0), which will be used
1997 as primary language until a type 28 packet is received.
1998 Useful when the teletext system uses a non-latin character set, but language
1999 codes are not transmitted via teletext type 28 packets for some reason.
2000 To see a list of supported language codes set this option to \-1.
2001 .IPs "hidden_video_renderer (dshow only)"
2002 Terminate stream with video renderer instead of Null renderer (default: off).
2003 Will help if video freezes but audio does not.
2004 .I NOTE:
2005 May not work with \-vo directx and \-vf crop combination.
2006 .IPs "hidden_vp_renderer (dshow only)"
2007 Terminate VideoPort pin stream with video renderer
2008 instead of removing it from the graph (default: off).
2009 Useful if your card has a VideoPort pin and video is choppy.
2010 .I NOTE:
2011 May not work with \-vo directx and \-vf crop combination.
2012 .IPs "system_clock (dshow only)"
2013 Use the system clock as sync source instead of the default graph clock
2014 (usually the clock from one of the live sources in graph).
2015 .IPs "normalize_audio_chunks (dshow only)"
2016 Create audio chunks with a time length equal to
2017 video frame time length (default: off).
2018 Some audio cards create audio chunks about 0.5s in size, resulting in
2019 choppy video when using immediatemode=0.
2023 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
2024 Tune the TV channel scanner.
2025 MPlayer will also print value for "-tv channels=" option,
2026 including existing and just found channels.
2027 .sp 1
2028 Available suboptions are:
2029 .RSs
2030 .IPs autostart
2031 Begin channel scanning immediately after startup (default: disabled).
2032 .IPs period=<0.1\-2.0>
2033 Specify delay in seconds before switching to next channel (default: 0.5).
2034 Lower values will cause faster scanning, but can detect
2035 inactive TV channels as active.
2036 .IPs threshold=<1\-100>
2037 Threshold value for the signal strength (in percent), as reported
2038 by the device (default: 50).
2039 A signal strength higher than this value will indicate that the
2040 currently scanning channel is active.
2044 .B \-user <username> (also see \-passwd) (network only)
2045 Specify username for HTTP authentication.
2048 .B \-user\-agent <string>
2049 Use <string> as user agent for HTTP streaming.
2052 .B \-vid <ID>
2053 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2054 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
2055 (if present) with the chosen video stream.
2058 .B \-vivo <suboption> (DEBUG CODE)
2059 Force audio parameters for the VIVO demuxer (for debugging purposes).
2060 FIXME: Document this.
2064 .SH "OSD/SUBTITLE OPTIONS"
2065 .I NOTE:
2066 Also see \-vf expand.
2069 .B \-ass (FreeType only)
2070 Turn on SSA/ASS subtitle rendering.
2071 With this option, libass will be used for SSA/ASS
2072 external subtitles and Matroska tracks.
2074 .I NOTE:
2075 Unlike normal OSD, libass uses fontconfig by default. To disable it, use
2076 \-nofontconfig.
2079 .B \-ass\-border\-color <value>
2080 Sets the border (outline) color for text subtitles.
2081 The color format is RRGGBBAA.
2084 .B \-ass\-bottom\-margin <value>
2085 Adds a black band at the bottom of the frame.
2086 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2089 .B \-ass\-color <value>
2090 Sets the color for text subtitles.
2091 The color format is RRGGBBAA.
2094 .B \-ass\-font\-scale <value>
2095 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2098 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2099 Override some style or script info parameters.
2101 .I EXAMPLE:
2102 .PD 0
2103 .RSs
2104 \-ass\-force\-style FontName=Arial,Default.Bold=1
2106 \-ass\-force\-style PlayResY=768
2108 .PD 1
2111 .B \-ass\-hinting <type>
2112 Set hinting type.
2113 <type> can be:
2114 .PD 0
2115 .RSs
2116 .IPs 0
2117 no hinting
2118 .IPs 1
2119 FreeType autohinter, light mode
2120 .IPs 2
2121 FreeType autohinter, normal mode
2122 .IPs 3
2123 font native hinter
2124 .IPs "0-3 + 4"
2125 The same, but hinting will only be performed if the OSD is rendered at
2126 screen resolution and will therefore not be scaled.
2128 .RSs
2129 The default value is 5 (use light hinter for unscaled OSD and no hinting otherwise).
2131 .PD 1
2134 .B \-ass\-line\-spacing <value>
2135 Set line spacing value for SSA/ASS renderer.
2138 .B \-ass\-styles <filename>
2139 Load all SSA/ASS styles found in the specified file and use them for
2140 rendering text subtitles.
2141 The syntax of the file is exactly like the
2142 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2145 .B \-ass\-top\-margin <value>
2146 Adds a black band at the top of the frame.
2147 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2150 .B \-ass\-use\-margins
2151 Enables placing toptitles and subtitles in black borders when they
2152 are available.
2155 .B \-dumpjacosub (MPlayer only)
2156 Convert the given subtitle (specified with the \-sub option) to the time-based
2157 JACOsub subtitle format.
2158 Creates a dumpsub.js file in the current directory.
2161 .B \-dumpmicrodvdsub (MPlayer only)
2162 Convert the given subtitle (specified with the \-sub option) to the
2163 MicroDVD subtitle format.
2164 Creates a dumpsub.sub file in the current directory.
2167 .B \-dumpmpsub (MPlayer only)
2168 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2169 subtitle format, MPsub.
2170 Creates a dump.mpsub file in the current directory.
2173 .B \-dumpsami (MPlayer only)
2174 Convert the given subtitle (specified with the \-sub option) to the time-based
2175 SAMI subtitle format.
2176 Creates a dumpsub.smi file in the current directory.
2179 .B \-dumpsrtsub (MPlayer only)
2180 Convert the given subtitle (specified with the \-sub option) to the time-based
2181 SubViewer (SRT) subtitle format.
2182 Creates a dumpsub.srt file in the current directory.
2184 .I NOTE:
2185 Some broken hardware players choke on SRT subtitle files with Unix
2186 line endings.
2187 If you are unlucky enough to have such a box, pass your subtitle
2188 files through unix2dos or a similar program to replace Unix line
2189 endings with DOS/Windows line endings.
2192 .B \-dumpsub (MPlayer only) (BETA CODE)
2193 Dumps the subtitle substream from VOB streams.
2194 Also see the \-dump*sub and \-vobsubout* options.
2197 .B \-noembeddedfonts
2198 Disables use of fonts embedded in Matroska containers and ASS scripts (default: enabled).
2199 These fonts can be used for SSA/ASS subtitle
2200 rendering (\-ass option).
2203 .B \-ffactor <number>
2204 Resample the font alphamap.
2205 Can be:
2206 .PD 0
2207 .RSs
2208 .IPs 0
2209 plain white fonts
2210 .IPs 0.75
2211 very narrow black outline (default)
2212 .IPs 1
2213 narrow black outline
2214 .IPs 10
2215 bold black outline
2217 .PD 1
2220 .B \-flip\-hebrew (FriBiDi only)
2221 Turns on flipping subtitles using FriBiDi.
2224 .B \-noflip\-hebrew\-commas
2225 Change FriBiDi's assumptions about the placements of commas in subtitles.
2226 Use this if commas in subtitles are shown at the start of a sentence
2227 instead of at the end.
2230 .B \-font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
2231 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2232 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2233 ~/.mplayer/\:subfont.ttf).
2235 .I NOTE:
2236 With FreeType, this option determines the path to the text font file.
2237 With Fontconfig, this option determines the Fontconfig font pattern.
2238 .sp 1
2239 .I EXAMPLE:
2240 .PD 0
2241 .RSs
2242 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2244 \-font ~/\:.mplayer/\:arialuni.ttf
2246 \-font 'Bitstream Vera Sans'
2248 \-font 'Bitstream Vera Sans:style=Bold'
2250 .PD 1
2253 .B \-fontconfig (fontconfig only)
2254 Enables the usage of fontconfig managed fonts.
2256 .I NOTE:
2257 By default fontconfig is used for libass-rendered subtitles and not used for
2258 OSD. With \-fontconfig it is used for both libass and OSD, with \-nofontconfig
2259 it is not used at all.
2262 .B \-forcedsubsonly
2263 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2264 \-slang.
2267 .B \-fribidi\-charset <charset name> (FriBiDi only)
2268 Specifies the character set that will be passed to FriBiDi when
2269 decoding non-UTF-8 subtitles (default: ISO8859-8).
2272 .B \-ifo <VOBsub IFO file>
2273 Indicate the file that will be used to load palette and frame size for VOBsub
2274 subtitles.
2277 .B \-noautosub
2278 Turns off automatic subtitle file loading.
2281 .B \-osd\-duration <time>
2282 Set the duration of the OSD messages in ms (default: 1000).
2285 .B \-osdlevel <0\-3> (MPlayer only)
2286 Specifies which mode the OSD should start in.
2287 .PD 0
2288 .RSs
2289 .IPs 0
2290 subtitles only
2291 .IPs 1
2292 volume + seek (default)
2293 .IPs 2
2294 volume + seek + timer + percentage
2295 .IPs 3
2296 volume + seek + timer + percentage + total time
2298 .PD 1
2301 .B \-overlapsub
2302 Allows the next subtitle to be displayed while the current one is
2303 still visible (default is to enable the support only for specific
2304 formats).
2307 .B \-sid <ID> (also see \-slang, \-vobsubid)
2308 Display the subtitle stream specified by <ID> (0\-31).
2309 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2310 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2313 .B \-nosub
2314 Disables any otherwise auto-selected subtitles (as e.g.\& the Matroska/mkv
2315 demuxer supports).
2318 .B \-slang <language code[,language code,...]> (also see \-sid)
2319 Specify a priority list of subtitle languages to use.
2320 Different container formats employ different language codes.
2321 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2322 three letter language codes while OGM uses a free-form identifier.
2323 MPlayer prints the available languages when run in verbose (\-v) mode.
2324 .sp 1
2325 .I EXAMPLE:
2326 .PD 0
2327 .RSs
2328 .IPs "mplayer dvd://1 \-slang hu,en"
2329 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2330 Hungarian is not available.
2331 .IPs "mplayer \-slang jpn example.mkv"
2332 Plays a Matroska file with Japanese subtitles.
2334 .PD 1
2337 .B \-spuaa <mode>
2338 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2339 A value of 16 may be added to <mode> in order to force scaling even
2340 when original and scaled frame size already match.
2341 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2342 Available modes are:
2343 .PD 0
2344 .RSs
2345 .IPs 0
2346 none (fastest, very ugly)
2347 .IPs 1
2348 approximate (broken?)
2349 .IPs 2
2350 full (slow)
2351 .IPs 3
2352 bilinear (default, fast and not too bad)
2353 .IPs 4
2354 uses swscaler gaussian blur (looks very good)
2356 .PD 1
2359 .B \-spualign <\-1\-2>
2360 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2361 .PD 0
2362 .RSs
2363 .IPs "\-1"
2364 original position
2365 .IPs " 0"
2366 Align at top (original behavior, default).
2367 .IPs " 1"
2368 Align at center.
2369 .IPs " 2"
2370 Align at bottom.
2372 .PD 1
2375 .B \-spugauss <0.0\-3.0>
2376 Variance parameter of gaussian used by \-spuaa 4.
2377 Higher means more blur (default: 1.0).
2380 .B \-sub <subtitlefile1,subtitlefile2,...>
2381 Use/\:display these subtitle files.
2382 Only one file can be displayed at the same time.
2385 .B \-sub\-bg\-alpha <0\-255>
2386 Specify the alpha channel value for subtitles and OSD backgrounds.
2387 Big values mean more transparency.
2388 0 means completely transparent.
2391 .B \-sub\-bg\-color <0\-255>
2392 Specify the color value for subtitles and OSD backgrounds.
2393 Currently subtitles are grayscale so this value is equivalent to the
2394 intensity of the color.
2395 255 means white and 0 black.
2398 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2399 Force subtitle demuxer type for \-subfile.
2400 Use a '+' before the name to force it, this will skip some checks!
2401 Give the demuxer name as printed by \-sub\-demuxer help.
2402 For backward compatibility it also accepts the demuxer ID as defined in
2403 subreader.h.
2406 .B \-sub\-fuzziness <mode>
2407 Adjust matching fuzziness when searching for subtitles:
2408 .PD 0
2409 .RSs
2410 .IPs 0
2411 exact match
2412 .IPs 1
2413 Load all subs containing movie name.
2414 .IPs 2
2415 Load all subs in the current directory.
2417 .PD 1
2420 .B \-sub\-no\-text\-pp
2421 Disables any kind of text post processing done after loading the subtitles.
2422 Used for debug purposes.
2425 .B \-subalign <0\-2>
2426 Specify which edge of the subtitles should be aligned at the height
2427 given by \-subpos.
2428 .PD 0
2429 .RSs
2430 .IPs 0
2431 Align subtitle top edge (original behavior).
2432 .IPs 1
2433 Align subtitle center.
2434 .IPs 2
2435 Align subtitle bottom edge (default).
2437 .PD 1
2440 .B "\-subcc \ "
2441 Display DVD Closed Caption (CC) subtitles.
2442 These are
2443 .B not
2444 the VOB subtitles, these are special ASCII subtitles for the
2445 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2446 CC subtitles have not been spotted on DVDs from other regions so far.
2449 .B \-subcp <codepage> (iconv only)
2450 If your system supports iconv(3), you can use this option to
2451 specify the subtitle codepage.
2452 .sp 1
2453 .I EXAMPLE:
2454 .PD 0
2455 .RSs
2456 \-subcp latin2
2458 \-subcp cp1250
2460 .PD 1
2463 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2464 You can specify your language using a two letter language code to
2465 make ENCA detect the codepage automatically.
2466 If unsure, enter anything and watch mplayer \-v output for available
2467 languages.
2468 Fallback codepage specifies the codepage to use, when autodetection fails.
2469 .sp 1
2470 .I EXAMPLE:
2471 .PD 0
2472 .RSs
2473 .IPs "\-subcp enca:cs:latin2"
2474 Guess the encoding, assuming the subtitles are Czech, fall back on
2475 latin 2, if the detection fails.
2476 .IPs "\-subcp enca:pl:cp1250"
2477 Guess the encoding for Polish, fall back on cp1250.
2479 .PD 1
2482 .B \-subdelay <sec>
2483 Delays subtitles by <sec> seconds.
2484 Can be negative.
2487 .B \-subfile <filename> (BETA CODE)
2488 Currently useless.
2489 Same as \-audiofile, but for subtitle streams (OggDS?).
2492 .B \-subfont <path to font (FreeType), font pattern (Fontconfig)> (FreeType only)
2493 Sets the subtitle font (see \-font).
2494 If no \-subfont is given, \-font is used.
2497 .B \-subfont\-autoscale <0\-3> (FreeType only)
2498 Sets the autoscale mode.
2500 .I NOTE:
2501 0 means that text scale and OSD scale are font heights in points.
2502 .sp 1
2503 The mode can be:
2504 .sp 1
2505 .PD 0
2506 .RSs
2507 .IPs 0
2508 no autoscale
2509 .IPs 1
2510 proportional to movie height
2511 .IPs 2
2512 proportional to movie width
2513 .IPs 3
2514 proportional to movie diagonal (default)
2516 .PD 1
2519 .B \-subfont\-blur <0\-8> (FreeType only)
2520 Sets the font blur radius (default: 2).
2523 .B \-subfont\-encoding <value> (FreeType only)
2524 Sets the font encoding.
2525 When set to 'unicode', all the glyphs from the font file will be rendered and
2526 unicode will be used (default: unicode).
2529 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2530 Sets the autoscale coefficient of the OSD elements (default: 6).
2533 .B \-subfont\-outline <0\-8> (FreeType only)
2534 Sets the font outline thickness (default: 2).
2537 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2538 Sets the subtitle text autoscale coefficient as percentage of the
2539 screen size (default: 5).
2542 .B \-subfps <rate>
2543 Specify the framerate of the subtitle file (default: movie fps).
2545 .I NOTE:
2546 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2547 slows them down for time-based ones.
2550 .B \-subpos <0\-100> (useful with \-vf expand)
2551 Specify the position of subtitles on the screen.
2552 The value is the vertical position of the subtitle in % of the screen height.
2555 .B \-subwidth <10\-100>
2556 Specify the maximum width of subtitles on the screen.
2557 Useful for TV-out.
2558 The value is the width of the subtitle in % of the screen width.
2561 .B \-noterm\-osd
2562 Disable the display of OSD messages on the console when no video output is
2563 available.
2566 .B \-term\-osd\-esc <escape sequence>
2567 Specify the escape sequence to use before writing an OSD message on the
2568 console.
2569 The escape sequence should move the pointer to the beginning of the line
2570 used for the OSD and clear it (default: ^[[A\\r^[[K).
2573 .B \-unicode
2574 Tells MPlayer to handle the subtitle file as unicode.
2577 .B \-unrarexec <path to unrar executable> (not supported on MingW)
2578 Specify the path to the unrar executable so MPlayer can use it to access
2579 rar-compressed VOBsub files (default: not set, so the feature is off).
2580 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2583 .B "\-utf8 \ \ "
2584 Tells MPlayer to handle the subtitle file as UTF-8.
2587 .B \-vobsub <VOBsub file without extension>
2588 Specify a VOBsub file to use for subtitles.
2589 Has to be the full pathname without extension, i.e.\& without
2590 the '.idx', '.ifo' or '.sub'.
2593 .B \-vobsubid <0\-31>
2594 Specify the VOBsub subtitle ID.
2598 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2601 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2602 Override audio driver/\:card buffer size detection.
2605 .B \-format <format> (also see the format audio filter)
2606 Select the sample format used for output from the audio filter
2607 layer to the sound card.
2608 The values that <format> can adopt are listed below in the
2609 description of the format audio filter.
2612 .B \-mixer <device>
2613 Use a mixer device different from the default /dev/\:mixer.
2614 For ALSA this is the mixer name.
2617 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2618 This option will tell MPlayer to use a different channel for controlling
2619 volume than the default PCM.
2620 Options for OSS include
2621 .B vol, pcm, line.
2622 For a complete list of options look for SOUND_DEVICE_NAMES in
2623 /usr/\:include/\:linux/\:soundcard.h.
2624 For ALSA you can use the names e.g.\& alsamixer displays, like
2625 .B Master, Line, PCM.
2627 .I NOTE:
2628 ALSA mixer channel names followed by a number must be specified in the
2629 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2630 be converted to
2631 .BR PCM,1 .
2634 .B \-softvol
2635 Force the use of the software mixer, instead of using the sound card
2636 mixer.
2639 .B \-softvol\-max <10.0\-10000.0>
2640 Set the maximum amplification level in percent (default: 110).
2641 A value of 200 will allow you to adjust the volume up to a maximum of
2642 double the current level.
2643 With values below 100 the initial volume (which is 100%) will be above
2644 the maximum, which e.g.\& the OSD cannot display correctly.
2647 .B \-volstep <0\-100>
2648 Set the step size of mixer volume changes in percent of the whole range
2649 (default: 3).
2652 .B \-volume <-1\-100> (also see \-af volume)
2653 Set the startup volume in the mixer, either hardware or software (if
2654 used with \-softvol).
2655 A value of -1 (the default) will not change the volume.
2659 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2660 Audio output drivers are interfaces to different audio output facilities.
2661 The syntax is:
2664 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2665 Specify a priority list of audio output drivers to be used.
2667 If the list has a trailing ',' MPlayer will fall back on drivers not
2668 contained in the list.
2669 Suboptions are optional and can mostly be omitted.
2671 .I NOTE:
2672 See \-ao help for a list of compiled-in audio output drivers.
2673 .sp 1
2674 .I EXAMPLE:
2675 .PD 0
2676 .RSs
2677 .IPs "\-ao alsa,oss,"
2678 Try the ALSA driver, then the OSS driver, then others.
2679 .IPs "\-ao alsa:noblock:device=hw=0.3"
2680 Sets noblock-mode and the device-name as first card, fourth device.
2682 .PD 1
2683 .sp 1
2684 Available audio output drivers are:
2687 .B "alsa\ \ \ "
2688 ALSA 0.9/1.x audio output driver
2689 .PD 0
2690 .RSs
2691 .IPs noblock
2692 Sets noblock-mode.
2693 .IPs device=<device>
2694 Sets the device name.
2695 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2696 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2697 you really know how to set it correctly.
2699 .PD 1
2702 .B "alsa5\ \ "
2703 ALSA 0.5 audio output driver
2706 .B "oss\ \ \ \ "
2707 OSS audio output driver
2708 .PD 0
2709 .RSs
2710 .IPs <dsp-device>
2711 Sets the audio output device (default: /dev/\:dsp).
2712 .IPs <mixer-device>
2713 Sets the audio mixer device (default: /dev/\:mixer).
2714 .IPs <mixer-channel>
2715 Sets the audio mixer channel (default: pcm).
2717 .PD 1
2720 .B sdl (SDL only)
2721 highly platform independent SDL (Simple Directmedia Layer) library
2722 audio output driver
2723 .PD 0
2724 .RSs
2725 .IPs <driver>
2726 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2728 .PD 1
2731 .B "arts\ \ \ "
2732 audio output through the aRts daemon
2735 .B "esd\ \ \ \ "
2736 audio output through the ESD daemon
2737 .PD 0
2738 .RSs
2739 .IPs <server>
2740 Explicitly choose the ESD server to use (default: localhost).
2742 .PD 1
2745 .B "jack\ \ \ \ "
2746 audio output through JACK (Jack Audio Connection Kit)
2747 .PD 0
2748 .RSs
2749 .IPs port=<name>
2750 Connects to the ports with the given name (default: physical ports).
2751 .IPs name=<client name>
2752 Client name that is passed to JACK (default: MPlayer [<PID>]).
2753 Useful if you want to have certain connections established automatically.
2754 .IPs (no)estimate
2755 Estimate the audio delay, supposed to make the video playback smoother
2756 (default: enabled).
2757 .IPs (no)autostart
2758 Automatically start jackd if necessary (default: disabled).
2759 Note that this seems unreliable and will spam stdout with server messages.
2761 .PD 1
2764 .B "nas\ \ \ \ "
2765 audio output through NAS
2768 .B coreaudio (Mac OS X only)
2769 native Mac OS X audio output driver
2772 .B "openal\ "
2773 Experimental OpenAL audio output driver
2776 .B "pulse\ \ "
2777 PulseAudio audio output driver
2778 .PD 0
2779 .RSs
2780 .IPs "[<host>][:<output sink>]"
2781 Specify the host and optionally output sink to use.
2782 An empty <host> string uses a local connection, "localhost"
2783 uses network transfer (most likely not what you want).
2785 .PD 1
2788 .B sgi (SGI only)
2789 native SGI audio output driver
2790 .PD 0
2791 .RSs
2792 .IPs "<output device name>"
2793 Explicitly choose the output device/\:interface to use
2794 (default: system-wide default).
2795 For example, 'Analog Out' or 'Digital Out'.
2797 .PD 1
2800 .B sun (Sun only)
2801 native Sun audio output driver
2802 .PD 0
2803 .RSs
2804 .IPs <device>
2805 Explicitly choose the audio device to use (default: /dev/\:audio).
2807 .PD 1
2810 .B win32 (Windows only)
2811 native Windows waveout audio output driver
2814 .B dsound (Windows only)
2815 DirectX DirectSound audio output driver
2816 .PD 0
2817 .RSs
2818 .IPs device=<devicenum>
2819 Sets the device number to use.
2820 Playing a file with \-v will show a list of available devices.
2822 .PD 1
2825 .B dart (OS/2 only)
2826 OS/2 DART audio output driver
2827 .PD 0
2828 .RSs
2829 .IPs (no)share
2830 Open DART in shareable or exclusive mode.
2831 .IPs bufsize=<size>
2832 Set buffer size to <size> in samples (default: 2048).
2834 .PD 1
2837 .B dxr2 (also see \-dxr2) (DXR2 only)
2838 Creative DXR2 specific output driver
2841 .B ivtv (IVTV only)
2842 IVTV specific MPEG audio output driver.
2843 Works with \-ac hwmpa only.
2846 .B v4l2 (requires Linux 2.6.22+ kernel)
2847 Audio output driver for V4L2 cards with hardware MPEG decoder.
2850 .B mpegpes (DVB only)
2851 Audio output driver for DVB cards that writes the output to an MPEG-PES
2852 file if no DVB card is installed.
2853 .PD 0
2854 .RSs
2855 .IPs card=<1\-4>
2856 DVB card to use if more than one card is present.
2857 If not specified MPlayer will search the first usable card.
2858 .IPs file=<filename>
2859 output filename
2861 .PD 1
2864 .B "null\ \ \ "
2865 Produces no audio output but maintains video playback speed.
2866 Use \-nosound for benchmarking.
2869 .B "pcm\ \ \ \ "
2870 raw PCM/wave file writer audio output
2871 .PD 0
2872 .RSs
2873 .IPs (no)waveheader
2874 Include or do not include the wave header (default: included).
2875 When not included, raw PCM will be generated.
2876 .IPs file=<filename>
2877 Write the sound to <filename> instead of the default
2878 audiodump.wav.
2879 If nowaveheader is specified, the default is audiodump.pcm.
2880 .IPs "fast\ "
2881 Try to dump faster than realtime.
2882 Make sure the output does not get truncated (usually with
2883 "Too many video packets in buffer" message).
2884 It is normal that you get a "Your system is too SLOW to play this!" message.
2886 .PD 1
2889 .B "plugin\ \ "
2890 plugin audio output driver
2894 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
2897 .B \-adapter <value>
2898 Set the graphics card that will receive the image.
2899 You can get a list of available cards when you run this option with \-v.
2900 Currently only works with the directx video output driver.
2903 .B \-bpp <depth>
2904 Override the autodetected color depth.
2905 Only supported by the fbdev, dga, svga, vesa video output drivers.
2908 .B \-border
2909 Play movie with window border and decorations.
2910 Since this is on by default, use \-noborder to disable the standard window
2911 decorations.
2914 .B \-brightness <\-100\-100>
2915 Adjust the brightness of the video signal (default: 0).
2916 Not supported by all video output drivers.
2919 .B \-contrast <\-100\-100>
2920 Adjust the contrast of the video signal (default: 0).
2921 Not supported by all video output drivers.
2924 .B \-display <name> (X11 only)
2925 Specify the hostname and display number of the X server you want to display
2927 .sp 1
2928 .I EXAMPLE:
2929 .PD 0
2930 .RSs
2931 \-display xtest.localdomain:0
2933 .PD 1
2936 .B "\-dr \ \ \ "
2937 Turns on direct rendering (not supported by all codecs and video outputs)
2939 .I WARNING:
2940 May cause OSD/SUB corruption!
2943 .B \-dxr2 <option1:option2:...>
2944 This option is used to control the dxr2 video output driver.
2945 .RSs
2946 .IPs ar-mode=<value>
2947 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
2948 .IPs iec958-encoded
2949 Set iec958 output mode to encoded.
2950 .IPs iec958-decoded
2951 Set iec958 output mode to decoded (default).
2952 .IPs macrovision=<value>
2953 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
2954 3 = agc 4 colorstripe)
2955 .IPs "mute\ "
2956 mute sound output
2957 .IPs unmute
2958 unmute sound output
2959 .IPs ucode=<value>
2960 path to the microcode
2963 .sp 1
2964 .I TV output
2966 .RSs
2967 .IPs 75ire
2968 enable 7.5 IRE output mode
2969 .IPs no75ire
2970 disable 7.5 IRE output mode (default)
2971 .IPs "bw\ \ \ "
2972 b/w TV output
2973 .IPs color
2974 color TV output (default)
2975 .IPs interlaced
2976 interlaced TV output (default)
2977 .IPs nointerlaced
2978 disable interlaced TV output
2979 .IPs norm=<value>
2980 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
2981 .IPs square-pixel
2982 set pixel mode to square
2983 .IPs ccir601-pixel
2984 set pixel mode to ccir601
2987 .sp 1
2988 .I overlay
2990 .RSs
2991 .IPs cr-left=<0\-500>
2992 Set the left cropping value (default: 50).
2993 .IPs cr-right=<0\-500>
2994 Set the right cropping value (default: 300).
2995 .IPs cr-top=<0\-500>
2996 Set the top cropping value (default: 0).
2997 .IPs cr-bottom=<0\-500>
2998 Set the bottom cropping value (default: 0).
2999 .IPs ck-[r|g|b]=<0\-255>
3000 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
3001 .IPs ck-[r|g|b]min=<0\-255>
3002 minimum value for the respective color key
3003 .IPs ck-[r|g|b]max=<0\-255>
3004 maximum value for the respective color key
3005 .IPs ignore-cache
3006 Ignore cached overlay settings.
3007 .IPs update-cache
3008 Update cached overlay settings.
3009 .IPs ol-osd
3010 Enable overlay onscreen display.
3011 .IPs nool-osd
3012 Disable overlay onscreen display (default).
3013 .IPs ol[h|w|x|y]-cor=<\-20\-20>
3014 Adjust the overlay size (h,w) and position (x,y) in case it does not
3015 match the window perfectly (default: 0).
3016 .IPs overlay
3017 Activate overlay (default).
3018 .IPs nooverlay
3019 Activate TV-out.
3020 .IPs overlay-ratio=<1\-2500>
3021 Tune the overlay (default: 1000).
3025 .B \-fbmode <modename> (\-vo fbdev only)
3026 Change video mode to the one that is labeled as <modename> in
3027 /etc/\:fb.modes.
3029 .I NOTE:
3030 VESA framebuffer does not support mode changing.
3033 .B \-fbmodeconfig <filename> (\-vo fbdev only)
3034 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
3037 .B \-force\-window\-position
3038 Forcefully move MPlayer's video output window to default location whenever
3039 there is a change in video parameters, video stream or file.
3040 This used to be the default behavior.
3041 Currently only affects X11 VOs.
3044 .B \-fs (also see \-zoom)
3045 Fullscreen playback (centers movie, and paints black bands around it).
3046 Not supported by all video output drivers.
3049 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3050 Try this option if you still experience fullscreen problems.
3053 .B \-fstype <type1,type2,...> (X11 only)
3054 Specify a priority list of fullscreen modes to be used.
3055 You can negate the modes by prefixing them with '\-'.
3056 If you experience problems like the fullscreen window being covered
3057 by other windows try using a different order.
3059 .I NOTE:
3060 See \-fstype help for a full list of available modes.
3061 .sp 1
3062 The available types are:
3063 .sp 1
3064 .PD 0
3065 .RSs
3066 .IPs above
3067 Use the _NETWM_STATE_ABOVE hint if available.
3068 .IPs below
3069 Use the _NETWM_STATE_BELOW hint if available.
3070 .IPs fullscreen
3071 Use the _NETWM_STATE_FULLSCREEN hint if available.
3072 .IPs layer
3073 Use the _WIN_LAYER hint with the default layer.
3074 .IPs layer=<0...15>
3075 Use the _WIN_LAYER hint with the given layer number.
3076 .IPs netwm
3077 Force NETWM style.
3078 .IPs "none\ "
3079 Clear the list of modes; you can add modes to enable afterward.
3080 .IPs stays_on_top
3081 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3082 .REss
3083 .sp 1
3085 .I EXAMPLE:
3087 .PD 0
3088 .RSs
3089 .IPs layer,stays_on_top,above,fullscreen
3090 Default order, will be used as a fallback if incorrect or
3091 unsupported modes are specified.
3092 .IPs \-fullscreen
3093 Fixes fullscreen switching on OpenBox 1.x.
3095 .PD 1
3098 .B \-geometry x[%][:y[%]] or [WxH][+x+y]
3099 Adjust where the output is on the screen initially.
3100 The x and y specifications are in pixels measured from the top-left of the
3101 screen to the top-left of the image being displayed, however if a percentage
3102 sign is given after the argument it turns the value into a percentage of the
3103 screen size in that direction.
3104 It also supports the standard X11 \-geometry option format.
3105 If an external window is specified using the \-wid option, then the x and
3106 y coordinates are relative to the top-left corner of the window rather
3107 than the screen.
3108 The coordinates are relative to the screen given with \-xineramascreen for
3109 the video output drivers that fully support \-xineramascreen (direct3d, gl, gl2,
3110 vdpau, x11, xv, xvmc, corevideo).
3112 .I NOTE:
3113 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
3114 gl, gl2, directx, fbdev, tdfxfb and corevideo video output drivers.
3115 .sp 1
3116 .I EXAMPLE:
3117 .PD 0
3118 .RSs
3119 .IPs 50:40
3120 Places the window at x=50, y=40.
3121 .IPs 50%:50%
3122 Places the window in the middle of the screen.
3123 .IPs "100%\ "
3124 Places the window at the middle of the right edge of the screen.
3125 .IPs 100%:100%
3126 Places the window at the bottom right corner of the screen.
3128 .PD 1
3131 .B \-hue <\-100\-100>
3132 Adjust the hue of the video signal (default: 0).
3133 You can get a colored negative of the image with this option.
3134 Not supported by all video output drivers.
3137 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3138 Specify the dotclock or pixelclock range of the monitor.
3141 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3142 Specify the horizontal frequency range of the monitor.
3145 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3146 Specify the vertical frequency range of the monitor.
3149 .B \-monitoraspect <ratio> (also see \-aspect)
3150 Set the aspect ratio of your monitor or TV screen.
3151 A value of 0 disables a previous setting (e.g.\& in the config file).
3152 Overrides the \-monitorpixelaspect setting if enabled.
3153 .sp 1
3154 .I EXAMPLE:
3155 .PD 0
3156 .RSs
3157 \-monitoraspect 4:3  or 1.3333
3159 \-monitoraspect 16:9 or 1.7777
3161 .PD 1
3164 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3165 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3166 A value of 1 means square pixels
3167 (correct for (almost?) all LCDs).
3170 .B \-name (X11 only)
3171 Set the window class name.
3174 .B \-nodouble
3175 Disables double buffering, mostly for debugging purposes.
3176 Double buffering fixes flicker by storing two frames in memory, and
3177 displaying one while decoding another.
3178 It can affect OSD negatively, but often removes OSD flickering.
3181 .B \-nograbpointer
3182 Do not grab the mouse pointer after a video mode change (\-vm).
3183 Useful for multihead setups.
3186 .B \-nokeepaspect
3187 Do not keep window aspect ratio when resizing windows.
3188 By default MPlayer tries to keep the correct video aspect ratio by
3189 instructing the window manager to maintain window aspect when resizing,
3190 and by adding black bars if the window manager nevertheless allows
3191 window shape to change.
3192 This option disables window manager aspect hints and scales the video
3193 to completely fill the window without regard for aspect ratio.
3196 .B "\-ontop\ "
3197 Makes the player window stay on top of other windows.
3198 Supported by video output drivers which use X11, except SDL,
3199 as well as directx, corevideo, quartz, ggi and gl2.
3202 .B \-panscan <0.0\-1.0>
3203 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3204 movie to make it fit a 4:3 display without black bands).
3205 The range controls how much of the image is cropped.
3206 Only works with the xv, xmga, mga, gl, gl2, quartz, corevideo and xvidix
3207 video output drivers.
3209 .I NOTE:
3210 Values between \-1 and 0 are allowed as well, but highly experimental
3211 and may crash or worse.
3212 Use at your own risk!
3215 .B \-panscanrange <\-19.0\-99.0> (experimental)
3216 Change the range of the pan-and-scan functionality (default: 1).
3217 Positive values mean multiples of the default range.
3218 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3219 E.g.\& \-panscanrange \-3 allows a zoom factor of up to 4.
3220 This feature is experimental.
3221 Do not report bugs unless you are using \-vo gl.
3224 .B \-refreshrate <Hz>
3225 Set the monitor refreshrate in Hz.
3226 Currently only supported by \-vo directx combined with the \-vm option.
3229 .B \-rootwin
3230 Play movie in the root window (desktop background).
3231 Desktop background images may cover the movie window, though.
3232 Only works with the x11, xv, xmga, xvidix, quartz, corevideo and directx video output drivers.
3235 .B \-saturation <\-100\-100>
3236 Adjust the saturation of the video signal (default: 0).
3237 You can get grayscale output with this option.
3238 Not supported by all video output drivers.
3241 .B \-screenh <pixels>
3242 Specify the screen height for video output drivers which
3243 do not know the screen resolution like fbdev, x11 and TV-out.
3246 .B \-screenw <pixels>
3247 Specify the screen width for video output drivers which
3248 do not know the screen resolution like fbdev, x11 and TV-out.
3251 .B \-stop\-xscreensaver (X11 only)
3252 Turns off xscreensaver at startup and turns it on again on exit.
3253 If your screensaver supports neither the XSS nor XResetScreenSaver
3254 API please use \-heartbeat\-cmd instead.
3257 .B \-title (also see \-use\-filename\-title)
3258 Set the window title.
3259 Supported by X11-based video output drivers.
3262 .B \-use\-filename\-title (also see \-title)
3263 Set the window title using the media filename, when not set with \-title.
3264 Supported by X11-based video output drivers.
3267 .B "\-vm \ \ \ "
3268 Try to change to a different video mode.
3269 Supported by the dga, x11, xv, sdl and directx video output drivers.
3270 If used with the directx video output driver the \-screenw,
3271 \-screenh, \-bpp and \-refreshrate options can be used to set
3272 the new display mode.
3275 .B "\-vsync \ \ "
3276 Enables VBI for the vesa, dfbmga and svga video output drivers.
3279 .B \-wid <window ID> (X11, OpenGL and DirectX only)
3280 This tells MPlayer to attach to an existing window.
3281 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3282 This option fills the given window completely, thus aspect scaling,
3283 panscan, etc are no longer handled by MPlayer but must be managed by the
3284 application that created the window.
3287 .B \-xineramascreen <\-2\-...>
3288 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3289 displays) this option tells MPlayer which screen to display the movie on.
3290 A value of \-2 means fullscreen across the whole virtual display (in this case
3291 Xinerama information is completely ignored), \-1 means
3292 fullscreen on the display the window currently is on.
3293 The initial position set via the \-geometry option is relative to the
3294 specified screen.
3295 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3296 This option is not suitable to only set the startup screen (because
3297 it will always display on the given screen in fullscreen mode),
3298 \-geometry is the best that is available for that purpose
3299 currently.
3300 Supported by at least the direct3d, gl, gl2, x11, xv and corevideo video output
3301 drivers.
3304 .B \-zrbw (\-vo zr only)
3305 Display in black and white.
3306 For optimal performance, this can be combined with '\-lavdopts gray'.
3309 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3310 Select a part of the input image to display, multiple occurrences
3311 of this option switch on cinerama mode.
3312 In cinerama mode the movie is distributed over more than one TV
3313 (or beamer) to create a larger image.
3314 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3315 card should at least have a \-zrdev in addition to the \-zrcrop.
3316 For examples, see the output of \-zrhelp and the Zr section of the
3317 documentation.
3320 .B \-zrdev <device> (\-vo zr only)
3321 Specify the device special file that belongs to your MJPEG card, by default
3322 the zr video output driver takes the first v4l device it can find.
3325 .B \-zrfd (\-vo zr only)
3326 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3327 happens if the hardware scaler can stretch the image to its original size.
3328 Use this option to force decimation.
3331 .B \-zrhdec <1|2|4> (\-vo zr only)
3332 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3333 line/\:pixel of the input image to the MJPEG card and use the scaler
3334 of the MJPEG card to stretch the image to its original size.
3337 .B \-zrhelp (\-vo zr only)
3338 Display a list of all \-zr* options, their default values and a
3339 cinerama mode example.
3342 .B \-zrnorm <norm> (\-vo zr only)
3343 Specify the TV norm as PAL or NTSC (default: no change).
3346 .B \-zrquality <1\-20> (\-vo zr only)
3347 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3350 .B \-zrvdec <1|2|4> (\-vo zr only)
3351 Vertical decimation: Ask the driver to send only every 2nd or 4th
3352 line/\:pixel of the input image to the MJPEG card and use the scaler
3353 of the MJPEG card to stretch the image to its original size.
3356 .B \-zrxdoff <x display offset> (\-vo zr only)
3357 If the movie is smaller than the TV screen, this option specifies the x
3358 offset from the upper-left corner of the TV screen (default: centered).
3361 .B \-zrydoff <y display offset> (\-vo zr only)
3362 If the movie is smaller than the TV screen, this option specifies the y
3363 offset from the upper-left corner of the TV screen (default: centered).
3367 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3368 Video output drivers are interfaces to different video output facilities.
3369 The syntax is:
3372 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3373 Specify a priority list of video output drivers to be used.
3375 If the list has a trailing ',' MPlayer will fall back on drivers not
3376 contained in the list.
3377 Suboptions are optional and can mostly be omitted.
3379 .I NOTE:
3380 See \-vo help for a list of compiled-in video output drivers.
3381 .sp 1
3382 .I EXAMPLE:
3383 .PD 0
3384 .RSs
3385 .IPs "\-vo xmga,xv,"
3386 Try the Matrox X11 driver, then the Xv driver, then others.
3387 .IPs "\-vo directx:noaccel"
3388 Uses the DirectX driver with acceleration features turned off.
3390 .PD 1
3391 .sp 1
3392 Available video output drivers are:
3395 .B xv (X11 only)
3396 Uses the XVideo extension of XFree86 4.x to enable hardware
3397 accelerated playback.
3398 If you cannot use a hardware specific driver, this is probably
3399 the best option.
3400 For information about what colorkey is used and how it is drawn run MPlayer
3401 with \-v option and look out for the lines tagged with [xv common] at the
3402 beginning.
3403 .PD 0
3404 .RSs
3405 .IPs adaptor=<number>
3406 Select a specific XVideo adaptor (check xvinfo results).
3407 .IPs port=<number>
3408 Select a specific XVideo port.
3409 .IPs ck=<cur|use|set>
3410 Select the source from which the colorkey is taken (default: cur).
3411 .RSss
3412 .IPs cur
3413 The default takes the colorkey currently set in Xv.
3414 .IPs use
3415 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3416 it).
3417 .IPs set
3418 Same as use but also sets the supplied colorkey.
3420 .IPs ck-method=<man|bg|auto>
3421 Sets the colorkey drawing method (default: man).
3422 .RSss
3423 .IPs man
3424 Draw the colorkey manually (reduces flicker in some cases).
3425 .IPs bg
3426 Set the colorkey as window background.
3427 .IPs auto
3428 Let Xv draw the colorkey.
3431 .PD 1
3434 .B x11 (X11 only)
3435 Shared memory video output driver without hardware acceleration that
3436 works whenever X11 is present.
3439 .B xover (X11 only)
3440 Adds X11 support to all overlay based video output drivers.
3441 Currently only supported by tdfx_vid.
3442 .PD 0
3443 .RSs
3444 .IPs <vo_driver>
3445 Select the driver to use as source to overlay on top of X11.
3447 .PD 1
3450 .B vdpau (with \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau, ffh264vdpau
3451 or ffodivxvdpau)
3452 Video output that uses VDPAU to decode video via hardware.
3453 Also supports displaying of software-decoded video.
3454 .PD 0
3455 .RSs
3456 .IPs sharpen=<\-1\-1>
3457 For positive values, apply a sharpening algorithm to the video,
3458 for negative values a blurring algorithm (default: 0).
3459 .IPs denoise=<0\-1>
3460 Apply a noise reduction algorithm to the video (default: 0, no noise reduction).
3461 .IPs deint=<0\-4>
3462 Select the deinterlacer (default: 0).
3463 All modes > 0 respect \-field\-dominance.
3464 .RSss
3465 .IPs 0
3466 no deinterlacing
3467 .IPs 1
3468 Show only first field, similar to \-vf field.
3469 .IPs 2
3470 Bob deinterlacing, similar to \-vf tfields=1.
3471 .IPs 3
3472 motion adaptive temporal deinterlacing
3473 May lead to A/V desync with slow video hardware and/or high resolution.
3474 This is the default if "D" is used to enable deinterlacing.
3475 .IPs 4
3476 motion adaptive temporal deinterlacing with edge-guided spatial interpolation
3477 Needs fast video hardware.
3479 .IPs chroma\-deint
3480 Makes temporal deinterlacers operate both on luma and chroma (default).
3481 Use nochroma\-deint to solely use luma and speed up advanced deinterlacing.
3482 Useful with slow video memory.
3483 .IPs pullup
3484 Try to apply inverse telecine, needs motion adaptive temporal deinterlacing.
3485 .IPs colorspace
3486 Select the color space for YUV to RGB conversion.
3487 In general BT.601 should be used for standard definition (SD) content and
3488 BT.709 for high definition (HD) content.
3489 Using incorrect color space results in slightly under or over saturated and
3490 shifted colors.
3491 .RSss
3492 .IPs 0
3493 Guess the color space based on video resolution.
3494 Video with width >= 1280 or height > 576 is assumed to be HD and BT.709 color
3495 space will be used.
3496 .IPs 1
3497 Use ITU-R BT.601 color space (default).
3498 .IPs 2
3499 Use ITU-R BT.709 color space.
3500 .IPs 3
3501 Use SMPTE-240M color space.
3503 .IPs hqscaling
3504 .RSss
3505 .IPs 0
3506 Use default VDPAU scaling (default).
3507 .IPs 1\-9
3508 Apply high quality VDPAU scaling (needs capable hardware).
3510 .IPs fps=<number>
3511 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).
3512 Default 0 means use autodetected value.
3513 A positive value is interpreted as a refresh rate in Hz and overrides the autodetected value.
3514 A negative value disables all timing adjustment and framedrop logic.
3515 .IPs queuetime_windowed=<number>
3516 .IPs queuetime_fs=<number>
3517 Use VDPAU's presentation queue functionality to queue future video frame
3518 changes at most this many milliseconds in advance (default: 50).
3519 This makes MPlayer's flip timing less sensitive to system CPU load and allows
3520 it to start decoding the next frame slightly earlier which can reduce jitter
3521 caused by individual slow-to-decode frames.
3522 However the NVIDIA graphics drivers can make other window behavior such as
3523 window moves choppy if VDPAU is using the blit queue (mainly happens
3524 if you have the composite extension enabled) and this feature is active.
3525 If this happens on your system and you care about it then you can set the
3526 time to 0 to disable this feature.
3527 The settings to use in windowed and fullscreen mode are separate because there
3528 should be less reason to disable this for fullscreen mode (as the driver issue
3529 shouldn't affect the video itself).
3531 .PD 1
3534 .B xvmc (X11 with \-vc ffmpeg12mc only)
3535 Video output driver that uses the XvMC (X Video Motion Compensation)
3536 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3537 .PD 0
3538 .RSs
3539 .IPs adaptor=<number>
3540 Select a specific XVideo adaptor (check xvinfo results).
3541 .IPs port=<number>
3542 Select a specific XVideo port.
3543 .IPs (no)benchmark
3544 Disables image display.
3545 Necessary for proper benchmarking of drivers that change
3546 image buffers on monitor retrace only (nVidia).
3547 Default is not to disable image display (nobenchmark).
3548 .IPs (no)bobdeint
3549 Very simple deinterlacer.
3550 Might not look better than \-vf tfields=1,
3551 but it is the only deinterlacer for xvmc (default: nobobdeint).
3552 .IPs (no)queue
3553 Queue frames for display to allow more parallel work of the video hardware.
3554 May add a small (not noticeable) constant A/V desync (default: noqueue).
3555 .IPs (no)sleep
3556 Use sleep function while waiting for rendering to finish
3557 (not recommended on Linux) (default: nosleep).
3558 .IPs ck=cur|use|set
3559 Same as \-vo xv:ck (see \-vo xv).
3560 .IPs ck-method=man|bg|auto
3561 Same as \-vo xv:ck-method (see \-vo xv).
3563 .PD 1
3566 .B dga (X11 only)
3567 Play video through the XFree86 Direct Graphics Access extension.
3568 Considered obsolete.
3571 .B sdl (SDL only, buggy/outdated)
3572 Highly platform independent SDL (Simple Directmedia Layer) library
3573 video output driver.
3574 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3575 any effect on SDL.
3576 Note that it has several minor bugs (\-vm/\-novm is mostly ignored,
3577 \-fs behaves like \-novm should, window is in top-left corner when
3578 returning from fullscreen, panscan is not supported, ...).
3579 .PD 0
3580 .RSs
3581 .IPs driver=<driver>
3582 Explicitly choose the SDL driver to use.
3583 .IPs (no)forcexv
3584 Use XVideo through the sdl video output driver (default: forcexv).
3585 .IPs (no)hwaccel
3586 Use hardware accelerated scaler (default: hwaccel).
3588 .PD 1
3591 .B "vidix\ \ "
3592 VIDIX (VIDeo Interface for *niX) is an interface to the
3593 video acceleration features of different graphics cards.
3594 Very fast video output driver on cards that support it.
3595 .PD 0
3596 .RSs
3597 .IPs <subdevice>
3598 Explicitly choose the VIDIX subdevice driver to use.
3599 Available subdevice drivers are cyberblade, ivtv, mach64,
3600 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, s3, sh_veu,
3601 sis_vid and unichrome.
3603 .PD 1
3606 .B xvidix (X11 only)
3607 X11 frontend for VIDIX
3608 .PD 0
3609 .RSs
3610 .IPs <subdevice>
3611 same as vidix
3613 .PD 1
3616 .B "cvidix\ "
3617 Generic and platform independent VIDIX frontend, can even run in a
3618 text console with nVidia cards.
3619 .PD 0
3620 .RSs
3621 .IPs <subdevice>
3622 same as vidix
3624 .PD 1
3627 .B winvidix (Windows only)
3628 Windows frontend for VIDIX
3629 .PD 0
3630 .RSs
3631 .IPs <subdevice>
3632 same as vidix
3634 .PD 1
3637 .B direct3d (Windows only) (BETA CODE!)
3638 Video output driver that uses the Direct3D interface (useful for Vista).
3641 .B directx (Windows only)
3642 Video output driver that uses the DirectX interface.
3643 .PD 0
3644 .RSs
3645 .IPs noaccel
3646 Turns off hardware acceleration.
3647 Try this option if you have display problems.
3649 .PD 1
3652 .B kva (OS/2 only)
3653 Video output driver that uses the libkva interface.
3654 .PD 0
3655 .RSs
3656 .IPs snap
3657 Force SNAP mode.
3658 .IPs wo
3659 Force WarpOverlay! mode.
3660 .IPs dive
3661 Force DIVE mode.
3662 .IPs (no)t23
3663 Enable or disable workaround for T23 laptop (default: disabled).
3664 Try to enable this option if your video card supports upscaling only.
3666 .PD 1
3669 .B quartz (Mac OS X only)
3670 Mac OS X Quartz video output driver.
3671 Under some circumstances, it might be more efficient to force a
3672 packed YUV output format, with e.g.\& \-vf format=yuy2.
3673 .PD 0
3674 .RSs
3675 .IPs device_id=<number>
3676 Choose the display device to use in fullscreen.
3677 .IPs fs_res=<width>:<height>
3678 Specify the fullscreen resolution (useful on slow systems).
3680 .PD 1
3683 .B corevideo (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3684 Mac OS X CoreVideo video output driver
3685 .PD 0
3686 .RSs
3687 .IPs device_id=<number>
3688 Choose the display device to use for fullscreen or set it to \-1 to
3689 always use the same screen the video window is on (default: \-1 \- auto).
3690 .IPs shared_buffer
3691 Write output to a shared memory buffer instead of displaying it and
3692 try to open an existing NSConnection for communication with a GUI.
3693 .IPs buffer_name=<name>
3694 Name of the shared buffer created with shm_open as well as the name of
3695 the NSConnection MPlayer will try to open (default: "mplayerosx").
3696 Setting buffer_name implicitly enables shared_buffer.
3698 .PD 1
3701 .B fbdev (Linux only)
3702 Uses the kernel framebuffer to play video.
3703 .PD 0
3704 .RSs
3705 .IPs <device>
3706 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3707 name of the VIDIX subdevice if the device name starts with 'vidix'
3708 (e.g.\& 'vidixsis_vid' for the sis driver).
3710 .PD 1
3713 .B fbdev2 (Linux only)
3714 Uses the kernel framebuffer to play video,
3715 alternative implementation.
3716 .PD 0
3717 .RSs
3718 .IPs <device>
3719 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3721 .PD 1
3724 .B "vesa\ \ \ "
3725 Very general video output driver that should work on any VESA VBE 2.0
3726 compatible card.
3727 .PD 0
3728 .RSs
3729 .IPs (no)dga
3730 Turns DGA mode on or off (default: on).
3731 .IPs neotv_pal
3732 Activate the NeoMagic TV out and set it to PAL norm.
3733 .IPs neotv_ntsc
3734 Activate the NeoMagic TV out and set it to NTSC norm.
3735 .IPs vidix
3736 Use the VIDIX driver.
3737 .IPs "lvo:\ \ \ "
3738 Activate the Linux Video Overlay on top of VESA mode.
3740 .PD 1
3743 .B "svga\ \ \ "
3744 Play video using the SVGA library.
3745 .PD 0
3746 .RSs
3747 .IPs "<video mode>"
3748 Specify video mode to use.
3749 The mode can be given in a <width>x<height>x<colors> format,
3750 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3751 .IPs bbosd
3752 Draw OSD into black bands below the movie (slower).
3753 .IPs native
3754 Use only native drawing functions.
3755 This avoids direct rendering, OSD and hardware acceleration.
3756 .IPs retrace
3757 Force frame switch on vertical retrace.
3758 Usable only with \-double.
3759 It has the same effect as the \-vsync option.
3760 .IPs "sq\ \ \ "
3761 Try to select a video mode with square pixels.
3762 .IPs vidix
3763 Use svga with VIDIX.
3765 .PD 1
3768 .B "gl\ \ \ \ \ "
3769 OpenGL video output driver, simple version.
3770 Video size must be smaller than
3771 the maximum texture size of your OpenGL implementation.
3772 Intended to work even with the most basic OpenGL implementations,
3773 but also makes use of newer extensions, which allow support for more
3774 colorspaces and direct rendering.
3775 For optimal speed try something similar to
3777 \-vo gl:yuv=2:rectangle=2:force\-pbo:ati\-hack \-dr \-noslices
3779 The code performs very few checks, so if a feature does not work, this
3780 might be because it is not supported by your card/OpenGL implementation
3781 even if you do not get any error message.
3782 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3783 .PD 0
3784 .RSs
3785 .IPs (no)ati\-hack
3786 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3787 or force\-pbo).
3788 This option fixes this, at the expense of using a bit more memory.
3789 .IPs (no)force\-pbo
3790 Always uses PBOs to transfer textures even if this involves an extra copy.
3791 Currently this gives a little extra speed with NVidia drivers and a lot more
3792 speed with ATI drivers.
3793 May need \-noslices and the ati\-hack suboption to work correctly.
3794 .IPs (no)scaled-osd
3795 Changes the way the OSD behaves when the size of the
3796 window changes (default: disabled).
3797 When enabled behaves more like the other video output drivers,
3798 which is better for fixed-size fonts.
3799 Disabled looks much better with FreeType fonts and uses the
3800 borders in fullscreen mode.
3801 Does not work correctly with ass subtitles (see \-ass), you can instead
3802 render them without OpenGL support via \-vf ass.
3803 .IPs osdcolor=<0xAARRGGBB>
3804 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3805 .IPs rectangle=<0,1,2>
3806 Select usage of rectangular textures which saves video RAM, but often is
3807 slower (default: 0).
3808 .RSss
3809 0: Use power-of-two textures (default).
3811 1: Use the GL_ARB_texture_rectangle extension.
3813 2: Use the GL_ARB_texture_non_power_of_two extension.
3814 In some cases only supported in software and thus very slow.
3816 .IPs swapinterval=<n>
3817 Minimum interval between two buffer swaps, counted in
3818 displayed frames (default: 1).
3819 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3820 Values below 0 will leave it at the system default.
3821 This limits the framerate to (horizontal refresh rate / n).
3822 Requires GLX_SGI_swap_control support to work.
3823 With some (most/all?) implementations this only works in fullscreen mode.
3824 .IPs ycbcr
3825 Use the GL_MESA_ycbcr_texture extension to convert YUV to RGB.
3826 In most cases this is probably slower than doing software conversion to RGB.
3827 .IPs yuv=<n>
3828 Select the type of YUV to RGB conversion.
3829 .RSss
3830 0: Use software conversion (default).
3831 Compatible with all OpenGL versions.
3832 Provides brightness, contrast and saturation control.
3834 1: Use register combiners.
3835 This uses an nVidia-specific extension (GL_NV_register_combiners).
3836 At least three texture units are needed.
3837 Provides saturation and hue control.
3838 This method is fast but inexact.
3840 2: Use a fragment program.
3841 Needs the GL_ARB_fragment_program extension and at least three texture units.
3842 Provides brightness, contrast, saturation and hue control.
3844 3: Use a fragment program using the POW instruction.
3845 Needs the GL_ARB_fragment_program extension and at least three texture units.
3846 Provides brightness, contrast, saturation, hue and gamma control.
3847 Gamma can also be set independently for red, green and blue.
3848 Method 4 is usually faster.
3850 4: Use a fragment program with additional lookup.
3851 Needs the GL_ARB_fragment_program extension and at least four texture units.
3852 Provides brightness, contrast, saturation, hue and gamma control.
3853 Gamma can also be set independently for red, green and blue.
3855 5: Use ATI-specific method (for older cards).
3856 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3857 GL_ARB_fragment_shader!).
3858 At least three texture units are needed.
3859 Provides saturation and hue control.
3860 This method is fast but inexact.
3862 6: Use a 3D texture to do conversion via lookup.
3863 Needs the GL_ARB_fragment_program extension and at least four texture units.
3864 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3865 a texture with border pixels.
3866 Provides brightness, contrast, saturation, hue and gamma control.
3867 Gamma can also be set independently for red, green and blue.
3868 Speed depends more on GPU memory bandwidth than other methods.
3870 .IPs colorspace
3871 Select the color space for YUV to RGB conversion.
3872 .RSss
3873 .IPs 0
3874 Use the formula used normally by MPlayer (default).
3875 .IPs 1
3876 Use ITU-R BT.601 color space.
3877 .IPs 2
3878 Use ITU-R BT.709 color space.
3879 .IPs 3
3880 Use SMPTE-240M color space.
3882 .IPs levelconv=<n>
3883 Select the brightness level conversion to use for the YUV to RGB conversion
3884 .RSss
3885 .IPs 0
3886 Convert TV to PC levels (default).
3887 .IPs 1
3888 Convert PC to TV levels.
3889 .IPs 2
3890 Do not do any conversion.
3892 .IPs lscale=<n>
3893 Select the scaling function to use for luminance scaling.
3894 Only valid for yuv modes 2, 3, 4 and 6.
3895 .RSss
3896 0: Use simple linear filtering (default).
3898 1: Use bicubic B-spline filtering (better quality).
3899 Needs one additional texture unit.
3900 Older cards will not be able to handle this for chroma at least in fullscreen mode.
3902 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
3903 Works on a few more cards than method 1.
3905 3: Same as 1 but does not use a lookup texture.
3906 Might be faster on some cards.
3908 4: Use experimental unsharp masking with 3x3 support and a default strength of 0.5 (see filter-strength).
3910 5: Use experimental unsharp masking with 5x5 support and a default strength of 0.5 (see filter-strength).
3912 .IPs cscale=<n>
3913 Select the scaling function to use for chrominance scaling.
3914 For details see lscale.
3915 .IPs filter-strength=<value>
3916 Set the effect strength for the lscale/cscale filters that support it.
3917 .IPs customprog=<filename>
3918 Load a custom fragment program from <filename>.
3919 See TOOLS/edgedect.fp for an example.
3920 .IPs customtex=<filename>
3921 Load a custom "gamma ramp" texture from <filename>.
3922 This can be used in combination with yuv=4 or with the customprog option.
3923 .IPs (no)customtlin
3924 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
3925 for customtex texture.
3926 .IPs (no)customtrect
3927 If enabled, use texture_rectangle for customtex texture.
3928 Default is disabled.
3929 .IPs (no)mipmapgen
3930 If enabled, mipmaps for the video are automatically generated.
3931 This should be useful together with the customprog and the TXB
3932 instruction to implement blur filters with a large radius.
3933 For most OpenGL implementations this is very slow for any non-RGB
3934 formats.
3935 Default is disabled.
3937 .sp 1
3939 Normally there is no reason to use the following options, they mostly
3940 exist for testing purposes.
3942 .sp 1
3943 .RSs
3944 .IPs (no)glfinish
3945 Call glFinish() before swapping buffers.
3946 Slower but in some cases more correct output (default: disabled).
3947 .IPs (no)manyfmts
3948 Enables support for more (RGB and BGR) color formats (default: enabled).
3949 Needs OpenGL version >= 1.2.
3950 .IPs slice-height=<0\-...>
3951 Number of lines copied to texture in one piece (default: 0).
3952 0 for whole image.
3954 .I NOTE:
3955 If YUV colorspace is used (see yuv suboption), special rules apply:
3956 .RSss
3957 If the decoder uses slice rendering (see \-noslices), this setting
3958 has no effect, the size of the slices as provided by the decoder is used.
3960 If the decoder does not use slice rendering, the default is 16.
3962 .IPs (no)osd
3963 Enable or disable support for OSD rendering via OpenGL (default: enabled).
3964 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
3965 .IPs (no)aspect
3966 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
3967 Disabling might increase speed.
3968 .REss
3970 .PD 1
3973 .B "gl2\ \ \ \ "
3974 Variant of the OpenGL video output driver.
3975 Supports videos larger than the maximum texture size but lacks many of the
3976 advanced features and optimizations of the gl driver and is unlikely to be
3977 extended further.
3978 .PD 0
3979 .RSs
3980 .IPs (no)glfinish
3981 same as gl (default: enabled)
3982 .IPs yuv=<n>
3983 Select the type of YUV to RGB conversion.
3984 If set to anything except 0 OSD will be disabled and brightness, contrast and
3985 gamma setting is only available via the global X server settings.
3986 Apart from this the values have the same meaning as for \-vo gl.
3987 .REss
3990 .B matrixview
3991 OpenGL-based renderer creating a Matrix-like running-text effect.
3992 .PD 0
3993 .RSs
3994 .IPs cols=<n>
3995 Number of text columns to display.
3996 Very low values (< 16) will probably fail due to scaler limitations.
3997 Values not divisible by 16 may cause issues as well.
3998 .IPs rows=<n>
3999 Number of text rows to display.
4000 Very low values (< 16) will probably fail due to scaler limitations.
4001 Values not divisible by 16 may cause issues as well.
4002 .REss
4005 .B "null\ \ \ "
4006 Produces no video output.
4007 Useful for benchmarking.
4010 .B "aa\ \ \ \ \ "
4011 ASCII art video output driver that works on a text console.
4012 You can get a list and an explanation of available suboptions
4013 by executing 'mplayer \-vo aa:help'.
4015 .I NOTE:
4016 The driver does not handle \-aspect correctly.
4018 .I HINT:
4019 You probably have to specify \-monitorpixelaspect.
4020 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
4023 .B "caca\ \ \ "
4024 Color ASCII art video output driver that works on a text console.
4027 .B "bl\ \ \ \ \ "
4028 Video playback using the Blinkenlights UDP protocol.
4029 This driver is highly hardware specific.
4030 .PD 0
4031 .RSs
4032 .IPs <subdevice>
4033 Explicitly choose the Blinkenlights subdevice driver to use.
4034 It is something like arcade:host=localhost:2323 or
4035 hdl:file=name1,file=name2.
4036 You must specify a subdevice.
4038 .PD 1
4041 .B "ggi\ \ \ \ "
4042 GGI graphics system video output driver
4043 .PD 0
4044 .RSs
4045 .IPs <driver>
4046 Explicitly choose the GGI driver to use.
4047 Replace any ',' that would appear in the driver string by a '.'.
4049 .PD 1
4052 .B directfb
4053 Play video using the DirectFB library.
4054 .PD 0
4055 .RSs
4056 .IPs (no)input
4057 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
4058 .IPs buffermode=single|double|triple
4059 Double and triple buffering give best results if you want to avoid tearing issues.
4060 Triple buffering is more efficient than double buffering as it does
4061 not block MPlayer while waiting for the vertical retrace.
4062 Single buffering should be avoided (default: single).
4063 .IPs fieldparity=top|bottom
4064 Control the output order for interlaced frames (default: disabled).
4065 Valid values are top = top fields first, bottom = bottom fields first.
4066 This option does not have any effect on progressive film material
4067 like most MPEG movies are.
4068 You need to enable this option if you have tearing issues or unsmooth
4069 motions watching interlaced film material.
4070 .IPs layer=N
4071 Will force layer with ID N for playback (default: \-1 \- auto).
4072 .IPs dfbopts=<list>
4073 Specify a parameter list for DirectFB.
4075 .PD 1
4078 .B "dfbmga\ "
4079 Matrox G400/\:G450/\:G550 specific video output driver that uses the
4080 DirectFB library to make use of special hardware features.
4081 Enables CRTC2 (second head), displaying video independently of the first head.
4082 .PD 0
4083 .RSs
4084 .IPs (no)input
4085 same as directfb (default: disabled)
4086 .IPs buffermode=single|double|triple
4087 same as directfb (default: triple)
4088 .IPs fieldparity=top|bottom
4089 same as directfb
4090 .IPs (no)bes
4091 Enable the use of the Matrox BES (backend scaler) (default: disabled).
4092 Gives very good results concerning speed and output quality as interpolated
4093 picture processing is done in hardware.
4094 Works only on the primary head.
4095 .IPs (no)spic
4096 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
4097 .IPs (no)crtc2
4098 Turn on TV-out on the second head (default: enabled).
4099 The output quality is amazing as it is a full interlaced picture
4100 with proper sync to every odd/\:even field.
4101 .IPs tvnorm=pal|ntsc|auto
4102 Will set the TV norm of the Matrox card without the need
4103 for modifying /etc/\:directfbrc (default: disabled).
4104 Valid norms are pal = PAL, ntsc = NTSC.
4105 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
4106 which norm to use by looking at the framerate of the movie.
4108 .PD 1
4111 .B mga (Linux only)
4112 Matrox specific video output driver that makes use of the YUV back
4113 end scaler on Gxxx cards through a kernel module.
4114 If you have a Matrox card, this is the fastest option.
4115 .PD 0
4116 .RSs
4117 .IPs <device>
4118 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4120 .PD 1
4123 .B xmga (Linux, X11 only)
4124 The mga video output driver, running in an X11 window.
4125 .PD 0
4126 .RSs
4127 .IPs <device>
4128 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4130 .PD 1
4133 .B s3fb (Linux only) (also see \-vf yuv2 and \-dr)
4134 S3 Virge specific video output driver.
4135 This driver supports the card's YUV conversion and scaling, double
4136 buffering and direct rendering features.
4137 Use \-vf yuy2 to get hardware-accelerated YUY2 rendering, which is
4138 much faster than YV12 on this card.
4139 .PD 0
4140 .RSs
4141 .IPs <device>
4142 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4144 .PD 1
4147 .B wii (Linux only)
4148 Nintendo Wii/GameCube specific video output driver.
4151 .B 3dfx (Linux only)
4152 3dfx-specific video output driver that directly uses
4153 the hardware on top of X11.
4154 Only 16 bpp are supported.
4157 .B tdfxfb (Linux only)
4158 This driver employs the tdfxfb framebuffer driver to play movies with
4159 YUV acceleration on 3dfx cards.
4160 .PD 0
4161 .RSs
4162 .IPs <device>
4163 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4165 .PD 1
4168 .B tdfx_vid (Linux only)
4169 3dfx-specific video output driver that works in combination with
4170 the tdfx_vid kernel module.
4171 .PD 0
4172 .RSs
4173 .IPs <device>
4174 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
4176 .PD 1
4179 .B dxr2 (also see \-dxr2) (DXR2 only)
4180 Creative DXR2 specific video output driver.
4181 .PD 0
4182 .RSs
4183 .IPs <vo_driver>
4184 Output video subdriver to use as overlay (x11, xv).
4186 .PD 1
4189 .B dxr3 (DXR3 only)
4190 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
4191 Hollywood Plus) specific video output driver.
4192 Also see the lavc video filter.
4193 .PD 0
4194 .RSs
4195 .IPs overlay
4196 Activates the overlay instead of TV-out.
4197 .IPs prebuf
4198 Turns on prebuffering.
4199 .IPs "sync\ "
4200 Will turn on the new sync-engine.
4201 .IPs norm=<norm>
4202 Specifies the TV norm.
4203 .RSss
4204 0: Does not change current norm (default).
4206 1: Auto-adjust using PAL/\:NTSC.
4208 2: Auto-adjust using PAL/\:PAL-60.
4210 3: PAL
4212 4: PAL-60
4214 5: NTSC
4216 .IPs <0\-3>
4217 Specifies the device number to use if you have more than one em8300 card.
4219 .PD 1
4222 .B ivtv (IVTV only)
4223 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4224 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4225 specific video output driver for TV-out.
4226 Also see the lavc video filter.
4227 .PD 0
4228 .RSs
4229 .IPs <device>
4230 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4231 .IPs <output>
4232 Explicitly choose the TV-out output to be used for the video signal.
4234 .PD 1
4237 .B v4l2 (requires Linux 2.6.22+ kernel)
4238 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4239 Also see the lavc video filter.
4240 .PD 0
4241 .RSs
4242 .IPs <device>
4243 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4244 .IPs <output>
4245 Explicitly choose the TV-out output to be used for the video signal.
4247 .PD 1
4250 .B mpegpes (DVB only)
4251 Video output driver for DVB cards that writes the output to an MPEG-PES file
4252 if no DVB card is installed.
4253 .PD 0
4254 .RSs
4255 .IPs card=<1\-4>
4256 Specifies the device number to use if you have more than one DVB output card
4257 (V3 API only, such as 1.x.y series drivers).
4258 If not specified MPlayer will search the first usable card.
4259 .IPs <filename>
4260 output filename (default: ./grab.mpg)
4262 .PD 1
4265 .B zr (also see \-zr* and \-zrhelp)
4266 Video output driver for a number of MJPEG capture/\:playback cards.
4269 .B zr2 (also see the zrmjpeg video filter)
4270 Video output driver for a number of MJPEG capture/\:playback cards,
4271 second generation.
4272 .PD 0
4273 .RSs
4274 .IPs dev=<device>
4275 Specifies the video device to use.
4276 .IPs norm=<PAL|NTSC|SECAM|auto>
4277 Specifies the video norm to use (default: auto).
4278 .IPs (no)prebuf
4279 (De)Activate prebuffering, not yet supported.
4281 .PD 1
4284 .B "md5sum\ "
4285 Calculate MD5 sums of each frame and write them to a file.
4286 Supports RGB24 and YV12 colorspaces.
4287 Useful for debugging.
4288 .PD 0
4289 .RSs
4290 .IPs outfile=<value>
4291 Specify the output filename (default: ./md5sums).
4293 .PD 1
4296 .B yuv4mpeg
4297 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4298 images and stores it in a file (default: ./stream.yuv).
4299 The format is the same as the one employed by mjpegtools, so this is
4300 useful if you want to process the video with the mjpegtools suite.
4301 It supports the YV12, RGB (24 bpp) and BGR (24 bpp) format.
4302 You can combine it with the \-fixed\-vo option to concatenate files
4303 with the same dimensions and fps value.
4304 .PD 0
4305 .RSs
4306 .IPs interlaced
4307 Write the output as interlaced frames, top field first.
4308 .IPs interlaced_bf
4309 Write the output as interlaced frames, bottom field first.
4310 .IPs file=<filename>
4311 Write the output to <filename> instead of the default stream.yuv.
4312 .REss
4313 .PD 1
4315 .sp 1
4316 .I NOTE:
4317 If you do not specify any option the output is progressive
4318 (i.e.\& not interlaced).
4322 .B "gif89a\ "
4323 Output each frame into a single animated GIF file in the current directory.
4324 It supports only RGB format with 24 bpp and the output is converted to 256
4325 colors.
4326 .PD 0
4327 .RSs
4328 .IPs <fps>
4329 Float value to specify framerate (default: 5.0).
4330 .IPs <output>
4331 Specify the output filename (default: ./out.gif).
4332 .REss
4333 .PD 1
4335 .sp 1
4336 .I NOTE:
4337 You must specify the framerate before the filename or the framerate will
4338 be part of the filename.
4339 .sp 1
4340 .I EXAMPLE:
4342 .PD 0
4343 .RSs
4344 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4346 .PD 1
4349 .B "jpeg\ \ \ "
4350 Output each frame into a JPEG file in the current directory.
4351 Each file takes the frame number padded with leading zeros as name.
4352 .PD 0
4353 .RSs
4354 .IPs [no]progressive
4355 Specify standard or progressive JPEG (default: noprogressive).
4356 .IPs [no]baseline
4357 Specify use of baseline or not (default: baseline).
4358 .IPs optimize=<0\-100>
4359 optimization factor (default: 100)
4360 .IPs smooth=<0\-100>
4361 smooth factor (default: 0)
4362 .IPs quality=<0\-100>
4363 quality factor (default: 75)
4364 .IPs outdir=<dirname>
4365 Specify the directory to save the JPEG files to (default: ./).
4366 .IPs subdirs=<prefix>
4367 Create numbered subdirectories with the specified prefix to
4368 save the files in instead of the current directory.
4369 .IPs "maxfiles=<value> (subdirs only)"
4370 Maximum number of files to be saved per subdirectory.
4371 Must be equal to or larger than 1 (default: 1000).
4373 .PD 1
4376 .B "pnm\ \ \ \ "
4377 Output each frame into a PNM file in the current directory.
4378 Each file takes the frame number padded with leading zeros as name.
4379 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4380 Also see pnm(5), ppm(5) and pgm(5).
4381 .PD 0
4382 .RSs
4383 .IPs "ppm\ \ "
4384 Write PPM files (default).
4385 .IPs "pgm\ \ "
4386 Write PGM files.
4387 .IPs pgmyuv
4388 Write PGMYUV files.
4389 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4390 bottom of the picture.
4391 .IPs "raw\ \ "
4392 Write PNM files in raw mode (default).
4393 .IPs ascii
4394 Write PNM files in ASCII mode.
4395 .IPs outdir=<dirname>
4396 Specify the directory to save the PNM files to (default: ./).
4397 .IPs subdirs=<prefix>
4398 Create numbered subdirectories with the specified prefix to
4399 save the files in instead of the current directory.
4400 .IPs "maxfiles=<value> (subdirs only)"
4401 Maximum number of files to be saved per subdirectory.
4402 Must be equal to or larger than 1 (default: 1000).
4404 .PD 1
4407 .B "png\ \ \ \ "
4408 Output each frame into a PNG file in the current directory.
4409 Each file takes the frame number padded with leading zeros as name.
4410 24bpp RGB and BGR formats are supported.
4411 .PD 0
4412 .RSs
4413 .IPs z=<0\-9>
4414 Specifies the compression level.
4415 0 is no compression, 9 is maximum compression.
4416 .IPs alpha (default: noalpha)
4417 Create PNG files with an alpha channel.
4418 Note that MPlayer in general does not support alpha, so this will only
4419 be useful in some rare cases.
4421 .PD 1
4424 .B "tga\ \ \ \ "
4425 Output each frame into a Targa file in the current directory.
4426 Each file takes the frame number padded with leading zeros as name.
4427 The purpose of this video output driver is to have a simple lossless
4428 image writer to use without any external library.
4429 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4430 You can force a particular format with the format video filter.
4431 .sp 1
4432 .I EXAMPLE:
4434 .PD 0
4435 .RSs
4436 mplayer video.nut \-vf format=bgr15 \-vo tga
4438 .PD 1
4442 .SH "DECODING/FILTERING OPTIONS"
4445 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4446 Specify a priority list of audio codecs to be used, according to their codec
4447 name in codecs.conf.
4448 Use a '\-' before the codec name to omit it.
4449 Use a '+' before the codec name to force it, this will likely crash!
4450 If the list has a trailing ',' MPlayer will fall back on codecs not
4451 contained in the list.
4453 .I NOTE:
4454 See \-ac help for a full list of available codecs.
4455 .sp 1
4456 .I EXAMPLE:
4457 .PD 0
4458 .RSs
4459 .IPs "\-ac mp3acm"
4460 Force the l3codeca.acm MP3 codec.
4461 .IPs "\-ac mad,"
4462 Try libmad first, then fall back on others.
4463 .IPs "\-ac hwac3,a52,"
4464 Try hardware AC-3 passthrough, software AC-3, then others.
4465 .IPs "\-ac hwdts,"
4466 Try hardware DTS passthrough, then fall back on others.
4467 .IPs "\-ac \-ffmp3,"
4468 Skip FFmpeg's MP3 decoder.
4470 .PD 1
4473 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4474 Specify advanced audio filter options:
4475 .RSs
4476 .IPs force=<0\-7>
4477 Forces the insertion of audio filters to one of the following:
4478 .RSss
4479 0: Use completely automatic filter insertion (currently identical to 1).
4481 1: Optimize for accuracy (default).
4483 2: Optimize for speed.
4484 .I Warning:
4485 Some features in the audio filters may silently fail,
4486 and the sound quality may drop.
4488 3: Use no automatic insertion of filters and no optimization.
4489 .I Warning:
4490 It may be possible to crash MPlayer using this setting.
4492 4: Use automatic insertion of filters according to 0 above,
4493 but use floating point processing when possible.
4495 5: Use automatic insertion of filters according to 1 above,
4496 but use floating point processing when possible.
4498 6: Use automatic insertion of filters according to 2 above,
4499 but use floating point processing when possible.
4501 7: Use no automatic insertion of filters according to 3 above,
4502 and use floating point processing when possible.
4503 .REss
4504 .IPs list=<filters>
4505 Same as \-af.
4509 .B \-afm <driver1,driver2,...>
4510 Specify a priority list of audio codec families to be used, according
4511 to their codec name in codecs.conf.
4512 Falls back on the default codecs if none of the given codec families work.
4514 .I NOTE:
4515 See \-afm help for a full list of available codec families.
4516 .sp 1
4517 .I EXAMPLE:
4518 .PD 0
4519 .RSs
4520 .IPs "\-afm ffmpeg"
4521 Try FFmpeg's libavcodec codecs first.
4522 .IPs "\-afm acm,dshow"
4523 Try Win32 codecs first.
4525 .PD 1
4528 .B \-aspect <ratio> (also see \-zoom)
4529 Override movie aspect ratio, in case aspect information is
4530 incorrect or missing in the file being played.
4531 .sp 1
4532 .I EXAMPLE:
4533 .PD 0
4534 .RSs
4535 \-aspect 4:3  or \-aspect 1.3333
4537 \-aspect 16:9 or \-aspect 1.7777
4539 .PD 1
4542 .B \-noaspect
4543 Disable automatic movie aspect ratio compensation.
4546 .B "\-field\-dominance <\-1\-1>"
4547 Set first field for interlaced content.
4548 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4549 \-vf yadif=1, \-vo vdpau:deint and \-vo xvmc:bobdeint.
4550 .PD 0
4551 .RSs
4552 .IPs \-1
4553 auto (default): If the decoder does not export the appropriate information,
4554 it falls back to 0 (top field first).
4555 .IPs 0
4556 top field first
4557 .IPs 1
4558 bottom field first
4560 .PD 1
4563 .B "\-flip \ "
4564 Flip image upside-down.
4567 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4568 Specify libavcodec decoding parameters.
4569 Separate multiple options with a colon.
4570 .sp 1
4571 .I EXAMPLE:
4572 .PD 0
4573 .RSs
4574 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4576 .PD 1
4577 .sp 1
4579 Available options are:
4581 .RSs
4582 .IPs bitexact
4583 Only use bit-exact algorithms in all decoding steps (for codec testing).
4584 .IPs bug=<value>
4585 Manually work around encoder bugs.
4586 .RSss
4587 0: nothing
4589 1: autodetect bugs (default)
4591 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4593 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4595 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4597 16 (mpeg4): padding bug (autodetected)
4599 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4601 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4603 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4605 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4607 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4609 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4610 .REss
4611 .IPs debug=<value>
4612 Display debugging information.
4613 .RSss
4615 0: disabled
4617 1: picture info
4619 2: rate control
4621 4: bitstream
4623 8: macroblock (MB) type
4625 16: per-block quantization parameter (QP)
4627 32: motion vector
4629 0x0040: motion vector visualization (use \-noslices)
4631 0x0080: macroblock (MB) skip
4633 0x0100: startcode
4635 0x0200: PTS
4637 0x0400: error resilience
4639 0x0800: memory management control operations (H.264)
4641 0x1000: bugs
4643 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4645 0x4000: Visualize block types.
4646 .REss
4647 .IPs ec=<value>
4648 Set error concealment strategy.
4649 .RSss
4650 1: Use strong deblock filter for damaged MBs.
4652 2: iterative motion vector (MV) search (slow)
4654 3: all (default)
4655 .REss
4656 .IPs er=<value>
4657 Set error resilience strategy.
4658 .RSss
4660 0: disabled
4662 1: careful (Should work with broken encoders.)
4664 2: normal (default) (Works with compliant encoders.)
4666 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4668 4: very aggressive
4669 .REss
4670 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4671 Enable optimizations which do not comply to the specification and might
4672 potentially cause problems, like simpler dequantization, simpler motion
4673 compensation, assuming use of the default quantization matrix, assuming
4674 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4675 .IPs "gray\ "
4676 grayscale only decoding (a bit faster than with color)
4677 .IPs "idct=<0\-99> (see \-lavcopts)"
4678 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4679 This may come at a price in accuracy, though.
4680 .IPs lowres=<number>[,<w>]
4681 Decode at lower resolutions.
4682 Low resolution decoding is not supported by all codecs, and it will
4683 often result in ugly artifacts.
4684 This is not a bug, but a side effect of not decoding at full resolution.
4685 .RSss
4687 0: disabled
4689 1: 1/2 resolution
4691 2: 1/4 resolution
4693 3: 1/8 resolution
4694 .REss
4696 If <w> is specified lowres decoding will be used only if the width of the
4697 video is major than or equal to <w>.
4699 .B o=<key>=<value>[,<key>=<value>[,...]]
4700 Pass AVOptions to libavcodec decoder.
4701 Note, a patch to make the o= unneeded and pass all unknown options through
4702 the AVOption system is welcome.
4703 A full list of AVOptions can be found in the FFmpeg manual.
4704 Note that some options may conflict with MEncoder options.
4705 .sp 1
4707 .I EXAMPLE:
4709 .RSs
4710 .PD 0
4711 .IPs o=debug=pict
4712 .PD 1
4714 .IPs "sb=<number> (MPEG-2 only)"
4715 Skip the given number of macroblock rows at the bottom.
4716 .IPs "st=<number> (MPEG-2 only)"
4717 Skip the given number of macroblock rows at the top.
4718 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4719 Skips the loop filter (AKA deblocking) during H.264 decoding.
4720 Since the filtered frame is supposed to be used as reference
4721 for decoding dependent frames this has a worse effect on quality
4722 than not doing deblocking on e.g.\& MPEG-2 video.
4723 But at least for high bitrate HDTV this provides a big speedup with
4724 no visible quality loss.
4725 .sp 1
4726 <skipvalue> can be either one of the following:
4727 .RSss
4729 none: Never skip.
4731 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4733 nonref: Skip frames that are not referenced (i.e.\& not used for
4734 decoding other frames, the error cannot "build up").
4736 bidir: Skip B-Frames.
4738 nonkey: Skip all frames except keyframes.
4740 all: Skip all frames.
4741 .REss
4742 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4743 Skips the IDCT step.
4744 This degrades quality a lot of in almost all cases
4745 (see skiploopfilter for available skip values).
4746 .IPs skipframe=<skipvalue>
4747 Skips decoding of frames completely.
4748 Big speedup, but jerky motion and sometimes bad artifacts
4749 (see skiploopfilter for available skip values).
4750 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4751 number of threads to use for decoding (default: 1)
4752 .IPs vismv=<value>
4753 Visualize motion vectors.
4754 .RSss
4756 0: disabled
4758 1: Visualize forward predicted MVs of P-frames.
4760 2: Visualize forward predicted MVs of B-frames.
4762 4: Visualize backward predicted MVs of B-frames.
4763 .REss
4764 .IPs vstats
4765 Prints some statistics and stores them in ./vstats_*.log.
4769 .B \-noslices
4770 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4771 whole frame in a single run.
4772 May be faster or slower, depending on video card and available cache.
4773 It has effect only with libmpeg2 and libavcodec codecs.
4776 .B \-nosound
4777 Do not play/\:encode sound.
4778 Useful for benchmarking.
4781 .B \-novideo
4782 Do not play/\:encode video.
4783 In many cases this will not work, use \-vc null \-vo null instead.
4786 .B \-pp <quality> (also see \-vf pp)
4787 Set the DLL postprocess level.
4788 This option is no longer usable with \-vf pp.
4789 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4790 The valid range of \-pp values varies by codec, it is mostly
4791 0\-6, where 0=disable, 6=slowest/\:best.
4794 .B \-pphelp (also see \-vf pp)
4795 Show a summary about the available postprocess filters and their usage.
4798 .B \-ssf <mode>
4799 Specifies software scaler parameters.
4800 .sp 1
4801 .I EXAMPLE:
4802 .PD 0
4803 .RSs
4804 \-vf scale \-ssf lgb=3.0
4806 .PD 1
4807 .PD 0
4808 .RSs
4809 .IPs lgb=<0\-100>
4810 gaussian blur filter (luma)
4811 .IPs cgb=<0\-100>
4812 gaussian blur filter (chroma)
4813 .IPs ls=<\-100\-100>
4814 sharpen filter (luma)
4815 .IPs cs=<\-100\-100>
4816 sharpen filter (chroma)
4817 .IPs chs=<h>
4818 chroma horizontal shifting
4819 .IPs cvs=<v>
4820 chroma vertical shifting
4822 .PD 1
4825 .B \-stereo <mode>
4826 Select type of MP2/\:MP3 stereo output.
4827 .PD 0
4828 .RSs
4829 .IPs 0
4830 stereo
4831 .IPs 1
4832 left channel
4833 .IPs 2
4834 right channel
4836 .PD 1
4839 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4840 Specify the software scaler algorithm to be used with the \-zoom option.
4841 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4842 .sp 1
4843 Available types are:
4844 .sp 1
4845 .PD 0
4846 .RSs
4847 .IPs 0
4848 fast bilinear
4849 .IPs 1
4850 bilinear
4851 .IPs 2
4852 bicubic (good quality) (default)
4853 .IPs 3
4854 experimental
4855 .IPs 4
4856 nearest neighbor (bad quality)
4857 .IPs 5
4858 area
4859 .IPs 6
4860 luma bicubic / chroma bilinear
4861 .IPs 7
4862 gauss
4863 .IPs 8
4864 sincR
4865 .IPs 9
4866 lanczos
4867 .IPs 10
4868 natural bicubic spline
4870 .PD 1
4871 .sp 1
4873 .I NOTE:
4874 Some \-sws options are tunable.
4875 The description of the scale video filter has further information.
4879 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
4880 Specify a priority list of video codecs to be used, according to their codec
4881 name in codecs.conf.
4882 Use a '\-' before the codec name to omit it.
4883 Use a '+' before the codec name to force it, this will likely crash!
4884 If the list has a trailing ',' MPlayer will fall back on codecs not
4885 contained in the list.
4887 .I NOTE:
4888 See \-vc help for a full list of available codecs.
4889 .sp 1
4890 .I EXAMPLE:
4891 .PD 0
4892 .RSs
4893 .IPs "\-vc divx"
4894 Force Win32/\:VfW DivX codec, no fallback.
4895 .IPs "\-vc \-divxds,\-divx,"
4896 Skip Win32 DivX codecs.
4897 .IPs "\-vc ffmpeg12,mpeg12,"
4898 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
4900 .PD 1
4903 .B \-vfm <driver1,driver2,...>
4904 Specify a priority list of video codec families to be used, according
4905 to their names in codecs.conf.
4906 Falls back on the default codecs if none of the given codec families work.
4908 .I NOTE:
4909 See \-vfm help for a full list of available codec families.
4910 .sp 1
4911 .I EXAMPLE:
4912 .PD 0
4913 .RSs
4914 .IPs "\-vfm ffmpeg,dshow,vfw"
4915 Try the libavcodec, then Directshow, then VfW codecs and fall back
4916 on others, if they do not work.
4917 .IPs "\-vfm xanim"
4918 Try XAnim codecs first.
4920 .PD 1
4923 .B \-x <x> (also see \-zoom) (MPlayer only)
4924 Scale image to width <x> (if software/\:hardware scaling is available).
4925 Disables aspect calculations.
4928 .B \-xvidopts <option1:option2:...>
4929 Specify additional parameters when decoding with Xvid.
4931 .I NOTE:
4932 Since libavcodec is faster than Xvid you might want to use the libavcodec
4933 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
4934 .sp 1
4935 Xvid's internal postprocessing filters:
4936 .PD 0
4937 .RSs
4938 .IPs "deblock-chroma (also see \-vf pp)"
4939 chroma deblock filter
4940 .IPs "deblock-luma (also see \-vf pp)"
4941 luma deblock filter
4942 .IPs "dering-luma (also see \-vf pp)"
4943 luma deringing filter
4944 .IPs "dering-chroma (also see \-vf pp)"
4945 chroma deringing filter
4946 .IPs "filmeffect (also see \-vf noise)"
4947 Adds artificial film grain to the video.
4948 May increase perceived quality, while lowering true quality.
4950 .sp 1
4952 rendering methods:
4954 .PD 0
4955 .RSs
4956 .IPs "dr2\ \ "
4957 Activate direct rendering method 2.
4958 .IPs nodr2
4959 Deactivate direct rendering method 2.
4961 .PD 1
4964 .B \-xy <value> (also see \-zoom)
4965 .PD 0
4966 .RSs
4967 .IPs value<=8
4968 Scale image by factor <value>.
4969 .IPs value>8
4970 Set width to value and calculate height to keep correct aspect ratio.
4972 .PD 1
4975 .B \-y <y> (also see \-zoom) (MPlayer only)
4976 Scale image to height <y> (if software/\:hardware scaling is available).
4977 Disables aspect calculations.
4980 .B "\-zoom\ \ "
4981 Allow software scaling, where available.
4982 This will allow scaling with output drivers (like x11, fbdev) that
4983 do not support hardware scaling where MPlayer disables scaling by
4984 default for performance reasons.
4988 .SH "AUDIO FILTERS"
4989 Audio filters allow you to modify the audio stream and its properties.
4990 The syntax is:
4993 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
4994 Setup a chain of audio filters.
4996 .I NOTE:
4997 To get a full list of available audio filters, see \-af help.
4998 .sp 1
4999 Audio filters are managed in lists.
5000 There are a few commands to manage the filter list.
5003 .B \-af\-add <filter1[,filter2,...]>
5004 Appends the filters given as arguments to the filter list.
5007 .B \-af\-pre <filter1[,filter2,...]>
5008 Prepends the filters given as arguments to the filter list.
5011 .B \-af\-del <index1[,index2,...]>
5012 Deletes the filters at the given indexes.
5013 Index numbers start at 0, negative numbers address the end of the
5014 list (\-1 is the last).
5017 .B \-af\-clr
5018 Completely empties the filter list.
5020 Available filters are:
5023 .B resample[=srate[:sloppy[:type]]]
5024 Changes the sample rate of the audio stream.
5025 Can be used if you have a fixed frequency sound card or if you are
5026 stuck with an old sound card that is only capable of max 44.1kHz.
5027 This filter is automatically enabled if necessary.
5028 It only supports 16-bit integer and float in native-endian format as input.
5030 .I NOTE:
5031 With MEncoder, you need to also use \-srate <srate>.
5032 .PD 0
5033 .RSs
5034 .IPs <srate>
5035 output sample frequency in Hz.
5036 The valid range for this parameter is 8000 to 192000.
5037 If the input and output sample frequency are the same or if this
5038 parameter is omitted the filter is automatically unloaded.
5039 A high sample frequency normally improves the audio quality,
5040 especially when used in combination with other filters.
5041 .IPs <sloppy>
5042 Allow (1) or disallow (0) the output frequency to differ slightly
5043 from the frequency given by <srate> (default: 1).
5044 Can be used if the startup of the playback is extremely slow.
5045 .IPs <type>
5046 Select which resampling method to use.
5047 .RSss
5048 0: linear interpolation (fast, poor quality especially when upsampling)
5050 1: polyphase filterbank and integer processing
5052 2: polyphase filterbank and floating point processing (slow, best quality)
5053 .REss
5054 .PD 1
5056 .sp 1
5058 .I EXAMPLE:
5060 .PD 0
5061 .RSs
5062 .IPs "mplayer \-af resample=44100:0:0"
5063 would set the output frequency of the resample filter to 44100Hz using
5064 exact output frequency scaling and linear interpolation.
5066 .PD 1
5069 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
5070 Changes the sample rate of the audio stream to an integer <srate> in Hz.
5071 It only supports the 16-bit native-endian format.
5073 .I NOTE:
5074 With MEncoder, you need to also use \-srate <srate>.
5075 .PD 0
5076 .RSs
5077 .IPs <srate>
5078 the output sample rate
5079 .IPs <length>
5080 length of the filter with respect to the lower sampling rate (default: 16)
5081 .IPs <linear>
5082 if 1 then filters will be linearly interpolated between polyphase entries
5083 .IPs <count>
5084 log2 of the number of polyphase entries
5085 (..., 10->1024, 11->2048, 12->4096, ...)
5086 (default: 10->1024)
5087 .IPs <cutoff>
5088 cutoff frequency (0.0\-1.0), default set depending upon filter length
5090 .PD 1
5093 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
5094 Encode multi-channel audio to AC-3 at runtime using libavcodec.
5095 Supports 16-bit native-endian input format, maximum 6 channels.
5096 The output is big-endian when outputting a raw AC-3 stream,
5097 native-endian when outputting to S/PDIF.
5098 The output sample rate of this filter is same with the input sample rate.
5099 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
5100 Otherwise a resampling filter is auto-inserted before this filter to make
5101 the input and output sample rate be 48kHz.
5102 You need to specify '\-channels N' to make the decoder decode audio into
5103 N-channel, then the filter can encode the N-channel input to AC-3.
5105 .PD 0
5106 .RSs
5107 .IPs <tospdif>
5108 Output raw AC-3 stream if zero or not set,
5109 output to S/PDIF for passthrough when <tospdif> is set non-zero.
5110 .IPs <bitrate>
5111 The bitrate to encode the AC-3 stream.
5112 Set it to either 384 or 384000 to get 384kbits.
5113 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
5114               320, 384, 448, 512, 576, 640
5115 Default bitrate is based on the input channel number:
5116 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
5117 .IPs <minchn>
5118 If the input channel number is less than <minchn>, the filter will
5119 detach itself (default: 5).
5121 .PD 1
5124 .B sweep[=speed]
5125 Produces a sine sweep.
5126 .PD 0
5127 .RSs
5128 .IPs <0.0\-1.0>
5129 Sine function delta, use very low values to hear the sweep.
5131 .PD 1
5134 .B sinesuppress[=freq:decay]
5135 Remove a sine at the specified frequency.
5136 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
5137 It probably only works on mono input.
5138 .PD 0
5139 .RSs
5140 .IPs <freq>
5141 The frequency of the sine which should be removed (in Hz) (default: 50)
5142 .IPs <decay>
5143 Controls the adaptivity (a larger value will make the filter adapt to
5144 amplitude and phase changes quicker, a smaller value will make the
5145 adaptation slower) (default: 0.0001).
5146 Reasonable values are around 0.001.
5148 .PD 1
5151 .B bs2b[=option1:option2:...]
5152 Bauer stereophonic to binaural transformation using libbs2b.
5153 Improves the headphone listening experience by making the sound
5154 similar to that from loudspeakers, allowing each ear to hear both
5155 channels and taking into account the distance difference and the
5156 head shadowing effect.
5157 It is applicable only to 2 channel audio.
5158 .PD 0
5159 .RSs
5160 .IPs fcut=<300\-1000>
5161 Set cut frequency in Hz.
5162 .IPs feed=<10\-150>
5163 Set feed level for low frequencies in 0.1*dB.
5164 .IPs profile=<value>
5165 Several profiles are available for convenience:
5166 .PD 0
5167 .RSs
5168 .IPs default
5169 will be used if nothing else was specified (fcut=700, feed=45)
5170 .IPs "cmoy\ "
5171 Chu Moy circuit implementation (fcut=700, feed=60)
5172 .IPs jmeier
5173 Jan Meier circuit implementation (fcut=650, feed=95)
5176 .sp 1
5178 If fcut or feed options are specified together with a profile, they
5179 will be applied on top of the selected profile.
5181 .PD 1
5184 .B hrtf[=flag]
5185 Head-related transfer function: Converts multichannel audio to
5186 2 channel output for headphones, preserving the spatiality of the sound.
5187 .sp 1
5188 .PD 0
5190 .IPs "Flag  Meaning"
5191 .IPs "m     matrix decoding of the rear channel"
5192 .IPs "s     2-channel matrix decoding"
5193 .IPs "0     no matrix decoding (default)"
5195 .PD 1
5198 .B equalizer=[g1:g2:g3:...:g10]
5199 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
5200 This means that it works regardless of what type of audio is being played back.
5201 The center frequencies for the 10 bands are:
5202 .sp 1
5203 .PD 0
5205 .IPs "No. frequency"
5206 .IPs "0    31.25 Hz"
5207 .IPs "1    62.50 Hz"
5208 .IPs "2   125.00 Hz"
5209 .IPs "3   250.00 Hz"
5210 .IPs "4   500.00 Hz"
5211 .IPs "5    1.00 kHz"
5212 .IPs "6    2.00 kHz"
5213 .IPs "7    4.00 kHz"
5214 .IPs "8    8.00 kHz"
5215 .IPs "9   16.00 kHz"
5217 .PD 1
5218 .sp 1
5220 If the sample rate of the sound being played is lower than the center
5221 frequency for a frequency band, then that band will be disabled.
5222 A known bug with this filter is that the characteristics for the
5223 uppermost band are not completely symmetric if the sample
5224 rate is close to the center frequency of that band.
5225 This problem can be worked around by upsampling the sound
5226 using the resample filter before it reaches this filter.
5228 .PD 0
5229 .RSs
5230 .IPs <g1>:<g2>:<g3>:...:<g10>
5231 floating point numbers representing the gain in dB
5232 for each frequency band (\-12\-12)
5234 .sp 1
5236 .I EXAMPLE:
5238 .RSs
5239 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
5240 Would amplify the sound in the upper and lower frequency region
5241 while canceling it almost completely around 1kHz.
5243 .PD 1
5246 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
5247 Can be used for adding, removing, routing and copying audio channels.
5248 If only <nch> is given the default routing is used, it works as
5249 follows: If the number of output channels is bigger than the number of
5250 input channels empty channels are inserted (except mixing from mono to
5251 stereo, then the mono channel is repeated in both of the output
5252 channels).
5253 If the number of output channels is smaller than the number
5254 of input channels the exceeding channels are truncated.
5255 .PD 0
5256 .RSs
5257 .IPs <nch>
5258 number of output channels (1\-8)
5259 .IPs "<nr>\ "
5260 number of routes (1\-8)
5261 .IPs <from1:to1:from2:to2:from3:to3:...>
5262 Pairs of numbers between 0 and 7 that define where to route each channel.
5264 .sp 1
5266 .I EXAMPLE:
5268 .RSs
5269 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5270 Would change the number of channels to 4 and set up 4 routes that
5271 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5272 Observe that if media containing two channels was played back, channels
5273 2 and 3 would contain silence but 0 and 1 would still be swapped.
5274 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5275 Would change the number of channels to 6 and set up 4 routes
5276 that copy channel 0 to channels 0 to 3.
5277 Channel 4 and 5 will contain silence.
5279 .PD 1
5282 .B format[=format] (also see \-format)
5283 Convert between different sample formats.
5284 Automatically enabled when needed by the sound card or another filter.
5285 .PD 0
5286 .RSs
5287 .IPs <format>
5288 Sets the desired format.
5289 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5290 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5291 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5292 and 'ne' the endianness of the computer MPlayer is running on).
5293 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5294 Exceptions to this rule that are also valid format specifiers: u8, s8,
5295 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5297 .PD 1
5300 .B volume[=v[:sc]]
5301 Implements software volume control.
5302 Use this filter with caution since it can reduce the signal
5303 to noise ratio of the sound.
5304 In most cases it is best to set the level for the PCM sound to max,
5305 leave this filter out and control the output level to your
5306 speakers with the master volume control of the mixer.
5307 In case your sound card has a digital PCM mixer instead of an analog
5308 one, and you hear distortion, use the MASTER mixer instead.
5309 If there is an external amplifier connected to the computer (this
5310 is almost always the case), the noise level can be minimized by
5311 adjusting the master level and the volume knob on the amplifier
5312 until the hissing noise in the background is gone.
5314 This filter has a second feature: It measures the overall maximum
5315 sound level and prints out that level when MPlayer exits.
5316 This volume estimate can be used for setting the sound level in
5317 MEncoder such that the maximum dynamic range is utilized.
5319 .I NOTE:
5320 This filter is not reentrant and can therefore only be enabled
5321 once for every audio stream.
5322 .PD 0
5323 .RSs
5324 .IPs "<v>\ \ "
5325 Sets the desired gain in dB for all channels in the stream
5326 from \-200dB to +60dB, where \-200dB mutes the sound
5327 completely and +60dB equals a gain of 1000 (default: 0).
5328 .IPs "<sc>\ "
5329 Turns soft clipping on (1) or off (0).
5330 Soft-clipping can make the sound more smooth if very
5331 high volume levels are used.
5332 Enable this option if the dynamic range of the
5333 loudspeakers is very low.
5335 .I WARNING:
5336 This feature creates distortion and should be considered a last resort.
5338 .sp 1
5340 .I EXAMPLE:
5342 .RSs
5343 .IPs "mplayer \-af volume=10.1:0 media.avi"
5344 Would amplify the sound by 10.1dB and hard-clip if the
5345 sound level is too high.
5347 .PD 1
5350 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5351 Mixes channels arbitrarily.
5352 Basically a combination of the volume and the channels filter
5353 that can be used to down-mix many channels to only a few,
5354 e.g.\& stereo to mono or vary the "width" of the center
5355 speaker in a surround sound system.
5356 This filter is hard to use, and will require some tinkering
5357 before the desired result is obtained.
5358 The number of options for this filter depends on
5359 the number of output channels.
5360 An example how to downmix a six-channel file to two channels with
5361 this filter can be found in the examples section near the end.
5362 .PD 0
5363 .RSs
5364 .IPs "<n>\ \ "
5365 number of output channels (1\-8)
5366 .IPs <Lij>
5367 How much of input channel i is mixed into output channel j (0\-1).
5368 So in principle you first have n numbers saying what to do with the
5369 first input channel, then n numbers that act on the second input channel
5370 etc.
5371 If you do not specify any numbers for some input channels, 0 is assumed.
5373 .sp 1
5375 .I EXAMPLE:
5377 .RSs
5378 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5379 Would down-mix from stereo to mono.
5380 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5381 Would give 3 channel output leaving channels 0 and 1 intact,
5382 and mix channels 0 and 1 into output channel 2 (which could
5383 be sent to a subwoofer for example).
5385 .PD 1
5388 .B sub[=fc:ch]
5389 Adds a subwoofer channel to the audio stream.
5390 The audio data used for creating the subwoofer channel is
5391 an average of the sound in channel 0 and channel 1.
5392 The resulting sound is then low-pass filtered by a 4th order
5393 Butterworth filter with a default cutoff frequency of 60Hz
5394 and added to a separate channel in the audio stream.
5396 .I Warning:
5397 Disable this filter when you are playing DVDs with Dolby
5398 Digital 5.1 sound, otherwise this filter will disrupt
5399 the sound to the subwoofer.
5400 .PD 0
5401 .RSs
5402 .IPs "<fc>\ "
5403 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5404 For the best result try setting the cutoff frequency as low as possible.
5405 This will improve the stereo or surround sound experience.
5406 .IPs "<ch>\ "
5407 Determines the channel number in which to insert the sub-channel audio.
5408 Channel number can be between 0 and 7 (default: 5).
5409 Observe that the number of channels will automatically
5410 be increased to <ch> if necessary.
5412 .sp 1
5414 .I EXAMPLE:
5416 .RSs
5417 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5418 Would add a sub-woofer channel with a cutoff frequency of
5419 100Hz to output channel 4.
5421 .PD 1
5424 .B "center\ "
5425 Creates a center channel from the front channels.
5426 May currently be low quality as it does not implement a
5427 high-pass filter for proper extraction yet, but averages and
5428 halves the channels instead.
5429 .PD 0
5430 .RSs
5431 .IPs "<ch>\ "
5432 Determines the channel number in which to insert the center channel.
5433 Channel number can be between 0 and 7 (default: 5).
5434 Observe that the number of channels will automatically
5435 be increased to <ch> if necessary.
5437 .PD 1
5440 .B surround[=delay]
5441 Decoder for matrix encoded surround sound like Dolby Surround.
5442 Many files with 2 channel audio actually contain matrixed surround sound.
5443 Requires a sound card supporting at least 4 channels.
5444 .PD 0
5445 .RSs
5446 .IPs <delay>
5447 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5448 This delay should be set as follows: If d1 is the distance
5449 from the listening position to the front speakers and d2 is the distance
5450 from the listening position to the rear speakers, then the delay should
5451 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5453 .sp 1
5455 .I EXAMPLE:
5457 .RSs
5458 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5459 Would add surround sound decoding with 15ms delay for the sound to the
5460 rear speakers.
5462 .PD 1
5465 .B delay[=ch1:ch2:...]
5466 Delays the sound to the loudspeakers such that the sound from the
5467 different channels arrives at the listening position simultaneously.
5468 It is only useful if you have more than 2 loudspeakers.
5469 .PD 0
5470 .RSs
5471 .IPs ch1,ch2,...
5472 The delay in ms that should be imposed on each channel
5473 (floating point number between 0 and 1000).
5475 .PD 1
5476 .sp 1
5478 To calculate the required delay for the different channels do as follows:
5479 .IP 1. 3
5480 Measure the distance to the loudspeakers in meters in relation
5481 to your listening position, giving you the distances s1 to s5
5482 (for a 5.1 system).
5483 There is no point in compensating for the subwoofer (you will not hear the
5484 difference anyway).
5485 .IP 2. 3
5486 Subtract the distances s1 to s5 from the maximum distance,
5487 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5488 .IP 3.
5489 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5491 .PD 0
5492 .sp 1
5494 .I EXAMPLE:
5496 .RSs
5497 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5498 Would delay front left and right by 10.5ms, the two rear channels
5499 and the sub by 0ms and the center channel by 7ms.
5501 .PD 1
5504 .B export[=mmapped_file[:nsamples]]
5505 Exports the incoming signal to other processes using memory mapping (mmap()).
5506 Memory mapped areas contain a header:
5507 .sp 1
5509 int nch                      /*number of channels*/
5510 int size                     /*buffer size*/
5511 unsigned long long counter   /*Used to keep sync, updated every
5512                                time new data is exported.*/
5514 .sp 1
5515 The rest is payload (non-interleaved) 16 bit data.
5516 .PD 0
5517 .RSs
5518 .IPs <mmapped_file>
5519 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5520 .IPs <nsamples>
5521 number of samples per channel (default: 512)
5523 .sp 1
5525 .I EXAMPLE:
5527 .RSs
5528 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5529 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5531 .PD 1
5534 .B extrastereo[=mul]
5535 (Linearly) increases the difference between left and right channels
5536 which adds some sort of "live" effect to playback.
5537 .PD 0
5538 .RSs
5539 .IPs <mul>
5540 Sets the difference coefficient (default: 2.5).
5541 0.0 means mono sound (average of both channels), with 1.0 sound will be
5542 unchanged, with \-1.0 left and right channels will be swapped.
5544 .PD 1
5547 .B volnorm[=method:target]
5548 Maximizes the volume without distorting the sound.
5549 .PD 0
5550 .RSs
5551 .IPs <method>
5552 Sets the used method.
5553 .RSss
5554 1: Use a single sample to smooth the variations via the standard
5555 weighted mean over past samples (default).
5557 2: Use several samples to smooth the variations via the standard
5558 weighted mean over past samples.
5559 .REss
5560 .IPs <target>
5561 Sets the target amplitude as a fraction of the maximum for the
5562 sample type (default: 0.25).
5564 .PD 1
5567 .B ladspa=file:label[:controls...]
5568 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5569 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5570 .PD 0
5571 .RSs
5572 .IPs <file>
5573 Specifies the LADSPA plugin library file.
5574 If LADSPA_PATH is set, it searches for the specified file.
5575 If it is not set, you must supply a fully specified pathname.
5576 .IPs <label>
5577 Specifies the filter within the library.
5578 Some libraries contain only one filter, but others contain many of them.
5579 Entering 'help' here, will list all available filters within the specified
5580 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5581 .IPs <controls>
5582 Controls are zero or more floating point values that determine the
5583 behavior of the loaded plugin (for example delay, threshold or gain).
5584 In verbose mode (add \-v to the MPlayer command line), all available controls
5585 and their valid ranges are printed.
5586 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5588 .PD 1
5591 .B "comp\ \ \ "
5592 Compressor/expander filter usable for microphone input.
5593 Prevents artifacts on very loud sound and raises the volume on
5594 very low sound.
5595 This filter is untested, maybe even unusable.
5598 .B "gate\ \ \ "
5599 Noise gate filter similar to the comp audio filter.
5600 This filter is untested, maybe even unusable.
5603 .B karaoke
5604 Simple voice removal filter exploiting the fact that voice is
5605 usually recorded with mono gear and later 'center' mixed onto
5606 the final audio stream.
5607 Beware that this filter will turn your signal into mono.
5608 Works well for 2 channel tracks; do not bother trying it
5609 on anything but 2 channel stereo.
5612 .B scaletempo[=option1:option2:...]
5613 Scales audio tempo without altering pitch, optionally synced to playback
5614 speed (default).
5616 This works by playing \'stride\' ms of audio at normal speed then
5617 consuming \'stride*scale\' ms of input audio.
5618 It pieces the strides together by blending \'overlap\'% of stride with
5619 audio following the previous stride.
5620 It optionally performs a short statistical analysis on the next \'search\'
5621 ms of audio to determine the best overlap position.
5622 .PD 0
5623 .RSs
5624 .IPs scale=<amount>
5625 Nominal amount to scale tempo.
5626 Scales this amount in addition to speed.
5627 (default: 1.0)
5628 .IPs stride=<amount>
5629 Length in milliseconds to output each stride.
5630 Too high of value will cause noticable skips at high scale amounts and
5631 an echo at low scale amounts.
5632 Very low values will alter pitch.
5633 Increasing improves performance.
5634 (default: 60)
5635 .IPs overlap=<percent>
5636 Percentage of stride to overlap.
5637 Decreasing improves performance.
5638 (default: .20)
5639 .IPs search=<amount>
5640 Length in milliseconds to search for best overlap position.
5641 Decreasing improves performance greatly.
5642 On slow systems, you will probably want to set this very low.
5643 (default: 14)
5644 .IPs speed=<tempo|pitch|both|none>
5645 Set response to speed change.
5646 .RSss
5647 .IPs tempo
5648 Scale tempo in sync with speed (default).
5649 .IPs pitch
5650 Reverses effect of filter.
5651 Scales pitch without altering tempo.
5652 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5653 to your input.conf to step by musical semi-tones.
5654 .I WARNING:
5655 Loses sync with video.
5656 .IPs both
5657 Scale both tempo and pitch.
5658 .IPs none
5659 Ignore speed changes.
5662 .sp 1
5664 .I EXAMPLE:
5666 .RSs
5667 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5668 Would playback media at 1.2x normal speed, with audio at normal pitch.
5669 Changing playback speed, would change audio tempo to match.
5670 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5671 Would playback media at 1.2x normal speed, with audio at normal pitch,
5672 but changing playback speed has no effect on audio tempo.
5673 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5674 Would tweak the quality and performace parameters.
5675 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5676 Would make scaletempo use float code.
5677 Maybe faster on some platforms.
5678 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5679 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5680 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5682 .PD 1
5685 .B "stats\ \ "
5686 Collects and prints statistics about the audio stream, especially the volume.
5687 These statistics are especially intended to help adjusting the volume while
5688 avoiding clipping.
5689 The volumes are printed in dB and compatible with the volume audio filter.
5693 .SH "VIDEO FILTERS"
5694 Video filters allow you to modify the video stream and its properties.
5695 The syntax is:
5698 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5699 Setup a chain of video filters.
5701 Many parameters are optional and set to default values if omitted.
5702 To explicitly use a default value set a parameter to '\-1'.
5703 Parameters w:h means width x height in pixels, x:y means x;y position counted
5704 from the upper left corner of the bigger image.
5706 .I NOTE:
5707 To get a full list of available video filters, see \-vf help.
5708 .sp 1
5709 Video filters are managed in lists.
5710 There are a few commands to manage the filter list.
5713 .B \-vf\-add <filter1[,filter2,...]>
5714 Appends the filters given as arguments to the filter list.
5717 .B \-vf\-pre <filter1[,filter2,...]>
5718 Prepends the filters given as arguments to the filter list.
5721 .B \-vf\-del <index1[,index2,...]>
5722 Deletes the filters at the given indexes.
5723 Index numbers start at 0, negative numbers address the end of the
5724 list (\-1 is the last).
5727 .B \-vf\-clr
5728 Completely empties the filter list.
5730 With filters that support it, you can access parameters by their name.
5733 .B \-vf <filter>=help
5734 Prints the parameter names and parameter value ranges for a particular
5735 filter.
5738 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5739 Sets a named parameter to the given value.
5740 Use on and off or yes and no to set flag parameters.
5742 Available filters are:
5745 .B crop[=w:h:x:y]
5746 Crops the given part of the image and discards the rest.
5747 Useful to remove black bands from widescreen movies.
5748 .PD 0
5749 .RSs
5750 .IPs <w>,<h>
5751 Cropped width and height, defaults to original width and height.
5752 .IPs <x>,<y>
5753 Position of the cropped picture, defaults to center.
5755 .PD 1
5758 .B cropdetect[=limit:round[:reset]]
5759 Calculates necessary cropping parameters and prints the recommended parameters
5760 to stdout.
5761 .PD 0
5762 .RSs
5763 .IPs <limit>
5764 Threshold, which can be optionally specified from nothing (0) to
5765 everything (255) (default: 24).
5767 .IPs <round>
5768 Value which the width/\:height should be divisible by (default: 16).
5769 The offset is automatically adjusted to center the video.
5770 Use 2 to get only even dimensions (needed for 4:2:2 video).
5771 16 is best when encoding to most video codecs.
5773 .IPs <reset>
5774 Counter that determines after how many frames cropdetect will reset
5775 the previously detected largest video area and start over to detect
5776 the current optimal crop area.  This can be useful when channel
5777 logos distort the video area.  0 indicates never reset and return
5778 the largest area encountered during playback. (default: 0).
5780 .PD 1
5783 .B rectangle[=w:h:x:y]
5784 Draws a rectangle of the requested width and height at the specified
5785 coordinates over the image and prints current rectangle parameters
5786 to the console.
5787 This can be used to find optimal cropping parameters.
5788 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5789 you can move and resize the rectangle on the fly.
5790 .PD 0
5791 .RSs
5792 .IPs <w>,<h>
5793 width and height (default: \-1, maximum possible width where boundaries
5794 are still visible.)
5795 .IPs <x>,<y>
5796 top left corner position (default: \-1, uppermost leftmost)
5798 .PD 1
5801 .B expand[=w:h:x:y:o:a:r]
5802 Expands (not scales) movie resolution to the given value and places the
5803 unscaled original at coordinates x, y.
5804 Can be used for placing subtitles/\:OSD in the resulting black bands.
5805 .RSs
5806 .IPs <w>,<h>
5807 Expanded width,height (default: original width,height).
5808 Negative values for w and h are treated as offsets to the original size.
5809 .sp 1
5810 .I EXAMPLE:
5811 .PD 0
5812 .RSs
5813 .IP expand=0:\-50:0:0
5814 Adds a 50 pixel border to the bottom of the picture.
5816 .PD 1
5817 .IPs <x>,<y>
5818 position of original image on the expanded image (default: center)
5819 .IPs "<o>\ \ "
5820 OSD/\:subtitle rendering
5821 .RSss
5822 0: disable (default)
5824 1: enable
5825 .REss
5826 .IPs "<a>\ \ "
5827 Expands to fit an aspect instead of a resolution (default: 0).
5828 .sp 1
5829 .I EXAMPLE:
5830 .PD 0
5831 .RSs
5832 .IP expand=800:::::4/3
5833 Expands to 800x600, unless the source is higher resolution, in which
5834 case it expands to fill a 4/3 aspect.
5836 .PD 1
5837 .IPs "<r>\ \ "
5838 Rounds up to make both width and height divisible by <r> (default: 1).
5842 .B flip (also see \-flip)
5843 Flips the image upside down.
5846 .B "mirror\ "
5847 Mirrors the image on the Y axis.
5850 .B rotate[=<0\-7>]
5851 Rotates the image by 90 degrees and optionally flips it.
5852 For values between 4\-7 rotation is only done if the movie geometry is
5853 portrait and not landscape.
5854 .RSs
5855 .IPs 0
5856 Rotate by 90 degrees clockwise and flip (default).
5857 .IPs 1
5858 Rotate by 90 degrees clockwise.
5859 .IPs 2
5860 Rotate by 90 degrees counterclockwise.
5861 .IPs 3
5862 Rotate by 90 degrees counterclockwise and flip.
5866 .B scale[=w:h[:interlaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5867 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5868 colorspace conversion (also see \-sws).
5869 .RSs
5870 .IPs <w>,<h>
5871 scaled width/\:height (default: original width/\:height)
5873 .I NOTE:
5874 If \-zoom is used, and underlying filters (including libvo) are
5875 incapable of scaling, it defaults to d_width/\:d_height!
5876 .RSss
5877  0:   scaled d_width/\:d_height
5879 \-1:   original width/\:height
5881 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
5883 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
5885 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
5886 .REss
5887 .IPs <interlaced>
5888 Toggle interlaced scaling.
5889 .RSss
5890 0: off (default)
5892 1: on
5893 .REss
5894 .IPs <chr_drop>
5895 chroma skipping
5896 .RSss
5897 0: Use all available input lines for chroma.
5899 1: Use only every 2. input line for chroma.
5901 2: Use only every 4. input line for chroma.
5903 3: Use only every 8. input line for chroma.
5904 .REss
5905 .IPs "<par>[:<par2>] (also see \-sws)"
5906 Set some scaling parameters depending on the type of scaler selected
5907 with \-sws.
5908 .RSss
5909 \-sws 2 (bicubic):  B (blurring) and C (ringing)
5911 0.00:0.60 default
5913 0.00:0.75 VirtualDub's "precise bicubic"
5915 0.00:0.50 Catmull-Rom spline
5917 0.33:0.33 Mitchell-Netravali spline
5919 1.00:0.00 cubic B-spline
5921 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
5923 \-sws 9 (lanczos):  filter length (1\-10)
5924 .REss
5925 .IPs <presize>
5926 Scale to preset sizes.
5927 .RSss
5928 qntsc:   352x240 (NTSC quarter screen)
5930 qpal:    352x288 (PAL quarter screen)
5932 ntsc:    720x480 (standard NTSC)
5934 pal:     720x576 (standard PAL)
5936 sntsc:   640x480 (square pixel NTSC)
5938 spal:    768x576 (square pixel PAL)
5939 .REss
5940 .IPs <noup>
5941 Disallow upscaling past the original dimensions.
5942 .RSss
5943 0: Allow upscaling (default).
5945 1: Disallow upscaling if one dimension exceeds its original value.
5947 2: Disallow upscaling if both dimensions exceed their original values.
5948 .REss
5949 .IPs <arnd>
5950 Accurate rounding for the vertical scaler, which may be faster
5951 or slower than the default rounding.
5952 .RSss
5953 0: Disable accurate rounding (default).
5955 1: Enable accurate rounding.
5956 .REss
5960 .B dsize[=aspect|w:h:aspect-method:r]
5961 Changes the intended display size/\:aspect at an arbitrary point in the
5962 filter chain.
5963 Aspect can be given as a fraction (4/3) or floating point number
5964 (1.33).
5965 Alternatively, you may specify the exact display width and height
5966 desired.
5967 Note that this filter does
5968 .B not
5969 do any scaling itself; it just affects
5970 what later scalers (software or hardware) will do when auto-scaling to
5971 correct aspect.
5972 .RSs
5973 .IPs <w>,<h>
5974 New display width and height.
5975 Can also be these special values:
5976 .RSss
5977  0:   original display width and height
5979 \-1:   original video width and height (default)
5981 \-2:   Calculate w/h using the other dimension and the original display
5982 aspect ratio.
5984 \-3:   Calculate w/h using the other dimension and the original video
5985 aspect ratio.
5986 .REss
5987 .sp 1
5988 .I EXAMPLE:
5989 .PD 0
5990 .RSs
5991 .IP dsize=800:\-2
5992 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
5993 800x450 for a 16/9 aspect video.
5995 .IPs <aspect-method>
5996 Modifies width and height according to original aspect ratios.
5997 .RSss
5998 \-1: Ignore original aspect ratio (default).
6000  0: Keep display aspect ratio by using <w> and <h> as maximum
6001 resolution.
6003  1: Keep display aspect ratio by using <w> and <h> as minimum
6004 resolution.
6006  2: Keep video aspect ratio by using <w> and <h> as maximum
6007 resolution.
6009  3: Keep video aspect ratio by using <w> and <h> as minimum
6010 resolution.
6011 .REss
6012 .sp 1
6013 .I EXAMPLE:
6014 .PD 0
6015 .RSs
6016 .IP dsize=800:600:0
6017 Specifies a display resolution of at most 800x600, or smaller, in order
6018 to keep aspect.
6020 .PD 1
6021 .IPs "<r>\ \ "
6022 Rounds up to make both width and height divisible by <r> (default: 1).
6026 .B "yuy2\ \ \ "
6027 Forces software YV12/\:I420/\:422P to YUY2 conversion.
6028 Useful for video cards/\:drivers with slow YV12 but fast YUY2 support.
6031 .B "yvu9\ \ \ "
6032 Forces software YVU9 to YV12 colorspace conversion.
6033 Deprecated in favor of the software scaler.
6036 .B "yuvcsp\ "
6037 Clamps YUV color values to the CCIR 601 range without doing real conversion.
6040 .B rgb2bgr[=swap]
6041 RGB 24/32 <\-> BGR 24/32 colorspace conversion.
6042 .PD 0
6043 .RSs
6044 .IPs "swap\ "
6045 Also perform  R <\-> B swapping.
6047 .PD 1
6050 .B palette
6051 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
6054 .B format[=fourcc]
6055 Restricts the colorspace for the next filter without doing any conversion.
6056 Use together with the scale filter for a real conversion.
6058 .I NOTE:
6059 For a list of available formats see format=fmt=help.
6060 .PD 0
6061 .RSs
6062 .IPs <fourcc>
6063 format name like rgb15, bgr24, yv12, etc (default: yuy2)
6065 .PD 1
6068 .B noformat[=fourcc]
6069 Restricts the colorspace for the next filter without doing any conversion.
6070 Unlike the format filter, this will allow any colorspace
6071 .B except
6072 the one you specify.
6074 .I NOTE:
6075 For a list of available formats see noformat=fmt=help.
6076 .PD 0
6077 .RSs
6078 .IPs <fourcc>
6079 format name like rgb15, bgr24, yv12, etc (default: yv12)
6081 .PD 1
6084 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
6085 Enables the specified chain of postprocessing subfilters.
6086 Subfilters must be separated by '/' and can be disabled by
6087 prepending a '\-'.
6088 Each subfilter and some options have a short and a long name that can be
6089 used interchangeably, i.e.\& dr/dering are the same.
6090 All subfilters share common options to determine their scope:
6091 .PD 0
6092 .RSs
6093 .IPs a/autoq
6094 Automatically switch the subfilter off if the CPU is too slow.
6095 .IPs c/chrom
6096 Do chrominance filtering, too (default).
6097 .IPs y/nochrom
6098 Do luminance filtering only (no chrominance).
6099 .IPs n/noluma
6100 Do chrominance filtering only (no luminance).
6102 .PD 1
6103 .sp 1
6106 .I NOTE:
6107 \-pphelp shows a list of available subfilters.
6108 .sp 1
6109 Available subfilters are
6111 .RSs
6112 .IPs hb/hdeblock[:difference[:flatness]]
6113 horizontal deblocking filter
6114 .RSss
6115 <difference>: Difference factor where higher values mean
6116 more deblocking (default: 32).
6118 <flatness>: Flatness threshold where lower values mean
6119 more deblocking (default: 39).
6120 .REss
6121 .IPs vb/vdeblock[:difference[:flatness]]
6122 vertical deblocking filter
6123 .RSss
6124 <difference>: Difference factor where higher values mean
6125 more deblocking (default: 32).
6127 <flatness>: Flatness threshold where lower values mean
6128 more deblocking (default: 39).
6129 .REss
6130 .IPs ha/hadeblock[:difference[:flatness]]
6131 accurate horizontal deblocking filter
6132 .RSss
6133 <difference>: Difference factor where higher values mean
6134 more deblocking (default: 32).
6136 <flatness>: Flatness threshold where lower values mean
6137 more deblocking (default: 39).
6138 .REss
6139 .IPs va/vadeblock[:difference[:flatness]]
6140 accurate vertical deblocking filter
6141 .RSss
6142 <difference>: Difference factor where higher values mean
6143 more deblocking (default: 32).
6145 <flatness>: Flatness threshold where lower values mean
6146 more deblocking (default: 39).
6147 .REss
6148 .sp 1
6149 The horizontal and vertical deblocking filters share the
6150 difference and flatness values so you cannot set
6151 different horizontal and vertical thresholds.
6152 .sp 1
6153 .IPs h1/x1hdeblock
6154 experimental horizontal deblocking filter
6155 .IPs v1/x1vdeblock
6156 experimental vertical deblocking filter
6157 .IPs dr/dering
6158 deringing filter
6159 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
6160 temporal noise reducer
6161 .RSss
6162 <threshold1>: larger -> stronger filtering
6164 <threshold2>: larger -> stronger filtering
6166 <threshold3>: larger -> stronger filtering
6167 .REss
6168 .IPs al/autolevels[:f/fullyrange]
6169 automatic brightness / contrast correction
6170 .RSss
6171 f/fullyrange: Stretch luminance to (0\-255).
6172 .REss
6173 .IPs lb/linblenddeint
6174 Linear blend deinterlacing filter that deinterlaces the given block
6175 by filtering all lines with a (1 2 1) filter.
6176 .IPs li/linipoldeint
6177 Linear interpolating deinterlacing filter that deinterlaces the given block
6178 by linearly interpolating every second line.
6179 .IPs ci/cubicipoldeint
6180 Cubic interpolating deinterlacing filter deinterlaces the given block
6181 by cubically interpolating every second line.
6182 .IPs md/mediandeint
6183 Median deinterlacing filter that deinterlaces the given block
6184 by applying a median filter to every second line.
6185 .IPs fd/ffmpegdeint
6186 FFmpeg deinterlacing filter that deinterlaces the given block
6187 by filtering every second line with a (\-1 4 2 4 \-1) filter.
6188 .IPs l5/lowpass5
6189 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
6190 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
6191 .IPs fq/forceQuant[:quantizer]
6192 Overrides the quantizer table from the input with the constant
6193 quantizer you specify.
6194 .RSss
6195 <quantizer>: quantizer to use
6196 .REss
6197 .IPs de/default
6198 default pp filter combination (hb:a,vb:a,dr:a)
6199 .IPs fa/fast
6200 fast pp filter combination (h1:a,v1:a,dr:a)
6201 .IPs "ac\ \ \ "
6202 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
6205 .sp 1
6206 .I EXAMPLE:
6208 .PD 0
6209 .RSs
6210 .IPs "\-vf pp=hb/vb/dr/al"
6211 horizontal and vertical deblocking, deringing and automatic
6212 brightness/\:contrast
6213 .IPs "\-vf pp=de/\-al"
6214 default filters without brightness/\:contrast correction
6215 .IPs "\-vf pp=default/tmpnoise:1:2:3"
6216 Enable default filters & temporal denoiser.
6217 .IPs "\-vf pp=hb:y/vb:a"
6218 Horizontal deblocking on luminance only, and switch vertical deblocking
6219 on or off automatically depending on available CPU time.
6221 .PD 1
6224 .B spp[=quality[:qp[:mode]]]
6225 Simple postprocessing filter that compresses and decompresses the
6226 image at several (or \- in the case of quality level 6 \- all)
6227 shifts and averages the results.
6228 .RSs
6229 .IPs <quality>
6230 0\-6 (default: 3)
6231 .IPs "<qp>\ "
6232 Force quantization parameter (default: 0, use QP from video).
6233 .IPs <mode>
6234 0: hard thresholding (default)
6236 1: soft thresholding (better deringing, but blurrier)
6238 4: like 0, but also use B-frames' QP (may cause flicker)
6240 5: like 1, but also use B-frames' QP (may cause flicker)
6244 .B uspp[=quality[:qp]]
6245 Ultra simple & slow postprocessing filter that compresses and
6246 decompresses the image at several (or \- in the case of quality
6247 level 8 \- all) shifts and averages the results.
6248 The way this differs from the behavior of spp is that uspp actually
6249 encodes & decodes each case with libavcodec Snow, whereas spp uses
6250 a simplified intra only 8x8 DCT similar to MJPEG.
6251 .RSs
6252 .IPs <quality>
6253 0\-8 (default: 3)
6254 .IPs "<qp>\ "
6255 Force quantization parameter (default: 0, use QP from video).
6259 .B fspp[=quality[:qp[:strength[:bframes]]]]
6260 faster version of the simple postprocessing filter
6261 .RSs
6262 .IPs <quality>
6263 4\-5 (equivalent to spp; default: 4)
6264 .IPs "<qp>\ "
6265 Force quantization parameter (default: 0, use QP from video).
6266 .IPs <\-15\-32>
6267 Filter strength, lower values mean more details but also more artifacts,
6268 while higher values make the image smoother but also blurrier (default:
6269 0 \- PSNR optimal).
6270 .IPs <bframes>
6271 0: do not use QP from B-frames (default)
6273 1: use QP from B-frames too (may cause flicker)
6277 .B pp7[=qp[:mode]]
6278 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6279 only the center sample is used after IDCT.
6280 .RSs
6281 .IPs "<qp>\ "
6282 Force quantization parameter (default: 0, use QP from video).
6283 .IPs <mode>
6284 0: hard thresholding
6286 1: soft thresholding (better deringing, but blurrier)
6288 2: medium thresholding (default, good results)
6292 .B qp=equation
6293 quantization parameter (QP) change filter
6294 .RSs
6295 .IPs <equation>
6296 some equation like "2+2*sin(PI*qp)"
6300 .B geq=equation
6301 generic equation change filter
6302 .RSs
6303 .IPs <equation>
6304 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6305 You can use whitespace to make the equation more readable.
6306 There are a couple of constants that can be used in the equation:
6307 .RSss
6308 PI: the number pi
6310 E: the number e
6312 X / Y: the coordinates of the current sample
6314 W / H: width and height of the image
6316 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6317 1,1 and 0.5,0.5 for YUV 4:2:0.
6319 p(x,y): returns the value of the pixel at location x/y of the current plane.
6320 .REss
6324 .B "test\ \ \ "
6325 Generate various test patterns.
6328 .B rgbtest[=width:height]
6329 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6330 You should see a red, green and blue stripe from top to bottom.
6331 .RSs
6332 .IPs <width>
6333 Desired width of generated image (default: 0).
6334 0 means width of input image.
6336 .IPs <height>
6337 Desired height of generated image (default: 0).
6338 0 means height of input image.
6342 .B lavc[=quality:fps]
6343 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6344 .RSs
6345 .IPs <quality>
6346 1\-31: fixed qscale
6348 32\-:  fixed bitrate in kbits
6349 .IPs <fps>
6350 force output fps (float value) (default: 0, autodetect based on height)
6354 .B dvbscale[=aspect]
6355 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6356 calculating the y axis scaling in software to keep aspect.
6357 Only useful together with expand and scale.
6358 .RSs
6359 .IPs <aspect>
6360 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6361 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6363 .sp 1
6365 .I EXAMPLE:
6367 .PD 0
6368 .RSs
6369 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6370 FIXME: Explain what this does.
6372 .PD 1
6375 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6376 Adds noise.
6377 .PD 0
6378 .RSs
6379 .IPs <0\-100>
6380 luma noise
6381 .IPs <0\-100>
6382 chroma noise
6383 .IPs u
6384 uniform noise (gaussian otherwise)
6385 .IPs t
6386 temporal noise (noise pattern changes between frames)
6387 .IPs a
6388 averaged temporal noise (smoother, but a lot slower)
6389 .IPs h
6390 high quality (slightly better looking, slightly slower)
6391 .IPs p
6392 mix random noise with a (semi)regular pattern
6394 .PD 1
6397 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6398 This filter aims to reduce image noise producing smooth images and making still
6399 images really still (This should enhance compressibility.).
6400 .PD 0
6401 .RSs
6402 .IPs <luma_spatial>
6403 spatial luma strength (default: 4)
6404 .IPs <chroma_spatial>
6405 spatial chroma strength (default: 3)
6406 .IPs <luma_tmp>
6407 luma temporal strength (default: 6)
6408 .IPs <chroma_tmp>
6409 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6411 .PD 1
6414 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6415 High precision/\:quality version of the denoise3d filter.
6416 Parameters and usage are the same.
6419 .B ow[=depth[:luma_strength[:chroma_strength]]]
6420 Overcomplete Wavelet denoiser.
6421 .PD 0
6422 .RSs
6423 .IPs <depth>
6424 Larger depth values will denoise lower frequency components more, but
6425 slow down filtering (default: 8).
6426 .IPs <luma_strength>
6427 luma strength (default: 1.0)
6428 .IPs <chroma_strength>
6429 chroma strength (default: 1.0)
6431 .PD 1
6434 .B eq[=brightness:contrast] (OBSOLETE)
6435 Software equalizer with interactive controls just like the hardware
6436 equalizer, for cards/\:drivers that do not support brightness and
6437 contrast controls in hardware.
6438 Might also be useful with MEncoder, either for fixing poorly captured
6439 movies, or for slightly reducing contrast to mask artifacts and get by
6440 with lower bitrates.
6441 .PD 0
6442 .RSs
6443 .IPs <\-100\-100>
6444 initial brightness
6445 .IPs <\-100\-100>
6446 initial contrast
6448 .PD 1
6451 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6452 Alternative software equalizer that uses lookup tables (very slow),
6453 allowing gamma correction in addition to simple brightness
6454 and contrast adjustment.
6455 Note that it uses the same MMX optimized code as \-vf eq if all
6456 gamma values are 1.0.
6457 The parameters are given as floating point values.
6458 .PD 0
6459 .RSs
6460 .IPs <0.1\-10>
6461 initial gamma value (default: 1.0)
6462 .IPs <\-2\-2>
6463 initial contrast, where negative values result in a
6464 negative image (default: 1.0)
6465 .IPs <\-1\-1>
6466 initial brightness (default: 0.0)
6467 .IPs <0\-3>
6468 initial saturation (default: 1.0)
6469 .IPs <0.1\-10>
6470 gamma value for the red component (default: 1.0)
6471 .IPs <0.1\-10>
6472 gamma value for the green component (default: 1.0)
6473 .IPs <0.1\-10>
6474 gamma value for the blue component (default: 1.0)
6475 .IPs <0\-1>
6476 The weight parameter can be used to reduce the effect of a high gamma value on
6477 bright image areas, e.g.\& keep them from getting overamplified and just plain
6478 white.
6479 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6480 at its full strength (default: 1.0).
6482 .PD 1
6485 .B hue[=hue:saturation]
6486 Software equalizer with interactive controls just like the hardware
6487 equalizer, for cards/\:drivers that do not support hue and
6488 saturation controls in hardware.
6489 .PD 0
6490 .RSs
6491 .IPs <\-180\-180>
6492 initial hue (default: 0.0)
6493 .IPs <\-100\-100>
6494 initial saturation, where negative values result
6495 in a negative chroma (default: 1.0)
6497 .PD 1
6500 .B halfpack[=f]
6501 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6502 keeping all chroma samples.
6503 Useful for output to low-resolution display devices when hardware downscaling
6504 is poor quality or is not available.
6505 Can also be used as a primitive luma-only deinterlacer with very low CPU
6506 usage.
6507 .PD 0
6508 .RSs
6509 .IPs "<f>\ \ "
6510 By default, halfpack averages pairs of lines when downsampling.
6511 Any value different from 0 or 1 gives the default (averaging) behavior.
6512 .RSss
6513 0: Only use even lines when downsampling.
6515 1: Only use odd lines when downsampling.
6516 .REss
6518 .PD 1
6521 .B ilpack[=mode]
6522 When interlaced video is stored in YUV 4:2:0 formats, chroma
6523 interlacing does not line up properly due to vertical downsampling of
6524 the chroma channels.
6525 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6526 the chroma lines in their proper locations, so that in any given
6527 scanline, the luma and chroma data both come from the same field.
6528 .PD 0
6529 .RSs
6530 .IPs <mode>
6531 Select the sampling mode.
6532 .RSss
6533 0: nearest-neighbor sampling, fast but incorrect
6535 1: linear interpolation (default)
6536 .REss
6538 .PD 1
6541 .B harddup
6542 Only useful with MEncoder.
6543 If harddup is used when encoding, it will force duplicate frames to be
6544 encoded in the output.
6545 This uses slightly more space, but is necessary for output to MPEG
6546 files or if you plan to demux and remux the video stream after
6547 encoding.
6548 Should be placed at or near the end of the filter chain unless you
6549 have a good reason to do otherwise.
6552 .B softskip
6553 Only useful with MEncoder.
6554 Softskip moves the frame skipping (dropping) step of encoding from
6555 before the filter chain to some point during the filter chain.
6556 This allows filters which need to see all frames (inverse telecine,
6557 temporal denoising, etc.) to function properly.
6558 Should be placed after the filters which need to see all frames and
6559 before any subsequent filters that are CPU-intensive.
6562 .B decimate[=max:hi:lo:frac]
6563 Drops frames that do not differ greatly from the previous frame in
6564 order to reduce framerate.
6565 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6566 streaming over dialup modem), but it could in theory be used for
6567 fixing movies that were inverse-telecined incorrectly.
6568 .PD 0
6569 .RSs
6570 .IPs <max>
6571 Sets the maximum number of consecutive frames which can be
6572 dropped (if positive), or the minimum interval between
6573 dropped frames (if negative).
6574 .IPs <hi>,<lo>,<frac>
6575 A frame is a candidate for dropping if no 8x8 region differs by more
6576 than a threshold of <hi>, and if not more than <frac> portion (1
6577 meaning the whole image) differs by more than a threshold of <lo>.
6578 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6579 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6580 difference for each pixel, or the same spread out differently over the
6581 block.
6583 .PD 1
6586 .B dint[=sense:level]
6587 The drop-deinterlace (dint) filter detects and drops the first from a set
6588 of interlaced video frames.
6589 .PD 0
6590 .RSs
6591 .IPs <0.0\-1.0>
6592 relative difference between neighboring pixels (default: 0.1)
6593 .IPs <0.0\-1.0>
6594 What part of the image has to be detected as interlaced to
6595 drop the frame (default: 0.15).
6597 .PD 1
6600 .B lavcdeint (OBSOLETE)
6601 FFmpeg deinterlacing filter, same as \-vf pp=fd
6604 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6605 Donald Graft's adaptive kernel deinterlacer.
6606 Deinterlaces parts of a video if a configurable threshold is exceeded.
6607 .PD 0
6608 .RSs
6609 .IPs <0\-255>
6610 threshold (default: 10)
6611 .IPs <map>
6612 .RSss
6613 0: Ignore pixels exceeding the threshold (default).
6615 1: Paint pixels exceeding the threshold white.
6616 .REss
6617 .IPs <order>
6618 .RSss
6619 0: Leave fields alone (default).
6621 1: Swap fields.
6622 .REss
6623 .IPs <sharp>
6624 .RSss
6625 0: Disable additional sharpening (default).
6627 1: Enable additional sharpening.
6628 .REss
6629 .IPs <twoway>
6630 .RSss
6631 0: Disable twoway sharpening (default).
6633 1: Enable twoway sharpening.
6634 .REss
6636 .PD 1
6639 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6640 unsharp mask / gaussian blur
6641 .RSs
6642 .IPs "l\ \ \ \ "
6643 Apply effect on luma component.
6644 .IPs "c\ \ \ \ "
6645 Apply effect on chroma components.
6646 .IPs <width>x<height>
6647 width and height of the matrix, odd sized in both directions
6648 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6649 .IPs amount
6650 Relative amount of sharpness/\:blur to add to the image
6651 (a sane range should be \-1.5\-1.5).
6652 .RSss
6653 <0: blur
6655 >0: sharpen
6656 .REss
6660 .B "swapuv\ "
6661 Swap U & V plane.
6664 .B il[=d|i][s][:[d|i][s]]
6665 (De)interleaves lines.
6666 The goal of this filter is to add the ability to process interlaced images
6667 pre-field without deinterlacing them.
6668 You can filter your interlaced DVD and play it on a TV without breaking the
6669 interlacing.
6670 While deinterlacing (with the postprocessing filter) removes interlacing
6671 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6672 2 fields (so called half pictures), so you can process (filter) them
6673 independently and then re-interleave them.
6674 .PD 0
6675 .RSs
6676 .IPs d
6677 deinterleave (placing one above the other)
6678 .IPs i
6679 interleave
6680 .IPs s
6681 swap fields (exchange even & odd lines)
6683 .PD 1
6686 .B fil[=i|d]
6687 (De)interleaves lines.
6688 This filter is very similar to the il filter but much faster, the main
6689 disadvantage is that it does not always work.
6690 Especially if combined with other filters it may produce randomly messed
6691 up images, so be happy if it works but do not complain if it does not for
6692 your combination of filters.
6693 .PD 0
6694 .RSs
6695 .IPs d
6696 Deinterleave fields, placing them side by side.
6697 .IPs i
6698 Interleave fields again (reversing the effect of fil=d).
6700 .PD 1
6703 .B field[=n]
6704 Extracts a single field from an interlaced image using stride arithmetic
6705 to avoid wasting CPU time.
6706 The optional argument n specifies whether to extract the even or the odd
6707 field (depending on whether n is even or odd).
6710 .B detc[=var1=value1:var2=value2:...]
6711 Attempts to reverse the 'telecine' process to recover a clean,
6712 non-interlaced stream at film framerate.
6713 This was the first and most primitive inverse telecine filter to be
6714 added to MPlayer/\:MEncoder.
6715 It works by latching onto the telecine 3:2 pattern and following it as
6716 long as possible.
6717 This makes it suitable for perfectly-telecined material, even in the
6718 presence of a fair degree of noise, but it will fail in the presence
6719 of complex post-telecine edits.
6720 Development on this filter is no longer taking place, as ivtc, pullup,
6721 and filmdint are better for most applications.
6722 The following arguments (see syntax above) may be used to control
6723 detc's behavior:
6724 .RSs
6725 .IPs "<dr>\ "
6726 Set the frame dropping mode.
6727 .RSss
6728 0: Do not drop frames to maintain fixed output framerate (default).
6730 1: Always drop a frame when there have been no drops or telecine
6731 merges in the past 5 frames.
6733 2: Always maintain exact 5:4 input to output frame ratio.
6735 .I NOTE:
6736 Use mode 1 or 2 with MEncoder.
6737 .REss
6738 .IPs "<am>\ "
6739 Analysis mode.
6740 .RSss
6741 0: Fixed pattern with initial frame number specified by <fr>.
6743 1: aggressive search for telecine pattern (default)
6744 .REss
6745 .IPs "<fr>\ "
6746 Set initial frame number in sequence.
6747 0\-2 are the three clean progressive frames; 3 and 4 are the two
6748 interlaced frames.
6749 The default, \-1, means 'not in telecine sequence'.
6750 The number specified here is the type for the imaginary previous
6751 frame before the movie starts.
6752 .IPs "<t0>, <t1>, <t2>, <t3>"
6753 Threshold values to be used in certain modes.
6757 .B ivtc[=1]
6758 Experimental 'stateless' inverse telecine filter.
6759 Rather than trying to lock on to a pattern like the detc filter does,
6760 ivtc makes its decisions independently for each frame.
6761 This will give much better results for material that has undergone
6762 heavy editing after telecine was applied, but as a result it is not as
6763 forgiving of noisy input, for example TV capture.
6764 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6765 detc filter, and should be used with MEncoder but not with MPlayer.
6766 As with detc, you must specify the correct output framerate (\-ofps
6767 24000/1001) when using MEncoder.
6768 Further development on ivtc has stopped, as the pullup and filmdint
6769 filters appear to be much more accurate.
6772 .B pullup[=jl:jr:jt:jb:sb:mp]
6773 Third-generation pulldown reversal (inverse telecine) filter,
6774 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6775 fps progressive content.
6776 The pullup filter is designed to be much more robust than detc or
6777 ivtc, by taking advantage of future context in making its decisions.
6778 Like ivtc, pullup is stateless in the sense that it does not lock onto
6779 a pattern to follow, but it instead looks forward to the following
6780 fields in order to identify matches and rebuild progressive frames.
6781 It is still under development, but believed to be quite accurate.
6782 .RSs
6783 .IPs "jl, jr, jt, and jb"
6784 These options set the amount of "junk" to ignore at
6785 the left, right, top, and bottom of the image, respectively.
6786 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6787 2 lines.
6788 The default is 8 pixels on each side.
6790 .IPs "sb (strict breaks)"
6791 Setting this option to 1 will reduce the chances of
6792 pullup generating an occasional mismatched frame, but it may also
6793 cause an excessive number of frames to be dropped during high motion
6794 sequences.
6795 Conversely, setting it to \-1 will make pullup match fields more
6796 easily.
6797 This may help processing of video where there is slight blurring
6798 between the fields, but may also cause there to be interlaced frames
6799 in the output.
6801 .IPs "mp (metric plane)"
6802 This option may be set to 1 or 2 to use a chroma
6803 plane instead of the luma plane for doing pullup's computations.
6804 This may improve accuracy on very clean source material, but more
6805 likely will decrease accuracy, especially if there is chroma noise
6806 (rainbow effect) or any grayscale video.
6807 The main purpose of setting mp to a chroma plane is to reduce CPU load
6808 and make pullup usable in realtime on slow machines.
6809 .REss
6811 .sp 1
6812 .I NOTE:
6813 Always follow pullup with the softskip filter when encoding to ensure
6814 that pullup is able to see each frame.
6815 Failure to do so will lead to incorrect output and will usually crash,
6816 due to design limitations in the codec/\:filter layer.
6817 .REss
6820 .B filmdint[=options]
6821 Inverse telecine filter, similar to the pullup filter above.
6822 It is designed to handle any pulldown pattern, including mixed soft and
6823 hard telecine and limited support for movies that are slowed down or sped
6824 up from their original framerate for TV.
6825 Only the luma plane is used to find the frame breaks.
6826 If a field has no match, it is deinterlaced with simple linear
6827 approximation.
6828 If the source is MPEG-2, this must be the first filter to allow
6829 access to the field-flags set by the MPEG-2 decoder.
6830 Depending on the source MPEG, you may be fine ignoring this advice, as
6831 long as you do not see lots of "Bottom-first field" warnings.
6832 With no options it does normal inverse telecine, and should be used
6833 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6834 When this filter is used with MPlayer, it will result in an uneven
6835 framerate during playback, but it is still generally better than using
6836 pp=lb or no deinterlacing at all.
6837 Multiple options can be specified separated by /.
6838 .RSs
6839 .IPs crop=<w>:<h>:<x>:<y>
6840 Just like the crop filter, but faster, and works on mixed hard and soft
6841 telecined content as well as when y is not a multiple of 4.
6842 If x or y would require cropping fractional pixels from the chroma
6843 planes, the crop area is extended.
6844 This usually means that x and y must be even.
6845 .IPs io=<ifps>:<ofps>
6846 For each ifps input frames the filter will output ofps frames.
6847 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
6848 This could be used to filter movies that are broadcast on TV at a frame
6849 rate different from their original framerate.
6850 .IPs luma_only=<n>
6851 If n is nonzero, the chroma plane is copied unchanged.
6852 This is useful for YV12 sampled TV, which discards one of the chroma
6853 fields.
6854 .IPs mmx2=<n>
6855 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6856 optimized functions, otherwise, use plain C.
6857 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6858 this option to override auto-detection.
6859 .IPs fast=<n>
6860 The larger n will speed up the filter at the expense of accuracy.
6861 The default value is n=3.
6862 If n is odd, a frame immediately following a frame marked with the
6863 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6864 will not spend any time on soft-telecined MPEG-2 content.
6865 This is the only effect of this flag if MMX2 or 3DNow! is available.
6866 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6867 as with n=2 or 3.
6868 If n=2 or 3, the number of luma levels used to find the frame breaks is
6869 reduced from 256 to 128, which results in a faster filter without losing
6870 much accuracy.
6871 If n=4 or 5, a faster, but much less accurate metric will be used to
6872 find the frame breaks, which is more likely to misdetect high vertical
6873 detail as interlaced content.
6874 .IPs verbose=<n>
6875 If n is nonzero, print the detailed metrics for each frame.
6876 Useful for debugging.
6877 .IPs dint_thres=<n>
6878 Deinterlace threshold.
6879 Used during de-interlacing of unmatched frames.
6880 Larger value means less deinterlacing, use n=256 to completely turn off
6881 deinterlacing.
6882 Default is n=8.
6883 .IPs comb_thres=<n>
6884 Threshold for comparing a top and bottom fields.
6885 Defaults to 128.
6886 .IPs diff_thres=<n>
6887 Threshold to detect temporal change of a field.
6888 Default is 128.
6889 .IPs sad_thres=<n>
6890 Sum of Absolute Difference threshold, default is 64.
6894 .B softpulldown
6895 This filter works only correct with MEncoder and acts on the MPEG-2 flags
6896 used for soft 3:2 pulldown (soft telecine).
6897 If you want to use the ivtc or detc filter on movies that are partly soft
6898 telecined, inserting this filter before them should make them more reliable.
6901 .B divtc[=options]
6902 Inverse telecine for deinterlaced video.
6903 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
6904 using a method that keeps one field and interpolates the other, the result is
6905 a juddering video that has every fourth frame duplicated.
6906 This filter is intended to find and drop those duplicates and restore the
6907 original film framerate.
6908 When using this filter, you must specify \-ofps that is 4/5 of
6909 the fps of the input file and place the softskip later in the
6910 filter chain to make sure that divtc sees all the frames.
6911 Two different modes are available:
6912 One pass mode is the default and is straightforward to use,
6913 but has the disadvantage that any changes in the telecine
6914 phase (lost frames or bad edits) cause momentary judder
6915 until the filter can resync again.
6916 Two pass mode avoids this by analyzing the whole video
6917 beforehand so it will have forward knowledge about the
6918 phase changes and can resync at the exact spot.
6919 These passes do
6920 .B not
6921 correspond to pass one and two of the encoding process.
6922 You must run an extra pass using divtc pass one before the
6923 actual encoding throwing the resulting video away.
6924 Use \-nosound \-ovc raw \-o /dev/null to avoid
6925 wasting CPU power for this pass.
6926 You may add something like crop=2:2:0:0 after divtc
6927 to speed things up even more.
6928 Then use divtc pass two for the actual encoding.
6929 If you use multiple encoder passes, use divtc
6930 pass two for all of them.
6931 The options are:
6932 .RSs
6933 .IPs pass=1|2
6934 Use two pass mode.
6935 .IPs file=<filename>
6936 Set the two pass log filename (default: "framediff.log").
6937 .IPs threshold=<value>
6938 Set the minimum strength the telecine pattern must have for the filter to
6939 believe in it (default: 0.5).
6940 This is used to avoid recognizing false pattern from the parts of the video
6941 that are very dark or very still.
6942 .IPs window=<numframes>
6943 Set the number of past frames to look at when searching for pattern
6944 (default: 30).
6945 Longer window improves the reliability of the pattern search, but shorter
6946 window improves the reaction time to the changes in the telecine phase.
6947 This only affects the one pass mode.
6948 The two pass mode currently uses fixed window that extends to both future
6949 and past.
6950 .IPs phase=0|1|2|3|4
6951 Sets the initial telecine phase for one pass mode (default: 0).
6952 The two pass mode can see the future, so it is able to use the correct
6953 phase from the beginning, but one pass mode can only guess.
6954 It catches the correct phase when it finds it, but this option can be used
6955 to fix the possible juddering at the beginning.
6956 The first pass of the two pass mode also uses this, so if you save the output
6957 from the first pass, you get constant phase result.
6958 .IPs deghost=<value>
6959 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
6960 mode, default 0).
6961 If nonzero, deghosting mode is used.
6962 This is for video that has been deinterlaced by blending the fields
6963 together instead of dropping one of the fields.
6964 Deghosting amplifies any compression artifacts in the blended frames, so the
6965 parameter value is used as a threshold to exclude those pixels from
6966 deghosting that differ from the previous frame less than specified value.
6967 If two pass mode is used, then negative value can be used to make the
6968 filter analyze the whole video in the beginning of pass-2 to determine
6969 whether it needs deghosting or not and then select either zero or the
6970 absolute value of the parameter.
6971 Specify this option for pass-2, it makes no difference on pass-1.
6975 .B phase[=t|b|p|a|u|T|B|A|U][:v]
6976 Delay interlaced video by one field time so that the field order
6977 changes.
6978 The intended use is to fix PAL movies that have been captured with the
6979 opposite field order to the film-to-video transfer.
6980 The options are:
6981 .RSs
6982 .IPs t
6983 Capture field order top-first, transfer bottom-first.
6984 Filter will delay the bottom field.
6985 .IPs b
6986 Capture bottom-first, transfer top-first.
6987 Filter will delay the top field.
6988 .IPs p
6989 Capture and transfer with the same field order.
6990 This mode only exists for the documentation of the other options to refer to,
6991 but if you actually select it, the filter will faithfully do nothing ;-)
6992 .IPs a
6993 Capture field order determined automatically by field flags, transfer opposite.
6994 Filter selects among t and b modes on a frame by frame basis using field flags.
6995 If no field information is available, then this works just like u.
6996 .IPs u
6997 Capture unknown or varying, transfer opposite.
6998 Filter selects among t and b on a frame by frame basis by analyzing the
6999 images and selecting the alternative that produces best match between the
7000 fields.
7001 .IPs T
7002 Capture top-first, transfer unknown or varying.
7003 Filter selects among t and p using image analysis.
7004 .IPs B
7005 Capture bottom-first, transfer unknown or varying.
7006 Filter selects among b and p using image analysis.
7007 .IPs A
7008 Capture determined by field flags, transfer unknown or varying.
7009 Filter selects among t, b and p using field flags and image analysis.
7010 If no field information is available, then this works just like U.
7011 This is the default mode.
7012 .IPs U
7013 Both capture and transfer unknown or varying.
7014 Filter selects among t, b and p using image analysis only.
7015 .IPs v
7016 Verbose operation.
7017 Prints the selected mode for each frame and the average squared difference
7018 between fields for t, b, and p alternatives.
7022 .B telecine[=start]
7023 Apply 3:2 'telecine' process to increase framerate by 20%.
7024 This most likely will not work correctly with MPlayer, but it can
7025 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
7026 Both fps options are essential!
7027 (A/V sync will break if they are wrong.)
7028 The optional start parameter tells the filter where in the telecine
7029 pattern to start (0\-3).
7032 .B tinterlace[=mode]
7033 Temporal field interlacing \- merge pairs of frames into an interlaced
7034 frame, halving the framerate.
7035 Even frames are moved into the upper field, odd frames to the lower field.
7036 This can be used to fully reverse the effect of the tfields filter (in mode 0).
7037 Available modes are:
7038 .PD 0
7039 .RSs
7040 .IPs 0
7041 Move odd frames into the upper field, even into the lower field, generating
7042 a full-height frame at half framerate.
7043 .IPs 1
7044 Only output odd frames, even frames are dropped; height unchanged.
7045 .IPs 2
7046 Only output even frames, odd frames are dropped; height unchanged.
7047 .IPs 3
7048 Expand each frame to full height, but pad alternate lines with black;
7049 framerate unchanged.
7050 .IPs 4
7051 Interleave even lines from even frames with odd lines from odd frames.
7052 Height unchanged at half framerate.
7054 .PD 1
7057 .B tfields[=mode[:field_dominance]]
7058 Temporal field separation \- split fields into frames, doubling the
7059 output framerate.
7060 Like the telecine filter, tfields will only work properly with
7061 MEncoder, and only if both \-fps and \-ofps are set to the
7062 desired (double) framerate!
7063 .PD 0
7064 .RSs
7065 .IPs <mode>
7066 0: Leave fields unchanged (will jump/\:flicker).
7068 1: Interpolate missing lines. (The algorithm used might not be so good.)
7070 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
7072 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
7073 .IPs <field_dominance>\ (DEPRECATED)
7074 \-1: auto (default)
7075 Only works if the decoder exports the appropriate information and
7076 no other filters which discard that information come before tfields
7077 in the filter chain, otherwise it falls back to 0 (top field first).
7079 0: top field first
7081 1: bottom field first
7083 .I NOTE:
7084 This option will possibly be removed in a future version.
7085 Use \-field\-dominance instead.
7087 .PD 1
7090 .B yadif=[mode[:field_dominance]]
7091 Yet another deinterlacing filter
7092 .PD 0
7093 .RSs
7094 .IPs <mode>
7095 0: Output 1 frame for each frame.
7097 1: Output 1 frame for each field.
7099 2: Like 0 but skips spatial interlacing check.
7101 3: Like 1 but skips spatial interlacing check.
7102 .IPs <field_dominance>\ (DEPRECATED)
7103 Operates like tfields.
7105 .I NOTE:
7106 This option will possibly be removed in a future version.
7107 Use \-field\-dominance instead.
7109 .PD 1
7112 .B mcdeint=[mode[:parity[:qp]]]
7113 Motion compensating deinterlacer.
7114 It needs one field per frame as input and must thus be used together
7115 with tfields=1 or yadif=1/3 or equivalent.
7116 .PD 0
7117 .RSs
7118 .IPs <mode>
7119 0: fast
7121 1: medium
7123 2: slow, iterative motion estimation
7125 3: extra slow, like 2 plus multiple reference frames
7126 .IPs <parity>
7127 0 or 1 selects which field to use (note: no autodetection yet!).
7128 .IPs "<qp>\ "
7129 Higher values should result in a smoother motion vector
7130 field but less optimal individual vectors.
7132 .PD 1
7135 .B boxblur=radius:power[:radius:power]
7136 box blur
7137 .PD 0
7138 .RSs
7139 .IPs <radius>
7140 blur filter strength
7141 .IPs <power>
7142 number of filter applications
7144 .PD 1
7147 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
7148 shape adaptive blur
7149 .PD 0
7150 .RSs
7151 .IPs <radius>
7152 blur filter strength (~0.1\-4.0) (slower if larger)
7153 .IPs "<pf>\ "
7154 prefilter strength (~0.1\-2.0)
7155 .IPs <colorDiff>
7156 maximum difference between pixels to still be considered (~0.1\-100.0)
7158 .PD 1
7161 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
7162 smart blur
7163 .PD 0
7164 .RSs
7165 .IPs <radius>
7166 blur filter strength (~0.1\-5.0) (slower if larger)
7167 .IPs <strength>
7168 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
7169 .IPs <threshold>
7170 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
7172 .PD 1
7175 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
7176 Correct the perspective of movies not filmed perpendicular to the screen.
7177 .PD 0
7178 .RSs
7179 .IPs <x0>,<y0>,...
7180 coordinates of the top left, top right, bottom left, bottom right corners
7181 .IPs "<t>\ \ "
7182 linear (0) or cubic resampling (1)
7184 .PD 1
7187 .B "2xsai\ \ "
7188 Scale and smooth the image with the 2x scale and interpolate algorithm.
7191 .B "1bpp\ \ \ "
7192 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
7195 .B down3dright[=lines]
7196 Reposition and resize stereoscopic images.
7197 Extracts both stereo fields and places them side by side, resizing
7198 them to maintain the original movie aspect.
7199 .PD 0
7200 .RSs
7201 .IPs <lines>
7202 number of lines to select from the middle of the image (default: 12)
7204 .PD 1
7207 .B bmovl=hidden:opaque:fifo
7208 The bitmap overlay filter reads bitmaps from a FIFO and displays them
7209 on top of the movie, allowing some transformations on the image.
7210 Also see TOOLS/bmovl-test.c for a small bmovl test program.
7211 .PD 0
7212 .RSs
7213 .IPs <hidden>
7214 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
7215 .IPs <opaque>
7216 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
7217 .IPs <fifo>
7218 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
7219 controlling application)
7221 .PD 1
7222 .sp 1
7224 FIFO commands are:
7226 .PD 0
7227 .RSs
7228 .IPs "RGBA32 width height xpos ypos alpha clear"
7229 followed by width*height*4 Bytes of raw RGBA32 data.
7230 .IPs "ABGR32 width height xpos ypos alpha clear"
7231 followed by width*height*4 Bytes of raw ABGR32 data.
7232 .IPs "RGB24 width height xpos ypos alpha clear"
7233 followed by width*height*3 Bytes of raw RGB24 data.
7234 .IPs "BGR24 width height xpos ypos alpha clear"
7235 followed by width*height*3 Bytes of raw BGR24 data.
7236 .IPs "ALPHA width height xpos ypos alpha"
7237 Change alpha transparency of the specified area.
7238 .IPs "CLEAR width height xpos ypos"
7239 Clear area.
7240 .IPs OPAQUE
7241 Disable all alpha transparency.
7242 Send "ALPHA 0 0 0 0 0" to enable it again.
7243 .IPs "HIDE\ "
7244 Hide bitmap.
7245 .IPs "SHOW\ "
7246 Show bitmap.
7248 .PD 1
7249 .sp 1
7251 Arguments are:
7253 .PD 0
7254 .RSs
7255 .IPs "<width>, <height>"
7256 image/area size
7257 .IPs "<xpos>, <ypos>"
7258 Start blitting at position x/y.
7259 .IPs <alpha>
7260 Set alpha difference.
7261 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
7262 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
7263 .RSss
7264 0:    same as original
7266 255:  Make everything opaque.
7268 \-255: Make everything transparent.
7269 .REss
7270 .IPs <clear>
7271 Clear the framebuffer before blitting.
7272 .RSss
7273 0: The image will just be blitted on top of the old one, so you do not need to
7274 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7276 1: clear
7277 .REss
7279 .PD 1
7282 .B framestep=I|[i]step
7283 Renders only every nth frame or every intra frame (keyframe).
7284 .sp 1
7285 If you call the filter with I (uppercase) as the parameter, then
7286 .B only
7287 keyframes are rendered.
7288 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7289 for AVI it means every scene change or every keyint value (see \-lavcopts
7290 keyint= value if you use MEncoder to encode the video).
7291 .sp 1
7292 When a keyframe is found, an 'I!' string followed by a newline character is
7293 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
7294 because it contains the time (in seconds) and frame number of the keyframe
7295 (You can use this information to split the AVI.).
7296 .sp 1
7297 If you call the filter with a numeric parameter 'step' then only one in
7298 every 'step' frames is rendered.
7299 .sp 1
7300 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7301 (like the I parameter).
7302 .sp 1
7303 If you give only the i then nothing is done to the frames, only I! is
7304 printed.
7307 .B tile=xtiles:ytiles:output:start:delta
7308 Tile a series of images into a single, bigger image.
7309 If you omit a parameter or use a value less than 0, then the default
7310 value is used.
7311 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7312 It is probably a good idea to put the scale filter before the tile :-)
7313 .sp 1
7314 The parameters are:
7315 .sp 1
7316 .PD 0
7317 .RSs
7318 .IPs <xtiles>
7319 number of tiles on the x axis (default: 5)
7320 .IPs <ytiles>
7321 number of tiles on the y axis (default: 5)
7322 .IPs <output>
7323 Render the tile when 'output' number of frames are reached, where 'output'
7324 should be a number less than xtile * ytile.
7325 Missing tiles are left blank.
7326 You could, for example, write an 8 * 7 tile every 50 frames to have one
7327 image every 2 seconds @ 25 fps.
7328 .IPs <start>
7329 outer border thickness in pixels (default: 2)
7330 .IPs <delta>
7331 inner border thickness in pixels (default: 4)
7333 .PD 1
7336 .B delogo[=x:y:w:h:t]
7337 Suppresses a TV station logo by a simple interpolation of the
7338 surrounding pixels.
7339 Just set a rectangle covering the logo and watch it disappear (and
7340 sometimes something even uglier appear \- your mileage may vary).
7341 .PD 0
7342 .RSs
7343 .IPs <x>,<y>
7344 top left corner of the logo
7345 .IPs <w>,<h>
7346 width and height of the cleared rectangle
7347 .IPs <t>
7348 Thickness of the fuzzy edge of the rectangle (added to w and h).
7349 When set to \-1, a green rectangle is drawn on the screen to
7350 simplify finding the right x,y,w,h parameters.
7352 .PD 1
7355 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7356 Suppresses a TV station logo, using a PGM or PPM image
7357 file to determine which pixels comprise the logo.
7358 The width and height of the image file must match
7359 those of the video stream being processed.
7360 Uses the filter image and a circular blur
7361 algorithm to remove the logo.
7362 .RSs
7363 .IPs /path/to/logo_bitmap_file_name.pgm
7364 [path] + filename of the filter image.
7368 .B zrmjpeg[=options]
7369 Software YV12 to MJPEG encoder for use with the zr2 video
7370 output device.
7371 .RSs
7372 .IPs maxheight=<h>|maxwidth=<w>
7373 These options set the maximum width and height the zr card
7374 can handle (the MPlayer filter layer currently cannot query those).
7375 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
7376 Use these options to set maxwidth and maxheight automatically to the
7377 values known for card/\:mode combo.
7378 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
7379 .IPs color|bw
7380 Select color or black and white encoding.
7381 Black and white encoding is faster.
7382 Color is the default.
7383 .IPs hdec={1,2,4}
7384 Horizontal decimation 1, 2 or 4.
7385 .IPs vdec={1,2,4}
7386 Vertical decimation 1, 2 or 4.
7387 .IPs quality=1\-20
7388 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
7389 .IPs fd|nofd
7390 By default, decimation is only performed if the Zoran hardware
7391 can upscale the resulting MJPEG images to the original size.
7392 The option fd instructs the filter to always perform the requested
7393 decimation (ugly).
7397 .B screenshot
7398 Allows acquiring screenshots of the movie using slave mode
7399 commands that can be bound to keypresses.
7400 See the slave mode documentation and the INTERACTIVE CONTROL
7401 section for details.
7402 Files named 'shotNNNN.png' will be saved in the working directory,
7403 using the first available number \- no files will be overwritten.
7404 The filter has no overhead when not used and accepts an arbitrary
7405 colorspace, so it is safe to add it to the configuration file.
7406 Make sure that the screenshot filter is added after all other filters
7407 whose effect you want to record on the saved image.
7408 E.g.\& it should be the last filter if you want to have an exact
7409 screenshot of what you see on the monitor.
7413 .B "ass\ \ \ \ "
7414 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7415 Only useful with the \-ass option.
7416 .sp 1
7417 .I EXAMPLE:
7418 .PD 0
7419 .RSs
7420 .IPs "\-vf ass,screenshot"
7421 Moves SSA/ASS rendering before the screenshot filter.
7422 Screenshots taken this way will contain subtitles.
7424 .PD 1
7427 .B blackframe[=amount:threshold]
7428 Detect frames that are (almost) completely black.
7429 Can be useful to detect chapter transitions or commercials.
7430 Output lines consist of the frame number of the detected frame, the
7431 percentage of blackness, the frame type and the frame number of the last
7432 encountered keyframe.
7433 .RSs
7434 .IPs <amount>
7435 Percentage of the pixels that have to be below the threshold (default: 98).
7436 .IPs <threshold>
7437 Threshold below which a pixel value is considered black (default: 32).
7441 .B gradfun[=strength[:radius]]
7442 Fix the banding artifacts that are sometimes introduced into nearly flat
7443 regions by truncation to 8bit colordepth.
7444 Interpolates the gradients that should go where the bands are, and
7445 dithers them.
7446 .sp 1
7447 This filter is designed for playback only.
7448 Do not use it prior to lossy compression, because compression tends
7449 to lose the dither and bring back the bands.
7450 .RSs
7451 .IPs <strength>
7452 Maximum amount by which the filter will change any one pixel.
7453 Also the threshold for detecting nearly flat regions (default: 1.2).
7454 .IPs <radius>
7455 Neighborhood to fit the gradient to.
7456 Larger radius makes for smoother gradients, but also prevents the filter
7457 from modifying pixels near detailed regions (default: 16).
7462 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7465 .B \-audio\-delay <any floating-point number>
7466 Delays either audio or video by setting a delay field in the header
7467 (default: 0.0).
7468 This does not delay either stream while encoding, but the player will
7469 see the delay field and compensate accordingly.
7470 Positive values delay the audio, and negative values delay the video.
7471 Note that this is the exact opposite of the \-delay option.
7472 For example, if a video plays correctly with \-delay 0.2, you can
7473 fix the video with MEncoder by using \-audio\-delay \-0.2.
7474 .sp 1
7475 Currently, this option only works with the default muxer (\-of avi).
7476 If you are using a different muxer, then you must use \-delay instead.
7479 .B \-audio\-density <1\-50>
7480 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7482 .I NOTE:
7483 CBR only, VBR ignores this as it puts each packet in a new chunk.
7486 .B \-audio\-preload <0.0\-2.0>
7487 Sets up the audio buffering time interval (default: 0.5s).
7490 .B \-fafmttag <format>
7491 Can be used to override the audio format tag of the output file.
7492 .sp 1
7493 .I EXAMPLE:
7494 .PD 0
7495 .RSs
7496 .IPs "\-fafmttag 0x55"
7497 Will have the output file contain 0x55 (mp3) as audio format tag.
7499 .PD 1
7502 .B \-ffourcc <fourcc>
7503 Can be used to override the video fourcc of the output file.
7504 .sp 1
7505 .I EXAMPLE:
7506 .PD 0
7507 .RSs
7508 .IPs "\-ffourcc div3"
7509 Will have the output file contain 'div3' as video fourcc.
7511 .PD 1
7514 .B \-force\-avi\-aspect <0.2\-3.0>
7515 Override the aspect stored in the AVI OpenDML vprp header.
7516 This can be used to change the aspect ratio with '\-ovc copy'.
7519 .B \-frameno\-file <filename> (DEPRECATED)
7520 Specify the name of the audio file with framenumber mappings created in
7521 the first (audio only) pass of a special three pass encoding mode.
7523 .I NOTE:
7524 Using this mode will most likely give you A-V desync.
7525 Do not use it.
7526 It is kept for backwards compatibility only and will possibly
7527 be removed in a future version.
7530 .B \-hr\-edl\-seek
7531 Use a more precise, but much slower method for skipping areas.
7532 Areas marked for skipping are not seeked over, instead all
7533 frames are decoded, but only the necessary frames are encoded.
7534 This allows starting at non-keyframe boundaries.
7536 .I NOTE:
7537 Not guaranteed to work right with '\-ovc copy'.
7540 .B \-info <option1:option2:...> (AVI only)
7541 Specify the info header of the resulting AVI file.
7542 .sp 1
7543 Available options are:
7544 .RSs
7545 .IPs "help\ "
7546 Show this description.
7547 .IPs name=<value>
7548 title of the work
7549 .IPs artist=<value>
7550 artist or author of the work
7551 .IPs genre=<value>
7552 original work category
7553 .IPs subject=<value>
7554 contents of the work
7555 .IPs copyright=<value>
7556 copyright information
7557 .IPs srcform=<value>
7558 original format of the digitized material
7559 .IPs comment=<value>
7560 general comments about the work
7564 .B \-noautoexpand
7565 Do not automatically insert the expand filter into the MEncoder filter chain.
7566 Useful to control at which point of the filter chain subtitles are rendered
7567 when hardcoding subtitles onto a movie.
7570 .B \-noencodedups
7571 Do not attempt to encode duplicate frames in duplicate; always output
7572 zero-byte frames to indicate duplicates.
7573 Zero-byte frames will be written anyway unless a filter or encoder
7574 capable of doing duplicate encoding is loaded.
7575 Currently the only such filter is harddup.
7578 .B \-noodml (\-of avi only)
7579 Do not write OpenDML index for AVI files >1GB.
7582 .B \-noskip
7583 Do not skip frames.
7586 .B \-o <filename>
7587 Outputs to the given filename.
7589 If you want a default output filename, you can put this option in the
7590 MEncoder config file.
7593 .B \-oac <codec name>
7594 Encode with the given audio codec (no default set).
7596 .I NOTE:
7597 Use \-oac help to get a list of available audio codecs.
7598 .sp 1
7599 .I EXAMPLE:
7600 .PD 0
7601 .RSs
7602 .IPs "\-oac copy"
7603 no encoding, just streamcopy
7604 .IPs "\-oac pcm"
7605 Encode to uncompressed PCM.
7606 .IPs "\-oac mp3lame"
7607 Encode to MP3 (using LAME).
7608 .IPs "\-oac lavc"
7609 Encode with a libavcodec codec.
7611 .PD 1
7614 .B \-of <format> (BETA CODE!)
7615 Encode to the specified container format (default: AVI).
7617 .I NOTE:
7618 Use \-of help to get a list of available container formats.
7619 .sp 1
7620 .I EXAMPLE:
7621 .PD 0
7622 .RSs
7623 .IPs "\-of avi"
7624 Encode to AVI.
7625 .IPs "\-of mpeg"
7626 Encode to MPEG (also see \-mpegopts).
7627 .IPs "\-of lavf"
7628 Encode with libavformat muxers (also see \-lavfopts).
7629 .IPs "\-of rawvideo"
7630 raw video stream (no muxing \- one video stream only)
7631 .IPs "\-of rawaudio"
7632 raw audio stream (no muxing \- one audio stream only)
7634 .PD 1
7637 .B \-ofps <fps>
7638 Specify a frames per second (fps) value for the output file,
7639 which can be different from that of the source material.
7640 Must be set for variable fps (ASF, some MOV) and progressive
7641 (30000/1001 fps telecined MPEG) files.
7644 .B \-ovc <codec name>
7645 Encode with the given video codec (no default set).
7647 .I NOTE:
7648 Use \-ovc help to get a list of available video codecs.
7649 .sp 1
7650 .I EXAMPLE:
7651 .PD 0
7652 .RSs
7653 .IPs "\-ovc copy"
7654 no encoding, just streamcopy
7655 .IPs "\-ovc raw"
7656 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7657 .IPs "\-ovc lavc"
7658 Encode with a libavcodec codec.
7660 .PD 1
7663 .B \-passlogfile <filename>
7664 Dump first pass information to <filename> instead of the default divx2pass.log
7665 in two pass encoding mode.
7668 .B \-skiplimit <value>
7669 Specify the maximum number of frames that may be skipped after
7670 encoding one frame (\-noskiplimit for unlimited).
7673 .B \-vobsubout <basename>
7674 Specify the basename for the output .idx and .sub files.
7675 This turns off subtitle rendering in the encoded movie and diverts it to
7676 VOBsub subtitle files.
7679 .B \-vobsuboutid <langid>
7680 Specify the language two letter code for the subtitles.
7681 This overrides what is read from the DVD or the .ifo file.
7684 .B \-vobsuboutindex <index>
7685 Specify the index of the subtitles in the output files (default: 0).
7689 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7690 You can specify codec specific encoding parameters using the following
7691 syntax:
7694 .B \-<codec>opts <option1[=value1]:option2[=value2]:...>
7697 Where <codec> may be: lavc, xvidenc, mp3lame, toolame, twolame,
7698 nuv, xvfw, faac, x264enc, mpeg, lavf.
7701 .SS mp3lame (\-lameopts)
7704 .B "help\ \ \ "
7705 get help
7708 .B vbr=<0\-4>
7709 variable bitrate method
7710 .PD 0
7711 .RSs
7712 .IPs 0
7714 .IPs 1
7716 .IPs 2
7717 rh (default)
7718 .IPs 3
7720 .IPs 4
7721 mtrh
7723 .PD 1
7726 .B "abr\ \ \ \ "
7727 average bitrate
7730 .B "cbr\ \ \ \ "
7731 constant bitrate
7732 Also forces CBR mode encoding on subsequent ABR presets modes.
7735 .B br=<0\-1024>
7736 bitrate in kbps (CBR and ABR only)
7739 .B q=<0\-9>
7740 quality (0 \- highest, 9 \- lowest) (VBR only)
7743 .B aq=<0\-9>
7744 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
7747 .B ratio=<1\-100>
7748 compression ratio
7751 .B vol=<0\-10>
7752 audio input gain
7755 .B mode=<0\-3>
7756 (default: auto)
7757 .PD 0
7758 .RSs
7759 .IPs 0
7760 stereo
7761 .IPs 1
7762 joint-stereo
7763 .IPs 2
7764 dualchannel
7765 .IPs 3
7766 mono
7768 .PD 1
7771 .B padding=<0\-2>
7772 .PD 0
7773 .RSs
7774 .IPs 0
7775 none
7776 .IPs 1
7778 .IPs 2
7779 adjust
7781 .PD 1
7784 .B "fast\ \ \ "
7785 Switch on faster encoding on subsequent VBR presets modes.
7786 This results in slightly lower quality and higher bitrates.
7789 .B highpassfreq=<freq>
7790 Set a highpass filtering frequency in Hz.
7791 Frequencies below the specified one will be cut off.
7792 A value of \-1 will disable filtering, a value of 0
7793 will let LAME choose values automatically.
7796 .B lowpassfreq=<freq>
7797 Set a lowpass filtering frequency in Hz.
7798 Frequencies above the specified one will be cut off.
7799 A value of \-1 will disable filtering, a value of 0
7800 will let LAME choose values automatically.
7803 .B preset=<value>
7804 preset values
7805 .RSs
7806 .IPs "help\ "
7807 Print additional options and information about presets settings.
7808 .IPs medium
7809 VBR encoding, good quality, 150\-180 kbps bitrate range
7810 .IPs standard
7811 VBR encoding, high quality, 170\-210 kbps bitrate range
7812 .IPs extreme
7813 VBR encoding, very high quality, 200\-240 kbps bitrate range
7814 .IPs insane
7815 CBR encoding, highest preset quality, 320 kbps bitrate
7816 .IPs <8\-320>
7817 ABR encoding at average given kbps bitrate
7819 .sp 1
7821 .I EXAMPLES:
7823 .PD 0
7824 .RSs
7825 .IPs fast:preset=standard
7826 suitable for most people and most music types and already quite high quality
7827 .IPs cbr:preset=192
7828 Encode with ABR presets at a 192 kbps forced constant bitrate.
7829 .IPs preset=172
7830 Encode with ABR presets at a 172 kbps average bitrate.
7831 .IPs preset=extreme
7832 for people with extremely good hearing and similar equipment
7834 .PD 1
7837 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
7840 .B br=<32\-384>
7841 In CBR mode this parameter indicates the bitrate in kbps,
7842 when in VBR mode it is the minimum bitrate allowed per frame.
7843 VBR mode will not work with a value below 112.
7846 .B vbr=<\-50\-50> (VBR only)
7847 variability range; if negative the encoder shifts the average bitrate
7848 towards the lower limit, if positive towards the higher.
7849 When set to 0 CBR is used (default).
7852 .B maxvbr=<32\-384> (VBR only)
7853 maximum bitrate allowed per frame, in kbps
7856 .B mode=<stereo  |  jstereo  |  mono  |  dual>
7857 (default: mono for 1-channel audio, stereo otherwise)
7860 .B psy=<\-1\-4>
7861 psychoacoustic model (default: 2)
7864 .B errprot=<0 | 1>
7865 Include error protection.
7868 .B debug=<0\-10>
7869 debug level
7871 .PD 1
7874 .SS faac (\-faacopts)
7877 .B br=<bitrate>
7878 average bitrate in kbps (mutually exclusive with quality)
7881 .B quality=<1\-1000>
7882 quality mode, the higher the better (mutually exclusive with br)
7885 .B object=<1\-4>
7886 object type complexity
7887 .PD 0
7888 .RSs
7889 .IPs 1
7890 MAIN (default)
7891 .IPs 2
7893 .IPs 3
7895 .IPs 4
7896 LTP (extremely slow)
7898 .PD 1
7901 .B mpeg=<2|4>
7902 MPEG version (default: 4)
7905 .B "tns\ \ \ \ "
7906 Enables temporal noise shaping.
7909 .B cutoff=<0\-sampling_rate/2>
7910 cutoff frequency (default: sampling_rate/2)
7913 .B "raw\ \ \ \ "
7914 Stores the bitstream as raw payload with extradata in the container header
7915 (default: 0, corresponds to ADTS).
7916 Do not set this flag if not explicitly required or you will not be able to
7917 remux the audio stream later on.
7919 .PD 1
7922 .SS lavc (\-lavcopts)
7924 Many libavcodec (lavc for short) options are tersely documented.
7925 Read the source for full details.
7927 .I EXAMPLE:
7928 .PD 0
7929 .RSs
7930 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
7932 .PD 1
7935 .B o=<key>=<value>[,<key>=<value>[,...]]
7936 Pass AVOptions to libavcodec encoder.
7937 Note, a patch to make the o= unneeded and pass all unknown options through
7938 the AVOption system is welcome.
7939 A full list of AVOptions can be found in the FFmpeg manual.
7940 Note that some AVOptions may conflict with MEncoder options.
7941 .sp 1
7943 .I EXAMPLE:
7945 .RSs
7946 .PD 0
7947 .IPs o=bt=100k
7948 .PD 1
7952 .B acodec=<value>
7953 audio codec (default: mp2)
7954 .PD 0
7955 .RSs
7956 .IPs "ac3\ \ "
7957 Dolby Digital (AC-3)
7958 .IPs adpcm_*
7959 Adaptive PCM formats \- see the HTML documentation for details.
7960 .IPs "flac\ "
7961 Free Lossless Audio Codec (FLAC)
7962 .IPs "g726\ "
7963 G.726 ADPCM
7964 .IPs libfaac
7965 Advanced Audio Coding (AAC) \- using FAAC
7966 .IPs libmp3lame
7967 MPEG-1 audio layer 3 (MP3) \- using LAME
7968 .IPs "mp2\ \ "
7969 MPEG-1 audio layer 2 (MP2)
7970 .IPs pcm_*
7971 PCM formats \- see the HTML documentation for details.
7972 .IPs roq_dpcm
7973 Id Software RoQ DPCM
7974 .IPs sonic
7975 experimental simple lossy codec
7976 .IPs sonicls
7977 experimental simple lossless codec
7978 .IPs vorbis
7979 Vorbis
7980 .IPs wmav1
7981 Windows Media Audio v1
7982 .IPs wmav2
7983 Windows Media Audio v2
7985 .PD 1
7988 .B abitrate=<value>
7989 audio bitrate in kbps (default: 224)
7992 .B atag=<value>
7993 Use the specified Windows audio format tag (e.g.\& atag=0x55).
7996 .B bit_exact
7997 Use only bit exact algorithms (except (I)DCT).
7998 Additionally bit_exact disables several optimizations and thus
7999 should only be used for regression tests, which need binary
8000 identical files even if the encoder version changes.
8001 This also suppresses the user_data header in MPEG-4 streams.
8002 Do not use this option unless you know exactly what you are doing.
8005 .B threads=<1\-8>
8006 Maximum number of threads to use (default: 1).
8007 May have a slight negative effect on motion estimation.
8011 .B vcodec=<value>
8012 Employ the specified codec (default: mpeg4).
8013 .PD 0
8014 .RSs
8015 .IPs "asv1\ "
8016 ASUS Video v1
8017 .IPs "asv2\ "
8018 ASUS Video v2
8019 .IPs dvvideo
8020 Sony Digital Video
8021 .IPs "ffv1\ "
8022 FFmpeg's lossless video codec
8023 .IPs ffvhuff
8024 nonstandard 20% smaller HuffYUV using YV12
8025 .IPs "flv\ \ "
8026 Sorenson H.263 used in Flash Video
8027 .IPs "h261\ "
8028 H.261
8029 .IPs "h263\ "
8030 H.263
8031 .IPs h263p
8032 H.263+
8033 .IPs huffyuv
8034 HuffYUV
8035 .IPs libtheora
8036 Theora
8037 .IPs libx264
8038 x264 H.264/AVC MPEG-4 Part 10
8039 .IPs libxvid
8040 Xvid MPEG-4 Part 2 (ASP)
8041 .IPs ljpeg
8042 Lossless JPEG
8043 .IPs mjpeg
8044 Motion JPEG
8045 .IPs mpeg1video
8046 MPEG-1 video
8047 .IPs mpeg2video
8048 MPEG-2 video
8049 .IPs mpeg4
8050 MPEG-4 (DivX 4/5)
8051 .IPs msmpeg4
8052 DivX 3
8053 .IPs msmpeg4v2
8054 MS MPEG4v2
8055 .IPs roqvideo
8056 ID Software RoQ Video
8057 .IPs "rv10\ "
8058 an old RealVideo codec
8059 .IPs "snow (also see: vstrict)"
8060 FFmpeg's experimental wavelet-based codec
8061 .IPs "svq1\ "
8062 Apple Sorenson Video 1
8063 .IPs "wmv1\ "
8064 Windows Media Video, version 1 (AKA WMV7)
8065 .IPs "wmv2\ "
8066 Windows Media Video, version 2 (AKA WMV8)
8068 .PD 1
8071 .B vqmin=<1\-31>
8072 minimum quantizer
8073 .RSs
8074 .IPs 1
8075 Not recommended (much larger file, little quality difference and weird side
8076 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
8077 resulting in lower quality and some decoders will not be able to decode it).
8078 .IPs 2
8079 Recommended for normal mpeg4/\:mpeg1video encoding (default).
8080 .IPs 3
8081 Recommended for h263(p)/\:msmpeg4.
8082 The reason for preferring 3 over 2 is that 2 could lead to overflows.
8083 (This will be fixed for h263(p) by changing the quantizer per MB in
8084 the future, msmpeg4 cannot be fixed as it does not support that.)
8088 .B lmin=<0.01\-255.0>
8089 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
8090 Lavc will rarely use quantizers below the value of lmin.
8091 Lowering lmin will make lavc more likely to choose lower quantizers for
8092 some frames, but not lower than the value of vqmin.
8093 Likewise, raising lmin will make lavc less likely to choose low
8094 quantizers, even if vqmin would have allowed them.
8095 You probably want to set lmin approximately equal to vqmin.
8096 When adaptive quantization is in use, changing lmin/lmax may have less
8097 of an effect; see mblmin/mblmax.
8101 .B lmax=<0.01\-255.0>
8102 maximum Lagrange multiplier for ratecontrol (default: 31.0)
8106 .B mblmin=<0.01\-255.0>
8107 Minimum macroblock-level Lagrange multiplier for ratecontrol
8108 (default:2.0).
8109 This parameter affects adaptive quantization options like qprd,
8110 lumi_mask, etc..
8114 .B mblmax=<0.01\-255.0>
8115 Maximum macroblock-level Lagrange multiplier for ratecontrol
8116 (default: 31.0).
8120 .B vqscale=<0\-31>
8121 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
8122 A lower value means better quality but larger files (default: \-1).
8123 In case of snow codec, value 0 means lossless encoding.
8124 Since the other codecs do not support this, vqscale=0 will have an undefined
8125 effect.
8126 1 is not recommended (see vqmin for details).
8129 .B vqmax=<1\-31>
8130 Maximum quantizer, 10\-31 should be a sane range (default: 31).
8133 .B mbqmin=<1\-31>
8134 obsolete, use vqmin
8137 .B mbqmax=<1\-31>
8138 obsolete, use vqmax
8141 .B vqdiff=<1\-31>
8142 maximum quantizer difference between consecutive I- or P-frames
8143 (default: 3)
8146 .B vmax_b_frames=<0\-4>
8147 maximum number of B-frames between non-B-frames:
8148 .PD 0
8149 .RSs
8150 .IPs 0
8151 no B-frames (default)
8152 .IPs 0\-2
8153 sane range for MPEG-4
8155 .PD 1
8158 .B vme=<0\-5>
8159 motion estimation method.
8160 Available methods are:
8161 .PD 0
8162 .RSs
8163 .IPs 0
8164 none (very low quality)
8165 .IPs 1
8166 full (slow, currently unmaintained and disabled)
8167 .IPs 2
8168 log (low quality, currently unmaintained and disabled)
8169 .IPs 3
8170 phods (low quality, currently unmaintained and disabled)
8171 .IPs 4
8172 EPZS: size=1 diamond, size can be adjusted with the *dia options
8173 (default)
8174 .IPs 5
8175 X1 (experimental, currently aliased to EPZS)
8176 .IPs 8
8177 iter (iterative overlapped block, only used in snow)
8179 .PD 1
8180 .sp 1
8183 .I NOTE:
8184 0\-3 currently ignores the amount of bits spent,
8185 so quality may be low.
8189 .B me_range=<0\-9999>
8190 motion estimation search range (default: 0 (unlimited))
8193 .B mbd=<0\-2> (also see *cmp, qpel)
8194 Macroblock decision algorithm (high quality mode), encode each macro
8195 block in all modes and choose the best.
8196 This is slow but results in better quality and file size.
8197 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
8198 macroblocks (the mbcmp value is still used in other places though, in particular
8199 the motion search algorithms).
8200 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
8201 however, a slower but better half-pel motion search will be used,
8202 regardless of what mbd is set to.
8203 If qpel is set, quarter-pel motion search will be used regardless.
8204 .PD 0
8205 .RSs
8206 .IPs 0
8207 Use comparison function given by mbcmp (default).
8208 .IPs 1
8209 Select the MB mode which needs the fewest bits (=vhq).
8210 .IPs 2
8211 Select the MB mode which has the best rate distortion.
8213 .PD 1
8216 .B "vhq\ \ \ \ "
8217 Same as mbd=1, kept for compatibility reasons.
8220 .B "v4mv\ \ \ "
8221 Allow 4 motion vectors per macroblock (slightly better quality).
8222 Works better if used with mbd>0.
8225 .B "obmc\ \ \ "
8226 overlapped block motion compensation (H.263+)
8229 .B "loop\ \ \ "
8230 loop filter (H.263+)
8231 note, this is broken
8234 .B inter_threshold <\-1000\-1000>
8235 Does absolutely nothing at the moment.
8238 .B keyint=<0\-300>
8239 maximum interval between keyframes in frames (default: 250 or one
8240 keyframe every ten seconds in a 25fps movie.
8241 This is the recommended default for MPEG-4).
8242 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
8243 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
8244 keyframes need more space than other frames, so larger numbers here mean
8245 slightly smaller files but less precise seeking.
8246 0 is equivalent to 1, which makes every frame a keyframe.
8247 Values >300 are not recommended as the quality might be bad depending upon
8248 decoder, encoder and luck.
8249 It is common for MPEG-1/2 to use values <=30.
8252 .B sc_threshold=<\-1000000000\-1000000000>
8253 Threshold for scene change detection.
8254 A keyframe is inserted by libavcodec when it detects a scene change.
8255 You can specify the sensitivity of the detection with this option.
8256 \-1000000000 means there is a scene change detected at every frame,
8257 1000000000 means no scene changes are detected (default: 0).
8260 .B sc_factor=<any positive integer>
8261 Causes frames with higher quantizers to be more likely to trigger a
8262 scene change detection and make libavcodec use an I-frame (default: 1).
8263 1\-16 is a sane range.
8264 Values between 2 and 6 may yield increasing PSNR (up to approximately
8265 0.04 dB) and better placement of I-frames in high-motion scenes.
8266 Higher values than 6 may give very slightly better PSNR (approximately
8267 0.01 dB more than sc_factor=6), but noticably worse visual quality.
8270 .B vb_strategy=<0\-2> (pass one only)
8271 strategy to choose between I/P/B-frames:
8272 .PD 0
8273 .RSs
8274 .IPs 0
8275 Always use the maximum number of B-frames (default).
8276 .IPs 1
8277 Avoid B-frames in high motion scenes.
8278 See the b_sensitivity option to tune this strategy.
8279 .IPs 2
8280 Places B-frames more or less optimally to yield maximum quality (slower).
8281 You may want to reduce the speed impact of this option by tuning the
8282 option brd_scale.
8284 .PD 1
8287 .B b_sensitivity=<any integer greater than 0>
8288 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
8289 B-frames (default: 40).
8290 Lower sensitivities will result in more B-frames.
8291 Using more B-frames usually improves PSNR, but too many B-frames can
8292 hurt quality in high-motion scenes.
8293 Unless there is an extremely high amount of motion, b_sensitivity can
8294 safely be lowered below the default; 10 is a reasonable value in most
8295 cases.
8298 .B brd_scale=<0\-10>
8299 Downscales frames for dynamic B-frame decision (default: 0).
8300 Each time brd_scale is increased by one, the frame dimensions are
8301 divided by two, which improves speed by a factor of four.
8302 Both dimensions of the fully downscaled frame must be even numbers, so
8303 brd_scale=1 requires the original dimensions to be multiples of four,
8304 brd_scale=2 requires multiples of eight, etc.
8305 In other words, the dimensions of the original frame must both be
8306 divisible by 2^(brd_scale+1) with no remainder.
8309 .B bidir_refine=<0\-4>
8310 Refine the two motion vectors used in bidirectional macroblocks,
8311 rather than re-using vectors from the forward and backward searches.
8312 This option has no effect without B-frames.
8313 .PD 0
8314 .RSs
8315 .IPs 0
8316 Disabled (default).
8317 .IPs 1\-4
8318 Use a wider search (larger values are slower).
8320 .PD 1
8323 .B vpass=<1\-3>
8324 Activates internal two (or more) pass mode, only specify if you wish to
8325 use two (or more) pass encoding.
8326 .PD 0
8327 .RSs
8328 .IPs 1
8329 first pass (also see turbo)
8330 .IPs 2
8331 second pass
8332 .IPs 3
8333 Nth pass (second and subsequent passes of N-pass encoding)
8336 Here is how it works, and how to use it:
8338 The first pass (vpass=1) writes the statistics file.
8339 You might want to deactivate some CPU-hungry options, like "turbo"
8340 mode does.
8342 In two pass mode, the second pass (vpass=2) reads the statistics file and
8343 bases ratecontrol decisions on it.
8345 In N-pass mode, the second pass (vpass=3, that is not a typo)
8346 does both: It first reads the statistics, then overwrites them.
8347 You might want to backup divx2pass.log before doing this if there is
8348 any possibility that you will have to cancel MEncoder.
8349 You can use all encoding options, except very CPU-hungry options like "qns".
8351 You can run this same pass over and over to refine the encode.
8352 Each subsequent pass will use the statistics from the previous pass to improve.
8353 The final pass can include any CPU-hungry encoding options.
8355 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
8357 If you want a 3 or more pass encode, use vpass=1 for the first pass
8358 and then vpass=3 and then vpass=3 again and again until you are
8359 satisfied with the encode.
8361 .PD 1
8362 .sp 1
8364 huffyuv:
8366 .PD 0
8367 .RSs
8368 .IPs "pass 1"
8369 Saves statistics.
8370 .IPs "pass 2"
8371 Encodes with an optimal Huffman table based upon statistics
8372 from the first pass.
8374 .PD 1
8377 .B turbo (two pass only)
8378 Dramatically speeds up pass one using faster algorithms and disabling
8379 CPU-intensive options.
8380 This will probably reduce global PSNR a little bit (around 0.01dB) and
8381 change individual frame type and PSNR a little bit more (up to 0.03dB).
8384 .B aspect=<x/y>
8385 Store movie aspect internally, just like with MPEG files.
8386 Much nicer than rescaling, because quality is not decreased.
8387 Only MPlayer will play these files correctly, other players will display
8388 them with wrong aspect.
8389 The aspect parameter can be given as a ratio or a floating point number.
8390 .sp 1
8392 .I EXAMPLE:
8394 .RSs
8395 .PD 0
8396 .IPs "aspect=16/9 or aspect=1.78"
8397 .PD 1
8401 .B autoaspect
8402 Same as the aspect option, but automatically computes aspect, taking
8403 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
8404 filter chain.
8405 Does not incur a performance penalty, so you can safely leave it
8406 always on.
8409 .B vbitrate=<value>
8410 Specify bitrate (default: 800).
8412 .I WARNING:
8413 1kbit = 1000 bits
8414 .PD 0
8415 .RSs
8416 .IPs 4\-16000
8417 (in kbit)
8418 .IPs 16001\-24000000
8419 (in bit)
8421 .PD 1
8424 .B vratetol=<value>
8425 approximated file size tolerance in kbit.
8426 1000\-100000 is a sane range.
8427 (warning: 1kbit = 1000 bits)
8428 (default: 8000)
8430 .I NOTE:
8431 vratetol should not be too large during the second pass or there might
8432 be problems if vrc_(min|max)rate is used.
8435 .B vrc_maxrate=<value>
8436 maximum bitrate in kbit/\:sec
8437 (default: 0, unlimited)
8440 .B vrc_minrate=<value>
8441 minimum bitrate in kbit/\:sec
8442 (default: 0, unlimited)
8445 .B vrc_buf_size=<value>
8446 buffer size in kbit
8447 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
8448 917 for SVCD and 1835 for DVD.
8451 .B vrc_buf_aggressivity
8452 currently useless
8455 .B vrc_strategy
8456 Ratecontrol method.
8457 Note that some of the ratecontrol-affecting options will have no effect
8458 if vrc_strategy is not set to 0.
8459 .PD 0
8460 .RSs
8461 .IPs 0
8462 Use internal lavc ratecontrol (default).
8463 .IPs 1
8464 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
8465 with support for Xvid 1.1 or higher).
8467 .PD 1
8470 .B vb_qfactor=<\-31.0\-31.0>
8471 quantizer factor between B- and non-B-frames (default: 1.25)
8474 .B vi_qfactor=<\-31.0\-31.0>
8475 quantizer factor between I- and non-I-frames (default: 0.8)
8478 .B vb_qoffset=<\-31.0\-31.0>
8479 quantizer offset between B- and non-B-frames (default: 1.25)
8482 .B vi_qoffset=<\-31.0\-31.0>
8483 (default: 0.0)
8485 if v{b|i}_qfactor > 0
8487 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8489 else
8491 do normal ratecontrol (do not lock to next P-frame quantizer) and
8492 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8494 .I HINT:
8495 To do constant quantizer encoding with different quantizers for
8496 I/P- and B-frames you can use:
8497 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8500 .B vqblur=<0.0\-1.0> (pass one)
8501 Quantizer blur (default: 0.5), larger values will average the
8502 quantizer more over time (slower change).
8503 .PD 0
8504 .RSs
8505 .IPs 0.0
8506 Quantizer blur disabled.
8507 .IPs 1.0
8508 Average the quantizer over all previous frames.
8510 .PD 1
8513 .B vqblur=<0.0\-99.0> (pass two)
8514 Quantizer gaussian blur (default: 0.5), larger values will average
8515 the quantizer more over time (slower change).
8518 .B vqcomp=<0.0\-1.0>
8519 Quantizer compression, vrc_eq depends upon this (default: 0.5).
8520 .I NOTE:
8521 Perceptual quality will be optimal somewhere in between the range's extremes.
8524 .B vrc_eq=<equation>
8525 main ratecontrol equation
8527 .RSs
8528 .IPs 1+(tex/\:avgTex-1)*qComp
8529 approximately the equation of the old ratecontrol code
8530 .IPs tex^qComp
8531 with qcomp 0.5 or something like that (default)
8535 infix operators:
8537 .RSs
8538 .IPs +,\-,*,/,^
8542 variables:
8544 .RSs
8545 .IPs "tex\ \ "
8546 texture complexity
8547 .IPs iTex,pTex
8548 intra, non-intra texture complexity
8549 .IPs avgTex
8550 average texture complexity
8551 .IPs avgIITex
8552 average intra texture complexity in I-frames
8553 .IPs avgPITex
8554 average intra texture complexity in P-frames
8555 .IPs avgPPTex
8556 average non-intra texture complexity in P-frames
8557 .IPs avgBPTex
8558 average non-intra texture complexity in B-frames
8559 .IPs "mv\ \ \ "
8560 bits used for motion vectors
8561 .IPs fCode
8562 maximum length of motion vector in log2 scale
8563 .IPs iCount
8564 number of intra macroblocks / number of macroblocks
8565 .IPs "var\ \ "
8566 spatial complexity
8567 .IPs mcVar
8568 temporal complexity
8569 .IPs qComp
8570 qcomp from the command line
8571 .IPs "isI, isP, isB"
8572 Is 1 if picture type is I/P/B else 0.
8573 .IPs "Pi,E\ "
8574 See your favorite math book.
8578 functions:
8580 .RSs
8581 .IPs max(a,b),min(a,b)
8582 maximum / minimum
8583 .IPs gt(a,b)
8584 is 1 if a>b, 0 otherwise
8585 .IPs lt(a,b)
8586 is 1 if a<b, 0 otherwise
8587 .IPs eq(a,b)
8588 is 1 if a==b, 0 otherwise
8589 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8593 .B vrc_override=<options>
8594 User specified quality for specific parts (ending, credits, ...).
8595 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8596 <end-frame>, <quality>[/...]]:
8597 .PD 0
8598 .RSs
8599 .IPs "quality (2\-31)"
8600 quantizer
8601 .IPs "quality (\-500\-0)"
8602 quality correction in %
8604 .PD 1
8607 .B vrc_init_cplx=<0\-1000>
8608 initial complexity (pass 1)
8611 .B vrc_init_occupancy=<0.0\-1.0>
8612 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8615 .B vqsquish=<0|1>
8616 Specify how to keep the quantizer between qmin and qmax.
8617 .PD 0
8618 .RSs
8619 .IPs 0
8620 Use clipping.
8621 .IPs 1
8622 Use a nice differentiable function (default).
8624 .PD 1
8627 .B vlelim=<\-1000\-1000>
8628 Sets single coefficient elimination threshold for luminance.
8629 Negative values will also consider the DC coefficient (should be at least \-4
8630 or lower for encoding at quant=1):
8631 .PD 0
8632 .RSs
8633 .IPs 0
8634 disabled (default)
8635 .IPs \-4
8636 JVT recommendation
8638 .PD 1
8641 .B vcelim=<\-1000\-1000>
8642 Sets single coefficient elimination threshold for chrominance.
8643 Negative values will also consider the DC coefficient (should be at least \-4
8644 or lower for encoding at quant=1):
8645 .PD 0
8646 .RSs
8647 .IPs 0
8648 disabled (default)
8649 .IPs 7
8650 JVT recommendation
8652 .PD 1
8655 .B vstrict=<\-2|\-1|0|1>
8656 strict standard compliance
8657 .PD 0
8658 .RSs
8659 .IPs 0
8660 disabled
8661 .IPs 1
8662 Only recommended if you want to feed the output into the
8663 MPEG-4 reference decoder.
8664 .IPs \-1
8665 Allow libavcodec specific extensions (default).
8666 .IPs \-2
8667 Enables experimental codecs and features which may not be playable
8668 with future MPlayer versions (snow).
8670 .PD 1
8673 .B "vdpart\ "
8674 Data partitioning.
8675 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8676 unreliable channels (e.g.\& streaming over the internet).
8677 Each video packet will be encoded in 3 separate partitions:
8678 .PD 0
8679 .RSs
8680 .IPs "1. MVs"
8681 movement
8682 .IPs "2. DC coefficients"
8683 low res picture
8684 .IPs "3. AC coefficients"
8685 details
8687 .PD 1
8689 MV & DC are most important, losing them looks far worse than losing
8690 the AC and the 1. & 2. partition.
8691 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8692 will hit the AC partition much more often than the MV & DC partitions.
8693 Thus, the picture will look better with partitioning than without,
8694 as without partitioning an error will trash AC/\:DC/\:MV equally.
8698 .B vpsize=<0\-10000> (also see vdpart)
8699 Video packet size, improves error-resistance.
8700 .PD 0
8701 .RSs
8702 .IPs "0\ \ \ \ "
8703 disabled (default)
8704 .IPs 100\-1000
8705 good choice
8707 .PD 1
8710 .B "ss\ \ \ \ \ "
8711 slice structured mode for H.263+
8714 .B "gray\ \ \ "
8715 grayscale only encoding (faster)
8718 .B vfdct=<0\-10>
8719 DCT algorithm
8720 .PD 0
8721 .RSs
8722 .IPs 0
8723 Automatically select a good one (default).
8724 .IPs 1
8725 fast integer
8726 .IPs 2
8727 accurate integer
8728 .IPs 3
8730 .IPs 4
8731 mlib
8732 .IPs 5
8733 AltiVec
8734 .IPs 6
8735 floating point AAN
8737 .PD 1
8740 .B idct=<0\-99>
8741 IDCT algorithm
8743 .I NOTE:
8744 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
8745 .PD 0
8746 .RSs
8747 .IPs 0
8748 Automatically select a good one (default).
8749 .IPs 1
8750 JPEG reference integer
8751 .IPs 2
8752 simple
8753 .IPs 3
8754 simplemmx
8755 .IPs 4
8756 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
8757 .IPs 5
8759 .IPs 6
8760 mlib
8761 .IPs 7
8763 .IPs 8
8764 AltiVec
8765 .IPs 9
8767 .IPs 10
8768 simplearm
8769 .IPs 11
8770 H.264
8771 .IPs 12
8773 .IPs 13
8775 .IPs 14
8776 xvidmmx
8777 .IPs 15
8778 CAVS
8779 .IPs 16
8780 simplearmv5te
8781 .IPs 17
8782 simplearmv6
8784 .PD 1
8787 .B lumi_mask=<0.0\-1.0>
8788 Luminance masking is a 'psychosensory' setting that is supposed to
8789 make use of the fact that the human eye tends to notice fewer details
8790 in very bright parts of the picture.
8791 Luminance masking compresses bright areas stronger than medium ones,
8792 so it will save bits that can be spent again on other frames, raising
8793 overall subjective quality, while possibly reducing PSNR.
8795 .I WARNING:
8796 Be careful, overly large values can cause disastrous things.
8798 .I WARNING:
8799 Large values might look good on some monitors but may look horrible
8800 on other monitors.
8801 .PD 0
8802 .RSs
8803 .IPs "0.0\ \ "
8804 disabled (default)
8805 .IPs 0.0\-0.3
8806 sane range
8808 .PD 1
8811 .B dark_mask=<0.0\-1.0>
8812 Darkness masking is a 'psychosensory' setting that is supposed to
8813 make use of the fact that the human eye tends to notice fewer details
8814 in very dark parts of the picture.
8815 Darkness masking compresses dark areas stronger than medium ones,
8816 so it will save bits that can be spent again on other frames, raising
8817 overall subjective quality, while possibly reducing PSNR.
8819 .I WARNING:
8820 Be careful, overly large values can cause disastrous things.
8822 .I WARNING:
8823 Large values might look good on some monitors but may look horrible
8824 on other monitors / TV / TFT.
8825 .PD 0
8826 .RSs
8827 .IPs "0.0\ \ "
8828 disabled (default)
8829 .IPs 0.0\-0.3
8830 sane range
8832 .PD 1
8835 .B tcplx_mask=<0.0\-1.0>
8836 Temporal complexity masking (default: 0.0 (disabled)).
8837 Imagine a scene with a bird flying across the whole scene; tcplx_mask
8838 will raise the quantizers of the bird's macroblocks (thus decreasing their
8839 quality), as the human eye usually does not have time to see all the bird's
8840 details.
8841 Be warned that if the masked object stops (e.g.\& the bird lands) it is
8842 likely to look horrible for a short period of time, until the encoder
8843 figures out that the object is not moving and needs refined blocks.
8844 The saved bits will be spent on other parts of the video, which may increase
8845 subjective quality, provided that tcplx_mask is carefully chosen.
8848 .B scplx_mask=<0.0\-1.0>
8849 Spatial complexity masking.
8850 Larger values help against blockiness, if no deblocking filter is used for
8851 decoding, which is maybe not a good idea.
8853 Imagine a scene with grass (which usually has great spatial complexity),
8854 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
8855 macroblocks, thus decreasing its quality, in order to spend more bits on
8856 the sky and the house.
8858 .I HINT:
8859 Crop any black borders completely as they will reduce the quality
8860 of the macroblocks (also applies without scplx_mask).
8861 .PD 0
8862 .RSs
8863 .IPs "0.0\ \ "
8864 disabled (default)
8865 .IPs 0.0\-0.5
8866 sane range
8868 .PD 1
8869 .sp 1
8871 .I NOTE:
8872 This setting does not have the same effect as using a custom matrix that
8873 would compress high frequencies harder, as scplx_mask will reduce the
8874 quality of P blocks even if only DC is changing.
8875 The result of scplx_mask will probably not look as good.
8879 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
8880 Reduces the quality of inter blocks.
8881 This is equivalent to increasing the quality of intra blocks, because the
8882 same average bitrate will be distributed by the rate controller to the
8883 whole video sequence (default: 0.0 (disabled)).
8884 p_mask=1.0 doubles the bits allocated to each intra block.
8887 .B border_mask=<0.0\-1.0>
8888 border-processing for MPEG-style encoders.
8889 Border processing increases the quantizer for macroblocks which are less
8890 than 1/5th of the frame width/height away from the frame border,
8891 since they are often visually less important.
8894 .B "naq\ \ \ \ "
8895 Normalize adaptive quantization (experimental).
8896 When using adaptive quantization (*_mask), the average per-MB quantizer may no
8897 longer match the requested frame-level quantizer.
8898 Naq will attempt to adjust the per-MB quantizers to maintain the proper
8899 average.
8902 .B "ildct\ \ "
8903 Use interlaced DCT.
8906 .B "ilme\ \ \ "
8907 Use interlaced motion estimation (mutually exclusive with qpel).
8910 .B "alt\ \ \ \ "
8911 Use alternative scantable.
8914 .B "top=<\-1\-1>\ \ \ "
8915 .PD 0
8916 .RSs
8917 .IPs \-1
8918 automatic
8919 .IPs 0
8920 bottom field first
8921 .IPs 1
8922 top field first
8924 .PD 1
8927 .B format=<value>
8928 .PD 0
8929 .RSs
8930 .IPs "YV12\ "
8931 default
8932 .IPs "444P\ "
8933 for ffv1
8934 .IPs "422P\ "
8935 for HuffYUV, lossless JPEG, dv and ffv1
8936 .IPs "411P\ "
8937 for lossless JPEG, dv and ffv1
8938 .IPs "YVU9\ "
8939 for lossless JPEG, ffv1 and svq1
8940 .IPs "BGR32"
8941 for lossless JPEG and ffv1
8943 .PD 1
8946 .B "pred\ \ \ "
8947 (for HuffYUV)
8948 .PD 0
8949 .RSs
8950 .IPs 0
8951 left prediction
8952 .IPs 1
8953 plane/\:gradient prediction
8954 .IPs 2
8955 median prediction
8957 .PD 1
8960 .B "pred\ \ \ "
8961 (for lossless JPEG)
8962 .PD 0
8963 .RSs
8964 .IPs 0
8965 left prediction
8966 .IPs 1
8967 top prediction
8968 .IPs 2
8969 topleft prediction
8970 .IPs 3
8971 plane/\:gradient prediction
8972 .IPs 6
8973 mean prediction
8975 .PD 1
8978 .B "coder\ \ "
8979 (for ffv1)
8980 .PD 0
8981 .RSs
8982 .IPs 0
8983 vlc coding (Golomb-Rice)
8984 .IPs 1
8985 arithmetic coding (CABAC)
8987 .PD 1
8990 .B context
8991 (for ffv1)
8992 .PD 0
8993 .RSs
8994 .IPs 0
8995 small context model
8996 .IPs 1
8997 large context model
8999 .PD 1
9000 .sp 1
9002 (for ffvhuff)
9004 .PD 0
9005 .RSs
9006 .IPs 0
9007 predetermined Huffman tables (builtin or two pass)
9008 .IPs 1
9009 adaptive Huffman tables
9011 .PD 1
9014 .B "qpel\ \ \ "
9015 Use quarter pel motion compensation (mutually exclusive with ilme).
9017 .I HINT:
9018 This seems only useful for high bitrate encodings.
9021 .B mbcmp=<0\-2000>
9022 Sets the comparison function for the macroblock decision, has only
9023 an effect if mbd=0.
9024 This is also used for some motion search functions, in which case
9025 it has an effect regardless of mbd setting.
9026 .PD 0
9027 .RSs
9028 .IPs "0 (SAD)"
9029 sum of absolute differences, fast (default)
9030 .IPs "1 (SSE)"
9031 sum of squared errors
9032 .IPs "2 (SATD)"
9033 sum of absolute Hadamard transformed differences
9034 .IPs "3 (DCT)"
9035 sum of absolute DCT transformed differences
9036 .IPs "4 (PSNR)"
9037 sum of squared quantization errors (avoid, low quality)
9038 .IPs "5 (BIT)"
9039 number of bits needed for the block
9040 .IPs "6 (RD)"
9041 rate distortion optimal, slow
9042 .IPs "7 (ZERO)"
9044 .IPs "8 (VSAD)"
9045 sum of absolute vertical differences
9046 .IPs "9 (VSSE)"
9047 sum of squared vertical differences
9048 .IPs "10 (NSSE)"
9049 noise preserving sum of squared differences
9050 .IPs "11 (W53)"
9051 5/3 wavelet, only used in snow
9052 .IPs "12 (W97)"
9053 9/7 wavelet, only used in snow
9054 .IPs "+256\ "
9055 Also use chroma, currently does not work (correctly) with B-frames.
9057 .PD 1
9060 .B ildctcmp=<0\-2000>
9061 Sets the comparison function for interlaced DCT decision
9062 (see mbcmp for available comparison functions).
9065 .B precmp=<0\-2000>
9066 Sets the comparison function for motion estimation pre pass
9067 (see mbcmp for available comparison functions) (default: 0).
9070 .B cmp=<0\-2000>
9071 Sets the comparison function for full pel motion estimation
9072 (see mbcmp for available comparison functions) (default: 0).
9075 .B subcmp=<0\-2000>
9076 Sets the comparison function for sub pel motion estimation
9077 (see mbcmp for available comparison functions) (default: 0).
9080 .B skipcmp=<0\-2000>
9081 FIXME: Document this.
9084 .B nssew=<0\-1000000>
9085 This setting controls NSSE weight, where larger weights will result in
9086 more noise.
9087 0 NSSE is identical to SSE
9088 You may find this useful if you prefer to keep some noise in your encoded
9089 video rather than filtering it away before encoding (default: 8).
9092 .B predia=<\-99\-6>
9093 diamond type and size for motion estimation pre-pass
9096 .B dia=<\-99\-6>
9097 Diamond type & size for motion estimation.
9098 Motion search is an iterative process.
9099 Using a small diamond does not limit the search to finding only small
9100 motion vectors.
9101 It is just somewhat more likely to stop before finding the very best motion
9102 vector, especially when noise is involved.
9103 Bigger diamonds allow a wider search for the best motion vector, thus are
9104 slower but result in better quality.
9106 Big normal diamonds are better quality than shape-adaptive diamonds.
9108 Shape-adaptive diamonds are a good tradeoff between speed and quality.
9110 .I NOTE:
9111 The sizes of the normal diamonds and shape adaptive ones do not have
9112 the same meaning.
9113 .RSs
9114 .IPs \-3
9115 shape adaptive (fast) diamond with size 3
9116 .IPs \-2
9117 shape adaptive (fast) diamond with size 2
9118 .IPs \-1
9119 uneven multi-hexagon search (slow)
9120 .IPs  1
9121 normal size=1 diamond (default) =EPZS type diamond
9124       0
9125      000
9126       0
9128 .IPs 2
9129 normal size=2 diamond
9132       0
9133      000
9134     00000
9135      000
9136       0
9141 .B "trell\ \ "
9142 Trellis searched quantization.
9143 This will find the optimal encoding for each 8x8 block.
9144 Trellis searched quantization is quite simply an optimal quantization in
9145 the PSNR versus bitrate sense (Assuming that there would be no rounding
9146 errors introduced by the IDCT, which is obviously not the case.).
9147 It simply finds a block for the minimum of error and lambda*bits.
9148 .PD 0
9149 .RSs
9150 .IPs lambda
9151 quantization parameter (QP) dependent constant
9152 .IPs "bits\ "
9153 amount of bits needed to encode the block
9154 .IPs error
9155 sum of squared errors of the quantization
9157 .PD 1
9160 .B "cbp\ \ \ \ "
9161 Rate distorted optimal coded block pattern.
9162 Will select the coded block pattern which minimizes distortion + lambda*rate.
9163 This can only be used together with trellis quantization.
9166 .B "mv0\ \ \ \ "
9167 Try to encode each MB with MV=<0,0> and choose the better one.
9168 This has no effect if mbd=0.
9171 .B mv0_threshold=<any non-negative integer>
9172 When surrounding motion vectors are <0,0> and the motion estimation
9173 score of the current block is less than mv0_threshold, <0,0> is used for
9174 the motion vector and further motion estimation is skipped (default:
9175 256).
9176 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
9177 possibly make the encoded video look slightly better; raising
9178 mv0_threshold past 320 results in diminished PSNR and visual quality.
9179 Higher values speed up encoding very slightly (usually less than 1%,
9180 depending on the other options used).
9182 .I NOTE:
9183 This option does not require mv0 to be enabled.
9186 .B qprd (mbd=2 only)
9187 rate distorted optimal quantization parameter (QP) for the given
9188 lambda of each macroblock
9191 .B last_pred=<0\-99>
9192 amount of motion predictors from the previous frame
9193 .PD 0
9194 .RSs
9195 .IPs 0
9196 (default)
9197 .IPs a
9198 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
9199 previous frame.
9201 .PD 1
9204 .B preme=<0\-2>
9205 motion estimation pre-pass
9206 .PD 0
9207 .RSs
9208 .IPs 0
9209 disabled
9210 .IPs 1
9211 only after I-frames (default)
9212 .IPs 2
9213 always
9215 .PD 1
9218 .B subq=<1\-8>
9219 subpel refinement quality (for qpel) (default: 8 (high quality))
9221 .I NOTE:
9222 This has a significant effect on speed.
9225 .B refs=<1\-8>
9226 number of reference frames to consider for motion compensation
9227 (Snow only) (default: 1)
9230 .B "psnr\ \ \ "
9231 print the PSNR (peak signal to noise ratio) for the whole video after encoding
9232 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
9233 Returned values are in dB (decibel), the higher the better.
9236 .B mpeg_quant
9237 Use MPEG quantizers instead of H.263.
9240 .B "aic\ \ \ \ "
9241 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
9242 This will improve quality very slightly (around 0.02 dB PSNR) and slow
9243 down encoding very slightly (about 1%).
9245 .I NOTE:
9246 vqmin should be 8 or larger for H.263+ AIC.
9249 .B "aiv\ \ \ \ "
9250 alternative inter vlc for H.263+
9253 .B "umv\ \ \ \ "
9254 unlimited MVs (H.263+ only)
9255 Allows encoding of arbitrarily long MVs.
9258 .B ibias=<\-256\-256>
9259 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
9260 H.263 style quantizer default: 0)
9262 .I NOTE:
9263 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9264 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9267 .B pbias=<\-256\-256>
9268 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
9269 H.263 style quantizer default: \-64)
9271 .I NOTE:
9272 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9273 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9275 .I HINT:
9276 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
9279 .B nr=<0\-100000>
9280 Noise reduction, 0 means disabled.
9281 0\-600 is a useful range for typical content, but you may want to turn it
9282 up a bit more for very noisy content (default: 0).
9283 Given its small impact on speed, you might want to prefer to use this over
9284 filtering noise away with video filters like denoise3d or hqdn3d.
9287 .B qns=<0\-3>
9288 Quantizer noise shaping.
9289 Rather than choosing quantization to most closely match the source video
9290 in the PSNR sense, it chooses quantization such that noise (usually ringing)
9291 will be masked by similar-frequency content in the image.
9292 Larger values are slower but may not result in better quality.
9293 This can and should be used together with trellis quantization, in which case
9294 the trellis quantization (optimal for constant weight) will be used as
9295 startpoint for the iterative search.
9296 .PD 0
9297 .RSs
9298 .IPs 0
9299 disabled (default)
9300 .IPs 1
9301 Only lower the absolute value of coefficients.
9302 .IPs 2
9303 Only change coefficients before the last non-zero coefficient + 1.
9304 .IPs 3
9305 Try all.
9307 .PD 1
9310 .B inter_matrix=<comma separated matrix>
9311 Use custom inter matrix.
9312 It needs a comma separated string of 64 integers.
9315 .B intra_matrix=<comma separated matrix>
9316 Use custom intra matrix.
9317 It needs a comma separated string of 64 integers.
9320 .B vqmod_amp
9321 experimental quantizer modulation
9324 .B vqmod_freq
9325 experimental quantizer modulation
9328 .B "dc\ \ \ \ \ "
9329 intra DC precision in bits (default: 8).
9330 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
9333 .B cgop (also see sc_threshold)
9334 Close all GOPs.
9335 Currently it only works if scene change detection is disabled
9336 (sc_threshold=1000000000).
9339 .B "gmc\ \ \ \ "
9340 Enable Global Motion Compensation.
9343 .B (no)lowdelay
9344 Sets the low delay flag for MPEG-1/2 (disables B-frames).
9347 .B vglobal=<0\-3>
9348 Control writing global video headers.
9349 .PD 0
9350 .RSs
9351 .IPs 0
9352 Codec decides where to write global headers (default).
9353 .IPs 1
9354 Write global headers only in extradata (needed for .mp4/MOV/NUT).
9355 .IPs 2
9356 Write global headers only in front of keyframes.
9357 .IPs 3
9358 Combine 1 and 2.
9360 .PD 1
9363 .B aglobal=<0\-3>
9364 Same as vglobal for audio headers.
9367 .B level=<value>
9368 Set CodecContext Level.
9369 Use 31 or 41 to play video on a Playstation 3.
9372 .B skip_exp=<0\-1000000>
9373 FIXME: Document this.
9376 .B skip_factor=<0\-1000000>
9377 FIXME: Document this.
9380 .B skip_threshold=<0\-1000000>
9381 FIXME: Document this.
9384 .SS nuv (\-nuvopts)
9386 Nuppel video is based on RTJPEG and LZO.
9387 By default frames are first encoded with RTJPEG and then compressed with LZO,
9388 but it is possible to disable either or both of the two passes.
9389 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
9390 or the default LZO compressed RTJPEG.
9392 .I NOTE:
9393 The nuvrec documentation contains some advice and examples about the
9394 settings to use for the most common TV encodings.
9397 .B c=<0\-20>
9398 chrominance threshold (default: 1)
9401 .B l=<0\-20>
9402 luminance threshold (default: 1)
9405 .B "lzo\ \ \ \ "
9406 Enable LZO compression (default).
9409 .B "nolzo\ \ "
9410 Disable LZO compression.
9413 .B q=<3\-255>
9414 quality level (default: 255)
9417 .B "raw \ \ \ "
9418 Disable RTJPEG encoding.
9421 .B "rtjpeg\ "
9422 Enable RTJPEG encoding (default).
9425 .SS xvidenc (\-xvidencopts)
9427 There are three modes available: constant bitrate (CBR), fixed quantizer and
9428 two pass.
9431 .B pass=<1|2>
9432 Specify the pass in two pass mode.
9435 .B turbo (two pass only)
9436 Dramatically speeds up pass one using faster algorithms and disabling
9437 CPU-intensive options.
9438 This will probably reduce global PSNR a little bit and change individual
9439 frame type and PSNR a little bit more.
9442 .B bitrate=<value> (CBR or two pass mode)
9443 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
9444 if >16000.
9445 If <value> is negative, Xvid will use its absolute value as the target size
9446 (in kBytes) of the video and compute the associated bitrate automagically
9447 (default: 687 kbits/s).
9450 .B fixed_quant=<1\-31>
9451 Switch to fixed quantizer mode and specify the quantizer to be used.
9454 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
9455 User specified quality for specific parts (ending, credits, ...).
9456 Each zone is <start-frame>,<mode>,<value> where <mode> may be
9457 .PD 0
9458 .RSs
9459 .IPs "q"
9460 Constant quantizer override, where value=<2.0\-31.0>
9461 represents the quantizer value.
9462 .IPs "w"
9463 Ratecontrol weight override, where value=<0.01\-2.00>
9464 represents the quality correction in %.
9466 .PD 1
9467 .sp 1
9469 .I EXAMPLE:
9471 .PD 0
9472 .RSs
9473 .IPs zones=90000,q,20
9474 Encodes all frames starting with frame 90000 at constant quantizer 20.
9475 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9476 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9477 up to the end at constant quantizer 20.
9478 Note that the second zone is needed to delimit the first zone, as
9479 without it everything up until frame 89999 would be encoded at 10%
9480 bitrate.
9482 .PD 1
9485 .B me_quality=<0\-6>
9486 This option controls the motion estimation subsystem.
9487 The higher the value, the more precise the estimation should be (default: 6).
9488 The more precise the motion estimation is, the more bits can be saved.
9489 Precision is gained at the expense of CPU time so decrease this setting if
9490 you need realtime encoding.
9493 .B (no)qpel
9494 MPEG-4 uses a half pixel precision for its motion search by default.
9495 The standard proposes a mode where encoders are allowed to use quarter
9496 pixel precision.
9497 This option usually results in a sharper image.
9498 Unfortunately it has a great impact on bitrate and sometimes the
9499 higher bitrate use will prevent it from giving a better image
9500 quality at a fixed bitrate.
9501 It is better to test with and without this option and see whether it
9502 is worth activating.
9505 .B (no)gmc
9506 Enable Global Motion Compensation, which makes Xvid generate special
9507 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9508 Whether or not the use of this option will save bits is highly
9509 dependent on the source material.
9512 .B (no)trellis
9513 Trellis Quantization is a kind of adaptive quantization method that
9514 saves bits by modifying quantized coefficients to make them more
9515 compressible by the entropy encoder.
9516 Its impact on quality is good, and if VHQ uses too much CPU for you,
9517 this setting can be a good alternative to save a few bits (and gain
9518 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9521 .B (no)cartoon
9522 Activate this if your encoded sequence is an anime/\:cartoon.
9523 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9524 frame types and motion vectors for flat looking cartoons.
9527 .B (no)chroma_me
9528 The usual motion estimation algorithm uses only the luminance information to
9529 find the best motion vector.
9530 However for some video material, using the chroma planes can help find
9531 better vectors.
9532 This setting toggles the use of chroma planes for motion estimation
9533 (default: on).
9536 .B (no)chroma_opt
9537 Enable a chroma optimizer prefilter.
9538 It will do some extra magic on color information to minimize the
9539 stepped-stairs effect on edges.
9540 It will improve quality at the cost of encoding speed.
9541 It reduces PSNR by nature, as the mathematical deviation to the original
9542 picture will get bigger, but the subjective image quality will raise.
9543 Since it works with color information, you might want to turn it off when
9544 encoding in grayscale.
9547 .B (no)hq_ac
9548 Activates high-quality prediction of AC coefficients for intra frames from
9549 neighbor blocks (default: on).
9552 .B vhq=<0\-4>
9553 The motion search algorithm is based on a search in the usual color domain
9554 and tries to find a motion vector that minimizes the difference between the
9555 reference frame and the encoded frame.
9556 With this setting activated, Xvid will also use the frequency domain (DCT)
9557 to search for a motion vector that minimizes not only the spatial
9558 difference but also the encoding length of the block.
9559 Fastest to slowest:
9560 .PD 0
9561 .RSs
9562 .IPs 0
9564 .IPs 1
9565 mode decision (inter/\:intra MB) (default)
9566 .IPs 2
9567 limited search
9568 .IPs 3
9569 medium search
9570 .IPs 4
9571 wide search
9573 .PD 1
9576 .B (no)lumi_mask
9577 Adaptive quantization allows the macroblock quantizers to vary inside
9578 each frame.
9579 This is a 'psychosensory' setting that is supposed to make use of the
9580 fact that the human eye tends to notice fewer details in very bright
9581 and very dark parts of the picture.
9582 It compresses those areas more strongly than medium ones, which will
9583 save bits that can be spent again on other frames, raising overall
9584 subjective quality and possibly reducing PSNR.
9587 .B (no)grayscale
9588 Make Xvid discard chroma planes so the encoded video is grayscale only.
9589 Note that this does not speed up encoding, it just prevents chroma data
9590 from being written in the last stage of encoding.
9593 .B (no)interlacing
9594 Encode the fields of interlaced video material.
9595 Turn this option on for interlaced content.
9597 .I NOTE:
9598 Should you rescale the video, you would need an interlace-aware resizer,
9599 which you can activate with \-vf scale=<width>:<height>:1.
9602 .B min_iquant=<0\-31>
9603 minimum I-frame quantizer (default: 2)
9606 .B max_iquant=<0\-31>
9607 maximum I-frame quantizer (default: 31)
9610 .B min_pquant=<0\-31>
9611 minimum P-frame quantizer (default: 2)
9614 .B max_pquant=<0\-31>
9615 maximum P-frame quantizer (default: 31)
9618 .B min_bquant=<0\-31>
9619 minimum B-frame quantizer (default: 2)
9622 .B max_bquant=<0\-31>
9623 maximum B-frame quantizer (default: 31)
9626 .B min_key_interval=<value> (two pass only)
9627 minimum interval between keyframes (default: 0)
9630 .B max_key_interval=<value>
9631 maximum interval between keyframes (default: 10*fps)
9634 .B quant_type=<h263|mpeg>
9635 Sets the type of quantizer to use.
9636 For high bitrates, you will find that MPEG quantization preserves more detail.
9637 For low bitrates, the smoothing of H.263 will give you less block noise.
9638 When using custom matrices, MPEG quantization
9639 .B must
9640 be used.
9643 .B quant_intra_matrix=<filename>
9644 Load a custom intra matrix file.
9645 You can build such a file with xvid4conf's matrix editor.
9648 .B quant_inter_matrix=<filename>
9649 Load a custom inter matrix file.
9650 You can build such a file with xvid4conf's matrix editor.
9653 .B keyframe_boost=<0\-1000> (two pass mode only)
9654 Shift some bits from the pool for other frame types to intra frames,
9655 thus improving keyframe quality.
9656 This amount is an extra percentage, so a value of 10 will give
9657 your keyframes 10% more bits than normal
9658 (default: 0).
9661 .B kfthreshold=<value> (two pass mode only)
9662 Works together with kfreduction.
9663 Determines the minimum distance below which you consider that
9664 two frames are considered consecutive and treated differently
9665 according to kfreduction
9666 (default: 10).
9669 .B kfreduction=<0\-100> (two pass mode only)
9670 The above two settings can be used to adjust the size of keyframes that
9671 you consider too close to the first (in a row).
9672 kfthreshold sets the range in which keyframes are reduced, and
9673 kfreduction determines the bitrate reduction they get.
9674 The last I-frame will get treated normally
9675 (default: 30).
9678 .B max_bframes=<0\-4>
9679 Maximum number of B-frames to put between I/P-frames (default: 2).
9682 .B bquant_ratio=<0\-1000>
9683 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9686 .B bquant_offset=<\-1000\-1000>
9687 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9690 .B bf_threshold=<\-255\-255>
9691 This setting allows you to specify what priority to place on the use of
9692 B-frames.
9693 The higher the value, the higher the probability of B-frames being used
9694 (default: 0).
9695 Do not forget that B-frames usually have a higher quantizer, and therefore
9696 aggressive production of B-frames may cause worse visual quality.
9699 .B (no)closed_gop
9700 This option tells Xvid to close every GOP (Group Of Pictures bounded
9701 by two I-frames), which makes GOPs independent from each other.
9702 This just implies that the last frame of the GOP is either a P-frame or a
9703 N-frame but not a B-frame.
9704 It is usually a good idea to turn this option on (default: on).
9707 .B (no)packed
9708 This option is meant to solve frame-order issues when encoding to
9709 container formats like AVI that cannot cope with out-of-order frames.
9710 In practice, most decoders (both software and hardware) are able to deal
9711 with frame-order themselves, and may get confused when this option is
9712 turned on, so you can safely leave if off, unless you really know what
9713 you are doing.
9715 .I WARNING:
9716 This will generate an illegal bitstream, and will not be
9717 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
9719 .I WARNING:
9720 This will also store a fake DivX version in the file so the bug
9721 autodetection of some decoders might be confused.
9724 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
9725 This setting allows the creation of variable framerate video streams.
9726 The value of the setting specifies a threshold under which, if the
9727 difference of the following frame to the previous frame is below or equal
9728 to this threshold, a frame gets not coded (a so called n-vop is placed
9729 in the stream).
9730 On playback, when reaching an n-vop the previous frame will be displayed.
9732 .I WARNING:
9733 Playing with this setting may result in a jerky video, so use it at your
9734 own risks!
9737 .B rc_reaction_delay_factor=<value>
9738 This parameter controls the number of frames the CBR rate controller
9739 will wait before reacting to bitrate changes and compensating for them
9740 to obtain a constant bitrate over an averaging range of frames.
9743 .B rc_averaging_period=<value>
9744 Real CBR is hard to achieve.
9745 Depending on the video material, bitrate can be variable, and hard to predict.
9746 Therefore Xvid uses an averaging period for which it guarantees a given
9747 amount of bits (minus a small variation).
9748 This settings expresses the "number of frames" for which Xvid averages
9749 bitrate and tries to achieve CBR.
9752 .B rc_buffer=<value>
9753 size of the rate control buffer
9756 .B curve_compression_high=<0\-100>
9757 This setting allows Xvid to take a certain percentage of bits away from
9758 high bitrate scenes and give them back to the bit reservoir.
9759 You could also use this if you have a clip with so many bits allocated
9760 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
9761 (default: 0).
9764 .B curve_compression_low=<0\-100>
9765 This setting allows Xvid to give a certain percentage of extra bits to the
9766 low bitrate scenes, taking a few bits from the entire clip.
9767 This might come in handy if you have a few low-bitrate scenes that are
9768 still blocky (default: 0).
9771 .B overflow_control_strength=<0\-100>
9772 During pass one of two pass encoding, a scaled bitrate curve is computed.
9773 The difference between that expected curve and the result obtained during
9774 encoding is called overflow.
9775 Obviously, the two pass rate controller tries to compensate for that overflow,
9776 distributing it over the next frames.
9777 This setting controls how much of the overflow is distributed every time
9778 there is a new frame.
9779 Low values allow lazy overflow control, big rate bursts are compensated for
9780 more slowly (could lead to lack of precision for small clips).
9781 Higher values will make changes in bit redistribution more abrupt, possibly
9782 too abrupt if you set it too high, creating artifacts (default: 5).
9784 .I NOTE:
9785 This setting impacts quality a lot, play with it carefully!
9788 .B max_overflow_improvement=<0\-100>
9789 During the frame bit allocation, overflow control may increase the frame
9790 size.
9791 This parameter specifies the maximum percentage by which the overflow
9792 control is allowed to increase the frame size, compared to the ideal curve
9793 allocation
9794 (default: 5).
9797 .B max_overflow_degradation=<0\-100>
9798 During the frame bit allocation, overflow control may decrease the frame
9799 size.
9800 This parameter specifies the maximum percentage by which the overflow
9801 control is allowed to decrease the frame size, compared to the ideal curve
9802 allocation
9803 (default: 5).
9806 .B container_frame_overhead=<0...>
9807 Specifies a frame average overhead per frame, in bytes.
9808 Most of the time users express their target bitrate for video w/o taking
9809 care of the video container overhead.
9810 This small but (mostly) constant overhead can cause the target file size
9811 to be exceeded.
9812 Xvid allows users to set the amount of overhead per frame the
9813 container generates (give only an average per frame).
9814 0 has a special meaning, it lets Xvid use its own default values
9815 (default: 24 \- AVI average overhead).
9818 .B profile=<profile_name>
9819 Restricts options and VBV (peak bitrate over a short period) according to
9820 the Simple, Advanced Simple and DivX profiles.
9821 The resulting videos should be playable on standalone players adhering to these
9822 profile specifications.
9823 .PD 0
9824 .RSs
9825 .IPs unrestricted
9826 no restrictions (default)
9827 .IPs "sp0\ \ "
9828 simple profile at level 0
9829 .IPs "sp1\ \ "
9830 simple profile at level 1
9831 .IPs "sp2\ \ "
9832 simple profile at level 2
9833 .IPs "sp3\ \ "
9834 simple profile at level 3
9835 .IPs "asp0\ "
9836 advanced simple profile at level 0
9837 .IPs "asp1\ "
9838 advanced simple profile at level 1
9839 .IPs "asp2\ "
9840 advanced simple profile at level 2
9841 .IPs "asp3\ "
9842 advanced simple profile at level 3
9843 .IPs "asp4\ "
9844 advanced simple profile at level 4
9845 .IPs "asp5\ "
9846 advanced simple profile at level 5
9847 .IPs dxnhandheld
9848 DXN handheld profile
9849 .IPs dxnportntsc
9850 DXN portable NTSC profile
9851 .IPs dxnportpal
9852 DXN portable PAL profile
9853 .IPs dxnhtntsc
9854 DXN home theater NTSC profile
9855 .IPs dxnhtpal
9856 DXN home theater PAL profile
9857 .IPs dxnhdtv
9858 DXN HDTV profile
9860 .PD 1
9862 .I NOTE:
9863 These profiles should be used in conjunction with an appropriate \-ffourcc.
9864 Generally DX50 is applicable, as some players do not recognize Xvid but
9865 most recognize DivX.
9869 .B par=<mode>
9870 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
9871 the Display Aspect Ratio).
9872 PAR is the ratio of the width and height of a single pixel.
9873 So both are related like this: DAR = PAR * (width/height).
9875 MPEG-4 defines 5 pixel aspect ratios and one extended
9876 one, giving the opportunity to specify a specific pixel aspect
9877 ratio.
9878 5 standard modes can be specified:
9879 .PD 0
9880 .RSs
9881 .IPs vga11
9882 It is the usual PAR for PC content.
9883 Pixels are a square unit.
9884 .IPs pal43
9885 PAL standard 4:3 PAR.
9886 Pixels are rectangles.
9887 .IPs pal169
9888 same as above
9889 .IPs ntsc43
9890 same as above
9891 .IPs ntsc169
9892 same as above (Do not forget to give the exact ratio.)
9893 .IPs "ext\ \ "
9894 Allows you to specify your own pixel aspect ratio with par_width and
9895 par_height.
9897 .PD 1
9899 .I NOTE:
9900 In general, setting aspect and autoaspect options is enough.
9904 .B par_width=<1\-255> (par=ext only)
9905 Specifies the width of the custom pixel aspect ratio.
9908 .B par_height=<1\-255> (par=ext only)
9909 Specifies the height of the custom pixel aspect ratio.
9912 .B aspect=<x/y | f (float value)>
9913 Store movie aspect internally, just like MPEG files.
9914 Much nicer solution than rescaling, because quality is not decreased.
9915 MPlayer and a few others players will play these files correctly, others
9916 will display them with the wrong aspect.
9917 The aspect parameter can be given as a ratio or a floating point number.
9920 .B (no)autoaspect
9921 Same as the aspect option, but automatically computes aspect, taking
9922 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
9923 filter chain.
9926 .B "psnr\ \ \ "
9927 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
9928 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
9929 the current directory.
9930 Returned values are in dB (decibel), the higher the better.
9933 .B "debug\ \ "
9934 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
9935 file.)
9939 .sp 1
9940 The following option is only available in Xvid 1.1.x.
9943 .B bvhq=<0|1>
9944 This setting allows vector candidates for B-frames to be used for
9945 the encoding chosen using a rate distortion optimized operator,
9946 which is what is done for P-frames by the vhq option.
9947 This produces nicer-looking B-frames while incurring almost no
9948 performance penalty (default: 1).
9951 .sp 1
9952 The following option is only available in the 1.2.x version of Xvid.
9955 .B threads=<0\-n>
9956 Create n threads to run the motion estimation (default: 0).
9957 The maximum number of threads that can be used is the picture height
9958 divided by 16.
9961 .SS x264enc (\-x264encopts)
9964 .B bitrate=<value>
9965 Sets the average bitrate to be used in kbits/\:second (default: off).
9966 Since local bitrate may vary, this average may be inaccurate for
9967 very short videos (see ratetol).
9968 Constant bitrate can be achieved by combining this with vbv_maxrate,
9969 at significant reduction in quality.
9972 .B qp=<0\-51>
9973 This selects the quantizer to use for P-frames.
9974 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
9975 20\-40 is a useful range.
9976 Lower values result in better fidelity, but higher bitrates.
9977 0 is lossless.
9978 Note that quantization in H.264 works differently from MPEG-1/2/4:
9979 H.264's quantization parameter (QP) is on a logarithmic scale.
9980 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
9981 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
9984 .B crf=<1.0\-50.0>
9985 Enables constant quality mode, and selects the quality.
9986 The scale is similar to QP.
9987 Like the bitrate-based modes, this allows each frame to use a
9988 different QP based on the frame's complexity.
9991 .B pass=<1\-3>
9992 Enable 2 or 3-pass mode.
9993 It is recommended to always encode in 2 or 3-pass mode as it leads to a
9994 better bit distribution and improves overall quality.
9995 .PD 0
9996 .RSs
9997 .IPs 1
9998 first pass
9999 .IPs 2
10000 second pass (of two pass encoding)
10001 .IPs 3
10002 Nth pass (second and third passes of three pass encoding)
10005 Here is how it works, and how to use it:
10007 The first pass (pass=1) collects statistics on the video and writes them
10008 to a file.
10009 You might want to deactivate some CPU-hungry options, apart from the ones
10010 that are on by default.
10012 In two pass mode, the second pass (pass=2) reads the statistics file and
10013 bases ratecontrol decisions on it.
10015 In three pass mode, the second pass (pass=3, that is not a typo)
10016 does both: It first reads the statistics, then overwrites them.
10017 You can use all encoding options, except very CPU-hungry options.
10019 The third pass (pass=3) is the same as the second pass, except that it has
10020 the second pass' statistics to work from.
10021 You can use all encoding options, including CPU-hungry ones.
10023 The first pass may use either average bitrate or constant quantizer.
10024 ABR is recommended, since it does not require guessing a quantizer.
10025 Subsequent passes are ABR, and must specify bitrate.
10026 .REss
10029 .B turbo=<0\-2>
10030 Fast first pass mode.
10031 During the first pass of a two or more pass encode it is possible to gain
10032 speed by disabling some options with negligible or even no impact on the
10033 final pass output quality.
10034 .PD 0
10035 .RSs
10036 .IPs 0
10037 disabled (default)
10038 .IPs 1
10039 Reduce subq, frameref and disable some inter-macroblock partition analysis
10040 modes.
10041 .IPs 2
10042 Reduce subq and frameref to 1, use a diamond ME search and disable all
10043 partition analysis modes.
10046 Level 1 can increase first pass speed up to 2x with no change in the global
10047 PSNR of the final pass compared to a full quality first pass.
10049 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
10050 in the global PSNR of the final pass compared to a full quality first pass.
10051 .REss
10054 .B keyint=<value>
10055 Sets maximum interval between IDR-frames (default: 250).
10056 Larger values save bits, thus improve quality, at the cost of seeking
10057 precision.
10058 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
10059 values of keyint.
10062 .B keyint_min=<1\-keyint/2>
10063 Sets minimum interval between IDR-frames (default: 25).
10064 If scenecuts appear within this interval, they are still encoded as
10065 I-frames, but do not start a new GOP.
10066 In H.264, I-frames do not necessarily bound a closed GOP because it is
10067 allowable for a P-frame to be predicted from more frames than just the one
10068 frame before it (also see frameref).
10069 Therefore, I-frames are not necessarily seekable.
10070 IDR-frames restrict subsequent P-frames from referring to any frame
10071 prior to the IDR-frame.
10074 .B scenecut=<\-1\-100>
10075 Controls how aggressively to insert extra I-frames (default: 40).
10076 With small values of scenecut, the codec often has to force an I-frame
10077 when it would exceed keyint.
10078 Good values of scenecut may find a better location for the I-frame.
10079 Large values use more I-frames than necessary, thus wasting bits.
10080 \-1 disables scene-cut detection, so I-frames are inserted only once
10081 every other keyint frames, even if a scene-cut occurs earlier.
10082 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
10083 are just as big as I-frames, but do not reset the "keyint counter".
10086 .B frameref=<1\-16>
10087 Number of previous frames used as predictors in B- and P-frames (default: 1).
10088 This is effective in anime, but in live-action material the improvements
10089 usually drop off very rapidly above 6 or so reference frames.
10090 This has no effect on decoding speed, but does increase the memory needed for
10091 decoding.
10092 Some decoders can only handle a maximum of 15 reference frames.
10095 .B bframes=<0\-16>
10096 maximum number of consecutive B-frames between I- and P-frames (default: 0)
10099 .B (no)b_adapt
10100 Automatically decides when to use B-frames and how many, up to the maximum
10101 specified above (default: on).
10102 If this option is disabled, then the maximum number of B-frames is used.
10105 .B b_bias=<\-100\-100>
10106 Controls the decision performed by b_adapt.
10107 A higher b_bias produces more B-frames (default: 0).
10110 .B (no)b_pyramid
10111 Allows B-frames to be used as references for predicting other frames.
10112 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
10113 Without this option, B-frames follow the same pattern as MPEG-[124].
10114 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
10115 are predicted from I0 and P4.
10116 With this option, they are coded as I0 P4 B2 B1 B3.
10117 B2 is the same as above, but B1 is predicted from I0 and B2, and
10118 B3 is predicted from B2 and P4.
10119 This usually results in slightly improved compression, at almost no
10120 speed cost.
10121 However, this is an experimental option: it is not fully tuned and
10122 may not always help.
10123 Requires bframes >= 2.
10124 Disadvantage: increases decoding delay to 2 frames.
10127 .B (no)deblock
10128 Use deblocking filter (default: on).
10129 As it takes very little time compared to its quality gain, it is not
10130 recommended to disable it.
10133 .B deblock=<\-6\-6>,<\-6\-6>
10134 The first parameter is AlphaC0 (default: 0).
10135 This adjusts thresholds for the H.264 in-loop deblocking filter.
10136 First, this parameter adjusts the maximum amount of change that the filter is
10137 allowed to cause on any one pixel.
10138 Secondly, this parameter affects the threshold for difference across the
10139 edge being filtered.
10140 A positive value reduces blocking artifacts more, but will also smear details.
10142 The second parameter is Beta (default: 0).
10143 This affects the detail threshold.
10144 Very detailed blocks are not filtered, since the smoothing caused by the
10145 filter would be more noticeable than the original blocking.
10147 The default behavior of the filter almost always achieves optimal quality,
10148 so it is best to either leave it alone, or make only small adjustments.
10149 However, if your source material already has some blocking or noise which
10150 you would like to remove, it may be a good idea to turn it up a little bit.
10153 .B (no)cabac
10154 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
10155 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
10156 Unless you are looking for decoding speed, you should not disable it.
10159 .B qp_min=<1\-51> (ABR or two pass)
10160 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
10163 .B qp_max=<1\-51> (ABR or two pass)
10164 maximum quantizer (default: 51)
10167 .B qp_step=<1\-50> (ABR or two pass)
10168 maximum value by which the quantizer may be incremented/decremented between
10169 frames (default: 4)
10172 .B ratetol=<0.1\-100.0> (ABR or two pass)
10173 allowed variance in average bitrate (no particular units) (default: 1.0)
10176 .B vbv_maxrate=<value> (ABR or two pass)
10177 maximum local bitrate, in kbits/\:second (default: disabled)
10180 .B vbv_bufsize=<value> (ABR or two pass)
10181 averaging period for vbv_maxrate, in kbits
10182 (default: none, must be specified if vbv_maxrate is enabled)
10185 .B vbv_init=<0.0\-1.0> (ABR or two pass)
10186 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
10189 .B ip_factor=<value>
10190 quantizer factor between I- and P-frames (default: 1.4)
10193 .B pb_factor=<value>
10194 quantizer factor between P- and B-frames (default: 1.3)
10197 .B qcomp=<0\-1> (ABR or two pass)
10198 quantizer compression (default: 0.6).
10199 A lower value makes the bitrate more constant,
10200 while a higher value makes the quantization parameter more constant.
10203 .B cplx_blur=<0\-999> (two pass only)
10204 Temporal blur of the estimated frame complexity, before curve compression
10205 (default: 20).
10206 Lower values allow the quantizer value to jump around more,
10207 higher values force it to vary more smoothly.
10208 cplx_blur ensures that each I-frame has quality comparable to the following
10209 P-frames, and ensures that alternating high and low complexity frames
10210 (e.g.\& low fps animation) do not waste bits on fluctuating quantizer.
10213 .B qblur=<0\-99> (two pass only)
10214 Temporal blur of the quantization parameter, after curve compression
10215 (default: 0.5).
10216 Lower values allow the quantizer value to jump around more,
10217 higher values force it to vary more smoothly.
10220 .B zones=<zone0>[/<zone1>[/...]]
10221 User specified quality for specific parts (ending, credits, ...).
10222 Each zone is <start-frame>,<end-frame>,<option> where option may be
10223 .PD 0
10224 .RSs
10225 .IPs "q=<0\-51>"
10226 quantizer
10227 .IPs "b=<0.01\-100.0>"
10228 bitrate multiplier
10230 .PD 1
10232 .I NOTE:
10233 The quantizer option is not strictly enforced.
10234 It affects only the planning stage of ratecontrol, and is still subject
10235 to overflow compensation and qp_min/qp_max.
10239 .B direct_pred=<name>
10240 Determines the type of motion prediction used for direct macroblocks
10241 in B-frames.
10242 .PD 0
10243 .RSs
10244 .IPs none
10245 Direct macroblocks are not used.
10246 .IPs spatial
10247 Motion vectors are extrapolated from neighboring blocks.
10248 (default)
10249 .IPs temporal
10250 Motion vectors are extrapolated from the following P-frame.
10251 .IPs auto
10252 The codec selects between spatial and temporal for each frame.
10254 .PD 1
10256 Spatial and temporal are approximately the same speed and PSNR,
10257 the choice between them depends on the video content.
10258 Auto is slightly better, but slower.
10259 Auto is most effective when combined with multipass.
10260 direct_pred=none is both slower and lower quality.
10264 .B (no)weight_b
10265 Use weighted prediction in B-frames.
10266 Without this option, bidirectionally predicted macroblocks give
10267 equal weight to each reference frame.
10268 With this option, the weights are determined by the temporal position
10269 of the B-frame relative to the references.
10270 Requires bframes > 1.
10273 .B partitions=<list>
10274 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
10275 .PD 0
10276 .RSs
10277 .IPs p8x8
10278 Enable types p16x8, p8x16, p8x8.
10279 .IPs p4x4
10280 Enable types p8x4, p4x8, p4x4.
10281 p4x4 is recommended only with subq >= 5, and only at low resolutions.
10282 .IPs b8x8
10283 Enable types b16x8, b8x16, b8x8.
10284 .IPs i8x8
10285 Enable type i8x8.
10286 i8x8 has no effect unless 8x8dct is enabled.
10287 .IPs i4x4
10288 Enable type i4x4.
10289 .IPs all
10290 Enable all of the above types.
10291 .IPs none
10292 Disable all of the above types.
10294 .PD 1
10296 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
10297 are always enabled.
10299 The idea is to find the type and size that best describe a certain area
10300 of the picture.
10301 For example, a global pan is better represented by 16x16 blocks, while
10302 small moving objects are better represented by smaller blocks.
10306 .B (no)8x8dct
10307 Adaptive spatial transform size: allows macroblocks to choose between
10308 4x4 and 8x8 DCT.
10309 Also allows the i8x8 macroblock type.
10310 Without this option, only 4x4 DCT is used.
10313 .B me=<name>
10314 Select fullpixel motion estimation algorithm.
10315 .PD 0
10316 .RSs
10317 .IPs dia
10318 diamond search, radius 1 (fast)
10319 .IPs hex
10320 hexagon search, radius 2 (default)
10321 .IPs umh
10322 uneven multi-hexagon search (slow)
10323 .IPs esa
10324 exhaustive search (very slow, and no better than umh)
10326 .PD 1
10329 .B me_range=<4\-64>
10330 radius of exhaustive or multi-hexagon motion search (default: 16)
10333 .B subq=<0\-9>
10334 Adjust subpel refinement quality.
10335 This parameter controls quality versus speed tradeoffs involved in the motion
10336 estimation decision process.
10337 subq=5 can compress up to 10% better than subq=1.
10338 .PD 0
10339 .RSs
10340 .IPs 0
10341 Runs fullpixel precision motion estimation on all candidate
10342 macroblock types.
10343 Then selects the best type with SAD metric (faster than subq=1, not recommended
10344 unless you're looking for ultra-fast encoding).
10345 .IPs 1
10346 Does as 0, then refines the motion of that type to fast quarterpixel precision
10347 (fast).
10348 .IPs 2
10349 Runs halfpixel precision motion estimation on all candidate macroblock types.
10350 Then selects the best type with SATD metric.
10351 Then refines the motion of that type to fast quarterpixel precision.
10352 .IPs 3
10353 As 2, but uses a slower quarterpixel refinement.
10354 .IPs 4
10355 Runs fast quarterpixel precision motion estimation on all candidate
10356 macroblock types.
10357 Then selects the best type with SATD metric.
10358 Then finishes the quarterpixel refinement for that type.
10359 .IPs 5
10360 Runs best quality quarterpixel precision motion estimation on all
10361 candidate macroblock types, before selecting the best type.
10362 Also refines the two motion vectors used in bidirectional macroblocks with
10363 SATD metric, rather than reusing vectors from the forward and backward
10364 searches.
10365 .IPs 6
10366 Enables rate-distortion optimization of macroblock types in
10367 I- and P-frames (default).
10368 .IPs 7
10369 Enables rate-distortion optimization of macroblock types in all frames.
10370 .IPs 8
10371 Enables rate-distortion optimization of motion vectors and intra prediction modes in I- and P-frames.
10372 .IPs 9
10373 Enables rate-distortion optimization of motion vectors and intra prediction modes in all frames (best).
10375 .PD 1
10377 In the above, "all candidates" does not exactly mean all enabled types:
10378 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
10382 .B (no)chroma_me
10383 Takes into account chroma information during subpixel motion search
10384 (default: enabled).
10385 Requires subq>=5.
10388 .B (no)mixed_refs
10389 Allows each 8x8 or 16x8 motion partition to independently select a
10390 reference frame.
10391 Without this option, a whole macroblock must use the same reference.
10392 Requires frameref>1.
10395 .B trellis=<0\-2> (cabac only)
10396 rate-distortion optimal quantization
10397 .PD 0
10398 .RSs
10399 .IPs 0
10400 disabled (default)
10401 .IPs 1
10402 enabled only for the final encode
10403 .IPs 2
10404 enabled during all mode decisions (slow, requires subq>=6)
10406 .PD 1
10409 .B psy-rd=rd[,trell]
10410 Sets the strength of the psychovisual optimization.
10411 .PD 0
10412 .RSs
10413 .IPs rd=<0.0\-10.0>
10414 psy optimization strength (requires subq>=6) (default: 1.0)
10415 .IPs trell=<0.0\-10.0>
10416 trellis (requires trellis, experimental) (default: 0.0)
10418 .PD 1
10421 .B deadzone_inter=<0\-32>
10422 Set the size of the inter luma quantization deadzone for non-trellis
10423 quantization (default: 21).
10424 Lower values help to preserve fine details and film grain (typically useful
10425 for high bitrate/quality encode), while higher values help filter out
10426 these details to save bits that can be spent again on other macroblocks
10427 and frames (typically useful for bitrate-starved encodes).
10428 It is recommended that you start by tweaking deadzone_intra before changing
10429 this parameter.
10432 .B deadzone_intra=<0\-32>
10433 Set the size of the intra luma quantization deadzone for non-trellis
10434 quantization (default: 11).
10435 This option has the same effect as deadzone_inter except that it affects
10436 intra frames.
10437 It is recommended that you start by tweaking this parameter before changing
10438 deadzone_inter.
10441 .B (no)fast_pskip
10442 Performs early skip detection in P-frames (default: enabled).
10443 This usually improves speed at no cost, but it can sometimes produce
10444 artifacts in areas with no details, like sky.
10447 .B (no)dct_decimate
10448 Eliminate dct blocks in P-frames containing only a small single coefficient
10449 (default: enabled).
10450 This will remove some details, so it will save bits that can be spent
10451 again on other frames, hopefully raising overall subjective quality.
10452 If you are compressing non-anime content with a high target bitrate, you
10453 may want to disable this to preserve as much detail as possible.
10456 .B nr=<0\-100000>
10457 Noise reduction, 0 means disabled.
10458 100\-1000 is a useful range for typical content, but you may want to turn it
10459 up a bit more for very noisy content (default: 0).
10460 Given its small impact on speed, you might want to prefer to use this over
10461 filtering noise away with video filters like denoise3d or hqdn3d.
10464 .B chroma_qp_offset=<\-12\-12>
10465 Use a different quantizer for chroma as compared to luma.
10466 Useful values are in the range <\-2\-2> (default: 0).
10469 .B aq_mode=<0\-2>
10470 Defines how adaptive quantization (AQ) distributes bits:
10471 .PD 0
10472 .RSs
10473 .IPs 0
10474 disabled
10475 .IPs 1
10476 Avoid moving bits between frames.
10477 .IPs 2
10478 Move bits between frames (by default).
10480 .PD 1
10483 .B aq_strength=<positive float value>
10484 Controls how much adaptive quantization (AQ) reduces blocking and blurring
10485 in flat and textured areas (default: 1.0).
10486 A value of 0.5 will lead to weak AQ and less details, when a value of 1.5
10487 will lead to strong AQ and more details.
10490 .B cqm=<flat|jvt|<filename>>
10491 Either uses a predefined custom quantization matrix or loads a JM format
10492 matrix file.
10493 .PD 0
10494 .RSs
10495 .IPs "flat\ "
10496 Use the predefined flat 16 matrix (default).
10497 .IPs "jvt\ \ "
10498 Use the predefined JVT matrix.
10499 .IPs <filename>
10500 Use the provided JM format matrix file.
10501 .PD 1
10504 .I NOTE:
10505 Windows CMD.EXE users may experience problems with parsing the command line
10506 if they attempt to use all the CQM lists.
10507 This is due to a command line length limitation.
10508 In this case it is recommended the lists be put into a JM format CQM
10509 file and loaded as specified above.
10513 .B cqm4iy=<list> (also see cqm)
10514 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10515 values in the 1\-255 range.
10518 .B cqm4ic=<list> (also see cqm)
10519 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10520 separated values in the 1\-255 range.
10523 .B cqm4py=<list> (also see cqm)
10524 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10525 values in the 1\-255 range.
10528 .B cqm4pc=<list> (also see cqm)
10529 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10530 separated values in the 1\-255 range.
10533 .B cqm8iy=<list> (also see cqm)
10534 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10535 values in the 1\-255 range.
10538 .B cqm8py=<list> (also see cqm)
10539 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10540 values in the 1\-255 range.
10543 .B level_idc=<10\-51>
10544 Set the bitstream's level as defined by annex A of the H.264 standard
10545 (default: 51 \- level 5.1).
10546 This is used for telling the decoder what capabilities it needs to support.
10547 Use this parameter only if you know what it means,
10548 and you have a need to set it.
10551 .B threads=<0\-16>
10552 Spawn threads to encode in parallel on multiple CPUs (default: 1).
10553 This has a slight penalty to compression quality.
10554 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10555 appropriate number of threads.
10558 .B (no)global_header
10559 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10560 (default: disabled).
10561 Some players, such as the Sony PSP, require the use of this option.
10562 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10565 .B (no)interlaced
10566 Treat the video content as interlaced.
10569 .B log=<\-1\-3>
10570 Adjust the amount of logging info printed to the screen.
10571 .PD 0
10572 .RSs
10573 .IPs "\-1"
10574 none
10575 .IPs " 0"
10576 Print errors only.
10577 .IPs " 1"
10578 warnings
10579 .IPs " 2"
10580 PSNR and other analysis statistics when the encode finishes (default)
10581 .IPs " 3"
10582 PSNR, QP, frametype, size, and other statistics for every frame
10584 .PD 1
10587 .B (no)psnr
10588 Print signal-to-noise ratio statistics.
10590 .I NOTE:
10591 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
10592 mathematically sound (they are simply the average of per-frame PSNRs).
10593 They are kept only for comparison to the JM reference codec.
10594 For all other purposes, please use either the 'Global' PSNR, or the per-frame
10595 PSNRs printed by log=3.
10598 .B (no)ssim
10599 Print the Structural Similarity Metric results.
10600 This is an alternative to PSNR, and may be better correlated with the
10601 perceived quality of the compressed video.
10604 .B (no)visualize
10605 Enable x264 visualizations during encoding.
10606 If the x264 on your system supports it, a new window will be opened during
10607 the encoding process, in which x264 will attempt to present an overview of
10608 how each frame gets encoded.
10609 Each block type on the visualized movie will be colored as follows:
10610 .PD 0
10611 .RSs
10612 .IPs red/pink
10613 intra block
10614 .IPs "blue\ "
10615 inter block
10616 .IPs green
10617 skip block
10618 .IPs yellow
10619 B-block
10621 .PD 1
10623 This feature can be considered experimental and subject to change.
10624 In particular, it depends on x264 being compiled with visualizations enabled.
10625 Note that as of writing this, x264 pauses after encoding and visualizing
10626 each frame, waiting for the user to press a key, at which point the next
10627 frame will be encoded.
10631 .SS xvfw (\-xvfwopts)
10633 Encoding with Video for Windows codecs is mostly obsolete unless you wish
10634 to encode to some obscure fringe codec.
10637 .B codec=<name>
10638 The name of the binary codec file with which to encode.
10641 .B compdata=<file>
10642 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
10645 .SS MPEG muxer (\-mpegopts)
10647 The MPEG muxer can generate 5 types of streams, each of which has reasonable
10648 default parameters that the user can override.
10649 Generally, when generating MPEG files, it is advisable to disable
10650 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
10651 harddup and softskip video filters).
10653 .I EXAMPLE:
10654 .PD 0
10655 .RSs
10656 .IPs format=mpeg2:tsaf:vbitrate=8000
10658 .PD 1
10661 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
10662 stream format (default: mpeg2).
10663 pes1 and pes2 are very broken formats (no pack header and no padding),
10664 but VDR uses them; do not choose them unless you know exactly what you
10665 are doing.
10668 .B size=<up to 65535>
10669 Pack size in bytes, do not change unless you know exactly what
10670 you are doing (default: 2048).
10673 .B muxrate=<int>
10674 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
10675 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
10678 .B "tsaf\ \ \ "
10679 Sets timestamps on all frames, if possible; recommended when format=dvd.
10680 If dvdauthor complains with a message like "..audio sector out of range...",
10681 you probably did not enable this option.
10684 .B interleaving2
10685 Uses a better algorithm to interleave audio and video packets, based on the
10686 principle that the muxer will always try to fill the stream with the largest
10687 percentage of free space.
10690 .B vdelay=<1\-32760>
10691 Initial video delay time, in milliseconds (default: 0),
10692 use it if you want to delay video with respect to audio.
10693 It doesn't work with :drop.
10696 .B adelay=<1\-32760>
10697 Initial audio delay time, in milliseconds (default: 0),
10698 use it if you want to delay audio with respect to video.
10701 .B "drop\ \ \ "
10702 When used with vdelay the muxer drops the part of audio that was
10703 anticipated.
10706 .B vwidth, vheight=<1\-4095>
10707 Set the video width and height when video is MPEG-1/2.
10710 .B vpswidth, vpsheight=<1\-4095>
10711 Set pan and scan video width and height when video is MPEG-2.
10714 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
10715 Sets the display aspect ratio for MPEG-2 video.
10716 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
10719 .B vbitrate=<int>
10720 Sets the video bitrate in kbit/s for MPEG-1/2 video.
10723 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
10724 Sets the framerate for MPEG-1/2 video.
10725 This option will be ignored if used with the telecine option.
10728 .B telecine
10729 Enables 3:2 pulldown soft telecine mode: The muxer will make the
10730 video stream look like it was encoded at 30000/1001 fps.
10731 It only works with MPEG-2 video when the output framerate is
10732 24000/1001 fps, convert it with \-ofps if necessary.
10733 Any other framerate is incompatible with this option.
10736 .B film2pal
10737 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
10738 will make the video stream look like it was encoded at 25 fps.
10739 It only works with MPEG-2 video when the output framerate is
10740 24000/1001 fps, convert it with \-ofps if necessary.
10741 Any other framerate is incompatible with this option.
10744 .B tele_src and tele_dest
10745 Enables arbitrary telecining using Donand Graft's DGPulldown code.
10746 You need to specify the original and the desired framerate; the
10747 muxer will make the video stream look like it was encoded at
10748 the desired framerate.
10749 It only works with MPEG-2 video when the input framerate is smaller
10750 than the output framerate and the framerate increase is <= 1.5.
10751 .sp 1
10753 .I EXAMPLE:
10755 .PD 0
10756 .RSs
10757 .IPs tele_src=25,tele_dest=30000/1001
10758 PAL to NTSC telecining
10760 .PD 1
10763 .B vbuf_size=<40\-1194>
10764 Sets the size of the video decoder's buffer, expressed in kilobytes.
10765 Specify it only if the bitrate of the video stream is too high for
10766 the chosen format and if you know perfectly well what you are doing.
10767 A too high value may lead to an unplayable movie, depending on the player's
10768 capabilities.
10769 When muxing HDTV video a value of 400 should suffice.
10772 .B abuf_size=<4\-64>
10773 Sets the size of the audio decoder's buffer, expressed in kilobytes.
10774 The same principle as for vbuf_size applies.
10777 .SS FFmpeg libavformat demuxers (\-lavfdopts)
10780 .B analyzeduration=<value>
10781 Maximum length in seconds to analyze the stream properties.
10784 .B format=<value>
10785 Force a specific libavformat demuxer.
10788 .B o=<key>=<value>[,<key>=<value>[,...]]
10789 Pass AVOptions to libavformat demuxer.
10790 Note, a patch to make the o= unneeded and pass all unknown options through
10791 the AVOption system is welcome.
10792 A full list of AVOptions can be found in the FFmpeg manual.
10793 Note that some options may conflict with MPlayer/MEncoder options.
10794 .sp 1
10796 .I EXAMPLE:
10798 .RSs
10799 .PD 0
10800 .IPs o=ignidx
10801 .PD 1
10805 .B probesize=<value>
10806 Maximum amount of data to probe during the detection phase.
10807 In the case of MPEG-TS this value identifies the maximum number
10808 of TS packets to scan.
10811 .B cryptokey=<hexstring>
10812 Encryption key the demuxer should use.
10813 This is the raw binary data of the key converted to a hexadecimal string.
10816 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
10819 .B delay=<value>
10820 Currently only meaningful for MPEG[12]: Maximum allowed distance,
10821 in seconds, between the reference timer of the output stream (SCR)
10822 and the decoding timestamp (DTS) for any stream present
10823 (demux to decode delay).
10824 Default is 0.7 (as mandated by the standards defined by MPEG).
10825 Higher values require larger buffers and must not be used.
10828 .B format=<container_format>
10829 Override which container format to mux into
10830 (default: autodetect from output file extension).
10831 .PD 0
10832 .RSs
10833 .IPs "mpg\ \ "
10834 MPEG-1 systems and MPEG-2 PS
10835 .IPs "asf\ \ "
10836 Advanced Streaming Format
10837 .IPs "avi\ \ "
10838 Audio Video Interleave file
10839 .IPs "wav\ \ "
10840 Waveform Audio
10841 .IPs "swf\ \ "
10842 Macromedia Flash
10843 .IPs "flv\ \ "
10844 Macromedia Flash video files
10845 .IPs "rm\ \ \ "
10846 RealAudio and RealVideo
10847 .IPs "au\ \ \ "
10848 SUN AU format
10849 .IPs "nut\ \ "
10850 NUT open container format (experimental)
10851 .IPs "mov\ \ "
10852 QuickTime
10853 .IPs "mp4\ \ "
10854 MPEG-4 format
10855 .IPs "ipod\ "
10856 MPEG-4 format with extra header flags required by Apple iPod firmware
10857 .IPs "dv\ \ \ "
10858 Sony Digital Video container
10859 .IPs "matroska\ \ \ "
10860 Matroska
10862 .PD 1
10864 .B muxrate=<rate>
10865 Nominal bitrate of the multiplex, in bits per second;
10866 currently it is meaningful only for MPEG[12].
10867 Sometimes raising it is necessary in order to avoid "buffer underflows".
10870 .B o=<key>=<value>[,<key>=<value>[,...]]
10871 Pass AVOptions to libavformat muxer.
10872 Note, a patch to make the o= unneeded and pass all unknown options through
10873 the AVOption system is welcome.
10874 A full list of AVOptions can be found in the FFmpeg manual.
10875 Note that some options may conflict with MEncoder options.
10876 .sp 1
10878 .I EXAMPLE:
10880 .RSs
10881 .PD 0
10882 .IPs o=packetsize=100
10883 .PD 1
10887 .B packetsize=<size>
10888 Size, expressed in bytes, of the unitary packet for the chosen format.
10889 When muxing to MPEG[12] implementations the default values are:
10890 2324 for [S]VCD, 2048 for all others formats.
10893 .B preload=<distance>
10894 Currently only meaningful for MPEG[12]: Initial distance,
10895 in seconds, between the reference timer of the output stream (SCR)
10896 and the decoding timestamp (DTS) for any stream present
10897 (demux to decode delay).
10901 .\" --------------------------------------------------------------------------
10902 .\" environment variables
10903 .\" --------------------------------------------------------------------------
10905 .SH ENVIRONMENT VARIABLES
10907 There are a number of environment variables that can be used to
10908 control the behavior of MPlayer and MEncoder.
10911 .B MPLAYER_CHARSET (also see \-msgcharset)
10912 Convert console messages to the specified charset (default: autodetect).
10913 A value of "noconv" means no conversion.
10916 .B MPLAYER_HOME
10917 Directory where MPlayer looks for user settings.
10920 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
10921 Set the initial verbosity level across all message modules (default: 0).
10922 The resulting verbosity corresponds to that of \-msglevel 5 plus the
10923 value of MPLAYER_VERBOSE.
10925 .SS libaf:
10928 .B LADSPA_PATH
10929 If LADSPA_PATH is set, it searches for the specified file.
10930 If it is not set, you must supply a fully specified pathname.
10931 FIXME: This is also mentioned in the ladspa section.
10933 .SS libdvdcss:
10936 .B DVDCSS_CACHE
10937 Specify a directory in which to store title key values.
10938 This will speed up descrambling of DVDs which are in the cache.
10939 The DVDCSS_CACHE directory is created if it does not exist,
10940 and a subdirectory is created named after the DVD's title
10941 or manufacturing date.
10942 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
10943 the default value which is "${HOME}/.dvdcss/" under Unix and
10944 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
10945 The special value "off" disables caching.
10948 .B DVDCSS_METHOD
10949 Sets the authentication and decryption method that
10950 libdvdcss will use to read scrambled discs.
10951 Can be one of title, key or disc.
10952 .PD 0
10953 .RSs
10954 .IPs "key\ \ "
10955 is the default method.
10956 libdvdcss will use a set of calculated player keys to try and get the disc key.
10957 This can fail if the drive does not recognize any of the player keys.
10958 .IPs "disc\ "
10959 is a fallback method when key has failed.
10960 Instead of using player keys, libdvdcss will crack the disc key using
10961 a brute force algorithm.
10962 This process is CPU intensive and requires 64 MB of memory to store
10963 temporary data.
10964 .IPs title
10965 is the fallback when all other methods have failed.
10966 It does not rely on a key exchange with the DVD drive, but rather uses
10967 a crypto attack to guess the title key.
10968 On rare cases this may fail because there is not enough encrypted data
10969 on the disc to perform a statistical attack, but in the other hand it
10970 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
10971 the wrong region on an RPC2 drive.
10973 .PD 1
10976 .B DVDCSS_RAW_DEVICE
10977 Specify the raw device to use.
10978 Exact usage will depend on your operating system, the Linux
10979 utility to set up raw devices is raw(8) for instance.
10980 Please note that on most operating systems, using a raw device
10981 requires highly aligned buffers: Linux requires a 2048 bytes
10982 alignment (which is the size of a DVD sector).
10985 .B DVDCSS_VERBOSE
10986 Sets the libdvdcss verbosity level.
10987 .PD 0
10988 .RSs
10989 .IPs 0
10990 Outputs no messages at all.
10991 .IPs 1
10992 Outputs error messages to stderr.
10993 .IPs 2
10994 Outputs error messages and debug messages to stderr.
10996 .PD 1
10999 .B DVDREAD_NOKEYS
11000 Skip retrieving all keys on startup.
11001 Currently disabled.
11004 .B HOME
11005 FIXME: Document this.
11007 .SS libao2:
11010 .B AO_SUN_DISABLE_SAMPLE_TIMING
11011 FIXME: Document this.
11014 .B AUDIODEV
11015 FIXME: Document this.
11018 .B AUDIOSERVER
11019 Specifies the Network Audio System server to which the
11020 nas audio output driver should connect and the transport
11021 that should be used.
11022 If unset DISPLAY is used instead.
11023 The transport can be one of tcp and unix.
11024 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
11025 or [unix]:<instancenumber>.
11026 The NAS base port is 8000 and <instancenumber> is added to that.
11027 .sp 1
11029 .I EXAMPLES:
11031 .PD 0
11032 .RSs
11033 .IPs AUDIOSERVER=somehost:0
11034 Connect to NAS server on somehost using default port and transport.
11035 .IPs AUDIOSERVER=tcp/somehost:8000
11036 Connect to NAS server on somehost listening on TCP port 8000.
11037 .IPs AUDIOSERVER=(unix)?:0
11038 Connect to NAS server instance 0 on localhost using unix domain sockets.
11040 .PD 1
11043 .B DISPLAY
11044 FIXME: Document this.
11046 .SS vidix:
11049 .B VIDIX_CRT
11050 FIXME: Document this.
11053 .B VIDIXIVTVALPHA
11054 Set this to 'disable' in order to stop the VIDIX driver from controlling
11055 alphablending settings.
11056 You can then manipulate it yourself with 'ivtvfbctl'.
11058 .SS osdep:
11061 .B TERM
11062 FIXME: Document this.
11064 .SS libvo:
11067 .B DISPLAY
11068 FIXME: Document this.
11071 .B FRAMEBUFFER
11072 FIXME: Document this.
11075 .B HOME
11076 FIXME: Document this.
11078 .SS libmpdemux:
11081 .B HOME
11082 FIXME: Document this.
11085 .B HOMEPATH
11086 FIXME: Document this.
11089 .B http_proxy
11090 FIXME: Document this.
11093 .B LOGNAME
11094 FIXME: Document this.
11097 .B USERPROFILE
11098 FIXME: Document this.
11100 .SS libmpcodecs:
11103 .B XANIM_MOD_DIR
11104 FIXME: Document this.
11106 .SS GUI:
11109 .B CHARSET
11110 FIXME: Document this.
11113 .B DISPLAY
11114 FIXME: Document this.
11117 .B HOME
11118 FIXME: Document this.
11120 .SS libavformat:
11123 .B AUDIO_FLIP_LEFT
11124 FIXME: Document this.
11127 .B BKTR_DEV
11128 FIXME: Document this.
11131 .B BKTR_FORMAT
11132 FIXME: Document this.
11135 .B BKTR_FREQUENCY
11136 FIXME: Document this.
11139 .B http_proxy
11140 FIXME: Document this.
11143 .B no_proxy
11144 FIXME: Document this.
11148 .\" --------------------------------------------------------------------------
11149 .\" Files
11150 .\" --------------------------------------------------------------------------
11152 .SH FILES
11155 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
11156 MPlayer system-wide settings
11159 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
11160 MEncoder system-wide settings
11163 ~/.mplayer/\:config
11164 MPlayer user settings
11167 ~/.mplayer/\:mencoder.conf
11168 MEncoder user settings
11171 ~/.mplayer/\:input.conf
11172 input bindings (see '\-input keylist' for the full list)
11175 ~/.mplayer/\:font/
11176 font directory (There must be a font.desc file and files with .RAW extension.)
11179 ~/.mplayer/\:DVDkeys/
11180 cached CSS keys
11183 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
11184 in this order:
11186 /path/\:to/\:movie.sub
11188 ~/.mplayer/\:sub/\:movie.sub
11190 .PD 1
11193 .\" --------------------------------------------------------------------------
11194 .\" Examples
11195 .\" --------------------------------------------------------------------------
11197 .SH EXAMPLES OF MPLAYER USAGE
11200 .B Quickstart DVD playing:
11202 mplayer dvd://1
11206 .B Play in Japanese with English subtitles:
11208 mplayer dvd://1 \-alang ja \-slang en
11212 .B Play only chapters 5, 6, 7:
11214 mplayer dvd://1 \-chapter 5\-7
11218 .B Play only titles 5, 6, 7:
11220 mplayer dvd://5\-7
11224 .B Play a multiangle DVD:
11226 mplayer dvd://1 \-dvdangle 2
11230 .B Play from a different DVD device:
11232 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
11236 .B Play DVD video from a directory with VOB files:
11238 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
11242 .B Copy a DVD title to hard disk, saving to file "title1.vob":
11244 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
11248 .B Play a DVD with dvdnav from path /dev/sr1:
11250 mplayer dvdnav:////dev/sr1
11254 .B Stream from HTTP:
11256 mplayer http://mplayer.hq/example.avi
11260 .B Stream using RTSP:
11262 mplayer rtsp://server.example.com/streamName
11266 .B Convert subtitles to MPsub format:
11268 mplayer dummy.avi \-sub source.sub \-dumpmpsub
11272 .B Convert subtitles to MPsub format without watching the movie:
11274 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
11278 .B input from standard V4L:
11280 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
11284 .B Playback on Zoran cards (old style, deprecated):
11286 mplayer \-vo zr \-vf scale=352:288 file.avi
11290 .B Playback on Zoran cards (new style):
11292 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
11296 .B Play DTS-CD with passthrough:
11298 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
11301 You can also use \-afm hwac3 instead of \-ac hwdts.
11302 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
11303 If your external receiver supports decoding raw DTS streams,
11304 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
11307 .B Play a 6-channel AAC file with only two speakers:
11309 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
11312 You might want to play a bit with the pan values (e.g multiply with a value) to
11313 increase volume or avoid clipping.
11316 .B checkerboard invert with geq filter:
11318 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'
11322 .SH EXAMPLES OF MENCODER USAGE
11325 .B Encode DVD title #2, only selected chapters:
11327 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11331 .B Encode DVD title #2, resizing to 640x480:
11333 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11337 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
11339 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11343 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
11345 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
11349 .B The same, but with MJPEG compression:
11351 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
11355 .B Encode all *.jpg files in the current directory:
11357 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
11361 .B Encode from a tuner (specify a format with \-vf format):
11363 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
11367 .B Encode from a pipe:
11369 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
11373 .\" --------------------------------------------------------------------------
11374 .\" Bugs, authors, standard disclaimer
11375 .\" --------------------------------------------------------------------------
11377 .SH BUGS
11378 Don't panic.
11379 If you find one, report it to us, but please make sure you have read all
11380 of the documentation first.
11381 Also look out for smileys. :)
11382 Many bugs are the result of incorrect setup or parameter usage.
11383 The bug reporting section of the documentation
11384 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
11385 explains how to create useful bug reports.
11389 .SH AUTHORS
11390 MPlayer was initially written by Arpad Gereoffy.
11391 See the AUTHORS file for a list of some of the many other contributors.
11393 MPlayer is (C) 2000\-2009 The MPlayer Team
11395 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
11396 It is maintained by Diego Biurrun.
11397 Please send mails about it to the MPlayer-DOCS mailing list.
11398 Translation specific mails belong on the MPlayer-translations mailing list.
11399 .\" end of file