Merge svn changes up to 27824
[mplayer.git] / DOCS / man / en / mplayer.1
blobbd1f196ced90886f3701544680b7dbf7f1597a6b
1 .\" $Revision$
2 .\" MPlayer (C) 2000-2008 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 "2008-01-01" "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|smb]://
109 [user:pass@]URL[:port] [options]
112 .B mplayer
113 sdp://file
114 [options]
117 .B mplayer
118 mpst://host[:port]/URL
119 [options]
122 .B mplayer
123 tivo://host/[list|llist|fsid]
124 [options]
127 .B gmplayer
128 [options]
129 [\-skin\ skin]
132 .B mencoder
133 [options] file
134 [file|URL|\-] [\-o file | file://file | smb://[user:pass@]host/filepath]
137 .B mencoder
138 [options] file1
139 [specific options] [file2] [specific options]
143 .\" --------------------------------------------------------------------------
144 .\" Description
145 .\" --------------------------------------------------------------------------
147 .SH DESCRIPTION
148 .B mplayer
149 is a movie player for Linux (runs on many other platforms and CPU
150 architectures, see the documentation).
151 It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM,
152 MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
153 native and binary codecs.
154 You can watch VCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies,
155 too.
157 MPlayer supports a wide range of video and audio output drivers.
158 It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
159 Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers),
160 VESA (on every VESA-compatible card, even without X11), some low-level
161 card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder
162 boards, such as the Siemens DVB, Hauppauge PVR (IVTV), DXR2 and DXR3/\:Hollywood+.
163 Most of them support software or hardware scaling, so you can enjoy movies in
164 fullscreen mode.
166 MPlayer has an onscreen display (OSD) for status information, nice big
167 antialiased shaded subtitles and visual feedback for keyboard controls.
168 European/\:ISO8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean
169 fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM,
170 SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and
171 DVD subtitles (SPU streams, VOBsub and Closed Captions).
173 .B mencoder
174 (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode
175 MPlayer-playable movies (see above) to other MPlayer-playable formats (see
176 below).
177 It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and
178 PCM/\:MP3/\:VBRMP3 audio in 1, 2 or 3 passes.
179 Furthermore it has stream copying abilities, a powerful filter system (crop,
180 expand, flip, postprocess, rotate, scale, noise, RGB/\:YUV conversion) and
181 more.
183 .B gmplayer
184 is MPlayer with a graphical user interface.
185 It has the same options as MPlayer.
187 Usage examples to get you started quickly can be found at the end
188 of this man page.
190 .B Also see the HTML documentation!
193 .\" --------------------------------------------------------------------------
194 .\" interactive control
195 .\" --------------------------------------------------------------------------
197 .SH "INTERACTIVE CONTROL"
198 MPlayer has a fully configurable, command-driven control layer
199 which allows you to control MPlayer using keyboard, mouse, joystick
200 or remote control (with LIRC).
201 See the \-input option for ways to customize it.
204 .B keyboard control
205 .PD 0
207 .IPs "<\- and \->"
208 Seek backward/\:forward 10 seconds.
209 .IPs "up and down"
210 Seek forward/\:backward 1 minute.
211 .IPs "pgup and pgdown"
212 Seek forward/\:backward 10 minutes.
213 .IPs "[ and ]"
214 Decrease/increase current playback speed by 10%.
215 .IPs "{ and }"
216 Halve/double current playback speed.
217 .IPs "backspace"
218 Reset playback speed to normal.
219 .IPs "< and >"
220 Go backward/\:forward in the playlist.
221 .IPs "ENTER"
222 Go forward in the playlist, even over the end.
223 .IPs "HOME and END"
224 next/\:previous playtree entry in the parent list
225 .IPs "INS and DEL (ASX playlist only)"
226 next/\:previous alternative source.
227 .IPs "p / SPACE"
228 Pause (pressing again unpauses).
229 .IPs ".\ \ \ \ "
230 Step forward.
231 Pressing once will pause movie, every consecutive press will play one frame
232 and then go into pause mode again (any other key unpauses).
233 .IPs "q / ESC"
234 Stop playing and quit.
235 .IPs "U\ \ \ \ "
236 Stop playing (and quit if \-idle is not used).
237 .IPs "+ and \-"
238 Adjust audio delay by +/\- 0.1 seconds.
239 .IPs "/ and *"
240 Decrease/\:increase volume.
241 .IPs "9 and 0"
242 Decrease/\:increase volume.
243 .IPs "( and )"
244 Adjust audio balance in favor of left/\:right channel.
245 .IPs "m\ \ \ \ "
246 Mute sound.
247 .IPs "_ (MPEG-TS, AVI and libavformat only)"
248 Cycle through the available video tracks.
249 .IPs "# (DVD, MPEG, Matroska, AVI and libavformat only)"
250 Cycle through the available audio tracks.
251 .IPs "TAB (MPEG-TS and libavformat only)"
252 Cycle through the available programs.
253 .IPs "f\ \ \ \ "
254 Toggle fullscreen (also see \-fs).
255 .IPs "T\ \ \ \ "
256 Toggle stay-on-top (also see \-ontop).
257 .IPs "w and e"
258 Decrease/\:increase pan-and-scan range.
259 .IPs "o\ \ \ \ "
260 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
261 .IPs "d\ \ \ \ "
262 Toggle frame dropping states: none / skip display / skip decoding
263 (see \-framedrop and \-hardframedrop).
264 .IPs "v\ \ \ \ "
265 Toggle subtitle visibility.
266 .IPs "j\ \ \ \ "
267 Cycle through the available subtitles.
268 .IPs "y and g"
269 Step forward/backward in the subtitle list.
270 .IPs "F\ \ \ \ "
271 Toggle displaying "forced subtitles".
272 .IPs "a\ \ \ \ "
273 Toggle subtitle alignment: top / middle / bottom.
274 .IPs "x and z"
275 Adjust subtitle delay by +/\- 0.1 seconds.
276 .IPs "r and t"
277 Move subtitles up/down.
278 .IPs "i (\-edlout mode only)"
279 Set start or end of an EDL skip and write it out to the given file.
280 .IPs "s (\-vf screenshot only)"
281 Take a screenshot.
282 .IPs "S (\-vf screenshot only)"
283 Start/stop taking screenshots.
284 .IPs "I\ \ \ \ "
285 Show filename on the OSD.
286 .IPs "! and @"
287 Seek to the beginning of the previous/next chapter.
288 .IPs "D (\-vo xvmc, \-vf yadif, \-vf kerndeint only)"
289 Activate/deactivate deinterlacer.
290 .IPs "A"
291 Cycle through the available DVD angles.
293 .PD 1
296 (The following keys are valid only when using a hardware accelerated video
297 output (xv, (x)vidix, (x)mga, etc), the software equalizer
298 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
301 .PD 0
303 .IPs "1 and 2"
304 Adjust contrast.
305 .IPs "3 and 4"
306 Adjust brightness.
307 .IPs "5 and 6"
308 Adjust hue.
309 .IPs "7 and 8"
310 Adjust saturation.
312 .PD 1
315 (The following keys are valid only when using the quartz or macosx
316 video output driver.)
319 .PD 0
321 .IPs "command + 0"
322 Resize movie window to half its original size.
323 .IPs "command + 1"
324 Resize movie window to its original size.
325 .IPs "command + 2"
326 Resize movie window to double its original size.
327 .IPs "command + f"
328 Toggle fullscreen (also see \-fs).
329 .IPs "command + [ and command + ]"
330 Set movie window alpha.
332 .PD 1
335 (The following keys are valid only when using the sdl
336 video output driver.)
339 .PD 0
341 .IPs "c\ \ \ \ "
342 Cycle through available fullscreen modes.
343 .IPs "n\ \ \ \ "
344 Restore original mode.
346 .PD 1
349 (The following keys are valid if you have a keyboard
350 with multimedia keys.)
353 .PD 0
355 .IPs PAUSE
356 Pause.
357 .IPs "STOP\ "
358 Stop playing and quit.
359 .IPs "PREVIOUS and NEXT"
360 Seek backward/\:forward 1 minute.
362 .PD 1
365 (The following keys are only valid if GUI support is compiled in
366 and will take precedence over the keys defined above.)
369 .PD 0
371 .IPs ENTER
372 Start playing.
373 .IPs "ESC\ \ "
374 Stop playing.
375 .IPs "l\ \ \ \ "
376 Load file.
377 .IPs "t\ \ \ \ "
378 Load subtitle.
379 .IPs "c\ \ \ \ "
380 Open skin browser.
381 .IPs "p\ \ \ \ "
382 Open playlist.
383 .IPs "r\ \ \ \ "
384 Open preferences.
386 .PD 1
389 (The following keys are only valid if you compiled with TV or DVB input
390 support and will take precedence over the keys defined above.)
393 .PD 0
395 .IPs "h and k"
396 Select previous/\:next channel.
397 .IPs "n\ \ \ \ "
398 Change norm.
399 .IPs "u\ \ \ \ "
400 Change channel list.
402 .PD 1
405 (The following keys are only valid if you compiled with dvdnav
406 support: They are used to navigate the menus.)
409 .PD 0
411 .IPs "keypad 8"
412 Select button up.
413 .IPs "keypad 2"
414 Select button down.
415 .IPs "keypad 4"
416 Select button left.
417 .IPs "keypad 6"
418 Select button right.
419 .IPs "keypad 5"
420 Return to main menu.
421 .IPs "keypad 7"
422 Return to nearest menu (the order of preference is: chapter->title->root).
423 .IPs "keypad ENTER"
424 Confirm choice.
426 .PD 1
430 (The following keys are only valid if teletext support is enabled during
431 compilation: They are used for controlling TV teletext.)
434 .PD 0
436 .IPs "X\ \ \ \ "
437 Switch teletext on/\:off.
438 .IPs "Q and W"
439 Go to next/\:prev teletext page.
441 .PD 1
446 .B mouse control
447 .PD 0
449 .IPs "button 3 and button 4"
450 Seek backward/\:forward 1 minute.
451 .IPs "button 5 and button 6"
452 Decrease/\:increase volume.
454 .PD 1
457 .B joystick control
458 .PD 0
460 .IPs "left and right"
461 Seek backward/\:forward 10 seconds.
462 .IPs "up and down"
463 Seek forward/\:backward 1 minute.
464 .IPs "button 1"
465 Pause.
466 .IPs "button 2"
467 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
468 .IPs "button 3 and button 4"
469 Decrease/\:increase volume.
471 .PD 1
474 .\" --------------------------------------------------------------------------
475 .\" Usage
476 .\" --------------------------------------------------------------------------
478 .SH "USAGE"
479 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
480 \-fs option is \-nofs.
482 If an option is marked as (XXX only), it will only work in combination with
483 the XXX option or if XXX is compiled in.
485 .I NOTE:
486 The suboption parser (used for example for \-ao pcm suboptions) supports
487 a special kind of string-escaping intended for use with external GUIs.
489 It has the following format:
491 %n%string_of_length_n
493 .I EXAMPLES:
495 mplayer \-ao pcm:file=%10%C:test.wav test.avi
497 Or in a script:
499 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
502 .\" --------------------------------------------------------------------------
503 .\" Configuration files
504 .\" --------------------------------------------------------------------------
506 .SH "CONFIGURATION FILES"
507 You can put all of the options in configuration files which will be read
508 every time MPlayer/MEncoder is run.
509 The system-wide configuration file 'mplayer.conf' is in your configuration
510 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
511 specific one is '~/\:.mplayer/\:config'.
512 The configuration file for MEncoder is 'mencoder.conf' in your configuration
513 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
514 user specific one is '~/\:.mplayer/\:mencoder.conf'.
515 User specific options override system-wide options and options given on the
516 command line override either.
517 The syntax of the configuration files is 'option=<value>', everything after
518 a '#' is considered a comment.
519 Options that work without values can be enabled by setting them to 'yes'
520 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
521 Even suboptions can be specified in this way.
523 You can also write file-specific configuration files.
524 If you wish to have a configuration file for a file called 'movie.avi', create a file
525 named 'movie.avi.conf' with the file-specific options in it and put it in
526 ~/.mplayer/.
527 You can also put the configuration file in the same directory as the file to
528 be played, as long as you give the \-use\-filedir\-conf option (either on the
529 command line or in your global config file).
531 .I EXAMPLE MPLAYER CONFIGURATION FILE:
532 .sp 1
534 # Use Matrox driver by default.
535 vo=xmga
536 # I love practicing handstands while watching videos.
537 flip=yes
538 # Decode/encode multiple files from PNG,
539 # start with mf://filemask
540 mf=type=png:fps=25
541 # Eerie negative images are cool.
542 vf=eq2=1.0:\-0.8
545 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
546 .sp 1
548 # Make MEncoder output to a default filename.
549 o=encoded.avi
550 # The next 4 lines allow mencoder tv:// to start capturing immediately.
551 oac=pcm=yes
552 ovc=lavc=yes
553 lavcopts=vcodec=mjpeg
554 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
555 # more complex default encoding option set
556 lavcopts=vcodec=mpeg4:autoaspect=1
557 lameopts=aq=2:vbr=4
558 ovc=lavc=1
559 oac=lavc=1
560 passlogfile=pass1stats.log
561 noautoexpand=1
562 subfont-autoscale=3
563 subfont-osd-scale=6
564 subfont-text-scale=4
565 subalign=2
566 subpos=96
567 spuaa=20
570 .\" --------------------------------------------------------------------------
571 .\" Profiles
572 .\" --------------------------------------------------------------------------
574 .SH "PROFILES"
575 To ease working with different configurations profiles can be defined in the
576 configuration files.
577 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
578 All following options will be part of the profile.
579 A description (shown by \-profile help) can be defined with the profile-desc
580 option.
581 To end the profile, start another one or use the profile name 'default'
582 to continue with normal options.
585 .I "EXAMPLE MPLAYER PROFILE:"
586 .sp 1
589 [protocol.dvd]
590 profile-desc="profile for dvd:// streams"
591 vf=pp=hb/vb/dr/al/fd
592 alang=en
594 [protocol.dvdnav]
595 profile-desc="profile for dvdnav:// streams"
596 profile=protocol.dvd
597 mouse-movements=yes
599 [extension.flv]
600 profile-desc="profile for .flv files"
601 flip=yes
603 [vo.pnm]
604 outdir=/tmp
606 [ao.alsa]
607 device=spdif
610 .I "EXAMPLE MENCODER PROFILE:"
611 .sp 1
614 [mpeg4]
615 profile-desc="MPEG4 encoding"
616 ovc=lacv=yes
617 lavcopts=vcodec=mpeg4:vbitrate=1200
619 [mpeg4\-hq]
620 profile-desc="HQ MPEG4 encoding"
621 profile=mpeg4
622 lavcopts=mbd=2:trell=yes:v4mv=yes
625 .\" --------------------------------------------------------------------------
626 .\" Options
627 .\" --------------------------------------------------------------------------
629 .SH "GENERAL OPTIONS"
632 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
633 Override the standard search path and use the specified file
634 instead of the builtin codecs.conf.
637 .B \-include <configuration file>
638 Specify configuration file to be parsed after the default ones.
641 .B \-list\-options
642 Prints all available options.
645 .B \-msgcharset <charset>
646 Convert console messages to the specified character set (default: autodetect).
647 Text will be in the encoding specified with the \-\-charset configure option.
648 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
650 .I NOTE:
651 The option takes effect after command line parsing has finished.
652 The MPLAYER_CHARSET environment variable can help you get rid of
653 the first lines of garbled output.
656 .B \-msgcolor
657 Enable colorful console output on terminals that support ANSI color.
660 .B \-msglevel <all=<level>:<module>=<level>:...>
661 Control verbosity directly for each module.
662 The 'all' module changes the verbosity of all the modules not
663 explicitly specified on the command line.
664 See '\-msglevel help' for a list of all modules.
666 .I NOTE:
667 Some messages are printed before the command line is parsed and are
668 therefore not affected by \-msglevel.
669 To control these messages you have to use the MPLAYER_VERBOSE environment
670 variable, see its description below for details.
672 Available levels:
673 .PD 0
674 .RSs
675 .IPs "\-1"
676 complete silence
677 .IPs " 0"
678 fatal messages only
679 .IPs " 1"
680 error messages
681 .IPs " 2"
682 warning messages
683 .IPs " 3"
684 short hints
685 .IPs " 4"
686 informational messages
687 .IPs " 5"
688 status messages (default)
689 .IPs " 6"
690 verbose messages
691 .IPs " 7"
692 debug level 2
693 .IPs " 8"
694 debug level 3
695 .IPs " 9"
696 debug level 4
698 .PD 1
701 .B \-msgmodule
702 Prepend module name in front of each console message.
705 .B \-noconfig <options>
706 Do not parse selected configuration files.
708 .I NOTE:
709 If \-include or \-use\-filedir\-conf options are
710 specified at the command line, they will be honoured.
711 .sp 1
712 Available options are:
713 .PD 0
714 .RSs
715 .IPs "all\ \ "
716 all configuration files
717 .IPs "gui (GUI only)"
718 GUI configuration file
719 .IPs system
720 system configuration file
721 .IPs "user\ "
722 user configuration file
724 .PD 1
727 .B "\-quiet\ "
728 Make console output less verbose; in particular, prevents the status line
729 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
730 Particularly useful on slow terminals or broken ones which do not properly
731 handle carriage return (i.e.\& \\r).
734 .B \-priority <prio> (Windows only)
735 Set process priority for MPlayer according to the predefined
736 priorities available under Windows.
737 Possible values of <prio>:
738 .RSs
739 idle|belownormal|normal|abovenormal|high|realtime
741 .sp 1
743 .I WARNING:
744 Using realtime priority can cause system lockup.
748 .B \-profile <profile1,profile2,...>
749 Use the given profile(s), \-profile help displays a list of the defined profiles.
752 .B \-really\-quiet (also see \-quiet)
753 Display even less output and status messages than with \-quiet.
754 Also suppresses the GUI error message boxes.
757 .B \-show\-profile <profile>
758 Show the description and content of a profile.
761 .B \-use\-filedir\-conf
762 Look for a file-specific configuration file in the same directory as
763 the file that is being played.
765 .I WARNING:
766 May be dangerous if playing from untrusted media.
769 .B "\-v\ \ \ \ \ "
770 Increment verbosity level, one level for each \-v
771 found on the command line.
775 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
778 .B \-autoq <quality> (use with \-vf [s]pp)
779 Dynamically changes the level of postprocessing depending on the available spare
780 CPU time.
781 The number you specify will be the maximum level used.
782 Usually you can use some big number.
783 You have to use \-vf [s]pp without parameters in order for this to work.
786 .B \-autosync <factor>
787 Gradually adjusts the A/V sync based on audio delay measurements.
788 Specifying \-autosync 0, the default, will cause frame timing to be based
789 entirely on audio delay measurements.
790 Specifying \-autosync 1 will do the same, but will subtly change the A/V
791 correction algorithm.
792 An uneven video framerate in a movie which plays fine with \-nosound can
793 often be helped by setting this to an integer value greater than 1.
794 The higher the value, the closer the timing will be to \-nosound.
795 Try \-autosync 30 to smooth out problems with sound drivers which do
796 not implement a perfect audio delay measurement.
797 With this value, if large A/V sync offsets occur, they will only take about
798 1 or 2 seconds to settle out.
799 This delay in reaction time to sudden A/V offsets should be the only
800 side-effect of turning this option on, for all sound drivers.
803 .B \-benchmark
804 Prints some statistics on CPU usage and dropped frames at the end of playback.
805 Use in combination with \-nosound and \-vo null for benchmarking only the
806 video codec.
808 .I NOTE:
809 With this option MPlayer will also ignore frame duration when playing
810 only video (you can think of that as infinite fps).
813 .B \-colorkey <number>
814 Changes the colorkey to an RGB value of your choice.
815 0x000000 is black and 0xffffff is white.
816 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
817 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
818 drivers.
821 .B \-nocolorkey
822 Disables colorkeying.
823 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
824 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
825 drivers.
828 .B \-correct\-pts (EXPERIMENTAL)
829 Switches MPlayer to an experimental mode where timestamps for video frames
830 are calculated differently and video filters which add new frames or
831 modify timestamps of existing ones are supported.
832 The more accurate timestamps can be visible for example when playing
833 subtitles timed to scene changes with the \-ass option.
834 Without \-correct\-pts the subtitle timing will typically be off by some frames.
835 This option does not work correctly with some demuxers and codecs.
838 .B \-crash\-debug (DEBUG CODE)
839 Automatically attaches gdb upon crash or SIGTRAP.
840 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
843 .B \-doubleclick\-time
844 Time in milliseconds to recognize two consecutive button presses as
845 a double-click (default: 300).
846 Set to 0 to let your windowing system decide what a double-click is
847 (\-vo directx only).
849 .I NOTE:
850 You will get slightly different behaviour depending on whether you bind
851 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
854 .B \-edlout <filename>
855 Creates a new file and writes edit decision list (EDL) records to it.
856 During playback, the user hits 'i' to mark the start or end of a skip block.
857 This provides a starting point from which the user can fine-tune EDL entries
858 later.
859 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
862 .B \-enqueue (GUI only)
863 Enqueue files given on the command line in the playlist instead of playing them
864 immediately.
867 .B \-fixed\-vo
868 Enforces a fixed video system for multiple files (one (un)initialization for
869 all files).
870 Therefore only one window will be opened for all files.
871 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
872 xmga, xv, xvidix and dfbmga.
875 .B \-framedrop (also see \-hardframedrop, experimental without \-nocorrect\-pts)
876 Skip displaying some frames to maintain A/V sync on slow systems.
877 Video filters are not applied to such frames.
878 For B-frames even decoding is skipped completely.
881 .B \-(no)gui
882 Enable or disable the GUI interface (default depends on binary name).
883 Only works as the first argument on the command line.
884 Does not work as a config-file option.
887 .B \-h, \-help, \-\-help
888 Show short summary of options.
891 .B \-hardframedrop (experimental without \-nocorrect\-pts)
892 More intense frame dropping (breaks decoding).
893 Leads to image distortion!
894 Note that especially the libmpeg2 decoder may crash with this,
895 so consider using "\-vc ffmpeg12,".
898 .B \-heartbeat\-cmd
899 Command that is executed every 30 seconds during playback via system() -
900 i.e.\& using the shell.
901 .sp 1
902 .I NOTE:
903 MPlayer uses this command without any checking, it is your responsibility
904 to ensure it does not cause security problems (e.g.\& make sure to use full
905 paths if "." is in your path like on Windows).
906 .sp 1
907 This can be "misused" to disable screensavers that do not support the proper
908 X API (also see \-stop\-xscreensaver).
909 If you think this is too complicated, ask the author of the screensaver
910 program to support the proper X APIs.
911 .sp 1
912 .I EXAMPLE for xscreensaver:
913 mplayer \-heartbeat\-cmd "xscreensaver\-command \-deactivate" file
914 .sp 1
915 .I EXAMPLE for GNOME screensaver:
916 mplayer \-heartbeat\-cmd "gnome\-screensaver\-command \-p" file
918 .PD 1
921 .B \-identify
922 Shorthand for \-msglevel identify=4.
923 Show file parameters in an easily parseable format.
924 Also prints more detailed information about subtitle and audio
925 track languages and IDs.
926 In some cases you can get more information by using \-msglevel identify=6.
927 For example, for a DVD it will list the chapters and time length of each title,
928 as well as a disk ID.
929 Combine this with \-frames 0 to suppress all output.
930 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
931 (hopefully) shellescapes the filenames.
934 .B \-idle (also see \-slave)
935 Makes MPlayer wait idly instead of quitting when there is no file to play.
936 Mostly useful in slave mode where MPlayer can be controlled
937 through input commands.
940 .B \-input <commands>
941 This option can be used to configure certain parts of the input system.
942 Paths are relative to ~/.mplayer/.
944 .I NOTE:
945 Autorepeat is currently only supported by joysticks.
946 .sp 1
947 Available commands are:
948 .sp 1
949 .PD 0
950 .RSs
951 .IPs conf=<filename>
952 Specify input configuration file other than the default
953 ~/\:.mplayer/\:input.conf.
954 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
955 .IPs ar-dev=<device>
956 Device to be used for Apple IR Remote (default is autodetected, Linux only).
957 .IPs ar-delay
958 Delay in milliseconds before we start to autorepeat a key (0 to disable).
959 .IPs ar-rate
960 Number of key presses to generate per second on autorepeat.
961 .IPs keylist
962 Prints all keys that can be bound to commands.
963 .IPs cmdlist
964 Prints all commands that can be bound to keys.
965 .IPs js-dev
966 Specifies the joystick device to use (default: /dev/\:input/\:js0).
967 .IPs file=<filename>
968 Read commands from the given file.
969 Mostly useful with a FIFO.
971 .I NOTE:
972 When the given file is a FIFO MPlayer opens both ends so you can do
973 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
975 .PD 1
978 .B \-key\-fifo\-size <2\-65000>
979 Specify the size of the FIFO that buffers key events (default: 7).
980 A FIFO of size n can buffer (n\-1) events.
981 If it is too small some events may be lost
982 (leading to "stuck mouse buttons" and similar effects).
983 If it is too big, MPlayer may seem to hang while it
984 processes the buffered events.
985 To get the same behavior as before this option was introduced,
986 set it to 2 for Linux or 1024 for Windows.
989 .B \-lircconf <filename> (LIRC only)
990 Specifies a configuration file for LIRC (default: ~/.lircrc).
993 .B \-list\-properties
994 Print a list of the available properties.
997 .B \-loop <number>
998 Loops movie playback <number> times.
999 0 means forever.
1002 .B \-menu (OSD menu only)
1003 Turn on OSD menu support.
1006 .B \-menu\-cfg <filename> (OSD menu only)
1007 Use an alternative menu.conf.
1010 .B \-menu\-chroot <path> (OSD menu only)
1011 Chroot the file selection menu to a specific location.
1012 .sp 1
1013 .I EXAMPLE:
1014 .PD 0
1015 .RSs
1016 .IPs "\-menu\-chroot /home"
1017 Will restrict the file selection menu to /\:home and downward (i.e.\& no
1018 access to / will be possible, but /home/user_name will).
1020 .PD 1
1023 .B \-menu\-keepdir (OSD menu only)
1024 File browser starts from the last known location instead of current directory.
1027 .B \-menu\-root <value> (OSD menu only)
1028 Specify the main menu.
1031 .B \-menu\-startup (OSD menu only)
1032 Display the main menu at MPlayer startup.
1035 .B \-mouse\-movements
1036 Permit MPlayer to receive pointer events reported by the video
1037 output driver (currently only derivatives of X11 are supported).
1038 Necessary to select the buttons in DVD menus.
1041 .B \-noar
1042 Turns off AppleIR remote support.
1045 .B \-noconsolecontrols
1046 Prevent MPlayer from reading key events from standard input.
1047 Useful when reading data from standard input.
1048 This is automatically enabled when \- is found on the command line.
1049 There are situations where you have to set it manually, e.g.\&
1050 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1051 in a playlist or intend to read from stdin later on via the loadfile or
1052 loadlist slave commands.
1055 .B \-nojoystick
1056 Turns off joystick support.
1059 .B \-nolirc
1060 Turns off LIRC support.
1063 .B \-nomouseinput
1064 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1065 on this option).
1068 .B \-rtc (RTC only)
1069 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1070 mechanism.
1071 This wakes up the process every 1/1024 seconds to check the current time.
1072 Useless with modern Linux kernels configured for desktop use as they already
1073 wake up the process with similar accuracy when using normal timed sleep.
1076 .B \-playing\-msg <string>
1077 Print out a string before starting playback.
1078 The following expansions are supported:
1079 .RSs
1080 .IPs ${NAME}
1081 Expand to the value of the property NAME.
1082 .IPs ?(NAME:TEXT)
1083 Expand TEXT only if the property NAME is available.
1084 .IPs ?(!NAME:TEXT)
1085 Expand TEXT only if the property NAME is not available.
1089 .B \-playlist <filename>
1090 Play files according to a playlist file (ASX, Winamp, SMIL, or
1091 one-file-per-line format).
1093 .I NOTE:
1094 This option is considered an entry so options found after it will apply
1095 only to the elements of this playlist.
1097 FIXME: This needs to be clarified and documented thoroughly.
1100 .B \-rtc\-device <device>
1101 Use the specified device for RTC timing.
1104 .B \-shuffle
1105 Play files in random order.
1108 .B \-skin <name> (GUI only)
1109 Loads a skin from the directory given as parameter below the default skin
1110 directories, /usr/\:local/\:share/\:mplayer/\:skins/\: and ~/.mplayer/\:skins/.
1111 .sp 1
1112 .I EXAMPLE:
1113 .PD 0
1114 .RSs
1115 .IPs "\-skin fittyfene"
1116 Tries /usr/\:local/\:share/\:mplayer/\:skins/\:fittyfene
1117 and afterwards ~/.mplayer/\:skins/\:fittyfene.
1119 .PD 1
1122 .B \-slave (also see \-input)
1123 Switches on slave mode, in which MPlayer works as a backend for other programs.
1124 Instead of intercepting keyboard events, MPlayer will read commands separated
1125 by a newline (\\n) from stdin.
1127 .I NOTE:
1128 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1129 for their description.
1132 .B \-softsleep
1133 Time frames by repeatedly checking the current time instead of asking the
1134 kernel to wake up MPlayer at the correct time.
1135 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1136 Comes at the price of higher CPU consumption.
1139 .B \-sstep <sec>
1140 Skip <sec> seconds after every frame.
1141 The normal framerate of the movie is kept, so playback is accelerated.
1142 Since MPlayer can only seek to the next keyframe this may be inexact.
1146 .SH "DEMUXER/STREAM OPTIONS"
1149 .B \-a52drc <level>
1150 Select the Dynamic Range Compression level for AC-3 audio streams.
1151 <level> is a float value ranging from 0 to 1, where 0 means no compression
1152 and 1 (which is the default) means full compression (make loud passages more
1153 silent and vice versa).
1154 This option only shows an effect if the AC-3 stream contains the required range
1155 compression information.
1158 .B \-aid <ID> (also see \-alang)
1159 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1160 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1161 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1162 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1163 (if present) with the chosen audio stream.
1166 .B \-alang <language code[,language code,...]> (also see \-aid)
1167 Specify a priority list of audio languages to use.
1168 Different container formats employ different language codes.
1169 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1170 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1171 MPlayer prints the available languages when run in verbose (\-v) mode.
1172 .sp 1
1173 .I EXAMPLE:
1174 .PD 0
1175 .RSs
1176 .IPs "mplayer dvd://1 \-alang hu,en"
1177 Chooses the Hungarian language track on a DVD and falls back on English if
1178 Hungarian is not available.
1179 .IPs "mplayer \-alang jpn example.mkv"
1180 Plays a Matroska file in Japanese.
1182 .PD 1
1185 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1186 Force audio demuxer type for \-audiofile.
1187 Use a '+' before the name to force it, this will skip some checks!
1188 Give the demuxer name as printed by \-audio\-demuxer help.
1189 For backward compatibility it also accepts the demuxer ID as defined in
1190 libmpdemux/\:demuxer.h.
1191 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1194 .B \-audiofile <filename>
1195 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1196 movie.
1199 .B \-audiofile\-cache <kBytes>
1200 Enables caching for the stream used by \-audiofile, using the specified
1201 amount of memory.
1204 .B \-reuse\-socket (udp:// only)
1205 Allows a socket to be reused by other processes as soon as it is closed.
1208 .B \-bandwidth <value> (network only)
1209 Specify the maximum bandwidth for network streaming (for servers that are
1210 able to send content in different bitrates).
1211 Useful if you want to watch live streamed media behind a slow connection.
1212 With Real RTSP streaming, it is also used to set the maximum delivery
1213 bandwidth allowing faster cache filling and stream dumping.
1216 .B \-cache <kBytes>
1217 This option specifies how much memory (in kBytes) to use when precaching a
1218 file or URL.
1219 Especially useful on slow media.
1222 .B \-nocache
1223 Turns off caching.
1226 .B \-cache\-min <percentage>
1227 Playback will start when the cache has been filled up to <percentage>
1228 of the total.
1231 .B \-cache\-seek\-min <percentage>
1232 If a seek is to be made to a position within <percentage> of the cache size
1233 from the current position, MPlayer will wait for the cache to be filled to
1234 this position rather than performing a stream seek (default: 50).
1237 .B \-cdda <option1:option2> (CDDA only)
1238 This option can be used to tune the CD Audio reading feature of MPlayer.
1239 .sp 1
1240 Available options are:
1241 .RSs
1242 .IPs speed=<value>
1243 Set CD spin speed.
1244 .IPs paranoia=<0\-2>
1245 Set paranoia level.
1246 Values other than 0 seem to break playback of anything but the first track.
1247 .RSss
1248 0: disable checking (default)
1250 1: overlap checking only
1252 2: full data correction and verification
1253 .REss
1254 .IPs generic-dev=<value>
1255 Use specified generic SCSI device.
1256 .IPs sector-size=<value>
1257 Set atomic read size.
1258 .IPs overlap=<value>
1259 Force minimum overlap search during verification to <value> sectors.
1260 .IPs toc-bias
1261 Assume that the beginning offset of track 1 as reported in the TOC will be
1262 addressed as LBA 0.
1263 Some Toshiba drives need this for getting track boundaries correct.
1264 .IPs toc-offset=<value>
1265 Add <value> sectors to the values reported when addressing tracks.
1266 May be negative.
1267 .IPs (no)skip
1268 (Never) accept imperfect data reconstruction.
1272 .B \-cdrom\-device <path to device>
1273 Specify the CD-ROM device (default: /dev/\:cdrom).
1276 .B \-channels <number> (also see \-af channels)
1277 Request the number of playback channels (default: 2).
1278 MPlayer asks the decoder to decode the audio into as many channels as
1279 specified.
1280 Then it is up to the decoder to fulfill the requirement.
1281 This is usually only important when playing videos with AC-3 audio (like DVDs).
1282 In that case liba52 does the decoding by default and correctly downmixes the
1283 audio into the requested number of channels.
1284 To directly control the number of output channels independently of how many
1285 channels are decoded, use the channels filter.
1287 .I NOTE:
1288 This option is honored by codecs (AC-3 only), filters (surround) and audio
1289 output drivers (OSS at least).
1290 .sp 1
1291 Available options are:
1292 .sp 1
1293 .PD 0
1294 .RSs
1295 .IPs 2
1296 stereo
1297 .IPs 4
1298 surround
1299 .IPs 6
1300 full 5.1
1302 .PD 1
1305 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1306 Specify which chapter to start playing at.
1307 Optionally specify which chapter to end playing at (default: 1).
1310 .B \-cookies (network only)
1311 Send cookies when making HTTP requests.
1314 .B \-cookies\-file <filename> (network only)
1315 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1316 and skip reading from default locations.
1317 The file is assumed to be in Netscape format.
1320 .B \-delay <sec>
1321 audio delay in seconds (positive or negative float value)
1323 Negative values delay the audio, and positive values delay the video.
1324 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1326 .I NOTE:
1327 When used with MEncoder, this is not guaranteed to work correctly
1328 with \-ovc copy; use \-audio\-delay instead.
1331 .B \-ignore\-start
1332 Ignore the specified starting time for streams in AVI files.
1333 In MPlayer, this nullifies stream delays in files encoded with
1334 the \-audio\-delay option.
1335 During encoding, this option prevents MEncoder from transferring
1336 original stream start times to the new file; the \-audio\-delay option is
1337 not affected.
1338 Note that MEncoder sometimes adjusts stream starting times
1339 automatically to compensate for anticipated decoding delays, so do not
1340 use this option for encoding without testing it first.
1343 .B \-demuxer <[+]name>
1344 Force demuxer type.
1345 Use a '+' before the name to force it, this will skip some checks!
1346 Give the demuxer name as printed by \-demuxer help.
1347 For backward compatibility it also accepts the demuxer ID as defined in
1348 libmpdemux/\:demuxer.h.
1351 .B \-dumpaudio (MPlayer only)
1352 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1353 in most other cases the resulting file will not be playable).
1354 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1355 on the command line only the last one will work.
1358 .B \-dumpfile <filename> (MPlayer only)
1359 Specify which file MPlayer should dump to.
1360 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream.
1363 .B \-dumpstream (MPlayer only)
1364 Dumps the raw stream to ./stream.dump.
1365 Useful when ripping from DVD or network.
1366 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1367 on the command line only the last one will work.
1370 .B \-dumpvideo (MPlayer only)
1371 Dump raw compressed video stream to ./stream.dump (not very usable).
1372 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1373 on the command line only the last one will work.
1376 .B \-dvbin <options> (DVB only)
1377 Pass the following parameters to the DVB input module, in order to override
1378 the default ones:
1379 .sp 1
1380 .PD 0
1381 .RSs
1382 .IPs card=<1\-4>
1383 Specifies using card number 1\-4 (default: 1).
1384 .IPs file=<filename>
1385 Instructs MPlayer to read the channels list from <filename>.
1386 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1387 or ~/.mplayer/\:channels.conf as a last resort.
1388 .IPs timeout=<1\-30>
1389 Maximum number of seconds to wait when trying to tune a
1390 frequency before giving up (default: 30).
1392 .PD 1
1395 .B \-dvd\-device <path to device> (DVD only)
1396 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1397 You can also specify a directory that contains files previously copied directly
1398 from a DVD (with e.g.\& vobcopy).
1401 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1402 Try to limit DVD speed (default: 0, no change).
1403 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1404 10800KB/s.
1405 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1406 quiet and fast enough.
1407 MPlayer resets the speed to the drive default value on close.
1408 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1409 10800KB/s.
1411 .I NOTE:
1412 You need write access to the DVD device to change the speed.
1415 .B \-dvdangle <angle ID> (DVD only)
1416 Some DVD discs contain scenes that can be viewed from multiple angles.
1417 Here you can tell MPlayer which angles to use (default: 1).
1420 .B \-edl <filename>
1421 Enables edit decision list (EDL) actions during playback.
1422 Video will be skipped over and audio will be muted and unmuted according to
1423 the entries in the given file.
1424 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1425 on how to use this.
1428 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1429 Stop at given time or byte position.
1431 .I NOTE:
1432 Byte position is enabled only for MEncoder and will not be accurate, as it can
1433 only stop at a frame boundary.
1434 When used in conjunction with \-ss option, \-endpos time will shift forward by
1435 seconds specified with \-ss.
1436 .sp 1
1437 .I EXAMPLE:
1438 .PD 0
1439 .RSs
1440 .IPs "\-endpos 56"
1441 Stop at 56 seconds.
1442 .IPs "\-endpos 01:10:00"
1443 Stop at 1 hour 10 minutes.
1444 .IPs "\-ss 10 \-endpos 56"
1445 Stop at 1 minute 6 seconds.
1446 .IPs "\-endpos 100mb"
1447 Encode only 100 MB.
1449 .PD 1
1452 .B \-forceidx
1453 Force index rebuilding.
1454 Useful for files with broken index (A/V desync, etc).
1455 This will enable seeking in files where seeking was not possible.
1456 You can fix the index permanently with MEncoder (see the documentation).
1458 .I NOTE:
1459 This option only works if the underlying media supports seeking
1460 (i.e.\& not with stdin, pipe, etc).
1463 .B \-fps <float value>
1464 Override video framerate.
1465 Useful if the original value is wrong or missing.
1468 .B \-frames <number>
1469 Play/\:convert only first <number> frames, then quit.
1472 .B \-hr\-mp3\-seek (MP3 only)
1473 Hi-res MP3 seeking.
1474 Enabled when playing from an external MP3 file, as we need to seek
1475 to the very exact position to keep A/V sync.
1476 Can be slow especially when seeking backwards since it has to rewind
1477 to the beginning to find an exact frame position.
1480 .B \-idx (also see \-forceidx)
1481 Rebuilds index of files if no index was found, allowing seeking.
1482 Useful with broken/\:incomplete downloads, or badly created files.
1484 .I NOTE:
1485 This option only works if the underlying media supports seeking
1486 (i.e.\& not with stdin, pipe, etc).
1489 .B \-noidx
1490 Skip rebuilding index file.
1491 MEncoder skips writing the index with this option.
1494 .B \-ipv4\-only\-proxy (network only)
1495 Skip the proxy for IPv6 addresses.
1496 It will still be used for IPv4 connections.
1499 .B \-loadidx <index file>
1500 The file from which to read the video index data saved by \-saveidx.
1501 This index will be used for seeking, overriding any index data
1502 contained in the AVI itself.
1503 MPlayer will not prevent you from loading an index file generated
1504 from a different AVI, but this is sure to cause unfavorable results.
1506 .I NOTE:
1507 This option is obsolete now that MPlayer has OpenDML support.
1510 .B \-mc <seconds/frame>
1511 maximum A-V sync correction per frame (in seconds)
1514 .B \-mf <option1:option2:...>
1515 Used when decoding from multiple PNG or JPEG files.
1516 .sp 1
1517 Available options are:
1518 .sp 1
1519 .PD 0
1520 .RSs
1521 .IPs w=<value>
1522 input file width (default: autodetect)
1523 .IPs h=<value>
1524 input file height (default: autodetect)
1525 .IPs fps=<value>
1526 output fps (default: 25)
1527 .IPs type=<value>
1528 input file type (available: jpeg, png, tga, sgi)
1530 .PD 1
1533 .B \-ni (AVI only)
1534 Force usage of non-interleaved AVI parser (fixes playback
1535 of some bad AVI files).
1538 .B \-nobps (AVI only)
1539 Do not use average byte/\:second value for A-V sync.
1540 Helps with some AVI files with broken header.
1543 .B \-noextbased
1544 Disables extension-based demuxer selection.
1545 By default, when the file type (demuxer) cannot be detected reliably
1546 (the file has no header or it is not reliable enough), the filename
1547 extension is used to select the demuxer.
1548 Always falls back on content-based demuxer selection.
1551 .B \-passwd <password> (also see \-user) (network only)
1552 Specify password for HTTP authentication.
1555 .B \-prefer\-ipv4 (network only)
1556 Use IPv4 on network connections.
1557 Falls back on IPv6 automatically.
1560 .B \-prefer\-ipv6 (IPv6 network only)
1561 Use IPv6 on network connections.
1562 Falls back on IPv4 automatically.
1565 .B \-psprobe <byte position>
1566 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1567 how many bytes in the stream you want MPlayer to scan in order to identify
1568 the video codec used.
1569 This option is needed to play EVO or VDR files containing H.264 streams.
1572 .B \-pvr <option1:option2:...> (PVR only)
1573 This option tunes various encoding properties of the PVR capture module.
1574 It has to be used with any hardware MPEG encoder based card supported by the
1575 V4L2 driver.
1576 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1577 cards are known as PVR capture cards.
1578 Be aware that only Linux 2.6.18 kernel
1579 and above is able to handle MPEG stream through V4L2 layer.
1580 For hardware capture of an MPEG stream and watching it with
1581 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1582 .sp 1
1583 Available options are:
1584 .RSs
1585 .IPs aspect=<0\-3>
1586 Specify input aspect ratio:
1587 .RSss
1588 0: 1:1
1590 1: 4:3 (default)
1592 2: 16:9
1594 3: 2.21:1
1595 .REss
1596 .IPs arate=<32000\-48000>
1597 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1598 and 48000 Hz).
1599 .IPs alayer=<1\-3>
1600 Specify MPEG audio layer encoding (default: 2).
1601 .IPs abitrate=<32\-448>
1602 Specify audio encoding bitrate in kbps (default: 384).
1603 .IPs amode=<value>
1604 Specify audio encoding mode.
1605 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1606 .IPs vbitrate=<value>
1607 Specify average video bitrate encoding in Mbps (default: 6).
1608 .IPs vmode=<value>
1609 Specify video encoding mode:
1610 .RSss
1611 vbr: Variable BitRate (default)
1613 cbr: Constant BitRate
1614 .REss
1615 .IPs vpeak=<value>
1616 Specify peak video bitrate encoding in Mbps
1617 (only useful for VBR encoding, default: 9.6).
1618 .IPs fmt=<value>
1619 Choose an MPEG format for encoding:
1620 .RSss
1621 ps:    MPEG-2 Program Stream (default)
1623 ts:    MPEG-2 Transport Stream
1625 mpeg1: MPEG-1 System Stream
1627 vcd:   Video CD compatible stream
1629 svcd:  Super Video CD compatible stream
1631 dvd:   DVD compatible stream
1632 .REss
1634 .PD 1
1637 .B \-radio <option1:option2:...> (radio only)
1638 These options set various parameters of the radio capture module.
1639 For listening to radio with MPlayer use 'radio://<frequency>'
1640 (if channels option is not given) or 'radio://<channel_number>'
1641 (if channels option is given) as a movie URL.
1642 You can see allowed frequency range by running MPlayer with '\-v'.
1643 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1644 If the capture keyword is not given you can listen to radio
1645 using the line-in cable only.
1646 Using capture to listen is not recommended due to synchronization
1647 problems, which makes this process uncomfortable.
1648 .sp 1
1649 Available options are:
1650 .RSs
1651 .IPs device=<value>
1652 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1653 .IPs driver=<value>
1654 Radio driver to use (default: v4l2 if available, otherwise v4l).
1655 Currently, v4l and v4l2 drivers are supported.
1656 .IPs volume=<0..100>
1657 sound volume for radio device (default 100)
1658 .IPs "freq_min=<value> (*BSD BT848 only)"
1659 minimum allowed frequency (default: 87.50)
1660 .IPs "freq_max=<value> (*BSD BT848 only)"
1661 maximum allowed frequency (default: 108.00)
1662 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1663 Set channel list.
1664 Use _ for spaces in names (or play with quoting ;-).
1665 The channel names will then be written using OSD and the slave commands
1666 radio_step_channel and radio_set_channel will be usable for
1667 a remote control (see LIRC).
1668 If given, number in movie URL will be treated as channel position in
1669 channel list.
1671 .I EXAMPLE:
1672 radio://1, radio://104.4, radio_set_channel 1
1673 .IPs "adevice=<value> (radio capture only)"
1674 Name of device to capture sound from.
1675 Without such a name capture will be disabled,
1676 even if the capture keyword appears in the URL.
1677 For ALSA devices use it in the form hw=<card>.<device>.
1678 If the device name contains a '=', the module will use
1679 ALSA to capture, otherwise OSS.
1680 .IPs "arate=<value> (radio capture only)"
1681 Rate in samples per second (default: 44100).
1683 .I NOTE:
1684 When using audio capture set also \-rawaudio rate=<value> option
1685 with the same value as arate.
1686 If you have problems with sound speed (runs too quickly), try to play
1687 with different rate values (e.g.\& 48000,44100,32000,...).
1688 .IPs "achannels=<value> (radio capture only)"
1689 Number of audio channels to capture.
1693 .B \-rawaudio <option1:option2:...>
1694 This option lets you play raw audio files.
1695 You have to use \-demuxer rawaudio as well.
1696 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1697 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1698 .sp 1
1699 Available options are:
1700 .sp 1
1701 .PD 0
1702 .RSs
1703 .IPs channels=<value>
1704 number of channels
1705 .IPs rate=<value>
1706 rate in samples per second
1707 .IPs samplesize=<value>
1708 sample size in bytes
1709 .IPs bitrate=<value>
1710 bitrate for rawaudio files
1711 .IPs format=<value>
1712 fourcc in hex
1714 .PD 1
1717 .B \-rawvideo <option1:option2:...>
1718 This option lets you play raw video files.
1719 You have to use \-demuxer rawvideo as well.
1720 .sp 1
1721 Available options are:
1722 .sp 1
1723 .PD 0
1724 .RSs
1725 .IPs fps=<value>
1726 rate in frames per second (default: 25.0)
1727 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1728 set standard image size
1729 .IPs w=<value>
1730 image width in pixels
1731 .IPs h=<value>
1732 image height in pixels
1733 .IPs i420|yv12|yuy2|y8
1734 set colorspace
1735 .IPs format=<value>
1736 colorspace (fourcc) in hex or string constant.
1737 Use \-rawvideo format=help for a list of possible strings.
1738 .IPs size=<value>
1739 frame size in Bytes
1740 .REss
1741 .sp 1
1743 .I EXAMPLE:
1745 .PD 0
1746 .RSs
1747 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1748 Play the famous "foreman" sample video.
1749 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1750 Play a raw YUV sample.
1752 .PD 1
1755 .B \-rtsp\-port
1756 Used with 'rtsp://' URLs to force the client's port number.
1757 This option may be useful if you are behind a router and want to forward
1758 the RTSP stream from the server to a specific client.
1761 .B \-rtsp\-destination
1762 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1763 This option may be useful with some RTSP server which do not
1764 send RTP packets to the right interface.
1765 If the connection to the RTSP server fails, use \-v to see
1766 which IP address MPlayer tries to bind to and try to force
1767 it to one assigned to your computer instead.
1770 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1771 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1772 packets be streamed over TCP (using the same TCP connection as RTSP).
1773 This option may be useful if you have a broken internet connection that does
1774 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1777 .B \-saveidx <filename>
1778 Force index rebuilding and dump the index to <filename>.
1779 Currently this only works with AVI files.
1781 .I NOTE:
1782 This option is obsolete now that MPlayer has OpenDML support.
1785 .B \-sb <byte position> (also see \-ss)
1786 Seek to byte position.
1787 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1790 .B \-speed <0.01\-100>
1791 Slow down or speed up playback by the factor given as parameter.
1792 Not guaranteed to work correctly with \-oac copy.
1795 .B \-srate <Hz>
1796 Selects the output sample rate to be used
1797 (of course sound cards have limits on this).
1798 If the sample frequency selected is different from that
1799 of the current media, the resample or lavcresample audio filter will be inserted
1800 into the audio filter layer to compensate for the difference.
1801 The type of resampling can be controlled by the \-af\-adv option.
1802 The default is fast resampling that may cause distortion.
1805 .B \-ss <time> (also see \-sb)
1806 Seek to given time position.
1807 .sp 1
1808 .I EXAMPLE:
1809 .PD 0
1810 .RSs
1811 .IPs "\-ss 56"
1812 Seeks to 56 seconds.
1813 .IPs "\-ss 01:10:00"
1814 Seeks to 1 hour 10 min.
1816 .PD 1
1819 .B \-tskeepbroken
1820 Tells MPlayer not to discard TS packets reported as broken in the stream.
1821 Sometimes needed to play corrupted MPEG-TS files.
1824 .B \-tsprobe <byte position>
1825 When playing an MPEG-TS stream, this option lets you specify how many
1826 bytes in the stream you want MPlayer to search for the desired
1827 audio and video IDs.
1830 .B \-tsprog <1\-65534>
1831 When playing an MPEG-TS stream, you can specify with this option which
1832 program (if present) you want to play.
1833 Can be used with \-vid and \-aid.
1836 .B \-tv <option1:option2:...> (TV/\:PVR only)
1837 This option tunes various properties of the TV capture module.
1838 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1839 or even 'tv://<channel_name> (see option channels for channel_name below)
1840 as a movie URL.
1841 You can also use 'tv:///<input_id>' to start watching a
1842 movie from a composite or S-Video input (see option input for details).
1843 .sp 1
1844 Available options are:
1845 .RSs
1846 .IPs noaudio
1847 no sound
1848 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1849 If signal strength reported by device is less than this value,
1850 audio and video will be muted.
1851 In most cases automute=100 will be enough.
1852 Default is 0 (automute disabled).
1853 .IPs driver=<value>
1854 See \-tv driver=help for a list of compiled-in TV input drivers.
1855 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1856 .IPs device=<value>
1857 Specify TV device (default: /dev/\:video0).
1858 .I NOTE:
1859 For the bsdbt848 driver you can provide both bktr and tuner device
1860 names separating them with a comma, tuner after
1861 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1862 .IPs input=<value>
1863 Specify input (default: 0 (TV), see console output for available inputs).
1864 .IPs freq=<value>
1865 Specify the frequency to set the tuner to (e.g.\& 511.250).
1866 Not compatible with the channels parameter.
1867 .IPs outfmt=<value>
1868 Specify the output format of the tuner with a preset value supported by the
1869 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1870 arbitrary format given as hex value.
1871 Try outfmt=help for a list of all available formats.
1872 .IPs width=<value>
1873 output window width
1874 .IPs height=<value>
1875 output window height
1876 .IPs fps=<value>
1877 framerate at which to capture video (frames per second)
1878 .IPs buffersize=<value>
1879 maximum size of the capture buffer in megabytes (default: dynamical)
1880 .IPs norm=<value>
1881 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1882 For v4l2, see the console output for a list of all available norms,
1883 also see the normid option below.
1884 .IPs "normid=<value> (v4l2 only)"
1885 Sets the TV norm to the given numeric ID.
1886 The TV norm depends on the capture card.
1887 See the console output for a list of available TV norms.
1888 .IPs channel=<value>
1889 Set tuner to <value> channel.
1890 .IPs chanlist=<value>
1891 available: europe-east, europe-west, us-bcast, us-cable, etc
1892 .IPs channels=<channel>\-<name>[=<norm>],<channel>\-<name>[=<norm>],...
1893 Set names for channels.
1894 .I NOTE:
1895 If <channel> is an integer greater than 1000, it will be treated as frequency (in kHz)
1896 rather than channel name from frequency table.
1898 Use _ for spaces in names (or play with quoting ;-).
1899 The channel names will then be written using OSD, and the slave commands
1900 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1901 a remote control (see LIRC).
1902 Not compatible with the frequency parameter.
1904 .I NOTE:
1905 The channel number will then be the position in the 'channels' list,
1906 beginning with 1.
1908 .I EXAMPLE:
1909 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1910 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1911 Set the image equalizer on the card.
1912 .IPs audiorate=<value>
1913 Set audio capture bitrate.
1914 .IPs forceaudio
1915 Capture audio even if there are no audio sources reported by v4l.
1916 .IPs "alsa\ "
1917 Capture from ALSA.
1918 .IPs amode=<0\-3>
1919 Choose an audio mode:
1920 .RSss
1921 0: mono
1923 1: stereo
1925 2: language 1
1927 3: language 2
1928 .REss
1929 .IPs forcechan=<1\-2>
1930 By default, the count of recorded audio channels is determined automatically
1931 by querying the audio mode from the TV card.
1932 This option allows forcing stereo/\:mono recording regardless of the amode
1933 option and the values returned by v4l.
1934 This can be used for troubleshooting when the TV card is unable to report the
1935 current audio mode.
1936 .IPs adevice=<value>
1937 Set an audio device.
1938 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1939 You must replace any ':' by a '.' in the hardware ID for ALSA.
1940 .IPs audioid=<value>
1941 Choose an audio output of the capture card, if it has more than one.
1942 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1943 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1944 These options set parameters of the mixer on the video capture card.
1945 They will have no effect, if your card does not have one.
1946 For v4l2 50 maps to the default value of the
1947 control, as reported by the driver.
1948 .IPs "gain=<0\-100> (v4l2)"
1949 Set gain control for video devices (usually webcams) to the desired
1950 value and switch off automatic control.
1951 A value of 0 enables automatic control.
1952 If this option is omitted, gain control will not be modified.
1953 .IPs immediatemode=<bool>
1954 A value of 0 means capture and buffer audio and video together
1955 (default for MEncoder).
1956 A value of 1 (default for MPlayer) means to do video capture only and let the
1957 audio go through a loopback cable from the TV card to the sound card.
1958 .IPs mjpeg
1959 Use hardware MJPEG compression (if the card supports it).
1960 When using this option, you do not need to specify the width and height
1961 of the output window, because MPlayer will determine it automatically
1962 from the decimation value (see below).
1963 .IPs decimation=<1|2|4>
1964 choose the size of the picture that will be compressed by hardware
1965 MJPEG compression:
1966 .RSss
1967 1: full size
1968     704x576    PAL
1969     704x480    NTSC
1971 2: medium size
1972     352x288    PAL
1973     352x240    NTSC
1975 4: small size
1976     176x144    PAL
1977     176x120    NTSC
1978 .REss
1979 .IPs quality=<0\-100>
1980 Choose the quality of the JPEG compression
1981 (< 60 recommended for full size).
1982 .IPs tdevice=<value>
1983 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
1984 .IPs tformat=<format>
1985 Specify TV teletext display format (default: 0):
1986 .RSss
1987 0: opaque
1989 1: transparent
1991 2: opaque with inverted colors
1993 3: transparent with inverted colors
1994 .REss
1995 .IPs tpage=<100\-899>
1996 Specify initial TV teletext page number (default: 100).
1997 .IPs tlang=<\-1\-127>
1998 Specify default teletext language code (default: 0), which will be used
1999 as primary language until a type 28 packet is received.
2000 Useful when the teletext system uses a non-latin character set, but language
2001 codes are not transmitted via teletext type 28 packets for some reason.
2002 To see a list of supported language codes set this option to \-1.
2003 .IPs "hidden_video_renderer (dshow only)"
2004 Terminate stream with video renderer instead of Null renderer (default: off).
2005 Will help if video freezes but audio does not.
2006 .I NOTE:
2007 May not work with \-vo directx and \-vf crop combination.
2008 .IPs "hidden_vp_renderer (dshow only)"
2009 Terminate VideoPort pin stream with video renderer
2010 instead of removing it from the graph (default: off).
2011 Useful if your card has a VideoPort pin and video is choppy.
2012 .I NOTE:
2013 May not work with \-vo directx and \-vf crop combination.
2014 .IPs "system_clock (dshow only)"
2015 Use the system clock as sync source instead of the default graph clock
2016 (usually the clock from one of the live sources in graph).
2017 .IPs "normalize_audio_chunks (dshow only)"
2018 Create audio chunks with a time length equal to
2019 video frame time length (default: off).
2020 Some audio cards create audio chunks about 0.5s in size, resulting in
2021 choppy video when using immediatemode=0.
2025 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
2026 Tune the TV channel scanner.
2027 MPlayer will also print value for "-tv channels=" option,
2028 including existing and just found channels.
2029 .sp 1
2030 Available suboptions are:
2031 .RSs
2032 .IPs autostart
2033 Begin channel scanning immediately after startup (default: disabled).
2034 .IPs period=<0.1\-2.0>
2035 Specify delay in seconds before switching to next channel (default: 0.5).
2036 Lower values will cause faster scanning, but can detect
2037 inactive TV channels as active.
2038 .IPs threshold=<1\-100>
2039 Threshold value for the signal strength (in percent), as reported
2040 by the device (default: 50).
2041 A signal strength higher than this value will indicate that the
2042 currently scanning channel is active.
2046 .B \-user <username> (also see \-passwd) (network only)
2047 Specify username for HTTP authentication.
2050 .B \-user\-agent <string>
2051 Use <string> as user agent for HTTP streaming.
2054 .B \-vid <ID>
2055 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2056 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
2057 (if present) with the chosen video stream.
2060 .B \-vivo <suboption> (DEBUG CODE)
2061 Force audio parameters for the VIVO demuxer (for debugging purposes).
2062 FIXME: Document this.
2066 .SH "OSD/SUBTITLE OPTIONS"
2067 .I NOTE:
2068 Also see \-vf expand.
2071 .B \-ass (FreeType only)
2072 Turn on SSA/ASS subtitle rendering.
2073 With this option, libass will be used for SSA/ASS
2074 external subtitles and Matroska tracks.
2075 You may also want to use \-embeddedfonts.
2077 .I NOTE:
2078 When fontconfig is compiled-in, \-ass turns on \-fontconfig
2079 unless explicitly turned off with \-nofontconfig.
2082 .B \-ass\-border\-color <value>
2083 Sets the border (outline) color for text subtitles.
2084 The color format is RRGGBBAA.
2087 .B \-ass\-bottom\-margin <value>
2088 Adds a black band at the bottom of the frame.
2089 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2092 .B \-ass\-color <value>
2093 Sets the color for text subtitles.
2094 The color format is RRGGBBAA.
2097 .B \-ass\-font\-scale <value>
2098 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2101 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2102 Override some style or script info parameters.
2104 .I EXAMPLE:
2105 .PD 0
2106 .RSs
2107 \-ass\-force\-style FontName=Arial,Default.Bold=1
2109 \-ass\-force\-style PlayResY=768
2111 .PD 1
2114 .B \-ass\-hinting <type>
2115 Set hinting type.
2116 <type> can be:
2117 .PD 0
2118 .RSs
2119 .IPs 0
2120 no hinting
2121 .IPs 1
2122 FreeType autohinter, light mode
2123 .IPs 2
2124 FreeType autohinter, normal mode
2125 .IPs 3
2126 font native hinter
2127 .IPs "0-3 + 4"
2128 The same, but hinting will only be performed if the OSD is rendered at
2129 screen resolution and will therefore not be scaled.
2131 .RSs
2132 The default value is 7 (use native hinter for unscaled OSD and no hinting otherwise).
2134 .PD 1
2137 .B \-ass\-line\-spacing <value>
2138 Set line spacing value for SSA/ASS renderer.
2141 .B \-ass\-styles <filename>
2142 Load all SSA/ASS styles found in the specified file and use them for
2143 rendering text subtitles.
2144 The syntax of the file is exactly like the
2145 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2148 .B \-ass\-top\-margin <value>
2149 Adds a black band at the top of the frame.
2150 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2153 .B \-ass\-use\-margins
2154 Enables placing toptitles and subtitles in black borders when they
2155 are available.
2158 .B \-dumpjacosub (MPlayer only)
2159 Convert the given subtitle (specified with the \-sub option) to the time-based
2160 JACOsub subtitle format.
2161 Creates a dumpsub.js file in the current directory.
2164 .B \-dumpmicrodvdsub (MPlayer only)
2165 Convert the given subtitle (specified with the \-sub option) to the
2166 MicroDVD subtitle format.
2167 Creates a dumpsub.sub file in the current directory.
2170 .B \-dumpmpsub (MPlayer only)
2171 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2172 subtitle format, MPsub.
2173 Creates a dump.mpsub file in the current directory.
2176 .B \-dumpsami (MPlayer only)
2177 Convert the given subtitle (specified with the \-sub option) to the time-based
2178 SAMI subtitle format.
2179 Creates a dumpsub.smi file in the current directory.
2182 .B \-dumpsrtsub (MPlayer only)
2183 Convert the given subtitle (specified with the \-sub option) to the time-based
2184 SubViewer (SRT) subtitle format.
2185 Creates a dumpsub.srt file in the current directory.
2187 .I NOTE:
2188 Some broken hardware players choke on SRT subtitle files with Unix
2189 line endings.
2190 If you are unlucky enough to have such a box, pass your subtitle
2191 files through unix2dos or a similar program to replace Unix line
2192 endings with DOS/Windows line endings.
2195 .B \-dumpsub (MPlayer only) (BETA CODE)
2196 Dumps the subtitle substream from VOB streams.
2197 Also see the \-dump*sub and \-vobsubout* options.
2200 .B \-embeddedfonts (FreeType only)
2201 Enables extraction of Matroska embedded fonts (default: disabled).
2202 These fonts can be used for SSA/ASS subtitle
2203 rendering (\-ass option).
2204 Font files are created in the ~/.mplayer/\:fonts directory.
2206 .I NOTE:
2207 With FontConfig 2.4.2 or newer, embedded fonts are opened directly from memory,
2208 and this option is enabled by default.
2211 .B \-ffactor <number>
2212 Resample the font alphamap.
2213 Can be:
2214 .PD 0
2215 .RSs
2216 .IPs 0
2217 plain white fonts
2218 .IPs 0.75
2219 very narrow black outline (default)
2220 .IPs 1
2221 narrow black outline
2222 .IPs 10
2223 bold black outline
2225 .PD 1
2228 .B \-flip\-hebrew (FriBiDi only)
2229 Turns on flipping subtitles using FriBiDi.
2232 .B \-noflip\-hebrew\-commas
2233 Change FriBiDi's assumptions about the placements of commas in subtitles.
2234 Use this if commas in subtitles are shown at the start of a sentence
2235 instead of at the end.
2238 .B \-font <path to font.desc file>
2239 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2240 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2241 ~/.mplayer/\:subfont.ttf).
2243 .I NOTE:
2244 With FreeType, this option determines the path to the text font file.
2245 With fontconfig, this option determines the fontconfig font name.
2246 .sp 1
2247 .I EXAMPLE:
2248 .PD 0
2249 .RSs
2250 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2252 \-font ~/\:.mplayer/\:arialuni.ttf
2254 \-font 'Bitstream Vera Sans'
2256 .PD 1
2259 .B \-fontconfig (fontconfig only)
2260 Enables the usage of fontconfig managed fonts.
2262 .I NOTE:
2263 \-ass automatically turns this on unless explicitly overridden
2264 with \-nofontconfig.
2267 .B \-forcedsubsonly
2268 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2269 \-slang.
2272 .B \-fribidi\-charset <charset name> (FriBiDi only)
2273 Specifies the character set that will be passed to FriBiDi when
2274 decoding non-UTF-8 subtitles (default: ISO8859-8).
2277 .B \-ifo <VOBsub IFO file>
2278 Indicate the file that will be used to load palette and frame size for VOBsub
2279 subtitles.
2282 .B \-noautosub
2283 Turns off automatic subtitle file loading.
2286 .B \-osd\-duration <time>
2287 Set the duration of the OSD messages in ms (default: 1000).
2290 .B \-osdlevel <0\-3> (MPlayer only)
2291 Specifies which mode the OSD should start in.
2292 .PD 0
2293 .RSs
2294 .IPs 0
2295 subtitles only
2296 .IPs 1
2297 volume + seek (default)
2298 .IPs 2
2299 volume + seek + timer + percentage
2300 .IPs 3
2301 volume + seek + timer + percentage + total time
2303 .PD 1
2306 .B \-overlapsub
2307 Allows the next subtitle to be displayed while the current one is
2308 still visible (default is to enable the support only for specific
2309 formats).
2312 .B \-sid <ID> (also see \-slang, \-vobsubid)
2313 Display the subtitle stream specified by <ID> (0\-31).
2314 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2315 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
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 <filename> (FreeType only)
2493 Sets the subtitle 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).
2653 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2654 Audio output drivers are interfaces to different audio output facilities.
2655 The syntax is:
2658 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2659 Specify a priority list of audio output drivers to be used.
2661 If the list has a trailing ',' MPlayer will fall back on drivers not
2662 contained in the list.
2663 Suboptions are optional and can mostly be omitted.
2665 .I NOTE:
2666 See \-ao help for a list of compiled-in audio output drivers.
2667 .sp 1
2668 .I EXAMPLE:
2669 .PD 0
2670 .RSs
2671 .IPs "\-ao alsa,oss,"
2672 Try the ALSA driver, then the OSS driver, then others.
2673 .IPs "\-ao alsa:noblock:device=hw=0.3"
2674 Sets noblock-mode and the device-name as first card, fourth device.
2676 .PD 1
2677 .sp 1
2678 Available audio output drivers are:
2681 .B "alsa\ \ \ "
2682 ALSA 0.9/1.x audio output driver
2683 .PD 0
2684 .RSs
2685 .IPs noblock
2686 Sets noblock-mode.
2687 .IPs device=<device>
2688 Sets the device name.
2689 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2690 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2691 you really know how to set it correctly.
2693 .PD 1
2696 .B "alsa5\ \ "
2697 ALSA 0.5 audio output driver
2700 .B "oss\ \ \ \ "
2701 OSS audio output driver
2702 .PD 0
2703 .RSs
2704 .IPs <dsp-device>
2705 Sets the audio output device (default: /dev/\:dsp).
2706 .IPs <mixer-device>
2707 Sets the audio mixer device (default: /dev/\:mixer).
2708 .IPs <mixer-channel>
2709 Sets the audio mixer channel (default: pcm).
2711 .PD 1
2714 .B sdl (SDL only)
2715 highly platform independent SDL (Simple Directmedia Layer) library
2716 audio output driver
2717 .PD 0
2718 .RSs
2719 .IPs <driver>
2720 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2722 .PD 1
2725 .B "arts\ \ \ "
2726 audio output through the aRts daemon
2729 .B "esd\ \ \ \ "
2730 audio output through the ESD daemon
2731 .PD 0
2732 .RSs
2733 .IPs <server>
2734 Explicitly choose the ESD server to use (default: localhost).
2736 .PD 1
2739 .B "jack\ \ \ \ "
2740 audio output through JACK (Jack Audio Connection Kit)
2741 .PD 0
2742 .RSs
2743 .IPs port=<name>
2744 Connects to the ports with the given name (default: physical ports).
2745 .IPs name=<client name>
2746 Client name that is passed to JACK (default: MPlayer [<PID>]).
2747 Useful if you want to have certain connections established automatically.
2748 .IPs (no)estimate
2749 Estimate the audio delay, supposed to make the video playback smoother
2750 (default: enabled).
2752 .PD 1
2755 .B "nas\ \ \ \ "
2756 audio output through NAS
2759 .B macosx (Mac OS X only)
2760 native Mac OS X audio output driver
2763 .B "openal\ "
2764 Experimental OpenAL audio output driver
2767 .B "pulse\ \ "
2768 PulseAudio audio output driver
2769 .PD 0
2770 .RSs
2771 .IPs "[<host>][:<output sink>]"
2772 Specify the host and optionally output sink to use.
2773 An empty <host> string uses a local connection, "localhost"
2774 uses network transfer (most likely not what you want).
2776 .PD 1
2779 .B sgi (SGI only)
2780 native SGI audio output driver
2781 .PD 0
2782 .RSs
2783 .IPs "<output device name>"
2784 Explicitly choose the output device/\:interface to use
2785 (default: system-wide default).
2786 For example, 'Analog Out' or 'Digital Out'.
2788 .PD 1
2791 .B sun (Sun only)
2792 native Sun audio output driver
2793 .PD 0
2794 .RSs
2795 .IPs <device>
2796 Explicitly choose the audio device to use (default: /dev/\:audio).
2798 .PD 1
2801 .B win32 (Windows only)
2802 native Windows waveout audio output driver
2805 .B dsound (Windows only)
2806 DirectX DirectSound audio output driver
2807 .PD 0
2808 .RSs
2809 .IPs device=<devicenum>
2810 Sets the device number to use.
2811 Playing a file with \-v will show a list of available devices.
2813 .PD 1
2816 .B dxr2 (also see \-dxr2) (DXR2 only)
2817 Creative DXR2 specific output driver
2820 .B ivtv (IVTV only)
2821 IVTV specific MPEG audio output driver.
2822 Works with \-ac hwmpa only.
2825 .B v4l2 (requires Linux 2.6.22+ kernel)
2826 Audio output driver for V4L2 cards with hardware MPEG decoder.
2829 .B mpegpes (DVB only)
2830 Audio output driver for DVB cards that writes the output to an MPEG-PES
2831 file if no DVB card is installed.
2832 .PD 0
2833 .RSs
2834 .IPs card=<1\-4>
2835 DVB card to use if more than one card is present.
2836 If not specified mplayer will search the first usable card.
2837 .IPs file=<filename>
2838 output filename
2840 .PD 1
2843 .B "null\ \ \ "
2844 Produces no audio output but maintains video playback speed.
2845 Use \-nosound for benchmarking.
2848 .B "pcm\ \ \ \ "
2849 raw PCM/wave file writer audio output
2850 .PD 0
2851 .RSs
2852 .IPs (no)waveheader
2853 Include or do not include the wave header (default: included).
2854 When not included, raw PCM will be generated.
2855 .IPs file=<filename>
2856 Write the sound to <filename> instead of the default
2857 audiodump.wav.
2858 If nowaveheader is specified, the default is audiodump.pcm.
2859 .IPs "fast\ "
2860 Try to dump faster than realtime.
2861 Make sure the output does not get truncated (usually with
2862 "Too many video packets in buffer" message).
2863 It is normal that you get a "Your system is too SLOW to play this!" message.
2865 .PD 1
2868 .B "plugin\ \ "
2869 plugin audio output driver
2873 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
2876 .B \-adapter <value>
2877 Set the graphics card that will receive the image.
2878 You can get a list of available cards when you run this option with \-v.
2879 Currently only works with the directx video output driver.
2882 .B \-bpp <depth>
2883 Override the autodetected color depth.
2884 Only supported by the fbdev, dga, svga, vesa video output drivers.
2887 .B \-border
2888 Play movie with window border and decorations.
2889 Since this is on by default, use \-noborder to disable the standard window
2890 decorations.
2893 .B \-brightness <\-100\-100>
2894 Adjust the brightness of the video signal (default: 0).
2895 Not supported by all video output drivers.
2898 .B \-contrast <\-100\-100>
2899 Adjust the contrast of the video signal (default: 0).
2900 Not supported by all video output drivers.
2903 .B \-display <name> (X11 only)
2904 Specify the hostname and display number of the X server you want to display
2906 .sp 1
2907 .I EXAMPLE:
2908 .PD 0
2909 .RSs
2910 \-display xtest.localdomain:0
2912 .PD 1
2915 .B "\-dr \ \ \ "
2916 Turns on direct rendering (not supported by all codecs and video outputs)
2918 .I WARNING:
2919 May cause OSD/SUB corruption!
2922 .B \-dxr2 <option1:option2:...>
2923 This option is used to control the dxr2 video output driver.
2924 .RSs
2925 .IPs ar-mode=<value>
2926 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
2927 .IPs iec958-encoded
2928 Set iec958 output mode to encoded.
2929 .IPs iec958-decoded
2930 Set iec958 output mode to decoded (default).
2931 .IPs macrovision=<value>
2932 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
2933 3 = agc 4 colorstripe)
2934 .IPs "mute\ "
2935 mute sound output
2936 .IPs unmute
2937 unmute sound output
2938 .IPs ucode=<value>
2939 path to the microcode
2942 .sp 1
2943 .I TV output
2945 .RSs
2946 .IPs 75ire
2947 enable 7.5 IRE output mode
2948 .IPs no75ire
2949 disable 7.5 IRE output mode (default)
2950 .IPs "bw\ \ \ "
2951 b/w TV output
2952 .IPs color
2953 color TV output (default)
2954 .IPs interlaced
2955 interlaced TV output (default)
2956 .IPs nointerlaced
2957 disable interlaced TV output
2958 .IPs norm=<value>
2959 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
2960 .IPs square-pixel
2961 set pixel mode to square
2962 .IPs ccir601-pixel
2963 set pixel mode to ccir601
2966 .sp 1
2967 .I overlay
2969 .RSs
2970 .IPs cr-left=<0\-500>
2971 Set the left cropping value (default: 50).
2972 .IPs cr-right=<0\-500>
2973 Set the right cropping value (default: 300).
2974 .IPs cr-top=<0\-500>
2975 Set the top cropping value (default: 0).
2976 .IPs cr-bottom=<0\-500>
2977 Set the bottom cropping value (default: 0).
2978 .IPs ck-[r|g|b]=<0\-255>
2979 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
2980 .IPs ck-[r|g|b]min=<0\-255>
2981 minimum value for the respective color key
2982 .IPs ck-[r|g|b]max=<0\-255>
2983 maximum value for the respective color key
2984 .IPs ignore-cache
2985 Ignore cached overlay settings.
2986 .IPs update-cache
2987 Update cached overlay settings.
2988 .IPs ol-osd
2989 Enable overlay onscreen display.
2990 .IPs nool-osd
2991 Disable overlay onscreen display (default).
2992 .IPs ol[h|w|x|y]-cor=<\-20\-20>
2993 Adjust the overlay size (h,w) and position (x,y) in case it does not
2994 match the window perfectly (default: 0).
2995 .IPs overlay
2996 Activate overlay (default).
2997 .IPs nooverlay
2998 Activate TV-out.
2999 .IPs overlay-ratio=<1\-2500>
3000 Tune the overlay (default: 1000).
3004 .B \-fbmode <modename> (\-vo fbdev only)
3005 Change video mode to the one that is labeled as <modename> in
3006 /etc/\:fb.modes.
3008 .I NOTE:
3009 VESA framebuffer does not support mode changing.
3012 .B \-fbmodeconfig <filename> (\-vo fbdev only)
3013 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
3016 .B \-fs (also see \-zoom)
3017 Fullscreen playback (centers movie, and paints black bands around it).
3018 Not supported by all video output drivers.
3021 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3022 Try this option if you still experience fullscreen problems.
3025 .B \-fstype <type1,type2,...> (X11 only)
3026 Specify a priority list of fullscreen modes to be used.
3027 You can negate the modes by prefixing them with '\-'.
3028 If you experience problems like the fullscreen window being covered
3029 by other windows try using a different order.
3031 .I NOTE:
3032 See \-fstype help for a full list of available modes.
3033 .sp 1
3034 The available types are:
3035 .sp 1
3036 .PD 0
3037 .RSs
3038 .IPs above
3039 Use the _NETWM_STATE_ABOVE hint if available.
3040 .IPs below
3041 Use the _NETWM_STATE_BELOW hint if available.
3042 .IPs fullscreen
3043 Use the _NETWM_STATE_FULLSCREEN hint if available.
3044 .IPs layer
3045 Use the _WIN_LAYER hint with the default layer.
3046 .IPs layer=<0...15>
3047 Use the _WIN_LAYER hint with the given layer number.
3048 .IPs netwm
3049 Force NETWM style.
3050 .IPs "none\ "
3051 Do not set fullscreen window layer.
3052 .IPs stays_on_top
3053 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3054 .REss
3055 .sp 1
3057 .I EXAMPLE:
3059 .PD 0
3060 .RSs
3061 .IPs layer,stays_on_top,above,fullscreen
3062 Default order, will be used as a fallback if incorrect or
3063 unsupported modes are specified.
3064 .IPs \-fullscreen
3065 Fixes fullscreen switching on OpenBox 1.x.
3067 .PD 1
3070 .B \-geometry x[%][:y[%]] or [WxH][+x+y]
3071 Adjust where the output is on the screen initially.
3072 The x and y specifications are in pixels measured from the top-left of the
3073 screen to the top-left of the image being displayed, however if a percentage
3074 sign is given after the argument it turns the value into a percentage of the
3075 screen size in that direction.
3076 It also supports the standard X11 \-geometry option format.
3077 If an external window is specified using the \-wid option, then the x and
3078 y coordinates are relative to the top-left corner of the window rather
3079 than the screen.
3081 .I NOTE:
3082 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
3083 gl, gl2, directx, fbdev and tdfxfb video output drivers.
3084 .sp 1
3085 .I EXAMPLE:
3086 .PD 0
3087 .RSs
3088 .IPs 50:40
3089 Places the window at x=50, y=40.
3090 .IPs 50%:50%
3091 Places the window in the middle of the screen.
3092 .IPs "100%\ "
3093 Places the window at the middle of the right edge of the screen.
3094 .IPs 100%:100%
3095 Places the window at the bottom right corner of the screen.
3097 .PD 1
3100 .B \-guiwid <window ID> (also see \-wid) (GUI only)
3101 This tells the GUI to also use an X11 window and stick itself to the bottom
3102 of the video, which is useful to embed a mini-GUI in a browser (with the
3103 MPlayer plugin for instance).
3106 .B \-hue <\-100\-100>
3107 Adjust the hue of the video signal (default: 0).
3108 You can get a colored negative of the image with this option.
3109 Not supported by all video output drivers.
3112 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3113 Specify the dotclock or pixelclock range of the monitor.
3116 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3117 Specify the horizontal frequency range of the monitor.
3120 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3121 Specify the vertical frequency range of the monitor.
3124 .B \-monitoraspect <ratio> (also see \-aspect)
3125 Set the aspect ratio of your monitor or TV screen.
3126 A value of 0 disables a previous setting (e.g.\& in the config file).
3127 Overrides the \-monitorpixelaspect setting if enabled.
3128 .sp 1
3129 .I EXAMPLE:
3130 .PD 0
3131 .RSs
3132 \-monitoraspect 4:3  or 1.3333
3134 \-monitoraspect 16:9 or 1.7777
3136 .PD 1
3139 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3140 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3141 A value of 1 means square pixels
3142 (correct for (almost?) all LCDs).
3145 .B \-nodouble
3146 Disables double buffering, mostly for debugging purposes.
3147 Double buffering fixes flicker by storing two frames in memory, and
3148 displaying one while decoding another.
3149 It can affect OSD negatively, but often removes OSD flickering.
3152 .B \-nograbpointer
3153 Do not grab the mouse pointer after a video mode change (\-vm).
3154 Useful for multihead setups.
3157 .B \-nokeepaspect
3158 Do not keep window aspect ratio when resizing windows.
3159 Only works with the x11, xv, xmga, xvidix, directx video output drivers.
3160 Furthermore under X11 your window manager has to honor window aspect hints.
3163 .B "\-ontop\ "
3164 Makes the player window stay on top of other windows.
3165 Supported by video output drivers which use X11, except SDL,
3166 as well as directx, macosx, quartz, ggi and gl2.
3169 .B \-panscan <0.0\-1.0>
3170 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3171 movie to make it fit a 4:3 display without black bands).
3172 The range controls how much of the image is cropped.
3173 Only works with the xv, xmga, mga, gl, gl2, quartz, macosx and xvidix
3174 video output drivers.
3176 .I NOTE:
3177 Values between \-1 and 0 are allowed as well, but highly experimental
3178 and may crash or worse.
3179 Use at your own risk!
3182 .B \-panscanrange <\-19.0\-99.0> (experimental)
3183 Change the range of the pan-and-scan functionality (default: 1).
3184 Positive values mean multiples of the default range.
3185 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3186 E.g. \-panscanrange \-3 allows a zoom factor of up to 4.
3187 This feature is experimental.
3188 Do not report bugs unless you are using \-vo gl.
3191 .B \-refreshrate <Hz>
3192 Set the monitor refreshrate in Hz.
3193 Currently only supported by \-vo directx combined with the \-vm option.
3196 .B \-rootwin
3197 Play movie in the root window (desktop background).
3198 Desktop background images may cover the movie window, though.
3199 Only works with the x11, xv, xmga, xvidix, quartz, macosx and directx video output drivers.
3202 .B \-saturation <\-100\-100>
3203 Adjust the saturation of the video signal (default: 0).
3204 You can get grayscale output with this option.
3205 Not supported by all video output drivers.
3208 .B \-screenh <pixels>
3209 Specify the screen height for video output drivers which
3210 do not know the screen resolution like fbdev, x11 and TV-out.
3213 .B \-screenw <pixels>
3214 Specify the screen width for video output drivers which
3215 do not know the screen resolution like fbdev, x11 and TV-out.
3218 .B \-stop\-xscreensaver (X11 only)
3219 Turns off xscreensaver at startup and turns it on again on exit.
3220 If your screensaver supports neither the XSS nor XResetScreenSaver
3221 API please use \-heartbeat\-cmd instead.
3224 .B "\-vm \ \ \ "
3225 Try to change to a different video mode.
3226 Supported by the dga, x11, xv, sdl and directx video output drivers.
3227 If used with the directx video output driver the \-screenw,
3228 \-screenh, \-bpp and \-refreshrate options can be used to set
3229 the new display mode.
3232 .B "\-vsync \ \ "
3233 Enables VBI for the vesa, dfbmga and svga video output drivers.
3236 .B \-wid <window ID> (also see \-guiwid) (X11, OpenGL and DirectX only)
3237 This tells MPlayer to attach to an existing window.
3238 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3241 .B \-xineramascreen <\-2\-...>
3242 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3243 displays) this option tells MPlayer which screen to display the movie on.
3244 A value of \-2 means fullscreen across the whole virtual display (in this case
3245 Xinerama information is completely ignored), \-1 means
3246 fullscreen on the display the window currently is on.
3247 The initial position set via the \-geometry option is relative to the
3248 specified screen.
3249 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3250 This option is not suitable to only set the startup screen (and not also the
3251 fullscreen screen), \-geometry is the best that is available for that purpose
3252 currently.
3253 Supported by the gl, gl2, x11, and xv video output drivers.
3256 .B \-zrbw (\-vo zr only)
3257 Display in black and white.
3258 For optimal performance, this can be combined with '\-lavdopts gray'.
3261 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3262 Select a part of the input image to display, multiple occurrences
3263 of this option switch on cinerama mode.
3264 In cinerama mode the movie is distributed over more than one TV
3265 (or beamer) to create a larger image.
3266 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3267 card should at least have a \-zrdev in addition to the \-zrcrop.
3268 For examples, see the output of \-zrhelp and the Zr section of the
3269 documentation.
3272 .B \-zrdev <device> (\-vo zr only)
3273 Specify the device special file that belongs to your MJPEG card, by default
3274 the zr video output driver takes the first v4l device it can find.
3277 .B \-zrfd (\-vo zr only)
3278 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3279 happens if the hardware scaler can stretch the image to its original size.
3280 Use this option to force decimation.
3283 .B \-zrhdec <1|2|4> (\-vo zr only)
3284 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3285 line/\:pixel of the input image to the MJPEG card and use the scaler
3286 of the MJPEG card to stretch the image to its original size.
3289 .B \-zrhelp (\-vo zr only)
3290 Display a list of all \-zr* options, their default values and a
3291 cinerama mode example.
3294 .B \-zrnorm <norm> (\-vo zr only)
3295 Specify the TV norm as PAL or NTSC (default: no change).
3298 .B \-zrquality <1\-20> (\-vo zr only)
3299 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3302 .B \-zrvdec <1|2|4> (\-vo zr only)
3303 Vertical decimation: Ask the driver to send only every 2nd or 4th
3304 line/\:pixel of the input image to the MJPEG card and use the scaler
3305 of the MJPEG card to stretch the image to its original size.
3308 .B \-zrxdoff <x display offset> (\-vo zr only)
3309 If the movie is smaller than the TV screen, this option specifies the x
3310 offset from the upper-left corner of the TV screen (default: centered).
3313 .B \-zrydoff <y display offset> (\-vo zr only)
3314 If the movie is smaller than the TV screen, this option specifies the y
3315 offset from the upper-left corner of the TV screen (default: centered).
3319 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3320 Video output drivers are interfaces to different video output facilities.
3321 The syntax is:
3324 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3325 Specify a priority list of video output drivers to be used.
3327 If the list has a trailing ',' MPlayer will fall back on drivers not
3328 contained in the list.
3329 Suboptions are optional and can mostly be omitted.
3331 .I NOTE:
3332 See \-vo help for a list of compiled-in video output drivers.
3333 .sp 1
3334 .I EXAMPLE:
3335 .PD 0
3336 .RSs
3337 .IPs "\-vo xmga,xv,"
3338 Try the Matrox X11 driver, then the Xv driver, then others.
3339 .IPs "\-vo directx:noaccel"
3340 Uses the DirectX driver with acceleration features turned off.
3342 .PD 1
3343 .sp 1
3344 Available video output drivers are:
3347 .B xv (X11 only)
3348 Uses the XVideo extension of XFree86 4.x to enable hardware
3349 accelerated playback.
3350 If you cannot use a hardware specific driver, this is probably
3351 the best option.
3352 For information about what colorkey is used and how it is drawn run MPlayer
3353 with \-v option and look out for the lines tagged with [xv common] at the
3354 beginning.
3355 .PD 0
3356 .RSs
3357 .IPs adaptor=<number>
3358 Select a specific XVideo adaptor (check xvinfo results).
3359 .IPs port=<number>
3360 Select a specific XVideo port.
3361 .IPs ck=<cur|use|set>
3362 Select the source from which the colorkey is taken (default: cur).
3363 .RSss
3364 .IPs cur
3365 The default takes the colorkey currently set in Xv.
3366 .IPs use
3367 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3368 it).
3369 .IPs set
3370 Same as use but also sets the supplied colorkey.
3372 .IPs ck-method=<man|bg|auto>
3373 Sets the colorkey drawing method (default: man).
3374 .RSss
3375 .IPs man
3376 Draw the colorkey manually (reduces flicker in some cases).
3377 .IPs bg
3378 Set the colorkey as window background.
3379 .IPs auto
3380 Let Xv draw the colorkey.
3383 .PD 1
3386 .B x11 (X11 only)
3387 Shared memory video output driver without hardware acceleration that
3388 works whenever X11 is present.
3391 .B xover (X11 only)
3392 Adds X11 support to all overlay based video output drivers.
3393 Currently only supported by tdfx_vid.
3394 .PD 0
3395 .RSs
3396 .IPs <vo_driver>
3397 Select the driver to use as source to overlay on top of X11.
3399 .PD 1
3402 .B xvmc (X11 with \-vc ffmpeg12mc only)
3403 Video output driver that uses the XvMC (X Video Motion Compensation)
3404 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3405 .PD 0
3406 .RSs
3407 .IPs adaptor=<number>
3408 Select a specific XVideo adaptor (check xvinfo results).
3409 .IPs port=<number>
3410 Select a specific XVideo port.
3411 .IPs (no)benchmark
3412 Disables image display.
3413 Necessary for proper benchmarking of drivers that change
3414 image buffers on monitor retrace only (nVidia).
3415 Default is not to disable image display (nobenchmark).
3416 .IPs (no)bobdeint
3417 Very simple deinterlacer.
3418 Might not look better than \-vf tfields=1,
3419 but it is the only deinterlacer for xvmc (default: nobobdeint).
3420 .IPs (no)queue
3421 Queue frames for display to allow more parallel work of the video hardware.
3422 May add a small (not noticeable) constant A/V desync (default: noqueue).
3423 .IPs (no)sleep
3424 Use sleep function while waiting for rendering to finish
3425 (not recommended on Linux) (default: nosleep).
3426 .IPs ck=cur|use|set
3427 Same as \-vo xv:ck (see \-vo xv).
3428 .IPs ck-method=man|bg|auto
3429 Same as \-vo xv:ck-method (see \-vo xv).
3431 .PD 1
3434 .B dga (X11 only)
3435 Play video through the XFree86 Direct Graphics Access extension.
3436 Considered obsolete.
3439 .B sdl (SDL only)
3440 Highly platform independent SDL (Simple Directmedia Layer) library
3441 video output driver.
3442 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3443 any effect on SDL.
3444 .PD 0
3445 .RSs
3446 .IPs driver=<driver>
3447 Explicitly choose the SDL driver to use.
3448 .IPs (no)forcexv
3449 Use XVideo through the sdl video output driver (default: forcexv).
3450 .IPs (no)hwaccel
3451 Use hardware accelerated scaler (default: hwaccel).
3453 .PD 1
3456 .B "vidix\ \ "
3457 VIDIX (VIDeo Interface for *niX) is an interface to the
3458 video acceleration features of different graphics cards.
3459 Very fast video output driver on cards that support it.
3460 .PD 0
3461 .RSs
3462 .IPs <subdevice>
3463 Explicitly choose the VIDIX subdevice driver to use.
3464 Available subdevice drivers are cyberblade, ivtv, mach64,
3465 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, s3, sh_veu,
3466 sis_vid and unichrome.
3468 .PD 1
3471 .B xvidix (X11 only)
3472 X11 frontend for VIDIX
3473 .PD 0
3474 .RSs
3475 .IPs <subdevice>
3476 same as vidix
3478 .PD 1
3481 .B "cvidix\ "
3482 Generic and platform independent VIDIX frontend, can even run in a
3483 text console with nVidia cards.
3484 .PD 0
3485 .RSs
3486 .IPs <subdevice>
3487 same as vidix
3489 .PD 1
3492 .B winvidix (Windows only)
3493 Windows frontend for VIDIX
3494 .PD 0
3495 .RSs
3496 .IPs <subdevice>
3497 same as vidix
3499 .PD 1
3502 .B directx (Windows only)
3503 Video output driver that uses the DirectX interface.
3504 .PD 0
3505 .RSs
3506 .IPs noaccel
3507 Turns off hardware acceleration.
3508 Try this option if you have display problems.
3510 .PD 1
3513 .B quartz (Mac OS X only)
3514 Mac OS X Quartz video output driver.
3515 Under some circumstances, it might be more efficient to force a
3516 packed YUV output format, with e.g.\& \-vf format=yuy2.
3517 .PD 0
3518 .RSs
3519 .IPs device_id=<number>
3520 Choose the display device to use in fullscreen.
3521 .IPs fs_res=<width>:<height>
3522 Specify the fullscreen resolution (useful on slow systems).
3524 .PD 1
3527 .B macosx (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3528 Mac OS X CoreVideo video output driver
3529 .PD 0
3530 .RSs
3531 .IPs device_id=<number>
3532 Choose the display device to use in fullscreen.
3534 .PD 1
3537 .B fbdev (Linux only)
3538 Uses the kernel framebuffer to play video.
3539 .PD 0
3540 .RSs
3541 .IPs <device>
3542 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3543 name of the VIDIX subdevice if the device name starts with 'vidix'
3544 (e.g.\& 'vidixsis_vid' for the sis driver).
3546 .PD 1
3549 .B fbdev2 (Linux only)
3550 Uses the kernel framebuffer to play video,
3551 alternative implementation.
3552 .PD 0
3553 .RSs
3554 .IPs <device>
3555 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3557 .PD 1
3560 .B "vesa\ \ \ "
3561 Very general video output driver that should work on any VESA VBE 2.0
3562 compatible card.
3563 .PD 0
3564 .RSs
3565 .IPs (no)dga
3566 Turns DGA mode on or off (default: on).
3567 .IPs neotv_pal
3568 Activate the NeoMagic TV out and set it to PAL norm.
3569 .IPs neotv_ntsc
3570 Activate the NeoMagic TV out and set it to NTSC norm.
3571 .IPs vidix
3572 Use the VIDIX driver.
3573 .IPs "lvo:\ \ \ "
3574 Activate the Linux Video Overlay on top of VESA mode.
3576 .PD 1
3579 .B "svga\ \ \ "
3580 Play video using the SVGA library.
3581 .PD 0
3582 .RSs
3583 .IPs "<video mode>"
3584 Specify video mode to use.
3585 The mode can be given in a <width>x<height>x<colors> format,
3586 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3587 .IPs bbosd
3588 Draw OSD into black bands below the movie (slower).
3589 .IPs native
3590 Use only native drawing functions.
3591 This avoids direct rendering, OSD and hardware acceleration.
3592 .IPs retrace
3593 Force frame switch on vertical retrace.
3594 Usable only with \-double.
3595 It has the same effect as the \-vsync option.
3596 .IPs "sq\ \ \ "
3597 Try to select a video mode with square pixels.
3598 .IPs vidix
3599 Use svga with VIDIX.
3601 .PD 1
3604 .B "gl\ \ \ \ \ "
3605 OpenGL video output driver, simple version.
3606 Video size must be smaller than
3607 the maximum texture size of your OpenGL implementation.
3608 Intended to work even with the most basic OpenGL implementations,
3609 but also makes use of newer extensions, which allow support for more
3610 colorspaces and direct rendering.
3611 For optimal speed try something similar to
3613 \-vo gl:yuv=2:force\-pbo:ati\-hack \-dr \-noslices
3615 The code performs very few checks, so if a feature does not work, this
3616 might be because it is not supported by your card/OpenGL implementation
3617 even if you do not get any error message.
3618 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3619 .PD 0
3620 .RSs
3621 .IPs (no)ati\-hack
3622 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3623 or force\-pbo).
3624 This option fixes this, at the expense of using a bit more memory.
3625 .IPs (no)force\-pbo
3626 Always uses PBOs to transfer textures even if this involves an extra copy.
3627 Currently this gives a little extra speed with NVidia drivers and a lot more
3628 speed with ATI drivers.
3629 May need \-noslices and the ati\-hack suboption to work correctly.
3630 .IPs (no)scaled-osd
3631 Changes the way the OSD behaves when the size of the
3632 window changes (default: disabled).
3633 When enabled behaves more like the other video output drivers,
3634 which is better for fixed-size fonts.
3635 Disabled looks much better with FreeType fonts and uses the
3636 borders in fullscreen mode.
3637 Does not work correctly with ass subtitles (see \-ass), you can instead
3638 render them without OpenGL support via \-vf ass.
3639 .IPs osdcolor=<0xAARRGGBB>
3640 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3641 .IPs rectangle=<0,1,2>
3642 Select usage of rectangular textures which saves video RAM, but often is
3643 slower (default: 0).
3644 .RSss
3645 0: Use power-of-two textures (default).
3647 1: Use the GL_ARB_texture_rectangle extension.
3649 2: Use the GL_ARB_texture_non_power_of_two extension.
3650 In some cases only supported in software and thus very slow.
3652 .IPs swapinterval=<n>
3653 Minimum interval between two buffer swaps, counted in
3654 displayed frames (default: 1).
3655 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3656 Values below 0 will leave it at the system default.
3657 This limits the framerate to (horizontal refresh rate / n).
3658 Requires GLX_SGI_swap_control support to work.
3659 With some (most/all?) implementations this only works in fullscreen mode.
3660 .IPs yuv=<n>
3661 Select the type of YUV to RGB conversion.
3662 .RSss
3663 0: Use software conversion (default).
3664 Compatible with all OpenGL versions.
3665 Provides brightness, contrast and saturation control.
3667 1: Use register combiners.
3668 This uses an nVidia-specific extension (GL_NV_register_combiners).
3669 At least three texture units are needed.
3670 Provides saturation and hue control.
3671 This method is fast but inexact.
3673 2: Use a fragment program.
3674 Needs the GL_ARB_fragment_program extension and at least three texture units.
3675 Provides brightness, contrast, saturation and hue control.
3677 3: Use a fragment program using the POW instruction.
3678 Needs the GL_ARB_fragment_program extension and at least three texture units.
3679 Provides brightness, contrast, saturation, hue and gamma control.
3680 Gamma can also be set independently for red, green and blue.
3681 Method 4 is usually faster.
3683 4: Use a fragment program with additional lookup.
3684 Needs the GL_ARB_fragment_program extension and at least four texture units.
3685 Provides brightness, contrast, saturation, hue and gamma control.
3686 Gamma can also be set independently for red, green and blue.
3688 5: Use ATI-specific method (for older cards).
3689 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3690 GL_ARB_fragment_shader!).
3691 At least three texture units are needed.
3692 Provides saturation and hue control.
3693 This method is fast but inexact.
3695 6: Use a 3D texture to do conversion via lookup.
3696 Needs the GL_ARB_fragment_program extension and at least four texture units.
3697 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3698 a texture with border pixels.
3699 Provides brightness, contrast, saturation, hue and gamma control.
3700 Gamma can also be set independently for red, green and blue.
3701 Speed depends more on GPU memory bandwidth than other methods.
3703 .IPs lscale=<n>
3704 Select the scaling function to use for luminance scaling.
3705 Only valid for yuv modes 2, 3, 4 and 6.
3706 .RSss
3707 0: Use simple linear filtering (default).
3709 1: Use bicubic B-spline filtering (better quality).
3710 Needs one additional texture unit.
3711 Older cards will not be able to handle this for chroma at least in fullscreen mode.
3713 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
3714 Works on a few more cards than method 1.
3716 3: Same as 1 but does not use a lookup texture.
3717 Might be faster on some cards.
3719 4: Use experimental unsharp masking with 3x3 support and a strength of 0.5.
3721 5: Use experimental unsharp masking with 5x5 support and a strength of 0.5.
3723 .IPs cscale=<n>
3724 Select the scaling function to use for chrominance scaling.
3725 For details see lscale.
3726 .IPs customprog=<filename>
3727 Load a custom fragment program from <filename>.
3728 See TOOLS/edgedect.fp for an example.
3729 .IPs customtex=<filename>
3730 Load a custom "gamma ramp" texture from <filename>.
3731 This can be used in combination with yuv=4 or with the customprog option.
3732 .IPs (no)customtlin
3733 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
3734 for customtex texture.
3735 .IPs (no)customtrect
3736 If enabled, use texture_rectangle for customtex texture.
3737 Default is disabled.
3739 .sp 1
3741 Normally there is no reason to use the following options, they mostly
3742 exist for testing purposes.
3744 .sp 1
3745 .RSs
3746 .IPs (no)glfinish
3747 Call glFinish() before swapping buffers.
3748 Slower but in some cases more correct output (default: disabled).
3749 .IPs (no)manyfmts
3750 Enables support for more (RGB and BGR) color formats (default: enabled).
3751 Needs OpenGL version >= 1.2.
3752 .IPs slice-height=<0\-...>
3753 Number of lines copied to texture in one piece (default: 0).
3754 0 for whole image.
3756 .I NOTE:
3757 If YUV colorspace is used (see yuv suboption), special rules apply:
3758 .RSss
3759 If the decoder uses slice rendering (see \-noslices), this setting
3760 has no effect, the size of the slices as provided by the decoder is used.
3762 If the decoder does not use slice rendering, the default is 16.
3764 .IPs (no)osd
3765 Enable or disable support for OSD rendering via OpenGL (default: enabled).
3766 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
3767 .IPs (no)aspect
3768 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
3769 Disabling might increase speed.
3770 .REss
3772 .PD 1
3775 .B "gl2\ \ \ \ "
3776 Variant of the OpenGL video output driver.
3777 Supports videos larger than the maximum texture size but lacks many of the
3778 advanced features and optimizations of the gl driver and is unlikely to be
3779 extended further.
3780 .PD 0
3781 .RSs
3782 .IPs (no)glfinish
3783 same as gl (default: enabled)
3784 .IPs yuv=<n>
3785 Select the type of YUV to RGB conversion.
3786 If set to anything except 0 OSD will be disabled and brightness, contrast and
3787 gamma setting is only available via the global X server settings.
3788 Apart from this the values have the same meaning as for \-vo gl.
3789 .REss
3792 .B "null\ \ \ "
3793 Produces no video output.
3794 Useful for benchmarking.
3797 .B "aa\ \ \ \ \ "
3798 ASCII art video output driver that works on a text console.
3799 You can get a list and an explanation of available suboptions
3800 by executing 'mplayer \-vo aa:help'.
3802 .I NOTE:
3803 The driver does not handle \-aspect correctly.
3805 .I HINT:
3806 You probably have to specify \-monitorpixelaspect.
3807 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
3810 .B "caca\ \ \ "
3811 Color ASCII art video output driver that works on a text console.
3814 .B "bl\ \ \ \ \ "
3815 Video playback using the Blinkenlights UDP protocol.
3816 This driver is highly hardware specific.
3817 .PD 0
3818 .RSs
3819 .IPs <subdevice>
3820 Explicitly choose the Blinkenlights subdevice driver to use.
3821 It is something like arcade:host=localhost:2323 or
3822 hdl:file=name1,file=name2.
3823 You must specify a subdevice.
3825 .PD 1
3828 .B "ggi\ \ \ \ "
3829 GGI graphics system video output driver
3830 .PD 0
3831 .RSs
3832 .IPs <driver>
3833 Explicitly choose the GGI driver to use.
3834 Replace any ',' that would appear in the driver string by a '.'.
3836 .PD 1
3839 .B directfb
3840 Play video using the DirectFB library.
3841 .PD 0
3842 .RSs
3843 .IPs (no)input
3844 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
3845 .IPs buffermode=single|double|triple
3846 Double and triple buffering give best results if you want to avoid tearing issues.
3847 Triple buffering is more efficient than double buffering as it does
3848 not block MPlayer while waiting for the vertical retrace.
3849 Single buffering should be avoided (default: single).
3850 .IPs fieldparity=top|bottom
3851 Control the output order for interlaced frames (default: disabled).
3852 Valid values are top = top fields first, bottom = bottom fields first.
3853 This option does not have any effect on progressive film material
3854 like most MPEG movies are.
3855 You need to enable this option if you have tearing issues or unsmooth
3856 motions watching interlaced film material.
3857 .IPs layer=N
3858 Will force layer with ID N for playback (default: \-1 \- auto).
3859 .IPs dfbopts=<list>
3860 Specify a parameter list for DirectFB.
3862 .PD 1
3865 .B "dfbmga\ "
3866 Matrox G400/\:G450/\:G550 specific video output driver that uses the
3867 DirectFB library to make use of special hardware features.
3868 Enables CRTC2 (second head), displaying video independently of the first head.
3869 .PD 0
3870 .RSs
3871 .IPs (no)input
3872 same as directfb (default: disabled)
3873 .IPs buffermode=single|double|triple
3874 same as directfb (default: triple)
3875 .IPs fieldparity=top|bottom
3876 same as directfb
3877 .IPs (no)bes
3878 Enable the use of the Matrox BES (backend scaler) (default: disabled).
3879 Gives very good results concerning speed and output quality as interpolated
3880 picture processing is done in hardware.
3881 Works only on the primary head.
3882 .IPs (no)spic
3883 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
3884 .IPs (no)crtc2
3885 Turn on TV-out on the second head (default: enabled).
3886 The output quality is amazing as it is a full interlaced picture
3887 with proper sync to every odd/\:even field.
3888 .IPs tvnorm=pal|ntsc|auto
3889 Will set the TV norm of the Matrox card without the need
3890 for modifying /etc/\:directfbrc (default: disabled).
3891 Valid norms are pal = PAL, ntsc = NTSC.
3892 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
3893 which norm to use by looking at the framerate of the movie.
3895 .PD 1
3898 .B mga (Linux only)
3899 Matrox specific video output driver that makes use of the YUV back
3900 end scaler on Gxxx cards through a kernel module.
3901 If you have a Matrox card, this is the fastest option.
3902 .PD 0
3903 .RSs
3904 .IPs <device>
3905 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
3907 .PD 1
3910 .B xmga (Linux, X11 only)
3911 The mga video output driver, running in an X11 window.
3912 .PD 0
3913 .RSs
3914 .IPs <device>
3915 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
3917 .PD 1
3920 .B s3fb (Linux only) (also see \-vf yuv2 and \-dr)
3921 S3 Virge specific video output driver.
3922 This driver supports the card's YUV conversion and scaling, double
3923 buffering and direct rendering features.
3924 Use \-vf yuy2 to get hardware-accelerated YUY2 rendering, which is
3925 much faster than YV12 on this card.
3926 .PD 0
3927 .RSs
3928 .IPs <device>
3929 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3931 .PD 1
3934 .B wii (Linux only)
3935 Nintendo Wii/GameCube specific video output driver.
3938 .B 3dfx (Linux only)
3939 3dfx-specific video output driver that directly uses
3940 the hardware on top of X11.
3941 Only 16 bpp are supported.
3944 .B tdfxfb (Linux only)
3945 This driver employs the tdfxfb framebuffer driver to play movies with
3946 YUV acceleration on 3dfx cards.
3947 .PD 0
3948 .RSs
3949 .IPs <device>
3950 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3952 .PD 1
3955 .B tdfx_vid (Linux only)
3956 3dfx-specific video output driver that works in combination with
3957 the tdfx_vid kernel module.
3958 .PD 0
3959 .RSs
3960 .IPs <device>
3961 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
3963 .PD 1
3966 .B dxr2 (also see \-dxr2) (DXR2 only)
3967 Creative DXR2 specific video output driver.
3968 .PD 0
3969 .RSs
3970 .IPs <vo_driver>
3971 Output video subdriver to use as overlay (x11, xv).
3973 .PD 1
3976 .B dxr3 (DXR3 only)
3977 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
3978 Hollywood Plus) specific video output driver.
3979 Also see the lavc video filter.
3980 .PD 0
3981 .RSs
3982 .IPs overlay
3983 Activates the overlay instead of TV-out.
3984 .IPs prebuf
3985 Turns on prebuffering.
3986 .IPs "sync\ "
3987 Will turn on the new sync-engine.
3988 .IPs norm=<norm>
3989 Specifies the TV norm.
3990 .RSss
3991 0: Does not change current norm (default).
3993 1: Auto-adjust using PAL/\:NTSC.
3995 2: Auto-adjust using PAL/\:PAL-60.
3997 3: PAL
3999 4: PAL-60
4001 5: NTSC
4003 .IPs <0\-3>
4004 Specifies the device number to use if you have more than one em8300 card.
4006 .PD 1
4009 .B ivtv (IVTV only)
4010 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4011 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4012 specific video output driver for TV-out.
4013 Also see the lavc video filter.
4014 .PD 0
4015 .RSs
4016 .IPs <device>
4017 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4018 .IPs <output>
4019 Explicitly choose the TV-out output to be used for the video signal.
4021 .PD 1
4024 .B v4l2 (requires Linux 2.6.22+ kernel)
4025 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4026 Also see the lavc video filter.
4027 .PD 0
4028 .RSs
4029 .IPs <device>
4030 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4031 .IPs <output>
4032 Explicitly choose the TV-out output to be used for the video signal.
4034 .PD 1
4037 .B mpegpes (DVB only)
4038 Video output driver for DVB cards that writes the output to an MPEG-PES file
4039 if no DVB card is installed.
4040 .PD 0
4041 .RSs
4042 .IPs card=<1\-4>
4043 Specifies the device number to use if you have more than one DVB output card
4044 (V3 API only, such as 1.x.y series drivers).
4045 If not specified mplayer will search the first usable card.
4046 .IPs <filename>
4047 output filename (default: ./grab.mpg)
4049 .PD 1
4052 .B zr (also see \-zr* and \-zrhelp)
4053 Video output driver for a number of MJPEG capture/\:playback cards.
4056 .B zr2 (also see the zrmjpeg video filter)
4057 Video output driver for a number of MJPEG capture/\:playback cards,
4058 second generation.
4059 .PD 0
4060 .RSs
4061 .IPs dev=<device>
4062 Specifies the video device to use.
4063 .IPs norm=<PAL|NTSC|SECAM|auto>
4064 Specifies the video norm to use (default: auto).
4065 .IPs (no)prebuf
4066 (De)Activate prebuffering, not yet supported.
4068 .PD 1
4071 .B "md5sum\ "
4072 Calculate MD5 sums of each frame and write them to a file.
4073 Supports RGB24 and YV12 colorspaces.
4074 Useful for debugging.
4075 .PD 0
4076 .RSs
4077 .IPs outfile=<value>
4078 Specify the output filename (default: ./md5sums).
4080 .PD 1
4083 .B yuv4mpeg
4084 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4085 images and stores it in a file (default: ./stream.yuv).
4086 The format is the same as the one employed by mjpegtools, so this is
4087 useful if you want to process the video with the mjpegtools suite.
4088 It supports the YV12, RGB (24 bpp) and BGR (24 bpp) format.
4089 You can combine it with the \-fixed\-vo option to concatenate files
4090 with the same dimensions and fps value.
4091 .PD 0
4092 .RSs
4093 .IPs interlaced
4094 Write the output as interlaced frames, top field first.
4095 .IPs interlaced_bf
4096 Write the output as interlaced frames, bottom field first.
4097 .IPs file=<filename>
4098 Write the output to <filename> instead of the default stream.yuv.
4099 .REss
4100 .PD 1
4102 .sp 1
4103 .I NOTE:
4104 If you do not specify any option the output is progressive
4105 (i.e.\& not interlaced).
4109 .B "gif89a\ "
4110 Output each frame into a single animated GIF file in the current directory.
4111 It supports only RGB format with 24 bpp and the output is converted to 256
4112 colors.
4113 .PD 0
4114 .RSs
4115 .IPs <fps>
4116 Float value to specify framerate (default: 5.0).
4117 .IPs <output>
4118 Specify the output filename (default: ./out.gif).
4119 .REss
4120 .PD 1
4122 .sp 1
4123 .I NOTE:
4124 You must specify the framerate before the filename or the framerate will
4125 be part of the filename.
4126 .sp 1
4127 .I EXAMPLE:
4129 .PD 0
4130 .RSs
4131 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4133 .PD 1
4136 .B "jpeg\ \ \ "
4137 Output each frame into a JPEG file in the current directory.
4138 Each file takes the frame number padded with leading zeros as name.
4139 .PD 0
4140 .RSs
4141 .IPs [no]progressive
4142 Specify standard or progressive JPEG (default: noprogressive).
4143 .IPs [no]baseline
4144 Specify use of baseline or not (default: baseline).
4145 .IPs optimize=<0\-100>
4146 optimization factor (default: 100)
4147 .IPs smooth=<0\-100>
4148 smooth factor (default: 0)
4149 .IPs quality=<0\-100>
4150 quality factor (default: 75)
4151 .IPs outdir=<dirname>
4152 Specify the directory to save the JPEG files to (default: ./).
4153 .IPs subdirs=<prefix>
4154 Create numbered subdirectories with the specified prefix to
4155 save the files in instead of the current directory.
4156 .IPs "maxfiles=<value> (subdirs only)"
4157 Maximum number of files to be saved per subdirectory.
4158 Must be equal to or larger than 1 (default: 1000).
4160 .PD 1
4163 .B "pnm\ \ \ \ "
4164 Output each frame into a PNM file in the current directory.
4165 Each file takes the frame number padded with leading zeros as name.
4166 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4167 Also see pnm(5), ppm(5) and pgm(5).
4168 .PD 0
4169 .RSs
4170 .IPs "ppm\ \ "
4171 Write PPM files (default).
4172 .IPs "pgm\ \ "
4173 Write PGM files.
4174 .IPs pgmyuv
4175 Write PGMYUV files.
4176 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4177 bottom of the picture.
4178 .IPs "raw\ \ "
4179 Write PNM files in raw mode (default).
4180 .IPs ascii
4181 Write PNM files in ASCII mode.
4182 .IPs outdir=<dirname>
4183 Specify the directory to save the PNM files to (default: ./).
4184 .IPs subdirs=<prefix>
4185 Create numbered subdirectories with the specified prefix to
4186 save the files in instead of the current directory.
4187 .IPs "maxfiles=<value> (subdirs only)"
4188 Maximum number of files to be saved per subdirectory.
4189 Must be equal to or larger than 1 (default: 1000).
4191 .PD 1
4194 .B "png\ \ \ \ "
4195 Output each frame into a PNG file in the current directory.
4196 Each file takes the frame number padded with leading zeros as name.
4197 24bpp RGB and BGR formats are supported.
4198 .PD 0
4199 .RSs
4200 .IPs z=<0\-9>
4201 Specifies the compression level.
4202 0 is no compression, 9 is maximum compression.
4204 .PD 1
4207 .B "tga\ \ \ \ "
4208 Output each frame into a Targa file in the current directory.
4209 Each file takes the frame number padded with leading zeros as name.
4210 The purpose of this video output driver is to have a simple lossless
4211 image writer to use without any external library.
4212 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4213 You can force a particular format with the format video filter.
4214 .sp 1
4215 .I EXAMPLE:
4217 .PD 0
4218 .RSs
4219 mplayer video.nut \-vf format=bgr15 \-vo tga
4221 .PD 1
4225 .SH "DECODING/FILTERING OPTIONS"
4228 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4229 Specify a priority list of audio codecs to be used, according to their codec
4230 name in codecs.conf.
4231 Use a '\-' before the codec name to omit it.
4232 Use a '+' before the codec name to force it, this will likely crash!
4233 If the list has a trailing ',' MPlayer will fall back on codecs not
4234 contained in the list.
4236 .I NOTE:
4237 See \-ac help for a full list of available codecs.
4238 .sp 1
4239 .I EXAMPLE:
4240 .PD 0
4241 .RSs
4242 .IPs "\-ac mp3acm"
4243 Force the l3codeca.acm MP3 codec.
4244 .IPs "\-ac mad,"
4245 Try libmad first, then fall back on others.
4246 .IPs "\-ac hwac3,a52,"
4247 Try hardware AC-3 passthrough, software AC-3, then others.
4248 .IPs "\-ac hwdts,"
4249 Try hardware DTS passthrough, then fall back on others.
4250 .IPs "\-ac \-ffmp3,"
4251 Skip FFmpeg's MP3 decoder.
4253 .PD 1
4256 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4257 Specify advanced audio filter options:
4258 .RSs
4259 .IPs force=<0\-7>
4260 Forces the insertion of audio filters to one of the following:
4261 .RSss
4262 0: Use completely automatic filter insertion.
4264 1: Optimize for accuracy (default).
4266 2: Optimize for speed.
4267 .I Warning:
4268 Some features in the audio filters may silently fail,
4269 and the sound quality may drop.
4271 3: Use no automatic insertion of filters and no optimization.
4272 .I Warning:
4273 It may be possible to crash MPlayer using this setting.
4275 4: Use automatic insertion of filters according to 0 above,
4276 but use floating point processing when possible.
4278 5: Use automatic insertion of filters according to 1 above,
4279 but use floating point processing when possible.
4281 6: Use automatic insertion of filters according to 2 above,
4282 but use floating point processing when possible.
4284 7: Use no automatic insertion of filters according to 3 above,
4285 and use floating point processing when possible.
4286 .REss
4287 .IPs list=<filters>
4288 Same as \-af.
4292 .B \-afm <driver1,driver2,...>
4293 Specify a priority list of audio codec families to be used, according
4294 to their codec name in codecs.conf.
4295 Falls back on the default codecs if none of the given codec families work.
4297 .I NOTE:
4298 See \-afm help for a full list of available codec families.
4299 .sp 1
4300 .I EXAMPLE:
4301 .PD 0
4302 .RSs
4303 .IPs "\-afm ffmpeg"
4304 Try FFmpeg's libavcodec codecs first.
4305 .IPs "\-afm acm,dshow"
4306 Try Win32 codecs first.
4308 .PD 1
4311 .B \-aspect <ratio> (also see \-zoom)
4312 Override movie aspect ratio, in case aspect information is
4313 incorrect or missing in the file being played.
4314 .sp 1
4315 .I EXAMPLE:
4316 .PD 0
4317 .RSs
4318 \-aspect 4:3  or \-aspect 1.3333
4320 \-aspect 16:9 or \-aspect 1.7777
4322 .PD 1
4325 .B \-noaspect
4326 Disable automatic movie aspect ratio compensation.
4329 .B "\-field\-dominance <\-1\-1>"
4330 Set first field for interlaced content.
4331 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4332 \-vf yadif=1 and \-vo xvmc:bobdeint.
4333 .PD 0
4334 .RSs
4335 .IPs \-1
4336 auto (default): If the decoder does not export the appropriate information,
4337 it falls back to 0 (top field first).
4338 .IPs 0
4339 top field first
4340 .IPs 1
4341 bottom field first
4343 .PD 1
4346 .B "\-flip \ "
4347 Flip image upside-down.
4350 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4351 Specify libavcodec decoding parameters.
4352 Separate multiple options with a colon.
4353 .sp 1
4354 .I EXAMPLE:
4355 .PD 0
4356 .RSs
4357 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4359 .PD 1
4360 .sp 1
4362 Available options are:
4364 .RSs
4365 .IPs bitexact
4366 Only use bit-exact algorithms in all decoding steps (for codec testing).
4367 .IPs bug=<value>
4368 Manually work around encoder bugs.
4369 .RSss
4370 0: nothing
4372 1: autodetect bugs (default)
4374 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4376 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4378 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4380 16 (mpeg4): padding bug (autodetected)
4382 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4384 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4386 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4388 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4390 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4392 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4393 .REss
4394 .IPs debug=<value>
4395 Display debugging information.
4396 .RSss
4398 0: disabled
4400 1: picture info
4402 2: rate control
4404 4: bitstream
4406 8: macroblock (MB) type
4408 16: per-block quantization parameter (QP)
4410 32: motion vector
4412 0x0040: motion vector visualization (use \-noslices)
4414 0x0080: macroblock (MB) skip
4416 0x0100: startcode
4418 0x0200: PTS
4420 0x0400: error resilience
4422 0x0800: memory management control operations (H.264)
4424 0x1000: bugs
4426 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4428 0x4000: Visualize block types.
4429 .REss
4430 .IPs ec=<value>
4431 Set error concealment strategy.
4432 .RSss
4433 1: Use strong deblock filter for damaged MBs.
4435 2: iterative motion vector (MV) search (slow)
4437 3: all (default)
4438 .REss
4439 .IPs er=<value>
4440 Set error resilience strategy.
4441 .RSss
4443 0: disabled
4445 1: careful (Should work with broken encoders.)
4447 2: normal (default) (Works with compliant encoders.)
4449 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4451 4: very aggressive
4452 .REss
4453 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4454 Enable optimizations which do not comply to the specification and might
4455 potentially cause problems, like simpler dequantization, simpler motion
4456 compensation, assuming use of the default quantization matrix, assuming
4457 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4458 .IPs "gray\ "
4459 grayscale only decoding (a bit faster than with color)
4460 .IPs "idct=<0\-99> (see \-lavcopts)"
4461 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4462 This may come at a price in accuracy, though.
4463 .IPs lowres=<number>[,<w>]
4464 Decode at lower resolutions.
4465 Low resolution decoding is not supported by all codecs, and it will
4466 often result in ugly artifacts.
4467 This is not a bug, but a side effect of not decoding at full resolution.
4468 .RSss
4470 0: disabled
4472 1: 1/2 resolution
4474 2: 1/4 resolution
4476 3: 1/8 resolution
4477 .REss
4479 If <w> is specified lowres decoding will be used only if the width of the
4480 video is major than or equal to <w>.
4482 .B o=<key>=<value>[,<key>=<value>[,...]]
4483 Pass AVOptions to libavcodec decoder.
4484 Note, a patch to make the o= unneeded and pass all unknown options through
4485 the AVOption system is welcome.
4486 A full list of AVOptions can be found in the FFmpeg manual.
4487 Note that some options may conflict with MEncoder options.
4488 .sp 1
4490 .I EXAMPLE:
4492 .RSs
4493 .PD 0
4494 .IPs o=debug=pict
4495 .PD 1
4497 .IPs "sb=<number> (MPEG-2 only)"
4498 Skip the given number of macroblock rows at the bottom.
4499 .IPs "st=<number> (MPEG-2 only)"
4500 Skip the given number of macroblock rows at the top.
4501 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4502 Skips the loop filter (AKA deblocking) during H.264 decoding.
4503 Since the filtered frame is supposed to be used as reference
4504 for decoding dependent frames this has a worse effect on quality
4505 than not doing deblocking on e.g.\& MPEG-2 video.
4506 But at least for high bitrate HDTV this provides a big speedup with
4507 no visible quality loss.
4508 .sp 1
4509 <skipvalue> can be either one of the following:
4510 .RSss
4512 none: Never skip.
4514 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4516 nonref: Skip frames that are not referenced (i.e.\& not used for
4517 decoding other frames, the error cannot "build up").
4519 bidir: Skip B-Frames.
4521 nonkey: Skip all frames except keyframes.
4523 all: Skip all frames.
4524 .REss
4525 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4526 Skips the IDCT step.
4527 This degrades quality a lot of in almost all cases
4528 (see skiploopfilter for available skip values).
4529 .IPs skipframe=<skipvalue>
4530 Skips decoding of frames completely.
4531 Big speedup, but jerky motion and sometimes bad artifacts
4532 (see skiploopfilter for available skip values).
4533 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4534 number of threads to use for decoding (default: 1)
4535 .IPs vismv=<value>
4536 Visualize motion vectors.
4537 .RSss
4539 0: disabled
4541 1: Visualize forward predicted MVs of P-frames.
4543 2: Visualize forward predicted MVs of B-frames.
4545 4: Visualize backward predicted MVs of B-frames.
4546 .REss
4547 .IPs vstats
4548 Prints some statistics and stores them in ./vstats_*.log.
4552 .B \-noslices
4553 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4554 whole frame in a single run.
4555 May be faster or slower, depending on video card and available cache.
4556 It has effect only with libmpeg2 and libavcodec codecs.
4559 .B \-nosound
4560 Do not play/\:encode sound.
4561 Useful for benchmarking.
4564 .B \-novideo
4565 Do not play/\:encode video.
4566 In many cases this will not work, use \-vc null \-vo null instead.
4569 .B \-pp <quality> (also see \-vf pp)
4570 Set the DLL postprocess level.
4571 This option is no longer usable with \-vf pp.
4572 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4573 The valid range of \-pp values varies by codec, it is mostly
4574 0\-6, where 0=disable, 6=slowest/\:best.
4577 .B \-pphelp (also see \-vf pp)
4578 Show a summary about the available postprocess filters and their usage.
4581 .B \-ssf <mode>
4582 Specifies software scaler parameters.
4583 .sp 1
4584 .I EXAMPLE:
4585 .PD 0
4586 .RSs
4587 \-vf scale \-ssf lgb=3.0
4589 .PD 1
4590 .PD 0
4591 .RSs
4592 .IPs lgb=<0\-100>
4593 gaussian blur filter (luma)
4594 .IPs cgb=<0\-100>
4595 gaussian blur filter (chroma)
4596 .IPs ls=<\-100\-100>
4597 sharpen filter (luma)
4598 .IPs cs=<\-100\-100>
4599 sharpen filter (chroma)
4600 .IPs chs=<h>
4601 chroma horizontal shifting
4602 .IPs cvs=<v>
4603 chroma vertical shifting
4605 .PD 1
4608 .B \-stereo <mode>
4609 Select type of MP2/\:MP3 stereo output.
4610 .PD 0
4611 .RSs
4612 .IPs 0
4613 stereo
4614 .IPs 1
4615 left channel
4616 .IPs 2
4617 right channel
4619 .PD 1
4622 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4623 Specify the software scaler algorithm to be used with the \-zoom option.
4624 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4625 .sp 1
4626 Available types are:
4627 .sp 1
4628 .PD 0
4629 .RSs
4630 .IPs 0
4631 fast bilinear
4632 .IPs 1
4633 bilinear
4634 .IPs 2
4635 bicubic (good quality) (default)
4636 .IPs 3
4637 experimental
4638 .IPs 4
4639 nearest neighbor (bad quality)
4640 .IPs 5
4641 area
4642 .IPs 6
4643 luma bicubic / chroma bilinear
4644 .IPs 7
4645 gauss
4646 .IPs 8
4647 sincR
4648 .IPs 9
4649 lanczos
4650 .IPs 10
4651 natural bicubic spline
4653 .PD 1
4654 .sp 1
4656 .I NOTE:
4657 Some \-sws options are tunable.
4658 The description of the scale video filter has further information.
4662 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
4663 Specify a priority list of video codecs to be used, according to their codec
4664 name in codecs.conf.
4665 Use a '\-' before the codec name to omit it.
4666 Use a '+' before the codec name to force it, this will likely crash!
4667 If the list has a trailing ',' MPlayer will fall back on codecs not
4668 contained in the list.
4670 .I NOTE:
4671 See \-vc help for a full list of available codecs.
4672 .sp 1
4673 .I EXAMPLE:
4674 .PD 0
4675 .RSs
4676 .IPs "\-vc divx"
4677 Force Win32/\:VfW DivX codec, no fallback.
4678 .IPs "\-vc \-divxds,\-divx,"
4679 Skip Win32 DivX codecs.
4680 .IPs "\-vc ffmpeg12,mpeg12,"
4681 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
4683 .PD 1
4686 .B \-vfm <driver1,driver2,...>
4687 Specify a priority list of video codec families to be used, according
4688 to their names in codecs.conf.
4689 Falls back on the default codecs if none of the given codec families work.
4691 .I NOTE:
4692 See \-vfm help for a full list of available codec families.
4693 .sp 1
4694 .I EXAMPLE:
4695 .PD 0
4696 .RSs
4697 .IPs "\-vfm ffmpeg,dshow,vfw"
4698 Try the libavcodec, then Directshow, then VfW codecs and fall back
4699 on others, if they do not work.
4700 .IPs "\-vfm xanim"
4701 Try XAnim codecs first.
4703 .PD 1
4706 .B \-x <x> (also see \-zoom) (MPlayer only)
4707 Scale image to width <x> (if software/\:hardware scaling is available).
4708 Disables aspect calculations.
4711 .B \-xvidopts <option1:option2:...>
4712 Specify additional parameters when decoding with Xvid.
4714 .I NOTE:
4715 Since libavcodec is faster than Xvid you might want to use the libavcodec
4716 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
4717 .sp 1
4718 Xvid's internal postprocessing filters:
4719 .PD 0
4720 .RSs
4721 .IPs "deblock-chroma (also see \-vf pp)"
4722 chroma deblock filter
4723 .IPs "deblock-luma (also see \-vf pp)"
4724 luma deblock filter
4725 .IPs "dering-luma (also see \-vf pp)"
4726 luma deringing filter
4727 .IPs "dering-chroma (also see \-vf pp)"
4728 chroma deringing filter
4729 .IPs "filmeffect (also see \-vf noise)"
4730 Adds artificial film grain to the video.
4731 May increase perceived quality, while lowering true quality.
4733 .sp 1
4735 rendering methods:
4737 .PD 0
4738 .RSs
4739 .IPs "dr2\ \ "
4740 Activate direct rendering method 2.
4741 .IPs nodr2
4742 Deactivate direct rendering method 2.
4744 .PD 1
4747 .B \-xy <value> (also see \-zoom)
4748 .PD 0
4749 .RSs
4750 .IPs value<=8
4751 Scale image by factor <value>.
4752 .IPs value>8
4753 Set width to value and calculate height to keep correct aspect ratio.
4755 .PD 1
4758 .B \-y <y> (also see \-zoom) (MPlayer only)
4759 Scale image to height <y> (if software/\:hardware scaling is available).
4760 Disables aspect calculations.
4763 .B "\-zoom\ \ "
4764 Allow software scaling, where available.
4765 This will allow scaling with output drivers (like x11, fbdev) that
4766 do not support hardware scaling where MPlayer disables scaling by
4767 default for performance reasons.
4771 .SH "AUDIO FILTERS"
4772 Audio filters allow you to modify the audio stream and its properties.
4773 The syntax is:
4776 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
4777 Setup a chain of audio filters.
4779 .I NOTE:
4780 To get a full list of available audio filters, see \-af help.
4781 .sp 1
4782 Audio filters are managed in lists.
4783 There are a few commands to manage the filter list.
4786 .B \-af\-add <filter1[,filter2,...]>
4787 Appends the filters given as arguments to the filter list.
4790 .B \-af\-pre <filter1[,filter2,...]>
4791 Prepends the filters given as arguments to the filter list.
4794 .B \-af\-del <index1[,index2,...]>
4795 Deletes the filters at the given indexes.
4796 Index numbers start at 0, negative numbers address the end of the
4797 list (\-1 is the last).
4800 .B \-af\-clr
4801 Completely empties the filter list.
4803 Available filters are:
4806 .B resample[=srate[:sloppy[:type]]]
4807 Changes the sample rate of the audio stream.
4808 Can be used if you have a fixed frequency sound card or if you are
4809 stuck with an old sound card that is only capable of max 44.1kHz.
4810 This filter is automatically enabled if necessary.
4811 It only supports 16-bit integer and float in native-endian format as input.
4813 .I NOTE:
4814 With MEncoder, you need to also use \-srate <srate>.
4815 .PD 0
4816 .RSs
4817 .IPs <srate>
4818 output sample frequency in Hz.
4819 The valid range for this parameter is 8000 to 192000.
4820 If the input and output sample frequency are the same or if this
4821 parameter is omitted the filter is automatically unloaded.
4822 A high sample frequency normally improves the audio quality,
4823 especially when used in combination with other filters.
4824 .IPs <sloppy>
4825 Allow (1) or disallow (0) the output frequency to differ slightly
4826 from the frequency given by <srate> (default: 1).
4827 Can be used if the startup of the playback is extremely slow.
4828 .IPs <type>
4829 Selects which resampling method to use.
4830 .RSss
4831 0: linear interpolation (fast, poor quality especially when upsampling)
4833 1: polyphase filterbank and integer processing
4835 2: polyphase filterbank and floating point processing (slow, best quality)
4836 .REss
4837 .PD 1
4839 .sp 1
4841 .I EXAMPLE:
4843 .PD 0
4844 .RSs
4845 .IPs "mplayer \-af resample=44100:0:0"
4846 would set the output frequency of the resample filter to 44100Hz using
4847 exact output frequency scaling and linear interpolation.
4849 .PD 1
4852 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
4853 Changes the sample rate of the audio stream to an integer <srate> in Hz.
4854 It only supports the 16-bit native-endian format.
4856 .I NOTE:
4857 With MEncoder, you need to also use \-srate <srate>.
4858 .PD 0
4859 .RSs
4860 .IPs <srate>
4861 the output sample rate
4862 .IPs <length>
4863 length of the filter with respect to the lower sampling rate (default: 16)
4864 .IPs <linear>
4865 if 1 then filters will be linearly interpolated between polyphase entries
4866 .IPs <count>
4867 log2 of the number of polyphase entries
4868 (..., 10->1024, 11->2048, 12->4096, ...)
4869 (default: 10->1024)
4870 .IPs <cutoff>
4871 cutoff frequency (0.0\-1.0), default set depending upon filter length
4873 .PD 1
4876 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
4877 Encode multi-channel audio to AC-3 at runtime using libavcodec.
4878 Supports 16-bit native-endian input format, maximum 6 channels.
4879 The output is big-endian when outputting a raw AC-3 stream,
4880 native-endian when outputting to S/PDIF.
4881 The output sample rate of this filter is same with the input sample rate.
4882 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
4883 Otherwise a resampling filter is auto-inserted before this filter to make
4884 the input and output sample rate be 48kHz.
4885 You need to specify '\-channels N' to make the decoder decode audio into
4886 N-channel, then the filter can encode the N-channel input to AC-3.
4888 .PD 0
4889 .RSs
4890 .IPs <tospdif>
4891 Output raw AC-3 stream if zero or not set,
4892 output to S/PDIF for passthrough when <tospdif> is set non-zero.
4893 .IPs <bitrate>
4894 The bitrate to encode the AC-3 stream.
4895 Set it to either 384 or 384000 to get 384kbits.
4896 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
4897               320, 384, 448, 512, 576, 640
4898 Default bitrate is based on the input channel number:
4899 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
4900 .IPs <minchn>
4901 If the input channel number is less than <minchn>, the filter will
4902 detach itself (default: 5).
4904 .PD 1
4907 .B sweep[=speed]
4908 Produces a sine sweep.
4909 .PD 0
4910 .RSs
4911 .IPs <0.0\-1.0>
4912 Sine function delta, use very low values to hear the sweep.
4914 .PD 1
4917 .B sinesuppress[=freq:decay]
4918 Remove a sine at the specified frequency.
4919 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
4920 It probably only works on mono input.
4921 .PD 0
4922 .RSs
4923 .IPs <freq>
4924 The frequency of the sine which should be removed (in Hz) (default: 50)
4925 .IPs <decay>
4926 Controls the adaptivity (a larger value will make the filter adapt to
4927 amplitude and phase changes quicker, a smaller value will make the
4928 adaptation slower) (default: 0.0001).
4929 Reasonable values are around 0.001.
4931 .PD 1
4934 .B hrtf[=flag]
4935 Head-related transfer function: Converts multichannel audio to
4936 2 channel output for headphones, preserving the spatiality of the sound.
4937 .sp 1
4938 .PD 0
4940 .IPs "Flag  Meaning"
4941 .IPs "m     matrix decoding of the rear channel"
4942 .IPs "s     2-channel matrix decoding"
4943 .IPs "0     no matrix decoding (default)"
4945 .PD 1
4948 .B equalizer=[g1:g2:g3:...:g10]
4949 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
4950 This means that it works regardless of what type of audio is being played back.
4951 The center frequencies for the 10 bands are:
4952 .sp 1
4953 .PD 0
4955 .IPs "No. frequency"
4956 .IPs "0    31.25 Hz"
4957 .IPs "1    62.50 Hz"
4958 .IPs "2   125.00 Hz"
4959 .IPs "3   250.00 Hz"
4960 .IPs "4   500.00 Hz"
4961 .IPs "5    1.00 kHz"
4962 .IPs "6    2.00 kHz"
4963 .IPs "7    4.00 kHz"
4964 .IPs "8    8.00 kHz"
4965 .IPs "9   16.00 kHz"
4967 .PD 1
4968 .sp 1
4970 If the sample rate of the sound being played is lower than the center
4971 frequency for a frequency band, then that band will be disabled.
4972 A known bug with this filter is that the characteristics for the
4973 uppermost band are not completely symmetric if the sample
4974 rate is close to the center frequency of that band.
4975 This problem can be worked around by upsampling the sound
4976 using the resample filter before it reaches this filter.
4978 .PD 0
4979 .RSs
4980 .IPs <g1>:<g2>:<g3>:...:<g10>
4981 floating point numbers representing the gain in dB
4982 for each frequency band (\-12\-12)
4984 .sp 1
4986 .I EXAMPLE:
4988 .RSs
4989 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
4990 Would amplify the sound in the upper and lower frequency region
4991 while canceling it almost completely around 1kHz.
4993 .PD 1
4996 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
4997 Can be used for adding, removing, routing and copying audio channels.
4998 If only <nch> is given the default routing is used, it works as
4999 follows: If the number of output channels is bigger than the number of
5000 input channels empty channels are inserted (except mixing from mono to
5001 stereo, then the mono channel is repeated in both of the output
5002 channels).
5003 If the number of output channels is smaller than the number
5004 of input channels the exceeding channels are truncated.
5005 .PD 0
5006 .RSs
5007 .IPs <nch>
5008 number of output channels (1\-6)
5009 .IPs "<nr>\ "
5010 number of routes (1\-6)
5011 .IPs <from1:to1:from2:to2:from3:to3:...>
5012 Pairs of numbers between 0 and 5 that define where to route each channel.
5014 .sp 1
5016 .I EXAMPLE:
5018 .RSs
5019 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5020 Would change the number of channels to 4 and set up 4 routes that
5021 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5022 Observe that if media containing two channels was played back, channels
5023 2 and 3 would contain silence but 0 and 1 would still be swapped.
5024 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5025 Would change the number of channels to 6 and set up 4 routes
5026 that copy channel 0 to channels 0 to 3.
5027 Channel 4 and 5 will contain silence.
5029 .PD 1
5032 .B format[=format] (also see \-format)
5033 Convert between different sample formats.
5034 Automatically enabled when needed by the sound card or another filter.
5035 .PD 0
5036 .RSs
5037 .IPs <format>
5038 Sets the desired format.
5039 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5040 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5041 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5042 and 'ne' the endianness of the computer MPlayer is running on).
5043 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5044 Exceptions to this rule that are also valid format specifiers: u8, s8,
5045 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5047 .PD 1
5050 .B volume[=v[:sc]]
5051 Implements software volume control.
5052 Use this filter with caution since it can reduce the signal
5053 to noise ratio of the sound.
5054 In most cases it is best to set the level for the PCM sound to max,
5055 leave this filter out and control the output level to your
5056 speakers with the master volume control of the mixer.
5057 In case your sound card has a digital PCM mixer instead of an analog
5058 one, and you hear distortion, use the MASTER mixer instead.
5059 If there is an external amplifier connected to the computer (this
5060 is almost always the case), the noise level can be minimized by
5061 adjusting the master level and the volume knob on the amplifier
5062 until the hissing noise in the background is gone.
5064 This filter has a second feature: It measures the overall maximum
5065 sound level and prints out that level when MPlayer exits.
5066 This volume estimate can be used for setting the sound level in
5067 MEncoder such that the maximum dynamic range is utilized.
5069 .I NOTE:
5070 This filter is not reentrant and can therefore only be enabled
5071 once for every audio stream.
5072 .PD 0
5073 .RSs
5074 .IPs "<v>\ \ "
5075 Sets the desired gain in dB for all channels in the stream
5076 from \-200dB to +60dB, where \-200dB mutes the sound
5077 completely and +60dB equals a gain of 1000 (default: 0).
5078 .IPs "<sc>\ "
5079 Turns soft clipping on (1) or off (0).
5080 Soft-clipping can make the sound more smooth if very
5081 high volume levels are used.
5082 Enable this option if the dynamic range of the
5083 loudspeakers is very low.
5085 .I WARNING:
5086 This feature creates distortion and should be considered a last resort.
5088 .sp 1
5090 .I EXAMPLE:
5092 .RSs
5093 .IPs "mplayer \-af volume=10.1:0 media.avi"
5094 Would amplify the sound by 10.1dB and hard-clip if the
5095 sound level is too high.
5097 .PD 1
5100 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5101 Mixes channels arbitrarily.
5102 Basically a combination of the volume and the channels filter
5103 that can be used to down-mix many channels to only a few,
5104 e.g.\& stereo to mono or vary the "width" of the center
5105 speaker in a surround sound system.
5106 This filter is hard to use, and will require some tinkering
5107 before the desired result is obtained.
5108 The number of options for this filter depends on
5109 the number of output channels.
5110 An example how to downmix a six-channel file to two channels with
5111 this filter can be found in the examples section near the end.
5112 .PD 0
5113 .RSs
5114 .IPs "<n>\ \ "
5115 number of output channels (1\-6)
5116 .IPs <Lij>
5117 How much of input channel i is mixed into output channel j (0\-1).
5118 So in principle you first have n numbers saying what to do with the
5119 first input channel, then n numbers that act on the second input channel
5120 etc.
5121 If you do not specify any numbers for some input channels, 0 is assumed.
5123 .sp 1
5125 .I EXAMPLE:
5127 .RSs
5128 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5129 Would down-mix from stereo to mono.
5130 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5131 Would give 3 channel output leaving channels 0 and 1 intact,
5132 and mix channels 0 and 1 into output channel 2 (which could
5133 be sent to a subwoofer for example).
5135 .PD 1
5138 .B sub[=fc:ch]
5139 Adds a subwoofer channel to the audio stream.
5140 The audio data used for creating the subwoofer channel is
5141 an average of the sound in channel 0 and channel 1.
5142 The resulting sound is then low-pass filtered by a 4th order
5143 Butterworth filter with a default cutoff frequency of 60Hz
5144 and added to a separate channel in the audio stream.
5146 .I Warning:
5147 Disable this filter when you are playing DVDs with Dolby
5148 Digital 5.1 sound, otherwise this filter will disrupt
5149 the sound to the subwoofer.
5150 .PD 0
5151 .RSs
5152 .IPs "<fc>\ "
5153 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5154 For the best result try setting the cutoff frequency as low as possible.
5155 This will improve the stereo or surround sound experience.
5156 .IPs "<ch>\ "
5157 Determines the channel number in which to insert the sub-channel audio.
5158 Channel number can be between 0 and 5 (default: 5).
5159 Observe that the number of channels will automatically
5160 be increased to <ch> if necessary.
5162 .sp 1
5164 .I EXAMPLE:
5166 .RSs
5167 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5168 Would add a sub-woofer channel with a cutoff frequency of
5169 100Hz to output channel 4.
5171 .PD 1
5174 .B "center\ "
5175 Creates a center channel from the front channels.
5176 May currently be low quality as it does not implement a
5177 high-pass filter for proper extraction yet, but averages and
5178 halves the channels instead.
5179 .PD 0
5180 .RSs
5181 .IPs "<ch>\ "
5182 Determines the channel number in which to insert the center channel.
5183 Channel number can be between 0 and 5 (default: 5).
5184 Observe that the number of channels will automatically
5185 be increased to <ch> if necessary.
5187 .PD 1
5190 .B surround[=delay]
5191 Decoder for matrix encoded surround sound like Dolby Surround.
5192 Many files with 2 channel audio actually contain matrixed surround sound.
5193 Requires a sound card supporting at least 4 channels.
5194 .PD 0
5195 .RSs
5196 .IPs <delay>
5197 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5198 This delay should be set as follows: If d1 is the distance
5199 from the listening position to the front speakers and d2 is the distance
5200 from the listening position to the rear speakers, then the delay should
5201 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5203 .sp 1
5205 .I EXAMPLE:
5207 .RSs
5208 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5209 Would add surround sound decoding with 15ms delay for the sound to the
5210 rear speakers.
5212 .PD 1
5215 .B delay[=ch1:ch2:...]
5216 Delays the sound to the loudspeakers such that the sound from the
5217 different channels arrives at the listening position simultaneously.
5218 It is only useful if you have more than 2 loudspeakers.
5219 .PD 0
5220 .RSs
5221 .IPs ch1,ch2,...
5222 The delay in ms that should be imposed on each channel
5223 (floating point number between 0 and 1000).
5225 .PD 1
5226 .sp 1
5228 To calculate the required delay for the different channels do as follows:
5229 .IP 1. 3
5230 Measure the distance to the loudspeakers in meters in relation
5231 to your listening position, giving you the distances s1 to s5
5232 (for a 5.1 system).
5233 There is no point in compensating for the subwoofer (you will not hear the
5234 difference anyway).
5235 .IP 2. 3
5236 Subtract the distances s1 to s5 from the maximum distance,
5237 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5238 .IP 3.
5239 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5241 .PD 0
5242 .sp 1
5244 .I EXAMPLE:
5246 .RSs
5247 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5248 Would delay front left and right by 10.5ms, the two rear channels
5249 and the sub by 0ms and the center channel by 7ms.
5251 .PD 1
5254 .B export[=mmapped_file[:nsamples]]
5255 Exports the incoming signal to other processes using memory mapping (mmap()).
5256 Memory mapped areas contain a header:
5257 .sp 1
5259 int nch                      /*number of channels*/
5260 int size                     /*buffer size*/
5261 unsigned long long counter   /*Used to keep sync, updated every
5262                                time new data is exported.*/
5264 .sp 1
5265 The rest is payload (non-interleaved) 16 bit data.
5266 .PD 0
5267 .RSs
5268 .IPs <mmapped_file>
5269 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5270 .IPs <nsamples>
5271 number of samples per channel (default: 512)
5273 .sp 1
5275 .I EXAMPLE:
5277 .RSs
5278 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5279 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5281 .PD 1
5284 .B extrastereo[=mul]
5285 (Linearly) increases the difference between left and right channels
5286 which adds some sort of "live" effect to playback.
5287 .PD 0
5288 .RSs
5289 .IPs <mul>
5290 Sets the difference coefficient (default: 2.5).
5291 0.0 means mono sound (average of both channels), with 1.0 sound will be
5292 unchanged, with \-1.0 left and right channels will be swapped.
5294 .PD 1
5297 .B volnorm[=method:target]
5298 Maximizes the volume without distorting the sound.
5299 .PD 0
5300 .RSs
5301 .IPs <method>
5302 Sets the used method.
5303 .RSss
5304 1: Use a single sample to smooth the variations via the standard
5305 weighted mean over past samples (default).
5307 2: Use several samples to smooth the variations via the standard
5308 weighted mean over past samples.
5309 .REss
5310 .IPs <target>
5311 Sets the target amplitude as a fraction of the maximum for the
5312 sample type (default: 0.25).
5314 .PD 1
5317 .B ladspa=file:label[:controls...]
5318 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5319 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5320 .PD 0
5321 .RSs
5322 .IPs <file>
5323 Specifies the LADSPA plugin library file.
5324 If LADSPA_PATH is set, it searches for the specified file.
5325 If it is not set, you must supply a fully specified pathname.
5326 .IPs <label>
5327 Specifies the filter within the library.
5328 Some libraries contain only one filter, but others contain many of them.
5329 Entering 'help' here, will list all available filters within the specified
5330 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5331 .IPs <controls>
5332 Controls are zero or more floating point values that determine the
5333 behavior of the loaded plugin (for example delay, threshold or gain).
5334 In verbose mode (add \-v to the MPlayer command line), all available controls
5335 and their valid ranges are printed.
5336 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5338 .PD 1
5341 .B "comp\ \ \ "
5342 Compressor/expander filter usable for microphone input.
5343 Prevents artifacts on very loud sound and raises the volume on
5344 very low sound.
5345 This filter is untested, maybe even unusable.
5348 .B "gate\ \ \ "
5349 Noise gate filter similar to the comp audio filter.
5350 This filter is untested, maybe even unusable.
5353 .B karaoke
5354 Simple voice removal filter exploiting the fact that voice is
5355 usually recorded with mono gear and later 'center' mixed onto
5356 the final audio stream.
5357 Beware that this filter will turn your signal into mono.
5358 Works well for 2 channel tracks; do not bother trying it
5359 on anything but 2 channel stereo.
5362 .B scaletempo[=option1:option2:...]
5363 Scales audio tempo without altering pitch, optionally synced to playback
5364 speed (default).
5366 This works by playing \'stride\' ms of audio at normal speed then
5367 consuming \'stride*scale\' ms of input audio.
5368 It pieces the strides together by blending \'overlap\'% of stride with
5369 audio following the previous stride.
5370 It optionally performs a short statistical analysis on the next \'search\'
5371 ms of audio to determine the best overlap position.
5372 .PD 0
5373 .RSs
5374 .IPs scale=<amount>
5375 Nominal amount to scale tempo.
5376 Scales this amount in addition to speed.
5377 (default: 1.0)
5378 .IPs stride=<amount>
5379 Length in milliseconds to output each stride.
5380 Too high of value will cause noticable skips at high scale amounts and
5381 an echo at low scale amounts.
5382 Very low values will alter pitch.
5383 Increasing improves performance.
5384 (default: 60)
5385 .IPs overlap=<percent>
5386 Percentage of stride to overlap.
5387 Decreasing improves performance.
5388 (default: .20)
5389 .IPs search=<amount>
5390 Length in milliseconds to search for best overlap position.
5391 Decreasing improves performance greatly.
5392 On slow systems, you will probably want to set this very low.
5393 (default: 14)
5394 .IPs speed=<tempo|pitch|both|none>
5395 Set response to speed change.
5396 .RSss
5397 .IPs tempo
5398 Scale tempo in sync with speed (default).
5399 .IPs pitch
5400 Reverses effect of filter.
5401 Scales pitch without altering tempo.
5402 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5403 to your input.conf to step by musical semi-tones.
5404 .I WARNING:
5405 Loses sync with video.
5406 .IPs both
5407 Scale both tempo and pitch.
5408 .IPs none
5409 Ignore speed changes.
5412 .sp 1
5414 .I EXAMPLE:
5416 .RSs
5417 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5418 Would playback media at 1.2x normal speed, with audio at normal pitch.
5419 Changing playback speed, would change audio tempo to match.
5420 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5421 Would playback media at 1.2x normal speed, with audio at normal pitch,
5422 but changing playback speed has no effect on audio tempo.
5423 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5424 Would tweak the quality and performace parameters.
5425 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5426 Would make scaletempo use float code.
5427 Maybe faster on some platforms.
5428 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5429 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5430 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5432 .PD 1
5436 .SH "VIDEO FILTERS"
5437 Video filters allow you to modify the video stream and its properties.
5438 The syntax is:
5441 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5442 Setup a chain of video filters.
5444 Many parameters are optional and set to default values if omitted.
5445 To explicitly use a default value set a parameter to '\-1'.
5446 Parameters w:h means width x height in pixels, x:y means x;y position counted
5447 from the upper left corner of the bigger image.
5449 .I NOTE:
5450 To get a full list of available video filters, see \-vf help.
5451 .sp 1
5452 Video filters are managed in lists.
5453 There are a few commands to manage the filter list.
5456 .B \-vf\-add <filter1[,filter2,...]>
5457 Appends the filters given as arguments to the filter list.
5460 .B \-vf\-pre <filter1[,filter2,...]>
5461 Prepends the filters given as arguments to the filter list.
5464 .B \-vf\-del <index1[,index2,...]>
5465 Deletes the filters at the given indexes.
5466 Index numbers start at 0, negative numbers address the end of the
5467 list (\-1 is the last).
5470 .B \-vf\-clr
5471 Completely empties the filter list.
5473 With filters that support it, you can access parameters by their name.
5476 .B \-vf <filter>=help
5477 Prints the parameter names and parameter value ranges for a particular
5478 filter.
5481 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5482 Sets a named parameter to the given value.
5483 Use on and off or yes and no to set flag parameters.
5485 Available filters are:
5488 .B crop[=w:h:x:y]
5489 Crops the given part of the image and discards the rest.
5490 Useful to remove black bands from widescreen movies.
5491 .PD 0
5492 .RSs
5493 .IPs <w>,<h>
5494 Cropped width and height, defaults to original width and height.
5495 .IPs <x>,<y>
5496 Position of the cropped picture, defaults to center.
5498 .PD 1
5501 .B cropdetect[=limit:round]
5502 Calculates necessary cropping parameters and prints the recommended parameters
5503 to stdout.
5504 .PD 0
5505 .RSs
5506 .IPs <limit>
5507 Threshold, which can be optionally specified from nothing (0) to
5508 everything (255) (default: 24).
5510 .IPs <round>
5511 Value which the width/\:height should be divisible by (default: 16).
5512 The offset is automatically adjusted to center the video.
5513 Use 2 to get only even dimensions (needed for 4:2:2 video).
5514 16 is best when encoding to most video codecs.
5516 .PD 1
5519 .B rectangle[=w:h:x:y]
5520 Draws a rectangle of the requested width and height at the specified
5521 coordinates over the image and prints current rectangle parameters
5522 to the console.
5523 This can be used to find optimal cropping parameters.
5524 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5525 you can move and resize the rectangle on the fly.
5526 .PD 0
5527 .RSs
5528 .IPs <w>,<h>
5529 width and height (default: \-1, maximum possible width where boundaries
5530 are still visible.)
5531 .IPs <x>,<y>
5532 top left corner position (default: \-1, uppermost leftmost)
5534 .PD 1
5537 .B expand[=w:h:x:y:o:a:r]
5538 Expands (not scales) movie resolution to the given value and places the
5539 unscaled original at coordinates x, y.
5540 Can be used for placing subtitles/\:OSD in the resulting black bands.
5541 .RSs
5542 .IPs <w>,<h>
5543 Expanded width,height (default: original width,height).
5544 Negative values for w and h are treated as offsets to the original size.
5545 .sp 1
5546 .I EXAMPLE:
5547 .PD 0
5548 .RSs
5549 .IP expand=0:\-50:0:0
5550 Adds a 50 pixel border to the bottom of the picture.
5552 .PD 1
5553 .IPs <x>,<y>
5554 position of original image on the expanded image (default: center)
5555 .IPs "<o>\ \ "
5556 OSD/\:subtitle rendering
5557 .RSss
5558 0: disable (default)
5560 1: enable
5561 .REss
5562 .IPs "<a>\ \ "
5563 Expands to fit an aspect instead of a resolution (default: 0).
5564 .sp 1
5565 .I EXAMPLE:
5566 .PD 0
5567 .RSs
5568 .IP expand=800:::::4/3
5569 Expands to 800x600, unless the source is higher resolution, in which
5570 case it expands to fill a 4/3 aspect.
5572 .PD 1
5573 .IPs "<r>\ \ "
5574 Rounds up to make both width and height divisible by <r> (default: 1).
5578 .B flip (also see \-flip)
5579 Flips the image upside down.
5582 .B "mirror\ "
5583 Mirrors the image on the Y axis.
5586 .B rotate[=<0\-7>]
5587 Rotates the image by 90 degrees and optionally flips it.
5588 For values between 4\-7 rotation is only done if the movie geometry is
5589 portrait and not landscape.
5590 .RSs
5591 .IPs 0
5592 Rotate by 90 degrees clockwise and flip (default).
5593 .IPs 1
5594 Rotate by 90 degrees clockwise.
5595 .IPs 2
5596 Rotate by 90 degrees counterclockwise.
5597 .IPs 3
5598 Rotate by 90 degrees counterclockwise and flip.
5602 .B scale[=w:h[:ilaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5603 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5604 colorspace conversion (also see \-sws).
5605 .RSs
5606 .IPs <w>,<h>
5607 scaled width/\:height (default: original width/\:height)
5609 .I NOTE:
5610 If \-zoom is used, and underlying filters (including libvo) are
5611 incapable of scaling, it defaults to d_width/\:d_height!
5612 .RSss
5613  0:   scaled d_width/\:d_height
5615 \-1:   original width/\:height
5617 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
5619 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
5621 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
5622 .REss
5623 .IPs <ilaced>
5624 Toggle interlaced scaling.
5625 .RSss
5626 0: off (default)
5628 1: on
5629 .REss
5630 .IPs <chr_drop>
5631 chroma skipping
5632 .RSss
5633 0: Use all available input lines for chroma.
5635 1: Use only every 2. input line for chroma.
5637 2: Use only every 4. input line for chroma.
5639 3: Use only every 8. input line for chroma.
5640 .REss
5641 .IPs "<par>[:<par2>] (also see \-sws)"
5642 Set some scaling parameters depending on the type of scaler selected
5643 with \-sws.
5644 .RSss
5645 \-sws 2 (bicubic):  B (blurring) and C (ringing)
5647 0.00:0.60 default
5649 0.00:0.75 VirtualDub's "precise bicubic"
5651 0.00:0.50 Catmull-Rom spline
5653 0.33:0.33 Mitchell-Netravali spline
5655 1.00:0.00 cubic B-spline
5657 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
5659 \-sws 9 (lanczos):  filter length (1\-10)
5660 .REss
5661 .IPs <presize>
5662 Scale to preset sizes.
5663 .RSss
5664 qntsc:   352x240 (NTSC quarter screen)
5666 qpal:    352x288 (PAL quarter screen)
5668 ntsc:    720x480 (standard NTSC)
5670 pal:     720x576 (standard PAL)
5672 sntsc:   640x480 (square pixel NTSC)
5674 spal:    768x576 (square pixel PAL)
5675 .REss
5676 .IPs <noup>
5677 Disallow upscaling past the original dimensions.
5678 .RSss
5679 0: Allow upscaling (default).
5681 1: Disallow upscaling if one dimension exceeds its original value.
5683 2: Disallow upscaling if both dimensions exceed their original values.
5684 .REss
5685 .IPs <arnd>
5686 Accurate rounding for the vertical scaler, which may be faster
5687 or slower than the default rounding.
5688 .RSss
5689 0: Disable accurate rounding (default).
5691 1: Enable accurate rounding.
5692 .REss
5696 .B dsize[=aspect|w:h:aspect-method:r]
5697 Changes the intended display size/\:aspect at an arbitrary point in the
5698 filter chain.
5699 Aspect can be given as a fraction (4/3) or floating point number
5700 (1.33).
5701 Alternatively, you may specify the exact display width and height
5702 desired.
5703 Note that this filter does
5704 .B not
5705 do any scaling itself; it just affects
5706 what later scalers (software or hardware) will do when auto-scaling to
5707 correct aspect.
5708 .RSs
5709 .IPs <w>,<h>
5710 New display width and height.
5711 Can also be these special values:
5712 .RSss
5713  0:   original display width and height
5715 \-1:   original video width and height (default)
5717 \-2:   Calculate w/h using the other dimension and the original display
5718 aspect ratio.
5720 \-3:   Calculate w/h using the other dimension and the original video
5721 aspect ratio.
5722 .REss
5723 .sp 1
5724 .I EXAMPLE:
5725 .PD 0
5726 .RSs
5727 .IP dsize=800:\-2
5728 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
5729 800x450 for a 16/9 aspect video.
5731 .IPs <aspect-method>
5732 Modifies width and height according to original aspect ratios.
5733 .RSss
5734 \-1: Ignore original aspect ratio (default).
5736  0: Keep display aspect ratio by using <w> and <h> as maximum
5737 resolution.
5739  1: Keep display aspect ratio by using <w> and <h> as minimum
5740 resolution.
5742  2: Keep video aspect ratio by using <w> and <h> as maximum
5743 resolution.
5745  3: Keep video aspect ratio by using <w> and <h> as minimum
5746 resolution.
5747 .REss
5748 .sp 1
5749 .I EXAMPLE:
5750 .PD 0
5751 .RSs
5752 .IP dsize=800:600:0
5753 Specifies a display resolution of at most 800x600, or smaller, in order
5754 to keep aspect.
5756 .PD 1
5757 .IPs "<r>\ \ "
5758 Rounds up to make both width and height divisible by <r> (default: 1).
5762 .B "yuy2\ \ \ "
5763 Forces software YV12/\:I420/\:422P to YUY2 conversion.
5764 Useful for video cards/\:drivers with slow YV12 but fast YUY2 support.
5767 .B "yvu9\ \ \ "
5768 Forces software YVU9 to YV12 colorspace conversion.
5769 Deprecated in favor of the software scaler.
5772 .B "yuvcsp\ "
5773 Clamps YUV color values to the CCIR 601 range without doing real conversion.
5776 .B rgb2bgr[=swap]
5777 RGB 24/32 <\-> BGR 24/32 colorspace conversion.
5778 .PD 0
5779 .RSs
5780 .IPs "swap\ "
5781 Also perform  R <\-> B swapping.
5783 .PD 1
5786 .B palette
5787 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
5790 .B format[=fourcc]
5791 Restricts the colorspace for the next filter without doing any conversion.
5792 Use together with the scale filter for a real conversion.
5794 .I NOTE:
5795 For a list of available formats see format=fmt=help.
5796 .PD 0
5797 .RSs
5798 .IPs <fourcc>
5799 format name like rgb15, bgr24, yv12, etc (default: yuy2)
5801 .PD 1
5804 .B noformat[=fourcc]
5805 Restricts the colorspace for the next filter without doing any conversion.
5806 Unlike the format filter, this will allow any colorspace
5807 .B except
5808 the one you specify.
5810 .I NOTE:
5811 For a list of available formats see noformat=fmt=help.
5812 .PD 0
5813 .RSs
5814 .IPs <fourcc>
5815 format name like rgb15, bgr24, yv12, etc (default: yv12)
5817 .PD 1
5820 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
5821 Enables the specified chain of postprocessing subfilters.
5822 Subfilters must be separated by '/' and can be disabled by
5823 prepending a '\-'.
5824 Each subfilter and some options have a short and a long name that can be
5825 used interchangeably, i.e.\& dr/dering are the same.
5826 All subfilters share common options to determine their scope:
5827 .PD 0
5828 .RSs
5829 .IPs a/autoq
5830 Automatically switch the subfilter off if the CPU is too slow.
5831 .IPs c/chrom
5832 Do chrominance filtering, too (default).
5833 .IPs y/nochrom
5834 Do luminance filtering only (no chrominance).
5835 .IPs n/noluma
5836 Do chrominance filtering only (no luminance).
5838 .PD 1
5839 .sp 1
5842 .I NOTE:
5843 \-pphelp shows a list of available subfilters.
5844 .sp 1
5845 Available subfilters are
5847 .RSs
5848 .IPs hb/hdeblock[:difference[:flatness]]
5849 horizontal deblocking filter
5850 .RSss
5851 <difference>: Difference factor where higher values mean
5852 more deblocking (default: 32).
5854 <flatness>: Flatness threshold where lower values mean
5855 more deblocking (default: 39).
5856 .REss
5857 .IPs vb/vdeblock[:difference[:flatness]]
5858 vertical deblocking filter
5859 .RSss
5860 <difference>: Difference factor where higher values mean
5861 more deblocking (default: 32).
5863 <flatness>: Flatness threshold where lower values mean
5864 more deblocking (default: 39).
5865 .REss
5866 .IPs ha/hadeblock[:difference[:flatness]]
5867 accurate horizontal deblocking filter
5868 .RSss
5869 <difference>: Difference factor where higher values mean
5870 more deblocking (default: 32).
5872 <flatness>: Flatness threshold where lower values mean
5873 more deblocking (default: 39).
5874 .REss
5875 .IPs va/vadeblock[:difference[:flatness]]
5876 accurate vertical deblocking filter
5877 .RSss
5878 <difference>: Difference factor where higher values mean
5879 more deblocking (default: 32).
5881 <flatness>: Flatness threshold where lower values mean
5882 more deblocking (default: 39).
5883 .REss
5884 .sp 1
5885 The horizontal and vertical deblocking filters share the
5886 difference and flatness values so you cannot set
5887 different horizontal and vertical thresholds.
5888 .sp 1
5889 .IPs h1/x1hdeblock
5890 experimental horizontal deblocking filter
5891 .IPs v1/x1vdeblock
5892 experimental vertical deblocking filter
5893 .IPs dr/dering
5894 deringing filter
5895 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
5896 temporal noise reducer
5897 .RSss
5898 <threshold1>: larger -> stronger filtering
5900 <threshold2>: larger -> stronger filtering
5902 <threshold3>: larger -> stronger filtering
5903 .REss
5904 .IPs al/autolevels[:f/fullyrange]
5905 automatic brightness / contrast correction
5906 .RSss
5907 f/fullyrange: Stretch luminance to (0\-255).
5908 .REss
5909 .IPs lb/linblenddeint
5910 Linear blend deinterlacing filter that deinterlaces the given block
5911 by filtering all lines with a (1 2 1) filter.
5912 .IPs li/linipoldeint
5913 Linear interpolating deinterlacing filter that deinterlaces the given block
5914 by linearly interpolating every second line.
5915 .IPs ci/cubicipoldeint
5916 Cubic interpolating deinterlacing filter deinterlaces the given block
5917 by cubically interpolating every second line.
5918 .IPs md/mediandeint
5919 Median deinterlacing filter that deinterlaces the given block
5920 by applying a median filter to every second line.
5921 .IPs fd/ffmpegdeint
5922 FFmpeg deinterlacing filter that deinterlaces the given block
5923 by filtering every second line with a (\-1 4 2 4 \-1) filter.
5924 .IPs l5/lowpass5
5925 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
5926 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
5927 .IPs fq/forceQuant[:quantizer]
5928 Overrides the quantizer table from the input with the constant
5929 quantizer you specify.
5930 .RSss
5931 <quantizer>: quantizer to use
5932 .REss
5933 .IPs de/default
5934 default pp filter combination (hb:a,vb:a,dr:a)
5935 .IPs fa/fast
5936 fast pp filter combination (h1:a,v1:a,dr:a)
5937 .IPs "ac\ \ \ "
5938 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
5941 .sp 1
5942 .I EXAMPLE:
5944 .PD 0
5945 .RSs
5946 .IPs "\-vf pp=hb/vb/dr/al"
5947 horizontal and vertical deblocking, deringing and automatic
5948 brightness/\:contrast
5949 .IPs "\-vf pp=de/\-al"
5950 default filters without brightness/\:contrast correction
5951 .IPs "\-vf pp=default/tmpnoise:1:2:3"
5952 Enable default filters & temporal denoiser.
5953 .IPs "\-vf pp=hb:y/vb:a"
5954 Horizontal deblocking on luminance only, and switch vertical deblocking
5955 on or off automatically depending on available CPU time.
5957 .PD 1
5960 .B spp[=quality[:qp[:mode]]]
5961 Simple postprocessing filter that compresses and decompresses the
5962 image at several (or \- in the case of quality level 6 \- all)
5963 shifts and averages the results.
5964 .RSs
5965 .IPs <quality>
5966 0\-6 (default: 3)
5967 .IPs "<qp>\ "
5968 Force quantization parameter (default: 0, use QP from video).
5969 .IPs <mode>
5970 0: hard thresholding (default)
5972 1: soft thresholding (better deringing, but blurrier)
5974 4: like 0, but also use B-frames' QP (may cause flicker)
5976 5: like 1, but also use B-frames' QP (may cause flicker)
5980 .B uspp[=quality[:qp]]
5981 Ultra simple & slow postprocessing filter that compresses and
5982 decompresses the image at several (or \- in the case of quality
5983 level 8 \- all) shifts and averages the results.
5984 The way this differs from the behavior of spp is that uspp actually
5985 encodes & decodes each case with libavcodec Snow, whereas spp uses
5986 a simplified intra only 8x8 DCT similar to MJPEG.
5987 .RSs
5988 .IPs <quality>
5989 0\-8 (default: 3)
5990 .IPs "<qp>\ "
5991 Force quantization parameter (default: 0, use QP from video).
5995 .B fspp[=quality[:qp[:strength[:bframes]]]]
5996 faster version of the simple postprocessing filter
5997 .RSs
5998 .IPs <quality>
5999 4\-5 (equivalent to spp; default: 4)
6000 .IPs "<qp>\ "
6001 Force quantization parameter (default: 0, use QP from video).
6002 .IPs <\-15\-32>
6003 Filter strength, lower values mean more details but also more artifacts,
6004 while higher values make the image smoother but also blurrier (default:
6005 0 \- PSNR optimal).
6006 .IPs <bframes>
6007 0: do not use QP from B-frames (default)
6009 1: use QP from B-frames too (may cause flicker)
6013 .B pp7[=qp[:mode]]
6014 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6015 only the center sample is used after IDCT.
6016 .RSs
6017 .IPs "<qp>\ "
6018 Force quantization parameter (default: 0, use QP from video).
6019 .IPs <mode>
6020 0: hard thresholding
6022 1: soft thresholding (better deringing, but blurrier)
6024 2: medium thresholding (default, good results)
6028 .B qp=equation
6029 quantization parameter (QP) change filter
6030 .RSs
6031 .IPs <equation>
6032 some equation like "2+2*sin(PI*qp)"
6036 .B geq=equation
6037 generic equation change filter
6038 .RSs
6039 .IPs <equation>
6040 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6041 You can use whitespace to make the equation more readable.
6042 There are a couple of constants that can be used in the equation:
6043 .RSss
6044 PI: the number pi
6046 E: the number e
6048 X / Y: the coordinates of the current sample
6050 W / H: width and height of the image
6052 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6053 1,1 and 0.5,0.5 for YUV 4:2:0.
6055 p(x,y): returns the value of the pixel at location x/y of the current plane.
6056 .REss
6060 .B "test\ \ \ "
6061 Generate various test patterns.
6064 .B rgbtest[=width:height]
6065 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6066 You should see a red, green and blue stripe from top to bottom.
6067 .RSs
6068 .IPs <width>
6069 Desired width of generated image (default: 0).
6070 0 means width of input image.
6072 .IPs <height>
6073 Desired height of generated image (default: 0).
6074 0 means height of input image.
6078 .B lavc[=quality:fps]
6079 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6080 .RSs
6081 .IPs <quality>
6082 1\-31: fixed qscale
6084 32\-:  fixed bitrate in kbits
6085 .IPs <fps>
6086 force output fps (float value) (default: 0, autodetect based on height)
6090 .B dvbscale[=aspect]
6091 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6092 calculating the y axis scaling in software to keep aspect.
6093 Only useful together with expand and scale.
6094 .RSs
6095 .IPs <aspect>
6096 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6097 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6099 .sp 1
6101 .I EXAMPLE:
6103 .PD 0
6104 .RSs
6105 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6106 FIXME: Explain what this does.
6108 .PD 1
6111 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6112 Adds noise.
6113 .PD 0
6114 .RSs
6115 .IPs <0\-100>
6116 luma noise
6117 .IPs <0\-100>
6118 chroma noise
6119 .IPs u
6120 uniform noise (gaussian otherwise)
6121 .IPs t
6122 temporal noise (noise pattern changes between frames)
6123 .IPs a
6124 averaged temporal noise (smoother, but a lot slower)
6125 .IPs h
6126 high quality (slightly better looking, slightly slower)
6127 .IPs p
6128 mix random noise with a (semi)regular pattern
6130 .PD 1
6133 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6134 This filter aims to reduce image noise producing smooth images and making still
6135 images really still (This should enhance compressibility.).
6136 .PD 0
6137 .RSs
6138 .IPs <luma_spatial>
6139 spatial luma strength (default: 4)
6140 .IPs <chroma_spatial>
6141 spatial chroma strength (default: 3)
6142 .IPs <luma_tmp>
6143 luma temporal strength (default: 6)
6144 .IPs <chroma_tmp>
6145 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6147 .PD 1
6150 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6151 High precision/\:quality version of the denoise3d filter.
6152 Parameters and usage are the same.
6155 .B ow[=depth[:luma_strength[:chroma_strength]]]
6156 Overcomplete Wavelet denoiser.
6157 .PD 0
6158 .RSs
6159 .IPs <depth>
6160 Larger depth values will denoise lower frequency components more, but
6161 slow down filtering (default: 8).
6162 .IPs <luma_strength>
6163 luma strength (default: 1.0)
6164 .IPs <chroma_strength>
6165 chroma strength (default: 1.0)
6167 .PD 1
6170 .B eq[=brightness:contrast] (OBSOLETE)
6171 Software equalizer with interactive controls just like the hardware
6172 equalizer, for cards/\:drivers that do not support brightness and
6173 contrast controls in hardware.
6174 Might also be useful with MEncoder, either for fixing poorly captured
6175 movies, or for slightly reducing contrast to mask artifacts and get by
6176 with lower bitrates.
6177 .PD 0
6178 .RSs
6179 .IPs <\-100\-100>
6180 initial brightness
6181 .IPs <\-100\-100>
6182 initial contrast
6184 .PD 1
6187 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6188 Alternative software equalizer that uses lookup tables (very slow),
6189 allowing gamma correction in addition to simple brightness
6190 and contrast adjustment.
6191 Note that it uses the same MMX optimized code as \-vf eq if all
6192 gamma values are 1.0.
6193 The parameters are given as floating point values.
6194 .PD 0
6195 .RSs
6196 .IPs <0.1\-10>
6197 initial gamma value (default: 1.0)
6198 .IPs <\-2\-2>
6199 initial contrast, where negative values result in a
6200 negative image (default: 1.0)
6201 .IPs <\-1\-1>
6202 initial brightness (default: 0.0)
6203 .IPs <0\-3>
6204 initial saturation (default: 1.0)
6205 .IPs <0.1\-10>
6206 gamma value for the red component (default: 1.0)
6207 .IPs <0.1\-10>
6208 gamma value for the green component (default: 1.0)
6209 .IPs <0.1\-10>
6210 gamma value for the blue component (default: 1.0)
6211 .IPs <0\-1>
6212 The weight parameter can be used to reduce the effect of a high gamma value on
6213 bright image areas, e.g.\& keep them from getting overamplified and just plain
6214 white.
6215 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6216 at its full strength (default: 1.0).
6218 .PD 1
6221 .B hue[=hue:saturation]
6222 Software equalizer with interactive controls just like the hardware
6223 equalizer, for cards/\:drivers that do not support hue and
6224 saturation controls in hardware.
6225 .PD 0
6226 .RSs
6227 .IPs <\-180\-180>
6228 initial hue (default: 0.0)
6229 .IPs <\-100\-100>
6230 initial saturation, where negative values result
6231 in a negative chroma (default: 1.0)
6233 .PD 1
6236 .B halfpack[=f]
6237 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6238 keeping all chroma samples.
6239 Useful for output to low-resolution display devices when hardware downscaling
6240 is poor quality or is not available.
6241 Can also be used as a primitive luma-only deinterlacer with very low CPU
6242 usage.
6243 .PD 0
6244 .RSs
6245 .IPs "<f>\ \ "
6246 By default, halfpack averages pairs of lines when downsampling.
6247 Any value different from 0 or 1 gives the default (averaging) behavior.
6248 .RSss
6249 0: Only use even lines when downsampling.
6251 1: Only use odd lines when downsampling.
6252 .REss
6254 .PD 1
6257 .B ilpack[=mode]
6258 When interlaced video is stored in YUV 4:2:0 formats, chroma
6259 interlacing does not line up properly due to vertical downsampling of
6260 the chroma channels.
6261 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6262 the chroma lines in their proper locations, so that in any given
6263 scanline, the luma and chroma data both come from the same field.
6264 .PD 0
6265 .RSs
6266 .IPs <mode>
6267 Select the sampling mode.
6268 .RSss
6269 0: nearest-neighbor sampling, fast but incorrect
6271 1: linear interpolation (default)
6272 .REss
6274 .PD 1
6277 .B harddup
6278 Only useful with MEncoder.
6279 If harddup is used when encoding, it will force duplicate frames to be
6280 encoded in the output.
6281 This uses slightly more space, but is necessary for output to MPEG
6282 files or if you plan to demux and remux the video stream after
6283 encoding.
6284 Should be placed at or near the end of the filter chain unless you
6285 have a good reason to do otherwise.
6288 .B softskip
6289 Only useful with MEncoder.
6290 Softskip moves the frame skipping (dropping) step of encoding from
6291 before the filter chain to some point during the filter chain.
6292 This allows filters which need to see all frames (inverse telecine,
6293 temporal denoising, etc.) to function properly.
6294 Should be placed after the filters which need to see all frames and
6295 before any subsequent filters that are CPU-intensive.
6298 .B decimate[=max:hi:lo:frac]
6299 Drops frames that do not differ greatly from the previous frame in
6300 order to reduce framerate.
6301 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6302 streaming over dialup modem), but it could in theory be used for
6303 fixing movies that were inverse-telecined incorrectly.
6304 .PD 0
6305 .RSs
6306 .IPs <max>
6307 Sets the maximum number of consecutive frames which can be
6308 dropped (if positive), or the minimum interval between
6309 dropped frames (if negative).
6310 .IPs <hi>,<lo>,<frac>
6311 A frame is a candidate for dropping if no 8x8 region differs by more
6312 than a threshold of <hi>, and if not more than <frac> portion (1
6313 meaning the whole image) differs by more than a threshold of <lo>.
6314 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6315 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6316 difference for each pixel, or the same spread out differently over the
6317 block.
6319 .PD 1
6322 .B dint[=sense:level]
6323 The drop-deinterlace (dint) filter detects and drops the first from a set
6324 of interlaced video frames.
6325 .PD 0
6326 .RSs
6327 .IPs <0.0\-1.0>
6328 relative difference between neighboring pixels (default: 0.1)
6329 .IPs <0.0\-1.0>
6330 What part of the image has to be detected as interlaced to
6331 drop the frame (default: 0.15).
6333 .PD 1
6336 .B lavcdeint (OBSOLETE)
6337 FFmpeg deinterlacing filter, same as \-vf pp=fd
6340 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6341 Donald Graft's adaptive kernel deinterlacer.
6342 Deinterlaces parts of a video if a configurable threshold is exceeded.
6343 .PD 0
6344 .RSs
6345 .IPs <0\-255>
6346 threshold (default: 10)
6347 .IPs <map>
6348 .RSss
6349 0: Ignore pixels exceeding the threshold (default).
6351 1: Paint pixels exceeding the threshold white.
6352 .REss
6353 .IPs <order>
6354 .RSss
6355 0: Leave fields alone (default).
6357 1: Swap fields.
6358 .REss
6359 .IPs <sharp>
6360 .RSss
6361 0: Disable additional sharpening (default).
6363 1: Enable additional sharpening.
6364 .REss
6365 .IPs <twoway>
6366 .RSss
6367 0: Disable twoway sharpening (default).
6369 1: Enable twoway sharpening.
6370 .REss
6372 .PD 1
6375 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6376 unsharp mask / gaussian blur
6377 .RSs
6378 .IPs "l\ \ \ \ "
6379 Apply effect on luma component.
6380 .IPs "c\ \ \ \ "
6381 Apply effect on chroma components.
6382 .IPs <width>x<height>
6383 width and height of the matrix, odd sized in both directions
6384 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6385 .IPs amount
6386 Relative amount of sharpness/\:blur to add to the image
6387 (a sane range should be \-1.5\-1.5).
6388 .RSss
6389 <0: blur
6391 >0: sharpen
6392 .REss
6396 .B "swapuv\ "
6397 Swap U & V plane.
6400 .B il[=d|i][s][:[d|i][s]]
6401 (De)interleaves lines.
6402 The goal of this filter is to add the ability to process interlaced images
6403 pre-field without deinterlacing them.
6404 You can filter your interlaced DVD and play it on a TV without breaking the
6405 interlacing.
6406 While deinterlacing (with the postprocessing filter) removes interlacing
6407 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6408 2 fields (so called half pictures), so you can process (filter) them
6409 independently and then re-interleave them.
6410 .PD 0
6411 .RSs
6412 .IPs d
6413 deinterleave (placing one above the other)
6414 .IPs i
6415 interleave
6416 .IPs s
6417 swap fields (exchange even & odd lines)
6419 .PD 1
6422 .B fil[=i|d]
6423 (De)interleaves lines.
6424 This filter is very similar to the il filter but much faster, the main
6425 disadvantage is that it does not always work.
6426 Especially if combined with other filters it may produce randomly messed
6427 up images, so be happy if it works but do not complain if it does not for
6428 your combination of filters.
6429 .PD 0
6430 .RSs
6431 .IPs d
6432 Deinterleave fields, placing them side by side.
6433 .IPs i
6434 Interleave fields again (reversing the effect of fil=d).
6436 .PD 1
6439 .B field[=n]
6440 Extracts a single field from an interlaced image using stride arithmetic
6441 to avoid wasting CPU time.
6442 The optional argument n specifies whether to extract the even or the odd
6443 field (depending on whether n is even or odd).
6446 .B detc[=var1=value1:var2=value2:...]
6447 Attempts to reverse the 'telecine' process to recover a clean,
6448 non-interlaced stream at film framerate.
6449 This was the first and most primitive inverse telecine filter to be
6450 added to MPlayer/\:MEncoder.
6451 It works by latching onto the telecine 3:2 pattern and following it as
6452 long as possible.
6453 This makes it suitable for perfectly-telecined material, even in the
6454 presence of a fair degree of noise, but it will fail in the presence
6455 of complex post-telecine edits.
6456 Development on this filter is no longer taking place, as ivtc, pullup,
6457 and filmdint are better for most applications.
6458 The following arguments (see syntax above) may be used to control
6459 detc's behavior:
6460 .RSs
6461 .IPs "<dr>\ "
6462 Set the frame dropping mode.
6463 .RSss
6464 0: Do not drop frames to maintain fixed output framerate (default).
6466 1: Always drop a frame when there have been no drops or telecine
6467 merges in the past 5 frames.
6469 2: Always maintain exact 5:4 input to output frame ratio.
6471 .I NOTE:
6472 Use mode 1 or 2 with MEncoder.
6473 .REss
6474 .IPs "<am>\ "
6475 Analysis mode.
6476 .RSss
6477 0: Fixed pattern with initial frame number specified by <fr>.
6479 1: aggressive search for telecine pattern (default)
6480 .REss
6481 .IPs "<fr>\ "
6482 Set initial frame number in sequence.
6483 0\-2 are the three clean progressive frames; 3 and 4 are the two
6484 interlaced frames.
6485 The default, \-1, means 'not in telecine sequence'.
6486 The number specified here is the type for the imaginary previous
6487 frame before the movie starts.
6488 .IPs "<t0>, <t1>, <t2>, <t3>"
6489 Threshold values to be used in certain modes.
6493 .B ivtc[=1]
6494 Experimental 'stateless' inverse telecine filter.
6495 Rather than trying to lock on to a pattern like the detc filter does,
6496 ivtc makes its decisions independently for each frame.
6497 This will give much better results for material that has undergone
6498 heavy editing after telecine was applied, but as a result it is not as
6499 forgiving of noisy input, for example TV capture.
6500 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6501 detc filter, and should be used with MEncoder but not with MPlayer.
6502 As with detc, you must specify the correct output framerate (\-ofps
6503 24000/1001) when using MEncoder.
6504 Further development on ivtc has stopped, as the pullup and filmdint
6505 filters appear to be much more accurate.
6508 .B pullup[=jl:jr:jt:jb:sb:mp]
6509 Third-generation pulldown reversal (inverse telecine) filter,
6510 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6511 fps progressive content.
6512 The pullup filter is designed to be much more robust than detc or
6513 ivtc, by taking advantage of future context in making its decisions.
6514 Like ivtc, pullup is stateless in the sense that it does not lock onto
6515 a pattern to follow, but it instead looks forward to the following
6516 fields in order to identify matches and rebuild progressive frames.
6517 It is still under development, but believed to be quite accurate.
6518 .RSs
6519 .IPs "jl, jr, jt, and jb"
6520 These options set the amount of "junk" to ignore at
6521 the left, right, top, and bottom of the image, respectively.
6522 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6523 2 lines.
6524 The default is 8 pixels on each side.
6526 .IPs "sb (strict breaks)"
6527 Setting this option to 1 will reduce the chances of
6528 pullup generating an occasional mismatched frame, but it may also
6529 cause an excessive number of frames to be dropped during high motion
6530 sequences.
6531 Conversely, setting it to \-1 will make pullup match fields more
6532 easily.
6533 This may help processing of video where there is slight blurring
6534 between the fields, but may also cause there to be interlaced frames
6535 in the output.
6537 .IPs "mp (metric plane)"
6538 This option may be set to 1 or 2 to use a chroma
6539 plane instead of the luma plane for doing pullup's computations.
6540 This may improve accuracy on very clean source material, but more
6541 likely will decrease accuracy, especially if there is chroma noise
6542 (rainbow effect) or any grayscale video.
6543 The main purpose of setting mp to a chroma plane is to reduce CPU load
6544 and make pullup usable in realtime on slow machines.
6545 .REss
6547 .sp 1
6548 .I NOTE:
6549 Always follow pullup with the softskip filter when encoding to ensure
6550 that pullup is able to see each frame.
6551 Failure to do so will lead to incorrect output and will usually crash,
6552 due to design limitations in the codec/\:filter layer.
6553 .REss
6556 .B filmdint[=options]
6557 Inverse telecine filter, similar to the pullup filter above.
6558 It is designed to handle any pulldown pattern, including mixed soft and
6559 hard telecine and limited support for movies that are slowed down or sped
6560 up from their original framerate for TV.
6561 Only the luma plane is used to find the frame breaks.
6562 If a field has no match, it is deinterlaced with simple linear
6563 approximation.
6564 If the source is MPEG-2, this must be the first filter to allow
6565 access to the field-flags set by the MPEG-2 decoder.
6566 Depending on the source MPEG, you may be fine ignoring this advice, as
6567 long as you do not see lots of "Bottom-first field" warnings.
6568 With no options it does normal inverse telecine, and should be used
6569 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6570 When this filter is used with mplayer, it will result in an uneven
6571 framerate during playback, but it is still generally better than using
6572 pp=lb or no deinterlacing at all.
6573 Multiple options can be specified separated by /.
6574 .RSs
6575 .IPs crop=<w>:<h>:<x>:<y>
6576 Just like the crop filter, but faster, and works on mixed hard and soft
6577 telecined content as well as when y is not a multiple of 4.
6578 If x or y would require cropping fractional pixels from the chroma
6579 planes, the crop area is extended.
6580 This usually means that x and y must be even.
6581 .IPs io=<ifps>:<ofps>
6582 For each ifps input frames the filter will output ofps frames.
6583 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
6584 This could be used to filter movies that are broadcast on TV at a frame
6585 rate different from their original framerate.
6586 .IPs luma_only=<n>
6587 If n is nonzero, the chroma plane is copied unchanged.
6588 This is useful for YV12 sampled TV, which discards one of the chroma
6589 fields.
6590 .IPs mmx2=<n>
6591 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6592 optimized functions, otherwise, use plain C.
6593 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6594 this option to override auto-detection.
6595 .IPs fast=<n>
6596 The larger n will speed up the filter at the expense of accuracy.
6597 The default value is n=3.
6598 If n is odd, a frame immediately following a frame marked with the
6599 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6600 will not spend any time on soft-telecined MPEG-2 content.
6601 This is the only effect of this flag if MMX2 or 3DNow! is available.
6602 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6603 as with n=2 or 3.
6604 If n=2 or 3, the number of luma levels used to find the frame breaks is
6605 reduced from 256 to 128, which results in a faster filter without losing
6606 much accuracy.
6607 If n=4 or 5, a faster, but much less accurate metric will be used to
6608 find the frame breaks, which is more likely to misdetect high vertical
6609 detail as interlaced content.
6610 .IPs verbose=<n>
6611 If n is nonzero, print the detailed metrics for each frame.
6612 Useful for debugging.
6613 .IPs dint_thres=<n>
6614 Deinterlace threshold.
6615 Used during de-interlacing of unmatched frames.
6616 Larger value means less deinterlacing, use n=256 to completely turn off
6617 deinterlacing.
6618 Default is n=8.
6619 .IPs comb_thres=<n>
6620 Threshold for comparing a top and bottom fields.
6621 Defaults to 128.
6622 .IPs diff_thres=<n>
6623 Threshold to detect temporal change of a field.
6624 Default is 128.
6625 .IPs sad_thres=<n>
6626 Sum of Absolute Difference threshold, default is 64.
6630 .B softpulldown
6631 This filter works only correct with MEncoder and acts on the MPEG-2 flags
6632 used for soft 3:2 pulldown (soft telecine).
6633 If you want to use the ivtc or detc filter on movies that are partly soft
6634 telecined, inserting this filter before them should make them more reliable.
6637 .B divtc[=options]
6638 Inverse telecine for deinterlaced video.
6639 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
6640 using a method that keeps one field and interpolates the other, the result is
6641 a juddering video that has every fourth frame duplicated.
6642 This filter is intended to find and drop those duplicates and restore the
6643 original film framerate.
6644 When using this filter, you must specify \-ofps that is 4/5 of
6645 the fps of the input file and place the softskip later in the
6646 filter chain to make sure that divtc sees all the frames.
6647 Two different modes are available:
6648 One pass mode is the default and is straightforward to use,
6649 but has the disadvantage that any changes in the telecine
6650 phase (lost frames or bad edits) cause momentary judder
6651 until the filter can resync again.
6652 Two pass mode avoids this by analyzing the whole video
6653 beforehand so it will have forward knowledge about the
6654 phase changes and can resync at the exact spot.
6655 These passes do
6656 .B not
6657 correspond to pass one and two of the encoding process.
6658 You must run an extra pass using divtc pass one before the
6659 actual encoding throwing the resulting video away.
6660 Use \-nosound \-ovc raw \-o /dev/null to avoid
6661 wasting CPU power for this pass.
6662 You may add something like crop=2:2:0:0 after divtc
6663 to speed things up even more.
6664 Then use divtc pass two for the actual encoding.
6665 If you use multiple encoder passes, use divtc
6666 pass two for all of them.
6667 The options are:
6668 .RSs
6669 .IPs pass=1|2
6670 Use two pass mode.
6671 .IPs file=<filename>
6672 Set the two pass log filename (default: "framediff.log").
6673 .IPs threshold=<value>
6674 Set the minimum strength the telecine pattern must have for the filter to
6675 believe in it (default: 0.5).
6676 This is used to avoid recognizing false pattern from the parts of the video
6677 that are very dark or very still.
6678 .IPs window=<numframes>
6679 Set the number of past frames to look at when searching for pattern
6680 (default: 30).
6681 Longer window improves the reliability of the pattern search, but shorter
6682 window improves the reaction time to the changes in the telecine phase.
6683 This only affects the one pass mode.
6684 The two pass mode currently uses fixed window that extends to both future
6685 and past.
6686 .IPs phase=0|1|2|3|4
6687 Sets the initial telecine phase for one pass mode (default: 0).
6688 The two pass mode can see the future, so it is able to use the correct
6689 phase from the beginning, but one pass mode can only guess.
6690 It catches the correct phase when it finds it, but this option can be used
6691 to fix the possible juddering at the beginning.
6692 The first pass of the two pass mode also uses this, so if you save the output
6693 from the first pass, you get constant phase result.
6694 .IPs deghost=<value>
6695 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
6696 mode, default 0).
6697 If nonzero, deghosting mode is used.
6698 This is for video that has been deinterlaced by blending the fields
6699 together instead of dropping one of the fields.
6700 Deghosting amplifies any compression artifacts in the blended frames, so the
6701 parameter value is used as a threshold to exclude those pixels from
6702 deghosting that differ from the previous frame less than specified value.
6703 If two pass mode is used, then negative value can be used to make the
6704 filter analyze the whole video in the beginning of pass-2 to determine
6705 whether it needs deghosting or not and then select either zero or the
6706 absolute value of the parameter.
6707 Specify this option for pass-2, it makes no difference on pass-1.
6711 .B phase[=t|b|p|a|u|T|B|A|U][:v]
6712 Delay interlaced video by one field time so that the field order
6713 changes.
6714 The intended use is to fix PAL movies that have been captured with the
6715 opposite field order to the film-to-video transfer.
6716 The options are:
6717 .RSs
6718 .IPs t
6719 Capture field order top-first, transfer bottom-first.
6720 Filter will delay the bottom field.
6721 .IPs b
6722 Capture bottom-first, transfer top-first.
6723 Filter will delay the top field.
6724 .IPs p
6725 Capture and transfer with the same field order.
6726 This mode only exists for the documentation of the other options to refer to,
6727 but if you actually select it, the filter will faithfully do nothing ;-)
6728 .IPs a
6729 Capture field order determined automatically by field flags, transfer opposite.
6730 Filter selects among t and b modes on a frame by frame basis using field flags.
6731 If no field information is available, then this works just like u.
6732 .IPs u
6733 Capture unknown or varying, transfer opposite.
6734 Filter selects among t and b on a frame by frame basis by analyzing the
6735 images and selecting the alternative that produces best match between the
6736 fields.
6737 .IPs T
6738 Capture top-first, transfer unknown or varying.
6739 Filter selects among t and p using image analysis.
6740 .IPs B
6741 Capture bottom-first, transfer unknown or varying.
6742 Filter selects among b and p using image analysis.
6743 .IPs A
6744 Capture determined by field flags, transfer unknown or varying.
6745 Filter selects among t, b and p using field flags and image analysis.
6746 If no field information is available, then this works just like U.
6747 This is the default mode.
6748 .IPs U
6749 Both capture and transfer unknown or varying.
6750 Filter selects among t, b and p using image analysis only.
6751 .IPs v
6752 Verbose operation.
6753 Prints the selected mode for each frame and the average squared difference
6754 between fields for t, b, and p alternatives.
6758 .B telecine[=start]
6759 Apply 3:2 'telecine' process to increase framerate by 20%.
6760 This most likely will not work correctly with MPlayer, but it can
6761 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
6762 Both fps options are essential!
6763 (A/V sync will break if they are wrong.)
6764 The optional start parameter tells the filter where in the telecine
6765 pattern to start (0\-3).
6768 .B tinterlace[=mode]
6769 Temporal field interlacing \- merge pairs of frames into an interlaced
6770 frame, halving the framerate.
6771 Even frames are moved into the upper field, odd frames to the lower field.
6772 This can be used to fully reverse the effect of the tfields filter (in mode 0).
6773 Available modes are:
6774 .PD 0
6775 .RSs
6776 .IPs 0
6777 Move odd frames into the upper field, even into the lower field, generating
6778 a full-height frame at half framerate.
6779 .IPs 1
6780 Only output odd frames, even frames are dropped; height unchanged.
6781 .IPs 2
6782 Only output even frames, odd frames are dropped; height unchanged.
6783 .IPs 3
6784 Expand each frame to full height, but pad alternate lines with black;
6785 framerate unchanged.
6786 .IPs 4
6787 Interleave even lines from even frames with odd lines from odd frames.
6788 Height unchanged at half framerate.
6790 .PD 1
6793 .B tfields[=mode[:field_dominance]]
6794 Temporal field separation \- split fields into frames, doubling the
6795 output framerate.
6796 Like the telecine filter, tfields will only work properly with
6797 MEncoder, and only if both \-fps and \-ofps are set to the
6798 desired (double) framerate!
6799 .PD 0
6800 .RSs
6801 .IPs <mode>
6802 0: Leave fields unchanged (will jump/\:flicker).
6804 1: Interpolate missing lines. (The algorithm used might not be so good.)
6806 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
6808 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
6809 .IPs <field_dominance>\ (DEPRECATED)
6810 \-1: auto (default)
6811 Only works if the decoder exports the appropriate information and
6812 no other filters which discard that information come before tfields
6813 in the filter chain, otherwise it falls back to 0 (top field first).
6815 0: top field first
6817 1: bottom field first
6819 .I NOTE:
6820 This option will possibly be removed in a future version.
6821 Use \-field\-dominance instead.
6823 .PD 1
6826 .B yadif=[mode[:field_dominance]]
6827 Yet another deinterlacing filter
6828 .PD 0
6829 .RSs
6830 .IPs <mode>
6831 0: Output 1 frame for each frame.
6833 1: Output 1 frame for each field.
6835 2: Like 0 but skips spatial interlacing check.
6837 3: Like 1 but skips spatial interlacing check.
6838 .IPs <field_dominance>\ (DEPRECATED)
6839 Operates like tfields.
6841 .I NOTE:
6842 This option will possibly be removed in a future version.
6843 Use \-field\-dominance instead.
6845 .PD 1
6848 .B mcdeint=[mode[:parity[:qp]]]
6849 Motion compensating deinterlacer.
6850 It needs one field per frame as input and must thus be used together
6851 with tfields=1 or yadif=1/3 or equivalent.
6852 .PD 0
6853 .RSs
6854 .IPs <mode>
6855 0: fast
6857 1: medium
6859 2: slow, iterative motion estimation
6861 3: extra slow, like 2 plus multiple reference frames
6862 .IPs <parity>
6863 0 or 1 selects which field to use (note: no autodetection yet!).
6864 .IPs "<qp>\ "
6865 Higher values should result in a smoother motion vector
6866 field but less optimal individual vectors.
6868 .PD 1
6871 .B boxblur=radius:power[:radius:power]
6872 box blur
6873 .PD 0
6874 .RSs
6875 .IPs <radius>
6876 blur filter strength
6877 .IPs <power>
6878 number of filter applications
6880 .PD 1
6883 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
6884 shape adaptive blur
6885 .PD 0
6886 .RSs
6887 .IPs <radius>
6888 blur filter strength (~0.1\-4.0) (slower if larger)
6889 .IPs "<pf>\ "
6890 prefilter strength (~0.1\-2.0)
6891 .IPs <colorDiff>
6892 maximum difference between pixels to still be considered (~0.1\-100.0)
6894 .PD 1
6897 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
6898 smart blur
6899 .PD 0
6900 .RSs
6901 .IPs <radius>
6902 blur filter strength (~0.1\-5.0) (slower if larger)
6903 .IPs <strength>
6904 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
6905 .IPs <threshold>
6906 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
6908 .PD 1
6911 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
6912 Correct the perspective of movies not filmed perpendicular to the screen.
6913 .PD 0
6914 .RSs
6915 .IPs <x0>,<y0>,...
6916 coordinates of the top left, top right, bottom left, bottom right corners
6917 .IPs "<t>\ \ "
6918 linear (0) or cubic resampling (1)
6920 .PD 1
6923 .B "2xsai\ \ "
6924 Scale and smooth the image with the 2x scale and interpolate algorithm.
6927 .B "1bpp\ \ \ "
6928 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
6931 .B down3dright[=lines]
6932 Reposition and resize stereoscopic images.
6933 Extracts both stereo fields and places them side by side, resizing
6934 them to maintain the original movie aspect.
6935 .PD 0
6936 .RSs
6937 .IPs <lines>
6938 number of lines to select from the middle of the image (default: 12)
6940 .PD 1
6943 .B bmovl=hidden:opaque:fifo
6944 The bitmap overlay filter reads bitmaps from a FIFO and displays them
6945 on top of the movie, allowing some transformations on the image.
6946 Also see TOOLS/bmovl-test.c for a small bmovl test program.
6947 .PD 0
6948 .RSs
6949 .IPs <hidden>
6950 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
6951 .IPs <opaque>
6952 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
6953 .IPs <fifo>
6954 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
6955 controlling application)
6957 .PD 1
6958 .sp 1
6960 FIFO commands are:
6962 .PD 0
6963 .RSs
6964 .IPs "RGBA32 width height xpos ypos alpha clear"
6965 followed by width*height*4 Bytes of raw RGBA32 data.
6966 .IPs "ABGR32 width height xpos ypos alpha clear"
6967 followed by width*height*4 Bytes of raw ABGR32 data.
6968 .IPs "RGB24 width height xpos ypos alpha clear"
6969 followed by width*height*3 Bytes of raw RGB24 data.
6970 .IPs "BGR24 width height xpos ypos alpha clear"
6971 followed by width*height*3 Bytes of raw BGR24 data.
6972 .IPs "ALPHA width height xpos ypos alpha"
6973 Change alpha transparency of the specified area.
6974 .IPs "CLEAR width height xpos ypos"
6975 Clear area.
6976 .IPs OPAQUE
6977 Disable all alpha transparency.
6978 Send "ALPHA 0 0 0 0 0" to enable it again.
6979 .IPs "HIDE\ "
6980 Hide bitmap.
6981 .IPs "SHOW\ "
6982 Show bitmap.
6984 .PD 1
6985 .sp 1
6987 Arguments are:
6989 .PD 0
6990 .RSs
6991 .IPs "<width>, <height>"
6992 image/area size
6993 .IPs "<xpos>, <ypos>"
6994 Start blitting at position x/y.
6995 .IPs <alpha>
6996 Set alpha difference.
6997 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
6998 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
6999 .RSss
7000 0:    same as original
7002 255:  Make everything opaque.
7004 \-255: Make everything transparent.
7005 .REss
7006 .IPs <clear>
7007 Clear the framebuffer before blitting.
7008 .RSss
7009 0: The image will just be blitted on top of the old one, so you do not need to
7010 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7012 1: clear
7013 .REss
7015 .PD 1
7018 .B framestep=I|[i]step
7019 Renders only every nth frame or every intra frame (keyframe).
7020 .sp 1
7021 If you call the filter with I (uppercase) as the parameter, then
7022 .B only
7023 keyframes are rendered.
7024 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7025 for AVI it means every scene change or every keyint value (see \-lavcopts
7026 keyint= value if you use MEncoder to encode the video).
7027 .sp 1
7028 When a keyframe is found, an 'I!' string followed by a newline character is
7029 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
7030 because it contains the time (in seconds) and frame number of the keyframe
7031 (You can use this information to split the AVI.).
7032 .sp 1
7033 If you call the filter with a numeric parameter 'step' then only one in
7034 every 'step' frames is rendered.
7035 .sp 1
7036 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7037 (like the I parameter).
7038 .sp 1
7039 If you give only the i then nothing is done to the frames, only I! is
7040 printed.
7043 .B tile=xtiles:ytiles:output:start:delta
7044 Tile a series of images into a single, bigger image.
7045 If you omit a parameter or use a value less than 0, then the default
7046 value is used.
7047 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7048 It is probably a good idea to put the scale filter before the tile :-)
7049 .sp 1
7050 The parameters are:
7051 .sp 1
7052 .PD 0
7053 .RSs
7054 .IPs <xtiles>
7055 number of tiles on the x axis (default: 5)
7056 .IPs <ytiles>
7057 number of tiles on the y axis (default: 5)
7058 .IPs <output>
7059 Render the tile when 'output' number of frames are reached, where 'output'
7060 should be a number less than xtile * ytile.
7061 Missing tiles are left blank.
7062 You could, for example, write an 8 * 7 tile every 50 frames to have one
7063 image every 2 seconds @ 25 fps.
7064 .IPs <start>
7065 outer border thickness in pixels (default: 2)
7066 .IPs <delta>
7067 inner border thickness in pixels (default: 4)
7069 .PD 1
7072 .B delogo[=x:y:w:h:t]
7073 Suppresses a TV station logo by a simple interpolation of the
7074 surrounding pixels.
7075 Just set a rectangle covering the logo and watch it disappear (and
7076 sometimes something even uglier appear \- your mileage may vary).
7077 .PD 0
7078 .RSs
7079 .IPs <x>,<y>
7080 top left corner of the logo
7081 .IPs <w>,<h>
7082 width and height of the cleared rectangle
7083 .IPs <t>
7084 Thickness of the fuzzy edge of the rectangle (added to w and h).
7085 When set to \-1, a green rectangle is drawn on the screen to
7086 simplify finding the right x,y,w,h parameters.
7088 .PD 1
7091 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7092 Suppresses a TV station logo, using a PGM or PPM image
7093 file to determine which pixels comprise the logo.
7094 The width and height of the image file must match
7095 those of the video stream being processed.
7096 Uses the filter image and a circular blur
7097 algorithm to remove the logo.
7098 .RSs
7099 .IPs /path/to/logo_bitmap_file_name.pgm
7100 [path] + filename of the filter image.
7104 .B zrmjpeg[=options]
7105 Software YV12 to MJPEG encoder for use with the zr2 video
7106 output device.
7107 .RSs
7108 .IPs maxheight=<h>|maxwidth=<w>
7109 These options set the maximum width and height the zr card
7110 can handle (the MPlayer filter layer currently cannot query those).
7111 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
7112 Use these options to set maxwidth and maxheight automatically to the
7113 values known for card/\:mode combo.
7114 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
7115 .IPs color|bw
7116 Select color or black and white encoding.
7117 Black and white encoding is faster.
7118 Color is the default.
7119 .IPs hdec={1,2,4}
7120 Horizontal decimation 1, 2 or 4.
7121 .IPs vdec={1,2,4}
7122 Vertical decimation 1, 2 or 4.
7123 .IPs quality=1\-20
7124 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
7125 .IPs fd|nofd
7126 By default, decimation is only performed if the Zoran hardware
7127 can upscale the resulting MJPEG images to the original size.
7128 The option fd instructs the filter to always perform the requested
7129 decimation (ugly).
7133 .B screenshot
7134 Allows acquiring screenshots of the movie using slave mode
7135 commands that can be bound to keypresses.
7136 See the slave mode documentation and the INTERACTIVE CONTROL
7137 section for details.
7138 Files named 'shotNNNN.png' will be saved in the working directory,
7139 using the first available number \- no files will be overwritten.
7140 The filter has no overhead when not used and accepts an arbitrary
7141 colorspace, so it is safe to add it to the configuration file.
7145 .B "ass\ \ \ \ "
7146 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7147 Only useful with the \-ass option.
7148 .sp 1
7149 .I EXAMPLE:
7150 .PD 0
7151 .RSs
7152 .IPs "\-vf ass,screenshot"
7153 Moves SSA/ASS rendering before the screenshot filter.
7154 Screenshots taken this way will contain subtitles.
7156 .PD 1
7159 .B blackframe[=amount:threshold]
7160 Detect frames that are (almost) completely black.
7161 Can be useful to detect chapter transitions or commercials.
7162 Output lines consist of the frame number of the detected frame, the
7163 percentage of blackness, the frame type and the frame number of the last
7164 encountered keyframe.
7165 .RSs
7166 .IPs <amount>
7167 Percentage of the pixels that have to be below the threshold (default: 98).
7168 .IPs <threshold>
7169 Threshold below which a pixel value is considered black (default: 32).
7174 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7177 .B \-audio\-delay <any floating-point number>
7178 Delays either audio or video by setting a delay field in the header
7179 (default: 0.0).
7180 This does not delay either stream while encoding, but the player will
7181 see the delay field and compensate accordingly.
7182 Positive values delay the audio, and negative values delay the video.
7183 Note that this is the exact opposite of the \-delay option.
7184 For example, if a video plays correctly with \-delay 0.2, you can
7185 fix the video with MEncoder by using \-audio\-delay \-0.2.
7186 .sp 1
7187 Currently, this option only works with the default muxer (\-of avi).
7188 If you are using a different muxer, then you must use \-delay instead.
7191 .B \-audio\-density <1\-50>
7192 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7194 .I NOTE:
7195 CBR only, VBR ignores this as it puts each packet in a new chunk.
7198 .B \-audio\-preload <0.0\-2.0>
7199 Sets up the audio buffering time interval (default: 0.5s).
7202 .B \-fafmttag <format>
7203 Can be used to override the audio format tag of the output file.
7204 .sp 1
7205 .I EXAMPLE:
7206 .PD 0
7207 .RSs
7208 .IPs "\-fafmttag 0x55"
7209 Will have the output file contain 0x55 (mp3) as audio format tag.
7211 .PD 1
7214 .B \-ffourcc <fourcc>
7215 Can be used to override the video fourcc of the output file.
7216 .sp 1
7217 .I EXAMPLE:
7218 .PD 0
7219 .RSs
7220 .IPs "\-ffourcc div3"
7221 Will have the output file contain 'div3' as video fourcc.
7223 .PD 1
7226 .B \-force\-avi\-aspect <0.2\-3.0>
7227 Override the aspect stored in the AVI OpenDML vprp header.
7228 This can be used to change the aspect ratio with '\-ovc copy'.
7231 .B \-frameno\-file <filename> (DEPRECATED)
7232 Specify the name of the audio file with framenumber mappings created in
7233 the first (audio only) pass of a special three pass encoding mode.
7235 .I NOTE:
7236 Using this mode will most likely give you A-V desync.
7237 Do not use it.
7238 It is kept for backwards compatibility only and will possibly
7239 be removed in a future version.
7242 .B \-hr\-edl\-seek
7243 Use a more precise, but much slower method for skipping areas.
7244 Areas marked for skipping are not seeked over, instead all
7245 frames are decoded, but only the necessary frames are encoded.
7246 This allows starting at non-keyframe boundaries.
7248 .I NOTE:
7249 Not guaranteed to work right with '\-ovc copy'.
7252 .B \-info <option1:option2:...> (AVI only)
7253 Specify the info header of the resulting AVI file.
7254 .sp 1
7255 Available options are:
7256 .RSs
7257 .IPs "help\ "
7258 Show this description.
7259 .IPs name=<value>
7260 title of the work
7261 .IPs artist=<value>
7262 artist or author of the work
7263 .IPs genre=<value>
7264 original work category
7265 .IPs subject=<value>
7266 contents of the work
7267 .IPs copyright=<value>
7268 copyright information
7269 .IPs srcform=<value>
7270 original format of the digitized material
7271 .IPs comment=<value>
7272 general comments about the work
7276 .B \-noautoexpand
7277 Do not automatically insert the expand filter into the MEncoder filter chain.
7278 Useful to control at which point of the filter chain subtitles are rendered
7279 when hardcoding subtitles onto a movie.
7282 .B \-noencodedups
7283 Do not attempt to encode duplicate frames in duplicate; always output
7284 zero-byte frames to indicate duplicates.
7285 Zero-byte frames will be written anyway unless a filter or encoder
7286 capable of doing duplicate encoding is loaded.
7287 Currently the only such filter is harddup.
7290 .B \-noodml (\-of avi only)
7291 Do not write OpenDML index for AVI files >1GB.
7294 .B \-noskip
7295 Do not skip frames.
7298 .B \-o <filename>
7299 Outputs to the given filename.
7301 If you want a default output filename, you can put this option in the
7302 MEncoder config file.
7305 .B \-oac <codec name>
7306 Encode with the given audio codec (no default set).
7308 .I NOTE:
7309 Use \-oac help to get a list of available audio codecs.
7310 .sp 1
7311 .I EXAMPLE:
7312 .PD 0
7313 .RSs
7314 .IPs "\-oac copy"
7315 no encoding, just streamcopy
7316 .IPs "\-oac pcm"
7317 Encode to uncompressed PCM.
7318 .IPs "\-oac mp3lame"
7319 Encode to MP3 (using LAME).
7320 .IPs "\-oac lavc"
7321 Encode with a libavcodec codec.
7323 .PD 1
7326 .B \-of <format> (BETA CODE!)
7327 Encode to the specified container format (default: AVI).
7329 .I NOTE:
7330 Use \-of help to get a list of available container formats.
7331 .sp 1
7332 .I EXAMPLE:
7333 .PD 0
7334 .RSs
7335 .IPs "\-of avi"
7336 Encode to AVI.
7337 .IPs "\-of mpeg"
7338 Encode to MPEG (also see \-mpegopts).
7339 .IPs "\-of lavf"
7340 Encode with libavformat muxers (also see \-lavfopts).
7341 .IPs "\-of rawvideo"
7342 raw video stream (no muxing \- one video stream only)
7343 .IPs "\-of rawaudio"
7344 raw audio stream (no muxing \- one audio stream only)
7346 .PD 1
7349 .B \-ofps <fps>
7350 Specify a frames per second (fps) value for the output file,
7351 which can be different from that of the source material.
7352 Must be set for variable fps (ASF, some MOV) and progressive
7353 (30000/1001 fps telecined MPEG) files.
7356 .B \-ovc <codec name>
7357 Encode with the given video codec (no default set).
7359 .I NOTE:
7360 Use \-ovc help to get a list of available video codecs.
7361 .sp 1
7362 .I EXAMPLE:
7363 .PD 0
7364 .RSs
7365 .IPs "\-ovc copy"
7366 no encoding, just streamcopy
7367 .IPs "\-ovc raw"
7368 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7369 .IPs "\-ovc lavc"
7370 Encode with a libavcodec codec.
7372 .PD 1
7375 .B \-passlogfile <filename>
7376 Dump first pass information to <filename> instead of the default divx2pass.log
7377 in two pass encoding mode.
7380 .B \-skiplimit <value>
7381 Specify the maximum number of frames that may be skipped after
7382 encoding one frame (\-noskiplimit for unlimited).
7385 .B \-vobsubout <basename>
7386 Specify the basename for the output .idx and .sub files.
7387 This turns off subtitle rendering in the encoded movie and diverts it to
7388 VOBsub subtitle files.
7391 .B \-vobsuboutid <langid>
7392 Specify the language two letter code for the subtitles.
7393 This overrides what is read from the DVD or the .ifo file.
7396 .B \-vobsuboutindex <index>
7397 Specify the index of the subtitles in the output files (default: 0).
7401 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7402 You can specify codec specific encoding parameters using the following
7403 syntax:
7406 .B \-<codec>opts <option1[=value1]:option2[=value2]:...>
7409 Where <codec> may be: lavc, xvidenc, mp3lame, toolame, twolame,
7410 nuv, xvfw, faac, x264enc, mpeg, lavf.
7413 .SS mp3lame (\-lameopts)
7416 .B "help\ \ \ "
7417 get help
7420 .B vbr=<0\-4>
7421 variable bitrate method
7422 .PD 0
7423 .RSs
7424 .IPs 0
7426 .IPs 1
7428 .IPs 2
7429 rh (default)
7430 .IPs 3
7432 .IPs 4
7433 mtrh
7435 .PD 1
7438 .B "abr\ \ \ \ "
7439 average bitrate
7442 .B "cbr\ \ \ \ "
7443 constant bitrate
7444 Also forces CBR mode encoding on subsequent ABR presets modes.
7447 .B br=<0\-1024>
7448 bitrate in kbps (CBR and ABR only)
7451 .B q=<0\-9>
7452 quality (0 \- highest, 9 \- lowest) (VBR only)
7455 .B aq=<0\-9>
7456 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
7459 .B ratio=<1\-100>
7460 compression ratio
7463 .B vol=<0\-10>
7464 audio input gain
7467 .B mode=<0\-3>
7468 (default: auto)
7469 .PD 0
7470 .RSs
7471 .IPs 0
7472 stereo
7473 .IPs 1
7474 joint-stereo
7475 .IPs 2
7476 dualchannel
7477 .IPs 3
7478 mono
7480 .PD 1
7483 .B padding=<0\-2>
7484 .PD 0
7485 .RSs
7486 .IPs 0
7487 none
7488 .IPs 1
7490 .IPs 2
7491 adjust
7493 .PD 1
7496 .B "fast\ \ \ "
7497 Switch on faster encoding on subsequent VBR presets modes.
7498 This results in slightly lower quality and higher bitrates.
7501 .B highpassfreq=<freq>
7502 Set a highpass filtering frequency in Hz.
7503 Frequencies below the specified one will be cut off.
7504 A value of \-1 will disable filtering, a value of 0
7505 will let LAME choose values automatically.
7508 .B lowpassfreq=<freq>
7509 Set a lowpass filtering frequency in Hz.
7510 Frequencies above the specified one will be cut off.
7511 A value of \-1 will disable filtering, a value of 0
7512 will let LAME choose values automatically.
7515 .B preset=<value>
7516 preset values
7517 .RSs
7518 .IPs "help\ "
7519 Print additional options and information about presets settings.
7520 .IPs medium
7521 VBR encoding, good quality, 150\-180 kbps bitrate range
7522 .IPs standard
7523 VBR encoding, high quality, 170\-210 kbps bitrate range
7524 .IPs extreme
7525 VBR encoding, very high quality, 200\-240 kbps bitrate range
7526 .IPs insane
7527 CBR encoding, highest preset quality, 320 kbps bitrate
7528 .IPs <8\-320>
7529 ABR encoding at average given kbps bitrate
7531 .sp 1
7533 .I EXAMPLES:
7535 .PD 0
7536 .RSs
7537 .IPs fast:preset=standard
7538 suitable for most people and most music types and already quite high quality
7539 .IPs cbr:preset=192
7540 Encode with ABR presets at a 192 kbps forced constant bitrate.
7541 .IPs preset=172
7542 Encode with ABR presets at a 172 kbps average bitrate.
7543 .IPs preset=extreme
7544 for people with extremely good hearing and similar equipment
7546 .PD 1
7549 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
7552 .B br=<32\-384>
7553 In CBR mode this parameter indicates the bitrate in kbps,
7554 when in VBR mode it is the minimum bitrate allowed per frame.
7555 VBR mode will not work with a value below 112.
7558 .B vbr=<\-50\-50> (VBR only)
7559 variability range; if negative the encoder shifts the average bitrate
7560 towards the lower limit, if positive towards the higher.
7561 When set to 0 CBR is used (default).
7564 .B maxvbr=<32\-384> (VBR only)
7565 maximum bitrate allowed per frame, in kbps
7568 .B mode=<stereo  |  jstereo  |  mono  |  dual>
7569 (default: mono for 1-channel audio, stereo otherwise)
7572 .B psy=<\-1\-4>
7573 psychoacoustic model (default: 2)
7576 .B errprot=<0 | 1>
7577 Include error protection.
7580 .B debug=<0\-10>
7581 debug level
7583 .PD 1
7586 .SS faac (\-faacopts)
7589 .B br=<bitrate>
7590 average bitrate in kbps (mutually exclusive with quality)
7593 .B quality=<1\-1000>
7594 quality mode, the higher the better (mutually exclusive with br)
7597 .B object=<1\-4>
7598 object type complexity
7599 .PD 0
7600 .RSs
7601 .IPs 1
7602 MAIN (default)
7603 .IPs 2
7605 .IPs 3
7607 .IPs 4
7608 LTP (extremely slow)
7610 .PD 1
7613 .B mpeg=<2|4>
7614 MPEG version (default: 4)
7617 .B "tns\ \ \ \ "
7618 Enables temporal noise shaping.
7621 .B cutoff=<0\-sampling_rate/2>
7622 cutoff frequency (default: sampling_rate/2)
7625 .B "raw\ \ \ \ "
7626 Stores the bitstream as raw payload with extradata in the container header
7627 (default: 0, corresponds to ADTS).
7628 Do not set this flag if not explicitly required or you will not be able to
7629 remux the audio stream later on.
7631 .PD 1
7634 .SS lavc (\-lavcopts)
7636 Many libavcodec (lavc for short) options are tersely documented.
7637 Read the source for full details.
7639 .I EXAMPLE:
7640 .PD 0
7641 .RSs
7642 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
7644 .PD 1
7647 .B o=<key>=<value>[,<key>=<value>[,...]]
7648 Pass AVOptions to libavcodec encoder.
7649 Note, a patch to make the o= unneeded and pass all unknown options through
7650 the AVOption system is welcome.
7651 A full list of AVOptions can be found in the FFmpeg manual.
7652 Note that some AVOptions may conflict with MEncoder options.
7653 .sp 1
7655 .I EXAMPLE:
7657 .RSs
7658 .PD 0
7659 .IPs o=bt=100k
7660 .PD 1
7664 .B acodec=<value>
7665 audio codec (default: mp2)
7666 .PD 0
7667 .RSs
7668 .IPs "ac3\ \ "
7669 Dolby Digital (AC-3)
7670 .IPs adpcm_*
7671 Adaptive PCM formats \- see the HTML documentation for details.
7672 .IPs "flac\ "
7673 Free Lossless Audio Codec (FLAC)
7674 .IPs "g726\ "
7675 G.726 ADPCM
7676 .IPs libamr_nb
7677 3GPP Adaptive Multi-Rate (AMR) narrow-band
7678 .IPs libamr_wb
7679 3GPP Adaptive Multi-Rate (AMR) wide-band
7680 .IPs libfaac
7681 Advanced Audio Coding (AAC) \- using FAAC
7682 .IPs libmp3lame
7683 MPEG-1 audio layer 3 (MP3) \- using LAME
7684 .IPs "mp2\ \ "
7685 MPEG-1 audio layer 2 (MP2)
7686 .IPs pcm_*
7687 PCM formats \- see the HTML documentation for details.
7688 .IPs roq_dpcm
7689 Id Software RoQ DPCM
7690 .IPs sonic
7691 experimental simple lossy codec
7692 .IPs sonicls
7693 experimental simple lossless codec
7694 .IPs vorbis
7695 Vorbis
7696 .IPs wmav1
7697 Windows Media Audio v1
7698 .IPs wmav2
7699 Windows Media Audio v2
7701 .PD 1
7704 .B abitrate=<value>
7705 audio bitrate in kbps (default: 224)
7708 .B atag=<value>
7709 Use the specified Windows audio format tag (e.g.\& atag=0x55).
7712 .B bit_exact
7713 Use only bit exact algorithms (except (I)DCT).
7714 Additionally bit_exact disables several optimizations and thus
7715 should only be used for regression tests, which need binary
7716 identical files even if the encoder version changes.
7717 This also suppresses the user_data header in MPEG-4 streams.
7718 Do not use this option unless you know exactly what you are doing.
7721 .B threads=<1\-8>
7722 Maximum number of threads to use (default: 1).
7723 May have a slight negative effect on motion estimation.
7727 .B vcodec=<value>
7728 Employ the specified codec (default: mpeg4).
7729 .PD 0
7730 .RSs
7731 .IPs "asv1\ "
7732 ASUS Video v1
7733 .IPs "asv2\ "
7734 ASUS Video v2
7735 .IPs dvvideo
7736 Sony Digital Video
7737 .IPs "ffv1\ "
7738 FFmpeg's lossless video codec
7739 .IPs ffvhuff
7740 nonstandard 20% smaller HuffYUV using YV12
7741 .IPs "flv\ \ "
7742 Sorenson H.263 used in Flash Video
7743 .IPs "h261\ "
7744 H.261
7745 .IPs "h263\ "
7746 H.263
7747 .IPs h263p
7748 H.263+
7749 .IPs huffyuv
7750 HuffYUV
7751 .IPs libtheora
7752 Theora
7753 .IPs libx264
7754 x264 H.264/AVC MPEG-4 Part 10
7755 .IPs libxvid
7756 Xvid MPEG-4 Part 2 (ASP)
7757 .IPs ljpeg
7758 Lossless JPEG
7759 .IPs mjpeg
7760 Motion JPEG
7761 .IPs mpeg1video
7762 MPEG-1 video
7763 .IPs mpeg2video
7764 MPEG-2 video
7765 .IPs mpeg4
7766 MPEG-4 (DivX 4/5)
7767 .IPs msmpeg4
7768 DivX 3
7769 .IPs msmpeg4v2
7770 MS MPEG4v2
7771 .IPs roqvideo
7772 ID Software RoQ Video
7773 .IPs "rv10\ "
7774 an old RealVideo codec
7775 .IPs "snow (also see: vstrict)"
7776 FFmpeg's experimental wavelet-based codec
7777 .IPs "svq1\ "
7778 Apple Sorenson Video 1
7779 .IPs "wmv1\ "
7780 Windows Media Video, version 1 (AKA WMV7)
7781 .IPs "wmv2\ "
7782 Windows Media Video, version 2 (AKA WMV8)
7784 .PD 1
7787 .B vqmin=<1\-31>
7788 minimum quantizer
7789 .RSs
7790 .IPs 1
7791 Not recommended (much larger file, little quality difference and weird side
7792 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
7793 resulting in lower quality and some decoders will not be able to decode it).
7794 .IPs 2
7795 Recommended for normal mpeg4/\:mpeg1video encoding (default).
7796 .IPs 3
7797 Recommended for h263(p)/\:msmpeg4.
7798 The reason for preferring 3 over 2 is that 2 could lead to overflows.
7799 (This will be fixed for h263(p) by changing the quantizer per MB in
7800 the future, msmpeg4 cannot be fixed as it does not support that.)
7804 .B lmin=<0.01\-255.0>
7805 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
7806 Lavc will rarely use quantizers below the value of lmin.
7807 Lowering lmin will make lavc more likely to choose lower quantizers for
7808 some frames, but not lower than the value of vqmin.
7809 Likewise, raising lmin will make lavc less likely to choose low
7810 quantizers, even if vqmin would have allowed them.
7811 You probably want to set lmin approximately equal to vqmin.
7812 When adaptive quantization is in use, changing lmin/lmax may have less
7813 of an effect; see mblmin/mblmax.
7817 .B lmax=<0.01\-255.0>
7818 maximum Lagrange multiplier for ratecontrol (default: 31.0)
7822 .B mblmin=<0.01\-255.0>
7823 Minimum macroblock-level Lagrange multiplier for ratecontrol
7824 (default:2.0).
7825 This parameter affects adaptive quantization options like qprd,
7826 lumi_mask, etc..
7830 .B mblmax=<0.01\-255.0>
7831 Maximum macroblock-level Lagrange multiplier for ratecontrol
7832 (default: 31.0).
7836 .B vqscale=<0\-31>
7837 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
7838 A lower value means better quality but larger files (default: \-1).
7839 In case of snow codec, value 0 means lossless encoding.
7840 Since the other codecs do not support this, vqscale=0 will have an undefined
7841 effect.
7842 1 is not recommended (see vqmin for details).
7845 .B vqmax=<1\-31>
7846 Maximum quantizer, 10\-31 should be a sane range (default: 31).
7849 .B mbqmin=<1\-31>
7850 obsolete, use vqmin
7853 .B mbqmax=<1\-31>
7854 obsolete, use vqmax
7857 .B vqdiff=<1\-31>
7858 maximum quantizer difference between consecutive I- or P-frames
7859 (default: 3)
7862 .B vmax_b_frames=<0\-4>
7863 maximum number of B-frames between non-B-frames:
7864 .PD 0
7865 .RSs
7866 .IPs 0
7867 no B-frames (default)
7868 .IPs 0\-2
7869 sane range for MPEG-4
7871 .PD 1
7874 .B vme=<0\-5>
7875 motion estimation method.
7876 Available methods are:
7877 .PD 0
7878 .RSs
7879 .IPs 0
7880 none (very low quality)
7881 .IPs 1
7882 full (slow, currently unmaintained and disabled)
7883 .IPs 2
7884 log (low quality, currently unmaintained and disabled)
7885 .IPs 3
7886 phods (low quality, currently unmaintained and disabled)
7887 .IPs 4
7888 EPZS: size=1 diamond, size can be adjusted with the *dia options
7889 (default)
7890 .IPs 5
7891 X1 (experimental, currently aliased to EPZS)
7892 .IPs 8
7893 iter (iterative overlapped block, only used in snow)
7895 .PD 1
7896 .sp 1
7899 .I NOTE:
7900 0\-3 currently ignores the amount of bits spent,
7901 so quality may be low.
7905 .B me_range=<0\-9999>
7906 motion estimation search range (default: 0 (unlimited))
7909 .B mbd=<0\-2> (also see *cmp, qpel)
7910 Macroblock decision algorithm (high quality mode), encode each macro
7911 block in all modes and choose the best.
7912 This is slow but results in better quality and file size.
7913 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
7914 macroblocks (the mbcmp value is still used in other places though, in particular
7915 the motion search algorithms).
7916 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
7917 however, a slower but better half-pel motion search will be used,
7918 regardless of what mbd is set to.
7919 If qpel is set, quarter-pel motion search will be used regardless.
7920 .PD 0
7921 .RSs
7922 .IPs 0
7923 Use comparison function given by mbcmp (default).
7924 .IPs 1
7925 Select the MB mode which needs the fewest bits (=vhq).
7926 .IPs 2
7927 Select the MB mode which has the best rate distortion.
7929 .PD 1
7932 .B "vhq\ \ \ \ "
7933 Same as mbd=1, kept for compatibility reasons.
7936 .B "v4mv\ \ \ "
7937 Allow 4 motion vectors per macroblock (slightly better quality).
7938 Works better if used with mbd>0.
7941 .B "obmc\ \ \ "
7942 overlapped block motion compensation (H.263+)
7945 .B "loop\ \ \ "
7946 loop filter (H.263+)
7947 note, this is broken
7950 .B inter_threshold <\-1000\-1000>
7951 Does absolutely nothing at the moment.
7954 .B keyint=<0\-300>
7955 maximum interval between keyframes in frames (default: 250 or one
7956 keyframe every ten seconds in a 25fps movie.
7957 This is the recommended default for MPEG-4).
7958 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
7959 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
7960 keyframes need more space than other frames, so larger numbers here mean
7961 slightly smaller files but less precise seeking.
7962 0 is equivalent to 1, which makes every frame a keyframe.
7963 Values >300 are not recommended as the quality might be bad depending upon
7964 decoder, encoder and luck.
7965 It is common for MPEG-1/2 to use values <=30.
7968 .B sc_threshold=<\-1000000000\-1000000000>
7969 Threshold for scene change detection.
7970 A keyframe is inserted by libavcodec when it detects a scene change.
7971 You can specify the sensitivity of the detection with this option.
7972 \-1000000000 means there is a scene change detected at every frame,
7973 1000000000 means no scene changes are detected (default: 0).
7976 .B sc_factor=<any positive integer>
7977 Causes frames with higher quantizers to be more likely to trigger a
7978 scene change detection and make libavcodec use an I-frame (default: 1).
7979 1\-16 is a sane range.
7980 Values between 2 and 6 may yield increasing PSNR (up to approximately
7981 0.04 dB) and better placement of I-frames in high-motion scenes.
7982 Higher values than 6 may give very slightly better PSNR (approximately
7983 0.01 dB more than sc_factor=6), but noticably worse visual quality.
7986 .B vb_strategy=<0\-2> (pass one only)
7987 strategy to choose between I/P/B-frames:
7988 .PD 0
7989 .RSs
7990 .IPs 0
7991 Always use the maximum number of B-frames (default).
7992 .IPs 1
7993 Avoid B-frames in high motion scenes.
7994 See the b_sensitivity option to tune this strategy.
7995 .IPs 2
7996 Places B-frames more or less optimally to yield maximum quality (slower).
7997 You may want to reduce the speed impact of this option by tuning the
7998 option brd_scale.
8000 .PD 1
8003 .B b_sensitivity=<any integer greater than 0>
8004 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
8005 B-frames (default: 40).
8006 Lower sensitivities will result in more B-frames.
8007 Using more B-frames usually improves PSNR, but too many B-frames can
8008 hurt quality in high-motion scenes.
8009 Unless there is an extremely high amount of motion, b_sensitivity can
8010 safely be lowered below the default; 10 is a reasonable value in most
8011 cases.
8014 .B brd_scale=<0\-10>
8015 Downscales frames for dynamic B-frame decision (default: 0).
8016 Each time brd_scale is increased by one, the frame dimensions are
8017 divided by two, which improves speed by a factor of four.
8018 Both dimensions of the fully downscaled frame must be even numbers, so
8019 brd_scale=1 requires the original dimensions to be multiples of four,
8020 brd_scale=2 requires multiples of eight, etc.
8021 In other words, the dimensions of the original frame must both be
8022 divisible by 2^(brd_scale+1) with no remainder.
8025 .B bidir_refine=<0\-4>
8026 Refine the two motion vectors used in bidirectional macroblocks,
8027 rather than re-using vectors from the forward and backward searches.
8028 This option has no effect without B-frames.
8029 .PD 0
8030 .RSs
8031 .IPs 0
8032 Disabled (default).
8033 .IPs 1\-4
8034 Use a wider search (larger values are slower).
8036 .PD 1
8039 .B vpass=<1\-3>
8040 Activates internal two (or more) pass mode, only specify if you wish to
8041 use two (or more) pass encoding.
8042 .PD 0
8043 .RSs
8044 .IPs 1
8045 first pass (also see turbo)
8046 .IPs 2
8047 second pass
8048 .IPs 3
8049 Nth pass (second and subsequent passes of N-pass encoding)
8052 Here is how it works, and how to use it:
8054 The first pass (vpass=1) writes the statistics file.
8055 You might want to deactivate some CPU-hungry options, like "turbo"
8056 mode does.
8058 In two pass mode, the second pass (vpass=2) reads the statistics file and
8059 bases ratecontrol decisions on it.
8061 In N-pass mode, the second pass (vpass=3, that is not a typo)
8062 does both: It first reads the statistics, then overwrites them.
8063 You might want to backup divx2pass.log before doing this if there is
8064 any possibility that you will have to cancel MEncoder.
8065 You can use all encoding options, except very CPU-hungry options like "qns".
8067 You can run this same pass over and over to refine the encode.
8068 Each subsequent pass will use the statistics from the previous pass to improve.
8069 The final pass can include any CPU-hungry encoding options.
8071 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
8073 If you want a 3 or more pass encode, use vpass=1 for the first pass
8074 and then vpass=3 and then vpass=3 again and again until you are
8075 satisfied with the encode.
8077 .PD 1
8078 .sp 1
8080 huffyuv:
8082 .PD 0
8083 .RSs
8084 .IPs "pass 1"
8085 Saves statistics.
8086 .IPs "pass 2"
8087 Encodes with an optimal Huffman table based upon statistics
8088 from the first pass.
8090 .PD 1
8093 .B turbo (two pass only)
8094 Dramatically speeds up pass one using faster algorithms and disabling
8095 CPU-intensive options.
8096 This will probably reduce global PSNR a little bit (around 0.01dB) and
8097 change individual frame type and PSNR a little bit more (up to 0.03dB).
8100 .B aspect=<x/y>
8101 Store movie aspect internally, just like with MPEG files.
8102 Much nicer than rescaling, because quality is not decreased.
8103 Only MPlayer will play these files correctly, other players will display
8104 them with wrong aspect.
8105 The aspect parameter can be given as a ratio or a floating point number.
8106 .sp 1
8108 .I EXAMPLE:
8110 .RSs
8111 .PD 0
8112 .IPs "aspect=16/9 or aspect=1.78"
8113 .PD 1
8117 .B autoaspect
8118 Same as the aspect option, but automatically computes aspect, taking
8119 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
8120 filter chain.
8121 Does not incur a performance penalty, so you can safely leave it
8122 always on.
8125 .B vbitrate=<value>
8126 Specify bitrate (default: 800).
8128 .I WARNING:
8129 1kbit = 1000 bits
8130 .PD 0
8131 .RSs
8132 .IPs 4\-16000
8133 (in kbit)
8134 .IPs 16001\-24000000
8135 (in bit)
8137 .PD 1
8140 .B vratetol=<value>
8141 approximated file size tolerance in kbit.
8142 1000\-100000 is a sane range.
8143 (warning: 1kbit = 1000 bits)
8144 (default: 8000)
8146 .I NOTE:
8147 vratetol should not be too large during the second pass or there might
8148 be problems if vrc_(min|max)rate is used.
8151 .B vrc_maxrate=<value>
8152 maximum bitrate in kbit/\:sec
8153 (default: 0, unlimited)
8156 .B vrc_minrate=<value>
8157 minimum bitrate in kbit/\:sec
8158 (default: 0, unlimited)
8161 .B vrc_buf_size=<value>
8162 buffer size in kbit
8163 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
8164 917 for SVCD and 1835 for DVD.
8167 .B vrc_buf_aggressivity
8168 currently useless
8171 .B vrc_strategy
8172 Ratecontrol method.
8173 Note that some of the ratecontrol-affecting options will have no effect
8174 if vrc_strategy is not set to 0.
8175 .PD 0
8176 .RSs
8177 .IPs 0
8178 Use internal lavc ratecontrol (default).
8179 .IPs 1
8180 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
8181 with support for Xvid 1.1 or higher).
8183 .PD 1
8186 .B vb_qfactor=<\-31.0\-31.0>
8187 quantizer factor between B- and non-B-frames (default: 1.25)
8190 .B vi_qfactor=<\-31.0\-31.0>
8191 quantizer factor between I- and non-I-frames (default: 0.8)
8194 .B vb_qoffset=<\-31.0\-31.0>
8195 quantizer offset between B- and non-B-frames (default: 1.25)
8198 .B vi_qoffset=<\-31.0\-31.0>
8199 (default: 0.0)
8201 if v{b|i}_qfactor > 0
8203 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8205 else
8207 do normal ratecontrol (do not lock to next P-frame quantizer) and
8208 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8210 .I HINT:
8211 To do constant quantizer encoding with different quantizers for
8212 I/P- and B-frames you can use:
8213 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8216 .B vqblur=<0.0\-1.0> (pass one)
8217 Quantizer blur (default: 0.5), larger values will average the
8218 quantizer more over time (slower change).
8219 .PD 0
8220 .RSs
8221 .IPs 0.0
8222 Quantizer blur disabled.
8223 .IPs 1.0
8224 Average the quantizer over all previous frames.
8226 .PD 1
8229 .B vqblur=<0.0\-99.0> (pass two)
8230 Quantizer gaussian blur (default: 0.5), larger values will average
8231 the quantizer more over time (slower change).
8234 .B vqcomp=<0.0\-1.0>
8235 Quantizer compression, vrc_eq depends upon this (default: 0.5).
8236 .I NOTE:
8237 Perceptual quality will be optimal somewhere in between the range's extremes.
8240 .B vrc_eq=<equation>
8241 main ratecontrol equation
8243 .RSs
8244 .IPs 1+(tex/\:avgTex-1)*qComp
8245 approximately the equation of the old ratecontrol code
8246 .IPs tex^qComp
8247 with qcomp 0.5 or something like that (default)
8251 infix operators:
8253 .RSs
8254 .IPs +,\-,*,/,^
8258 variables:
8260 .RSs
8261 .IPs "tex\ \ "
8262 texture complexity
8263 .IPs iTex,pTex
8264 intra, non-intra texture complexity
8265 .IPs avgTex
8266 average texture complexity
8267 .IPs avgIITex
8268 average intra texture complexity in I-frames
8269 .IPs avgPITex
8270 average intra texture complexity in P-frames
8271 .IPs avgPPTex
8272 average non-intra texture complexity in P-frames
8273 .IPs avgBPTex
8274 average non-intra texture complexity in B-frames
8275 .IPs "mv\ \ \ "
8276 bits used for motion vectors
8277 .IPs fCode
8278 maximum length of motion vector in log2 scale
8279 .IPs iCount
8280 number of intra macroblocks / number of macroblocks
8281 .IPs "var\ \ "
8282 spatial complexity
8283 .IPs mcVar
8284 temporal complexity
8285 .IPs qComp
8286 qcomp from the command line
8287 .IPs "isI, isP, isB"
8288 Is 1 if picture type is I/P/B else 0.
8289 .IPs "Pi,E\ "
8290 See your favorite math book.
8294 functions:
8296 .RSs
8297 .IPs max(a,b),min(a,b)
8298 maximum / minimum
8299 .IPs gt(a,b)
8300 is 1 if a>b, 0 otherwise
8301 .IPs lt(a,b)
8302 is 1 if a<b, 0 otherwise
8303 .IPs eq(a,b)
8304 is 1 if a==b, 0 otherwise
8305 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8309 .B vrc_override=<options>
8310 User specified quality for specific parts (ending, credits, ...).
8311 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8312 <end-frame>, <quality>[/...]]:
8313 .PD 0
8314 .RSs
8315 .IPs "quality (2\-31)"
8316 quantizer
8317 .IPs "quality (\-500\-0)"
8318 quality correction in %
8320 .PD 1
8323 .B vrc_init_cplx=<0\-1000>
8324 initial complexity (pass 1)
8327 .B vrc_init_occupancy=<0.0\-1.0>
8328 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8331 .B vqsquish=<0|1>
8332 Specify how to keep the quantizer between qmin and qmax.
8333 .PD 0
8334 .RSs
8335 .IPs 0
8336 Use clipping.
8337 .IPs 1
8338 Use a nice differentiable function (default).
8340 .PD 1
8343 .B vlelim=<\-1000\-1000>
8344 Sets single coefficient elimination threshold for luminance.
8345 Negative values will also consider the DC coefficient (should be at least \-4
8346 or lower for encoding at quant=1):
8347 .PD 0
8348 .RSs
8349 .IPs 0
8350 disabled (default)
8351 .IPs \-4
8352 JVT recommendation
8354 .PD 1
8357 .B vcelim=<\-1000\-1000>
8358 Sets single coefficient elimination threshold for chrominance.
8359 Negative values will also consider the DC coefficient (should be at least \-4
8360 or lower for encoding at quant=1):
8361 .PD 0
8362 .RSs
8363 .IPs 0
8364 disabled (default)
8365 .IPs 7
8366 JVT recommendation
8368 .PD 1
8371 .B vstrict=<\-2|\-1|0|1>
8372 strict standard compliance
8373 .PD 0
8374 .RSs
8375 .IPs 0
8376 disabled
8377 .IPs 1
8378 Only recommended if you want to feed the output into the
8379 MPEG-4 reference decoder.
8380 .IPs \-1
8381 Allow libavcodec specific extensions (default).
8382 .IPs \-2
8383 Enables experimental codecs and features which may not be playable
8384 with future MPlayer versions (snow).
8386 .PD 1
8389 .B "vdpart\ "
8390 Data partitioning.
8391 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8392 unreliable channels (e.g.\& streaming over the internet).
8393 Each video packet will be encoded in 3 separate partitions:
8394 .PD 0
8395 .RSs
8396 .IPs "1. MVs"
8397 movement
8398 .IPs "2. DC coefficients"
8399 low res picture
8400 .IPs "3. AC coefficients"
8401 details
8403 .PD 1
8405 MV & DC are most important, losing them looks far worse than losing
8406 the AC and the 1. & 2. partition.
8407 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8408 will hit the AC partition much more often than the MV & DC partitions.
8409 Thus, the picture will look better with partitioning than without,
8410 as without partitioning an error will trash AC/\:DC/\:MV equally.
8414 .B vpsize=<0\-10000> (also see vdpart)
8415 Video packet size, improves error-resistance.
8416 .PD 0
8417 .RSs
8418 .IPs "0\ \ \ \ "
8419 disabled (default)
8420 .IPs 100\-1000
8421 good choice
8423 .PD 1
8426 .B "ss\ \ \ \ \ "
8427 slice structured mode for H.263+
8430 .B "gray\ \ \ "
8431 grayscale only encoding (faster)
8434 .B vfdct=<0\-10>
8435 DCT algorithm
8436 .PD 0
8437 .RSs
8438 .IPs 0
8439 Automatically select a good one (default).
8440 .IPs 1
8441 fast integer
8442 .IPs 2
8443 accurate integer
8444 .IPs 3
8446 .IPs 4
8447 mlib
8448 .IPs 5
8449 AltiVec
8450 .IPs 6
8451 floating point AAN
8453 .PD 1
8456 .B idct=<0\-99>
8457 IDCT algorithm
8459 .I NOTE:
8460 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
8461 .PD 0
8462 .RSs
8463 .IPs 0
8464 Automatically select a good one (default).
8465 .IPs 1
8466 JPEG reference integer
8467 .IPs 2
8468 simple
8469 .IPs 3
8470 simplemmx
8471 .IPs 4
8472 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
8473 .IPs 5
8475 .IPs 6
8476 mlib
8477 .IPs 7
8479 .IPs 8
8480 AltiVec
8481 .IPs 9
8483 .IPs 10
8484 simplearm
8485 .IPs 11
8486 H.264
8487 .IPs 12
8489 .IPs 13
8491 .IPs 14
8492 xvidmmx
8493 .IPs 15
8494 CAVS
8495 .IPs 16
8496 simplearmv5te
8497 .IPs 17
8498 simplearmv6
8500 .PD 1
8503 .B lumi_mask=<0.0\-1.0>
8504 Luminance masking is a 'psychosensory' setting that is supposed to
8505 make use of the fact that the human eye tends to notice fewer details
8506 in very bright parts of the picture.
8507 Luminance masking compresses bright areas stronger than medium ones,
8508 so it will save bits that can be spent again on other frames, raising
8509 overall subjective quality, while possibly reducing PSNR.
8511 .I WARNING:
8512 Be careful, overly large values can cause disastrous things.
8514 .I WARNING:
8515 Large values might look good on some monitors but may look horrible
8516 on other monitors.
8517 .PD 0
8518 .RSs
8519 .IPs "0.0\ \ "
8520 disabled (default)
8521 .IPs 0.0\-0.3
8522 sane range
8524 .PD 1
8527 .B dark_mask=<0.0\-1.0>
8528 Darkness masking is a 'psychosensory' setting that is supposed to
8529 make use of the fact that the human eye tends to notice fewer details
8530 in very dark parts of the picture.
8531 Darkness masking compresses dark areas stronger than medium ones,
8532 so it will save bits that can be spent again on other frames, raising
8533 overall subjective quality, while possibly reducing PSNR.
8535 .I WARNING:
8536 Be careful, overly large values can cause disastrous things.
8538 .I WARNING:
8539 Large values might look good on some monitors but may look horrible
8540 on other monitors / TV / TFT.
8541 .PD 0
8542 .RSs
8543 .IPs "0.0\ \ "
8544 disabled (default)
8545 .IPs 0.0\-0.3
8546 sane range
8548 .PD 1
8551 .B tcplx_mask=<0.0\-1.0>
8552 Temporal complexity masking (default: 0.0 (disabled)).
8553 Imagine a scene with a bird flying across the whole scene; tcplx_mask
8554 will raise the quantizers of the bird's macroblocks (thus decreasing their
8555 quality), as the human eye usually does not have time to see all the bird's
8556 details.
8557 Be warned that if the masked object stops (e.g.\& the bird lands) it is
8558 likely to look horrible for a short period of time, until the encoder
8559 figures out that the object is not moving and needs refined blocks.
8560 The saved bits will be spent on other parts of the video, which may increase
8561 subjective quality, provided that tcplx_mask is carefully chosen.
8564 .B scplx_mask=<0.0\-1.0>
8565 Spatial complexity masking.
8566 Larger values help against blockiness, if no deblocking filter is used for
8567 decoding, which is maybe not a good idea.
8569 Imagine a scene with grass (which usually has great spatial complexity),
8570 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
8571 macroblocks, thus decreasing its quality, in order to spend more bits on
8572 the sky and the house.
8574 .I HINT:
8575 Crop any black borders completely as they will reduce the quality
8576 of the macroblocks (also applies without scplx_mask).
8577 .PD 0
8578 .RSs
8579 .IPs "0.0\ \ "
8580 disabled (default)
8581 .IPs 0.0\-0.5
8582 sane range
8584 .PD 1
8585 .sp 1
8587 .I NOTE:
8588 This setting does not have the same effect as using a custom matrix that
8589 would compress high frequencies harder, as scplx_mask will reduce the
8590 quality of P blocks even if only DC is changing.
8591 The result of scplx_mask will probably not look as good.
8595 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
8596 Reduces the quality of inter blocks.
8597 This is equivalent to increasing the quality of intra blocks, because the
8598 same average bitrate will be distributed by the rate controller to the
8599 whole video sequence (default: 0.0 (disabled)).
8600 p_mask=1.0 doubles the bits allocated to each intra block.
8603 .B border_mask=<0.0\-1.0>
8604 border-processing for MPEG-style encoders.
8605 Border processing increases the quantizer for macroblocks which are less
8606 than 1/5th of the frame width/height away from the frame border,
8607 since they are often visually less important.
8610 .B "naq\ \ \ \ "
8611 Normalize adaptive quantization (experimental).
8612 When using adaptive quantization (*_mask), the average per-MB quantizer may no
8613 longer match the requested frame-level quantizer.
8614 Naq will attempt to adjust the per-MB quantizers to maintain the proper
8615 average.
8618 .B "ildct\ \ "
8619 Use interlaced DCT.
8622 .B "ilme\ \ \ "
8623 Use interlaced motion estimation (mutually exclusive with qpel).
8626 .B "alt\ \ \ \ "
8627 Use alternative scantable.
8630 .B "top=<\-1\-1>\ \ \ "
8631 .PD 0
8632 .RSs
8633 .IPs \-1
8634 automatic
8635 .IPs 0
8636 bottom field first
8637 .IPs 1
8638 top field first
8640 .PD 1
8643 .B format=<value>
8644 .PD 0
8645 .RSs
8646 .IPs "YV12\ "
8647 default
8648 .IPs "444P\ "
8649 for ffv1
8650 .IPs "422P\ "
8651 for HuffYUV, lossless JPEG, dv and ffv1
8652 .IPs "411P\ "
8653 for lossless JPEG, dv and ffv1
8654 .IPs "YVU9\ "
8655 for lossless JPEG, ffv1 and svq1
8656 .IPs "BGR32"
8657 for lossless JPEG and ffv1
8659 .PD 1
8662 .B "pred\ \ \ "
8663 (for HuffYUV)
8664 .PD 0
8665 .RSs
8666 .IPs 0
8667 left prediction
8668 .IPs 1
8669 plane/\:gradient prediction
8670 .IPs 2
8671 median prediction
8673 .PD 1
8676 .B "pred\ \ \ "
8677 (for lossless JPEG)
8678 .PD 0
8679 .RSs
8680 .IPs 0
8681 left prediction
8682 .IPs 1
8683 top prediction
8684 .IPs 2
8685 topleft prediction
8686 .IPs 3
8687 plane/\:gradient prediction
8688 .IPs 6
8689 mean prediction
8691 .PD 1
8694 .B "coder\ \ "
8695 (for ffv1)
8696 .PD 0
8697 .RSs
8698 .IPs 0
8699 vlc coding (Golomb-Rice)
8700 .IPs 1
8701 arithmetic coding (CABAC)
8703 .PD 1
8706 .B context
8707 (for ffv1)
8708 .PD 0
8709 .RSs
8710 .IPs 0
8711 small context model
8712 .IPs 1
8713 large context model
8715 .PD 1
8716 .sp 1
8718 (for ffvhuff)
8720 .PD 0
8721 .RSs
8722 .IPs 0
8723 predetermined Huffman tables (builtin or two pass)
8724 .IPs 1
8725 adaptive Huffman tables
8727 .PD 1
8730 .B "qpel\ \ \ "
8731 Use quarter pel motion compensation (mutually exclusive with ilme).
8733 .I HINT:
8734 This seems only useful for high bitrate encodings.
8737 .B mbcmp=<0\-2000>
8738 Sets the comparison function for the macroblock decision, has only
8739 an effect if mbd=0.
8740 This is also used for some motion search functions, in which case
8741 it has an effect regardless of mbd setting.
8742 .PD 0
8743 .RSs
8744 .IPs "0 (SAD)"
8745 sum of absolute differences, fast (default)
8746 .IPs "1 (SSE)"
8747 sum of squared errors
8748 .IPs "2 (SATD)"
8749 sum of absolute Hadamard transformed differences
8750 .IPs "3 (DCT)"
8751 sum of absolute DCT transformed differences
8752 .IPs "4 (PSNR)"
8753 sum of squared quantization errors (avoid, low quality)
8754 .IPs "5 (BIT)"
8755 number of bits needed for the block
8756 .IPs "6 (RD)"
8757 rate distortion optimal, slow
8758 .IPs "7 (ZERO)"
8760 .IPs "8 (VSAD)"
8761 sum of absolute vertical differences
8762 .IPs "9 (VSSE)"
8763 sum of squared vertical differences
8764 .IPs "10 (NSSE)"
8765 noise preserving sum of squared differences
8766 .IPs "11 (W53)"
8767 5/3 wavelet, only used in snow
8768 .IPs "12 (W97)"
8769 9/7 wavelet, only used in snow
8770 .IPs "+256\ "
8771 Also use chroma, currently does not work (correctly) with B-frames.
8773 .PD 1
8776 .B ildctcmp=<0\-2000>
8777 Sets the comparison function for interlaced DCT decision
8778 (see mbcmp for available comparison functions).
8781 .B precmp=<0\-2000>
8782 Sets the comparison function for motion estimation pre pass
8783 (see mbcmp for available comparison functions) (default: 0).
8786 .B cmp=<0\-2000>
8787 Sets the comparison function for full pel motion estimation
8788 (see mbcmp for available comparison functions) (default: 0).
8791 .B subcmp=<0\-2000>
8792 Sets the comparison function for sub pel motion estimation
8793 (see mbcmp for available comparison functions) (default: 0).
8796 .B skipcmp=<0\-2000>
8797 FIXME: Document this.
8800 .B nssew=<0\-1000000>
8801 This setting controls NSSE weight, where larger weights will result in
8802 more noise.
8803 0 NSSE is identical to SSE
8804 You may find this useful if you prefer to keep some noise in your encoded
8805 video rather than filtering it away before encoding (default: 8).
8808 .B predia=<\-99\-6>
8809 diamond type and size for motion estimation pre-pass
8812 .B dia=<\-99\-6>
8813 Diamond type & size for motion estimation.
8814 Motion search is an iterative process.
8815 Using a small diamond does not limit the search to finding only small
8816 motion vectors.
8817 It is just somewhat more likely to stop before finding the very best motion
8818 vector, especially when noise is involved.
8819 Bigger diamonds allow a wider search for the best motion vector, thus are
8820 slower but result in better quality.
8822 Big normal diamonds are better quality than shape-adaptive diamonds.
8824 Shape-adaptive diamonds are a good tradeoff between speed and quality.
8826 .I NOTE:
8827 The sizes of the normal diamonds and shape adaptive ones do not have
8828 the same meaning.
8829 .RSs
8830 .IPs \-3
8831 shape adaptive (fast) diamond with size 3
8832 .IPs \-2
8833 shape adaptive (fast) diamond with size 2
8834 .IPs \-1
8835 uneven multi-hexagon search (slow)
8836 .IPs  1
8837 normal size=1 diamond (default) =EPZS type diamond
8840       0
8841      000
8842       0
8844 .IPs 2
8845 normal size=2 diamond
8848       0
8849      000
8850     00000
8851      000
8852       0
8857 .B "trell\ \ "
8858 Trellis searched quantization.
8859 This will find the optimal encoding for each 8x8 block.
8860 Trellis searched quantization is quite simply an optimal quantization in
8861 the PSNR versus bitrate sense (Assuming that there would be no rounding
8862 errors introduced by the IDCT, which is obviously not the case.).
8863 It simply finds a block for the minimum of error and lambda*bits.
8864 .PD 0
8865 .RSs
8866 .IPs lambda
8867 quantization parameter (QP) dependent constant
8868 .IPs "bits\ "
8869 amount of bits needed to encode the block
8870 .IPs error
8871 sum of squared errors of the quantization
8873 .PD 1
8876 .B "cbp\ \ \ \ "
8877 Rate distorted optimal coded block pattern.
8878 Will select the coded block pattern which minimizes distortion + lambda*rate.
8879 This can only be used together with trellis quantization.
8882 .B "mv0\ \ \ \ "
8883 Try to encode each MB with MV=<0,0> and choose the better one.
8884 This has no effect if mbd=0.
8887 .B mv0_threshold=<any non-negative integer>
8888 When surrounding motion vectors are <0,0> and the motion estimation
8889 score of the current block is less than mv0_threshold, <0,0> is used for
8890 the motion vector and further motion estimation is skipped (default:
8891 256).
8892 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
8893 possibly make the encoded video look slightly better; raising
8894 mv0_threshold past 320 results in diminished PSNR and visual quality.
8895 Higher values speed up encoding very slightly (usually less than 1%,
8896 depending on the other options used).
8898 .I NOTE:
8899 This option does not require mv0 to be enabled.
8902 .B qprd (mbd=2 only)
8903 rate distorted optimal quantization parameter (QP) for the given
8904 lambda of each macroblock
8907 .B last_pred=<0\-99>
8908 amount of motion predictors from the previous frame
8909 .PD 0
8910 .RSs
8911 .IPs 0
8912 (default)
8913 .IPs a
8914 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
8915 previous frame.
8917 .PD 1
8920 .B preme=<0\-2>
8921 motion estimation pre-pass
8922 .PD 0
8923 .RSs
8924 .IPs 0
8925 disabled
8926 .IPs 1
8927 only after I-frames (default)
8928 .IPs 2
8929 always
8931 .PD 1
8934 .B subq=<1\-8>
8935 subpel refinement quality (for qpel) (default: 8 (high quality))
8937 .I NOTE:
8938 This has a significant effect on speed.
8941 .B refs=<1\-8>
8942 number of reference frames to consider for motion compensation
8943 (Snow only) (default: 1)
8946 .B "psnr\ \ \ "
8947 print the PSNR (peak signal to noise ratio) for the whole video after encoding
8948 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
8949 Returned values are in dB (decibel), the higher the better.
8952 .B mpeg_quant
8953 Use MPEG quantizers instead of H.263.
8956 .B "aic\ \ \ \ "
8957 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
8958 This will improve quality very slightly (around 0.02 dB PSNR) and slow
8959 down encoding very slightly (about 1%).
8961 .I NOTE:
8962 vqmin should be 8 or larger for H.263+ AIC.
8965 .B "aiv\ \ \ \ "
8966 alternative inter vlc for H.263+
8969 .B "umv\ \ \ \ "
8970 unlimited MVs (H.263+ only)
8971 Allows encoding of arbitrarily long MVs.
8974 .B ibias=<\-256\-256>
8975 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
8976 H.263 style quantizer default: 0)
8978 .I NOTE:
8979 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
8980 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
8983 .B pbias=<\-256\-256>
8984 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
8985 H.263 style quantizer default: \-64)
8987 .I NOTE:
8988 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
8989 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
8991 .I HINT:
8992 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
8995 .B nr=<0\-100000>
8996 Noise reduction, 0 means disabled.
8997 0\-600 is a useful range for typical content, but you may want to turn it
8998 up a bit more for very noisy content (default: 0).
8999 Given its small impact on speed, you might want to prefer to use this over
9000 filtering noise away with video filters like denoise3d or hqdn3d.
9003 .B qns=<0\-3>
9004 Quantizer noise shaping.
9005 Rather than choosing quantization to most closely match the source video
9006 in the PSNR sense, it chooses quantization such that noise (usually ringing)
9007 will be masked by similar-frequency content in the image.
9008 Larger values are slower but may not result in better quality.
9009 This can and should be used together with trellis quantization, in which case
9010 the trellis quantization (optimal for constant weight) will be used as
9011 startpoint for the iterative search.
9012 .PD 0
9013 .RSs
9014 .IPs 0
9015 disabled (default)
9016 .IPs 1
9017 Only lower the absolute value of coefficients.
9018 .IPs 2
9019 Only change coefficients before the last non-zero coefficient + 1.
9020 .IPs 3
9021 Try all.
9023 .PD 1
9026 .B inter_matrix=<comma separated matrix>
9027 Use custom inter matrix.
9028 It needs a comma separated string of 64 integers.
9031 .B intra_matrix=<comma separated matrix>
9032 Use custom intra matrix.
9033 It needs a comma separated string of 64 integers.
9036 .B vqmod_amp
9037 experimental quantizer modulation
9040 .B vqmod_freq
9041 experimental quantizer modulation
9044 .B "dc\ \ \ \ \ "
9045 intra DC precision in bits (default: 8).
9046 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
9049 .B cgop (also see sc_threshold)
9050 Close all GOPs.
9051 Currently it only works if scene change detection is disabled
9052 (sc_threshold=1000000000).
9055 .B (no)lowdelay
9056 Sets the low delay flag for MPEG-1/2 (disables B-frames).
9059 .B vglobal=<0\-3>
9060 Control writing global video headers.
9061 .PD 0
9062 .RSs
9063 .IPs 0
9064 Codec decides where to write global headers (default).
9065 .IPs 1
9066 Write global headers only in extradata (needed for .mp4/MOV/NUT).
9067 .IPs 2
9068 Write global headers only in front of keyframes.
9069 .IPs 3
9070 Combine 1 and 2.
9072 .PD 1
9075 .B aglobal=<0\-3>
9076 Same as vglobal for audio headers.
9079 .B level=<value>
9080 Set CodecContext Level.
9081 Use 31 or 41 to play video on a Playstation 3.
9084 .B skip_exp=<0\-1000000>
9085 FIXME: Document this.
9088 .B skip_factor=<0\-1000000>
9089 FIXME: Document this.
9092 .B skip_threshold=<0\-1000000>
9093 FIXME: Document this.
9096 .SS nuv (\-nuvopts)
9098 Nuppel video is based on RTJPEG and LZO.
9099 By default frames are first encoded with RTJPEG and then compressed with LZO,
9100 but it is possible to disable either or both of the two passes.
9101 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
9102 or the default LZO compressed RTJPEG.
9104 .I NOTE:
9105 The nuvrec documentation contains some advice and examples about the
9106 settings to use for the most common TV encodings.
9109 .B c=<0\-20>
9110 chrominance threshold (default: 1)
9113 .B l=<0\-20>
9114 luminance threshold (default: 1)
9117 .B "lzo\ \ \ \ "
9118 Enable LZO compression (default).
9121 .B "nolzo\ \ "
9122 Disable LZO compression.
9125 .B q=<3\-255>
9126 quality level (default: 255)
9129 .B "raw \ \ \ "
9130 Disable RTJPEG encoding.
9133 .B "rtjpeg\ "
9134 Enable RTJPEG encoding (default).
9137 .SS xvidenc (\-xvidencopts)
9139 There are three modes available: constant bitrate (CBR), fixed quantizer and
9140 two pass.
9143 .B pass=<1|2>
9144 Specify the pass in two pass mode.
9147 .B turbo (two pass only)
9148 Dramatically speeds up pass one using faster algorithms and disabling
9149 CPU-intensive options.
9150 This will probably reduce global PSNR a little bit and change individual
9151 frame type and PSNR a little bit more.
9154 .B bitrate=<value> (CBR or two pass mode)
9155 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
9156 if >16000.
9157 If <value> is negative, Xvid will use its absolute value as the target size
9158 (in kBytes) of the video and compute the associated bitrate automagically
9159 (default: 687 kbits/s).
9162 .B fixed_quant=<1\-31>
9163 Switch to fixed quantizer mode and specify the quantizer to be used.
9166 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
9167 User specified quality for specific parts (ending, credits, ...).
9168 Each zone is <start-frame>,<mode>,<value> where <mode> may be
9169 .PD 0
9170 .RSs
9171 .IPs "q"
9172 Constant quantizer override, where value=<2.0\-31.0>
9173 represents the quantizer value.
9174 .IPs "w"
9175 Ratecontrol weight override, where value=<0.01\-2.00>
9176 represents the quality correction in %.
9178 .PD 1
9179 .sp 1
9181 .I EXAMPLE:
9183 .PD 0
9184 .RSs
9185 .IPs zones=90000,q,20
9186 Encodes all frames starting with frame 90000 at constant quantizer 20.
9187 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9188 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9189 up to the end at constant quantizer 20.
9190 Note that the second zone is needed to delimit the first zone, as
9191 without it everything up until frame 89999 would be encoded at 10%
9192 bitrate.
9194 .PD 1
9197 .B me_quality=<0\-6>
9198 This option controls the motion estimation subsystem.
9199 The higher the value, the more precise the estimation should be (default: 6).
9200 The more precise the motion estimation is, the more bits can be saved.
9201 Precision is gained at the expense of CPU time so decrease this setting if
9202 you need realtime encoding.
9205 .B (no)qpel
9206 MPEG-4 uses a half pixel precision for its motion search by default.
9207 The standard proposes a mode where encoders are allowed to use quarter
9208 pixel precision.
9209 This option usually results in a sharper image.
9210 Unfortunately it has a great impact on bitrate and sometimes the
9211 higher bitrate use will prevent it from giving a better image
9212 quality at a fixed bitrate.
9213 It is better to test with and without this option and see whether it
9214 is worth activating.
9217 .B (no)gmc
9218 Enable Global Motion Compensation, which makes Xvid generate special
9219 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9220 Whether or not the use of this option will save bits is highly
9221 dependent on the source material.
9224 .B (no)trellis
9225 Trellis Quantization is a kind of adaptive quantization method that
9226 saves bits by modifying quantized coefficients to make them more
9227 compressible by the entropy encoder.
9228 Its impact on quality is good, and if VHQ uses too much CPU for you,
9229 this setting can be a good alternative to save a few bits (and gain
9230 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9233 .B (no)cartoon
9234 Activate this if your encoded sequence is an anime/\:cartoon.
9235 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9236 frame types and motion vectors for flat looking cartoons.
9239 .B (no)chroma_me
9240 The usual motion estimation algorithm uses only the luminance information to
9241 find the best motion vector.
9242 However for some video material, using the chroma planes can help find
9243 better vectors.
9244 This setting toggles the use of chroma planes for motion estimation
9245 (default: on).
9248 .B (no)chroma_opt
9249 Enable a chroma optimizer prefilter.
9250 It will do some extra magic on color information to minimize the
9251 stepped-stairs effect on edges.
9252 It will improve quality at the cost of encoding speed.
9253 It reduces PSNR by nature, as the mathematical deviation to the original
9254 picture will get bigger, but the subjective image quality will raise.
9255 Since it works with color information, you might want to turn it off when
9256 encoding in grayscale.
9259 .B (no)hq_ac
9260 Activates high-quality prediction of AC coefficients for intra frames from
9261 neighbor blocks (default: on).
9264 .B vhq=<0\-4>
9265 The motion search algorithm is based on a search in the usual color domain
9266 and tries to find a motion vector that minimizes the difference between the
9267 reference frame and the encoded frame.
9268 With this setting activated, Xvid will also use the frequency domain (DCT)
9269 to search for a motion vector that minimizes not only the spatial
9270 difference but also the encoding length of the block.
9271 Fastest to slowest:
9272 .PD 0
9273 .RSs
9274 .IPs 0
9276 .IPs 1
9277 mode decision (inter/\:intra MB) (default)
9278 .IPs 2
9279 limited search
9280 .IPs 3
9281 medium search
9282 .IPs 4
9283 wide search
9285 .PD 1
9288 .B (no)lumi_mask
9289 Adaptive quantization allows the macroblock quantizers to vary inside
9290 each frame.
9291 This is a 'psychosensory' setting that is supposed to make use of the
9292 fact that the human eye tends to notice fewer details in very bright
9293 and very dark parts of the picture.
9294 It compresses those areas more strongly than medium ones, which will
9295 save bits that can be spent again on other frames, raising overall
9296 subjective quality and possibly reducing PSNR.
9299 .B (no)grayscale
9300 Make Xvid discard chroma planes so the encoded video is grayscale only.
9301 Note that this does not speed up encoding, it just prevents chroma data
9302 from being written in the last stage of encoding.
9305 .B (no)interlacing
9306 Encode the fields of interlaced video material.
9307 Turn this option on for interlaced content.
9309 .I NOTE:
9310 Should you rescale the video, you would need an interlace-aware resizer,
9311 which you can activate with \-vf scale=<width>:<height>:1.
9314 .B min_iquant=<0\-31>
9315 minimum I-frame quantizer (default: 2)
9318 .B max_iquant=<0\-31>
9319 maximum I-frame quantizer (default: 31)
9322 .B min_pquant=<0\-31>
9323 minimum P-frame quantizer (default: 2)
9326 .B max_pquant=<0\-31>
9327 maximum P-frame quantizer (default: 31)
9330 .B min_bquant=<0\-31>
9331 minimum B-frame quantizer (default: 2)
9334 .B max_bquant=<0\-31>
9335 maximum B-frame quantizer (default: 31)
9338 .B min_key_interval=<value> (two pass only)
9339 minimum interval between keyframes (default: 0)
9342 .B max_key_interval=<value>
9343 maximum interval between keyframes (default: 10*fps)
9346 .B quant_type=<h263|mpeg>
9347 Sets the type of quantizer to use.
9348 For high bitrates, you will find that MPEG quantization preserves more detail.
9349 For low bitrates, the smoothing of H.263 will give you less block noise.
9350 When using custom matrices, MPEG quantization
9351 .B must
9352 be used.
9355 .B quant_intra_matrix=<filename>
9356 Load a custom intra matrix file.
9357 You can build such a file with xvid4conf's matrix editor.
9360 .B quant_inter_matrix=<filename>
9361 Load a custom inter matrix file.
9362 You can build such a file with xvid4conf's matrix editor.
9365 .B keyframe_boost=<0\-1000> (two pass mode only)
9366 Shift some bits from the pool for other frame types to intra frames,
9367 thus improving keyframe quality.
9368 This amount is an extra percentage, so a value of 10 will give
9369 your keyframes 10% more bits than normal
9370 (default: 0).
9373 .B kfthreshold=<value> (two pass mode only)
9374 Works together with kfreduction.
9375 Determines the minimum distance below which you consider that
9376 two frames are considered consecutive and treated differently
9377 according to kfreduction
9378 (default: 10).
9381 .B kfreduction=<0\-100> (two pass mode only)
9382 The above two settings can be used to adjust the size of keyframes that
9383 you consider too close to the first (in a row).
9384 kfthreshold sets the range in which keyframes are reduced, and
9385 kfreduction determines the bitrate reduction they get.
9386 The last I-frame will get treated normally
9387 (default: 30).
9390 .B max_bframes=<0\-4>
9391 Maximum number of B-frames to put between I/P-frames (default: 2).
9394 .B bquant_ratio=<0\-1000>
9395 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9398 .B bquant_offset=<\-1000\-1000>
9399 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9402 .B bf_threshold=<\-255\-255>
9403 This setting allows you to specify what priority to place on the use of
9404 B-frames.
9405 The higher the value, the higher the probability of B-frames being used
9406 (default: 0).
9407 Do not forget that B-frames usually have a higher quantizer, and therefore
9408 aggressive production of B-frames may cause worse visual quality.
9411 .B (no)closed_gop
9412 This option tells Xvid to close every GOP (Group Of Pictures bounded
9413 by two I-frames), which makes GOPs independent from each other.
9414 This just implies that the last frame of the GOP is either a P-frame or a
9415 N-frame but not a B-frame.
9416 It is usually a good idea to turn this option on (default: on).
9419 .B (no)packed
9420 This option is meant to solve frame-order issues when encoding to
9421 container formats like AVI that cannot cope with out-of-order frames.
9422 In practice, most decoders (both software and hardware) are able to deal
9423 with frame-order themselves, and may get confused when this option is
9424 turned on, so you can safely leave if off, unless you really know what
9425 you are doing.
9427 .I WARNING:
9428 This will generate an illegal bitstream, and will not be
9429 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
9431 .I WARNING:
9432 This will also store a fake DivX version in the file so the bug
9433 autodetection of some decoders might be confused.
9436 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
9437 This setting allows the creation of variable framerate video streams.
9438 The value of the setting specifies a threshold under which, if the
9439 difference of the following frame to the previous frame is below or equal
9440 to this threshold, a frame gets not coded (a so called n-vop is placed
9441 in the stream).
9442 On playback, when reaching an n-vop the previous frame will be displayed.
9444 .I WARNING:
9445 Playing with this setting may result in a jerky video, so use it at your
9446 own risks!
9449 .B rc_reaction_delay_factor=<value>
9450 This parameter controls the number of frames the CBR rate controller
9451 will wait before reacting to bitrate changes and compensating for them
9452 to obtain a constant bitrate over an averaging range of frames.
9455 .B rc_averaging_period=<value>
9456 Real CBR is hard to achieve.
9457 Depending on the video material, bitrate can be variable, and hard to predict.
9458 Therefore Xvid uses an averaging period for which it guarantees a given
9459 amount of bits (minus a small variation).
9460 This settings expresses the "number of frames" for which Xvid averages
9461 bitrate and tries to achieve CBR.
9464 .B rc_buffer=<value>
9465 size of the rate control buffer
9468 .B curve_compression_high=<0\-100>
9469 This setting allows Xvid to take a certain percentage of bits away from
9470 high bitrate scenes and give them back to the bit reservoir.
9471 You could also use this if you have a clip with so many bits allocated
9472 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
9473 (default: 0).
9476 .B curve_compression_low=<0\-100>
9477 This setting allows Xvid to give a certain percentage of extra bits to the
9478 low bitrate scenes, taking a few bits from the entire clip.
9479 This might come in handy if you have a few low-bitrate scenes that are
9480 still blocky (default: 0).
9483 .B overflow_control_strength=<0\-100>
9484 During pass one of two pass encoding, a scaled bitrate curve is computed.
9485 The difference between that expected curve and the result obtained during
9486 encoding is called overflow.
9487 Obviously, the two pass rate controller tries to compensate for that overflow,
9488 distributing it over the next frames.
9489 This setting controls how much of the overflow is distributed every time
9490 there is a new frame.
9491 Low values allow lazy overflow control, big rate bursts are compensated for
9492 more slowly (could lead to lack of precision for small clips).
9493 Higher values will make changes in bit redistribution more abrupt, possibly
9494 too abrupt if you set it too high, creating artifacts (default: 5).
9496 .I NOTE:
9497 This setting impacts quality a lot, play with it carefully!
9500 .B max_overflow_improvement=<0\-100>
9501 During the frame bit allocation, overflow control may increase the frame
9502 size.
9503 This parameter specifies the maximum percentage by which the overflow
9504 control is allowed to increase the frame size, compared to the ideal curve
9505 allocation
9506 (default: 5).
9509 .B max_overflow_degradation=<0\-100>
9510 During the frame bit allocation, overflow control may decrease the frame
9511 size.
9512 This parameter specifies the maximum percentage by which the overflow
9513 control is allowed to decrease the frame size, compared to the ideal curve
9514 allocation
9515 (default: 5).
9518 .B container_frame_overhead=<0...>
9519 Specifies a frame average overhead per frame, in bytes.
9520 Most of the time users express their target bitrate for video w/o taking
9521 care of the video container overhead.
9522 This small but (mostly) constant overhead can cause the target file size
9523 to be exceeded.
9524 Xvid allows users to set the amount of overhead per frame the
9525 container generates (give only an average per frame).
9526 0 has a special meaning, it lets Xvid use its own default values
9527 (default: 24 \- AVI average overhead).
9530 .B profile=<profile_name>
9531 Restricts options and VBV (peak bitrate over a short period) according to
9532 the Simple, Advanced Simple and DivX profiles.
9533 The resulting videos should be playable on standalone players adhering to these
9534 profile specifications.
9535 .PD 0
9536 .RSs
9537 .IPs unrestricted
9538 no restrictions (default)
9539 .IPs "sp0\ \ "
9540 simple profile at level 0
9541 .IPs "sp1\ \ "
9542 simple profile at level 1
9543 .IPs "sp2\ \ "
9544 simple profile at level 2
9545 .IPs "sp3\ \ "
9546 simple profile at level 3
9547 .IPs "asp0\ "
9548 advanced simple profile at level 0
9549 .IPs "asp1\ "
9550 advanced simple profile at level 1
9551 .IPs "asp2\ "
9552 advanced simple profile at level 2
9553 .IPs "asp3\ "
9554 advanced simple profile at level 3
9555 .IPs "asp4\ "
9556 advanced simple profile at level 4
9557 .IPs "asp5\ "
9558 advanced simple profile at level 5
9559 .IPs dxnhandheld
9560 DXN handheld profile
9561 .IPs dxnportntsc
9562 DXN portable NTSC profile
9563 .IPs dxnportpal
9564 DXN portable PAL profile
9565 .IPs dxnhtntsc
9566 DXN home theater NTSC profile
9567 .IPs dxnhtpal
9568 DXN home theater PAL profile
9569 .IPs dxnhdtv
9570 DXN HDTV profile
9572 .PD 1
9574 .I NOTE:
9575 These profiles should be used in conjunction with an appropriate \-ffourcc.
9576 Generally DX50 is applicable, as some players do not recognize Xvid but
9577 most recognize DivX.
9581 .B par=<mode>
9582 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
9583 the Display Aspect Ratio).
9584 PAR is the ratio of the width and height of a single pixel.
9585 So both are related like this: DAR = PAR * (width/height).
9587 MPEG-4 defines 5 pixel aspect ratios and one extended
9588 one, giving the opportunity to specify a specific pixel aspect
9589 ratio.
9590 5 standard modes can be specified:
9591 .PD 0
9592 .RSs
9593 .IPs vga11
9594 It is the usual PAR for PC content.
9595 Pixels are a square unit.
9596 .IPs pal43
9597 PAL standard 4:3 PAR.
9598 Pixels are rectangles.
9599 .IPs pal169
9600 same as above
9601 .IPs ntsc43
9602 same as above
9603 .IPs ntsc169
9604 same as above (Do not forget to give the exact ratio.)
9605 .IPs "ext\ \ "
9606 Allows you to specify your own pixel aspect ratio with par_width and
9607 par_height.
9609 .PD 1
9611 .I NOTE:
9612 In general, setting aspect and autoaspect options is enough.
9616 .B par_width=<1\-255> (par=ext only)
9617 Specifies the width of the custom pixel aspect ratio.
9620 .B par_height=<1\-255> (par=ext only)
9621 Specifies the height of the custom pixel aspect ratio.
9624 .B aspect=<x/y | f (float value)>
9625 Store movie aspect internally, just like MPEG files.
9626 Much nicer solution than rescaling, because quality is not decreased.
9627 MPlayer and a few others players will play these files correctly, others
9628 will display them with the wrong aspect.
9629 The aspect parameter can be given as a ratio or a floating point number.
9632 .B (no)autoaspect
9633 Same as the aspect option, but automatically computes aspect, taking
9634 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
9635 filter chain.
9638 .B "psnr\ \ \ "
9639 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
9640 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
9641 the current directory.
9642 Returned values are in dB (decibel), the higher the better.
9645 .B "debug\ \ "
9646 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
9647 file.)
9651 .sp 1
9652 The following option is only available in Xvid 1.1.x.
9655 .B bvhq=<0|1>
9656 This setting allows vector candidates for B-frames to be used for
9657 the encoding chosen using a rate distortion optimized operator,
9658 which is what is done for P-frames by the vhq option.
9659 This produces nicer-looking B-frames while incurring almost no
9660 performance penalty (default: 1).
9663 .sp 1
9664 The following option is only available in the 1.2.x version of Xvid.
9667 .B threads=<0\-n>
9668 Create n threads to run the motion estimation (default: 0).
9669 The maximum number of threads that can be used is the picture height
9670 divided by 16.
9673 .SS x264enc (\-x264encopts)
9676 .B bitrate=<value>
9677 Sets the average bitrate to be used in kbits/\:second (default: off).
9678 Since local bitrate may vary, this average may be inaccurate for
9679 very short videos (see ratetol).
9680 Constant bitrate can be achieved by combining this with vbv_maxrate,
9681 at significant reduction in quality.
9684 .B qp=<0\-51>
9685 This selects the quantizer to use for P-frames.
9686 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
9687 20\-40 is a useful range.
9688 Lower values result in better fidelity, but higher bitrates.
9689 0 is lossless.
9690 Note that quantization in H.264 works differently from MPEG-1/2/4:
9691 H.264's quantization parameter (QP) is on a logarithmic scale.
9692 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
9693 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
9696 .B crf=<1.0\-50.0>
9697 Enables constant quality mode, and selects the quality.
9698 The scale is similar to QP.
9699 Like the bitrate-based modes, this allows each frame to use a
9700 different QP based on the frame's complexity.
9703 .B pass=<1\-3>
9704 Enable 2 or 3-pass mode.
9705 It is recommended to always encode in 2 or 3-pass mode as it leads to a
9706 better bit distribution and improves overall quality.
9707 .PD 0
9708 .RSs
9709 .IPs 1
9710 first pass
9711 .IPs 2
9712 second pass (of two pass encoding)
9713 .IPs 3
9714 Nth pass (second and third passes of three pass encoding)
9717 Here is how it works, and how to use it:
9719 The first pass (pass=1) collects statistics on the video and writes them
9720 to a file.
9721 You might want to deactivate some CPU-hungry options, apart from the ones
9722 that are on by default.
9724 In two pass mode, the second pass (pass=2) reads the statistics file and
9725 bases ratecontrol decisions on it.
9727 In three pass mode, the second pass (pass=3, that is not a typo)
9728 does both: It first reads the statistics, then overwrites them.
9729 You can use all encoding options, except very CPU-hungry options.
9731 The third pass (pass=3) is the same as the second pass, except that it has
9732 the second pass' statistics to work from.
9733 You can use all encoding options, including CPU-hungry ones.
9735 The first pass may use either average bitrate or constant quantizer.
9736 ABR is recommended, since it does not require guessing a quantizer.
9737 Subsequent passes are ABR, and must specify bitrate.
9738 .REss
9741 .B turbo=<0\-2>
9742 Fast first pass mode.
9743 During the first pass of a two or more pass encode it is possible to gain
9744 speed by disabling some options with negligible or even no impact on the
9745 final pass output quality.
9746 .PD 0
9747 .RSs
9748 .IPs 0
9749 disabled (default)
9750 .IPs 1
9751 Reduce subq, frameref and disable some inter-macroblock partition analysis
9752 modes.
9753 .IPs 2
9754 Reduce subq and frameref to 1, use a diamond ME search and disable all
9755 partition analysis modes.
9758 Level 1 can increase first pass speed up to 2x with no change in the global
9759 PSNR of the final pass compared to a full quality first pass.
9761 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
9762 in the global PSNR of the final pass compared to a full quality first pass.
9763 .REss
9766 .B keyint=<value>
9767 Sets maximum interval between IDR-frames (default: 250).
9768 Larger values save bits, thus improve quality, at the cost of seeking
9769 precision.
9770 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
9771 values of keyint.
9774 .B keyint_min=<1\-keyint/2>
9775 Sets minimum interval between IDR-frames (default: 25).
9776 If scenecuts appear within this interval, they are still encoded as
9777 I-frames, but do not start a new GOP.
9778 In H.264, I-frames do not necessarily bound a closed GOP because it is
9779 allowable for a P-frame to be predicted from more frames than just the one
9780 frame before it (also see frameref).
9781 Therefore, I-frames are not necessarily seekable.
9782 IDR-frames restrict subsequent P-frames from referring to any frame
9783 prior to the IDR-frame.
9786 .B scenecut=<\-1\-100>
9787 Controls how aggressively to insert extra I-frames (default: 40).
9788 With small values of scenecut, the codec often has to force an I-frame
9789 when it would exceed keyint.
9790 Good values of scenecut may find a better location for the I-frame.
9791 Large values use more I-frames than necessary, thus wasting bits.
9792 \-1 disables scene-cut detection, so I-frames are inserted only once
9793 every other keyint frames, even if a scene-cut occurs earlier.
9794 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
9795 are just as big as I-frames, but do not reset the "keyint counter".
9798 .B frameref=<1\-16>
9799 Number of previous frames used as predictors in B- and P-frames (default: 1).
9800 This is effective in anime, but in live-action material the improvements
9801 usually drop off very rapidly above 6 or so reference frames.
9802 This has no effect on decoding speed, but does increase the memory needed for
9803 decoding.
9804 Some decoders can only handle a maximum of 15 reference frames.
9807 .B bframes=<0\-16>
9808 maximum number of consecutive B-frames between I- and P-frames (default: 0)
9811 .B (no)b_adapt
9812 Automatically decides when to use B-frames and how many, up to the maximum
9813 specified above (default: on).
9814 If this option is disabled, then the maximum number of B-frames is used.
9817 .B b_bias=<\-100\-100>
9818 Controls the decision performed by b_adapt.
9819 A higher b_bias produces more B-frames (default: 0).
9822 .B (no)b_pyramid
9823 Allows B-frames to be used as references for predicting other frames.
9824 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
9825 Without this option, B-frames follow the same pattern as MPEG-[124].
9826 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
9827 are predicted from I0 and P4.
9828 With this option, they are coded as I0 P4 B2 B1 B3.
9829 B2 is the same as above, but B1 is predicted from I0 and B2, and
9830 B3 is predicted from B2 and P4.
9831 This usually results in slightly improved compression, at almost no
9832 speed cost.
9833 However, this is an experimental option: it is not fully tuned and
9834 may not always help.
9835 Requires bframes >= 2.
9836 Disadvantage: increases decoding delay to 2 frames.
9839 .B (no)deblock
9840 Use deblocking filter (default: on).
9841 As it takes very little time compared to its quality gain, it is not
9842 recommended to disable it.
9845 .B deblock=<\-6\-6>,<\-6\-6>
9846 The first parameter is AlphaC0 (default: 0).
9847 This adjusts thresholds for the H.264 in-loop deblocking filter.
9848 First, this parameter adjusts the maximum amount of change that the filter is
9849 allowed to cause on any one pixel.
9850 Secondly, this parameter affects the threshold for difference across the
9851 edge being filtered.
9852 A positive value reduces blocking artifacts more, but will also smear details.
9854 The second parameter is Beta (default: 0).
9855 This affects the detail threshold.
9856 Very detailed blocks are not filtered, since the smoothing caused by the
9857 filter would be more noticeable than the original blocking.
9859 The default behavior of the filter almost always achieves optimal quality,
9860 so it is best to either leave it alone, or make only small adjustments.
9861 However, if your source material already has some blocking or noise which
9862 you would like to remove, it may be a good idea to turn it up a little bit.
9865 .B (no)cabac
9866 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
9867 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
9868 Unless you are looking for decoding speed, you should not disable it.
9871 .B qp_min=<1\-51> (ABR or two pass)
9872 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
9875 .B qp_max=<1\-51> (ABR or two pass)
9876 maximum quantizer (default: 51)
9879 .B qp_step=<1\-50> (ABR or two pass)
9880 maximum value by which the quantizer may be incremented/decremented between
9881 frames (default: 4)
9884 .B ratetol=<0.1\-100.0> (ABR or two pass)
9885 allowed variance in average bitrate (no particular units) (default: 1.0)
9888 .B vbv_maxrate=<value> (ABR or two pass)
9889 maximum local bitrate, in kbits/\:second (default: disabled)
9892 .B vbv_bufsize=<value> (ABR or two pass)
9893 averaging period for vbv_maxrate, in kbits
9894 (default: none, must be specified if vbv_maxrate is enabled)
9897 .B vbv_init=<0.0\-1.0> (ABR or two pass)
9898 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
9901 .B ip_factor=<value>
9902 quantizer factor between I- and P-frames (default: 1.4)
9905 .B pb_factor=<value>
9906 quantizer factor between P- and B-frames (default: 1.3)
9909 .B qcomp=<0\-1> (ABR or two pass)
9910 quantizer compression (default: 0.6).
9911 A lower value makes the bitrate more constant,
9912 while a higher value makes the quantization parameter more constant.
9915 .B cplx_blur=<0\-999> (two pass only)
9916 Temporal blur of the estimated frame complexity, before curve compression
9917 (default: 20).
9918 Lower values allow the quantizer value to jump around more,
9919 higher values force it to vary more smoothly.
9920 cplx_blur ensures that each I-frame has quality comparable to the following
9921 P-frames, and ensures that alternating high and low complexity frames
9922 (e.g. low fps animation) do not waste bits on fluctuating quantizer.
9925 .B qblur=<0\-99> (two pass only)
9926 Temporal blur of the quantization parameter, after curve compression
9927 (default: 0.5).
9928 Lower values allow the quantizer value to jump around more,
9929 higher values force it to vary more smoothly.
9932 .B zones=<zone0>[/<zone1>[/...]]
9933 User specified quality for specific parts (ending, credits, ...).
9934 Each zone is <start-frame>,<end-frame>,<option> where option may be
9935 .PD 0
9936 .RSs
9937 .IPs "q=<0\-51>"
9938 quantizer
9939 .IPs "b=<0.01\-100.0>"
9940 bitrate multiplier
9942 .PD 1
9944 .I NOTE:
9945 The quantizer option is not strictly enforced.
9946 It affects only the planning stage of ratecontrol, and is still subject
9947 to overflow compensation and qp_min/qp_max.
9951 .B direct_pred=<name>
9952 Determines the type of motion prediction used for direct macroblocks
9953 in B-frames.
9954 .PD 0
9955 .RSs
9956 .IPs none
9957 Direct macroblocks are not used.
9958 .IPs spatial
9959 Motion vectors are extrapolated from neighboring blocks.
9960 (default)
9961 .IPs temporal
9962 Motion vectors are extrapolated from the following P-frame.
9963 .IPs auto
9964 The codec selects between spatial and temporal for each frame.
9966 .PD 1
9968 Spatial and temporal are approximately the same speed and PSNR,
9969 the choice between them depends on the video content.
9970 Auto is slightly better, but slower.
9971 Auto is most effective when combined with multipass.
9972 direct_pred=none is both slower and lower quality.
9976 .B (no)weight_b
9977 Use weighted prediction in B-frames.
9978 Without this option, bidirectionally predicted macroblocks give
9979 equal weight to each reference frame.
9980 With this option, the weights are determined by the temporal position
9981 of the B-frame relative to the references.
9982 Requires bframes > 1.
9985 .B partitions=<list>
9986 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
9987 .PD 0
9988 .RSs
9989 .IPs p8x8
9990 Enable types p16x8, p8x16, p8x8.
9991 .IPs p4x4
9992 Enable types p8x4, p4x8, p4x4.
9993 p4x4 is recommended only with subq >= 5, and only at low resolutions.
9994 .IPs b8x8
9995 Enable types b16x8, b8x16, b8x8.
9996 .IPs i8x8
9997 Enable type i8x8.
9998 i8x8 has no effect unless 8x8dct is enabled.
9999 .IPs i4x4
10000 Enable type i4x4.
10001 .IPs all
10002 Enable all of the above types.
10003 .IPs none
10004 Disable all of the above types.
10006 .PD 1
10008 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
10009 are always enabled.
10011 The idea is to find the type and size that best describe a certain area
10012 of the picture.
10013 For example, a global pan is better represented by 16x16 blocks, while
10014 small moving objects are better represented by smaller blocks.
10018 .B (no)8x8dct
10019 Adaptive spatial transform size: allows macroblocks to choose between
10020 4x4 and 8x8 DCT.
10021 Also allows the i8x8 macroblock type.
10022 Without this option, only 4x4 DCT is used.
10025 .B me=<name>
10026 Select fullpixel motion estimation algorithm.
10027 .PD 0
10028 .RSs
10029 .IPs dia
10030 diamond search, radius 1 (fast)
10031 .IPs hex
10032 hexagon search, radius 2 (default)
10033 .IPs umh
10034 uneven multi-hexagon search (slow)
10035 .IPs esa
10036 exhaustive search (very slow, and no better than umh)
10038 .PD 1
10041 .B me_range=<4\-64>
10042 radius of exhaustive or multi-hexagon motion search (default: 16)
10045 .B subq=<1\-9>
10046 Adjust subpel refinement quality.
10047 This parameter controls quality versus speed tradeoffs involved in the motion
10048 estimation decision process.
10049 subq=5 can compress up to 10% better than subq=1.
10050 .PD 0
10051 .RSs
10052 .IPs 1
10053 Runs fullpixel precision motion estimation on all candidate
10054 macroblock types.
10055 Then selects the best type.
10056 Then refines the motion of that type to fast quarterpixel precision (fastest).
10057 .IPs 2
10058 Runs halfpixel precision motion estimation on all candidate macroblock types.
10059 Then selects the best type.
10060 Then refines the motion of that type to fast quarterpixel precision.
10061 .IPs 3
10062 As 2, but uses a slower quarterpixel refinement.
10063 .IPs 4
10064 Runs fast quarterpixel precision motion estimation on all candidate
10065 macroblock types.
10066 Then selects the best type.
10067 Then finishes the quarterpixel refinement for that type.
10068 .IPs 5
10069 Runs best quality quarterpixel precision motion estimation on all
10070 candidate macroblock types, before selecting the best type.
10071 Also refines the two motion vectors used in bidirectional macroblocks,
10072 rather than reusing vectors from the forward and backward searches.
10073 .IPs 6
10074 Enables rate-distortion optimization of macroblock types in
10075 I- and P-frames (default).
10076 .IPs 7
10077 Enables rate-distortion optimization of macroblock types in all frames.
10078 .IPs 8
10079 Enables rate-distortion optimization of motion vectors and intra prediction modes in I- and P-frames.
10080 .IPs 9
10081 Enables rate-distortion optimization of motion vectors and intra prediction modes in all frames (best).
10083 .PD 1
10085 In the above, "all candidates" does not exactly mean all enabled types:
10086 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
10090 .B (no)chroma_me
10091 Takes into account chroma information during subpixel motion search
10092 (default: enabled).
10093 Requires subq>=5.
10096 .B (no)mixed_refs
10097 Allows each 8x8 or 16x8 motion partition to independently select a
10098 reference frame.
10099 Without this option, a whole macroblock must use the same reference.
10100 Requires frameref>1.
10103 .B trellis=<0\-2> (cabac only)
10104 rate-distortion optimal quantization
10105 .PD 0
10106 .RSs
10107 .IPs 0
10108 disabled (default)
10109 .IPs 1
10110 enabled only for the final encode
10111 .IPs 2
10112 enabled during all mode decisions (slow, requires subq>=6)
10114 .PD 1
10117 .B psy-rd=rd[:trell]
10118 Sets the strength of the psychovisual optimization.
10119 .PD 0
10120 .RSs
10121 .IPs rd=<0.0\-10.0>
10122 psy optimization strength (requires subq>=6) (default: 1.0)
10123 .IPs trell=<0.0\-10.0>
10124 trellis (requires trellis, experimental) (default: 0.0)
10126 .PD 1
10130 .B deadzone_inter=<0\-32>
10131 Set the size of the inter luma quantization deadzone for non-trellis
10132 quantization (default: 21).
10133 Lower values help to preserve fine details and film grain (typically useful
10134 for high bitrate/quality encode), while higher values help filter out
10135 these details to save bits that can be spent again on other macroblocks
10136 and frames (typically useful for bitrate-starved encodes).
10137 It is recommended that you start by tweaking deadzone_intra before changing
10138 this parameter.
10141 .B deadzone_intra=<0\-32>
10142 Set the size of the intra luma quantization deadzone for non-trellis
10143 quantization (default: 11).
10144 This option has the same effect as deadzone_inter except that it affects
10145 intra frames.
10146 It is recommended that you start by tweaking this parameter before changing
10147 deadzone_inter.
10150 .B (no)fast_pskip
10151 Performs early skip detection in P-frames (default: enabled).
10152 This usually improves speed at no cost, but it can sometimes produce
10153 artifacts in areas with no details, like sky.
10156 .B (no)dct_decimate
10157 Eliminate dct blocks in P-frames containing only a small single coefficient
10158 (default: enabled).
10159 This will remove some details, so it will save bits that can be spent
10160 again on other frames, hopefully raising overall subjective quality.
10161 If you are compressing non-anime content with a high target bitrate, you
10162 may want to disable this to preserve as much detail as possible.
10165 .B nr=<0\-100000>
10166 Noise reduction, 0 means disabled.
10167 100\-1000 is a useful range for typical content, but you may want to turn it
10168 up a bit more for very noisy content (default: 0).
10169 Given its small impact on speed, you might want to prefer to use this over
10170 filtering noise away with video filters like denoise3d or hqdn3d.
10173 .B chroma_qp_offset=<\-12\-12>
10174 Use a different quantizer for chroma as compared to luma.
10175 Useful values are in the range <\-2\-2> (default: 0).
10178 .B aq_mode=<0\-2>
10179 Defines how adaptive quantization (AQ) distributes bits:
10180 .PD 0
10181 .RSs
10182 .IPs 0
10183 disabled
10184 .IPs 1
10185 Avoid moving bits between frames.
10186 .IPs 2
10187 Move bits between frames (by default).
10189 .PD 1
10192 .B aq_strength=<positive float value>
10193 Controls how much adaptive quantization (AQ) reduces blocking and blurring
10194 in flat and textured areas (default: 1.0).
10195 A value of 0.5 will lead to weak AQ and less details, when a value of 1.5
10196 will lead to strong AQ and more details.
10199 .B cqm=<flat|jvt|<filename>>
10200 Either uses a predefined custom quantization matrix or loads a JM format
10201 matrix file.
10202 .PD 0
10203 .RSs
10204 .IPs "flat\ "
10205 Use the predefined flat 16 matrix (default).
10206 .IPs "jvt\ \ "
10207 Use the predefined JVT matrix.
10208 .IPs <filename>
10209 Use the provided JM format matrix file.
10210 .PD 1
10213 .I NOTE:
10214 Windows CMD.EXE users may experience problems with parsing the command line
10215 if they attempt to use all the CQM lists.
10216 This is due to a command line length limitation.
10217 In this case it is recommended the lists be put into a JM format CQM
10218 file and loaded as specified above.
10222 .B cqm4iy=<list> (also see cqm)
10223 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10224 values in the 1\-255 range.
10227 .B cqm4ic=<list> (also see cqm)
10228 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10229 separated values in the 1\-255 range.
10232 .B cqm4py=<list> (also see cqm)
10233 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10234 values in the 1\-255 range.
10237 .B cqm4pc=<list> (also see cqm)
10238 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10239 separated values in the 1\-255 range.
10242 .B cqm8iy=<list> (also see cqm)
10243 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10244 values in the 1\-255 range.
10247 .B cqm8py=<list> (also see cqm)
10248 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10249 values in the 1\-255 range.
10252 .B level_idc=<10\-51>
10253 Set the bitstream's level as defined by annex A of the H.264 standard
10254 (default: 51 \- level 5.1).
10255 This is used for telling the decoder what capabilities it needs to support.
10256 Use this parameter only if you know what it means,
10257 and you have a need to set it.
10260 .B threads=<0\-16>
10261 Spawn threads to encode in parallel on multiple CPUs (default: 1).
10262 This has a slight penalty to compression quality.
10263 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10264 appropriate number of threads.
10267 .B (no)global_header
10268 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10269 (default: disabled).
10270 Some players, such as the Sony PSP, require the use of this option.
10271 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10274 .B (no)interlaced
10275 Treat the video content as interlaced.
10278 .B log=<\-1\-3>
10279 Adjust the amount of logging info printed to the screen.
10280 .PD 0
10281 .RSs
10282 .IPs "\-1"
10283 none
10284 .IPs " 0"
10285 Print errors only.
10286 .IPs " 1"
10287 warnings
10288 .IPs " 2"
10289 PSNR and other analysis statistics when the encode finishes (default)
10290 .IPs " 3"
10291 PSNR, QP, frametype, size, and other statistics for every frame
10293 .PD 1
10296 .B (no)psnr
10297 Print signal-to-noise ratio statistics.
10299 .I NOTE:
10300 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
10301 mathematically sound (they are simply the average of per-frame PSNRs).
10302 They are kept only for comparison to the JM reference codec.
10303 For all other purposes, please use either the 'Global' PSNR, or the per-frame
10304 PSNRs printed by log=3.
10307 .B (no)ssim
10308 Print the Structural Similarity Metric results.
10309 This is an alternative to PSNR, and may be better correlated with the
10310 perceived quality of the compressed video.
10313 .B (no)visualize
10314 Enable x264 visualizations during encoding.
10315 If the x264 on your system supports it, a new window will be opened during
10316 the encoding process, in which x264 will attempt to present an overview of
10317 how each frame gets encoded.
10318 Each block type on the visualized movie will be colored as follows:
10319 .PD 0
10320 .RSs
10321 .IPs red/pink
10322 intra block
10323 .IPs "blue\ "
10324 inter block
10325 .IPs green
10326 skip block
10327 .IPs yellow
10328 B-block
10330 .PD 1
10332 This feature can be considered experimental and subject to change.
10333 In particular, it depends on x264 being compiled with visualizations enabled.
10334 Note that as of writing this, x264 pauses after encoding and visualizing
10335 each frame, waiting for the user to press a key, at which point the next
10336 frame will be encoded.
10340 .SS xvfw (\-xvfwopts)
10342 Encoding with Video for Windows codecs is mostly obsolete unless you wish
10343 to encode to some obscure fringe codec.
10346 .B codec=<name>
10347 The name of the binary codec file with which to encode.
10350 .B compdata=<file>
10351 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
10354 .SS MPEG muxer (\-mpegopts)
10356 The MPEG muxer can generate 5 types of streams, each of which has reasonable
10357 default parameters that the user can override.
10358 Generally, when generating MPEG files, it is advisable to disable
10359 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
10360 harddup and softskip video filters).
10362 .I EXAMPLE:
10363 .PD 0
10364 .RSs
10365 .IPs format=mpeg2:tsaf:vbitrate=8000
10367 .PD 1
10370 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
10371 stream format (default: mpeg2).
10372 pes1 and pes2 are very broken formats (no pack header and no padding),
10373 but VDR uses them; do not choose them unless you know exactly what you
10374 are doing.
10377 .B size=<up to 65535>
10378 Pack size in bytes, do not change unless you know exactly what
10379 you are doing (default: 2048).
10382 .B muxrate=<int>
10383 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
10384 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
10387 .B "tsaf\ \ \ "
10388 Sets timestamps on all frames, if possible; recommended when format=dvd.
10389 If dvdauthor complains with a message like "..audio sector out of range...",
10390 you probably did not enable this option.
10393 .B interleaving2
10394 Uses a better algorithm to interleave audio and video packets, based on the
10395 principle that the muxer will always try to fill the stream with the largest
10396 percentage of free space.
10399 .B vdelay=<1\-32760>
10400 Initial video delay time, in milliseconds (default: 0),
10401 use it if you want to delay video with respect to audio.
10402 It doesn't work with :drop.
10405 .B adelay=<1\-32760>
10406 Initial audio delay time, in milliseconds (default: 0),
10407 use it if you want to delay audio with respect to video.
10410 .B "drop\ \ \ "
10411 When used with vdelay the muxer drops the part of audio that was
10412 anticipated.
10415 .B vwidth, vheight=<1\-4095>
10416 Set the video width and height when video is MPEG-1/2.
10419 .B vpswidth, vpsheight=<1\-4095>
10420 Set pan and scan video width and height when video is MPEG-2.
10423 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
10424 Sets the display aspect ratio for MPEG-2 video.
10425 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
10428 .B vbitrate=<int>
10429 Sets the video bitrate in kbit/s for MPEG-1/2 video.
10432 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
10433 Sets the framerate for MPEG-1/2 video.
10434 This option will be ignored if used with the telecine option.
10437 .B telecine
10438 Enables 3:2 pulldown soft telecine mode: The muxer will make the
10439 video stream look like it was encoded at 30000/1001 fps.
10440 It only works with MPEG-2 video when the output framerate is
10441 24000/1001 fps, convert it with \-ofps if necessary.
10442 Any other framerate is incompatible with this option.
10445 .B film2pal
10446 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
10447 will make the video stream look like it was encoded at 25 fps.
10448 It only works with MPEG-2 video when the output framerate is
10449 24000/1001 fps, convert it with \-ofps if necessary.
10450 Any other framerate is incompatible with this option.
10453 .B tele_src and tele_dest
10454 Enables arbitrary telecining using Donand Graft's DGPulldown code.
10455 You need to specify the original and the desired framerate; the
10456 muxer will make the video stream look like it was encoded at
10457 the desired framerate.
10458 It only works with MPEG-2 video when the input framerate is smaller
10459 than the output framerate and the framerate increase is <= 1.5.
10460 .sp 1
10462 .I EXAMPLE:
10464 .PD 0
10465 .RSs
10466 .IPs tele_src=25,tele_dest=30000/1001
10467 PAL to NTSC telecining
10469 .PD 1
10472 .B vbuf_size=<40\-1194>
10473 Sets the size of the video decoder's buffer, expressed in kilobytes.
10474 Specify it only if the bitrate of the video stream is too high for
10475 the chosen format and if you know perfectly well what you are doing.
10476 A too high value may lead to an unplayable movie, depending on the player's
10477 capabilities.
10478 When muxing HDTV video a value of 400 should suffice.
10481 .B abuf_size=<4\-64>
10482 Sets the size of the audio decoder's buffer, expressed in kilobytes.
10483 The same principle as for vbuf_size applies.
10486 .SS FFmpeg libavformat demuxers (\-lavfdopts)
10489 .B analyzeduration=<value>
10490 Maximum length in seconds to analyze the stream properties.
10493 .B format=<value>
10494 Force a specific libavformat demuxer.
10497 .B o=<key>=<value>[,<key>=<value>[,...]]
10498 Pass AVOptions to libavformat demuxer.
10499 Note, a patch to make the o= unneeded and pass all unknown options through
10500 the AVOption system is welcome.
10501 A full list of AVOptions can be found in the FFmpeg manual.
10502 Note that some options may conflict with MPlayer/MEncoder options.
10503 .sp 1
10505 .I EXAMPLE:
10507 .RSs
10508 .PD 0
10509 .IPs o=ignidx
10510 .PD 1
10514 .B probesize=<value>
10515 Maximum amount of data to probe during the detection phase.
10516 In the case of MPEG-TS this value identifies the maximum number
10517 of TS packets to scan.
10520 .B cryptokey=<hexstring>
10521 Encryption key the demuxer should use.
10522 This is the raw binary data of the key converted to a hexadecimal string.
10525 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
10528 .B delay=<value>
10529 Currently only meaningful for MPEG[12]: Maximum allowed distance,
10530 in seconds, between the reference timer of the output stream (SCR)
10531 and the decoding timestamp (DTS) for any stream present
10532 (demux to decode delay).
10533 Default is 0.7 (as mandated by the standards defined by MPEG).
10534 Higher values require larger buffers and must not be used.
10537 .B format=<container_format>
10538 Override which container format to mux into
10539 (default: autodetect from output file extension).
10540 .PD 0
10541 .RSs
10542 .IPs "mpg\ \ "
10543 MPEG-1 systems and MPEG-2 PS
10544 .IPs "asf\ \ "
10545 Advanced Streaming Format
10546 .IPs "avi\ \ "
10547 Audio Video Interleave file
10548 .IPs "wav\ \ "
10549 Waveform Audio
10550 .IPs "swf\ \ "
10551 Macromedia Flash
10552 .IPs "flv\ \ "
10553 Macromedia Flash video files
10554 .IPs "rm\ \ \ "
10555 RealAudio and RealVideo
10556 .IPs "au\ \ \ "
10557 SUN AU format
10558 .IPs "nut\ \ "
10559 NUT open container format (experimental)
10560 .IPs "mov\ \ "
10561 QuickTime
10562 .IPs "mp4\ \ "
10563 MPEG-4 format
10564 .IPs "ipod\ "
10565 MPEG-4 format with extra header flags required by Apple iPod firmware
10566 .IPs "dv\ \ \ "
10567 Sony Digital Video container
10568 .IPs "matroska\ \ \ "
10569 Matroska
10571 .PD 1
10573 .B muxrate=<rate>
10574 Nominal bitrate of the multiplex, in bits per second;
10575 currently it is meaningful only for MPEG[12].
10576 Sometimes raising it is necessary in order to avoid "buffer underflows".
10579 .B o=<key>=<value>[,<key>=<value>[,...]]
10580 Pass AVOptions to libavformat muxer.
10581 Note, a patch to make the o= unneeded and pass all unknown options through
10582 the AVOption system is welcome.
10583 A full list of AVOptions can be found in the FFmpeg manual.
10584 Note that some options may conflict with MEncoder options.
10585 .sp 1
10587 .I EXAMPLE:
10589 .RSs
10590 .PD 0
10591 .IPs o=packetsize=100
10592 .PD 1
10596 .B packetsize=<size>
10597 Size, expressed in bytes, of the unitary packet for the chosen format.
10598 When muxing to MPEG[12] implementations the default values are:
10599 2324 for [S]VCD, 2048 for all others formats.
10602 .B preload=<distance>
10603 Currently only meaningful for MPEG[12]: Initial distance,
10604 in seconds, between the reference timer of the output stream (SCR)
10605 and the decoding timestamp (DTS) for any stream present
10606 (demux to decode delay).
10610 .\" --------------------------------------------------------------------------
10611 .\" environment variables
10612 .\" --------------------------------------------------------------------------
10614 .SH ENVIRONMENT VARIABLES
10616 There are a number of environment variables that can be used to
10617 control the behavior of MPlayer and MEncoder.
10620 .B MPLAYER_CHARSET (also see \-msgcharset)
10621 Convert console messages to the specified charset (default: autodetect).
10622 A value of "noconv" means no conversion.
10625 .B MPLAYER_HOME
10626 Directory where MPlayer looks for user settings.
10629 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
10630 Set the initial verbosity level across all message modules (default: 0).
10631 The resulting verbosity corresponds to that of \-msglevel 5 plus the
10632 value of MPLAYER_VERBOSE.
10634 .SS libaf:
10637 .B LADSPA_PATH
10638 If LADSPA_PATH is set, it searches for the specified file.
10639 If it is not set, you must supply a fully specified pathname.
10640 FIXME: This is also mentioned in the ladspa section.
10642 .SS libdvdcss:
10645 .B DVDCSS_CACHE
10646 Specify a directory in which to store title key values.
10647 This will speed up descrambling of DVDs which are in the cache.
10648 The DVDCSS_CACHE directory is created if it does not exist,
10649 and a subdirectory is created named after the DVD's title
10650 or manufacturing date.
10651 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
10652 the default value which is "${HOME}/.dvdcss/" under Unix and
10653 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
10654 The special value "off" disables caching.
10657 .B DVDCSS_METHOD
10658 Sets the authentication and decryption method that
10659 libdvdcss will use to read scrambled discs.
10660 Can be one of title, key or disc.
10661 .PD 0
10662 .RSs
10663 .IPs "key\ \ "
10664 is the default method.
10665 libdvdcss will use a set of calculated player keys to try and get the disc key.
10666 This can fail if the drive does not recognize any of the player keys.
10667 .IPs "disc\ "
10668 is a fallback method when key has failed.
10669 Instead of using player keys, libdvdcss will crack the disc key using
10670 a brute force algorithm.
10671 This process is CPU intensive and requires 64 MB of memory to store
10672 temporary data.
10673 .IPs title
10674 is the fallback when all other methods have failed.
10675 It does not rely on a key exchange with the DVD drive, but rather uses
10676 a crypto attack to guess the title key.
10677 On rare cases this may fail because there is not enough encrypted data
10678 on the disc to perform a statistical attack, but in the other hand it
10679 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
10680 the wrong region on an RPC2 drive.
10682 .PD 1
10685 .B DVDCSS_RAW_DEVICE
10686 Specify the raw device to use.
10687 Exact usage will depend on your operating system, the Linux
10688 utility to set up raw devices is raw(8) for instance.
10689 Please note that on most operating systems, using a raw device
10690 requires highly aligned buffers: Linux requires a 2048 bytes
10691 alignment (which is the size of a DVD sector).
10694 .B DVDCSS_VERBOSE
10695 Sets the libdvdcss verbosity level.
10696 .PD 0
10697 .RSs
10698 .IPs 0
10699 Outputs no messages at all.
10700 .IPs 1
10701 Outputs error messages to stderr.
10702 .IPs 2
10703 Outputs error messages and debug messages to stderr.
10705 .PD 1
10708 .B DVDREAD_NOKEYS
10709 Skip retrieving all keys on startup.
10710 Currently disabled.
10713 .B HOME
10714 FIXME: Document this.
10716 .SS libao2:
10719 .B AO_SUN_DISABLE_SAMPLE_TIMING
10720 FIXME: Document this.
10723 .B AUDIODEV
10724 FIXME: Document this.
10727 .B AUDIOSERVER
10728 Specifies the Network Audio System server to which the
10729 nas audio output driver should connect and the transport
10730 that should be used.
10731 If unset DISPLAY is used instead.
10732 The transport can be one of tcp and unix.
10733 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
10734 or [unix]:<instancenumber>.
10735 The NAS base port is 8000 and <instancenumber> is added to that.
10736 .sp 1
10738 .I EXAMPLES:
10740 .PD 0
10741 .RSs
10742 .IPs AUDIOSERVER=somehost:0
10743 Connect to NAS server on somehost using default port and transport.
10744 .IPs AUDIOSERVER=tcp/somehost:8000
10745 Connect to NAS server on somehost listening on TCP port 8000.
10746 .IPs AUDIOSERVER=(unix)?:0
10747 Connect to NAS server instance 0 on localhost using unix domain sockets.
10749 .PD 1
10752 .B DISPLAY
10753 FIXME: Document this.
10755 .SS vidix:
10758 .B VIDIX_CRT
10759 FIXME: Document this.
10762 .B VIDIXIVTVALPHA
10763 Set this to 'disable' in order to stop the VIDIX driver from controlling
10764 alphablending settings.
10765 You can then manipulate it yourself with 'ivtvfbctl'.
10767 .SS osdep:
10770 .B TERM
10771 FIXME: Document this.
10773 .SS libvo:
10776 .B DISPLAY
10777 FIXME: Document this.
10780 .B FRAMEBUFFER
10781 FIXME: Document this.
10784 .B HOME
10785 FIXME: Document this.
10787 .SS libmpdemux:
10790 .B HOME
10791 FIXME: Document this.
10794 .B HOMEPATH
10795 FIXME: Document this.
10798 .B http_proxy
10799 FIXME: Document this.
10802 .B LOGNAME
10803 FIXME: Document this.
10806 .B USERPROFILE
10807 FIXME: Document this.
10809 .SS libmpcodecs:
10812 .B XANIM_MOD_DIR
10813 FIXME: Document this.
10815 .SS GUI:
10818 .B CHARSET
10819 FIXME: Document this.
10822 .B DISPLAY
10823 FIXME: Document this.
10826 .B HOME
10827 FIXME: Document this.
10829 .SS libavformat:
10832 .B AUDIO_FLIP_LEFT
10833 FIXME: Document this.
10836 .B BKTR_DEV
10837 FIXME: Document this.
10840 .B BKTR_FORMAT
10841 FIXME: Document this.
10844 .B BKTR_FREQUENCY
10845 FIXME: Document this.
10848 .B http_proxy
10849 FIXME: Document this.
10852 .B no_proxy
10853 FIXME: Document this.
10857 .\" --------------------------------------------------------------------------
10858 .\" Files
10859 .\" --------------------------------------------------------------------------
10861 .SH FILES
10864 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
10865 MPlayer system-wide settings
10868 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
10869 MEncoder system-wide settings
10872 ~/.mplayer/\:config
10873 MPlayer user settings
10876 ~/.mplayer/\:mencoder.conf
10877 MEncoder user settings
10880 ~/.mplayer/\:input.conf
10881 input bindings (see '\-input keylist' for the full list)
10884 ~/.mplayer/\:gui.conf
10885 GUI configuration file
10888 ~/.mplayer/\:gui.pl
10889 GUI playlist
10892 ~/.mplayer/\:font/
10893 font directory (There must be a font.desc file and files with .RAW extension.)
10896 ~/.mplayer/\:DVDkeys/
10897 cached CSS keys
10900 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
10901 in this order:
10903 /path/\:to/\:movie.sub
10905 ~/.mplayer/\:sub/\:movie.sub
10907 .PD 1
10910 .\" --------------------------------------------------------------------------
10911 .\" Examples
10912 .\" --------------------------------------------------------------------------
10914 .SH EXAMPLES OF MPLAYER USAGE
10917 .B Quickstart DVD playing:
10919 mplayer dvd://1
10923 .B Play in Japanese with English subtitles:
10925 mplayer dvd://1 \-alang ja \-slang en
10929 .B Play only chapters 5, 6, 7:
10931 mplayer dvd://1 \-chapter 5\-7
10935 .B Play only titles 5, 6, 7:
10937 mplayer dvd://5\-7
10941 .B Play a multiangle DVD:
10943 mplayer dvd://1 \-dvdangle 2
10947 .B Play from a different DVD device:
10949 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
10953 .B Play DVD video from a directory with VOB files:
10955 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
10959 .B Copy a DVD title to hard disk, saving to file "title1.vob":
10961 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
10965 .B Play a DVD with dvdnav from path /dev/sr1:
10967 mplayer dvdnav:////dev/sr1
10971 .B Stream from HTTP:
10973 mplayer http://mplayer.hq/example.avi
10977 .B Stream using RTSP:
10979 mplayer rtsp://server.example.com/streamName
10983 .B Convert subtitles to MPsub format:
10985 mplayer dummy.avi \-sub source.sub \-dumpmpsub
10989 .B Convert subtitles to MPsub format without watching the movie:
10991 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
10995 .B input from standard V4L:
10997 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
11001 .B Playback on Zoran cards (old style, deprecated):
11003 mplayer \-vo zr \-vf scale=352:288 file.avi
11007 .B Playback on Zoran cards (new style):
11009 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
11013 .B Play DTS-CD with passthrough:
11015 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
11018 You can also use \-afm hwac3 instead of \-ac hwdts.
11019 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
11020 If your external receiver supports decoding raw DTS streams,
11021 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
11024 .B Play a 6-channel AAC file with only two speakers:
11026 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
11029 You might want to play a bit with the pan values (e.g multiply with a value) to
11030 increase volume or avoid clipping.
11033 .B checkerboard invert with geq filter:
11035 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'
11039 .SH EXAMPLES OF MENCODER USAGE
11042 .B Encode DVD title #2, only selected chapters:
11044 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11048 .B Encode DVD title #2, resizing to 640x480:
11050 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11054 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
11056 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11060 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
11062 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
11066 .B The same, but with MJPEG compression:
11068 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
11072 .B Encode all *.jpg files in the current directory:
11074 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
11078 .B Encode from a tuner (specify a format with \-vf format):
11080 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
11084 .B Encode from a pipe:
11086 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
11090 .\" --------------------------------------------------------------------------
11091 .\" Bugs, authors, standard disclaimer
11092 .\" --------------------------------------------------------------------------
11094 .SH BUGS
11095 Don't panic.
11096 If you find one, report it to us, but please make sure you have read all
11097 of the documentation first.
11098 Also look out for smileys. :)
11099 Many bugs are the result of incorrect setup or parameter usage.
11100 The bug reporting section of the documentation
11101 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
11102 explains how to create useful bug reports.
11106 .SH AUTHORS
11107 MPlayer was initially written by Arpad Gereoffy.
11108 See the AUTHORS file for a list of some of the many other contributors.
11110 MPlayer is (C) 2000\-2008 The MPlayer Team
11112 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
11113 It is maintained by Diego Biurrun.
11114 Please send mails about it to the MPlayer-DOCS mailing list.
11115 Translation specific mails belong on the MPlayer-translations mailing list.
11116 .\" end of file