vf_stereo3d: Add stereo3d filter
[mplayer/glamo.git] / DOCS / man / en / mplayer.1
bloba31ffb478b1c70d2ae2c6bda8c136c47423c4332
1 .\" $Revision$
2 .\" MPlayer (C) 2000-2010 MPlayer Team
3 .\" This man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
5 .\" --------------------------------------------------------------------------
6 .\" Macro definitions
7 .\" --------------------------------------------------------------------------
9 .\" define indentation for suboptions
10 .nr SS 5
11 .\" add new suboption
12 .de IPs
13 .IP "\\$1" \n(SS
15 .\" begin of first level suboptions, end with .RE
16 .de RSs
17 .RS 10
19 .\" begin of 2nd level suboptions
20 .de RSss
21 .PD 0
22 .RS \n(SS+3
24 .\" end of 2nd level suboptions
25 .de REss
26 .RE
27 .PD 1
30 .\" --------------------------------------------------------------------------
31 .\" Title
32 .\" --------------------------------------------------------------------------
34 .TH MPlayer 1 "2009-03-25" "The MPlayer Project" "The Movie Player"
36 .SH NAME
37 mplayer  \- movie player
38 .br
39 mencoder \- movie encoder
41 .\" --------------------------------------------------------------------------
42 .\" Synopsis
43 .\" --------------------------------------------------------------------------
45 .SH SYNOPSIS
46 .na
47 .nh
48 .B mplayer
49 [options] [file|URL|playlist|\-]
51 .br
52 .B mplayer
53 [options] file1
54 [specific options] [file2] [specific options]
56 .br
57 .B mplayer
58 [options]
59 {group of files and options}
60 [group-specific options]
62 .br
63 .B mplayer
64 [br]://[title][/device]
65 [options]
67 .br
68 .B mplayer
69 [dvd|dvdnav]://[title|[start_title]\-end_title][/device]
70 [options]
72 .br
73 .B mplayer
74 vcd://track[/device]
76 .br
77 .B mplayer
78 tv://[channel][/input_id]
79 [options]
81 .br
82 .B mplayer
83 radio://[channel|frequency][/capture]
84 [options]
86 .br
87 .B mplayer
88 pvr://
89 [options]
91 .br
92 .B mplayer
93 dvb://[card_number@]channel
94 [options]
96 .br
97 .B mplayer
98 mf://[filemask|@listfile]
99 [\-mf options] [options]
102 .B mplayer
103 [cdda|cddb]://track[\-endtrack][:speed][/device]
104 [options]
107 .B mplayer
108 cue://file[:track]
109 [options]
112 .B mplayer
113 [file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|icyx|noicyx|smb]://
114 [user:pass@]URL[:port] [options]
117 .B mplayer
118 sdp://file
119 [options]
122 .B mplayer
123 mpst://host[:port]/URL
124 [options]
127 .B mplayer
128 tivo://host/[list|llist|fsid]
129 [options]
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, Blu\-ray, 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, Blu-ray, 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 "C (\-capture only)"
277 Start/stop capturing the primary stream.
278 .IPs "r and t"
279 Move subtitles up/down.
280 .IPs "i (\-edlout mode only)"
281 Set start or end of an EDL skip and write it out to the given file.
282 .IPs "s (\-vf screenshot only)"
283 Take a screenshot.
284 .IPs "S (\-vf screenshot only)"
285 Start/stop taking screenshots.
286 .IPs "I\ \ \ \ "
287 Show filename on the OSD.
288 .IPs "P\ \ \ \ "
289 Show progression bar, elapsed time and total duration on the OSD.
290 .IPs "! and @"
291 Seek to the beginning of the previous/next chapter.
292 .IPs "D (\-vo xvmc, \-vo vdpau, \-vf yadif, \-vf kerndeint only)"
293 Activate/deactivate deinterlacer.
294 .IPs "A\ \ \ \ "
295 Cycle through the available DVD angles.
296 .IPs "c (currently -vo vdpau and -vo xv only)"
297 Change YUV colorspace.
299 .PD 1
302 (The following keys are valid only when using a hardware accelerated video
303 output (xv, (x)vidix, (x)mga, etc), the software equalizer
304 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
307 .PD 0
309 .IPs "1 and 2"
310 Adjust contrast.
311 .IPs "3 and 4"
312 Adjust brightness.
313 .IPs "5 and 6"
314 Adjust hue.
315 .IPs "7 and 8"
316 Adjust saturation.
318 .PD 1
321 (The following keys are valid only when using the quartz or corevideo
322 video output driver.)
325 .PD 0
327 .IPs "command + 0"
328 Resize movie window to half its original size.
329 .IPs "command + 1"
330 Resize movie window to its original size.
331 .IPs "command + 2"
332 Resize movie window to double its original size.
333 .IPs "command + f"
334 Toggle fullscreen (also see \-fs).
335 .IPs "command + [ and command + ]"
336 Set movie window alpha.
338 .PD 1
341 (The following keys are valid only when using the sdl
342 video output driver.)
345 .PD 0
347 .IPs "c\ \ \ \ "
348 Cycle through available fullscreen modes.
349 .IPs "n\ \ \ \ "
350 Restore original mode.
352 .PD 1
355 (The following keys are valid if you have a keyboard
356 with multimedia keys.)
359 .PD 0
361 .IPs PAUSE
362 Pause.
363 .IPs "STOP\ "
364 Stop playing and quit.
365 .IPs "PREVIOUS and NEXT"
366 Seek backward/\:forward 1 minute.
368 .PD 1
371 (The following keys are only valid if you compiled with TV or DVB input
372 support and will take precedence over the keys defined above.)
375 .PD 0
377 .IPs "h and k"
378 Select previous/\:next channel.
379 .IPs "n\ \ \ \ "
380 Change norm.
381 .IPs "u\ \ \ \ "
382 Change channel list.
384 .PD 1
387 (The following keys are only valid if you compiled with dvdnav
388 support: They are used to navigate the menus.)
391 .PD 0
393 .IPs "keypad 8"
394 Select button up.
395 .IPs "keypad 2"
396 Select button down.
397 .IPs "keypad 4"
398 Select button left.
399 .IPs "keypad 6"
400 Select button right.
401 .IPs "keypad 5"
402 Return to main menu.
403 .IPs "keypad 7"
404 Return to nearest menu (the order of preference is: chapter->title->root).
405 .IPs "keypad ENTER"
406 Confirm choice.
408 .PD 1
412 (The following keys are used for controlling TV teletext. The data may
413 come from either an analog TV source or an MPEG transport stream.)
416 .PD 0
418 .IPs "X\ \ \ \ "
419 Switch teletext on/\:off.
420 .IPs "Q and W"
421 Go to next/\:prev teletext page.
423 .PD 1
426 .B mouse control
427 .PD 0
429 .IPs "button 3 and button 4"
430 Seek backward/\:forward 1 minute.
431 .IPs "button 5 and button 6"
432 Decrease/\:increase volume.
434 .PD 1
437 .B joystick control
438 .PD 0
440 .IPs "left and right"
441 Seek backward/\:forward 10 seconds.
442 .IPs "up and down"
443 Seek forward/\:backward 1 minute.
444 .IPs "button 1"
445 Pause.
446 .IPs "button 2"
447 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
448 .IPs "button 3 and button 4"
449 Decrease/\:increase volume.
451 .PD 1
454 .\" --------------------------------------------------------------------------
455 .\" Usage
456 .\" --------------------------------------------------------------------------
458 .SH "USAGE"
459 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
460 \-fs option is \-nofs.
462 If an option is marked as (XXX only), it will only work in combination with
463 the XXX option or if XXX is compiled in.
465 .I NOTE:
466 The suboption parser (used for example for \-ao pcm suboptions) supports
467 a special kind of string-escaping intended for use with external GUIs.
469 It has the following format:
471 %n%string_of_length_n
473 .I EXAMPLES:
475 mplayer \-ao pcm:file=%10%C:test.wav test.avi
477 Or in a script:
479 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
482 .\" --------------------------------------------------------------------------
483 .\" Configuration files
484 .\" --------------------------------------------------------------------------
486 .SH "CONFIGURATION FILES"
487 You can put all of the options in configuration files which will be read
488 every time MPlayer/MEncoder is run.
489 The system-wide configuration file 'mplayer.conf' is in your configuration
490 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
491 specific one is '~/\:.mplayer/\:config'.
492 The configuration file for MEncoder is 'mencoder.conf' in your configuration
493 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
494 user specific one is '~/\:.mplayer/\:mencoder.conf'.
495 User specific options override system-wide options and options given on the
496 command line override either.
497 The syntax of the configuration files is 'option=<value>', everything after
498 a '#' is considered a comment.
499 Options that work without values can be enabled by setting them to 'yes'
500 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
501 Even suboptions can be specified in this way.
503 You can also write file-specific configuration files.
504 If you wish to have a configuration file for a file called 'movie.avi', create a file
505 named 'movie.avi.conf' with the file-specific options in it and put it in
506 ~/.mplayer/.
507 You can also put the configuration file in the same directory as the file to
508 be played, as long as you give the \-use\-filedir\-conf option (either on the
509 command line or in your global config file).
510 If a file-specific configuration file is found in the same directory, no
511 file-specific configuration is loaded from ~/.mplayer.
512 In addition, the \-use\-filedir\-conf option enables directory-specific
513 configuration files.
514 For this, MPlayer first tries to load a mplayer.conf from the same directory as
515 the file played and then tries to load any file-specific configuration.
517 .I EXAMPLE MPLAYER CONFIGURATION FILE:
518 .sp 1
520 # Use Matrox driver by default.
521 vo=xmga
522 # I love practicing handstands while watching videos.
523 flip=yes
524 # Decode/encode multiple files from PNG,
525 # start with mf://filemask
526 mf=type=png:fps=25
527 # Eerie negative images are cool.
528 vf=eq2=1.0:\-0.8
531 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
532 .sp 1
534 # Make MEncoder output to a default filename.
535 o=encoded.avi
536 # The next 4 lines allow mencoder tv:// to start capturing immediately.
537 oac=pcm=yes
538 ovc=lavc=yes
539 lavcopts=vcodec=mjpeg
540 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
541 # more complex default encoding option set
542 lavcopts=vcodec=mpeg4:autoaspect=1
543 lameopts=aq=2:vbr=4
544 ovc=lavc=1
545 oac=lavc=1
546 passlogfile=pass1stats.log
547 noautoexpand=1
548 subfont-autoscale=3
549 subfont-osd-scale=6
550 subfont-text-scale=4
551 subalign=2
552 subpos=96
553 spuaa=20
556 .\" --------------------------------------------------------------------------
557 .\" Profiles
558 .\" --------------------------------------------------------------------------
560 .SH "PROFILES"
561 To ease working with different configurations profiles can be defined in the
562 configuration files.
563 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
564 All following options will be part of the profile.
565 A description (shown by \-profile help) can be defined with the profile-desc
566 option.
567 To end the profile, start another one or use the profile name 'default'
568 to continue with normal options.
571 .I "EXAMPLE MPLAYER PROFILE:"
572 .sp 1
575 [protocol.dvd]
576 profile-desc="profile for dvd:// streams"
577 vf=pp=hb/vb/dr/al/fd
578 alang=en
580 [protocol.dvdnav]
581 profile-desc="profile for dvdnav:// streams"
582 profile=protocol.dvd
583 mouse-movements=yes
584 nocache=yes
586 [extension.flv]
587 profile-desc="profile for .flv files"
588 flip=yes
590 [vo.pnm]
591 outdir=/tmp
593 [ao.alsa]
594 device=spdif
597 .I "EXAMPLE MENCODER PROFILE:"
598 .sp 1
601 [mpeg4]
602 profile-desc="MPEG4 encoding"
603 ovc=lacv=yes
604 lavcopts=vcodec=mpeg4:vbitrate=1200
606 [mpeg4\-hq]
607 profile-desc="HQ MPEG4 encoding"
608 profile=mpeg4
609 lavcopts=mbd=2:trell=yes:v4mv=yes
612 .\" --------------------------------------------------------------------------
613 .\" Options
614 .\" --------------------------------------------------------------------------
616 .SH "GENERAL OPTIONS"
619 .B \-codecpath <dir>
620 Specify a directory for binary codecs.
623 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
624 Override the standard search path and use the specified file
625 instead of the builtin codecs.conf.
628 .B \-include <configuration file>
629 Specify configuration file to be parsed after the default ones.
632 .B \-list\-options
633 Prints all available options.
636 .B \-msgcharset <charset>
637 Convert console messages to the specified character set (default: autodetect).
638 Text will be in the encoding specified with the \-\-charset configure option.
639 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
641 .I NOTE:
642 The option takes effect after command line parsing has finished.
643 The MPLAYER_CHARSET environment variable can help you get rid of
644 the first lines of garbled output.
647 .B \-msgcolor
648 Enable colorful console output on terminals that support ANSI color.
651 .B \-msglevel <all=<level>:<module>=<level>:...>
652 Control verbosity directly for each module.
653 The 'all' module changes the verbosity of all the modules not
654 explicitly specified on the command line.
655 See '\-msglevel help' for a list of all modules.
657 .I NOTE:
658 Some messages are printed before the command line is parsed and are
659 therefore not affected by \-msglevel.
660 To control these messages you have to use the MPLAYER_VERBOSE environment
661 variable, see its description below for details.
663 Available levels:
664 .PD 0
665 .RSs
666 .IPs "\-1"
667 complete silence
668 .IPs " 0"
669 fatal messages only
670 .IPs " 1"
671 error messages
672 .IPs " 2"
673 warning messages
674 .IPs " 3"
675 short hints
676 .IPs " 4"
677 informational messages
678 .IPs " 5"
679 status messages (default)
680 .IPs " 6"
681 verbose messages
682 .IPs " 7"
683 debug level 2
684 .IPs " 8"
685 debug level 3
686 .IPs " 9"
687 debug level 4
689 .PD 1
692 .B \-msgmodule
693 Prepend module name in front of each console message.
696 .B \-noconfig <options>
697 Do not parse selected configuration files.
699 .I NOTE:
700 If \-include or \-use\-filedir\-conf options are
701 specified at the command line, they will be honoured.
702 .sp 1
703 Available options are:
704 .PD 0
705 .RSs
706 .IPs "all\ \ "
707 all configuration files
708 .IPs system
709 system configuration file
710 .IPs "user\ "
711 user configuration file
713 .PD 1
716 .B "\-quiet\ "
717 Make console output less verbose; in particular, prevents the status line
718 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
719 Particularly useful on slow terminals or broken ones which do not properly
720 handle carriage return (i.e.\& \\r).
723 .B \-priority <prio> (Windows and OS/2 only)
724 Set process priority for MPlayer according to the predefined
725 priorities available under Windows and OS/2.
726 Possible values of <prio>:
727 .RSs
728 idle|belownormal|normal|abovenormal|high|realtime
730 .sp 1
732 .I WARNING:
733 Using realtime priority can cause system lockup.
737 .B \-profile <profile1,profile2,...>
738 Use the given profile(s), \-profile help displays a list of the defined profiles.
741 .B \-really\-quiet (also see \-quiet)
742 Display even less output and status messages than with \-quiet.
745 .B \-show\-profile <profile>
746 Show the description and content of a profile.
749 .B \-use\-filedir\-conf
750 Look for a file-specific configuration file in the same directory as
751 the file that is being played.
753 .I WARNING:
754 May be dangerous if playing from untrusted media.
757 .B "\-v\ \ \ \ \ "
758 Increment verbosity level, one level for each \-v
759 found on the command line.
763 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
766 .B \-autoq <quality> (use with \-vf [s]pp)
767 Dynamically changes the level of postprocessing depending on the available spare
768 CPU time.
769 The number you specify will be the maximum level used.
770 Usually you can use some big number.
771 You have to use \-vf [s]pp without parameters in order for this to work.
774 .B \-autosync <factor>
775 Gradually adjusts the A/V sync based on audio delay measurements.
776 Specifying \-autosync 0, the default, will cause frame timing to be based
777 entirely on audio delay measurements.
778 Specifying \-autosync 1 will do the same, but will subtly change the A/V
779 correction algorithm.
780 An uneven video framerate in a movie which plays fine with \-nosound can
781 often be helped by setting this to an integer value greater than 1.
782 The higher the value, the closer the timing will be to \-nosound.
783 Try \-autosync 30 to smooth out problems with sound drivers which do
784 not implement a perfect audio delay measurement.
785 With this value, if large A/V sync offsets occur, they will only take about
786 1 or 2 seconds to settle out.
787 This delay in reaction time to sudden A/V offsets should be the only
788 side-effect of turning this option on, for all sound drivers.
791 .B \-benchmark
792 Prints some statistics on CPU usage and dropped frames at the end of playback.
793 Use in combination with \-nosound and \-vo null for benchmarking only the
794 video codec.
796 .I NOTE:
797 With this option MPlayer will also ignore frame duration when playing
798 only video (you can think of that as infinite fps).
801 .B \-colorkey <number>
802 Changes the colorkey to an RGB value of your choice.
803 0x000000 is black and 0xffffff is white.
804 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
805 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
806 drivers.
809 .B \-nocolorkey
810 Disables colorkeying.
811 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
812 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
813 drivers.
816 .B \-correct\-pts
817 Switches MPlayer to a mode where timestamps for video frames
818 are calculated differently and video filters which add new frames or
819 modify timestamps of existing ones are supported.
820 The more accurate timestamps can be visible for example when playing
821 subtitles timed to scene changes with the \-ass option.
822 Without \-correct\-pts the subtitle timing will typically be off by some frames.
823 This option does not work correctly with some demuxers and codecs.
826 .B \-crash\-debug (DEBUG CODE)
827 Automatically attaches gdb upon crash or SIGTRAP.
828 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
831 .B \-doubleclick\-time
832 Time in milliseconds to recognize two consecutive button presses as
833 a double-click (default: 300).
834 Set to 0 to let your windowing system decide what a double-click is
835 (\-vo directx only).
837 .I NOTE:
838 You will get slightly different behaviour depending on whether you bind
839 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
842 .B \-edlout <filename>
843 Creates a new file and writes edit decision list (EDL) records to it.
844 During playback, the user hits 'i' to mark the start or end of a skip block.
845 This provides a starting point from which the user can fine-tune EDL entries
846 later.
847 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
850 .B \-nofixed\-vo
851 \-fixed\-vo enforces a fixed video system for multiple files (one
852 (un)initialization for all files).
853 Therefore only one window will be opened for all files.
854 Now enabled by default, use \-nofixed\-vo to disable and create a new window
855 whenever the video stream changes.
856 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
857 xmga, xv, xvidix and dfbmga.
860 .B \-framedrop (also see \-hardframedrop, experimental without \-nocorrect\-pts)
861 Skip displaying some frames to maintain A/V sync on slow systems.
862 Video filters are not applied to such frames.
863 For B-frames even decoding is skipped completely.
866 .B \-h, \-help, \-\-help
867 Show short summary of options.
870 .B \-hardframedrop (experimental without \-nocorrect\-pts)
871 More intense frame dropping (breaks decoding).
872 Leads to image distortion!
873 Note that especially the libmpeg2 decoder may crash with this,
874 so consider using "\-vc ffmpeg12,".
877 .B \-heartbeat\-cmd
878 Command that is executed every 30 seconds during playback via system() -
879 i.e.\& using the shell.
880 .sp 1
881 .I NOTE:
882 MPlayer uses this command without any checking, it is your responsibility
883 to ensure it does not cause security problems (e.g.\& make sure to use full
884 paths if "." is in your path like on Windows).
885 It also only works when playing video (i.e.\& not with \-novideo but works with \-vo null).
886 .sp 1
887 This can be "misused" to disable screensavers that do not support the proper
888 X API (also see \-stop\-xscreensaver).
889 If you think this is too complicated, ask the author of the screensaver
890 program to support the proper X APIs.
891 .sp 1
892 .I EXAMPLE for xscreensaver:
893 mplayer \-heartbeat\-cmd "xscreensaver\-command \-deactivate" file
894 .sp 1
895 .I EXAMPLE for GNOME screensaver:
896 mplayer \-heartbeat\-cmd "gnome\-screensaver\-command \-p" file
898 .PD 1
901 .B \-identify
902 Shorthand for \-msglevel identify=4.
903 Show file parameters in an easily parseable format.
904 Also prints more detailed information about subtitle and audio
905 track languages and IDs.
906 In some cases you can get more information by using \-msglevel identify=6.
907 For example, for a DVD or Blu\-ray it will list the chapters and time length
908 of each title, as well as a disk ID.
909 Combine this with \-frames 0 to suppress all video output.
910 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
911 (hopefully) shellescapes the filenames.
914 .B \-idle (also see \-slave)
915 Makes MPlayer wait idly instead of quitting when there is no file to play.
916 Mostly useful in slave mode where MPlayer can be controlled
917 through input commands.
920 .B \-input <commands>
921 This option can be used to configure certain parts of the input system.
922 Paths are relative to ~/.mplayer/.
924 .I NOTE:
925 Autorepeat is currently only supported by joysticks.
926 .sp 1
927 Available commands are:
928 .sp 1
929 .PD 0
930 .RSs
931 .IPs conf=<filename>
932 Specify input configuration file other than the default
933 ~/\:.mplayer/\:input.conf.
934 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
935 .IPs ar-dev=<device>
936 Device to be used for Apple IR Remote (default is autodetected, Linux only).
937 .IPs ar-delay
938 Delay in milliseconds before we start to autorepeat a key (0 to disable).
939 .IPs ar-rate
940 Number of key presses to generate per second on autorepeat.
941 .IPs (no)default-bindings
942 Use the key bindings that MPlayer ships with by default.
943 .IPs keylist
944 Prints all keys that can be bound to commands.
945 .IPs cmdlist
946 Prints all commands that can be bound to keys.
947 .IPs js-dev
948 Specifies the joystick device to use (default: /dev/\:input/\:js0).
949 .IPs file=<filename>
950 Read commands from the given file.
951 Mostly useful with a FIFO.
953 .I NOTE:
954 When the given file is a FIFO MPlayer opens both ends so you can do
955 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
957 .PD 1
960 .B \-key\-fifo\-size <2\-65000>
961 Specify the size of the FIFO that buffers key events (default: 7).
962 A FIFO of size n can buffer (n\-1) events.
963 If it is too small some events may be lost
964 (leading to "stuck mouse buttons" and similar effects).
965 If it is too big, MPlayer may seem to hang while it
966 processes the buffered events.
967 To get the same behavior as before this option was introduced,
968 set it to 2 for Linux or 1024 for Windows.
971 .B \-lircconf <filename> (LIRC only)
972 Specifies a configuration file for LIRC (default: ~/.lircrc).
975 .B \-list\-properties
976 Print a list of the available properties.
979 .B \-loop <number>
980 Loops movie playback <number> times.
981 0 means forever.
984 .B \-menu (OSD menu only)
985 Turn on OSD menu support.
988 .B \-menu\-cfg <filename> (OSD menu only)
989 Use an alternative menu.conf.
992 .B \-menu\-chroot <path> (OSD menu only)
993 Chroot the file selection menu to a specific location.
994 .sp 1
995 .I EXAMPLE:
996 .PD 0
997 .RSs
998 .IPs "\-menu\-chroot /home"
999 Will restrict the file selection menu to /\:home and downward (i.e.\& no
1000 access to / will be possible, but /home/user_name will).
1002 .PD 1
1005 .B \-menu\-keepdir (OSD menu only)
1006 File browser starts from the last known location instead of current directory.
1009 .B \-menu\-root <value> (OSD menu only)
1010 Specify the main menu.
1013 .B \-menu\-startup (OSD menu only)
1014 Display the main menu at MPlayer startup.
1017 .B \-mouse\-movements
1018 Permit MPlayer to receive pointer events reported by the video
1019 output driver.
1020 Necessary to select the buttons in DVD menus.
1021 Supported for X11-based VOs (x11, xv, xvmc, etc) and the gl, gl2, direct3d and
1022 corevideo VOs.
1025 .B \-noar
1026 Turns off AppleIR remote support.
1029 .B \-noconsolecontrols
1030 Prevent MPlayer from reading key events from standard input.
1031 Useful when reading data from standard input.
1032 This is automatically enabled when \- is found on the command line.
1033 There are situations where you have to set it manually, e.g.\&
1034 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1035 in a playlist or intend to read from stdin later on via the loadfile or
1036 loadlist slave commands.
1039 .B \-nojoystick
1040 Turns off joystick support.
1043 .B \-nolirc
1044 Turns off LIRC support.
1047 .B \-nomouseinput
1048 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1049 on this option).
1051 .B \-noordered\-chapters
1052 Disable support for Matroska ordered chapters.
1053 MPlayer will not load or search for video segments from other files,
1054 and will also ignore any chapter order specified for the main file.
1057 .B \-pts\-association\-mode <mode number>
1058 Select the method used to determine which container packet timestamp
1059 corresponds to a particular output frame from the video decoder.
1060 .PD 0
1061 .RSs
1062 .IPs 0
1063 Try to pick a working mode from the ones below automatically (default)
1064 .IPs 1
1065 Use decoder reordering functionality.
1066 .IPs 2
1067 Maintain a buffer of unused pts values and use the lowest value for the frame.
1069 .PD 1
1072 .B \-rtc (RTC only)
1073 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1074 mechanism.
1075 This wakes up the process every 1/1024 seconds to check the current time.
1076 Useless with modern Linux kernels configured for desktop use as they already
1077 wake up the process with similar accuracy when using normal timed sleep.
1080 .B \-playing\-msg <string>
1081 Print out a string before starting playback.
1082 The following expansions are supported:
1083 .RSs
1084 .IPs ${NAME}
1085 Expand to the value of the property NAME.
1086 .IPs ?(NAME:TEXT)
1087 Expand TEXT only if the property NAME is available.
1088 .IPs ?(!NAME:TEXT)
1089 Expand TEXT only if the property NAME is not available.
1093 .B \-playlist <filename>
1094 Play files according to a playlist file (ASX, Winamp, SMIL, or
1095 one-file-per-line format).
1097 .I NOTE:
1098 This option is considered an entry so options found after it will apply
1099 only to the elements of this playlist.
1101 FIXME: This needs to be clarified and documented thoroughly.
1104 .B \-rtc\-device <device>
1105 Use the specified device for RTC timing.
1108 .B \-shuffle
1109 Play files in random order.
1112 .B \-slave (also see \-input)
1113 Switches on slave mode, in which MPlayer works as a backend for other programs.
1114 Instead of intercepting keyboard events, MPlayer will read commands separated
1115 by a newline (\\n) from stdin.
1117 .I NOTE:
1118 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1119 for their description.
1120 Also, this is not intended to disable other inputs, e.g.\& via the video window,
1121 use some other method like \-input nodefault\-bindings:conf=/dev/null for that.
1124 .B \-softsleep
1125 Time frames by repeatedly checking the current time instead of asking the
1126 kernel to wake up MPlayer at the correct time.
1127 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1128 Comes at the price of higher CPU consumption.
1131 .B \-sstep <sec>
1132 Skip <sec> seconds after every frame.
1133 The normal framerate of the movie is kept, so playback is accelerated.
1134 Since MPlayer can only seek to the next keyframe this may be inexact.
1138 .SH "DEMUXER/STREAM OPTIONS"
1141 .B \-a52drc <level>
1142 Select the Dynamic Range Compression level for AC-3 audio streams.
1143 <level> is a float value ranging from 0 to 1, where 0 means no compression
1144 and 1 (which is the default) means full compression (make loud passages more
1145 silent and vice versa).
1146 Values up to 2 are also accepted, but are purely experimental.
1147 This option only shows an effect if the AC-3 stream contains the required range
1148 compression information.
1151 .B \-aid <ID> (also see \-alang)
1152 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1153 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1154 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1155 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1156 (if present) with the chosen audio stream.
1159 .B \-ausid <ID> (also see \-alang)
1160 Select audio substream channel.
1161 Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled
1162 by the native demuxer (not by libavformat).
1163 The format type may not be correctly identified because of how this information
1164 (or lack thereof) is embedded in the stream, but it will demux correctly the
1165 audio streams when multiple substreams are present.
1166 MPlayer prints the available substream IDs when run with \-identify.
1169 .B \-alang <language code[,language code,...]> (also see \-aid)
1170 Specify a priority list of audio languages to use.
1171 Different container formats employ different language codes.
1172 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1173 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1174 MPlayer prints the available languages when run in verbose (\-v) mode.
1175 .sp 1
1176 .I EXAMPLE:
1177 .PD 0
1178 .RSs
1179 .IPs "mplayer dvd://1 \-alang hu,en"
1180 Chooses the Hungarian language track on a DVD and falls back on English if
1181 Hungarian is not available.
1182 .IPs "mplayer \-alang jpn example.mkv"
1183 Plays a Matroska file in Japanese.
1185 .PD 1
1188 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1189 Force audio demuxer type for \-audiofile.
1190 Use a '+' before the name to force it, this will skip some checks!
1191 Give the demuxer name as printed by \-audio\-demuxer help.
1192 For backward compatibility it also accepts the demuxer ID as defined in
1193 libmpdemux/\:demuxer.h.
1194 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1197 .B \-audiofile <filename>
1198 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1199 movie.
1202 .B \-audiofile\-cache <kBytes>
1203 Enables caching for the stream used by \-audiofile, using the specified
1204 amount of memory.
1207 .B \-reuse\-socket (udp:// only)
1208 Allows a socket to be reused by other processes as soon as it is closed.
1211 .B \-bandwidth <Bytes> (network only)
1212 Specify the maximum bandwidth for network streaming (for servers that are
1213 able to send content in different bitrates).
1214 Useful if you want to watch live streamed media behind a slow connection.
1215 With Real RTSP streaming, it is also used to set the maximum delivery
1216 bandwidth allowing faster cache filling and stream dumping.
1219 .B \-bluray\-angle <angle ID> (Blu\-ray only)
1220 Some Blu\-ray discs contain scenes that can be viewed from multiple angles.
1221 Here you can tell MPlayer which angles to use (default: 1).
1224 .B \-bluray\-chapter <chapter ID> (Blu\-ray only)
1225 Tells MPlayer which Blu\-ray chapter to start the current title from (default: 1).
1228 .B \-bluray\-device <path to disc> (Blu\-ray only)
1229 Specify the Blu\-ray disc location. Must be a directory with Blu\-ray structure.
1232 .B \-cache <kBytes>
1233 This option specifies how much memory (in kBytes) to use when precaching a
1234 file or URL.
1235 Especially useful on slow media.
1238 .B \-nocache
1239 Turns off caching.
1242 .B \-cache\-min <percentage>
1243 Playback will start when the cache has been filled up to <percentage>
1244 of the total.
1247 .B \-cache\-seek\-min <percentage>
1248 If a seek is to be made to a position within <percentage> of the cache size
1249 from the current position, MPlayer will wait for the cache to be filled to
1250 this position rather than performing a stream seek (default: 50).
1253 .B \-capture (MPlayer only)
1254 Allows capturing the primary stream (not additional audio tracks or other
1255 kind of streams) into the file specified by \-dumpfile or \"stream.dump\"
1256 by default.
1257 If this option is given, capturing can be started and stopped by pressing
1258 the key bound to this function (see section INTERACTIVE CONTROL).
1259 Same as for \-dumpstream, this will likely not produce usable results for
1260 anything else than MPEG streams.
1261 Note that, due to cache latencies, captured data may begin and end
1262 somewhat delayed compared to what you see displayed.
1265 .B \-cdda <option1:option2> (CDDA only)
1266 This option can be used to tune the CD Audio reading feature of MPlayer.
1267 .sp 1
1268 Available options are:
1269 .RSs
1270 .IPs speed=<value>
1271 Set CD spin speed.
1272 .IPs paranoia=<0\-2>
1273 Set paranoia level.
1274 Values other than 0 seem to break playback of anything but the first track.
1275 .RSss
1276 0: disable checking (default)
1278 1: overlap checking only
1280 2: full data correction and verification
1281 .REss
1282 .IPs generic-dev=<value>
1283 Use specified generic SCSI device.
1284 .IPs sector-size=<value>
1285 Set atomic read size.
1286 .IPs overlap=<value>
1287 Force minimum overlap search during verification to <value> sectors.
1288 .IPs toc-bias
1289 Assume that the beginning offset of track 1 as reported in the TOC will be
1290 addressed as LBA 0.
1291 Some Toshiba drives need this for getting track boundaries correct.
1292 .IPs toc-offset=<value>
1293 Add <value> sectors to the values reported when addressing tracks.
1294 May be negative.
1295 .IPs (no)skip
1296 (Never) accept imperfect data reconstruction.
1300 .B \-cdrom\-device <path to device>
1301 Specify the CD-ROM device (default: /dev/\:cdrom).
1304 .B \-channels <number> (also see \-af channels)
1305 Request the number of playback channels (default: 2).
1306 MPlayer asks the decoder to decode the audio into as many channels as
1307 specified.
1308 Then it is up to the decoder to fulfill the requirement.
1309 This is usually only important when playing videos with AC-3 audio (like DVDs).
1310 In that case liba52 does the decoding by default and correctly downmixes the
1311 audio into the requested number of channels.
1312 To directly control the number of output channels independently of how many
1313 channels are decoded, use the channels filter.
1315 .I NOTE:
1316 This option is honored by codecs (AC-3 only), filters (surround) and audio
1317 output drivers (OSS at least).
1318 .sp 1
1319 Available options are:
1320 .sp 1
1321 .PD 0
1322 .RSs
1323 .IPs 2
1324 stereo
1325 .IPs 4
1326 surround
1327 .IPs 6
1328 full 5.1
1329 .IPs 8
1330 full 7.1
1332 .PD 1
1335 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1336 Specify which chapter to start playing at.
1337 Optionally specify which chapter to end playing at (default: 1).
1340 .B \-edition <edition ID> (Matroska, MPlayer only)
1341 Specify the edition (set of chapters) to use, where 0 is the first. If set to
1342 -1 (the default), MPlayer will choose the first edition declared as a default,
1343 or if there is no default, the first edition defined.
1346 .B \-cookies (network only)
1347 Send cookies when making HTTP requests.
1350 .B \-cookies\-file <filename> (network only)
1351 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1352 and skip reading from default locations.
1353 The file is assumed to be in Netscape format.
1356 .B \-delay <sec>
1357 audio delay in seconds (positive or negative float value)
1359 Negative values delay the audio, and positive values delay the video.
1360 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1362 .I NOTE:
1363 When used with MEncoder, this is not guaranteed to work correctly
1364 with \-ovc copy; use \-audio\-delay instead.
1367 .B \-ignore\-start
1368 Ignore the specified starting time for streams in AVI files.
1369 In MPlayer, this nullifies stream delays in files encoded with
1370 the \-audio\-delay option.
1371 During encoding, this option prevents MEncoder from transferring
1372 original stream start times to the new file; the \-audio\-delay option is
1373 not affected.
1374 Note that MEncoder sometimes adjusts stream starting times
1375 automatically to compensate for anticipated decoding delays, so do not
1376 use this option for encoding without testing it first.
1379 .B \-demuxer <[+]name>
1380 Force demuxer type.
1381 Use a '+' before the name to force it, this will skip some checks!
1382 Give the demuxer name as printed by \-demuxer help.
1383 For backward compatibility it also accepts the demuxer ID as defined in
1384 libmpdemux/\:demuxer.h.
1387 .B \-dumpaudio (MPlayer only)
1388 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1389 in most other cases the resulting file will not be playable).
1390 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1391 on the command line only the last one will work.
1394 .B \-dumpfile <filename> (MPlayer only)
1395 Specify which file MPlayer should dump to.
1396 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream /
1397 \-capture.
1400 .B \-dumpstream (MPlayer only)
1401 Dumps the raw stream to ./stream.dump.
1402 Useful when ripping from DVD or network.
1403 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1404 on the command line only the last one will work.
1407 .B \-dumpvideo (MPlayer only)
1408 Dump raw compressed video stream to ./stream.dump (not very usable).
1409 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1410 on the command line only the last one will work.
1413 .B \-dvbin <options> (DVB only)
1414 Pass the following parameters to the DVB input module, in order to override
1415 the default ones:
1416 .sp 1
1417 .PD 0
1418 .RSs
1419 .IPs card=<1\-4>
1420 Specifies using card number 1\-4 (default: 1).
1421 .IPs file=<filename>
1422 Instructs MPlayer to read the channels list from <filename>.
1423 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1424 or ~/.mplayer/\:channels.conf as a last resort.
1425 .IPs timeout=<1\-30>
1426 Maximum number of seconds to wait when trying to tune a
1427 frequency before giving up (default: 30).
1429 .PD 1
1432 .B \-dvd\-device <path to device> (DVD only)
1433 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1434 You can also specify a directory that contains files previously copied directly
1435 from a DVD (with e.g.\& vobcopy).
1438 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1439 Try to limit DVD speed (default: 0, no change).
1440 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1441 10800KB/s.
1442 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1443 quiet and fast enough.
1444 MPlayer resets the speed to the drive default value on close.
1445 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1446 10800KB/s.
1448 .I NOTE:
1449 You need write access to the DVD device to change the speed.
1452 .B \-dvdangle <angle ID> (DVD only)
1453 Some DVD discs contain scenes that can be viewed from multiple angles.
1454 Here you can tell MPlayer which angles to use (default: 1).
1457 .B \-edl <filename>
1458 Enables edit decision list (EDL) actions during playback.
1459 Video will be skipped over and audio will be muted and unmuted according to
1460 the entries in the given file.
1461 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1462 on how to use this.
1465 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1466 Stop at given time or byte position.
1468 .I NOTE:
1469 Byte position is enabled only for MEncoder and will not be accurate, as it can
1470 only stop at a frame boundary.
1471 When used in conjunction with \-ss option, \-endpos time will shift forward by
1472 seconds specified with \-ss.
1473 .sp 1
1474 .I EXAMPLE:
1475 .PD 0
1476 .RSs
1477 .IPs "\-endpos 56"
1478 Stop at 56 seconds.
1479 .IPs "\-endpos 01:10:00"
1480 Stop at 1 hour 10 minutes.
1481 .IPs "\-ss 10 \-endpos 56"
1482 Stop at 1 minute 6 seconds.
1483 .IPs "\-endpos 100mb"
1484 Encode only 100 MB.
1486 .PD 1
1489 .B \-forceidx
1490 Force index rebuilding.
1491 Useful for files with broken index (A/V desync, etc).
1492 This will enable seeking in files where seeking was not possible.
1493 You can fix the index permanently with MEncoder (see the documentation).
1495 .I NOTE:
1496 This option only works if the underlying media supports seeking
1497 (i.e.\& not with stdin, pipe, etc).
1500 .B \-fps <float value>
1501 Override video framerate.
1502 Useful if the original value is wrong or missing.
1505 .B \-frames <number>
1506 Play/\:convert only first <number> frames, then quit.
1509 .B \-hr\-mp3\-seek (MP3 only)
1510 Hi-res MP3 seeking.
1511 Enabled when playing from an external MP3 file, as we need to seek
1512 to the very exact position to keep A/V sync.
1513 Can be slow especially when seeking backwards since it has to rewind
1514 to the beginning to find an exact frame position.
1517 .B \-idx (also see \-forceidx)
1518 Rebuilds index of files if no index was found, allowing seeking.
1519 Useful with broken/\:incomplete downloads, or badly created files.
1521 .I NOTE:
1522 This option only works if the underlying media supports seeking
1523 (i.e.\& not with stdin, pipe, etc).
1526 .B \-noidx
1527 Skip rebuilding index file.
1528 MEncoder skips writing the index with this option.
1531 .B \-ipv4\-only\-proxy (network only)
1532 Skip the proxy for IPv6 addresses.
1533 It will still be used for IPv4 connections.
1536 .B \-loadidx <index file>
1537 The file from which to read the video index data saved by \-saveidx.
1538 This index will be used for seeking, overriding any index data
1539 contained in the AVI itself.
1540 MPlayer will not prevent you from loading an index file generated
1541 from a different AVI, but this is sure to cause unfavorable results.
1543 .I NOTE:
1544 This option is obsolete now that MPlayer has OpenDML support.
1547 .B \-mc <seconds/frame>
1548 maximum A-V sync correction per frame (in seconds)
1550 \-mc 0 should always be combined with \-noskip for mencoder, otherwise
1551 it will almost certainly cause A-V desync.
1554 .B \-mf <option1:option2:...>
1555 Used when decoding from multiple PNG or JPEG files.
1556 .sp 1
1557 Available options are:
1558 .sp 1
1559 .PD 0
1560 .RSs
1561 .IPs w=<value>
1562 input file width (default: autodetect)
1563 .IPs h=<value>
1564 input file height (default: autodetect)
1565 .IPs fps=<value>
1566 output fps (default: 25)
1567 .IPs type=<value>
1568 input file type (available: jpeg, png, tga, sgi)
1570 .PD 1
1573 .B \-ni (AVI only)
1574 Force usage of non-interleaved AVI parser (fixes playback
1575 of some bad AVI files).
1578 .B \-nobps (AVI only)
1579 Do not use average byte/\:second value for A-V sync.
1580 Helps with some AVI files with broken header.
1583 .B \-noextbased
1584 Disables extension-based demuxer selection.
1585 By default, when the file type (demuxer) cannot be detected reliably
1586 (the file has no header or it is not reliable enough), the filename
1587 extension is used to select the demuxer.
1588 Always falls back on content-based demuxer selection.
1591 .B \-passwd <password> (also see \-user) (network only)
1592 Specify password for HTTP authentication.
1595 .B \-prefer\-ipv4 (network only)
1596 Use IPv4 on network connections.
1597 Falls back on IPv6 automatically.
1600 .B \-prefer\-ipv6 (IPv6 network only)
1601 Use IPv6 on network connections.
1602 Falls back on IPv4 automatically.
1605 .B \-psprobe <byte position>
1606 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1607 how many bytes in the stream you want MPlayer to scan in order to identify
1608 the video codec used.
1609 This option is needed to play EVO or VDR files containing H.264 streams.
1612 .B \-pvr <option1:option2:...> (PVR only)
1613 This option tunes various encoding properties of the PVR capture module.
1614 It has to be used with any hardware MPEG encoder based card supported by the
1615 V4L2 driver.
1616 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1617 cards are known as PVR capture cards.
1618 Be aware that only Linux 2.6.18 kernel
1619 and above is able to handle MPEG stream through V4L2 layer.
1620 For hardware capture of an MPEG stream and watching it with
1621 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1622 .sp 1
1623 Available options are:
1624 .RSs
1625 .IPs aspect=<0\-3>
1626 Specify input aspect ratio:
1627 .RSss
1628 0: 1:1
1630 1: 4:3 (default)
1632 2: 16:9
1634 3: 2.21:1
1635 .REss
1636 .IPs arate=<32000\-48000>
1637 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1638 and 48000 Hz).
1639 .IPs alayer=<1\-3>
1640 Specify MPEG audio layer encoding (default: 2).
1641 .IPs abitrate=<32\-448>
1642 Specify audio encoding bitrate in kbps (default: 384).
1643 .IPs amode=<value>
1644 Specify audio encoding mode.
1645 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1646 .IPs vbitrate=<value>
1647 Specify average video bitrate encoding in Mbps (default: 6).
1648 .IPs vmode=<value>
1649 Specify video encoding mode:
1650 .RSss
1651 vbr: Variable BitRate (default)
1653 cbr: Constant BitRate
1654 .REss
1655 .IPs vpeak=<value>
1656 Specify peak video bitrate encoding in Mbps
1657 (only useful for VBR encoding, default: 9.6).
1658 .IPs fmt=<value>
1659 Choose an MPEG format for encoding:
1660 .RSss
1661 ps:    MPEG-2 Program Stream (default)
1663 ts:    MPEG-2 Transport Stream
1665 mpeg1: MPEG-1 System Stream
1667 vcd:   Video CD compatible stream
1669 svcd:  Super Video CD compatible stream
1671 dvd:   DVD compatible stream
1672 .REss
1674 .PD 1
1677 .B \-radio <option1:option2:...> (radio only)
1678 These options set various parameters of the radio capture module.
1679 For listening to radio with MPlayer use 'radio://<frequency>'
1680 (if channels option is not given) or 'radio://<channel_number>'
1681 (if channels option is given) as a movie URL.
1682 You can see allowed frequency range by running MPlayer with '\-v'.
1683 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1684 If the capture keyword is not given you can listen to radio
1685 using the line-in cable only.
1686 Using capture to listen is not recommended due to synchronization
1687 problems, which makes this process uncomfortable.
1688 .sp 1
1689 Available options are:
1690 .RSs
1691 .IPs device=<value>
1692 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1693 .IPs driver=<value>
1694 Radio driver to use (default: v4l2 if available, otherwise v4l).
1695 Currently, v4l and v4l2 drivers are supported.
1696 .IPs volume=<0..100>
1697 sound volume for radio device (default 100)
1698 .IPs "freq_min=<value> (*BSD BT848 only)"
1699 minimum allowed frequency (default: 87.50)
1700 .IPs "freq_max=<value> (*BSD BT848 only)"
1701 maximum allowed frequency (default: 108.00)
1702 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1703 Set channel list.
1704 Use _ for spaces in names (or play with quoting ;-).
1705 The channel names will then be written using OSD and the slave commands
1706 radio_step_channel and radio_set_channel will be usable for
1707 a remote control (see LIRC).
1708 If given, number in movie URL will be treated as channel position in
1709 channel list.
1711 .I EXAMPLE:
1712 radio://1, radio://104.4, radio_set_channel 1
1713 .IPs "adevice=<value> (radio capture only)"
1714 Name of device to capture sound from.
1715 Without such a name capture will be disabled,
1716 even if the capture keyword appears in the URL.
1717 For ALSA devices use it in the form hw=<card>.<device>.
1718 If the device name contains a '=', the module will use
1719 ALSA to capture, otherwise OSS.
1720 .IPs "arate=<value> (radio capture only)"
1721 Rate in samples per second (default: 44100).
1723 .I NOTE:
1724 When using audio capture set also \-rawaudio rate=<value> option
1725 with the same value as arate.
1726 If you have problems with sound speed (runs too quickly), try to play
1727 with different rate values (e.g.\& 48000,44100,32000,...).
1728 .IPs "achannels=<value> (radio capture only)"
1729 Number of audio channels to capture.
1733 .B \-rawaudio <option1:option2:...>
1734 This option lets you play raw audio files.
1735 You have to use \-demuxer rawaudio as well.
1736 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1737 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1738 .sp 1
1739 Available options are:
1740 .sp 1
1741 .PD 0
1742 .RSs
1743 .IPs channels=<value>
1744 number of channels
1745 .IPs rate=<value>
1746 rate in samples per second
1747 .IPs samplesize=<value>
1748 sample size in bytes
1749 .IPs bitrate=<value>
1750 bitrate for rawaudio files
1751 .IPs format=<value>
1752 fourcc in hex
1754 .PD 1
1757 .B \-rawvideo <option1:option2:...>
1758 This option lets you play raw video files.
1759 You have to use \-demuxer rawvideo as well.
1760 .sp 1
1761 Available options are:
1762 .sp 1
1763 .PD 0
1764 .RSs
1765 .IPs fps=<value>
1766 rate in frames per second (default: 25.0)
1767 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1768 set standard image size
1769 .IPs w=<value>
1770 image width in pixels
1771 .IPs h=<value>
1772 image height in pixels
1773 .IPs i420|yv12|yuy2|y8
1774 set colorspace
1775 .IPs format=<value>
1776 colorspace (fourcc) in hex or string constant.
1777 Use \-rawvideo format=help for a list of possible strings.
1778 .IPs size=<value>
1779 frame size in Bytes
1780 .REss
1781 .sp 1
1783 .I EXAMPLE:
1785 .PD 0
1786 .RSs
1787 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1788 Play the famous "foreman" sample video.
1789 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1790 Play a raw YUV sample.
1792 .PD 1
1795 .B \-referrer <string> (network only)
1796 Specify a referrer path or URL for HTTP requests.
1799 .B \-rtsp\-port
1800 Used with 'rtsp://' URLs to force the client's port number.
1801 This option may be useful if you are behind a router and want to forward
1802 the RTSP stream from the server to a specific client.
1805 .B \-rtsp\-destination
1806 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1807 This option may be useful with some RTSP server which do not
1808 send RTP packets to the right interface.
1809 If the connection to the RTSP server fails, use \-v to see
1810 which IP address MPlayer tries to bind to and try to force
1811 it to one assigned to your computer instead.
1814 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1815 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1816 packets be streamed over TCP (using the same TCP connection as RTSP).
1817 This option may be useful if you have a broken internet connection that does
1818 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1821 .B \-rtsp\-stream\-over\-http (LIVE555 only)
1822 Used with 'http://' URLs to specify that the resulting incoming RTP and RTCP
1823 packets be streamed over HTTP.
1826 .B \-saveidx <filename>
1827 Force index rebuilding and dump the index to <filename>.
1828 Currently this only works with AVI files.
1830 .I NOTE:
1831 This option is obsolete now that MPlayer has OpenDML support.
1834 .B \-sb <byte position> (also see \-ss)
1835 Seek to byte position.
1836 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1839 .B \-speed <0.01\-100>
1840 Slow down or speed up playback by the factor given as parameter.
1841 Not guaranteed to work correctly with \-oac copy.
1844 .B \-srate <Hz>
1845 Select the output sample rate to be used
1846 (of course sound cards have limits on this).
1847 If the sample frequency selected is different from that
1848 of the current media, the resample or lavcresample audio filter will be inserted
1849 into the audio filter layer to compensate for the difference.
1850 The type of resampling can be controlled by the \-af\-adv option.
1851 The default is fast resampling that may cause distortion.
1854 .B \-ss <time> (also see \-sb)
1855 Seek to given time position.
1856 .sp 1
1857 .I EXAMPLE:
1858 .PD 0
1859 .RSs
1860 .IPs "\-ss 56"
1861 Seeks to 56 seconds.
1862 .IPs "\-ss 01:10:00"
1863 Seeks to 1 hour 10 min.
1865 .PD 1
1868 .B \-tskeepbroken
1869 Tells MPlayer not to discard TS packets reported as broken in the stream.
1870 Sometimes needed to play corrupted MPEG-TS files.
1873 .B \-tsprobe <byte position>
1874 When playing an MPEG-TS stream, this option lets you specify how many
1875 bytes in the stream you want MPlayer to search for the desired
1876 audio and video IDs.
1879 .B \-tsprog <1\-65534>
1880 When playing an MPEG-TS stream, you can specify with this option which
1881 program (if present) you want to play.
1882 Can be used with \-vid and \-aid.
1885 .B \-tv <option1:option2:...> (TV/\:PVR only)
1886 This option tunes various properties of the TV capture module.
1887 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1888 or even 'tv://<channel_name> (see option channels for channel_name below)
1889 as a movie URL.
1890 You can also use 'tv:///<input_id>' to start watching a
1891 movie from a composite or S-Video input (see option input for details).
1892 .sp 1
1893 Available options are:
1894 .RSs
1895 .IPs noaudio
1896 no sound
1897 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1898 If signal strength reported by device is less than this value,
1899 audio and video will be muted.
1900 In most cases automute=100 will be enough.
1901 Default is 0 (automute disabled).
1902 .IPs driver=<value>
1903 See \-tv driver=help for a list of compiled-in TV input drivers.
1904 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1905 .IPs device=<value>
1906 Specify TV device (default: /dev/\:video0).
1907 .I NOTE:
1908 For the bsdbt848 driver you can provide both bktr and tuner device
1909 names separating them with a comma, tuner after
1910 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1911 .IPs input=<value>
1912 Specify input (default: 0 (TV), see console output for available inputs).
1913 .IPs freq=<value>
1914 Specify the frequency to set the tuner to (e.g.\& 511.250).
1915 Not compatible with the channels parameter.
1916 .IPs outfmt=<value>
1917 Specify the output format of the tuner with a preset value supported by the
1918 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1919 arbitrary format given as hex value.
1920 Try outfmt=help for a list of all available formats.
1921 .IPs width=<value>
1922 output window width
1923 .IPs height=<value>
1924 output window height
1925 .IPs fps=<value>
1926 framerate at which to capture video (frames per second)
1927 .IPs buffersize=<value>
1928 maximum size of the capture buffer in megabytes (default: dynamical)
1929 .IPs norm=<value>
1930 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1931 For v4l2, see the console output for a list of all available norms,
1932 also see the normid option below.
1933 .IPs "normid=<value> (v4l2 only)"
1934 Sets the TV norm to the given numeric ID.
1935 The TV norm depends on the capture card.
1936 See the console output for a list of available TV norms.
1937 .IPs channel=<value>
1938 Set tuner to <value> channel.
1939 .IPs chanlist=<value>
1940 available: argentina, australia, china-bcast, europe-east, europe-west, france,
1941 ireland, italy, japan-bcast, japan-cable, newzealand, russia, southafrica,
1942 us-bcast, us-cable, us-cable-hrc
1943 .IPs channels=<chan>\-<name>[=<norm>],<chan>\-<name>[=<norm>],...
1944 Set names for channels.
1945 .I NOTE:
1946 If <chan> is an integer greater than 1000, it will be treated as frequency (in kHz)
1947 rather than channel name from frequency table.
1949 Use _ for spaces in names (or play with quoting ;-).
1950 The channel names will then be written using OSD, and the slave commands
1951 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1952 a remote control (see LIRC).
1953 Not compatible with the frequency parameter.
1955 .I NOTE:
1956 The channel number will then be the position in the 'channels' list,
1957 beginning with 1.
1959 .I EXAMPLE:
1960 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1961 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1962 Set the image equalizer on the card.
1963 .IPs audiorate=<value>
1964 Set audio capture bitrate.
1965 .IPs forceaudio
1966 Capture audio even if there are no audio sources reported by v4l.
1967 .IPs "alsa\ "
1968 Capture from ALSA.
1969 .IPs amode=<0\-3>
1970 Choose an audio mode:
1971 .RSss
1972 0: mono
1974 1: stereo
1976 2: language 1
1978 3: language 2
1979 .REss
1980 .IPs forcechan=<1\-2>
1981 By default, the count of recorded audio channels is determined automatically
1982 by querying the audio mode from the TV card.
1983 This option allows forcing stereo/\:mono recording regardless of the amode
1984 option and the values returned by v4l.
1985 This can be used for troubleshooting when the TV card is unable to report the
1986 current audio mode.
1987 .IPs adevice=<value>
1988 Set an audio device.
1989 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1990 You must replace any ':' by a '.' in the hardware ID for ALSA.
1991 .IPs audioid=<value>
1992 Choose an audio output of the capture card, if it has more than one.
1993 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1994 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1995 These options set parameters of the mixer on the video capture card.
1996 They will have no effect, if your card does not have one.
1997 For v4l2 50 maps to the default value of the
1998 control, as reported by the driver.
1999 .IPs "gain=<0\-100> (v4l2)"
2000 Set gain control for video devices (usually webcams) to the desired
2001 value and switch off automatic control.
2002 A value of 0 enables automatic control.
2003 If this option is omitted, gain control will not be modified.
2004 .IPs immediatemode=<bool>
2005 A value of 0 means capture and buffer audio and video together
2006 (default for MEncoder).
2007 A value of 1 (default for MPlayer) means to do video capture only and let the
2008 audio go through a loopback cable from the TV card to the sound card.
2009 .IPs mjpeg
2010 Use hardware MJPEG compression (if the card supports it).
2011 When using this option, you do not need to specify the width and height
2012 of the output window, because MPlayer will determine it automatically
2013 from the decimation value (see below).
2014 .IPs decimation=<1|2|4>
2015 choose the size of the picture that will be compressed by hardware
2016 MJPEG compression:
2017 .RSss
2018 1: full size
2019     704x576    PAL
2020     704x480    NTSC
2022 2: medium size
2023     352x288    PAL
2024     352x240    NTSC
2026 4: small size
2027     176x144    PAL
2028     176x120    NTSC
2029 .REss
2030 .IPs quality=<0\-100>
2031 Choose the quality of the JPEG compression
2032 (< 60 recommended for full size).
2033 .IPs tdevice=<value>
2034 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
2035 .IPs tformat=<format>
2036 Specify TV teletext display format (default: 0):
2037 .RSss
2038 0: opaque
2040 1: transparent
2042 2: opaque with inverted colors
2044 3: transparent with inverted colors
2045 .REss
2046 .IPs tpage=<100\-899>
2047 Specify initial TV teletext page number (default: 100).
2048 .IPs tlang=<\-1\-127>
2049 Specify default teletext language code (default: 0), which will be used
2050 as primary language until a type 28 packet is received.
2051 Useful when the teletext system uses a non-latin character set, but language
2052 codes are not transmitted via teletext type 28 packets for some reason.
2053 To see a list of supported language codes set this option to \-1.
2054 .IPs "hidden_video_renderer (dshow only)"
2055 Terminate stream with video renderer instead of Null renderer (default: off).
2056 Will help if video freezes but audio does not.
2057 .I NOTE:
2058 May not work with \-vo directx and \-vf crop combination.
2059 .IPs "hidden_vp_renderer (dshow only)"
2060 Terminate VideoPort pin stream with video renderer
2061 instead of removing it from the graph (default: off).
2062 Useful if your card has a VideoPort pin and video is choppy.
2063 .I NOTE:
2064 May not work with \-vo directx and \-vf crop combination.
2065 .IPs "system_clock (dshow only)"
2066 Use the system clock as sync source instead of the default graph clock
2067 (usually the clock from one of the live sources in graph).
2068 .IPs "normalize_audio_chunks (dshow only)"
2069 Create audio chunks with a time length equal to
2070 video frame time length (default: off).
2071 Some audio cards create audio chunks about 0.5s in size, resulting in
2072 choppy video when using immediatemode=0.
2076 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
2077 Tune the TV channel scanner.
2078 MPlayer will also print value for "-tv channels=" option,
2079 including existing and just found channels.
2080 .sp 1
2081 Available suboptions are:
2082 .RSs
2083 .IPs autostart
2084 Begin channel scanning immediately after startup (default: disabled).
2085 .IPs period=<0.1\-2.0>
2086 Specify delay in seconds before switching to next channel (default: 0.5).
2087 Lower values will cause faster scanning, but can detect
2088 inactive TV channels as active.
2089 .IPs threshold=<1\-100>
2090 Threshold value for the signal strength (in percent), as reported
2091 by the device (default: 50).
2092 A signal strength higher than this value will indicate that the
2093 currently scanning channel is active.
2097 .B \-user <username> (also see \-passwd) (network only)
2098 Specify username for HTTP authentication.
2101 .B \-user\-agent <string>
2102 Use <string> as user agent for HTTP streaming.
2105 .B \-vid <ID>
2106 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2107 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
2108 (if present) with the chosen video stream.
2111 .B \-vivo <suboption> (DEBUG CODE)
2112 Force audio parameters for the VIVO demuxer (for debugging purposes).
2113 FIXME: Document this.
2117 .SH "OSD/SUBTITLE OPTIONS"
2118 .I NOTE:
2119 Also see \-vf expand.
2122 .B \-ass (FreeType only)
2123 Turn on SSA/ASS subtitle rendering.
2124 With this option, libass will be used for SSA/ASS
2125 external subtitles and Matroska tracks.
2127 .I NOTE:
2128 Unlike normal OSD, libass uses fontconfig by default. To disable it, use
2129 \-nofontconfig.
2132 .B \-ass\-border\-color <value>
2133 Sets the border (outline) color for text subtitles.
2134 The color format is RRGGBBAA.
2137 .B \-ass\-bottom\-margin <value>
2138 Adds a black band at the bottom of the frame.
2139 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2142 .B \-ass\-color <value>
2143 Sets the color for text subtitles.
2144 The color format is RRGGBBAA.
2147 .B \-ass\-font\-scale <value>
2148 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2151 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2152 Override some style or script info parameters.
2154 .I EXAMPLE:
2155 .PD 0
2156 .RSs
2157 \-ass\-force\-style FontName=Arial,Default.Bold=1
2159 \-ass\-force\-style PlayResY=768
2161 .PD 1
2164 .B \-ass\-hinting <type>
2165 Set hinting type.
2166 <type> can be:
2167 .PD 0
2168 .RSs
2169 .IPs 0
2170 no hinting
2171 .IPs 1
2172 FreeType autohinter, light mode
2173 .IPs 2
2174 FreeType autohinter, normal mode
2175 .IPs 3
2176 font native hinter
2177 .IPs "0-3 + 4"
2178 The same, but hinting will only be performed if the OSD is rendered at
2179 screen resolution and will therefore not be scaled.
2181 .RSs
2182 The default value is 5 (use light hinter for unscaled OSD and no hinting otherwise).
2184 .PD 1
2187 .B \-ass\-line\-spacing <value>
2188 Set line spacing value for SSA/ASS renderer.
2191 .B \-ass\-styles <filename>
2192 Load all SSA/ASS styles found in the specified file and use them for
2193 rendering text subtitles.
2194 The syntax of the file is exactly like the
2195 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2198 .B \-ass\-top\-margin <value>
2199 Adds a black band at the top of the frame.
2200 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2203 .B \-ass\-use\-margins
2204 Enables placing toptitles and subtitles in black borders when they
2205 are available.
2208 .B \-dumpjacosub (MPlayer only)
2209 Convert the given subtitle (specified with the \-sub option) to the time-based
2210 JACOsub subtitle format.
2211 Creates a dumpsub.js file in the current directory.
2214 .B \-dumpmicrodvdsub (MPlayer only)
2215 Convert the given subtitle (specified with the \-sub option) to the
2216 MicroDVD subtitle format.
2217 Creates a dumpsub.sub file in the current directory.
2220 .B \-dumpmpsub (MPlayer only)
2221 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2222 subtitle format, MPsub.
2223 Creates a dump.mpsub file in the current directory.
2226 .B \-dumpsami (MPlayer only)
2227 Convert the given subtitle (specified with the \-sub option) to the time-based
2228 SAMI subtitle format.
2229 Creates a dumpsub.smi file in the current directory.
2232 .B \-dumpsrtsub (MPlayer only)
2233 Convert the given subtitle (specified with the \-sub option) to the time-based
2234 SubViewer (SRT) subtitle format.
2235 Creates a dumpsub.srt file in the current directory.
2237 .I NOTE:
2238 Some broken hardware players choke on SRT subtitle files with Unix
2239 line endings.
2240 If you are unlucky enough to have such a box, pass your subtitle
2241 files through unix2dos or a similar program to replace Unix line
2242 endings with DOS/Windows line endings.
2245 .B \-dumpsub (MPlayer only) (BETA CODE)
2246 Dumps the subtitle substream from VOB streams.
2247 Also see the \-dump*sub and \-vobsubout* options.
2250 .B \-noembeddedfonts
2251 Disables use of fonts embedded in Matroska containers and ASS scripts (default: enabled).
2252 These fonts can be used for SSA/ASS subtitle
2253 rendering (\-ass option).
2256 .B \-ffactor <number>
2257 Resample the font alphamap.
2258 Can be:
2259 .PD 0
2260 .RSs
2261 .IPs 0
2262 plain white fonts
2263 .IPs 0.75
2264 very narrow black outline (default)
2265 .IPs 1
2266 narrow black outline
2267 .IPs 10
2268 bold black outline
2270 .PD 1
2273 .B \-flip\-hebrew (FriBiDi only)
2274 Turns on flipping subtitles using FriBiDi.
2277 .B \-noflip\-hebrew\-commas
2278 Change FriBiDi's assumptions about the placements of commas in subtitles.
2279 Use this if commas in subtitles are shown at the start of a sentence
2280 instead of at the end.
2283 .B \-font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
2284 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2285 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2286 ~/.mplayer/\:subfont.ttf).
2288 .I NOTE:
2289 With FreeType, this option determines the path to the text font file.
2290 With Fontconfig, this option determines the Fontconfig font pattern.
2291 .sp 1
2292 .I EXAMPLE:
2293 .PD 0
2294 .RSs
2295 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2297 \-font ~/\:.mplayer/\:arialuni.ttf
2299 \-font 'Bitstream Vera Sans'
2301 \-font 'Bitstream Vera Sans:style=Bold'
2303 .PD 1
2306 .B \-fontconfig (fontconfig only)
2307 Enables the usage of fontconfig managed fonts.
2309 .I NOTE:
2310 By default fontconfig is used for libass-rendered subtitles and not used for
2311 OSD. With \-fontconfig it is used for both libass and OSD, with \-nofontconfig
2312 it is not used at all.
2315 .B \-forcedsubsonly
2316 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2317 \-slang.
2320 .B \-fribidi\-charset <charset name> (FriBiDi only)
2321 Specifies the character set that will be passed to FriBiDi when
2322 decoding non-UTF-8 subtitles (default: ISO8859-8).
2325 .B \-ifo <VOBsub IFO file>
2326 Indicate the file that will be used to load palette and frame size for VOBsub
2327 subtitles.
2330 .B \-noautosub
2331 Turns off automatic subtitle file loading.
2334 .B \-osd\-duration <time>
2335 Set the duration of the OSD messages in ms (default: 1000).
2338 .B \-osdlevel <0\-3> (MPlayer only)
2339 Specifies which mode the OSD should start in.
2340 .PD 0
2341 .RSs
2342 .IPs 0
2343 subtitles only
2344 .IPs 1
2345 volume + seek (default)
2346 .IPs 2
2347 volume + seek + timer + percentage
2348 .IPs 3
2349 volume + seek + timer + percentage + total time
2351 .PD 1
2354 .B \-overlapsub
2355 Allows the next subtitle to be displayed while the current one is
2356 still visible (default is to enable the support only for specific
2357 formats).
2360 .B \-sid <ID> (also see \-slang, \-vobsubid)
2361 Display the subtitle stream specified by <ID> (0\-31).
2362 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2363 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2366 .B \-nosub
2367 Disables any otherwise auto-selected internal subtitles (as e.g.\& the Matroska/mkv
2368 demuxer supports).
2369 Use \-noautosub to disable the loading of external subtitle files.
2372 .B \-slang <language code[,language code,...]> (also see \-sid)
2373 Specify a priority list of subtitle languages to use.
2374 Different container formats employ different language codes.
2375 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2376 three letter language codes while OGM uses a free-form identifier.
2377 MPlayer prints the available languages when run in verbose (\-v) mode.
2378 .sp 1
2379 .I EXAMPLE:
2380 .PD 0
2381 .RSs
2382 .IPs "mplayer dvd://1 \-slang hu,en"
2383 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2384 Hungarian is not available.
2385 .IPs "mplayer \-slang jpn example.mkv"
2386 Plays a Matroska file with Japanese subtitles.
2388 .PD 1
2391 .B \-spuaa <mode>
2392 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2393 A value of 16 may be added to <mode> in order to force scaling even
2394 when original and scaled frame size already match.
2395 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2396 Available modes are:
2397 .PD 0
2398 .RSs
2399 .IPs 0
2400 none (fastest, very ugly)
2401 .IPs 1
2402 approximate (broken?)
2403 .IPs 2
2404 full (slow)
2405 .IPs 3
2406 bilinear (default, fast and not too bad)
2407 .IPs 4
2408 uses swscaler gaussian blur (looks very good)
2410 .PD 1
2413 .B \-spualign <\-1\-2>
2414 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2415 .PD 0
2416 .RSs
2417 .IPs "\-1"
2418 original position
2419 .IPs " 0"
2420 Align at top (original behavior, default).
2421 .IPs " 1"
2422 Align at center.
2423 .IPs " 2"
2424 Align at bottom.
2426 .PD 1
2429 .B \-spugauss <0.0\-3.0>
2430 Variance parameter of gaussian used by \-spuaa 4.
2431 Higher means more blur (default: 1.0).
2434 .B \-sub <subtitlefile1,subtitlefile2,...>
2435 Use/\:display these subtitle files.
2436 Only one file can be displayed at the same time.
2439 .B \-sub\-bg\-alpha <0\-255>
2440 Specify the alpha channel value for subtitles and OSD backgrounds.
2441 Big values mean more transparency.
2442 0 means completely transparent.
2445 .B \-sub\-bg\-color <0\-255>
2446 Specify the color value for subtitles and OSD backgrounds.
2447 Currently subtitles are grayscale so this value is equivalent to the
2448 intensity of the color.
2449 255 means white and 0 black.
2452 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2453 Force subtitle demuxer type for \-subfile.
2454 Use a '+' before the name to force it, this will skip some checks!
2455 Give the demuxer name as printed by \-sub\-demuxer help.
2456 For backward compatibility it also accepts the demuxer ID as defined in
2457 subreader.h.
2460 .B \-sub\-fuzziness <mode>
2461 Adjust matching fuzziness when searching for subtitles:
2462 .PD 0
2463 .RSs
2464 .IPs 0
2465 exact match
2466 .IPs 1
2467 Load all subs containing movie name.
2468 .IPs 2
2469 Load all subs in the current directory.
2471 .PD 1
2474 .B \-sub\-no\-text\-pp
2475 Disables any kind of text post processing done after loading the subtitles.
2476 Used for debug purposes.
2479 .B \-subalign <0\-2>
2480 Specify which edge of the subtitles should be aligned at the height
2481 given by \-subpos.
2482 .PD 0
2483 .RSs
2484 .IPs 0
2485 Align subtitle top edge (original behavior).
2486 .IPs 1
2487 Align subtitle center.
2488 .IPs 2
2489 Align subtitle bottom edge (default).
2491 .PD 1
2494 .B "\-subcc \ "
2495 Display DVD Closed Caption (CC) subtitles.
2496 These are
2497 .B not
2498 the VOB subtitles, these are special ASCII subtitles for the
2499 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2500 CC subtitles have not been spotted on DVDs from other regions so far.
2503 .B \-subcp <codepage> (iconv only)
2504 If your system supports iconv(3), you can use this option to
2505 specify the subtitle codepage.
2506 .sp 1
2507 .I EXAMPLE:
2508 .PD 0
2509 .RSs
2510 \-subcp latin2
2512 \-subcp cp1250
2514 .PD 1
2517 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2518 You can specify your language using a two letter language code to
2519 make ENCA detect the codepage automatically.
2520 If unsure, enter anything and watch mplayer \-v output for available
2521 languages.
2522 Fallback codepage specifies the codepage to use, when autodetection fails.
2523 .sp 1
2524 .I EXAMPLE:
2525 .PD 0
2526 .RSs
2527 .IPs "\-subcp enca:cs:latin2"
2528 Guess the encoding, assuming the subtitles are Czech, fall back on
2529 latin 2, if the detection fails.
2530 .IPs "\-subcp enca:pl:cp1250"
2531 Guess the encoding for Polish, fall back on cp1250.
2533 .PD 1
2536 .B \-subdelay <sec>
2537 Delays subtitles by <sec> seconds.
2538 Can be negative.
2541 .B \-subfile <filename> (BETA CODE)
2542 Currently useless.
2543 Same as \-audiofile, but for subtitle streams (OggDS?).
2546 .B \-subfont <path to font (FreeType), font pattern (Fontconfig)> (FreeType only)
2547 Sets the subtitle font (see \-font).
2548 If no \-subfont is given, \-font is used.
2551 .B \-subfont\-autoscale <0\-3> (FreeType only)
2552 Sets the autoscale mode.
2554 .I NOTE:
2555 0 means that text scale and OSD scale are font heights in points.
2556 .sp 1
2557 The mode can be:
2558 .sp 1
2559 .PD 0
2560 .RSs
2561 .IPs 0
2562 no autoscale
2563 .IPs 1
2564 proportional to movie height
2565 .IPs 2
2566 proportional to movie width
2567 .IPs 3
2568 proportional to movie diagonal (default)
2570 .PD 1
2573 .B \-subfont\-blur <0\-8> (FreeType only)
2574 Sets the font blur radius (default: 2).
2577 .B \-subfont\-encoding <value> (FreeType only)
2578 Sets the font encoding.
2579 When set to 'unicode', all the glyphs from the font file will be rendered and
2580 unicode will be used (default: unicode).
2583 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2584 Sets the autoscale coefficient of the OSD elements (default: 6).
2587 .B \-subfont\-outline <0\-8> (FreeType only)
2588 Sets the font outline thickness (default: 2).
2591 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2592 Sets the subtitle text autoscale coefficient as percentage of the
2593 screen size (default: 5).
2596 .B \-subfps <rate>
2597 Specify the framerate of the subtitle file (default: movie fps).
2599 .I NOTE:
2600 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2601 slows them down for time-based ones.
2604 .B \-subpos <0\-100> (useful with \-vf expand)
2605 Specify the position of subtitles on the screen.
2606 The value is the vertical position of the subtitle in % of the screen height.
2609 .B \-subwidth <10\-100>
2610 Specify the maximum width of subtitles on the screen.
2611 Useful for TV-out.
2612 The value is the width of the subtitle in % of the screen width.
2615 .B \-noterm\-osd
2616 Disable the display of OSD messages on the console when no video output is
2617 available.
2620 .B \-term\-osd\-esc <escape sequence>
2621 Specify the escape sequence to use before writing an OSD message on the
2622 console.
2623 The escape sequence should move the pointer to the beginning of the line
2624 used for the OSD and clear it (default: ^[[A\\r^[[K).
2627 .B \-unicode
2628 Tells MPlayer to handle the subtitle file as unicode.
2631 .B \-unrarexec <path to unrar executable> (not supported on MingW)
2632 Specify the path to the unrar executable so MPlayer can use it to access
2633 rar-compressed VOBsub files (default: not set, so the feature is off).
2634 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2637 .B "\-utf8 \ \ "
2638 Tells MPlayer to handle the subtitle file as UTF-8.
2641 .B \-vobsub <VOBsub file without extension>
2642 Specify a VOBsub file to use for subtitles.
2643 Has to be the full pathname without extension, i.e.\& without
2644 the '.idx', '.ifo' or '.sub'.
2647 .B \-vobsubid <0\-31>
2648 Specify the VOBsub subtitle ID.
2652 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2655 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2656 Override audio driver/\:card buffer size detection.
2659 .B \-format <format> (also see the format audio filter)
2660 Select the sample format used for output from the audio filter
2661 layer to the sound card.
2662 The values that <format> can adopt are listed below in the
2663 description of the format audio filter.
2666 .B \-mixer <device>
2667 Use a mixer device different from the default /dev/\:mixer.
2668 For ALSA this is the mixer name.
2671 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2672 This option will tell MPlayer to use a different channel for controlling
2673 volume than the default PCM.
2674 Options for OSS include
2675 .B vol, pcm, line.
2676 For a complete list of options look for SOUND_DEVICE_NAMES in
2677 /usr/\:include/\:linux/\:soundcard.h.
2678 For ALSA you can use the names e.g.\& alsamixer displays, like
2679 .B Master, Line, PCM.
2681 .I NOTE:
2682 ALSA mixer channel names followed by a number must be specified in the
2683 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2684 be converted to
2685 .BR PCM,1 .
2688 .B \-softvol
2689 Force the use of the software mixer, instead of using the sound card
2690 mixer.
2693 .B \-softvol\-max <10.0\-10000.0>
2694 Set the maximum amplification level in percent (default: 110).
2695 A value of 200 will allow you to adjust the volume up to a maximum of
2696 double the current level.
2697 With values below 100 the initial volume (which is 100%) will be above
2698 the maximum, which e.g.\& the OSD cannot display correctly.
2701 .B \-volstep <0\-100>
2702 Set the step size of mixer volume changes in percent of the whole range
2703 (default: 3).
2706 .B \-volume <-1\-100> (also see \-af volume)
2707 Set the startup volume in the mixer, either hardware or software (if
2708 used with \-softvol).
2709 A value of -1 (the default) will not change the volume.
2713 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2714 Audio output drivers are interfaces to different audio output facilities.
2715 The syntax is:
2718 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2719 Specify a priority list of audio output drivers to be used.
2721 If the list has a trailing ',' MPlayer will fall back on drivers not
2722 contained in the list.
2723 Suboptions are optional and can mostly be omitted.
2725 .I NOTE:
2726 See \-ao help for a list of compiled-in audio output drivers.
2727 .sp 1
2728 .I EXAMPLE:
2729 .PD 0
2730 .RSs
2731 .IPs "\-ao alsa,oss,"
2732 Try the ALSA driver, then the OSS driver, then others.
2733 .IPs "\-ao alsa:noblock:device=hw=0.3"
2734 Sets noblock-mode and the device-name as first card, fourth device.
2736 .PD 1
2737 .sp 1
2738 Available audio output drivers are:
2741 .B "alsa\ \ \ "
2742 ALSA 0.9/1.x audio output driver
2743 .PD 0
2744 .RSs
2745 .IPs noblock
2746 Sets noblock-mode.
2747 .IPs device=<device>
2748 Sets the device name.
2749 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2750 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2751 you really know how to set it correctly.
2753 .PD 1
2756 .B "alsa5\ \ "
2757 ALSA 0.5 audio output driver
2760 .B "oss\ \ \ \ "
2761 OSS audio output driver
2762 .PD 0
2763 .RSs
2764 .IPs <dsp-device>
2765 Sets the audio output device (default: /dev/\:dsp).
2766 .IPs <mixer-device>
2767 Sets the audio mixer device (default: /dev/\:mixer).
2768 .IPs <mixer-channel>
2769 Sets the audio mixer channel (default: pcm).
2771 .PD 1
2774 .B sdl (SDL only)
2775 highly platform independent SDL (Simple Directmedia Layer) library
2776 audio output driver
2777 .PD 0
2778 .RSs
2779 .IPs <driver>
2780 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2782 .PD 1
2785 .B "arts\ \ \ "
2786 audio output through the aRts daemon
2789 .B "esd\ \ \ \ "
2790 audio output through the ESD daemon
2791 .PD 0
2792 .RSs
2793 .IPs <server>
2794 Explicitly choose the ESD server to use (default: localhost).
2796 .PD 1
2799 .B "jack\ \ \ \ "
2800 audio output through JACK (Jack Audio Connection Kit)
2801 .PD 0
2802 .RSs
2803 .IPs port=<name>
2804 Connects to the ports with the given name (default: physical ports).
2805 .IPs name=<client name>
2806 Client name that is passed to JACK (default: MPlayer [<PID>]).
2807 Useful if you want to have certain connections established automatically.
2808 .IPs (no)estimate
2809 Estimate the audio delay, supposed to make the video playback smoother
2810 (default: enabled).
2811 .IPs (no)autostart
2812 Automatically start jackd if necessary (default: disabled).
2813 Note that this seems unreliable and will spam stdout with server messages.
2815 .PD 1
2818 .B "nas\ \ \ \ "
2819 audio output through NAS
2822 .B coreaudio (Mac OS X only)
2823 native Mac OS X audio output driver
2824 .PD 0
2825 .RSs
2826 .IPs device_id=<id>
2827 ID of output device to use (0 = default device)
2828 .IPs help
2829 List all available output devices with their IDs.
2831 .PD 1
2834 .B "openal\ "
2835 Experimental OpenAL audio output driver
2838 .B "pulse\ \ "
2839 PulseAudio audio output driver
2840 .PD 0
2841 .RSs
2842 .IPs "[<host>][:<output sink>]"
2843 Specify the host and optionally output sink to use.
2844 An empty <host> string uses a local connection, "localhost"
2845 uses network transfer (most likely not what you want).
2847 .PD 1
2850 .B sgi (SGI only)
2851 native SGI audio output driver
2852 .PD 0
2853 .RSs
2854 .IPs "<output device name>"
2855 Explicitly choose the output device/\:interface to use
2856 (default: system-wide default).
2857 For example, 'Analog Out' or 'Digital Out'.
2859 .PD 1
2862 .B sun (Sun only)
2863 native Sun audio output driver
2864 .PD 0
2865 .RSs
2866 .IPs <device>
2867 Explicitly choose the audio device to use (default: /dev/\:audio).
2869 .PD 1
2872 .B win32 (Windows only)
2873 native Windows waveout audio output driver
2876 .B dsound (Windows only)
2877 DirectX DirectSound audio output driver
2878 .PD 0
2879 .RSs
2880 .IPs device=<devicenum>
2881 Sets the device number to use.
2882 Playing a file with \-v will show a list of available devices.
2884 .PD 1
2887 .B kai (OS/2 only)
2888 OS/2 KAI audio output driver
2889 .PD 0
2890 .RSs
2891 .IPs uniaud
2892 Force UNIAUD mode.
2893 .IPs dart
2894 Force DART mode.
2895 .IPs (no)share
2896 Open audio in shareable or exclusive mode.
2897 .IPs bufsize=<size>
2898 Set buffer size to <size> in samples (default: 2048).
2900 .PD 1
2903 .B dart (OS/2 only)
2904 OS/2 DART audio output driver
2905 .PD 0
2906 .RSs
2907 .IPs (no)share
2908 Open DART in shareable or exclusive mode.
2909 .IPs bufsize=<size>
2910 Set buffer size to <size> in samples (default: 2048).
2912 .PD 1
2915 .B dxr2 (also see \-dxr2) (DXR2 only)
2916 Creative DXR2 specific output driver
2919 .B ivtv (IVTV only)
2920 IVTV specific MPEG audio output driver.
2921 Works with \-ac hwmpa only.
2924 .B v4l2 (requires Linux 2.6.22+ kernel)
2925 Audio output driver for V4L2 cards with hardware MPEG decoder.
2928 .B mpegpes (DVB only)
2929 Audio output driver for DVB cards that writes the output to an MPEG-PES
2930 file if no DVB card is installed.
2931 .PD 0
2932 .RSs
2933 .IPs card=<1\-4>
2934 DVB card to use if more than one card is present.
2935 If not specified MPlayer will search the first usable card.
2936 .IPs file=<filename>
2937 output filename
2939 .PD 1
2942 .B "null\ \ \ "
2943 Produces no audio output but maintains video playback speed.
2944 Use \-nosound for benchmarking.
2947 .B "pcm\ \ \ \ "
2948 raw PCM/wave file writer audio output
2949 .PD 0
2950 .RSs
2951 .IPs (no)waveheader
2952 Include or do not include the wave header (default: included).
2953 When not included, raw PCM will be generated.
2954 .IPs file=<filename>
2955 Write the sound to <filename> instead of the default
2956 audiodump.wav.
2957 If nowaveheader is specified, the default is audiodump.pcm.
2958 .IPs "fast\ "
2959 Try to dump faster than realtime.
2960 Make sure the output does not get truncated (usually with
2961 "Too many video packets in buffer" message).
2962 It is normal that you get a "Your system is too SLOW to play this!" message.
2964 .PD 1
2967 .B "plugin\ \ "
2968 plugin audio output driver
2972 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
2975 .B \-adapter <value>
2976 Set the graphics card that will receive the image.
2977 You can get a list of available cards when you run this option with \-v.
2978 Currently only works with the directx video output driver.
2981 .B \-bpp <depth>
2982 Override the autodetected color depth.
2983 Only supported by the fbdev, dga, svga, vesa video output drivers.
2986 .B \-border
2987 Play movie with window border and decorations.
2988 Since this is on by default, use \-noborder to disable the standard window
2989 decorations.
2992 .B \-brightness <\-100\-100>
2993 Adjust the brightness of the video signal (default: 0).
2994 Not supported by all video output drivers.
2997 .B \-contrast <\-100\-100>
2998 Adjust the contrast of the video signal (default: 0).
2999 Not supported by all video output drivers.
3002 .B \-display <name> (X11 only)
3003 Specify the hostname and display number of the X server you want to display
3005 .sp 1
3006 .I EXAMPLE:
3007 .PD 0
3008 .RSs
3009 \-display xtest.localdomain:0
3011 .PD 1
3014 .B "\-dr \ \ \ "
3015 Turns on direct rendering (not supported by all codecs and video outputs)
3017 .I WARNING:
3018 May cause OSD/SUB corruption!
3021 .B \-dxr2 <option1:option2:...>
3022 This option is used to control the dxr2 video output driver.
3023 .RSs
3024 .IPs ar-mode=<value>
3025 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
3026 .IPs iec958-encoded
3027 Set iec958 output mode to encoded.
3028 .IPs iec958-decoded
3029 Set iec958 output mode to decoded (default).
3030 .IPs macrovision=<value>
3031 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
3032 3 = agc 4 colorstripe)
3033 .IPs "mute\ "
3034 mute sound output
3035 .IPs unmute
3036 unmute sound output
3037 .IPs ucode=<value>
3038 path to the microcode
3041 .sp 1
3042 .I TV output
3044 .RSs
3045 .IPs 75ire
3046 enable 7.5 IRE output mode
3047 .IPs no75ire
3048 disable 7.5 IRE output mode (default)
3049 .IPs "bw\ \ \ "
3050 b/w TV output
3051 .IPs color
3052 color TV output (default)
3053 .IPs interlaced
3054 interlaced TV output (default)
3055 .IPs nointerlaced
3056 disable interlaced TV output
3057 .IPs norm=<value>
3058 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
3059 .IPs square-pixel
3060 set pixel mode to square
3061 .IPs ccir601-pixel
3062 set pixel mode to ccir601
3065 .sp 1
3066 .I overlay
3068 .RSs
3069 .IPs cr-left=<0\-500>
3070 Set the left cropping value (default: 50).
3071 .IPs cr-right=<0\-500>
3072 Set the right cropping value (default: 300).
3073 .IPs cr-top=<0\-500>
3074 Set the top cropping value (default: 0).
3075 .IPs cr-bottom=<0\-500>
3076 Set the bottom cropping value (default: 0).
3077 .IPs ck-[r|g|b]=<0\-255>
3078 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
3079 .IPs ck-[r|g|b]min=<0\-255>
3080 minimum value for the respective color key
3081 .IPs ck-[r|g|b]max=<0\-255>
3082 maximum value for the respective color key
3083 .IPs ignore-cache
3084 Ignore cached overlay settings.
3085 .IPs update-cache
3086 Update cached overlay settings.
3087 .IPs ol-osd
3088 Enable overlay onscreen display.
3089 .IPs nool-osd
3090 Disable overlay onscreen display (default).
3091 .IPs ol[h|w|x|y]-cor=<\-20\-20>
3092 Adjust the overlay size (h,w) and position (x,y) in case it does not
3093 match the window perfectly (default: 0).
3094 .IPs overlay
3095 Activate overlay (default).
3096 .IPs nooverlay
3097 Activate TV-out.
3098 .IPs overlay-ratio=<1\-2500>
3099 Tune the overlay (default: 1000).
3103 .B \-fbmode <modename> (\-vo fbdev only)
3104 Change video mode to the one that is labeled as <modename> in
3105 /etc/\:fb.modes.
3107 .I NOTE:
3108 VESA framebuffer does not support mode changing.
3111 .B \-fbmodeconfig <filename> (\-vo fbdev only)
3112 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
3115 .B \-force\-window\-position
3116 Forcefully move MPlayer's video output window to default location whenever
3117 there is a change in video parameters, video stream or file.
3118 This used to be the default behavior.
3119 Currently only affects X11 VOs.
3122 .B \-fs (also see \-zoom)
3123 Fullscreen playback (centers movie, and paints black bands around it).
3124 Not supported by all video output drivers.
3127 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3128 Try this option if you still experience fullscreen problems.
3131 .B \-fstype <type1,type2,...> (X11 only)
3132 Specify a priority list of fullscreen modes to be used.
3133 You can negate the modes by prefixing them with '\-'.
3134 If you experience problems like the fullscreen window being covered
3135 by other windows try using a different order.
3137 .I NOTE:
3138 See \-fstype help for a full list of available modes.
3139 .sp 1
3140 The available types are:
3141 .sp 1
3142 .PD 0
3143 .RSs
3144 .IPs above
3145 Use the _NETWM_STATE_ABOVE hint if available.
3146 .IPs below
3147 Use the _NETWM_STATE_BELOW hint if available.
3148 .IPs fullscreen
3149 Use the _NETWM_STATE_FULLSCREEN hint if available.
3150 .IPs layer
3151 Use the _WIN_LAYER hint with the default layer.
3152 .IPs layer=<0...15>
3153 Use the _WIN_LAYER hint with the given layer number.
3154 .IPs netwm
3155 Force NETWM style.
3156 .IPs "none\ "
3157 Clear the list of modes; you can add modes to enable afterward.
3158 .IPs stays_on_top
3159 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3160 .REss
3161 .sp 1
3163 .I EXAMPLE:
3165 .PD 0
3166 .RSs
3167 .IPs layer,stays_on_top,above,fullscreen
3168 Default order, will be used as a fallback if incorrect or
3169 unsupported modes are specified.
3170 .IPs \-fullscreen
3171 Fixes fullscreen switching on OpenBox 1.x.
3173 .PD 1
3176 .B \-geometry x[%][:y[%]] or [WxH][+-x+-y]
3177 Adjust where the output is on the screen initially.
3178 The x and y specifications are in pixels measured from the top-left of the
3179 screen to the top-left of the image being displayed, however if a percentage
3180 sign is given after the argument it turns the value into a percentage of the
3181 screen size in that direction.
3182 It also supports the standard X11 \-geometry option format, in which e.g.
3183 +10-50 means "place 10 pixels from the left border and 50 pixels from the lower
3184 border" and "--20+-10" means "place 20 pixels beyond the right and 10 pixels
3185 beyond the top border".
3186 If an external window is specified using the \-wid option, then the x and
3187 y coordinates are relative to the top-left corner of the window rather
3188 than the screen.
3189 The coordinates are relative to the screen given with \-xineramascreen for
3190 the video output drivers that fully support \-xineramascreen (direct3d, gl, gl2,
3191 vdpau, x11, xv, xvmc, corevideo).
3193 .I NOTE:
3194 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
3195 gl, gl2, directx, fbdev, tdfxfb and corevideo video output drivers.
3196 .sp 1
3197 .I EXAMPLE:
3198 .PD 0
3199 .RSs
3200 .IPs 50:40
3201 Places the window at x=50, y=40.
3202 .IPs 50%:50%
3203 Places the window in the middle of the screen.
3204 .IPs "100%\ "
3205 Places the window at the middle of the right edge of the screen.
3206 .IPs 100%:100%
3207 Places the window at the bottom right corner of the screen.
3209 .PD 1
3212 .B \-hue <\-100\-100>
3213 Adjust the hue of the video signal (default: 0).
3214 You can get a colored negative of the image with this option.
3215 Not supported by all video output drivers.
3218 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3219 Specify the dotclock or pixelclock range of the monitor.
3222 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3223 Specify the horizontal frequency range of the monitor.
3226 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3227 Specify the vertical frequency range of the monitor.
3230 .B \-monitoraspect <ratio> (also see \-aspect)
3231 Set the aspect ratio of your monitor or TV screen.
3232 A value of 0 disables a previous setting (e.g.\& in the config file).
3233 Overrides the \-monitorpixelaspect setting if enabled.
3234 .sp 1
3235 .I EXAMPLE:
3236 .PD 0
3237 .RSs
3238 \-monitoraspect 4:3  or 1.3333
3240 \-monitoraspect 16:9 or 1.7777
3242 .PD 1
3245 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3246 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3247 A value of 1 means square pixels
3248 (correct for (almost?) all LCDs).
3251 .B \-name (X11 only)
3252 Set the window class name.
3255 .B \-nodouble
3256 Disables double buffering, mostly for debugging purposes.
3257 Double buffering fixes flicker by storing two frames in memory, and
3258 displaying one while decoding another.
3259 It can affect OSD negatively, but often removes OSD flickering.
3262 .B \-nograbpointer
3263 Do not grab the mouse pointer after a video mode change (\-vm).
3264 Useful for multihead setups.
3267 .B \-nokeepaspect
3268 Do not keep window aspect ratio when resizing windows.
3269 By default MPlayer tries to keep the correct video aspect ratio by
3270 instructing the window manager to maintain window aspect when resizing,
3271 and by adding black bars if the window manager nevertheless allows
3272 window shape to change.
3273 This option disables window manager aspect hints and scales the video
3274 to completely fill the window without regard for aspect ratio.
3277 .B "\-ontop\ "
3278 Makes the player window stay on top of other windows.
3279 Supported by video output drivers which use X11, except SDL,
3280 as well as directx, corevideo, quartz, ggi and gl2.
3283 .B \-panscan <0.0\-1.0>
3284 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3285 movie to make it fit a 4:3 display without black bands).
3286 The range controls how much of the image is cropped.
3287 Only works with the xv, xmga, mga, gl, gl2, quartz, corevideo and xvidix
3288 video output drivers.
3290 .I NOTE:
3291 Values between \-1 and 0 are allowed as well, but highly experimental
3292 and may crash or worse.
3293 Use at your own risk!
3296 .B \-panscanrange <\-19.0\-99.0> (experimental)
3297 Change the range of the pan-and-scan functionality (default: 1).
3298 Positive values mean multiples of the default range.
3299 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3300 E.g.\& \-panscanrange \-3 allows a zoom factor of up to 4.
3301 This feature is experimental.
3302 Do not report bugs unless you are using \-vo gl.
3305 .B \-refreshrate <Hz>
3306 Set the monitor refreshrate in Hz.
3307 Currently only supported by \-vo directx combined with the \-vm option.
3310 .B \-rootwin
3311 Play movie in the root window (desktop background).
3312 Desktop background images may cover the movie window, though.
3313 Only works with the x11, xv, xmga, xvidix, quartz, corevideo and directx video output drivers.
3316 .B \-saturation <\-100\-100>
3317 Adjust the saturation of the video signal (default: 0).
3318 You can get grayscale output with this option.
3319 Not supported by all video output drivers.
3322 .B \-screenh <pixels>
3323 Specify the screen height for video output drivers which
3324 do not know the screen resolution like fbdev, x11 and TV-out.
3327 .B \-screenw <pixels>
3328 Specify the screen width for video output drivers which
3329 do not know the screen resolution like fbdev, x11 and TV-out.
3332 .B \-stop\-xscreensaver (X11 only)
3333 Turns off xscreensaver at startup and turns it on again on exit.
3334 If your screensaver supports neither the XSS nor XResetScreenSaver
3335 API please use \-heartbeat\-cmd instead.
3338 .B \-title (also see \-use\-filename\-title)
3339 Set the window title.
3340 Supported by X11-based video output drivers.
3343 .B \-use\-filename\-title (also see \-title)
3344 Set the window title using the media filename, when not set with \-title.
3345 Supported by X11-based video output drivers.
3348 .B "\-vm \ \ \ "
3349 Try to change to a different video mode.
3350 Supported by the dga, x11, xv, sdl and directx video output drivers.
3351 If used with the directx video output driver the \-screenw,
3352 \-screenh, \-bpp and \-refreshrate options can be used to set
3353 the new display mode.
3356 .B "\-vsync \ \ "
3357 Enables VBI for the vesa, dfbmga and svga video output drivers.
3360 .B \-wid <window ID> (X11, OpenGL and DirectX only)
3361 This tells MPlayer to attach to an existing window.
3362 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3363 This option fills the given window completely, thus aspect scaling,
3364 panscan, etc are no longer handled by MPlayer but must be managed by the
3365 application that created the window.
3368 .B \-xineramascreen <\-2\-...>
3369 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3370 displays) this option tells MPlayer which screen to display the movie on.
3371 A value of \-2 means fullscreen across the whole virtual display (in this case
3372 Xinerama information is completely ignored), \-1 means
3373 fullscreen on the display the window currently is on.
3374 The initial position set via the \-geometry option is relative to the
3375 specified screen.
3376 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3377 This option is not suitable to only set the startup screen (because
3378 it will always display on the given screen in fullscreen mode),
3379 \-geometry is the best that is available for that purpose
3380 currently.
3381 Supported by at least the direct3d, gl, gl2, x11, xv and corevideo video output
3382 drivers.
3385 .B \-zrbw (\-vo zr only)
3386 Display in black and white.
3387 For optimal performance, this can be combined with '\-lavdopts gray'.
3390 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3391 Select a part of the input image to display, multiple occurrences
3392 of this option switch on cinerama mode.
3393 In cinerama mode the movie is distributed over more than one TV
3394 (or beamer) to create a larger image.
3395 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3396 card should at least have a \-zrdev in addition to the \-zrcrop.
3397 For examples, see the output of \-zrhelp and the Zr section of the
3398 documentation.
3401 .B \-zrdev <device> (\-vo zr only)
3402 Specify the device special file that belongs to your MJPEG card, by default
3403 the zr video output driver takes the first v4l device it can find.
3406 .B \-zrfd (\-vo zr only)
3407 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3408 happens if the hardware scaler can stretch the image to its original size.
3409 Use this option to force decimation.
3412 .B \-zrhdec <1|2|4> (\-vo zr only)
3413 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3414 line/\:pixel of the input image to the MJPEG card and use the scaler
3415 of the MJPEG card to stretch the image to its original size.
3418 .B \-zrhelp (\-vo zr only)
3419 Display a list of all \-zr* options, their default values and a
3420 cinerama mode example.
3423 .B \-zrnorm <norm> (\-vo zr only)
3424 Specify the TV norm as PAL or NTSC (default: no change).
3427 .B \-zrquality <1\-20> (\-vo zr only)
3428 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3431 .B \-zrvdec <1|2|4> (\-vo zr only)
3432 Vertical decimation: Ask the driver to send only every 2nd or 4th
3433 line/\:pixel of the input image to the MJPEG card and use the scaler
3434 of the MJPEG card to stretch the image to its original size.
3437 .B \-zrxdoff <x display offset> (\-vo zr only)
3438 If the movie is smaller than the TV screen, this option specifies the x
3439 offset from the upper-left corner of the TV screen (default: centered).
3442 .B \-zrydoff <y display offset> (\-vo zr only)
3443 If the movie is smaller than the TV screen, this option specifies the y
3444 offset from the upper-left corner of the TV screen (default: centered).
3448 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3449 Video output drivers are interfaces to different video output facilities.
3450 The syntax is:
3453 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3454 Specify a priority list of video output drivers to be used.
3456 If the list has a trailing ',' MPlayer will fall back on drivers not
3457 contained in the list.
3458 Suboptions are optional and can mostly be omitted.
3460 .I NOTE:
3461 See \-vo help for a list of compiled-in video output drivers.
3462 .sp 1
3463 .I EXAMPLE:
3464 .PD 0
3465 .RSs
3466 .IPs "\-vo xmga,xv,"
3467 Try the Matrox X11 driver, then the Xv driver, then others.
3468 .IPs "\-vo directx:noaccel"
3469 Uses the DirectX driver with acceleration features turned off.
3471 .PD 1
3472 .sp 1
3473 Available video output drivers are:
3476 .B xv (X11 only)
3477 Uses the XVideo extension of XFree86 4.x to enable hardware
3478 accelerated playback.
3479 If you cannot use a hardware specific driver, this is probably
3480 the best option.
3481 For information about what colorkey is used and how it is drawn run MPlayer
3482 with \-v option and look out for the lines tagged with [xv common] at the
3483 beginning.
3484 .PD 0
3485 .RSs
3486 .IPs adaptor=<number>
3487 Select a specific XVideo adaptor (check xvinfo results).
3488 .IPs port=<number>
3489 Select a specific XVideo port.
3490 .IPs ck=<cur|use|set>
3491 Select the source from which the colorkey is taken (default: cur).
3492 .RSss
3493 .IPs cur
3494 The default takes the colorkey currently set in Xv.
3495 .IPs use
3496 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3497 it).
3498 .IPs set
3499 Same as use but also sets the supplied colorkey.
3501 .IPs ck-method=<man|bg|auto>
3502 Sets the colorkey drawing method (default: man).
3503 .RSss
3504 .IPs man
3505 Draw the colorkey manually (reduces flicker in some cases).
3506 .IPs bg
3507 Set the colorkey as window background.
3508 .IPs auto
3509 Let Xv draw the colorkey.
3512 .PD 1
3515 .B x11 (X11 only)
3516 Shared memory video output driver without hardware acceleration that
3517 works whenever X11 is present.
3520 .B xover (X11 only)
3521 Adds X11 support to all overlay based video output drivers.
3522 Currently only supported by tdfx_vid.
3523 .PD 0
3524 .RSs
3525 .IPs <vo_driver>
3526 Select the driver to use as source to overlay on top of X11.
3528 .PD 1
3531 .B vdpau (with \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau, ffh264vdpau or ffodivxvdpau)
3532 Video output that uses VDPAU to decode video via hardware.
3533 Also supports displaying of software-decoded video.
3534 .PD 0
3535 .RSs
3536 .IPs sharpen=<\-1\-1>
3537 For positive values, apply a sharpening algorithm to the video,
3538 for negative values a blurring algorithm (default: 0).
3539 .IPs denoise=<0\-1>
3540 Apply a noise reduction algorithm to the video (default: 0, no noise reduction).
3541 .IPs deint=<0\-4>
3542 Select the deinterlacer (default: 0).
3543 All modes > 0 respect \-field\-dominance.
3544 .RSss
3545 .IPs 0
3546 no deinterlacing
3547 .IPs 1
3548 Show only first field, similar to \-vf field.
3549 .IPs 2
3550 Bob deinterlacing, similar to \-vf tfields=1.
3551 .IPs 3
3552 motion adaptive temporal deinterlacing
3553 May lead to A/V desync with slow video hardware and/or high resolution.
3554 This is the default if "D" is used to enable deinterlacing.
3555 .IPs 4
3556 motion adaptive temporal deinterlacing with edge-guided spatial interpolation
3557 Needs fast video hardware.
3559 .IPs chroma\-deint
3560 Makes temporal deinterlacers operate both on luma and chroma (default).
3561 Use nochroma\-deint to solely use luma and speed up advanced deinterlacing.
3562 Useful with slow video memory.
3563 .IPs pullup
3564 Try to apply inverse telecine, needs motion adaptive temporal deinterlacing.
3565 .IPs colorspace=<0-3>
3566 Select the color space for YUV to RGB conversion.
3567 In general BT.601 should be used for standard definition (SD) content and
3568 BT.709 for high definition (HD) content.
3569 Using incorrect color space results in slightly under or over saturated and
3570 shifted colors.
3571 .RSss
3572 .IPs 0
3573 Guess the color space based on video resolution.
3574 Video with width >= 1280 or height > 576 is assumed to be HD and BT.709 color
3575 space will be used.
3576 .IPs 1
3577 Use ITU-R BT.601 color space (default).
3578 .IPs 2
3579 Use ITU-R BT.709 color space.
3580 .IPs 3
3581 Use SMPTE-240M color space.
3583 .IPs hqscaling=<0-9>
3584 .RSss
3585 .IPs 0
3586 Use default VDPAU scaling (default).
3587 .IPs 1\-9
3588 Apply high quality VDPAU scaling (needs capable hardware).
3590 .IPs studio
3591 Output video in studio level RGB (16-235).
3592 This is what TVs and video monitors generally expect.
3593 By default PC level RGB (0-255) suitable for PC monitors is used.
3594 Providing studio level output to a device expecting PC level input results in
3595 grey blacks and dim whites, the reverse in crushed blacks and whites.
3596 .IPs fps=<number>
3597 Override autodetected display refresh rate value (the value is needed for framedrop to allow video playback rates higher than display refresh rate, and for vsync-aware frame timing adjustments).
3598 Default 0 means use autodetected value.
3599 A positive value is interpreted as a refresh rate in Hz and overrides the autodetected value.
3600 A negative value disables all timing adjustment and framedrop logic.
3601 .IPs queuetime_windowed=<number>
3602 .IPs queuetime_fs=<number>
3603 Use VDPAU's presentation queue functionality to queue future video frame
3604 changes at most this many milliseconds in advance (default: 50).
3605 See below for additional information.
3606 .IPs output_surfaces=<2-15>
3607 Allocate this many output surfaces to display video frames (default: 3).
3608 See below for additional information.
3611 .sp 1
3612 Using the VDPAU frame queueing functionality controlled by the queuetime
3613 options makes MPlayer's frame flip timing less sensitive to system CPU load
3614 and allows MPlayer to start decoding the next frame(s) slightly earlier
3615 which can reduce jitter caused by individual slow-to-decode frames.
3616 However the NVIDIA graphics drivers can make other window behavior such as
3617 window moves choppy if VDPAU is using the blit queue (mainly happens
3618 if you have the composite extension enabled) and this feature is active.
3619 If this happens on your system and it bothers you then you can set the
3620 queuetime value to 0 to disable this feature.
3621 The settings to use in windowed and fullscreen mode are separate because there
3622 should be less reason to disable this for fullscreen mode (as the driver issue
3623 shouldn't affect the video itself).
3624 .sp 1
3625 You can queue more frames ahead by increasing the queuetime values and the
3626 output_surfaces count (to ensure enough surfaces to buffer video for a
3627 certain time ahead you need at least as many surfaces as the video has
3628 frames during that time, plus two).
3629 This could help make video smoother in some cases.
3630 The main downsides are increased video RAM requirements for the surfaces
3631 and laggier display response to user commands (display changes only become
3632 visible some time after they're queued). The graphics driver implementation may
3633 also have limits on the length of maximum queuing time or number of queued
3634 surfaces that work well or at all.
3636 .PD 1
3639 .B xvmc (X11 with \-vc ffmpeg12mc only)
3640 Video output driver that uses the XvMC (X Video Motion Compensation)
3641 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3642 .PD 0
3643 .RSs
3644 .IPs adaptor=<number>
3645 Select a specific XVideo adaptor (check xvinfo results).
3646 .IPs port=<number>
3647 Select a specific XVideo port.
3648 .IPs (no)benchmark
3649 Disables image display.
3650 Necessary for proper benchmarking of drivers that change
3651 image buffers on monitor retrace only (nVidia).
3652 Default is not to disable image display (nobenchmark).
3653 .IPs (no)bobdeint
3654 Very simple deinterlacer.
3655 Might not look better than \-vf tfields=1,
3656 but it is the only deinterlacer for xvmc (default: nobobdeint).
3657 .IPs (no)queue
3658 Queue frames for display to allow more parallel work of the video hardware.
3659 May add a small (not noticeable) constant A/V desync (default: noqueue).
3660 .IPs (no)sleep
3661 Use sleep function while waiting for rendering to finish
3662 (not recommended on Linux) (default: nosleep).
3663 .IPs ck=cur|use|set
3664 Same as \-vo xv:ck (see \-vo xv).
3665 .IPs ck-method=man|bg|auto
3666 Same as \-vo xv:ck-method (see \-vo xv).
3668 .PD 1
3671 .B dga (X11 only)
3672 Play video through the XFree86 Direct Graphics Access extension.
3673 Considered obsolete.
3676 .B sdl (SDL only, buggy/outdated)
3677 Highly platform independent SDL (Simple Directmedia Layer) library
3678 video output driver.
3679 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3680 any effect on SDL.
3681 Note that it has several minor bugs (\-vm/\-novm is mostly ignored,
3682 \-fs behaves like \-novm should, window is in top-left corner when
3683 returning from fullscreen, panscan is not supported, ...).
3684 .PD 0
3685 .RSs
3686 .IPs driver=<driver>
3687 Explicitly choose the SDL driver to use.
3688 .IPs (no)forcexv
3689 Use XVideo through the sdl video output driver (default: forcexv).
3690 .IPs (no)hwaccel
3691 Use hardware accelerated scaler (default: hwaccel).
3693 .PD 1
3696 .B "vidix\ \ "
3697 VIDIX (VIDeo Interface for *niX) is an interface to the
3698 video acceleration features of different graphics cards.
3699 Very fast video output driver on cards that support it.
3700 .PD 0
3701 .RSs
3702 .IPs <subdevice>
3703 Explicitly choose the VIDIX subdevice driver to use.
3704 Available subdevice drivers are cyberblade, ivtv, mach64,
3705 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, s3, sh_veu,
3706 sis_vid and unichrome.
3708 .PD 1
3711 .B xvidix (X11 only)
3712 X11 frontend for VIDIX
3713 .PD 0
3714 .RSs
3715 .IPs <subdevice>
3716 same as vidix
3718 .PD 1
3721 .B "cvidix\ "
3722 Generic and platform independent VIDIX frontend, can even run in a
3723 text console with nVidia cards.
3724 .PD 0
3725 .RSs
3726 .IPs <subdevice>
3727 same as vidix
3729 .PD 1
3732 .B winvidix (Windows only)
3733 Windows frontend for VIDIX
3734 .PD 0
3735 .RSs
3736 .IPs <subdevice>
3737 same as vidix
3739 .PD 1
3742 .B direct3d (Windows only) (BETA CODE!)
3743 Video output driver that uses the Direct3D interface (useful for Vista).
3746 .B directx (Windows only)
3747 Video output driver that uses the DirectX interface.
3748 .PD 0
3749 .RSs
3750 .IPs noaccel
3751 Turns off hardware acceleration.
3752 Try this option if you have display problems.
3754 .PD 1
3757 .B kva (OS/2 only)
3758 Video output driver that uses the libkva interface.
3759 .PD 0
3760 .RSs
3761 .IPs snap
3762 Force SNAP mode.
3763 .IPs wo
3764 Force WarpOverlay! mode.
3765 .IPs dive
3766 Force DIVE mode.
3767 .IPs (no)t23
3768 Enable or disable workaround for T23 laptop (default: disabled).
3769 Try to enable this option if your video card supports upscaling only.
3771 .PD 1
3774 .B quartz (Mac OS X only)
3775 Mac OS X Quartz video output driver.
3776 Under some circumstances, it might be more efficient to force a
3777 packed YUV output format, with e.g.\& \-vf format=yuy2.
3778 .PD 0
3779 .RSs
3780 .IPs device_id=<number>
3781 Choose the display device to use in fullscreen.
3782 .IPs fs_res=<width>:<height>
3783 Specify the fullscreen resolution (useful on slow systems).
3785 .PD 1
3788 .B corevideo (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3789 Mac OS X CoreVideo video output driver
3790 .PD 0
3791 .RSs
3792 .IPs device_id=<number>
3793 Choose the display device to use for fullscreen or set it to \-1 to
3794 always use the same screen the video window is on (default: \-1 \- auto).
3795 .IPs shared_buffer
3796 Write output to a shared memory buffer instead of displaying it and
3797 try to open an existing NSConnection for communication with a GUI.
3798 .IPs buffer_name=<name>
3799 Name of the shared buffer created with shm_open as well as the name of
3800 the NSConnection MPlayer will try to open (default: "mplayerosx").
3801 Setting buffer_name implicitly enables shared_buffer.
3803 .PD 1
3806 .B fbdev (Linux only)
3807 Uses the kernel framebuffer to play video.
3808 .PD 0
3809 .RSs
3810 .IPs <device>
3811 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3812 name of the VIDIX subdevice if the device name starts with 'vidix'
3813 (e.g.\& 'vidixsis_vid' for the sis driver).
3815 .PD 1
3818 .B fbdev2 (Linux only)
3819 Uses the kernel framebuffer to play video,
3820 alternative implementation.
3821 .PD 0
3822 .RSs
3823 .IPs <device>
3824 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3826 .PD 1
3829 .B "vesa\ \ \ "
3830 Very general video output driver that should work on any VESA VBE 2.0
3831 compatible card.
3832 .PD 0
3833 .RSs
3834 .IPs (no)dga
3835 Turns DGA mode on or off (default: on).
3836 .IPs neotv_pal
3837 Activate the NeoMagic TV out and set it to PAL norm.
3838 .IPs neotv_ntsc
3839 Activate the NeoMagic TV out and set it to NTSC norm.
3840 .IPs vidix
3841 Use the VIDIX driver.
3842 .IPs "lvo:\ \ \ "
3843 Activate the Linux Video Overlay on top of VESA mode.
3845 .PD 1
3848 .B "svga\ \ \ "
3849 Play video using the SVGA library.
3850 .PD 0
3851 .RSs
3852 .IPs "<video mode>"
3853 Specify video mode to use.
3854 The mode can be given in a <width>x<height>x<colors> format,
3855 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3856 .IPs bbosd
3857 Draw OSD into black bands below the movie (slower).
3858 .IPs native
3859 Use only native drawing functions.
3860 This avoids direct rendering, OSD and hardware acceleration.
3861 .IPs retrace
3862 Force frame switch on vertical retrace.
3863 Usable only with \-double.
3864 It has the same effect as the \-vsync option.
3865 .IPs "sq\ \ \ "
3866 Try to select a video mode with square pixels.
3867 .IPs vidix
3868 Use svga with VIDIX.
3870 .PD 1
3873 .B "gl\ \ \ \ \ "
3874 OpenGL video output driver, simple version.
3875 Video size must be smaller than
3876 the maximum texture size of your OpenGL implementation.
3877 Intended to work even with the most basic OpenGL implementations,
3878 but also makes use of newer extensions, which allow support for more
3879 colorspaces and direct rendering.
3880 For optimal speed try adding the options
3882 \-dr \-noslices
3884 The code performs very few checks, so if a feature does not work, this
3885 might be because it is not supported by your card/OpenGL implementation
3886 even if you do not get any error message.
3887 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3888 .PD 0
3889 .RSs
3890 .IPs (no)ati\-hack
3891 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3892 or force\-pbo).
3893 This option fixes this, at the expense of using a bit more memory.
3894 .IPs (no)force\-pbo
3895 Always uses PBOs to transfer textures even if this involves an extra copy.
3896 Currently this gives a little extra speed with NVidia drivers and a lot more
3897 speed with ATI drivers.
3898 May need \-noslices and the ati\-hack suboption to work correctly.
3899 .IPs (no)scaled-osd
3900 Changes the way the OSD behaves when the size of the
3901 window changes (default: disabled).
3902 When enabled behaves more like the other video output drivers,
3903 which is better for fixed-size fonts.
3904 Disabled looks much better with FreeType fonts and uses the
3905 borders in fullscreen mode.
3906 Does not work correctly with ass subtitles (see \-ass), you can instead
3907 render them without OpenGL support via \-vf ass.
3908 .IPs osdcolor=<0xAARRGGBB>
3909 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3910 .IPs rectangle=<0,1,2>
3911 Select usage of rectangular textures which saves video RAM, but often is
3912 slower (default: 0).
3913 .RSss
3914 0: Use power-of-two textures (default).
3916 1: Use the GL_ARB_texture_rectangle extension.
3918 2: Use the GL_ARB_texture_non_power_of_two extension.
3919 In some cases only supported in software and thus very slow.
3921 .IPs swapinterval=<n>
3922 Minimum interval between two buffer swaps, counted in
3923 displayed frames (default: 1).
3924 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3925 Values below 0 will leave it at the system default.
3926 This limits the framerate to (horizontal refresh rate / n).
3927 Requires GLX_SGI_swap_control support to work.
3928 With some (most/all?) implementations this only works in fullscreen mode.
3929 .IPs ycbcr
3930 Use the GL_MESA_ycbcr_texture extension to convert YUV to RGB.
3931 In most cases this is probably slower than doing software conversion to RGB.
3932 .IPs yuv=<n>
3933 Select the type of YUV to RGB conversion.
3934 The default is auto-detection deciding between values 0 and 2.
3935 .RSss
3936 0: Use software conversion.
3937 Compatible with all OpenGL versions.
3938 Provides brightness, contrast and saturation control.
3940 1: Use register combiners.
3941 This uses an nVidia-specific extension (GL_NV_register_combiners).
3942 At least three texture units are needed.
3943 Provides saturation and hue control.
3944 This method is fast but inexact.
3946 2: Use a fragment program.
3947 Needs the GL_ARB_fragment_program extension and at least three texture units.
3948 Provides brightness, contrast, saturation and hue control.
3950 3: Use a fragment program using the POW instruction.
3951 Needs the GL_ARB_fragment_program extension and at least three texture units.
3952 Provides brightness, contrast, saturation, hue and gamma control.
3953 Gamma can also be set independently for red, green and blue.
3954 Method 4 is usually faster.
3956 4: Use a fragment program with additional lookup.
3957 Needs the GL_ARB_fragment_program extension and at least four texture units.
3958 Provides brightness, contrast, saturation, hue and gamma control.
3959 Gamma can also be set independently for red, green and blue.
3961 5: Use ATI-specific method (for older cards).
3962 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3963 GL_ARB_fragment_shader!).
3964 At least three texture units are needed.
3965 Provides saturation and hue control.
3966 This method is fast but inexact.
3968 6: Use a 3D texture to do conversion via lookup.
3969 Needs the GL_ARB_fragment_program extension and at least four texture units.
3970 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3971 a texture with border pixels.
3972 Provides brightness, contrast, saturation, hue and gamma control.
3973 Gamma can also be set independently for red, green and blue.
3974 Speed depends more on GPU memory bandwidth than other methods.
3976 .IPs colorspace
3977 Select the color space for YUV to RGB conversion.
3978 .RSss
3979 .IPs 0
3980 Use the formula used normally by MPlayer (default).
3981 .IPs 1
3982 Use ITU-R BT.601 color space.
3983 .IPs 2
3984 Use ITU-R BT.709 color space.
3985 .IPs 3
3986 Use SMPTE-240M color space.
3988 .IPs levelconv=<n>
3989 Select the brightness level conversion to use for the YUV to RGB conversion
3990 .RSss
3991 .IPs 0
3992 Convert TV to PC levels (default).
3993 .IPs 1
3994 Convert PC to TV levels.
3995 .IPs 2
3996 Do not do any conversion.
3998 .IPs lscale=<n>
3999 Select the scaling function to use for luminance scaling.
4000 Only valid for yuv modes 2, 3, 4 and 6.
4001 .RSss
4002 0: Use simple linear filtering (default).
4004 1: Use bicubic B-spline filtering (better quality).
4005 Needs one additional texture unit.
4006 Older cards will not be able to handle this for chroma at least in fullscreen mode.
4008 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
4009 Works on a few more cards than method 1.
4011 3: Same as 1 but does not use a lookup texture.
4012 Might be faster on some cards.
4014 4: Use experimental unsharp masking with 3x3 support and a default strength of 0.5 (see filter-strength).
4016 5: Use experimental unsharp masking with 5x5 support and a default strength of 0.5 (see filter-strength).
4018 .IPs cscale=<n>
4019 Select the scaling function to use for chrominance scaling.
4020 For details see lscale.
4021 .IPs filter-strength=<value>
4022 Set the effect strength for the lscale/cscale filters that support it.
4023 .IPs stereo=<value>
4024 Select a method for stereo display.
4025 You may have to use -aspect to fix the aspect value.
4026 Experimental, do not expect too much from it.
4027 .RSss
4028 0: Normal 2D display
4030 1: left-right split input to full-color red-cyan stereo.
4032 2: left-right split input to full-color red-cyan stereo.
4034 3: left-right split input to quadbuffered stereo.
4035 Only supported by very few OpenGL cards.
4038 .sp 1
4040 The following options are only useful if writing your own fragment programs.
4042 .sp 1
4043 .RSs
4044 .IPs customprog=<filename>
4045 Load a custom fragment program from <filename>.
4046 See TOOLS/edgedect.fp for an example.
4047 .IPs customtex=<filename>
4048 Load a custom "gamma ramp" texture from <filename>.
4049 This can be used in combination with yuv=4 or with the customprog option.
4050 .IPs (no)customtlin
4051 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
4052 for customtex texture.
4053 .IPs (no)customtrect
4054 If enabled, use texture_rectangle for customtex texture.
4055 Default is disabled.
4056 .IPs (no)mipmapgen
4057 If enabled, mipmaps for the video are automatically generated.
4058 This should be useful together with the customprog and the TXB
4059 instruction to implement blur filters with a large radius.
4060 For most OpenGL implementations this is very slow for any non-RGB
4061 formats.
4062 Default is disabled.
4064 .sp 1
4066 Normally there is no reason to use the following options, they mostly
4067 exist for testing purposes.
4069 .sp 1
4070 .RSs
4071 .IPs (no)glfinish
4072 Call glFinish() before swapping buffers.
4073 Slower but in some cases more correct output (default: disabled).
4074 .IPs (no)manyfmts
4075 Enables support for more (RGB and BGR) color formats (default: enabled).
4076 Needs OpenGL version >= 1.2.
4077 .IPs slice-height=<0\-...>
4078 Number of lines copied to texture in one piece (default: 0).
4079 0 for whole image.
4081 .I NOTE:
4082 If YUV colorspace is used (see yuv suboption), special rules apply:
4083 .RSss
4084 If the decoder uses slice rendering (see \-noslices), this setting
4085 has no effect, the size of the slices as provided by the decoder is used.
4087 If the decoder does not use slice rendering, the default is 16.
4089 .IPs (no)osd
4090 Enable or disable support for OSD rendering via OpenGL (default: enabled).
4091 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
4092 .IPs (no)aspect
4093 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
4094 Disabling might increase speed.
4095 .REss
4097 .PD 1
4100 .B "gl2\ \ \ \ "
4101 Variant of the OpenGL video output driver.
4102 Supports videos larger than the maximum texture size but lacks many of the
4103 advanced features and optimizations of the gl driver and is unlikely to be
4104 extended further.
4105 .PD 0
4106 .RSs
4107 .IPs (no)glfinish
4108 same as gl (default: enabled)
4109 .IPs yuv=<n>
4110 Select the type of YUV to RGB conversion.
4111 If set to anything except 0 OSD will be disabled and brightness, contrast and
4112 gamma setting is only available via the global X server settings.
4113 Apart from this the values have the same meaning as for \-vo gl.
4114 .REss
4117 .B matrixview
4118 OpenGL-based renderer creating a Matrix-like running-text effect.
4119 .PD 0
4120 .RSs
4121 .IPs cols=<n>
4122 Number of text columns to display.
4123 Very low values (< 16) will probably fail due to scaler limitations.
4124 Values not divisible by 16 may cause issues as well.
4125 .IPs rows=<n>
4126 Number of text rows to display.
4127 Very low values (< 16) will probably fail due to scaler limitations.
4128 Values not divisible by 16 may cause issues as well.
4129 .REss
4132 .B "null\ \ \ "
4133 Produces no video output.
4134 Useful for benchmarking.
4137 .B "aa\ \ \ \ \ "
4138 ASCII art video output driver that works on a text console.
4139 You can get a list and an explanation of available suboptions
4140 by executing 'mplayer \-vo aa:help'.
4142 .I NOTE:
4143 The driver does not handle \-aspect correctly.
4145 .I HINT:
4146 You probably have to specify \-monitorpixelaspect.
4147 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
4150 .B "caca\ \ \ "
4151 Color ASCII art video output driver that works on a text console.
4154 .B "bl\ \ \ \ \ "
4155 Video playback using the Blinkenlights UDP protocol.
4156 This driver is highly hardware specific.
4157 .PD 0
4158 .RSs
4159 .IPs <subdevice>
4160 Explicitly choose the Blinkenlights subdevice driver to use.
4161 It is something like arcade:host=localhost:2323 or
4162 hdl:file=name1,file=name2.
4163 You must specify a subdevice.
4165 .PD 1
4168 .B "ggi\ \ \ \ "
4169 GGI graphics system video output driver
4170 .PD 0
4171 .RSs
4172 .IPs <driver>
4173 Explicitly choose the GGI driver to use.
4174 Replace any ',' that would appear in the driver string by a '.'.
4176 .PD 1
4179 .B directfb
4180 Play video using the DirectFB library.
4181 .PD 0
4182 .RSs
4183 .IPs (no)input
4184 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
4185 .IPs buffermode=single|double|triple
4186 Double and triple buffering give best results if you want to avoid tearing issues.
4187 Triple buffering is more efficient than double buffering as it does
4188 not block MPlayer while waiting for the vertical retrace.
4189 Single buffering should be avoided (default: single).
4190 .IPs fieldparity=top|bottom
4191 Control the output order for interlaced frames (default: disabled).
4192 Valid values are top = top fields first, bottom = bottom fields first.
4193 This option does not have any effect on progressive film material
4194 like most MPEG movies are.
4195 You need to enable this option if you have tearing issues or unsmooth
4196 motions watching interlaced film material.
4197 .IPs layer=N
4198 Will force layer with ID N for playback (default: \-1 \- auto).
4199 .IPs dfbopts=<list>
4200 Specify a parameter list for DirectFB.
4202 .PD 1
4205 .B "dfbmga\ "
4206 Matrox G400/\:G450/\:G550 specific video output driver that uses the
4207 DirectFB library to make use of special hardware features.
4208 Enables CRTC2 (second head), displaying video independently of the first head.
4209 .PD 0
4210 .RSs
4211 .IPs (no)input
4212 same as directfb (default: disabled)
4213 .IPs buffermode=single|double|triple
4214 same as directfb (default: triple)
4215 .IPs fieldparity=top|bottom
4216 same as directfb
4217 .IPs (no)bes
4218 Enable the use of the Matrox BES (backend scaler) (default: disabled).
4219 Gives very good results concerning speed and output quality as interpolated
4220 picture processing is done in hardware.
4221 Works only on the primary head.
4222 .IPs (no)spic
4223 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
4224 .IPs (no)crtc2
4225 Turn on TV-out on the second head (default: enabled).
4226 The output quality is amazing as it is a full interlaced picture
4227 with proper sync to every odd/\:even field.
4228 .IPs tvnorm=pal|ntsc|auto
4229 Will set the TV norm of the Matrox card without the need
4230 for modifying /etc/\:directfbrc (default: disabled).
4231 Valid norms are pal = PAL, ntsc = NTSC.
4232 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
4233 which norm to use by looking at the framerate of the movie.
4235 .PD 1
4238 .B mga (Linux only)
4239 Matrox specific video output driver that makes use of the YUV back
4240 end scaler on Gxxx cards through a kernel module.
4241 If you have a Matrox card, this is the fastest option.
4242 .PD 0
4243 .RSs
4244 .IPs <device>
4245 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4247 .PD 1
4250 .B xmga (Linux, X11 only)
4251 The mga video output driver, running in an X11 window.
4252 .PD 0
4253 .RSs
4254 .IPs <device>
4255 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4257 .PD 1
4260 .B s3fb (Linux only) (also see \-dr)
4261 S3 Virge specific video output driver.
4262 This driver supports the card's YUV conversion and scaling, double
4263 buffering and direct rendering features.
4264 Use \-vf format=yuy2 to get hardware-accelerated YUY2 rendering, which is
4265 much faster than YV12 on this card.
4266 .PD 0
4267 .RSs
4268 .IPs <device>
4269 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4271 .PD 1
4274 .B wii (Linux only)
4275 Nintendo Wii/GameCube specific video output driver.
4278 .B 3dfx (Linux only)
4279 3dfx-specific video output driver that directly uses
4280 the hardware on top of X11.
4281 Only 16 bpp are supported.
4284 .B tdfxfb (Linux only)
4285 This driver employs the tdfxfb framebuffer driver to play movies with
4286 YUV acceleration on 3dfx cards.
4287 .PD 0
4288 .RSs
4289 .IPs <device>
4290 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4292 .PD 1
4295 .B tdfx_vid (Linux only)
4296 3dfx-specific video output driver that works in combination with
4297 the tdfx_vid kernel module.
4298 .PD 0
4299 .RSs
4300 .IPs <device>
4301 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
4303 .PD 1
4306 .B dxr2 (also see \-dxr2) (DXR2 only)
4307 Creative DXR2 specific video output driver.
4308 .PD 0
4309 .RSs
4310 .IPs <vo_driver>
4311 Output video subdriver to use as overlay (x11, xv).
4313 .PD 1
4316 .B dxr3 (DXR3 only)
4317 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
4318 Hollywood Plus) specific video output driver.
4319 Also see the lavc video filter.
4320 .PD 0
4321 .RSs
4322 .IPs overlay
4323 Activates the overlay instead of TV-out.
4324 .IPs prebuf
4325 Turns on prebuffering.
4326 .IPs "sync\ "
4327 Will turn on the new sync-engine.
4328 .IPs norm=<norm>
4329 Specifies the TV norm.
4330 .RSss
4331 0: Does not change current norm (default).
4333 1: Auto-adjust using PAL/\:NTSC.
4335 2: Auto-adjust using PAL/\:PAL-60.
4337 3: PAL
4339 4: PAL-60
4341 5: NTSC
4343 .IPs <0\-3>
4344 Specifies the device number to use if you have more than one em8300 card.
4346 .PD 1
4349 .B ivtv (IVTV only)
4350 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4351 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4352 specific video output driver for TV-out.
4353 Also see the lavc video filter.
4354 .PD 0
4355 .RSs
4356 .IPs <device>
4357 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4358 .IPs <output>
4359 Explicitly choose the TV-out output to be used for the video signal.
4361 .PD 1
4364 .B v4l2 (requires Linux 2.6.22+ kernel)
4365 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4366 Also see the lavc video filter.
4367 .PD 0
4368 .RSs
4369 .IPs <device>
4370 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4371 .IPs <output>
4372 Explicitly choose the TV-out output to be used for the video signal.
4374 .PD 1
4377 .B mpegpes (DVB only)
4378 Video output driver for DVB cards that writes the output to an MPEG-PES file
4379 if no DVB card is installed.
4380 .PD 0
4381 .RSs
4382 .IPs card=<1\-4>
4383 Specifies the device number to use if you have more than one DVB output card
4384 (V3 API only, such as 1.x.y series drivers).
4385 If not specified MPlayer will search the first usable card.
4386 .IPs <filename>
4387 output filename (default: ./grab.mpg)
4389 .PD 1
4392 .B zr (also see \-zr* and \-zrhelp)
4393 Video output driver for a number of MJPEG capture/\:playback cards.
4396 .B zr2 (also see the zrmjpeg video filter)
4397 Video output driver for a number of MJPEG capture/\:playback cards,
4398 second generation.
4399 .PD 0
4400 .RSs
4401 .IPs dev=<device>
4402 Specifies the video device to use.
4403 .IPs norm=<PAL|NTSC|SECAM|auto>
4404 Specifies the video norm to use (default: auto).
4405 .IPs (no)prebuf
4406 (De)Activate prebuffering, not yet supported.
4408 .PD 1
4411 .B "md5sum\ "
4412 Calculate MD5 sums of each frame and write them to a file.
4413 Supports RGB24 and YV12 colorspaces.
4414 Useful for debugging.
4415 .PD 0
4416 .RSs
4417 .IPs outfile=<value>
4418 Specify the output filename (default: ./md5sums).
4420 .PD 1
4423 .B yuv4mpeg
4424 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4425 images and stores it in a file (default: ./stream.yuv).
4426 The format is the same as the one employed by mjpegtools, so this is
4427 useful if you want to process the video with the mjpegtools suite.
4428 It supports the YV12 format.
4429 If your source file has a different format and is interlaced, make sure
4430 to use -vf scale=::1 to ensure the conversion uses interlaced mode.
4431 You can combine it with the \-fixed\-vo option to concatenate files
4432 with the same dimensions and fps value.
4433 .PD 0
4434 .RSs
4435 .IPs interlaced
4436 Write the output as interlaced frames, top field first.
4437 .IPs interlaced_bf
4438 Write the output as interlaced frames, bottom field first.
4439 .IPs file=<filename>
4440 Write the output to <filename> instead of the default stream.yuv.
4441 .REss
4442 .PD 1
4444 .sp 1
4445 .I NOTE:
4446 If you do not specify any option the output is progressive
4447 (i.e.\& not interlaced).
4451 .B "gif89a\ "
4452 Output each frame into a single animated GIF file in the current directory.
4453 It supports only RGB format with 24 bpp and the output is converted to 256
4454 colors.
4455 .PD 0
4456 .RSs
4457 .IPs <fps>
4458 Float value to specify framerate (default: 5.0).
4459 .IPs <output>
4460 Specify the output filename (default: ./out.gif).
4461 .REss
4462 .PD 1
4464 .sp 1
4465 .I NOTE:
4466 You must specify the framerate before the filename or the framerate will
4467 be part of the filename.
4468 .sp 1
4469 .I EXAMPLE:
4471 .PD 0
4472 .RSs
4473 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4475 .PD 1
4478 .B "jpeg\ \ \ "
4479 Output each frame into a JPEG file in the current directory.
4480 Each file takes the frame number padded with leading zeros as name.
4481 .PD 0
4482 .RSs
4483 .IPs [no]progressive
4484 Specify standard or progressive JPEG (default: noprogressive).
4485 .IPs [no]baseline
4486 Specify use of baseline or not (default: baseline).
4487 .IPs optimize=<0\-100>
4488 optimization factor (default: 100)
4489 .IPs smooth=<0\-100>
4490 smooth factor (default: 0)
4491 .IPs quality=<0\-100>
4492 quality factor (default: 75)
4493 .IPs outdir=<dirname>
4494 Specify the directory to save the JPEG files to (default: ./).
4495 .IPs subdirs=<prefix>
4496 Create numbered subdirectories with the specified prefix to
4497 save the files in instead of the current directory.
4498 .IPs "maxfiles=<value> (subdirs only)"
4499 Maximum number of files to be saved per subdirectory.
4500 Must be equal to or larger than 1 (default: 1000).
4502 .PD 1
4505 .B "pnm\ \ \ \ "
4506 Output each frame into a PNM file in the current directory.
4507 Each file takes the frame number padded with leading zeros as name.
4508 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4509 Also see pnm(5), ppm(5) and pgm(5).
4510 .PD 0
4511 .RSs
4512 .IPs "ppm\ \ "
4513 Write PPM files (default).
4514 .IPs "pgm\ \ "
4515 Write PGM files.
4516 .IPs pgmyuv
4517 Write PGMYUV files.
4518 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4519 bottom of the picture.
4520 .IPs "raw\ \ "
4521 Write PNM files in raw mode (default).
4522 .IPs ascii
4523 Write PNM files in ASCII mode.
4524 .IPs outdir=<dirname>
4525 Specify the directory to save the PNM files to (default: ./).
4526 .IPs subdirs=<prefix>
4527 Create numbered subdirectories with the specified prefix to
4528 save the files in instead of the current directory.
4529 .IPs "maxfiles=<value> (subdirs only)"
4530 Maximum number of files to be saved per subdirectory.
4531 Must be equal to or larger than 1 (default: 1000).
4533 .PD 1
4536 .B "png\ \ \ \ "
4537 Output each frame into a PNG file in the current directory.
4538 Each file takes the frame number padded with leading zeros as name.
4539 24bpp RGB and BGR formats are supported.
4540 .PD 0
4541 .RSs
4542 .IPs z=<0\-9>
4543 Specifies the compression level.
4544 0 is no compression, 9 is maximum compression.
4545 .IPs alpha (default: noalpha)
4546 Create PNG files with an alpha channel.
4547 Note that MPlayer in general does not support alpha, so this will only
4548 be useful in some rare cases.
4550 .PD 1
4553 .B "tga\ \ \ \ "
4554 Output each frame into a Targa file in the current directory.
4555 Each file takes the frame number padded with leading zeros as name.
4556 The purpose of this video output driver is to have a simple lossless
4557 image writer to use without any external library.
4558 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4559 You can force a particular format with the format video filter.
4560 .sp 1
4561 .I EXAMPLE:
4563 .PD 0
4564 .RSs
4565 mplayer video.nut \-vf format=bgr15 \-vo tga
4567 .PD 1
4571 .SH "DECODING/FILTERING OPTIONS"
4574 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4575 Specify a priority list of audio codecs to be used, according to their codec
4576 name in codecs.conf.
4577 Use a '\-' before the codec name to omit it.
4578 Use a '+' before the codec name to force it, this will likely crash!
4579 If the list has a trailing ',' MPlayer will fall back on codecs not
4580 contained in the list.
4582 .I NOTE:
4583 See \-ac help for a full list of available codecs.
4584 .sp 1
4585 .I EXAMPLE:
4586 .PD 0
4587 .RSs
4588 .IPs "\-ac mp3acm"
4589 Force the l3codeca.acm MP3 codec.
4590 .IPs "\-ac mad,"
4591 Try libmad first, then fall back on others.
4592 .IPs "\-ac hwac3,a52,"
4593 Try hardware AC-3 passthrough, software AC-3, then others.
4594 .IPs "\-ac hwdts,"
4595 Try hardware DTS passthrough, then fall back on others.
4596 .IPs "\-ac \-ffmp3,"
4597 Skip FFmpeg's MP3 decoder.
4599 .PD 1
4602 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4603 Specify advanced audio filter options:
4604 .RSs
4605 .IPs force=<0\-7>
4606 Forces the insertion of audio filters to one of the following:
4607 .RSss
4608 0: Use completely automatic filter insertion (currently identical to 1).
4610 1: Optimize for accuracy (default).
4612 2: Optimize for speed.
4613 .I Warning:
4614 Some features in the audio filters may silently fail,
4615 and the sound quality may drop.
4617 3: Use no automatic insertion of filters and no optimization.
4618 .I Warning:
4619 It may be possible to crash MPlayer using this setting.
4621 4: Use automatic insertion of filters according to 0 above,
4622 but use floating point processing when possible.
4624 5: Use automatic insertion of filters according to 1 above,
4625 but use floating point processing when possible.
4627 6: Use automatic insertion of filters according to 2 above,
4628 but use floating point processing when possible.
4630 7: Use no automatic insertion of filters according to 3 above,
4631 and use floating point processing when possible.
4632 .REss
4633 .IPs list=<filters>
4634 Same as \-af.
4638 .B \-afm <driver1,driver2,...>
4639 Specify a priority list of audio codec families to be used, according
4640 to their codec name in codecs.conf.
4641 Falls back on the default codecs if none of the given codec families work.
4643 .I NOTE:
4644 See \-afm help for a full list of available codec families.
4645 .sp 1
4646 .I EXAMPLE:
4647 .PD 0
4648 .RSs
4649 .IPs "\-afm ffmpeg"
4650 Try FFmpeg's libavcodec codecs first.
4651 .IPs "\-afm acm,dshow"
4652 Try Win32 codecs first.
4654 .PD 1
4657 .B \-aspect <ratio> (also see \-zoom)
4658 Override movie aspect ratio, in case aspect information is
4659 incorrect or missing in the file being played.
4660 .sp 1
4661 .I EXAMPLE:
4662 .PD 0
4663 .RSs
4664 \-aspect 4:3  or \-aspect 1.3333
4666 \-aspect 16:9 or \-aspect 1.7777
4668 .PD 1
4671 .B \-noaspect
4672 Disable automatic movie aspect ratio compensation.
4675 .B "\-field\-dominance <\-1\-1>"
4676 Set first field for interlaced content.
4677 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4678 \-vf yadif=1, \-vo vdpau:deint and \-vo xvmc:bobdeint.
4679 .PD 0
4680 .RSs
4681 .IPs \-1
4682 auto (default): If the decoder does not export the appropriate information,
4683 it falls back to 0 (top field first).
4684 .IPs 0
4685 top field first
4686 .IPs 1
4687 bottom field first
4689 .PD 1
4692 .B "\-flip \ "
4693 Flip image upside-down.
4696 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4697 Specify libavcodec decoding parameters.
4698 Separate multiple options with a colon.
4699 .sp 1
4700 .I EXAMPLE:
4701 .PD 0
4702 .RSs
4703 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4705 .PD 1
4706 .sp 1
4708 Available options are:
4710 .RSs
4711 .IPs bitexact
4712 Only use bit-exact algorithms in all decoding steps (for codec testing).
4713 .IPs bug=<value>
4714 Manually work around encoder bugs.
4715 .RSss
4716 0: nothing
4718 1: autodetect bugs (default)
4720 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4722 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4724 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4726 16 (mpeg4): padding bug (autodetected)
4728 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4730 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4732 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4734 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4736 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4738 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4739 .REss
4740 .IPs debug=<value>
4741 Display debugging information.
4742 .RSss
4744 0: disabled
4746 1: picture info
4748 2: rate control
4750 4: bitstream
4752 8: macroblock (MB) type
4754 16: per-block quantization parameter (QP)
4756 32: motion vector
4758 0x0040: motion vector visualization (use \-noslices)
4760 0x0080: macroblock (MB) skip
4762 0x0100: startcode
4764 0x0200: PTS
4766 0x0400: error resilience
4768 0x0800: memory management control operations (H.264)
4770 0x1000: bugs
4772 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4774 0x4000: Visualize block types.
4775 .REss
4776 .IPs ec=<value>
4777 Set error concealment strategy.
4778 .RSss
4779 1: Use strong deblock filter for damaged MBs.
4781 2: iterative motion vector (MV) search (slow)
4783 3: all (default)
4784 .REss
4785 .IPs er=<value>
4786 Set error resilience strategy.
4787 .RSss
4789 0: disabled
4791 1: careful (Should work with broken encoders.)
4793 2: normal (default) (Works with compliant encoders.)
4795 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4797 4: very aggressive
4798 .REss
4799 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4800 Enable optimizations which do not comply to the specification and might
4801 potentially cause problems, like simpler dequantization, simpler motion
4802 compensation, assuming use of the default quantization matrix, assuming
4803 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4804 .IPs "gray\ "
4805 grayscale only decoding (a bit faster than with color)
4806 .IPs "idct=<0\-99> (see \-lavcopts)"
4807 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4808 This may come at a price in accuracy, though.
4809 .IPs lowres=<number>[,<w>]
4810 Decode at lower resolutions.
4811 Low resolution decoding is not supported by all codecs, and it will
4812 often result in ugly artifacts.
4813 This is not a bug, but a side effect of not decoding at full resolution.
4814 .RSss
4816 0: disabled
4818 1: 1/2 resolution
4820 2: 1/4 resolution
4822 3: 1/8 resolution
4823 .REss
4825 If <w> is specified lowres decoding will be used only if the width of the
4826 video is major than or equal to <w>.
4828 .B o=<key>=<value>[,<key>=<value>[,...]]
4829 Pass AVOptions to libavcodec decoder.
4830 Note, a patch to make the o= unneeded and pass all unknown options through
4831 the AVOption system is welcome.
4832 A full list of AVOptions can be found in the FFmpeg manual.
4833 Note that some options may conflict with MEncoder options.
4834 .sp 1
4836 .I EXAMPLE:
4838 .RSs
4839 .PD 0
4840 .IPs o=debug=pict
4841 .PD 1
4843 .IPs "sb=<number> (MPEG-2 only)"
4844 Skip the given number of macroblock rows at the bottom.
4845 .IPs "st=<number> (MPEG-2 only)"
4846 Skip the given number of macroblock rows at the top.
4847 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4848 Skips the loop filter (AKA deblocking) during H.264 decoding.
4849 Since the filtered frame is supposed to be used as reference
4850 for decoding dependent frames this has a worse effect on quality
4851 than not doing deblocking on e.g.\& MPEG-2 video.
4852 But at least for high bitrate HDTV this provides a big speedup with
4853 no visible quality loss.
4854 .sp 1
4855 <skipvalue> can be either one of the following:
4856 .RSss
4858 none: Never skip.
4860 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4862 nonref: Skip frames that are not referenced (i.e.\& not used for
4863 decoding other frames, the error cannot "build up").
4865 bidir: Skip B-Frames.
4867 nonkey: Skip all frames except keyframes.
4869 all: Skip all frames.
4870 .REss
4871 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4872 Skips the IDCT step.
4873 This degrades quality a lot of in almost all cases
4874 (see skiploopfilter for available skip values).
4875 .IPs skipframe=<skipvalue>
4876 Skips decoding of frames completely.
4877 Big speedup, but jerky motion and sometimes bad artifacts
4878 (see skiploopfilter for available skip values).
4879 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4880 number of threads to use for decoding (default: 1)
4881 .IPs vismv=<value>
4882 Visualize motion vectors.
4883 .RSss
4885 0: disabled
4887 1: Visualize forward predicted MVs of P-frames.
4889 2: Visualize forward predicted MVs of B-frames.
4891 4: Visualize backward predicted MVs of B-frames.
4892 .REss
4893 .IPs vstats
4894 Prints some statistics and stores them in ./vstats_*.log.
4898 .B \-noslices
4899 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4900 whole frame in a single run.
4901 May be faster or slower, depending on video card and available cache.
4902 It has effect only with libmpeg2 and libavcodec codecs.
4905 .B \-nosound
4906 Do not play/\:encode sound.
4907 Useful for benchmarking.
4910 .B \-novideo
4911 Do not play/\:encode video.
4912 In many cases this will not work, use \-vc null \-vo null instead.
4915 .B \-pp <quality> (also see \-vf pp)
4916 Set the DLL postprocess level.
4917 This option is no longer usable with \-vf pp.
4918 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4919 The valid range of \-pp values varies by codec, it is mostly
4920 0\-6, where 0=disable, 6=slowest/\:best.
4923 .B \-pphelp (also see \-vf pp)
4924 Show a summary about the available postprocess filters and their usage.
4927 .B \-ssf <mode>
4928 Specifies software scaler parameters.
4929 .sp 1
4930 .I EXAMPLE:
4931 .PD 0
4932 .RSs
4933 \-vf scale \-ssf lgb=3.0
4935 .PD 1
4936 .PD 0
4937 .RSs
4938 .IPs lgb=<0\-100>
4939 gaussian blur filter (luma)
4940 .IPs cgb=<0\-100>
4941 gaussian blur filter (chroma)
4942 .IPs ls=<\-100\-100>
4943 sharpen filter (luma)
4944 .IPs cs=<\-100\-100>
4945 sharpen filter (chroma)
4946 .IPs chs=<h>
4947 chroma horizontal shifting
4948 .IPs cvs=<v>
4949 chroma vertical shifting
4951 .PD 1
4954 .B \-stereo <mode>
4955 Select type of MP2/\:MP3 stereo output.
4956 .PD 0
4957 .RSs
4958 .IPs 0
4959 stereo
4960 .IPs 1
4961 left channel
4962 .IPs 2
4963 right channel
4965 .PD 1
4968 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4969 Specify the software scaler algorithm to be used with the \-zoom option.
4970 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4971 .sp 1
4972 Available types are:
4973 .sp 1
4974 .PD 0
4975 .RSs
4976 .IPs 0
4977 fast bilinear
4978 .IPs 1
4979 bilinear
4980 .IPs 2
4981 bicubic (good quality) (default)
4982 .IPs 3
4983 experimental
4984 .IPs 4
4985 nearest neighbor (bad quality)
4986 .IPs 5
4987 area
4988 .IPs 6
4989 luma bicubic / chroma bilinear
4990 .IPs 7
4991 gauss
4992 .IPs 8
4993 sincR
4994 .IPs 9
4995 lanczos
4996 .IPs 10
4997 natural bicubic spline
4999 .PD 1
5000 .sp 1
5002 .I NOTE:
5003 Some \-sws options are tunable.
5004 The description of the scale video filter has further information.
5008 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
5009 Specify a priority list of video codecs to be used, according to their codec
5010 name in codecs.conf.
5011 Use a '\-' before the codec name to omit it.
5012 Use a '+' before the codec name to force it, this will likely crash!
5013 If the list has a trailing ',' MPlayer will fall back on codecs not
5014 contained in the list.
5016 .I NOTE:
5017 See \-vc help for a full list of available codecs.
5018 .sp 1
5019 .I EXAMPLE:
5020 .PD 0
5021 .RSs
5022 .IPs "\-vc divx"
5023 Force Win32/\:VfW DivX codec, no fallback.
5024 .IPs "\-vc \-divxds,\-divx,"
5025 Skip Win32 DivX codecs.
5026 .IPs "\-vc ffmpeg12,mpeg12,"
5027 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
5029 .PD 1
5032 .B \-vfm <driver1,driver2,...>
5033 Specify a priority list of video codec families to be used, according
5034 to their names in codecs.conf.
5035 Falls back on the default codecs if none of the given codec families work.
5037 .I NOTE:
5038 See \-vfm help for a full list of available codec families.
5039 .sp 1
5040 .I EXAMPLE:
5041 .PD 0
5042 .RSs
5043 .IPs "\-vfm ffmpeg,dshow,vfw"
5044 Try the libavcodec, then Directshow, then VfW codecs and fall back
5045 on others, if they do not work.
5046 .IPs "\-vfm xanim"
5047 Try XAnim codecs first.
5049 .PD 1
5052 .B \-x <x> (also see \-zoom) (MPlayer only)
5053 Scale image to width <x> (if software/\:hardware scaling is available).
5054 Disables aspect calculations.
5057 .B \-xvidopts <option1:option2:...>
5058 Specify additional parameters when decoding with Xvid.
5060 .I NOTE:
5061 Since libavcodec is faster than Xvid you might want to use the libavcodec
5062 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
5063 .sp 1
5064 Xvid's internal postprocessing filters:
5065 .PD 0
5066 .RSs
5067 .IPs "deblock-chroma (also see \-vf pp)"
5068 chroma deblock filter
5069 .IPs "deblock-luma (also see \-vf pp)"
5070 luma deblock filter
5071 .IPs "dering-luma (also see \-vf pp)"
5072 luma deringing filter
5073 .IPs "dering-chroma (also see \-vf pp)"
5074 chroma deringing filter
5075 .IPs "filmeffect (also see \-vf noise)"
5076 Adds artificial film grain to the video.
5077 May increase perceived quality, while lowering true quality.
5079 .sp 1
5081 rendering methods:
5083 .PD 0
5084 .RSs
5085 .IPs "dr2\ \ "
5086 Activate direct rendering method 2.
5087 .IPs nodr2
5088 Deactivate direct rendering method 2.
5090 .PD 1
5093 .B \-xy <value> (also see \-zoom)
5094 .PD 0
5095 .RSs
5096 .IPs value<=8
5097 Scale image by factor <value>.
5098 .IPs value>8
5099 Set width to value and calculate height to keep correct aspect ratio.
5101 .PD 1
5104 .B \-y <y> (also see \-zoom) (MPlayer only)
5105 Scale image to height <y> (if software/\:hardware scaling is available).
5106 Disables aspect calculations.
5109 .B "\-zoom\ \ "
5110 Allow software scaling, where available.
5111 This will allow scaling with output drivers (like x11, fbdev) that
5112 do not support hardware scaling where MPlayer disables scaling by
5113 default for performance reasons.
5117 .SH "AUDIO FILTERS"
5118 Audio filters allow you to modify the audio stream and its properties.
5119 The syntax is:
5122 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
5123 Setup a chain of audio filters.
5125 .I NOTE:
5126 To get a full list of available audio filters, see \-af help.
5127 .sp 1
5128 Audio filters are managed in lists.
5129 There are a few commands to manage the filter list.
5132 .B \-af\-add <filter1[,filter2,...]>
5133 Appends the filters given as arguments to the filter list.
5136 .B \-af\-pre <filter1[,filter2,...]>
5137 Prepends the filters given as arguments to the filter list.
5140 .B \-af\-del <index1[,index2,...]>
5141 Deletes the filters at the given indexes.
5142 Index numbers start at 0, negative numbers address the end of the
5143 list (\-1 is the last).
5146 .B \-af\-clr
5147 Completely empties the filter list.
5149 Available filters are:
5152 .B resample[=srate[:sloppy[:type]]]
5153 Changes the sample rate of the audio stream.
5154 Can be used if you have a fixed frequency sound card or if you are
5155 stuck with an old sound card that is only capable of max 44.1kHz.
5156 This filter is automatically enabled if necessary.
5157 It only supports 16-bit integer and float in native-endian format as input.
5159 .I NOTE:
5160 With MEncoder, you need to also use \-srate <srate>.
5161 .PD 0
5162 .RSs
5163 .IPs <srate>
5164 output sample frequency in Hz.
5165 The valid range for this parameter is 8000 to 192000.
5166 If the input and output sample frequency are the same or if this
5167 parameter is omitted the filter is automatically unloaded.
5168 A high sample frequency normally improves the audio quality,
5169 especially when used in combination with other filters.
5170 .IPs <sloppy>
5171 Allow (1) or disallow (0) the output frequency to differ slightly
5172 from the frequency given by <srate> (default: 1).
5173 Can be used if the startup of the playback is extremely slow.
5174 .IPs <type>
5175 Select which resampling method to use.
5176 .RSss
5177 0: linear interpolation (fast, poor quality especially when upsampling)
5179 1: polyphase filterbank and integer processing
5181 2: polyphase filterbank and floating point processing (slow, best quality)
5182 .REss
5183 .PD 1
5185 .sp 1
5187 .I EXAMPLE:
5189 .PD 0
5190 .RSs
5191 .IPs "mplayer \-af resample=44100:0:0"
5192 would set the output frequency of the resample filter to 44100Hz using
5193 exact output frequency scaling and linear interpolation.
5195 .PD 1
5198 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
5199 Changes the sample rate of the audio stream to an integer <srate> in Hz.
5200 It only supports the 16-bit native-endian format.
5202 .I NOTE:
5203 With MEncoder, you need to also use \-srate <srate>.
5204 .PD 0
5205 .RSs
5206 .IPs <srate>
5207 the output sample rate
5208 .IPs <length>
5209 length of the filter with respect to the lower sampling rate (default: 16)
5210 .IPs <linear>
5211 if 1 then filters will be linearly interpolated between polyphase entries
5212 .IPs <count>
5213 log2 of the number of polyphase entries
5214 (..., 10->1024, 11->2048, 12->4096, ...)
5215 (default: 10->1024)
5216 .IPs <cutoff>
5217 cutoff frequency (0.0\-1.0), default set depending upon filter length
5219 .PD 1
5222 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
5223 Encode multi-channel audio to AC-3 at runtime using libavcodec.
5224 Supports 16-bit native-endian input format, maximum 6 channels.
5225 The output is big-endian when outputting a raw AC-3 stream,
5226 native-endian when outputting to S/PDIF.
5227 The output sample rate of this filter is same with the input sample rate.
5228 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
5229 Otherwise a resampling filter is auto-inserted before this filter to make
5230 the input and output sample rate be 48kHz.
5231 You need to specify '\-channels N' to make the decoder decode audio into
5232 N-channel, then the filter can encode the N-channel input to AC-3.
5234 .PD 0
5235 .RSs
5236 .IPs <tospdif>
5237 Output raw AC-3 stream if zero or not set,
5238 output to S/PDIF for passthrough when <tospdif> is set non-zero.
5239 .IPs <bitrate>
5240 The bitrate to encode the AC-3 stream.
5241 Set it to either 384 or 384000 to get 384kbits.
5242 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
5243               320, 384, 448, 512, 576, 640
5244 Default bitrate is based on the input channel number:
5245 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
5246 .IPs <minchn>
5247 If the input channel number is less than <minchn>, the filter will
5248 detach itself (default: 5).
5250 .PD 1
5253 .B sweep[=speed]
5254 Produces a sine sweep.
5255 .PD 0
5256 .RSs
5257 .IPs <0.0\-1.0>
5258 Sine function delta, use very low values to hear the sweep.
5260 .PD 1
5263 .B sinesuppress[=freq:decay]
5264 Remove a sine at the specified frequency.
5265 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
5266 It probably only works on mono input.
5267 .PD 0
5268 .RSs
5269 .IPs <freq>
5270 The frequency of the sine which should be removed (in Hz) (default: 50)
5271 .IPs <decay>
5272 Controls the adaptivity (a larger value will make the filter adapt to
5273 amplitude and phase changes quicker, a smaller value will make the
5274 adaptation slower) (default: 0.0001).
5275 Reasonable values are around 0.001.
5277 .PD 1
5280 .B bs2b[=option1:option2:...]
5281 Bauer stereophonic to binaural transformation using libbs2b.
5282 Improves the headphone listening experience by making the sound
5283 similar to that from loudspeakers, allowing each ear to hear both
5284 channels and taking into account the distance difference and the
5285 head shadowing effect.
5286 It is applicable only to 2 channel audio.
5287 .PD 0
5288 .RSs
5289 .IPs fcut=<300\-1000>
5290 Set cut frequency in Hz.
5291 .IPs feed=<10\-150>
5292 Set feed level for low frequencies in 0.1*dB.
5293 .IPs profile=<value>
5294 Several profiles are available for convenience:
5295 .PD 0
5296 .RSs
5297 .IPs default
5298 will be used if nothing else was specified (fcut=700, feed=45)
5299 .IPs "cmoy\ "
5300 Chu Moy circuit implementation (fcut=700, feed=60)
5301 .IPs jmeier
5302 Jan Meier circuit implementation (fcut=650, feed=95)
5305 .sp 1
5307 If fcut or feed options are specified together with a profile, they
5308 will be applied on top of the selected profile.
5310 .PD 1
5313 .B hrtf[=flag]
5314 Head-related transfer function: Converts multichannel audio to
5315 2 channel output for headphones, preserving the spatiality of the sound.
5316 .sp 1
5317 .PD 0
5319 .IPs "Flag  Meaning"
5320 .IPs "m     matrix decoding of the rear channel"
5321 .IPs "s     2-channel matrix decoding"
5322 .IPs "0     no matrix decoding (default)"
5324 .PD 1
5327 .B equalizer=[g1:g2:g3:...:g10]
5328 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
5329 This means that it works regardless of what type of audio is being played back.
5330 The center frequencies for the 10 bands are:
5331 .sp 1
5332 .PD 0
5334 .IPs "No. frequency"
5335 .IPs "0    31.25 Hz"
5336 .IPs "1    62.50 Hz"
5337 .IPs "2   125.00 Hz"
5338 .IPs "3   250.00 Hz"
5339 .IPs "4   500.00 Hz"
5340 .IPs "5    1.00 kHz"
5341 .IPs "6    2.00 kHz"
5342 .IPs "7    4.00 kHz"
5343 .IPs "8    8.00 kHz"
5344 .IPs "9   16.00 kHz"
5346 .PD 1
5347 .sp 1
5349 If the sample rate of the sound being played is lower than the center
5350 frequency for a frequency band, then that band will be disabled.
5351 A known bug with this filter is that the characteristics for the
5352 uppermost band are not completely symmetric if the sample
5353 rate is close to the center frequency of that band.
5354 This problem can be worked around by upsampling the sound
5355 using the resample filter before it reaches this filter.
5357 .PD 0
5358 .RSs
5359 .IPs <g1>:<g2>:<g3>:...:<g10>
5360 floating point numbers representing the gain in dB
5361 for each frequency band (\-12\-12)
5363 .sp 1
5365 .I EXAMPLE:
5367 .RSs
5368 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
5369 Would amplify the sound in the upper and lower frequency region
5370 while canceling it almost completely around 1kHz.
5372 .PD 1
5375 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
5376 Can be used for adding, removing, routing and copying audio channels.
5377 If only <nch> is given the default routing is used, it works as
5378 follows: If the number of output channels is bigger than the number of
5379 input channels empty channels are inserted (except mixing from mono to
5380 stereo, then the mono channel is repeated in both of the output
5381 channels).
5382 If the number of output channels is smaller than the number
5383 of input channels the exceeding channels are truncated.
5384 .PD 0
5385 .RSs
5386 .IPs <nch>
5387 number of output channels (1\-8)
5388 .IPs "<nr>\ "
5389 number of routes (1\-8)
5390 .IPs <from1:to1:from2:to2:from3:to3:...>
5391 Pairs of numbers between 0 and 7 that define where to route each channel.
5393 .sp 1
5395 .I EXAMPLE:
5397 .RSs
5398 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5399 Would change the number of channels to 4 and set up 4 routes that
5400 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5401 Observe that if media containing two channels was played back, channels
5402 2 and 3 would contain silence but 0 and 1 would still be swapped.
5403 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5404 Would change the number of channels to 6 and set up 4 routes
5405 that copy channel 0 to channels 0 to 3.
5406 Channel 4 and 5 will contain silence.
5408 .PD 1
5411 .B format[=format] (also see \-format)
5412 Convert between different sample formats.
5413 Automatically enabled when needed by the sound card or another filter.
5414 .PD 0
5415 .RSs
5416 .IPs <format>
5417 Sets the desired format.
5418 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5419 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5420 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5421 and 'ne' the endianness of the computer MPlayer is running on).
5422 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5423 Exceptions to this rule that are also valid format specifiers: u8, s8,
5424 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5426 .PD 1
5429 .B volume[=v[:sc]]
5430 Implements software volume control.
5431 Use this filter with caution since it can reduce the signal
5432 to noise ratio of the sound.
5433 In most cases it is best to set the level for the PCM sound to max,
5434 leave this filter out and control the output level to your
5435 speakers with the master volume control of the mixer.
5436 In case your sound card has a digital PCM mixer instead of an analog
5437 one, and you hear distortion, use the MASTER mixer instead.
5438 If there is an external amplifier connected to the computer (this
5439 is almost always the case), the noise level can be minimized by
5440 adjusting the master level and the volume knob on the amplifier
5441 until the hissing noise in the background is gone.
5443 This filter has a second feature: It measures the overall maximum
5444 sound level and prints out that level when MPlayer exits.
5445 This volume estimate can be used for setting the sound level in
5446 MEncoder such that the maximum dynamic range is utilized.
5447 This feature currently only works with floating-point data,
5448 use e.g. \-af\-adv force=5, or use \-af stats.
5450 .I NOTE:
5451 This filter is not reentrant and can therefore only be enabled
5452 once for every audio stream.
5453 .PD 0
5454 .RSs
5455 .IPs "<v>\ \ "
5456 Sets the desired gain in dB for all channels in the stream
5457 from \-200dB to +60dB, where \-200dB mutes the sound
5458 completely and +60dB equals a gain of 1000 (default: 0).
5459 .IPs "<sc>\ "
5460 Turns soft clipping on (1) or off (0).
5461 Soft-clipping can make the sound more smooth if very
5462 high volume levels are used.
5463 Enable this option if the dynamic range of the
5464 loudspeakers is very low.
5466 .I WARNING:
5467 This feature creates distortion and should be considered a last resort.
5469 .sp 1
5471 .I EXAMPLE:
5473 .RSs
5474 .IPs "mplayer \-af volume=10.1:0 media.avi"
5475 Would amplify the sound by 10.1dB and hard-clip if the
5476 sound level is too high.
5478 .PD 1
5481 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5482 Mixes channels arbitrarily.
5483 Basically a combination of the volume and the channels filter
5484 that can be used to down-mix many channels to only a few,
5485 e.g.\& stereo to mono or vary the "width" of the center
5486 speaker in a surround sound system.
5487 This filter is hard to use, and will require some tinkering
5488 before the desired result is obtained.
5489 The number of options for this filter depends on
5490 the number of output channels.
5491 An example how to downmix a six-channel file to two channels with
5492 this filter can be found in the examples section near the end.
5493 .PD 0
5494 .RSs
5495 .IPs "<n>\ \ "
5496 number of output channels (1\-8)
5497 .IPs <Lij>
5498 How much of input channel i is mixed into output channel j (0\-1).
5499 So in principle you first have n numbers saying what to do with the
5500 first input channel, then n numbers that act on the second input channel
5501 etc.
5502 If you do not specify any numbers for some input channels, 0 is assumed.
5504 .sp 1
5506 .I EXAMPLE:
5508 .RSs
5509 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5510 Would down-mix from stereo to mono.
5511 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5512 Would give 3 channel output leaving channels 0 and 1 intact,
5513 and mix channels 0 and 1 into output channel 2 (which could
5514 be sent to a subwoofer for example).
5516 .PD 1
5519 .B sub[=fc:ch]
5520 Adds a subwoofer channel to the audio stream.
5521 The audio data used for creating the subwoofer channel is
5522 an average of the sound in channel 0 and channel 1.
5523 The resulting sound is then low-pass filtered by a 4th order
5524 Butterworth filter with a default cutoff frequency of 60Hz
5525 and added to a separate channel in the audio stream.
5527 .I Warning:
5528 Disable this filter when you are playing DVDs with Dolby
5529 Digital 5.1 sound, otherwise this filter will disrupt
5530 the sound to the subwoofer.
5531 .PD 0
5532 .RSs
5533 .IPs "<fc>\ "
5534 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5535 For the best result try setting the cutoff frequency as low as possible.
5536 This will improve the stereo or surround sound experience.
5537 .IPs "<ch>\ "
5538 Determines the channel number in which to insert the sub-channel audio.
5539 Channel number can be between 0 and 7 (default: 5).
5540 Observe that the number of channels will automatically
5541 be increased to <ch> if necessary.
5543 .sp 1
5545 .I EXAMPLE:
5547 .RSs
5548 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5549 Would add a sub-woofer channel with a cutoff frequency of
5550 100Hz to output channel 4.
5552 .PD 1
5555 .B "center\ "
5556 Creates a center channel from the front channels.
5557 May currently be low quality as it does not implement a
5558 high-pass filter for proper extraction yet, but averages and
5559 halves the channels instead.
5560 .PD 0
5561 .RSs
5562 .IPs "<ch>\ "
5563 Determines the channel number in which to insert the center channel.
5564 Channel number can be between 0 and 7 (default: 5).
5565 Observe that the number of channels will automatically
5566 be increased to <ch> if necessary.
5568 .PD 1
5571 .B surround[=delay]
5572 Decoder for matrix encoded surround sound like Dolby Surround.
5573 Many files with 2 channel audio actually contain matrixed surround sound.
5574 Requires a sound card supporting at least 4 channels.
5575 .PD 0
5576 .RSs
5577 .IPs <delay>
5578 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5579 This delay should be set as follows: If d1 is the distance
5580 from the listening position to the front speakers and d2 is the distance
5581 from the listening position to the rear speakers, then the delay should
5582 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5584 .sp 1
5586 .I EXAMPLE:
5588 .RSs
5589 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5590 Would add surround sound decoding with 15ms delay for the sound to the
5591 rear speakers.
5593 .PD 1
5596 .B delay[=ch1:ch2:...]
5597 Delays the sound to the loudspeakers such that the sound from the
5598 different channels arrives at the listening position simultaneously.
5599 It is only useful if you have more than 2 loudspeakers.
5600 .PD 0
5601 .RSs
5602 .IPs ch1,ch2,...
5603 The delay in ms that should be imposed on each channel
5604 (floating point number between 0 and 1000).
5606 .PD 1
5607 .sp 1
5609 To calculate the required delay for the different channels do as follows:
5610 .IP 1. 3
5611 Measure the distance to the loudspeakers in meters in relation
5612 to your listening position, giving you the distances s1 to s5
5613 (for a 5.1 system).
5614 There is no point in compensating for the subwoofer (you will not hear the
5615 difference anyway).
5616 .IP 2. 3
5617 Subtract the distances s1 to s5 from the maximum distance,
5618 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5619 .IP 3.
5620 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5622 .PD 0
5623 .sp 1
5625 .I EXAMPLE:
5627 .RSs
5628 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5629 Would delay front left and right by 10.5ms, the two rear channels
5630 and the sub by 0ms and the center channel by 7ms.
5632 .PD 1
5635 .B export[=mmapped_file[:nsamples]]
5636 Exports the incoming signal to other processes using memory mapping (mmap()).
5637 Memory mapped areas contain a header:
5638 .sp 1
5640 int nch                      /*number of channels*/
5641 int size                     /*buffer size*/
5642 unsigned long long counter   /*Used to keep sync, updated every
5643                                time new data is exported.*/
5645 .sp 1
5646 The rest is payload (non-interleaved) 16 bit data.
5647 .PD 0
5648 .RSs
5649 .IPs <mmapped_file>
5650 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5651 .IPs <nsamples>
5652 number of samples per channel (default: 512)
5654 .sp 1
5656 .I EXAMPLE:
5658 .RSs
5659 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5660 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5662 .PD 1
5665 .B extrastereo[=mul]
5666 (Linearly) increases the difference between left and right channels
5667 which adds some sort of "live" effect to playback.
5668 .PD 0
5669 .RSs
5670 .IPs <mul>
5671 Sets the difference coefficient (default: 2.5).
5672 0.0 means mono sound (average of both channels), with 1.0 sound will be
5673 unchanged, with \-1.0 left and right channels will be swapped.
5675 .PD 1
5678 .B volnorm[=method:target]
5679 Maximizes the volume without distorting the sound.
5680 .PD 0
5681 .RSs
5682 .IPs <method>
5683 Sets the used method.
5684 .RSss
5685 1: Use a single sample to smooth the variations via the standard
5686 weighted mean over past samples (default).
5688 2: Use several samples to smooth the variations via the standard
5689 weighted mean over past samples.
5690 .REss
5691 .IPs <target>
5692 Sets the target amplitude as a fraction of the maximum for the
5693 sample type (default: 0.25).
5695 .PD 1
5698 .B ladspa=file:label[:controls...]
5699 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5700 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5701 .PD 0
5702 .RSs
5703 .IPs <file>
5704 Specifies the LADSPA plugin library file.
5705 If LADSPA_PATH is set, it searches for the specified file.
5706 If it is not set, you must supply a fully specified pathname.
5707 .IPs <label>
5708 Specifies the filter within the library.
5709 Some libraries contain only one filter, but others contain many of them.
5710 Entering 'help' here, will list all available filters within the specified
5711 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5712 .IPs <controls>
5713 Controls are zero or more floating point values that determine the
5714 behavior of the loaded plugin (for example delay, threshold or gain).
5715 In verbose mode (add \-v to the MPlayer command line), all available controls
5716 and their valid ranges are printed.
5717 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5719 .PD 1
5722 .B "comp\ \ \ "
5723 Compressor/expander filter usable for microphone input.
5724 Prevents artifacts on very loud sound and raises the volume on
5725 very low sound.
5726 This filter is untested, maybe even unusable.
5729 .B "gate\ \ \ "
5730 Noise gate filter similar to the comp audio filter.
5731 This filter is untested, maybe even unusable.
5734 .B karaoke
5735 Simple voice removal filter exploiting the fact that voice is
5736 usually recorded with mono gear and later 'center' mixed onto
5737 the final audio stream.
5738 Beware that this filter will turn your signal into mono.
5739 Works well for 2 channel tracks; do not bother trying it
5740 on anything but 2 channel stereo.
5743 .B scaletempo[=option1:option2:...]
5744 Scales audio tempo without altering pitch, optionally synced to playback
5745 speed (default).
5747 This works by playing \'stride\' ms of audio at normal speed then
5748 consuming \'stride*scale\' ms of input audio.
5749 It pieces the strides together by blending \'overlap\'% of stride with
5750 audio following the previous stride.
5751 It optionally performs a short statistical analysis on the next \'search\'
5752 ms of audio to determine the best overlap position.
5753 .PD 0
5754 .RSs
5755 .IPs scale=<amount>
5756 Nominal amount to scale tempo.
5757 Scales this amount in addition to speed.
5758 (default: 1.0)
5759 .IPs stride=<amount>
5760 Length in milliseconds to output each stride.
5761 Too high of value will cause noticable skips at high scale amounts and
5762 an echo at low scale amounts.
5763 Very low values will alter pitch.
5764 Increasing improves performance.
5765 (default: 60)
5766 .IPs overlap=<percent>
5767 Percentage of stride to overlap.
5768 Decreasing improves performance.
5769 (default: .20)
5770 .IPs search=<amount>
5771 Length in milliseconds to search for best overlap position.
5772 Decreasing improves performance greatly.
5773 On slow systems, you will probably want to set this very low.
5774 (default: 14)
5775 .IPs speed=<tempo|pitch|both|none>
5776 Set response to speed change.
5777 .RSss
5778 .IPs tempo
5779 Scale tempo in sync with speed (default).
5780 .IPs pitch
5781 Reverses effect of filter.
5782 Scales pitch without altering tempo.
5783 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5784 to your input.conf to step by musical semi-tones.
5785 .I WARNING:
5786 Loses sync with video.
5787 .IPs both
5788 Scale both tempo and pitch.
5789 .IPs none
5790 Ignore speed changes.
5793 .sp 1
5795 .I EXAMPLE:
5797 .RSs
5798 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5799 Would playback media at 1.2x normal speed, with audio at normal pitch.
5800 Changing playback speed, would change audio tempo to match.
5801 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5802 Would playback media at 1.2x normal speed, with audio at normal pitch,
5803 but changing playback speed has no effect on audio tempo.
5804 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5805 Would tweak the quality and performace parameters.
5806 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5807 Would make scaletempo use float code.
5808 Maybe faster on some platforms.
5809 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5810 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5811 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5813 .PD 1
5816 .B "stats\ \ "
5817 Collects and prints statistics about the audio stream, especially the volume.
5818 These statistics are especially intended to help adjusting the volume while
5819 avoiding clipping.
5820 The volumes are printed in dB and compatible with the volume audio filter.
5824 .SH "VIDEO FILTERS"
5825 Video filters allow you to modify the video stream and its properties.
5826 The syntax is:
5829 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5830 Setup a chain of video filters.
5832 Many parameters are optional and set to default values if omitted.
5833 To explicitly use a default value set a parameter to '\-1'.
5834 Parameters w:h means width x height in pixels, x:y means x;y position counted
5835 from the upper left corner of the bigger image.
5837 .I NOTE:
5838 To get a full list of available video filters, see \-vf help.
5839 .sp 1
5840 Video filters are managed in lists.
5841 There are a few commands to manage the filter list.
5844 .B \-vf\-add <filter1[,filter2,...]>
5845 Appends the filters given as arguments to the filter list.
5848 .B \-vf\-pre <filter1[,filter2,...]>
5849 Prepends the filters given as arguments to the filter list.
5852 .B \-vf\-del <index1[,index2,...]>
5853 Deletes the filters at the given indexes.
5854 Index numbers start at 0, negative numbers address the end of the
5855 list (\-1 is the last).
5858 .B \-vf\-clr
5859 Completely empties the filter list.
5861 With filters that support it, you can access parameters by their name.
5864 .B \-vf <filter>=help
5865 Prints the parameter names and parameter value ranges for a particular
5866 filter.
5869 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5870 Sets a named parameter to the given value.
5871 Use on and off or yes and no to set flag parameters.
5873 Available filters are:
5876 .B crop[=w:h:x:y]
5877 Crops the given part of the image and discards the rest.
5878 Useful to remove black bands from widescreen movies.
5879 .PD 0
5880 .RSs
5881 .IPs <w>,<h>
5882 Cropped width and height, defaults to original width and height.
5883 .IPs <x>,<y>
5884 Position of the cropped picture, defaults to center.
5886 .PD 1
5889 .B cropdetect[=limit:round[:reset]]
5890 Calculates necessary cropping parameters and prints the recommended parameters
5891 to stdout.
5892 .PD 0
5893 .RSs
5894 .IPs <limit>
5895 Threshold, which can be optionally specified from nothing (0) to
5896 everything (255) (default: 24).
5898 .IPs <round>
5899 Value which the width/\:height should be divisible by (default: 16).
5900 The offset is automatically adjusted to center the video.
5901 Use 2 to get only even dimensions (needed for 4:2:2 video).
5902 16 is best when encoding to most video codecs.
5904 .IPs <reset>
5905 Counter that determines after how many frames cropdetect will reset the
5906 previously detected largest video area and start over to detect the current
5907 optimal crop area (default: 0).
5908 This can be useful when channel logos distort the video area.
5909 0 indicates never reset and return the largest area encountered during playback.
5911 .PD 1
5914 .B rectangle[=w:h:x:y]
5915 Draws a rectangle of the requested width and height at the specified
5916 coordinates over the image and prints current rectangle parameters
5917 to the console.
5918 This can be used to find optimal cropping parameters.
5919 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5920 you can move and resize the rectangle on the fly.
5921 .PD 0
5922 .RSs
5923 .IPs <w>,<h>
5924 width and height (default: \-1, maximum possible width where boundaries
5925 are still visible.)
5926 .IPs <x>,<y>
5927 top left corner position (default: \-1, uppermost leftmost)
5929 .PD 1
5932 .B expand[=w:h:x:y:o:a:r]
5933 Expands (not scales) movie resolution to the given value and places the
5934 unscaled original at coordinates x, y.
5935 Can be used for placing subtitles/\:OSD in the resulting black bands.
5936 .RSs
5937 .IPs <w>,<h>
5938 Expanded width,height (default: original width,height).
5939 Negative values for w and h are treated as offsets to the original size.
5940 .sp 1
5941 .I EXAMPLE:
5942 .PD 0
5943 .RSs
5944 .IP expand=0:\-50:0:0
5945 Adds a 50 pixel border to the bottom of the picture.
5947 .PD 1
5948 .IPs <x>,<y>
5949 position of original image on the expanded image (default: center)
5950 .IPs "<o>\ \ "
5951 OSD/\:subtitle rendering
5952 .RSss
5953 0: disable (default)
5955 1: enable
5956 .REss
5957 .IPs "<a>\ \ "
5958 Expands to fit an aspect instead of a resolution (default: 0).
5959 .sp 1
5960 .I EXAMPLE:
5961 .PD 0
5962 .RSs
5963 .IP expand=800:::::4/3
5964 Expands to 800x600, unless the source is higher resolution, in which
5965 case it expands to fill a 4/3 aspect.
5967 .PD 1
5968 .IPs "<r>\ \ "
5969 Rounds up to make both width and height divisible by <r> (default: 1).
5973 .B flip (also see \-flip)
5974 Flips the image upside down.
5977 .B "mirror\ "
5978 Mirrors the image on the Y axis.
5981 .B rotate[=<0\-7>]
5982 Rotates the image by 90 degrees and optionally flips it.
5983 For values between 4\-7 rotation is only done if the movie geometry is
5984 portrait and not landscape.
5985 .RSs
5986 .IPs 0
5987 Rotate by 90 degrees clockwise and flip (default).
5988 .IPs 1
5989 Rotate by 90 degrees clockwise.
5990 .IPs 2
5991 Rotate by 90 degrees counterclockwise.
5992 .IPs 3
5993 Rotate by 90 degrees counterclockwise and flip.
5997 .B scale[=w:h[:interlaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5998 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5999 colorspace conversion (also see \-sws).
6000 .RSs
6001 .IPs <w>,<h>
6002 scaled width/\:height (default: original width/\:height)
6004 .I NOTE:
6005 If \-zoom is used, and underlying filters (including libvo) are
6006 incapable of scaling, it defaults to d_width/\:d_height!
6007 .RSss
6008  0:   scaled d_width/\:d_height
6010 \-1:   original width/\:height
6012 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
6014 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
6016 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
6017 .REss
6018 .IPs <interlaced>
6019 Toggle interlaced scaling.
6020 .RSss
6021 0: off (default)
6023 1: on
6024 .REss
6025 .IPs <chr_drop>
6026 chroma skipping
6027 .RSss
6028 0: Use all available input lines for chroma.
6030 1: Use only every 2. input line for chroma.
6032 2: Use only every 4. input line for chroma.
6034 3: Use only every 8. input line for chroma.
6035 .REss
6036 .IPs "<par>[:<par2>] (also see \-sws)"
6037 Set some scaling parameters depending on the type of scaler selected
6038 with \-sws.
6039 .RSss
6040 \-sws 2 (bicubic):  B (blurring) and C (ringing)
6042 0.00:0.60 default
6044 0.00:0.75 VirtualDub's "precise bicubic"
6046 0.00:0.50 Catmull-Rom spline
6048 0.33:0.33 Mitchell-Netravali spline
6050 1.00:0.00 cubic B-spline
6052 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
6054 \-sws 9 (lanczos):  filter length (1\-10)
6055 .REss
6056 .IPs <presize>
6057 Scale to preset sizes.
6058 .RSss
6059 qntsc:   352x240 (NTSC quarter screen)
6061 qpal:    352x288 (PAL quarter screen)
6063 ntsc:    720x480 (standard NTSC)
6065 pal:     720x576 (standard PAL)
6067 sntsc:   640x480 (square pixel NTSC)
6069 spal:    768x576 (square pixel PAL)
6070 .REss
6071 .IPs <noup>
6072 Disallow upscaling past the original dimensions.
6073 .RSss
6074 0: Allow upscaling (default).
6076 1: Disallow upscaling if one dimension exceeds its original value.
6078 2: Disallow upscaling if both dimensions exceed their original values.
6079 .REss
6080 .IPs <arnd>
6081 Accurate rounding for the vertical scaler, which may be faster
6082 or slower than the default rounding.
6083 .RSss
6084 0: Disable accurate rounding (default).
6086 1: Enable accurate rounding.
6087 .REss
6091 .B dsize[=aspect|w:h:aspect-method:r]
6092 Changes the intended display size/\:aspect at an arbitrary point in the
6093 filter chain.
6094 Aspect can be given as a fraction (4/3) or floating point number
6095 (1.33).
6096 Alternatively, you may specify the exact display width and height
6097 desired.
6098 Note that this filter does
6099 .B not
6100 do any scaling itself; it just affects
6101 what later scalers (software or hardware) will do when auto-scaling to
6102 correct aspect.
6103 .RSs
6104 .IPs <w>,<h>
6105 New display width and height.
6106 Can also be these special values:
6107 .RSss
6108  0:   original display width and height
6110 \-1:   original video width and height (default)
6112 \-2:   Calculate w/h using the other dimension and the original display
6113 aspect ratio.
6115 \-3:   Calculate w/h using the other dimension and the original video
6116 aspect ratio.
6117 .REss
6118 .sp 1
6119 .I EXAMPLE:
6120 .PD 0
6121 .RSs
6122 .IP dsize=800:\-2
6123 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
6124 800x450 for a 16/9 aspect video.
6126 .IPs <aspect-method>
6127 Modifies width and height according to original aspect ratios.
6128 .RSss
6129 \-1: Ignore original aspect ratio (default).
6131  0: Keep display aspect ratio by using <w> and <h> as maximum
6132 resolution.
6134  1: Keep display aspect ratio by using <w> and <h> as minimum
6135 resolution.
6137  2: Keep video aspect ratio by using <w> and <h> as maximum
6138 resolution.
6140  3: Keep video aspect ratio by using <w> and <h> as minimum
6141 resolution.
6142 .REss
6143 .sp 1
6144 .I EXAMPLE:
6145 .PD 0
6146 .RSs
6147 .IP dsize=800:600:0
6148 Specifies a display resolution of at most 800x600, or smaller, in order
6149 to keep aspect.
6151 .PD 1
6152 .IPs "<r>\ \ "
6153 Rounds up to make both width and height divisible by <r> (default: 1).
6157 .B "yvu9\ \ \ "
6158 Forces software YVU9 to YV12 colorspace conversion.
6159 Deprecated in favor of the software scaler.
6162 .B "yuvcsp\ "
6163 Clamps YUV color values to the CCIR 601 range without doing real conversion.
6166 .B palette
6167 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
6170 .B format[=fourcc[:outfourcc]]
6171 Restricts the colorspace for the next filter without doing any conversion.
6172 Use together with the scale filter for a real conversion.
6174 .I NOTE:
6175 For a list of available formats see format=fmt=help.
6176 .PD 0
6177 .RSs
6178 .IPs <fourcc>
6179 format name like rgb15, bgr24, yv12, etc (default: yuy2)
6180 .IPs <outfourcc>
6181 Format name that should be substituted for the output.
6182 If this is not 100% compatible with the <fourcc> value it will crash.
6184 Valid examples:
6186 format=rgb24:bgr24 format=yuyv:yuy2
6188 Invalid examples (will crash):
6190 format=rgb24:yv12
6192 .PD 1
6195 .B noformat[=fourcc]
6196 Restricts the colorspace for the next filter without doing any conversion.
6197 Unlike the format filter, this will allow any colorspace
6198 .B except
6199 the one you specify.
6201 .I NOTE:
6202 For a list of available formats see noformat=fmt=help.
6203 .PD 0
6204 .RSs
6205 .IPs <fourcc>
6206 format name like rgb15, bgr24, yv12, etc (default: yv12)
6208 .PD 1
6211 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
6212 Enables the specified chain of postprocessing subfilters.
6213 Subfilters must be separated by '/' and can be disabled by
6214 prepending a '\-'.
6215 Each subfilter and some options have a short and a long name that can be
6216 used interchangeably, i.e.\& dr/dering are the same.
6217 All subfilters share common options to determine their scope:
6218 .PD 0
6219 .RSs
6220 .IPs a/autoq
6221 Automatically switch the subfilter off if the CPU is too slow.
6222 .IPs c/chrom
6223 Do chrominance filtering, too (default).
6224 .IPs y/nochrom
6225 Do luminance filtering only (no chrominance).
6226 .IPs n/noluma
6227 Do chrominance filtering only (no luminance).
6229 .PD 1
6230 .sp 1
6233 .I NOTE:
6234 \-pphelp shows a list of available subfilters.
6235 .sp 1
6236 Available subfilters are
6238 .RSs
6239 .IPs hb/hdeblock[:difference[:flatness]]
6240 horizontal deblocking filter
6241 .RSss
6242 <difference>: Difference factor where higher values mean
6243 more deblocking (default: 32).
6245 <flatness>: Flatness threshold where lower values mean
6246 more deblocking (default: 39).
6247 .REss
6248 .IPs vb/vdeblock[:difference[:flatness]]
6249 vertical deblocking filter
6250 .RSss
6251 <difference>: Difference factor where higher values mean
6252 more deblocking (default: 32).
6254 <flatness>: Flatness threshold where lower values mean
6255 more deblocking (default: 39).
6256 .REss
6257 .IPs ha/hadeblock[:difference[:flatness]]
6258 accurate horizontal deblocking filter
6259 .RSss
6260 <difference>: Difference factor where higher values mean
6261 more deblocking (default: 32).
6263 <flatness>: Flatness threshold where lower values mean
6264 more deblocking (default: 39).
6265 .REss
6266 .IPs va/vadeblock[:difference[:flatness]]
6267 accurate vertical deblocking filter
6268 .RSss
6269 <difference>: Difference factor where higher values mean
6270 more deblocking (default: 32).
6272 <flatness>: Flatness threshold where lower values mean
6273 more deblocking (default: 39).
6274 .REss
6275 .sp 1
6276 The horizontal and vertical deblocking filters share the
6277 difference and flatness values so you cannot set
6278 different horizontal and vertical thresholds.
6279 .sp 1
6280 .IPs h1/x1hdeblock
6281 experimental horizontal deblocking filter
6282 .IPs v1/x1vdeblock
6283 experimental vertical deblocking filter
6284 .IPs dr/dering
6285 deringing filter
6286 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
6287 temporal noise reducer
6288 .RSss
6289 <threshold1>: larger -> stronger filtering
6291 <threshold2>: larger -> stronger filtering
6293 <threshold3>: larger -> stronger filtering
6294 .REss
6295 .IPs al/autolevels[:f/fullyrange]
6296 automatic brightness / contrast correction
6297 .RSss
6298 f/fullyrange: Stretch luminance to (0\-255).
6299 .REss
6300 .IPs lb/linblenddeint
6301 Linear blend deinterlacing filter that deinterlaces the given block
6302 by filtering all lines with a (1 2 1) filter.
6303 .IPs li/linipoldeint
6304 Linear interpolating deinterlacing filter that deinterlaces the given block
6305 by linearly interpolating every second line.
6306 .IPs ci/cubicipoldeint
6307 Cubic interpolating deinterlacing filter deinterlaces the given block
6308 by cubically interpolating every second line.
6309 .IPs md/mediandeint
6310 Median deinterlacing filter that deinterlaces the given block
6311 by applying a median filter to every second line.
6312 .IPs fd/ffmpegdeint
6313 FFmpeg deinterlacing filter that deinterlaces the given block
6314 by filtering every second line with a (\-1 4 2 4 \-1) filter.
6315 .IPs l5/lowpass5
6316 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
6317 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
6318 .IPs fq/forceQuant[:quantizer]
6319 Overrides the quantizer table from the input with the constant
6320 quantizer you specify.
6321 .RSss
6322 <quantizer>: quantizer to use
6323 .REss
6324 .IPs de/default
6325 default pp filter combination (hb:a,vb:a,dr:a)
6326 .IPs fa/fast
6327 fast pp filter combination (h1:a,v1:a,dr:a)
6328 .IPs "ac\ \ \ "
6329 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
6332 .sp 1
6333 .I EXAMPLE:
6335 .PD 0
6336 .RSs
6337 .IPs "\-vf pp=hb/vb/dr/al"
6338 horizontal and vertical deblocking, deringing and automatic
6339 brightness/\:contrast
6340 .IPs "\-vf pp=de/\-al"
6341 default filters without brightness/\:contrast correction
6342 .IPs "\-vf pp=default/tmpnoise:1:2:3"
6343 Enable default filters & temporal denoiser.
6344 .IPs "\-vf pp=hb:y/vb:a"
6345 Horizontal deblocking on luminance only, and switch vertical deblocking
6346 on or off automatically depending on available CPU time.
6348 .PD 1
6351 .B spp[=quality[:qp[:mode]]]
6352 Simple postprocessing filter that compresses and decompresses the
6353 image at several (or \- in the case of quality level 6 \- all)
6354 shifts and averages the results.
6355 .RSs
6356 .IPs <quality>
6357 0\-6 (default: 3)
6358 .IPs "<qp>\ "
6359 Force quantization parameter (default: 0, use QP from video).
6360 .IPs <mode>
6361 0: hard thresholding (default)
6363 1: soft thresholding (better deringing, but blurrier)
6365 4: like 0, but also use B-frames' QP (may cause flicker)
6367 5: like 1, but also use B-frames' QP (may cause flicker)
6371 .B uspp[=quality[:qp]]
6372 Ultra simple & slow postprocessing filter that compresses and
6373 decompresses the image at several (or \- in the case of quality
6374 level 8 \- all) shifts and averages the results.
6375 The way this differs from the behavior of spp is that uspp actually
6376 encodes & decodes each case with libavcodec Snow, whereas spp uses
6377 a simplified intra only 8x8 DCT similar to MJPEG.
6378 .RSs
6379 .IPs <quality>
6380 0\-8 (default: 3)
6381 .IPs "<qp>\ "
6382 Force quantization parameter (default: 0, use QP from video).
6386 .B fspp[=quality[:qp[:strength[:bframes]]]]
6387 faster version of the simple postprocessing filter
6388 .RSs
6389 .IPs <quality>
6390 4\-5 (equivalent to spp; default: 4)
6391 .IPs "<qp>\ "
6392 Force quantization parameter (default: 0, use QP from video).
6393 .IPs <\-15\-32>
6394 Filter strength, lower values mean more details but also more artifacts,
6395 while higher values make the image smoother but also blurrier (default:
6396 0 \- PSNR optimal).
6397 .IPs <bframes>
6398 0: do not use QP from B-frames (default)
6400 1: use QP from B-frames too (may cause flicker)
6404 .B pp7[=qp[:mode]]
6405 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6406 only the center sample is used after IDCT.
6407 .RSs
6408 .IPs "<qp>\ "
6409 Force quantization parameter (default: 0, use QP from video).
6410 .IPs <mode>
6411 0: hard thresholding
6413 1: soft thresholding (better deringing, but blurrier)
6415 2: medium thresholding (default, good results)
6419 .B qp=equation
6420 quantization parameter (QP) change filter
6421 .RSs
6422 .IPs <equation>
6423 some equation like "2+2*sin(PI*qp)"
6427 .B geq=equation
6428 generic equation change filter
6429 .RSs
6430 .IPs <equation>
6431 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6432 You can use whitespace to make the equation more readable.
6433 There are a couple of constants that can be used in the equation:
6434 .RSss
6435 PI: the number pi
6437 E: the number e
6439 X / Y: the coordinates of the current sample
6441 W / H: width and height of the image
6443 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6444 1,1 and 0.5,0.5 for YUV 4:2:0.
6446 p(x,y): returns the value of the pixel at location x/y of the current plane.
6447 .REss
6451 .B "test\ \ \ "
6452 Generate various test patterns.
6455 .B rgbtest[=width:height]
6456 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6457 You should see a red, green and blue stripe from top to bottom.
6458 .RSs
6459 .IPs <width>
6460 Desired width of generated image (default: 0).
6461 0 means width of input image.
6463 .IPs <height>
6464 Desired height of generated image (default: 0).
6465 0 means height of input image.
6469 .B lavc[=quality:fps]
6470 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6471 .RSs
6472 .IPs <quality>
6473 1\-31: fixed qscale
6475 32\-:  fixed bitrate in kbits
6476 .IPs <fps>
6477 force output fps (float value) (default: 0, autodetect based on height)
6481 .B dvbscale[=aspect]
6482 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6483 calculating the y axis scaling in software to keep aspect.
6484 Only useful together with expand and scale.
6485 .RSs
6486 .IPs <aspect>
6487 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6488 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6490 .sp 1
6492 .I EXAMPLE:
6494 .PD 0
6495 .RSs
6496 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6497 FIXME: Explain what this does.
6499 .PD 1
6502 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6503 Adds noise.
6504 .PD 0
6505 .RSs
6506 .IPs <0\-100>
6507 luma noise
6508 .IPs <0\-100>
6509 chroma noise
6510 .IPs u
6511 uniform noise (gaussian otherwise)
6512 .IPs t
6513 temporal noise (noise pattern changes between frames)
6514 .IPs a
6515 averaged temporal noise (smoother, but a lot slower)
6516 .IPs h
6517 high quality (slightly better looking, slightly slower)
6518 .IPs p
6519 mix random noise with a (semi)regular pattern
6521 .PD 1
6524 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6525 This filter aims to reduce image noise producing smooth images and making still
6526 images really still (This should enhance compressibility.).
6527 .PD 0
6528 .RSs
6529 .IPs <luma_spatial>
6530 spatial luma strength (default: 4)
6531 .IPs <chroma_spatial>
6532 spatial chroma strength (default: 3)
6533 .IPs <luma_tmp>
6534 luma temporal strength (default: 6)
6535 .IPs <chroma_tmp>
6536 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6538 .PD 1
6541 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6542 High precision/\:quality version of the denoise3d filter.
6543 Parameters and usage are the same.
6546 .B ow[=depth[:luma_strength[:chroma_strength]]]
6547 Overcomplete Wavelet denoiser.
6548 .PD 0
6549 .RSs
6550 .IPs <depth>
6551 Larger depth values will denoise lower frequency components more, but
6552 slow down filtering (default: 8).
6553 .IPs <luma_strength>
6554 luma strength (default: 1.0)
6555 .IPs <chroma_strength>
6556 chroma strength (default: 1.0)
6558 .PD 1
6561 .B eq[=brightness:contrast] (OBSOLETE)
6562 Software equalizer with interactive controls just like the hardware
6563 equalizer, for cards/\:drivers that do not support brightness and
6564 contrast controls in hardware.
6565 Might also be useful with MEncoder, either for fixing poorly captured
6566 movies, or for slightly reducing contrast to mask artifacts and get by
6567 with lower bitrates.
6568 .PD 0
6569 .RSs
6570 .IPs <\-100\-100>
6571 initial brightness
6572 .IPs <\-100\-100>
6573 initial contrast
6575 .PD 1
6578 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6579 Alternative software equalizer that uses lookup tables (very slow),
6580 allowing gamma correction in addition to simple brightness
6581 and contrast adjustment.
6582 Note that it uses the same MMX optimized code as \-vf eq if all
6583 gamma values are 1.0.
6584 The parameters are given as floating point values.
6585 .PD 0
6586 .RSs
6587 .IPs <0.1\-10>
6588 initial gamma value (default: 1.0)
6589 .IPs <\-2\-2>
6590 initial contrast, where negative values result in a
6591 negative image (default: 1.0)
6592 .IPs <\-1\-1>
6593 initial brightness (default: 0.0)
6594 .IPs <0\-3>
6595 initial saturation (default: 1.0)
6596 .IPs <0.1\-10>
6597 gamma value for the red component (default: 1.0)
6598 .IPs <0.1\-10>
6599 gamma value for the green component (default: 1.0)
6600 .IPs <0.1\-10>
6601 gamma value for the blue component (default: 1.0)
6602 .IPs <0\-1>
6603 The weight parameter can be used to reduce the effect of a high gamma value on
6604 bright image areas, e.g.\& keep them from getting overamplified and just plain
6605 white.
6606 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6607 at its full strength (default: 1.0).
6609 .PD 1
6612 .B hue[=hue:saturation]
6613 Software equalizer with interactive controls just like the hardware
6614 equalizer, for cards/\:drivers that do not support hue and
6615 saturation controls in hardware.
6616 .PD 0
6617 .RSs
6618 .IPs <\-180\-180>
6619 initial hue (default: 0.0)
6620 .IPs <\-100\-100>
6621 initial saturation, where negative values result
6622 in a negative chroma (default: 1.0)
6624 .PD 1
6627 .B halfpack[=f]
6628 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6629 keeping all chroma samples.
6630 Useful for output to low-resolution display devices when hardware downscaling
6631 is poor quality or is not available.
6632 Can also be used as a primitive luma-only deinterlacer with very low CPU
6633 usage.
6634 .PD 0
6635 .RSs
6636 .IPs "<f>\ \ "
6637 By default, halfpack averages pairs of lines when downsampling.
6638 Any value different from 0 or 1 gives the default (averaging) behavior.
6639 .RSss
6640 0: Only use even lines when downsampling.
6642 1: Only use odd lines when downsampling.
6643 .REss
6645 .PD 1
6648 .B ilpack[=mode]
6649 When interlaced video is stored in YUV 4:2:0 formats, chroma
6650 interlacing does not line up properly due to vertical downsampling of
6651 the chroma channels.
6652 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6653 the chroma lines in their proper locations, so that in any given
6654 scanline, the luma and chroma data both come from the same field.
6655 .PD 0
6656 .RSs
6657 .IPs <mode>
6658 Select the sampling mode.
6659 .RSss
6660 0: nearest-neighbor sampling, fast but incorrect
6662 1: linear interpolation (default)
6663 .REss
6665 .PD 1
6668 .B harddup
6669 Only useful with MEncoder.
6670 If harddup is used when encoding, it will force duplicate frames to be
6671 encoded in the output.
6672 This uses slightly more space, but is necessary for output to MPEG
6673 files or if you plan to demux and remux the video stream after
6674 encoding.
6675 Should be placed at or near the end of the filter chain unless you
6676 have a good reason to do otherwise.
6679 .B softskip
6680 Only useful with MEncoder.
6681 Softskip moves the frame skipping (dropping) step of encoding from
6682 before the filter chain to some point during the filter chain.
6683 This allows filters which need to see all frames (inverse telecine,
6684 temporal denoising, etc.) to function properly.
6685 Should be placed after the filters which need to see all frames and
6686 before any subsequent filters that are CPU-intensive.
6689 .B decimate[=max:hi:lo:frac]
6690 Drops frames that do not differ greatly from the previous frame in
6691 order to reduce framerate.
6692 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6693 streaming over dialup modem), but it could in theory be used for
6694 fixing movies that were inverse-telecined incorrectly.
6695 .PD 0
6696 .RSs
6697 .IPs <max>
6698 Sets the maximum number of consecutive frames which can be
6699 dropped (if positive), or the minimum interval between
6700 dropped frames (if negative).
6701 .IPs <hi>,<lo>,<frac>
6702 A frame is a candidate for dropping if no 8x8 region differs by more
6703 than a threshold of <hi>, and if not more than <frac> portion (1
6704 meaning the whole image) differs by more than a threshold of <lo>.
6705 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6706 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6707 difference for each pixel, or the same spread out differently over the
6708 block.
6710 .PD 1
6713 .B dint[=sense:level]
6714 The drop-deinterlace (dint) filter detects and drops the first from a set
6715 of interlaced video frames.
6716 .PD 0
6717 .RSs
6718 .IPs <0.0\-1.0>
6719 relative difference between neighboring pixels (default: 0.1)
6720 .IPs <0.0\-1.0>
6721 What part of the image has to be detected as interlaced to
6722 drop the frame (default: 0.15).
6724 .PD 1
6727 .B lavcdeint (OBSOLETE)
6728 FFmpeg deinterlacing filter, same as \-vf pp=fd
6731 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6732 Donald Graft's adaptive kernel deinterlacer.
6733 Deinterlaces parts of a video if a configurable threshold is exceeded.
6734 .PD 0
6735 .RSs
6736 .IPs <0\-255>
6737 threshold (default: 10)
6738 .IPs <map>
6739 .RSss
6740 0: Ignore pixels exceeding the threshold (default).
6742 1: Paint pixels exceeding the threshold white.
6743 .REss
6744 .IPs <order>
6745 .RSss
6746 0: Leave fields alone (default).
6748 1: Swap fields.
6749 .REss
6750 .IPs <sharp>
6751 .RSss
6752 0: Disable additional sharpening (default).
6754 1: Enable additional sharpening.
6755 .REss
6756 .IPs <twoway>
6757 .RSss
6758 0: Disable twoway sharpening (default).
6760 1: Enable twoway sharpening.
6761 .REss
6763 .PD 1
6766 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6767 unsharp mask / gaussian blur
6768 .RSs
6769 .IPs "l\ \ \ \ "
6770 Apply effect on luma component.
6771 .IPs "c\ \ \ \ "
6772 Apply effect on chroma components.
6773 .IPs <width>x<height>
6774 width and height of the matrix, odd sized in both directions
6775 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6776 .IPs amount
6777 Relative amount of sharpness/\:blur to add to the image
6778 (a sane range should be \-1.5\-1.5).
6779 .RSss
6780 <0: blur
6782 >0: sharpen
6783 .REss
6787 .B "swapuv\ "
6788 Swap U & V plane.
6791 .B il[=d|i][s][:[d|i][s]]
6792 (De)interleaves lines.
6793 The goal of this filter is to add the ability to process interlaced images
6794 pre-field without deinterlacing them.
6795 You can filter your interlaced DVD and play it on a TV without breaking the
6796 interlacing.
6797 While deinterlacing (with the postprocessing filter) removes interlacing
6798 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6799 2 fields (so called half pictures), so you can process (filter) them
6800 independently and then re-interleave them.
6801 .PD 0
6802 .RSs
6803 .IPs d
6804 deinterleave (placing one above the other)
6805 .IPs i
6806 interleave
6807 .IPs s
6808 swap fields (exchange even & odd lines)
6810 .PD 1
6813 .B fil[=i|d]
6814 (De)interleaves lines.
6815 This filter is very similar to the il filter but much faster, the main
6816 disadvantage is that it does not always work.
6817 Especially if combined with other filters it may produce randomly messed
6818 up images, so be happy if it works but do not complain if it does not for
6819 your combination of filters.
6820 .PD 0
6821 .RSs
6822 .IPs d
6823 Deinterleave fields, placing them side by side.
6824 .IPs i
6825 Interleave fields again (reversing the effect of fil=d).
6827 .PD 1
6830 .B field[=n]
6831 Extracts a single field from an interlaced image using stride arithmetic
6832 to avoid wasting CPU time.
6833 The optional argument n specifies whether to extract the even or the odd
6834 field (depending on whether n is even or odd).
6837 .B detc[=var1=value1:var2=value2:...]
6838 Attempts to reverse the 'telecine' process to recover a clean,
6839 non-interlaced stream at film framerate.
6840 This was the first and most primitive inverse telecine filter to be
6841 added to MPlayer/\:MEncoder.
6842 It works by latching onto the telecine 3:2 pattern and following it as
6843 long as possible.
6844 This makes it suitable for perfectly-telecined material, even in the
6845 presence of a fair degree of noise, but it will fail in the presence
6846 of complex post-telecine edits.
6847 Development on this filter is no longer taking place, as ivtc, pullup,
6848 and filmdint are better for most applications.
6849 The following arguments (see syntax above) may be used to control
6850 detc's behavior:
6851 .RSs
6852 .IPs "<dr>\ "
6853 Set the frame dropping mode.
6854 .RSss
6855 0: Do not drop frames to maintain fixed output framerate (default).
6857 1: Always drop a frame when there have been no drops or telecine
6858 merges in the past 5 frames.
6860 2: Always maintain exact 5:4 input to output frame ratio.
6862 .I NOTE:
6863 Use mode 1 or 2 with MEncoder.
6864 .REss
6865 .IPs "<am>\ "
6866 Analysis mode.
6867 .RSss
6868 0: Fixed pattern with initial frame number specified by <fr>.
6870 1: aggressive search for telecine pattern (default)
6871 .REss
6872 .IPs "<fr>\ "
6873 Set initial frame number in sequence.
6874 0\-2 are the three clean progressive frames; 3 and 4 are the two
6875 interlaced frames.
6876 The default, \-1, means 'not in telecine sequence'.
6877 The number specified here is the type for the imaginary previous
6878 frame before the movie starts.
6879 .IPs "<t0>, <t1>, <t2>, <t3>"
6880 Threshold values to be used in certain modes.
6884 .B ivtc[=1]
6885 Experimental 'stateless' inverse telecine filter.
6886 Rather than trying to lock on to a pattern like the detc filter does,
6887 ivtc makes its decisions independently for each frame.
6888 This will give much better results for material that has undergone
6889 heavy editing after telecine was applied, but as a result it is not as
6890 forgiving of noisy input, for example TV capture.
6891 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6892 detc filter, and should be used with MEncoder but not with MPlayer.
6893 As with detc, you must specify the correct output framerate (\-ofps
6894 24000/1001) when using MEncoder.
6895 Further development on ivtc has stopped, as the pullup and filmdint
6896 filters appear to be much more accurate.
6899 .B pullup[=jl:jr:jt:jb:sb:mp]
6900 Third-generation pulldown reversal (inverse telecine) filter,
6901 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6902 fps progressive content.
6903 The pullup filter is designed to be much more robust than detc or
6904 ivtc, by taking advantage of future context in making its decisions.
6905 Like ivtc, pullup is stateless in the sense that it does not lock onto
6906 a pattern to follow, but it instead looks forward to the following
6907 fields in order to identify matches and rebuild progressive frames.
6908 It is still under development, but believed to be quite accurate.
6909 .RSs
6910 .IPs "jl, jr, jt, and jb"
6911 These options set the amount of "junk" to ignore at
6912 the left, right, top, and bottom of the image, respectively.
6913 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6914 2 lines.
6915 The default is 8 pixels on each side.
6917 .IPs "sb (strict breaks)"
6918 Setting this option to 1 will reduce the chances of
6919 pullup generating an occasional mismatched frame, but it may also
6920 cause an excessive number of frames to be dropped during high motion
6921 sequences.
6922 Conversely, setting it to \-1 will make pullup match fields more
6923 easily.
6924 This may help processing of video where there is slight blurring
6925 between the fields, but may also cause there to be interlaced frames
6926 in the output.
6928 .IPs "mp (metric plane)"
6929 This option may be set to 1 or 2 to use a chroma
6930 plane instead of the luma plane for doing pullup's computations.
6931 This may improve accuracy on very clean source material, but more
6932 likely will decrease accuracy, especially if there is chroma noise
6933 (rainbow effect) or any grayscale video.
6934 The main purpose of setting mp to a chroma plane is to reduce CPU load
6935 and make pullup usable in realtime on slow machines.
6936 .REss
6938 .sp 1
6939 .I NOTE:
6940 Always follow pullup with the softskip filter when encoding to ensure
6941 that pullup is able to see each frame.
6942 Failure to do so will lead to incorrect output and will usually crash,
6943 due to design limitations in the codec/\:filter layer.
6944 .REss
6947 .B filmdint[=options]
6948 Inverse telecine filter, similar to the pullup filter above.
6949 It is designed to handle any pulldown pattern, including mixed soft and
6950 hard telecine and limited support for movies that are slowed down or sped
6951 up from their original framerate for TV.
6952 Only the luma plane is used to find the frame breaks.
6953 If a field has no match, it is deinterlaced with simple linear
6954 approximation.
6955 If the source is MPEG-2, this must be the first filter to allow
6956 access to the field-flags set by the MPEG-2 decoder.
6957 Depending on the source MPEG, you may be fine ignoring this advice, as
6958 long as you do not see lots of "Bottom-first field" warnings.
6959 With no options it does normal inverse telecine, and should be used
6960 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6961 When this filter is used with MPlayer, it will result in an uneven
6962 framerate during playback, but it is still generally better than using
6963 pp=lb or no deinterlacing at all.
6964 Multiple options can be specified separated by /.
6965 .RSs
6966 .IPs crop=<w>:<h>:<x>:<y>
6967 Just like the crop filter, but faster, and works on mixed hard and soft
6968 telecined content as well as when y is not a multiple of 4.
6969 If x or y would require cropping fractional pixels from the chroma
6970 planes, the crop area is extended.
6971 This usually means that x and y must be even.
6972 .IPs io=<ifps>:<ofps>
6973 For each ifps input frames the filter will output ofps frames.
6974 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
6975 This could be used to filter movies that are broadcast on TV at a frame
6976 rate different from their original framerate.
6977 .IPs luma_only=<n>
6978 If n is nonzero, the chroma plane is copied unchanged.
6979 This is useful for YV12 sampled TV, which discards one of the chroma
6980 fields.
6981 .IPs mmx2=<n>
6982 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6983 optimized functions, otherwise, use plain C.
6984 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6985 this option to override auto-detection.
6986 .IPs fast=<n>
6987 The larger n will speed up the filter at the expense of accuracy.
6988 The default value is n=3.
6989 If n is odd, a frame immediately following a frame marked with the
6990 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6991 will not spend any time on soft-telecined MPEG-2 content.
6992 This is the only effect of this flag if MMX2 or 3DNow! is available.
6993 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6994 as with n=2 or 3.
6995 If n=2 or 3, the number of luma levels used to find the frame breaks is
6996 reduced from 256 to 128, which results in a faster filter without losing
6997 much accuracy.
6998 If n=4 or 5, a faster, but much less accurate metric will be used to
6999 find the frame breaks, which is more likely to misdetect high vertical
7000 detail as interlaced content.
7001 .IPs verbose=<n>
7002 If n is nonzero, print the detailed metrics for each frame.
7003 Useful for debugging.
7004 .IPs dint_thres=<n>
7005 Deinterlace threshold.
7006 Used during de-interlacing of unmatched frames.
7007 Larger value means less deinterlacing, use n=256 to completely turn off
7008 deinterlacing.
7009 Default is n=8.
7010 .IPs comb_thres=<n>
7011 Threshold for comparing a top and bottom fields.
7012 Defaults to 128.
7013 .IPs diff_thres=<n>
7014 Threshold to detect temporal change of a field.
7015 Default is 128.
7016 .IPs sad_thres=<n>
7017 Sum of Absolute Difference threshold, default is 64.
7021 .B softpulldown
7022 This filter works only correct with MEncoder and acts on the MPEG-2 flags
7023 used for soft 3:2 pulldown (soft telecine).
7024 If you want to use the ivtc or detc filter on movies that are partly soft
7025 telecined, inserting this filter before them should make them more reliable.
7028 .B divtc[=options]
7029 Inverse telecine for deinterlaced video.
7030 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
7031 using a method that keeps one field and interpolates the other, the result is
7032 a juddering video that has every fourth frame duplicated.
7033 This filter is intended to find and drop those duplicates and restore the
7034 original film framerate.
7035 When using this filter, you must specify \-ofps that is 4/5 of
7036 the fps of the input file and place the softskip later in the
7037 filter chain to make sure that divtc sees all the frames.
7038 Two different modes are available:
7039 One pass mode is the default and is straightforward to use,
7040 but has the disadvantage that any changes in the telecine
7041 phase (lost frames or bad edits) cause momentary judder
7042 until the filter can resync again.
7043 Two pass mode avoids this by analyzing the whole video
7044 beforehand so it will have forward knowledge about the
7045 phase changes and can resync at the exact spot.
7046 These passes do
7047 .B not
7048 correspond to pass one and two of the encoding process.
7049 You must run an extra pass using divtc pass one before the
7050 actual encoding throwing the resulting video away.
7051 Use \-nosound \-ovc raw \-o /dev/null to avoid
7052 wasting CPU power for this pass.
7053 You may add something like crop=2:2:0:0 after divtc
7054 to speed things up even more.
7055 Then use divtc pass two for the actual encoding.
7056 If you use multiple encoder passes, use divtc
7057 pass two for all of them.
7058 The options are:
7059 .RSs
7060 .IPs pass=1|2
7061 Use two pass mode.
7062 .IPs file=<filename>
7063 Set the two pass log filename (default: "framediff.log").
7064 .IPs threshold=<value>
7065 Set the minimum strength the telecine pattern must have for the filter to
7066 believe in it (default: 0.5).
7067 This is used to avoid recognizing false pattern from the parts of the video
7068 that are very dark or very still.
7069 .IPs window=<numframes>
7070 Set the number of past frames to look at when searching for pattern
7071 (default: 30).
7072 Longer window improves the reliability of the pattern search, but shorter
7073 window improves the reaction time to the changes in the telecine phase.
7074 This only affects the one pass mode.
7075 The two pass mode currently uses fixed window that extends to both future
7076 and past.
7077 .IPs phase=0|1|2|3|4
7078 Sets the initial telecine phase for one pass mode (default: 0).
7079 The two pass mode can see the future, so it is able to use the correct
7080 phase from the beginning, but one pass mode can only guess.
7081 It catches the correct phase when it finds it, but this option can be used
7082 to fix the possible juddering at the beginning.
7083 The first pass of the two pass mode also uses this, so if you save the output
7084 from the first pass, you get constant phase result.
7085 .IPs deghost=<value>
7086 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
7087 mode, default 0).
7088 If nonzero, deghosting mode is used.
7089 This is for video that has been deinterlaced by blending the fields
7090 together instead of dropping one of the fields.
7091 Deghosting amplifies any compression artifacts in the blended frames, so the
7092 parameter value is used as a threshold to exclude those pixels from
7093 deghosting that differ from the previous frame less than specified value.
7094 If two pass mode is used, then negative value can be used to make the
7095 filter analyze the whole video in the beginning of pass-2 to determine
7096 whether it needs deghosting or not and then select either zero or the
7097 absolute value of the parameter.
7098 Specify this option for pass-2, it makes no difference on pass-1.
7102 .B phase[=t|b|p|a|u|T|B|A|U][:v]
7103 Delay interlaced video by one field time so that the field order
7104 changes.
7105 The intended use is to fix PAL movies that have been captured with the
7106 opposite field order to the film-to-video transfer.
7107 The options are:
7108 .RSs
7109 .IPs t
7110 Capture field order top-first, transfer bottom-first.
7111 Filter will delay the bottom field.
7112 .IPs b
7113 Capture bottom-first, transfer top-first.
7114 Filter will delay the top field.
7115 .IPs p
7116 Capture and transfer with the same field order.
7117 This mode only exists for the documentation of the other options to refer to,
7118 but if you actually select it, the filter will faithfully do nothing ;-)
7119 .IPs a
7120 Capture field order determined automatically by field flags, transfer opposite.
7121 Filter selects among t and b modes on a frame by frame basis using field flags.
7122 If no field information is available, then this works just like u.
7123 .IPs u
7124 Capture unknown or varying, transfer opposite.
7125 Filter selects among t and b on a frame by frame basis by analyzing the
7126 images and selecting the alternative that produces best match between the
7127 fields.
7128 .IPs T
7129 Capture top-first, transfer unknown or varying.
7130 Filter selects among t and p using image analysis.
7131 .IPs B
7132 Capture bottom-first, transfer unknown or varying.
7133 Filter selects among b and p using image analysis.
7134 .IPs A
7135 Capture determined by field flags, transfer unknown or varying.
7136 Filter selects among t, b and p using field flags and image analysis.
7137 If no field information is available, then this works just like U.
7138 This is the default mode.
7139 .IPs U
7140 Both capture and transfer unknown or varying.
7141 Filter selects among t, b and p using image analysis only.
7142 .IPs v
7143 Verbose operation.
7144 Prints the selected mode for each frame and the average squared difference
7145 between fields for t, b, and p alternatives.
7149 .B telecine[=start]
7150 Apply 3:2 'telecine' process to increase framerate by 20%.
7151 This most likely will not work correctly with MPlayer, but it can
7152 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
7153 Both fps options are essential!
7154 (A/V sync will break if they are wrong.)
7155 The optional start parameter tells the filter where in the telecine
7156 pattern to start (0\-3).
7159 .B tinterlace[=mode]
7160 Temporal field interlacing \- merge pairs of frames into an interlaced
7161 frame, halving the framerate.
7162 Even frames are moved into the upper field, odd frames to the lower field.
7163 This can be used to fully reverse the effect of the tfields filter (in mode 0).
7164 Available modes are:
7165 .PD 0
7166 .RSs
7167 .IPs 0
7168 Move odd frames into the upper field, even into the lower field, generating
7169 a full-height frame at half framerate.
7170 .IPs 1
7171 Only output odd frames, even frames are dropped; height unchanged.
7172 .IPs 2
7173 Only output even frames, odd frames are dropped; height unchanged.
7174 .IPs 3
7175 Expand each frame to full height, but pad alternate lines with black;
7176 framerate unchanged.
7177 .IPs 4
7178 Interleave even lines from even frames with odd lines from odd frames.
7179 Height unchanged at half framerate.
7181 .PD 1
7184 .B tfields[=mode[:field_dominance]]
7185 Temporal field separation \- split fields into frames, doubling the
7186 output framerate.
7187 Like the telecine filter, tfields might not work completely right unless
7188 used with MEncoder and both \-fps and \-ofps set to the
7189 desired (double) framerate!
7190 .PD 0
7191 .RSs
7192 .IPs <mode>
7193 0: Leave fields unchanged (will jump/\:flicker).
7195 1: Interpolate missing lines. (The algorithm used might not be so good.)
7197 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
7199 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
7200 .IPs <field_dominance>\ (DEPRECATED)
7201 \-1: auto (default)
7202 Only works if the decoder exports the appropriate information and
7203 no other filters which discard that information come before tfields
7204 in the filter chain, otherwise it falls back to 0 (top field first).
7206 0: top field first
7208 1: bottom field first
7210 .I NOTE:
7211 This option will possibly be removed in a future version.
7212 Use \-field\-dominance instead.
7214 .PD 1
7217 .B yadif=[mode[:field_dominance]]
7218 Yet another deinterlacing filter
7219 .PD 0
7220 .RSs
7221 .IPs <mode>
7222 0: Output 1 frame for each frame.
7224 1: Output 1 frame for each field.
7226 2: Like 0 but skips spatial interlacing check.
7228 3: Like 1 but skips spatial interlacing check.
7229 .IPs <field_dominance>\ (DEPRECATED)
7230 Operates like tfields.
7232 .I NOTE:
7233 This option will possibly be removed in a future version.
7234 Use \-field\-dominance instead.
7236 .PD 1
7239 .B mcdeint=[mode[:parity[:qp]]]
7240 Motion compensating deinterlacer.
7241 It needs one field per frame as input and must thus be used together
7242 with tfields=1 or yadif=1/3 or equivalent.
7243 .PD 0
7244 .RSs
7245 .IPs <mode>
7246 0: fast
7248 1: medium
7250 2: slow, iterative motion estimation
7252 3: extra slow, like 2 plus multiple reference frames
7253 .IPs <parity>
7254 0 or 1 selects which field to use (note: no autodetection yet!).
7255 .IPs "<qp>\ "
7256 Higher values should result in a smoother motion vector
7257 field but less optimal individual vectors.
7259 .PD 1
7262 .B boxblur=radius:power[:radius:power]
7263 box blur
7264 .PD 0
7265 .RSs
7266 .IPs <radius>
7267 blur filter strength
7268 .IPs <power>
7269 number of filter applications
7271 .PD 1
7274 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
7275 shape adaptive blur
7276 .PD 0
7277 .RSs
7278 .IPs <radius>
7279 blur filter strength (~0.1\-4.0) (slower if larger)
7280 .IPs "<pf>\ "
7281 prefilter strength (~0.1\-2.0)
7282 .IPs <colorDiff>
7283 maximum difference between pixels to still be considered (~0.1\-100.0)
7285 .PD 1
7288 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
7289 smart blur
7290 .PD 0
7291 .RSs
7292 .IPs <radius>
7293 blur filter strength (~0.1\-5.0) (slower if larger)
7294 .IPs <strength>
7295 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
7296 .IPs <threshold>
7297 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
7299 .PD 1
7302 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
7303 Correct the perspective of movies not filmed perpendicular to the screen.
7304 .PD 0
7305 .RSs
7306 .IPs <x0>,<y0>,...
7307 coordinates of the top left, top right, bottom left, bottom right corners
7308 .IPs "<t>\ \ "
7309 linear (0) or cubic resampling (1)
7311 .PD 1
7314 .B "2xsai\ \ "
7315 Scale and smooth the image with the 2x scale and interpolate algorithm.
7318 .B "1bpp\ \ \ "
7319 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
7322 .B down3dright[=lines]
7323 Reposition and resize stereoscopic images.
7324 Extracts both stereo fields and places them side by side, resizing
7325 them to maintain the original movie aspect.
7326 .PD 0
7327 .RSs
7328 .IPs <lines>
7329 number of lines to select from the middle of the image (default: 12)
7331 .PD 1
7334 .B bmovl=hidden:opaque:fifo
7335 The bitmap overlay filter reads bitmaps from a FIFO and displays them
7336 on top of the movie, allowing some transformations on the image.
7337 Also see TOOLS/bmovl-test.c for a small bmovl test program.
7338 .PD 0
7339 .RSs
7340 .IPs <hidden>
7341 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
7342 .IPs <opaque>
7343 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
7344 .IPs <fifo>
7345 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
7346 controlling application)
7348 .PD 1
7349 .sp 1
7351 FIFO commands are:
7353 .PD 0
7354 .RSs
7355 .IPs "RGBA32 width height xpos ypos alpha clear"
7356 followed by width*height*4 Bytes of raw RGBA32 data.
7357 .IPs "ABGR32 width height xpos ypos alpha clear"
7358 followed by width*height*4 Bytes of raw ABGR32 data.
7359 .IPs "RGB24 width height xpos ypos alpha clear"
7360 followed by width*height*3 Bytes of raw RGB24 data.
7361 .IPs "BGR24 width height xpos ypos alpha clear"
7362 followed by width*height*3 Bytes of raw BGR24 data.
7363 .IPs "ALPHA width height xpos ypos alpha"
7364 Change alpha transparency of the specified area.
7365 .IPs "CLEAR width height xpos ypos"
7366 Clear area.
7367 .IPs OPAQUE
7368 Disable all alpha transparency.
7369 Send "ALPHA 0 0 0 0 0" to enable it again.
7370 .IPs "HIDE\ "
7371 Hide bitmap.
7372 .IPs "SHOW\ "
7373 Show bitmap.
7375 .PD 1
7376 .sp 1
7378 Arguments are:
7380 .PD 0
7381 .RSs
7382 .IPs "<width>, <height>"
7383 image/area size
7384 .IPs "<xpos>, <ypos>"
7385 Start blitting at position x/y.
7386 .IPs <alpha>
7387 Set alpha difference.
7388 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
7389 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
7390 .RSss
7391 0:    same as original
7393 255:  Make everything opaque.
7395 \-255: Make everything transparent.
7396 .REss
7397 .IPs <clear>
7398 Clear the framebuffer before blitting.
7399 .RSss
7400 0: The image will just be blitted on top of the old one, so you do not need to
7401 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7403 1: clear
7404 .REss
7406 .PD 1
7409 .B framestep=I|[i]step
7410 Renders only every nth frame or every intra frame (keyframe).
7411 .sp 1
7412 If you call the filter with I (uppercase) as the parameter, then
7413 .B only
7414 keyframes are rendered.
7415 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7416 for AVI it means every scene change or every keyint value (see \-lavcopts
7417 keyint= value if you use MEncoder to encode the video).
7418 .sp 1
7419 When a keyframe is found, an 'I!' string followed by a newline character is
7420 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
7421 because it contains the time (in seconds) and frame number of the keyframe
7422 (You can use this information to split the AVI.).
7423 .sp 1
7424 If you call the filter with a numeric parameter 'step' then only one in
7425 every 'step' frames is rendered.
7426 .sp 1
7427 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7428 (like the I parameter).
7429 .sp 1
7430 If you give only the i then nothing is done to the frames, only I! is
7431 printed.
7434 .B tile=xtiles:ytiles:output:start:delta
7435 Tile a series of images into a single, bigger image.
7436 If you omit a parameter or use a value less than 0, then the default
7437 value is used.
7438 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7439 It is probably a good idea to put the scale filter before the tile :-)
7440 .sp 1
7441 The parameters are:
7442 .sp 1
7443 .PD 0
7444 .RSs
7445 .IPs <xtiles>
7446 number of tiles on the x axis (default: 5)
7447 .IPs <ytiles>
7448 number of tiles on the y axis (default: 5)
7449 .IPs <output>
7450 Render the tile when 'output' number of frames are reached, where 'output'
7451 should be a number less than xtile * ytile.
7452 Missing tiles are left blank.
7453 You could, for example, write an 8 * 7 tile every 50 frames to have one
7454 image every 2 seconds @ 25 fps.
7455 .IPs <start>
7456 outer border thickness in pixels (default: 2)
7457 .IPs <delta>
7458 inner border thickness in pixels (default: 4)
7460 .PD 1
7463 .B delogo[=x:y:w:h:t]
7464 Suppresses a TV station logo by a simple interpolation of the
7465 surrounding pixels.
7466 Just set a rectangle covering the logo and watch it disappear (and
7467 sometimes something even uglier appear \- your mileage may vary).
7468 .PD 0
7469 .RSs
7470 .IPs <x>,<y>
7471 top left corner of the logo
7472 .IPs <w>,<h>
7473 width and height of the cleared rectangle
7474 .IPs <t>
7475 Thickness of the fuzzy edge of the rectangle (added to w and h).
7476 When set to \-1, a green rectangle is drawn on the screen to
7477 simplify finding the right x,y,w,h parameters.
7479 .PD 1
7482 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7483 Suppresses a TV station logo, using a PGM or PPM image
7484 file to determine which pixels comprise the logo.
7485 The width and height of the image file must match
7486 those of the video stream being processed.
7487 Uses the filter image and a circular blur
7488 algorithm to remove the logo.
7489 .RSs
7490 .IPs /path/to/logo_bitmap_file_name.pgm
7491 [path] + filename of the filter image.
7495 .B zrmjpeg[=options]
7496 Software YV12 to MJPEG encoder for use with the zr2 video
7497 output device.
7498 .RSs
7499 .IPs maxheight=<h>|maxwidth=<w>
7500 These options set the maximum width and height the zr card
7501 can handle (the MPlayer filter layer currently cannot query those).
7502 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
7503 Use these options to set maxwidth and maxheight automatically to the
7504 values known for card/\:mode combo.
7505 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
7506 .IPs color|bw
7507 Select color or black and white encoding.
7508 Black and white encoding is faster.
7509 Color is the default.
7510 .IPs hdec={1,2,4}
7511 Horizontal decimation 1, 2 or 4.
7512 .IPs vdec={1,2,4}
7513 Vertical decimation 1, 2 or 4.
7514 .IPs quality=1\-20
7515 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
7516 .IPs fd|nofd
7517 By default, decimation is only performed if the Zoran hardware
7518 can upscale the resulting MJPEG images to the original size.
7519 The option fd instructs the filter to always perform the requested
7520 decimation (ugly).
7524 .B screenshot
7525 Allows acquiring screenshots of the movie using slave mode
7526 commands that can be bound to keypresses.
7527 See the slave mode documentation and the INTERACTIVE CONTROL
7528 section for details.
7529 Files named 'shotNNNN.png' will be saved in the working directory,
7530 using the first available number \- no files will be overwritten.
7531 The filter has no overhead when not used and accepts an arbitrary
7532 colorspace, so it is safe to add it to the configuration file.
7533 Make sure that the screenshot filter is added after all other filters
7534 whose effect you want to record on the saved image.
7535 E.g.\& it should be the last filter if you want to have an exact
7536 screenshot of what you see on the monitor.
7540 .B "ass\ \ \ \ "
7541 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7542 Only useful with the \-ass option.
7543 .sp 1
7544 .I EXAMPLE:
7545 .PD 0
7546 .RSs
7547 .IPs "\-vf ass,screenshot"
7548 Moves SSA/ASS rendering before the screenshot filter.
7549 Screenshots taken this way will contain subtitles.
7551 .PD 1
7554 .B blackframe[=amount:threshold]
7555 Detect frames that are (almost) completely black.
7556 Can be useful to detect chapter transitions or commercials.
7557 Output lines consist of the frame number of the detected frame, the
7558 percentage of blackness, the frame type and the frame number of the last
7559 encountered keyframe.
7560 .RSs
7561 .IPs <amount>
7562 Percentage of the pixels that have to be below the threshold (default: 98).
7563 .IPs <threshold>
7564 Threshold below which a pixel value is considered black (default: 32).
7566 .PD 1
7569 .B stereo3d[=in:out]
7570 Stereo3d converts between different stereoscopic image formats.
7571 .RSs
7572 .IPs <in>
7573 Stereoscopic image format of input. Possible values:
7575 .B sbsl or side_by_side_left_first
7577 side by side parallel (left eye left, right eye right)
7579 .B sbsr or side_by_side_right_first
7581 side by side crosseye (right eye left, left eye right)
7583 .B abl or above_below_left_first
7585 above-below (left eye above, right eye below)
7587 .B abl or above_below_right_first
7589 above-below (right eye above, left eye below)
7591 .B ab2l or above_below_half_height_left_first
7593 above-below with half height resolution (left eye above, right eye below)
7595 .B ab2r or above_below_half_height_right_first
7597 above-below with half height resolution (right eye above, left eye below)
7600 .IPs <out>
7601 Stereoscopic image format of output. Possible values are all the input formats
7602 as well as:
7604 .B arcg or anaglyph_red_cyan_gray
7606 anaglyph red/cyan gray (red filter on left eye, cyan filter on right eye)
7608 .B arch or anaglyph_red_cyan_half_color
7610 anaglyph red/cyan half colored (red filter on left eye, cyan filter on right
7611 eye)
7613 .B arcc or anaglyph_red_cyan_color
7615 anaglyph red/cyan color (red filter on left eye, cyan filter on right eye)
7617 .B arcd or anaglyph_red_cyan_dubois
7619 anaglyph red/cyan color optimized with the least squares projection of dubois
7620 (red filter on left eye, cyan filter on right eye)
7622 .B agmg or anaglyph_green_magenta_gray
7624 anaglyph green/magenta gray (green filter on left eye, magenta filter on right
7625 eye)
7627 .B agmh or anaglyph_green_magenta_half_color
7629 anaglyph green/magenta half colored (green filter on left eye, magenta filter on
7630 right eye)
7632 .B agmc or anaglyph_green_magenta_color
7634 anaglyph green/magenta colored (green filter on left eye, magenta filter on
7635 right eye)
7637 .B aybg or anaglyph_yellow_blue_gray
7639 anaglyph yellow/blue gray (yellow filter on left eye, blue filter on right eye)
7641 .B aybh or anaglyph_yellow_blue_half_color
7643 anaglyph yellow/blue half colored (yellow filter on left eye, blue filter on
7644 right eye)
7646 .B aybc or anaglyph_yellow_blue_color
7648 anaglyph yellow/blue colored (yellow filter on left eye, blue filter on right
7649 eye)
7651 .B ml or mono_left
7653 mono output (left eye only)
7655 .B mr or mono_right
7657 mono output (right eye only)
7661 .PD 1
7664 .B gradfun[=strength[:radius]]
7665 Fix the banding artifacts that are sometimes introduced into nearly flat
7666 regions by truncation to 8bit colordepth.
7667 Interpolates the gradients that should go where the bands are, and
7668 dithers them.
7669 .sp 1
7670 This filter is designed for playback only.
7671 Do not use it prior to lossy compression, because compression tends
7672 to lose the dither and bring back the bands.
7673 .RSs
7674 .IPs <strength>
7675 Maximum amount by which the filter will change any one pixel.
7676 Also the threshold for detecting nearly flat regions (default: 1.2).
7677 .IPs <radius>
7678 Neighborhood to fit the gradient to.
7679 Larger radius makes for smoother gradients, but also prevents the filter
7680 from modifying pixels near detailed regions (default: 16).
7684 .B fixpts[=options]
7685 Fixes the presentation timestamps (PTS) of the frames.
7686 By default, the PTS passed to the next filter is dropped, but the following
7687 options can change that:
7688 .RSs
7689 .IPs print
7690 Print the incoming PTS.
7691 .IPs fps=<fps>
7692 Specify a frame per second value.
7693 .IPs start=<pts>
7694 Specify an initial value for the PTS.
7695 .IPs autostart=<n>
7696 Uses the
7697 .IR n th
7698 incoming PTS as the initial PTS.
7699 All previous PTS are kept, so setting a huge value or \-1 keeps the PTS
7700 intact.
7701 .IPs autofps=<n>
7702 Uses the
7703 .IR n th
7704 incoming PTS after the end of autostart to determine the framerate.
7706 .sp 1
7708 .I EXAMPLE:
7710 .PD 0
7711 .RSs
7712 .IPs "\-vf fixpts=fps=24000/1001,ass,fixpts"
7713 Generates a new sequence of PTS, uses it for ASS subtitles, then drops it.
7714 Generating a new sequence is useful when the timestamps are reset during the
7715 program; this is frequent on DVDs.
7716 Dropping it may be necessary to avoid confusing encoders.
7718 .PD 1
7719 .sp 1
7721 .I NOTE:
7722 Using this filter together with any sort of seeking (including -ss and EDLs)
7723 may make demons fly out of your nose.
7727 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7730 .B \-audio\-delay <any floating-point number>
7731 Delays either audio or video by setting a delay field in the header
7732 (default: 0.0).
7733 This does not delay either stream while encoding, but the player will
7734 see the delay field and compensate accordingly.
7735 Positive values delay the audio, and negative values delay the video.
7736 Note that this is the exact opposite of the \-delay option.
7737 For example, if a video plays correctly with \-delay 0.2, you can
7738 fix the video with MEncoder by using \-audio\-delay \-0.2.
7739 .sp 1
7740 Currently, this option only works with the default muxer (\-of avi).
7741 If you are using a different muxer, then you must use \-delay instead.
7744 .B \-audio\-density <1\-50>
7745 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7747 .I NOTE:
7748 CBR only, VBR ignores this as it puts each packet in a new chunk.
7751 .B \-audio\-preload <0.0\-2.0>
7752 Sets up the audio buffering time interval (default: 0.5s).
7755 .B \-fafmttag <format>
7756 Can be used to override the audio format tag of the output file.
7757 .sp 1
7758 .I EXAMPLE:
7759 .PD 0
7760 .RSs
7761 .IPs "\-fafmttag 0x55"
7762 Will have the output file contain 0x55 (mp3) as audio format tag.
7764 .PD 1
7767 .B \-ffourcc <fourcc>
7768 Can be used to override the video fourcc of the output file.
7769 .sp 1
7770 .I EXAMPLE:
7771 .PD 0
7772 .RSs
7773 .IPs "\-ffourcc div3"
7774 Will have the output file contain 'div3' as video fourcc.
7776 .PD 1
7779 .B \-force\-avi\-aspect <0.2\-3.0>
7780 Override the aspect stored in the AVI OpenDML vprp header.
7781 This can be used to change the aspect ratio with '\-ovc copy'.
7784 .B \-frameno\-file <filename> (DEPRECATED)
7785 Specify the name of the audio file with framenumber mappings created in
7786 the first (audio only) pass of a special three pass encoding mode.
7788 .I NOTE:
7789 Using this mode will most likely give you A-V desync.
7790 Do not use it.
7791 It is kept for backwards compatibility only and will possibly
7792 be removed in a future version.
7795 .B \-hr\-edl\-seek
7796 Use a more precise, but much slower method for skipping areas.
7797 Areas marked for skipping are not seeked over, instead all
7798 frames are decoded, but only the necessary frames are encoded.
7799 This allows starting at non-keyframe boundaries.
7801 .I NOTE:
7802 Not guaranteed to work right with '\-ovc copy'.
7805 .B \-info <option1:option2:...> (AVI only)
7806 Specify the info header of the resulting AVI file.
7807 .sp 1
7808 Available options are:
7809 .RSs
7810 .IPs "help\ "
7811 Show this description.
7812 .IPs name=<value>
7813 title of the work
7814 .IPs artist=<value>
7815 artist or author of the work
7816 .IPs genre=<value>
7817 original work category
7818 .IPs subject=<value>
7819 contents of the work
7820 .IPs copyright=<value>
7821 copyright information
7822 .IPs srcform=<value>
7823 original format of the digitized material
7824 .IPs comment=<value>
7825 general comments about the work
7829 .B \-noautoexpand
7830 Do not automatically insert the expand filter into the MEncoder filter chain.
7831 Useful to control at which point of the filter chain subtitles are rendered
7832 when hardcoding subtitles onto a movie.
7835 .B \-noencodedups
7836 Do not attempt to encode duplicate frames in duplicate; always output
7837 zero-byte frames to indicate duplicates.
7838 Zero-byte frames will be written anyway unless a filter or encoder
7839 capable of doing duplicate encoding is loaded.
7840 Currently the only such filter is harddup.
7843 .B \-noodml (\-of avi only)
7844 Do not write OpenDML index for AVI files >1GB.
7847 .B \-noskip
7848 Do not skip frames.
7851 .B \-o <filename>
7852 Outputs to the given filename.
7854 If you want a default output filename, you can put this option in the
7855 MEncoder config file.
7858 .B \-oac <codec name>
7859 Encode with the given audio codec (no default set).
7861 .I NOTE:
7862 Use \-oac help to get a list of available audio codecs.
7863 .sp 1
7864 .I EXAMPLE:
7865 .PD 0
7866 .RSs
7867 .IPs "\-oac copy"
7868 no encoding, just streamcopy
7869 .IPs "\-oac pcm"
7870 Encode to uncompressed PCM.
7871 .IPs "\-oac mp3lame"
7872 Encode to MP3 (using LAME).
7873 .IPs "\-oac lavc"
7874 Encode with a libavcodec codec.
7876 .PD 1
7879 .B \-of <format> (BETA CODE!)
7880 Encode to the specified container format (default: AVI).
7882 .I NOTE:
7883 Use \-of help to get a list of available container formats.
7884 .sp 1
7885 .I EXAMPLE:
7886 .PD 0
7887 .RSs
7888 .IPs "\-of avi"
7889 Encode to AVI.
7890 .IPs "\-of mpeg"
7891 Encode to MPEG (also see \-mpegopts).
7892 .IPs "\-of lavf"
7893 Encode with libavformat muxers (also see \-lavfopts).
7894 .IPs "\-of rawvideo"
7895 raw video stream (no muxing \- one video stream only)
7896 .IPs "\-of rawaudio"
7897 raw audio stream (no muxing \- one audio stream only)
7899 .PD 1
7902 .B \-ofps <fps>
7903 Specify a frames per second (fps) value for the output file,
7904 which can be different from that of the source material.
7905 Must be set for variable fps (ASF, some MOV) and progressive
7906 (30000/1001 fps telecined MPEG) files.
7909 .B \-ovc <codec name>
7910 Encode with the given video codec (no default set).
7912 .I NOTE:
7913 Use \-ovc help to get a list of available video codecs.
7914 .sp 1
7915 .I EXAMPLE:
7916 .PD 0
7917 .RSs
7918 .IPs "\-ovc copy"
7919 no encoding, just streamcopy
7920 .IPs "\-ovc raw"
7921 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7922 .IPs "\-ovc lavc"
7923 Encode with a libavcodec codec.
7925 .PD 1
7928 .B \-passlogfile <filename>
7929 Dump first pass information to <filename> instead of the default divx2pass.log
7930 in two pass encoding mode.
7933 .B \-skiplimit <value>
7934 Specify the maximum number of frames that may be skipped after
7935 encoding one frame (\-noskiplimit for unlimited).
7938 .B \-vobsubout <basename>
7939 Specify the basename for the output .idx and .sub files.
7940 This turns off subtitle rendering in the encoded movie and diverts it to
7941 VOBsub subtitle files.
7944 .B \-vobsuboutid <langid>
7945 Specify the language two letter code for the subtitles.
7946 This overrides what is read from the DVD or the .ifo file.
7949 .B \-vobsuboutindex <index>
7950 Specify the index of the subtitles in the output files (default: 0).
7954 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7955 You can specify codec specific encoding parameters using the following
7956 syntax:
7959 .B \-<codec>opts <option1[=value1]:option2[=value2]:...>
7962 Where <codec> may be: lavc, xvidenc, mp3lame, toolame, twolame,
7963 nuv, xvfw, faac, x264enc, mpeg, lavf.
7966 .SS mp3lame (\-lameopts)
7969 .B "help\ \ \ "
7970 get help
7973 .B vbr=<0\-4>
7974 variable bitrate method
7975 .PD 0
7976 .RSs
7977 .IPs 0
7979 .IPs 1
7981 .IPs 2
7982 rh (default)
7983 .IPs 3
7985 .IPs 4
7986 mtrh
7988 .PD 1
7991 .B "abr\ \ \ \ "
7992 average bitrate
7995 .B "cbr\ \ \ \ "
7996 constant bitrate
7997 Also forces CBR mode encoding on subsequent ABR presets modes.
8000 .B br=<0\-1024>
8001 bitrate in kbps (CBR and ABR only)
8004 .B q=<0\-9>
8005 quality (0 \- highest, 9 \- lowest) (VBR only)
8008 .B aq=<0\-9>
8009 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
8012 .B ratio=<1\-100>
8013 compression ratio
8016 .B vol=<0\-10>
8017 audio input gain
8020 .B mode=<0\-3>
8021 (default: auto)
8022 .PD 0
8023 .RSs
8024 .IPs 0
8025 stereo
8026 .IPs 1
8027 joint-stereo
8028 .IPs 2
8029 dualchannel
8030 .IPs 3
8031 mono
8033 .PD 1
8036 .B padding=<0\-2>
8037 .PD 0
8038 .RSs
8039 .IPs 0
8040 none
8041 .IPs 1
8043 .IPs 2
8044 adjust
8046 .PD 1
8049 .B "fast\ \ \ "
8050 Switch on faster encoding on subsequent VBR presets modes.
8051 This results in slightly lower quality and higher bitrates.
8054 .B highpassfreq=<freq>
8055 Set a highpass filtering frequency in Hz.
8056 Frequencies below the specified one will be cut off.
8057 A value of \-1 will disable filtering, a value of 0
8058 will let LAME choose values automatically.
8061 .B lowpassfreq=<freq>
8062 Set a lowpass filtering frequency in Hz.
8063 Frequencies above the specified one will be cut off.
8064 A value of \-1 will disable filtering, a value of 0
8065 will let LAME choose values automatically.
8068 .B preset=<value>
8069 preset values
8070 .RSs
8071 .IPs "help\ "
8072 Print additional options and information about presets settings.
8073 .IPs medium
8074 VBR encoding, good quality, 150\-180 kbps bitrate range
8075 .IPs standard
8076 VBR encoding, high quality, 170\-210 kbps bitrate range
8077 .IPs extreme
8078 VBR encoding, very high quality, 200\-240 kbps bitrate range
8079 .IPs insane
8080 CBR encoding, highest preset quality, 320 kbps bitrate
8081 .IPs <8\-320>
8082 ABR encoding at average given kbps bitrate
8084 .sp 1
8086 .I EXAMPLES:
8088 .PD 0
8089 .RSs
8090 .IPs fast:preset=standard
8091 suitable for most people and most music types and already quite high quality
8092 .IPs cbr:preset=192
8093 Encode with ABR presets at a 192 kbps forced constant bitrate.
8094 .IPs preset=172
8095 Encode with ABR presets at a 172 kbps average bitrate.
8096 .IPs preset=extreme
8097 for people with extremely good hearing and similar equipment
8099 .PD 1
8102 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
8105 .B br=<32\-384>
8106 In CBR mode this parameter indicates the bitrate in kbps,
8107 when in VBR mode it is the minimum bitrate allowed per frame.
8108 VBR mode will not work with a value below 112.
8111 .B vbr=<\-50\-50> (VBR only)
8112 variability range; if negative the encoder shifts the average bitrate
8113 towards the lower limit, if positive towards the higher.
8114 When set to 0 CBR is used (default).
8117 .B maxvbr=<32\-384> (VBR only)
8118 maximum bitrate allowed per frame, in kbps
8121 .B mode=<stereo  |  jstereo  |  mono  |  dual>
8122 (default: mono for 1-channel audio, stereo otherwise)
8125 .B psy=<\-1\-4>
8126 psychoacoustic model (default: 2)
8129 .B errprot=<0 | 1>
8130 Include error protection.
8133 .B debug=<0\-10>
8134 debug level
8136 .PD 1
8139 .SS faac (\-faacopts)
8142 .B br=<bitrate>
8143 average bitrate in kbps (mutually exclusive with quality)
8146 .B quality=<1\-1000>
8147 quality mode, the higher the better (mutually exclusive with br)
8150 .B object=<1\-4>
8151 object type complexity
8152 .PD 0
8153 .RSs
8154 .IPs 1
8155 MAIN (default)
8156 .IPs 2
8158 .IPs 3
8160 .IPs 4
8161 LTP (extremely slow)
8163 .PD 1
8166 .B mpeg=<2|4>
8167 MPEG version (default: 4)
8170 .B "tns\ \ \ \ "
8171 Enables temporal noise shaping.
8174 .B cutoff=<0\-sampling_rate/2>
8175 cutoff frequency (default: sampling_rate/2)
8178 .B "raw\ \ \ \ "
8179 Stores the bitstream as raw payload with extradata in the container header
8180 (default: 0, corresponds to ADTS).
8181 Do not set this flag if not explicitly required or you will not be able to
8182 remux the audio stream later on.
8184 .PD 1
8187 .SS lavc (\-lavcopts)
8189 Many libavcodec (lavc for short) options are tersely documented.
8190 Read the source for full details.
8192 .I EXAMPLE:
8193 .PD 0
8194 .RSs
8195 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
8197 .PD 1
8200 .B o=<key>=<value>[,<key>=<value>[,...]]
8201 Pass AVOptions to libavcodec encoder.
8202 Note, a patch to make the o= unneeded and pass all unknown options through
8203 the AVOption system is welcome.
8204 A full list of AVOptions can be found in the FFmpeg manual.
8205 Note that some AVOptions may conflict with MEncoder options.
8206 .sp 1
8208 .I EXAMPLE:
8210 .RSs
8211 .PD 0
8212 .IPs o=bt=100k
8213 .PD 1
8217 .B acodec=<value>
8218 audio codec (default: mp2)
8219 .PD 0
8220 .RSs
8221 .IPs "ac3\ \ "
8222 Dolby Digital (AC-3)
8223 .IPs adpcm_*
8224 Adaptive PCM formats \- see the HTML documentation for details.
8225 .IPs "flac\ "
8226 Free Lossless Audio Codec (FLAC)
8227 .IPs "g726\ "
8228 G.726 ADPCM
8229 .IPs libfaac
8230 Advanced Audio Coding (AAC) \- using FAAC
8231 .IPs libmp3lame
8232 MPEG-1 audio layer 3 (MP3) \- using LAME
8233 .IPs "mp2\ \ "
8234 MPEG-1 audio layer 2 (MP2)
8235 .IPs pcm_*
8236 PCM formats \- see the HTML documentation for details.
8237 .IPs roq_dpcm
8238 Id Software RoQ DPCM
8239 .IPs sonic
8240 experimental simple lossy codec
8241 .IPs sonicls
8242 experimental simple lossless codec
8243 .IPs vorbis
8244 Vorbis
8245 .IPs wmav1
8246 Windows Media Audio v1
8247 .IPs wmav2
8248 Windows Media Audio v2
8250 .PD 1
8253 .B abitrate=<value>
8254 audio bitrate in kbps (default: 224)
8257 .B atag=<value>
8258 Use the specified Windows audio format tag (e.g.\& atag=0x55).
8261 .B bit_exact
8262 Use only bit exact algorithms (except (I)DCT).
8263 Additionally bit_exact disables several optimizations and thus
8264 should only be used for regression tests, which need binary
8265 identical files even if the encoder version changes.
8266 This also suppresses the user_data header in MPEG-4 streams.
8267 Do not use this option unless you know exactly what you are doing.
8270 .B threads=<1\-8>
8271 Maximum number of threads to use (default: 1).
8272 May have a slight negative effect on motion estimation.
8276 .B vcodec=<value>
8277 Employ the specified codec (default: mpeg4).
8278 .PD 0
8279 .RSs
8280 .IPs "asv1\ "
8281 ASUS Video v1
8282 .IPs "asv2\ "
8283 ASUS Video v2
8284 .IPs dvvideo
8285 Sony Digital Video
8286 .IPs "ffv1\ "
8287 FFmpeg's lossless video codec
8288 .IPs ffvhuff
8289 nonstandard 20% smaller HuffYUV using YV12
8290 .IPs "flv\ \ "
8291 Sorenson H.263 used in Flash Video
8292 .IPs "h261\ "
8293 H.261
8294 .IPs "h263\ "
8295 H.263
8296 .IPs h263p
8297 H.263+
8298 .IPs huffyuv
8299 HuffYUV
8300 .IPs libtheora
8301 Theora
8302 .IPs libx264
8303 x264 H.264/AVC MPEG-4 Part 10
8304 .IPs libxvid
8305 Xvid MPEG-4 Part 2 (ASP)
8306 .IPs ljpeg
8307 Lossless JPEG
8308 .IPs mjpeg
8309 Motion JPEG
8310 .IPs mpeg1video
8311 MPEG-1 video
8312 .IPs mpeg2video
8313 MPEG-2 video
8314 .IPs mpeg4
8315 MPEG-4 (DivX 4/5)
8316 .IPs msmpeg4
8317 DivX 3
8318 .IPs msmpeg4v2
8319 MS MPEG4v2
8320 .IPs roqvideo
8321 ID Software RoQ Video
8322 .IPs "rv10\ "
8323 an old RealVideo codec
8324 .IPs "snow (also see: vstrict)"
8325 FFmpeg's experimental wavelet-based codec
8326 .IPs "svq1\ "
8327 Apple Sorenson Video 1
8328 .IPs "wmv1\ "
8329 Windows Media Video, version 1 (AKA WMV7)
8330 .IPs "wmv2\ "
8331 Windows Media Video, version 2 (AKA WMV8)
8333 .PD 1
8336 .B vqmin=<1\-31>
8337 minimum quantizer
8338 .RSs
8339 .IPs 1
8340 Not recommended (much larger file, little quality difference and weird side
8341 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
8342 resulting in lower quality and some decoders will not be able to decode it).
8343 .IPs 2
8344 Recommended for normal mpeg4/\:mpeg1video encoding (default).
8345 .IPs 3
8346 Recommended for h263(p)/\:msmpeg4.
8347 The reason for preferring 3 over 2 is that 2 could lead to overflows.
8348 (This will be fixed for h263(p) by changing the quantizer per MB in
8349 the future, msmpeg4 cannot be fixed as it does not support that.)
8353 .B lmin=<0.01\-255.0>
8354 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
8355 Lavc will rarely use quantizers below the value of lmin.
8356 Lowering lmin will make lavc more likely to choose lower quantizers for
8357 some frames, but not lower than the value of vqmin.
8358 Likewise, raising lmin will make lavc less likely to choose low
8359 quantizers, even if vqmin would have allowed them.
8360 You probably want to set lmin approximately equal to vqmin.
8361 When adaptive quantization is in use, changing lmin/lmax may have less
8362 of an effect; see mblmin/mblmax.
8366 .B lmax=<0.01\-255.0>
8367 maximum Lagrange multiplier for ratecontrol (default: 31.0)
8371 .B mblmin=<0.01\-255.0>
8372 Minimum macroblock-level Lagrange multiplier for ratecontrol
8373 (default:2.0).
8374 This parameter affects adaptive quantization options like qprd,
8375 lumi_mask, etc..
8379 .B mblmax=<0.01\-255.0>
8380 Maximum macroblock-level Lagrange multiplier for ratecontrol
8381 (default: 31.0).
8385 .B vqscale=<0\-31>
8386 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
8387 A lower value means better quality but larger files (default: \-1).
8388 In case of snow codec, value 0 means lossless encoding.
8389 Since the other codecs do not support this, vqscale=0 will have an undefined
8390 effect.
8391 1 is not recommended (see vqmin for details).
8394 .B vqmax=<1\-31>
8395 Maximum quantizer, 10\-31 should be a sane range (default: 31).
8398 .B mbqmin=<1\-31>
8399 obsolete, use vqmin
8402 .B mbqmax=<1\-31>
8403 obsolete, use vqmax
8406 .B vqdiff=<1\-31>
8407 maximum quantizer difference between consecutive I- or P-frames
8408 (default: 3)
8411 .B vmax_b_frames=<0\-4>
8412 maximum number of B-frames between non-B-frames:
8413 .PD 0
8414 .RSs
8415 .IPs 0
8416 no B-frames (default)
8417 .IPs 0\-2
8418 sane range for MPEG-4
8420 .PD 1
8423 .B vme=<0\-5>
8424 motion estimation method.
8425 Available methods are:
8426 .PD 0
8427 .RSs
8428 .IPs 0
8429 none (very low quality)
8430 .IPs 1
8431 full (slow, currently unmaintained and disabled)
8432 .IPs 2
8433 log (low quality, currently unmaintained and disabled)
8434 .IPs 3
8435 phods (low quality, currently unmaintained and disabled)
8436 .IPs 4
8437 EPZS: size=1 diamond, size can be adjusted with the *dia options
8438 (default)
8439 .IPs 5
8440 X1 (experimental, currently aliased to EPZS)
8441 .IPs 8
8442 iter (iterative overlapped block, only used in snow)
8444 .PD 1
8445 .sp 1
8448 .I NOTE:
8449 0\-3 currently ignores the amount of bits spent,
8450 so quality may be low.
8454 .B me_range=<0\-9999>
8455 motion estimation search range (default: 0 (unlimited))
8458 .B mbd=<0\-2> (also see *cmp, qpel)
8459 Macroblock decision algorithm (high quality mode), encode each macro
8460 block in all modes and choose the best.
8461 This is slow but results in better quality and file size.
8462 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
8463 macroblocks (the mbcmp value is still used in other places though, in particular
8464 the motion search algorithms).
8465 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
8466 however, a slower but better half-pel motion search will be used,
8467 regardless of what mbd is set to.
8468 If qpel is set, quarter-pel motion search will be used regardless.
8469 .PD 0
8470 .RSs
8471 .IPs 0
8472 Use comparison function given by mbcmp (default).
8473 .IPs 1
8474 Select the MB mode which needs the fewest bits (=vhq).
8475 .IPs 2
8476 Select the MB mode which has the best rate distortion.
8478 .PD 1
8481 .B "vhq\ \ \ \ "
8482 Same as mbd=1, kept for compatibility reasons.
8485 .B "v4mv\ \ \ "
8486 Allow 4 motion vectors per macroblock (slightly better quality).
8487 Works better if used with mbd>0.
8490 .B "obmc\ \ \ "
8491 overlapped block motion compensation (H.263+)
8494 .B "loop\ \ \ "
8495 loop filter (H.263+)
8496 note, this is broken
8499 .B inter_threshold <\-1000\-1000>
8500 Does absolutely nothing at the moment.
8503 .B keyint=<0\-300>
8504 maximum interval between keyframes in frames (default: 250 or one
8505 keyframe every ten seconds in a 25fps movie.
8506 This is the recommended default for MPEG-4).
8507 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
8508 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
8509 keyframes need more space than other frames, so larger numbers here mean
8510 slightly smaller files but less precise seeking.
8511 0 is equivalent to 1, which makes every frame a keyframe.
8512 Values >300 are not recommended as the quality might be bad depending upon
8513 decoder, encoder and luck.
8514 It is common for MPEG-1/2 to use values <=30.
8517 .B sc_threshold=<\-1000000000\-1000000000>
8518 Threshold for scene change detection.
8519 A keyframe is inserted by libavcodec when it detects a scene change.
8520 You can specify the sensitivity of the detection with this option.
8521 \-1000000000 means there is a scene change detected at every frame,
8522 1000000000 means no scene changes are detected (default: 0).
8525 .B sc_factor=<any positive integer>
8526 Causes frames with higher quantizers to be more likely to trigger a
8527 scene change detection and make libavcodec use an I-frame (default: 1).
8528 1\-16 is a sane range.
8529 Values between 2 and 6 may yield increasing PSNR (up to approximately
8530 0.04 dB) and better placement of I-frames in high-motion scenes.
8531 Higher values than 6 may give very slightly better PSNR (approximately
8532 0.01 dB more than sc_factor=6), but noticably worse visual quality.
8535 .B vb_strategy=<0\-2> (pass one only)
8536 strategy to choose between I/P/B-frames:
8537 .PD 0
8538 .RSs
8539 .IPs 0
8540 Always use the maximum number of B-frames (default).
8541 .IPs 1
8542 Avoid B-frames in high motion scenes.
8543 See the b_sensitivity option to tune this strategy.
8544 .IPs 2
8545 Places B-frames more or less optimally to yield maximum quality (slower).
8546 You may want to reduce the speed impact of this option by tuning the
8547 option brd_scale.
8549 .PD 1
8552 .B b_sensitivity=<any integer greater than 0>
8553 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
8554 B-frames (default: 40).
8555 Lower sensitivities will result in more B-frames.
8556 Using more B-frames usually improves PSNR, but too many B-frames can
8557 hurt quality in high-motion scenes.
8558 Unless there is an extremely high amount of motion, b_sensitivity can
8559 safely be lowered below the default; 10 is a reasonable value in most
8560 cases.
8563 .B brd_scale=<0\-10>
8564 Downscales frames for dynamic B-frame decision (default: 0).
8565 Each time brd_scale is increased by one, the frame dimensions are
8566 divided by two, which improves speed by a factor of four.
8567 Both dimensions of the fully downscaled frame must be even numbers, so
8568 brd_scale=1 requires the original dimensions to be multiples of four,
8569 brd_scale=2 requires multiples of eight, etc.
8570 In other words, the dimensions of the original frame must both be
8571 divisible by 2^(brd_scale+1) with no remainder.
8574 .B bidir_refine=<0\-4>
8575 Refine the two motion vectors used in bidirectional macroblocks,
8576 rather than re-using vectors from the forward and backward searches.
8577 This option has no effect without B-frames.
8578 .PD 0
8579 .RSs
8580 .IPs 0
8581 Disabled (default).
8582 .IPs 1\-4
8583 Use a wider search (larger values are slower).
8585 .PD 1
8588 .B vpass=<1\-3>
8589 Activates internal two (or more) pass mode, only specify if you wish to
8590 use two (or more) pass encoding.
8591 .PD 0
8592 .RSs
8593 .IPs 1
8594 first pass (also see turbo)
8595 .IPs 2
8596 second pass
8597 .IPs 3
8598 Nth pass (second and subsequent passes of N-pass encoding)
8601 Here is how it works, and how to use it:
8603 The first pass (vpass=1) writes the statistics file.
8604 You might want to deactivate some CPU-hungry options, like "turbo"
8605 mode does.
8607 In two pass mode, the second pass (vpass=2) reads the statistics file and
8608 bases ratecontrol decisions on it.
8610 In N-pass mode, the second pass (vpass=3, that is not a typo)
8611 does both: It first reads the statistics, then overwrites them.
8612 You might want to backup divx2pass.log before doing this if there is
8613 any possibility that you will have to cancel MEncoder.
8614 You can use all encoding options, except very CPU-hungry options like "qns".
8616 You can run this same pass over and over to refine the encode.
8617 Each subsequent pass will use the statistics from the previous pass to improve.
8618 The final pass can include any CPU-hungry encoding options.
8620 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
8622 If you want a 3 or more pass encode, use vpass=1 for the first pass
8623 and then vpass=3 and then vpass=3 again and again until you are
8624 satisfied with the encode.
8626 .PD 1
8627 .sp 1
8629 huffyuv:
8631 .PD 0
8632 .RSs
8633 .IPs "pass 1"
8634 Saves statistics.
8635 .IPs "pass 2"
8636 Encodes with an optimal Huffman table based upon statistics
8637 from the first pass.
8639 .PD 1
8642 .B turbo (two pass only)
8643 Dramatically speeds up pass one using faster algorithms and disabling
8644 CPU-intensive options.
8645 This will probably reduce global PSNR a little bit (around 0.01dB) and
8646 change individual frame type and PSNR a little bit more (up to 0.03dB).
8649 .B aspect=<x/y>
8650 Store movie aspect internally, just like with MPEG files.
8651 Much nicer than rescaling, because quality is not decreased.
8652 Only MPlayer will play these files correctly, other players will display
8653 them with wrong aspect.
8654 The aspect parameter can be given as a ratio or a floating point number.
8655 .sp 1
8657 .I EXAMPLE:
8659 .RSs
8660 .PD 0
8661 .IPs "aspect=16/9 or aspect=1.78"
8662 .PD 1
8666 .B autoaspect
8667 Same as the aspect option, but automatically computes aspect, taking
8668 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
8669 filter chain.
8670 Does not incur a performance penalty, so you can safely leave it
8671 always on.
8674 .B vbitrate=<value>
8675 Specify bitrate (default: 800).
8677 .I WARNING:
8678 1kbit = 1000 bits
8679 .PD 0
8680 .RSs
8681 .IPs 4\-16000
8682 (in kbit)
8683 .IPs 16001\-24000000
8684 (in bit)
8686 .PD 1
8689 .B vratetol=<value>
8690 approximated file size tolerance in kbit.
8691 1000\-100000 is a sane range.
8692 (warning: 1kbit = 1000 bits)
8693 (default: 8000)
8695 .I NOTE:
8696 vratetol should not be too large during the second pass or there might
8697 be problems if vrc_(min|max)rate is used.
8700 .B vrc_maxrate=<value>
8701 maximum bitrate in kbit/\:sec
8702 (default: 0, unlimited)
8705 .B vrc_minrate=<value>
8706 minimum bitrate in kbit/\:sec
8707 (default: 0, unlimited)
8710 .B vrc_buf_size=<value>
8711 buffer size in kbit
8712 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
8713 917 for SVCD and 1835 for DVD.
8716 .B vrc_buf_aggressivity
8717 currently useless
8720 .B vrc_strategy
8721 Ratecontrol method.
8722 Note that some of the ratecontrol-affecting options will have no effect
8723 if vrc_strategy is not set to 0.
8724 .PD 0
8725 .RSs
8726 .IPs 0
8727 Use internal lavc ratecontrol (default).
8728 .IPs 1
8729 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
8730 with support for Xvid 1.1 or higher).
8732 .PD 1
8735 .B vb_qfactor=<\-31.0\-31.0>
8736 quantizer factor between B- and non-B-frames (default: 1.25)
8739 .B vi_qfactor=<\-31.0\-31.0>
8740 quantizer factor between I- and non-I-frames (default: 0.8)
8743 .B vb_qoffset=<\-31.0\-31.0>
8744 quantizer offset between B- and non-B-frames (default: 1.25)
8747 .B vi_qoffset=<\-31.0\-31.0>
8748 (default: 0.0)
8750 if v{b|i}_qfactor > 0
8752 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8754 else
8756 do normal ratecontrol (do not lock to next P-frame quantizer) and
8757 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8759 .I HINT:
8760 To do constant quantizer encoding with different quantizers for
8761 I/P- and B-frames you can use:
8762 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8765 .B vqblur=<0.0\-1.0> (pass one)
8766 Quantizer blur (default: 0.5), larger values will average the
8767 quantizer more over time (slower change).
8768 .PD 0
8769 .RSs
8770 .IPs 0.0
8771 Quantizer blur disabled.
8772 .IPs 1.0
8773 Average the quantizer over all previous frames.
8775 .PD 1
8778 .B vqblur=<0.0\-99.0> (pass two)
8779 Quantizer gaussian blur (default: 0.5), larger values will average
8780 the quantizer more over time (slower change).
8783 .B vqcomp=<0.0\-1.0>
8784 Quantizer compression, vrc_eq depends upon this (default: 0.5).
8785 .I NOTE:
8786 Perceptual quality will be optimal somewhere in between the range's extremes.
8789 .B vrc_eq=<equation>
8790 main ratecontrol equation
8792 .RSs
8793 .IPs 1+(tex/\:avgTex-1)*qComp
8794 approximately the equation of the old ratecontrol code
8795 .IPs tex^qComp
8796 with qcomp 0.5 or something like that (default)
8800 infix operators:
8802 .RSs
8803 .IPs +,\-,*,/,^
8807 variables:
8809 .RSs
8810 .IPs "tex\ \ "
8811 texture complexity
8812 .IPs iTex,pTex
8813 intra, non-intra texture complexity
8814 .IPs avgTex
8815 average texture complexity
8816 .IPs avgIITex
8817 average intra texture complexity in I-frames
8818 .IPs avgPITex
8819 average intra texture complexity in P-frames
8820 .IPs avgPPTex
8821 average non-intra texture complexity in P-frames
8822 .IPs avgBPTex
8823 average non-intra texture complexity in B-frames
8824 .IPs "mv\ \ \ "
8825 bits used for motion vectors
8826 .IPs fCode
8827 maximum length of motion vector in log2 scale
8828 .IPs iCount
8829 number of intra macroblocks / number of macroblocks
8830 .IPs "var\ \ "
8831 spatial complexity
8832 .IPs mcVar
8833 temporal complexity
8834 .IPs qComp
8835 qcomp from the command line
8836 .IPs "isI, isP, isB"
8837 Is 1 if picture type is I/P/B else 0.
8838 .IPs "Pi,E\ "
8839 See your favorite math book.
8843 functions:
8845 .RSs
8846 .IPs max(a,b),min(a,b)
8847 maximum / minimum
8848 .IPs gt(a,b)
8849 is 1 if a>b, 0 otherwise
8850 .IPs lt(a,b)
8851 is 1 if a<b, 0 otherwise
8852 .IPs eq(a,b)
8853 is 1 if a==b, 0 otherwise
8854 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8858 .B vrc_override=<options>
8859 User specified quality for specific parts (ending, credits, ...).
8860 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8861 <end-frame>, <quality>[/...]]:
8862 .PD 0
8863 .RSs
8864 .IPs "quality (2\-31)"
8865 quantizer
8866 .IPs "quality (\-500\-0)"
8867 quality correction in %
8869 .PD 1
8872 .B vrc_init_cplx=<0\-1000>
8873 initial complexity (pass 1)
8876 .B vrc_init_occupancy=<0.0\-1.0>
8877 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8880 .B vqsquish=<0|1>
8881 Specify how to keep the quantizer between qmin and qmax.
8882 .PD 0
8883 .RSs
8884 .IPs 0
8885 Use clipping.
8886 .IPs 1
8887 Use a nice differentiable function (default).
8889 .PD 1
8892 .B vlelim=<\-1000\-1000>
8893 Sets single coefficient elimination threshold for luminance.
8894 Negative values will also consider the DC coefficient (should be at least \-4
8895 or lower for encoding at quant=1):
8896 .PD 0
8897 .RSs
8898 .IPs 0
8899 disabled (default)
8900 .IPs \-4
8901 JVT recommendation
8903 .PD 1
8906 .B vcelim=<\-1000\-1000>
8907 Sets single coefficient elimination threshold for chrominance.
8908 Negative values will also consider the DC coefficient (should be at least \-4
8909 or lower for encoding at quant=1):
8910 .PD 0
8911 .RSs
8912 .IPs 0
8913 disabled (default)
8914 .IPs 7
8915 JVT recommendation
8917 .PD 1
8920 .B vstrict=<\-2|\-1|0|1>
8921 strict standard compliance
8922 .PD 0
8923 .RSs
8924 .IPs 0
8925 disabled
8926 .IPs 1
8927 Only recommended if you want to feed the output into the
8928 MPEG-4 reference decoder.
8929 .IPs \-1
8930 Allow libavcodec specific extensions (default).
8931 .IPs \-2
8932 Enables experimental codecs and features which may not be playable
8933 with future MPlayer versions (snow).
8935 .PD 1
8938 .B "vdpart\ "
8939 Data partitioning.
8940 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8941 unreliable channels (e.g.\& streaming over the internet).
8942 Each video packet will be encoded in 3 separate partitions:
8943 .PD 0
8944 .RSs
8945 .IPs "1. MVs"
8946 movement
8947 .IPs "2. DC coefficients"
8948 low res picture
8949 .IPs "3. AC coefficients"
8950 details
8952 .PD 1
8954 MV & DC are most important, losing them looks far worse than losing
8955 the AC and the 1. & 2. partition.
8956 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8957 will hit the AC partition much more often than the MV & DC partitions.
8958 Thus, the picture will look better with partitioning than without,
8959 as without partitioning an error will trash AC/\:DC/\:MV equally.
8963 .B vpsize=<0\-10000> (also see vdpart)
8964 Video packet size, improves error-resistance.
8965 .PD 0
8966 .RSs
8967 .IPs "0\ \ \ \ "
8968 disabled (default)
8969 .IPs 100\-1000
8970 good choice
8972 .PD 1
8975 .B "ss\ \ \ \ \ "
8976 slice structured mode for H.263+
8979 .B "gray\ \ \ "
8980 grayscale only encoding (faster)
8983 .B vfdct=<0\-10>
8984 DCT algorithm
8985 .PD 0
8986 .RSs
8987 .IPs 0
8988 Automatically select a good one (default).
8989 .IPs 1
8990 fast integer
8991 .IPs 2
8992 accurate integer
8993 .IPs 3
8995 .IPs 4
8996 mlib
8997 .IPs 5
8998 AltiVec
8999 .IPs 6
9000 floating point AAN
9002 .PD 1
9005 .B idct=<0\-99>
9006 IDCT algorithm
9008 .I NOTE:
9009 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
9010 .PD 0
9011 .RSs
9012 .IPs 0
9013 Automatically select a good one (default).
9014 .IPs 1
9015 JPEG reference integer
9016 .IPs 2
9017 simple
9018 .IPs 3
9019 simplemmx
9020 .IPs 4
9021 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
9022 .IPs 5
9024 .IPs 6
9025 mlib
9026 .IPs 7
9028 .IPs 8
9029 AltiVec
9030 .IPs 9
9032 .IPs 10
9033 simplearm
9034 .IPs 11
9035 H.264
9036 .IPs 12
9038 .IPs 13
9040 .IPs 14
9041 xvidmmx
9042 .IPs 15
9043 CAVS
9044 .IPs 16
9045 simplearmv5te
9046 .IPs 17
9047 simplearmv6
9049 .PD 1
9052 .B lumi_mask=<0.0\-1.0>
9053 Luminance masking is a 'psychosensory' setting that is supposed to
9054 make use of the fact that the human eye tends to notice fewer details
9055 in very bright parts of the picture.
9056 Luminance masking compresses bright areas stronger than medium ones,
9057 so it will save bits that can be spent again on other frames, raising
9058 overall subjective quality, while possibly reducing PSNR.
9060 .I WARNING:
9061 Be careful, overly large values can cause disastrous things.
9063 .I WARNING:
9064 Large values might look good on some monitors but may look horrible
9065 on other monitors.
9066 .PD 0
9067 .RSs
9068 .IPs "0.0\ \ "
9069 disabled (default)
9070 .IPs 0.0\-0.3
9071 sane range
9073 .PD 1
9076 .B dark_mask=<0.0\-1.0>
9077 Darkness masking is a 'psychosensory' setting that is supposed to
9078 make use of the fact that the human eye tends to notice fewer details
9079 in very dark parts of the picture.
9080 Darkness masking compresses dark areas stronger than medium ones,
9081 so it will save bits that can be spent again on other frames, raising
9082 overall subjective quality, while possibly reducing PSNR.
9084 .I WARNING:
9085 Be careful, overly large values can cause disastrous things.
9087 .I WARNING:
9088 Large values might look good on some monitors but may look horrible
9089 on other monitors / TV / TFT.
9090 .PD 0
9091 .RSs
9092 .IPs "0.0\ \ "
9093 disabled (default)
9094 .IPs 0.0\-0.3
9095 sane range
9097 .PD 1
9100 .B tcplx_mask=<0.0\-1.0>
9101 Temporal complexity masking (default: 0.0 (disabled)).
9102 Imagine a scene with a bird flying across the whole scene; tcplx_mask
9103 will raise the quantizers of the bird's macroblocks (thus decreasing their
9104 quality), as the human eye usually does not have time to see all the bird's
9105 details.
9106 Be warned that if the masked object stops (e.g.\& the bird lands) it is
9107 likely to look horrible for a short period of time, until the encoder
9108 figures out that the object is not moving and needs refined blocks.
9109 The saved bits will be spent on other parts of the video, which may increase
9110 subjective quality, provided that tcplx_mask is carefully chosen.
9113 .B scplx_mask=<0.0\-1.0>
9114 Spatial complexity masking.
9115 Larger values help against blockiness, if no deblocking filter is used for
9116 decoding, which is maybe not a good idea.
9118 Imagine a scene with grass (which usually has great spatial complexity),
9119 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
9120 macroblocks, thus decreasing its quality, in order to spend more bits on
9121 the sky and the house.
9123 .I HINT:
9124 Crop any black borders completely as they will reduce the quality
9125 of the macroblocks (also applies without scplx_mask).
9126 .PD 0
9127 .RSs
9128 .IPs "0.0\ \ "
9129 disabled (default)
9130 .IPs 0.0\-0.5
9131 sane range
9133 .PD 1
9134 .sp 1
9136 .I NOTE:
9137 This setting does not have the same effect as using a custom matrix that
9138 would compress high frequencies harder, as scplx_mask will reduce the
9139 quality of P blocks even if only DC is changing.
9140 The result of scplx_mask will probably not look as good.
9144 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
9145 Reduces the quality of inter blocks.
9146 This is equivalent to increasing the quality of intra blocks, because the
9147 same average bitrate will be distributed by the rate controller to the
9148 whole video sequence (default: 0.0 (disabled)).
9149 p_mask=1.0 doubles the bits allocated to each intra block.
9152 .B border_mask=<0.0\-1.0>
9153 border-processing for MPEG-style encoders.
9154 Border processing increases the quantizer for macroblocks which are less
9155 than 1/5th of the frame width/height away from the frame border,
9156 since they are often visually less important.
9159 .B "naq\ \ \ \ "
9160 Normalize adaptive quantization (experimental).
9161 When using adaptive quantization (*_mask), the average per-MB quantizer may no
9162 longer match the requested frame-level quantizer.
9163 Naq will attempt to adjust the per-MB quantizers to maintain the proper
9164 average.
9167 .B "ildct\ \ "
9168 Use interlaced DCT.
9171 .B "ilme\ \ \ "
9172 Use interlaced motion estimation (mutually exclusive with qpel).
9175 .B "alt\ \ \ \ "
9176 Use alternative scantable.
9179 .B "top=<\-1\-1>\ \ \ "
9180 .PD 0
9181 .RSs
9182 .IPs \-1
9183 automatic
9184 .IPs 0
9185 bottom field first
9186 .IPs 1
9187 top field first
9189 .PD 1
9192 .B format=<value>
9193 .PD 0
9194 .RSs
9195 .IPs "YV12\ "
9196 default
9197 .IPs "444P\ "
9198 for ffv1
9199 .IPs "422P\ "
9200 for HuffYUV, lossless JPEG, dv and ffv1
9201 .IPs "411P\ "
9202 for lossless JPEG, dv and ffv1
9203 .IPs "YVU9\ "
9204 for lossless JPEG, ffv1 and svq1
9205 .IPs "BGR32"
9206 for lossless JPEG and ffv1
9208 .PD 1
9211 .B "pred\ \ \ "
9212 (for HuffYUV)
9213 .PD 0
9214 .RSs
9215 .IPs 0
9216 left prediction
9217 .IPs 1
9218 plane/\:gradient prediction
9219 .IPs 2
9220 median prediction
9222 .PD 1
9225 .B "pred\ \ \ "
9226 (for lossless JPEG)
9227 .PD 0
9228 .RSs
9229 .IPs 0
9230 left prediction
9231 .IPs 1
9232 top prediction
9233 .IPs 2
9234 topleft prediction
9235 .IPs 3
9236 plane/\:gradient prediction
9237 .IPs 6
9238 mean prediction
9240 .PD 1
9243 .B "coder\ \ "
9244 (for ffv1)
9245 .PD 0
9246 .RSs
9247 .IPs 0
9248 vlc coding (Golomb-Rice)
9249 .IPs 1
9250 arithmetic coding (CABAC)
9252 .PD 1
9255 .B context
9256 (for ffv1)
9257 .PD 0
9258 .RSs
9259 .IPs 0
9260 small context model
9261 .IPs 1
9262 large context model
9264 .PD 1
9265 .sp 1
9267 (for ffvhuff)
9269 .PD 0
9270 .RSs
9271 .IPs 0
9272 predetermined Huffman tables (builtin or two pass)
9273 .IPs 1
9274 adaptive Huffman tables
9276 .PD 1
9279 .B "qpel\ \ \ "
9280 Use quarter pel motion compensation (mutually exclusive with ilme).
9282 .I HINT:
9283 This seems only useful for high bitrate encodings.
9286 .B mbcmp=<0\-2000>
9287 Sets the comparison function for the macroblock decision, has only
9288 an effect if mbd=0.
9289 This is also used for some motion search functions, in which case
9290 it has an effect regardless of mbd setting.
9291 .PD 0
9292 .RSs
9293 .IPs "0 (SAD)"
9294 sum of absolute differences, fast (default)
9295 .IPs "1 (SSE)"
9296 sum of squared errors
9297 .IPs "2 (SATD)"
9298 sum of absolute Hadamard transformed differences
9299 .IPs "3 (DCT)"
9300 sum of absolute DCT transformed differences
9301 .IPs "4 (PSNR)"
9302 sum of squared quantization errors (avoid, low quality)
9303 .IPs "5 (BIT)"
9304 number of bits needed for the block
9305 .IPs "6 (RD)"
9306 rate distortion optimal, slow
9307 .IPs "7 (ZERO)"
9309 .IPs "8 (VSAD)"
9310 sum of absolute vertical differences
9311 .IPs "9 (VSSE)"
9312 sum of squared vertical differences
9313 .IPs "10 (NSSE)"
9314 noise preserving sum of squared differences
9315 .IPs "11 (W53)"
9316 5/3 wavelet, only used in snow
9317 .IPs "12 (W97)"
9318 9/7 wavelet, only used in snow
9319 .IPs "+256\ "
9320 Also use chroma, currently does not work (correctly) with B-frames.
9322 .PD 1
9325 .B ildctcmp=<0\-2000>
9326 Sets the comparison function for interlaced DCT decision
9327 (see mbcmp for available comparison functions).
9330 .B precmp=<0\-2000>
9331 Sets the comparison function for motion estimation pre pass
9332 (see mbcmp for available comparison functions) (default: 0).
9335 .B cmp=<0\-2000>
9336 Sets the comparison function for full pel motion estimation
9337 (see mbcmp for available comparison functions) (default: 0).
9340 .B subcmp=<0\-2000>
9341 Sets the comparison function for sub pel motion estimation
9342 (see mbcmp for available comparison functions) (default: 0).
9345 .B skipcmp=<0\-2000>
9346 FIXME: Document this.
9349 .B nssew=<0\-1000000>
9350 This setting controls NSSE weight, where larger weights will result in
9351 more noise.
9352 0 NSSE is identical to SSE
9353 You may find this useful if you prefer to keep some noise in your encoded
9354 video rather than filtering it away before encoding (default: 8).
9357 .B predia=<\-99\-6>
9358 diamond type and size for motion estimation pre-pass
9361 .B dia=<\-99\-6>
9362 Diamond type & size for motion estimation.
9363 Motion search is an iterative process.
9364 Using a small diamond does not limit the search to finding only small
9365 motion vectors.
9366 It is just somewhat more likely to stop before finding the very best motion
9367 vector, especially when noise is involved.
9368 Bigger diamonds allow a wider search for the best motion vector, thus are
9369 slower but result in better quality.
9371 Big normal diamonds are better quality than shape-adaptive diamonds.
9373 Shape-adaptive diamonds are a good tradeoff between speed and quality.
9375 .I NOTE:
9376 The sizes of the normal diamonds and shape adaptive ones do not have
9377 the same meaning.
9378 .RSs
9379 .IPs \-3
9380 shape adaptive (fast) diamond with size 3
9381 .IPs \-2
9382 shape adaptive (fast) diamond with size 2
9383 .IPs \-1
9384 uneven multi-hexagon search (slow)
9385 .IPs  1
9386 normal size=1 diamond (default) =EPZS type diamond
9389       0
9390      000
9391       0
9393 .IPs 2
9394 normal size=2 diamond
9397       0
9398      000
9399     00000
9400      000
9401       0
9406 .B "trell\ \ "
9407 Trellis searched quantization.
9408 This will find the optimal encoding for each 8x8 block.
9409 Trellis searched quantization is quite simply an optimal quantization in
9410 the PSNR versus bitrate sense (Assuming that there would be no rounding
9411 errors introduced by the IDCT, which is obviously not the case.).
9412 It simply finds a block for the minimum of error and lambda*bits.
9413 .PD 0
9414 .RSs
9415 .IPs lambda
9416 quantization parameter (QP) dependent constant
9417 .IPs "bits\ "
9418 amount of bits needed to encode the block
9419 .IPs error
9420 sum of squared errors of the quantization
9422 .PD 1
9425 .B "cbp\ \ \ \ "
9426 Rate distorted optimal coded block pattern.
9427 Will select the coded block pattern which minimizes distortion + lambda*rate.
9428 This can only be used together with trellis quantization.
9431 .B "mv0\ \ \ \ "
9432 Try to encode each MB with MV=<0,0> and choose the better one.
9433 This has no effect if mbd=0.
9436 .B mv0_threshold=<any non-negative integer>
9437 When surrounding motion vectors are <0,0> and the motion estimation
9438 score of the current block is less than mv0_threshold, <0,0> is used for
9439 the motion vector and further motion estimation is skipped (default:
9440 256).
9441 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
9442 possibly make the encoded video look slightly better; raising
9443 mv0_threshold past 320 results in diminished PSNR and visual quality.
9444 Higher values speed up encoding very slightly (usually less than 1%,
9445 depending on the other options used).
9447 .I NOTE:
9448 This option does not require mv0 to be enabled.
9451 .B qprd (mbd=2 only)
9452 rate distorted optimal quantization parameter (QP) for the given
9453 lambda of each macroblock
9456 .B last_pred=<0\-99>
9457 amount of motion predictors from the previous frame
9458 .PD 0
9459 .RSs
9460 .IPs 0
9461 (default)
9462 .IPs a
9463 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
9464 previous frame.
9466 .PD 1
9469 .B preme=<0\-2>
9470 motion estimation pre-pass
9471 .PD 0
9472 .RSs
9473 .IPs 0
9474 disabled
9475 .IPs 1
9476 only after I-frames (default)
9477 .IPs 2
9478 always
9480 .PD 1
9483 .B subq=<1\-8>
9484 subpel refinement quality (for qpel) (default: 8 (high quality))
9486 .I NOTE:
9487 This has a significant effect on speed.
9490 .B refs=<1\-8>
9491 number of reference frames to consider for motion compensation
9492 (Snow only) (default: 1)
9495 .B "psnr\ \ \ "
9496 print the PSNR (peak signal to noise ratio) for the whole video after encoding
9497 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
9498 Returned values are in dB (decibel), the higher the better.
9501 .B mpeg_quant
9502 Use MPEG quantizers instead of H.263.
9505 .B "aic\ \ \ \ "
9506 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
9507 This will improve quality very slightly (around 0.02 dB PSNR) and slow
9508 down encoding very slightly (about 1%).
9510 .I NOTE:
9511 vqmin should be 8 or larger for H.263+ AIC.
9514 .B "aiv\ \ \ \ "
9515 alternative inter vlc for H.263+
9518 .B "umv\ \ \ \ "
9519 unlimited MVs (H.263+ only)
9520 Allows encoding of arbitrarily long MVs.
9523 .B ibias=<\-256\-256>
9524 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
9525 H.263 style quantizer default: 0)
9527 .I NOTE:
9528 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9529 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9532 .B pbias=<\-256\-256>
9533 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
9534 H.263 style quantizer default: \-64)
9536 .I NOTE:
9537 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9538 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9540 .I HINT:
9541 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
9544 .B nr=<0\-100000>
9545 Noise reduction, 0 means disabled.
9546 0\-600 is a useful range for typical content, but you may want to turn it
9547 up a bit more for very noisy content (default: 0).
9548 Given its small impact on speed, you might want to prefer to use this over
9549 filtering noise away with video filters like denoise3d or hqdn3d.
9552 .B qns=<0\-3>
9553 Quantizer noise shaping.
9554 Rather than choosing quantization to most closely match the source video
9555 in the PSNR sense, it chooses quantization such that noise (usually ringing)
9556 will be masked by similar-frequency content in the image.
9557 Larger values are slower but may not result in better quality.
9558 This can and should be used together with trellis quantization, in which case
9559 the trellis quantization (optimal for constant weight) will be used as
9560 startpoint for the iterative search.
9561 .PD 0
9562 .RSs
9563 .IPs 0
9564 disabled (default)
9565 .IPs 1
9566 Only lower the absolute value of coefficients.
9567 .IPs 2
9568 Only change coefficients before the last non-zero coefficient + 1.
9569 .IPs 3
9570 Try all.
9572 .PD 1
9575 .B inter_matrix=<comma separated matrix>
9576 Use custom inter matrix.
9577 It needs a comma separated string of 64 integers.
9580 .B intra_matrix=<comma separated matrix>
9581 Use custom intra matrix.
9582 It needs a comma separated string of 64 integers.
9585 .B vqmod_amp
9586 experimental quantizer modulation
9589 .B vqmod_freq
9590 experimental quantizer modulation
9593 .B "dc\ \ \ \ \ "
9594 intra DC precision in bits (default: 8).
9595 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
9598 .B cgop (also see sc_threshold)
9599 Close all GOPs.
9600 Currently it only works if scene change detection is disabled
9601 (sc_threshold=1000000000).
9604 .B "gmc\ \ \ \ "
9605 Enable Global Motion Compensation.
9608 .B (no)lowdelay
9609 Sets the low delay flag for MPEG-1/2 (disables B-frames).
9612 .B vglobal=<0\-3>
9613 Control writing global video headers.
9614 .PD 0
9615 .RSs
9616 .IPs 0
9617 Codec decides where to write global headers (default).
9618 .IPs 1
9619 Write global headers only in extradata (needed for .mp4/MOV/NUT).
9620 .IPs 2
9621 Write global headers only in front of keyframes.
9622 .IPs 3
9623 Combine 1 and 2.
9625 .PD 1
9628 .B aglobal=<0\-3>
9629 Same as vglobal for audio headers.
9632 .B level=<value>
9633 Set CodecContext Level.
9634 Use 31 or 41 to play video on a Playstation 3.
9637 .B skip_exp=<0\-1000000>
9638 FIXME: Document this.
9641 .B skip_factor=<0\-1000000>
9642 FIXME: Document this.
9645 .B skip_threshold=<0\-1000000>
9646 FIXME: Document this.
9649 .SS nuv (\-nuvopts)
9651 Nuppel video is based on RTJPEG and LZO.
9652 By default frames are first encoded with RTJPEG and then compressed with LZO,
9653 but it is possible to disable either or both of the two passes.
9654 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
9655 or the default LZO compressed RTJPEG.
9657 .I NOTE:
9658 The nuvrec documentation contains some advice and examples about the
9659 settings to use for the most common TV encodings.
9662 .B c=<0\-20>
9663 chrominance threshold (default: 1)
9666 .B l=<0\-20>
9667 luminance threshold (default: 1)
9670 .B "lzo\ \ \ \ "
9671 Enable LZO compression (default).
9674 .B "nolzo\ \ "
9675 Disable LZO compression.
9678 .B q=<3\-255>
9679 quality level (default: 255)
9682 .B "raw \ \ \ "
9683 Disable RTJPEG encoding.
9686 .B "rtjpeg\ "
9687 Enable RTJPEG encoding (default).
9690 .SS xvidenc (\-xvidencopts)
9692 There are three modes available: constant bitrate (CBR), fixed quantizer and
9693 two pass.
9696 .B pass=<1|2>
9697 Specify the pass in two pass mode.
9700 .B turbo (two pass only)
9701 Dramatically speeds up pass one using faster algorithms and disabling
9702 CPU-intensive options.
9703 This will probably reduce global PSNR a little bit and change individual
9704 frame type and PSNR a little bit more.
9707 .B bitrate=<value> (CBR or two pass mode)
9708 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
9709 if >16000.
9710 If <value> is negative, Xvid will use its absolute value as the target size
9711 (in kBytes) of the video and compute the associated bitrate automagically
9712 (default: 687 kbits/s).
9715 .B fixed_quant=<1\-31>
9716 Switch to fixed quantizer mode and specify the quantizer to be used.
9719 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
9720 User specified quality for specific parts (ending, credits, ...).
9721 Each zone is <start-frame>,<mode>,<value> where <mode> may be
9722 .PD 0
9723 .RSs
9724 .IPs "q"
9725 Constant quantizer override, where value=<2.0\-31.0>
9726 represents the quantizer value.
9727 .IPs "w"
9728 Ratecontrol weight override, where value=<0.01\-2.00>
9729 represents the quality correction in %.
9731 .PD 1
9732 .sp 1
9734 .I EXAMPLE:
9736 .PD 0
9737 .RSs
9738 .IPs zones=90000,q,20
9739 Encodes all frames starting with frame 90000 at constant quantizer 20.
9740 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9741 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9742 up to the end at constant quantizer 20.
9743 Note that the second zone is needed to delimit the first zone, as
9744 without it everything up until frame 89999 would be encoded at 10%
9745 bitrate.
9747 .PD 1
9750 .B me_quality=<0\-6>
9751 This option controls the motion estimation subsystem.
9752 The higher the value, the more precise the estimation should be (default: 6).
9753 The more precise the motion estimation is, the more bits can be saved.
9754 Precision is gained at the expense of CPU time so decrease this setting if
9755 you need realtime encoding.
9758 .B (no)qpel
9759 MPEG-4 uses a half pixel precision for its motion search by default.
9760 The standard proposes a mode where encoders are allowed to use quarter
9761 pixel precision.
9762 This option usually results in a sharper image.
9763 Unfortunately it has a great impact on bitrate and sometimes the
9764 higher bitrate use will prevent it from giving a better image
9765 quality at a fixed bitrate.
9766 It is better to test with and without this option and see whether it
9767 is worth activating.
9770 .B (no)gmc
9771 Enable Global Motion Compensation, which makes Xvid generate special
9772 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9773 Whether or not the use of this option will save bits is highly
9774 dependent on the source material.
9777 .B (no)trellis
9778 Trellis Quantization is a kind of adaptive quantization method that
9779 saves bits by modifying quantized coefficients to make them more
9780 compressible by the entropy encoder.
9781 Its impact on quality is good, and if VHQ uses too much CPU for you,
9782 this setting can be a good alternative to save a few bits (and gain
9783 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9786 .B (no)cartoon
9787 Activate this if your encoded sequence is an anime/\:cartoon.
9788 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9789 frame types and motion vectors for flat looking cartoons.
9792 .B (no)chroma_me
9793 The usual motion estimation algorithm uses only the luminance information to
9794 find the best motion vector.
9795 However for some video material, using the chroma planes can help find
9796 better vectors.
9797 This setting toggles the use of chroma planes for motion estimation
9798 (default: on).
9801 .B (no)chroma_opt
9802 Enable a chroma optimizer prefilter.
9803 It will do some extra magic on color information to minimize the
9804 stepped-stairs effect on edges.
9805 It will improve quality at the cost of encoding speed.
9806 It reduces PSNR by nature, as the mathematical deviation to the original
9807 picture will get bigger, but the subjective image quality will raise.
9808 Since it works with color information, you might want to turn it off when
9809 encoding in grayscale.
9812 .B (no)hq_ac
9813 Activates high-quality prediction of AC coefficients for intra frames from
9814 neighbor blocks (default: on).
9817 .B vhq=<0\-4>
9818 The motion search algorithm is based on a search in the usual color domain
9819 and tries to find a motion vector that minimizes the difference between the
9820 reference frame and the encoded frame.
9821 With this setting activated, Xvid will also use the frequency domain (DCT)
9822 to search for a motion vector that minimizes not only the spatial
9823 difference but also the encoding length of the block.
9824 Fastest to slowest:
9825 .PD 0
9826 .RSs
9827 .IPs 0
9829 .IPs 1
9830 mode decision (inter/\:intra MB) (default)
9831 .IPs 2
9832 limited search
9833 .IPs 3
9834 medium search
9835 .IPs 4
9836 wide search
9838 .PD 1
9841 .B (no)lumi_mask
9842 Adaptive quantization allows the macroblock quantizers to vary inside
9843 each frame.
9844 This is a 'psychosensory' setting that is supposed to make use of the
9845 fact that the human eye tends to notice fewer details in very bright
9846 and very dark parts of the picture.
9847 It compresses those areas more strongly than medium ones, which will
9848 save bits that can be spent again on other frames, raising overall
9849 subjective quality and possibly reducing PSNR.
9852 .B (no)grayscale
9853 Make Xvid discard chroma planes so the encoded video is grayscale only.
9854 Note that this does not speed up encoding, it just prevents chroma data
9855 from being written in the last stage of encoding.
9858 .B (no)interlacing
9859 Encode the fields of interlaced video material.
9860 Turn this option on for interlaced content.
9862 .I NOTE:
9863 Should you rescale the video, you would need an interlace-aware resizer,
9864 which you can activate with \-vf scale=<width>:<height>:1.
9867 .B min_iquant=<0\-31>
9868 minimum I-frame quantizer (default: 2)
9871 .B max_iquant=<0\-31>
9872 maximum I-frame quantizer (default: 31)
9875 .B min_pquant=<0\-31>
9876 minimum P-frame quantizer (default: 2)
9879 .B max_pquant=<0\-31>
9880 maximum P-frame quantizer (default: 31)
9883 .B min_bquant=<0\-31>
9884 minimum B-frame quantizer (default: 2)
9887 .B max_bquant=<0\-31>
9888 maximum B-frame quantizer (default: 31)
9891 .B min_key_interval=<value> (two pass only)
9892 minimum interval between keyframes (default: 0)
9895 .B max_key_interval=<value>
9896 maximum interval between keyframes (default: 10*fps)
9899 .B quant_type=<h263|mpeg>
9900 Sets the type of quantizer to use.
9901 For high bitrates, you will find that MPEG quantization preserves more detail.
9902 For low bitrates, the smoothing of H.263 will give you less block noise.
9903 When using custom matrices, MPEG quantization
9904 .B must
9905 be used.
9908 .B quant_intra_matrix=<filename>
9909 Load a custom intra matrix file.
9910 You can build such a file with xvid4conf's matrix editor.
9913 .B quant_inter_matrix=<filename>
9914 Load a custom inter matrix file.
9915 You can build such a file with xvid4conf's matrix editor.
9918 .B keyframe_boost=<0\-1000> (two pass mode only)
9919 Shift some bits from the pool for other frame types to intra frames,
9920 thus improving keyframe quality.
9921 This amount is an extra percentage, so a value of 10 will give
9922 your keyframes 10% more bits than normal
9923 (default: 0).
9926 .B kfthreshold=<value> (two pass mode only)
9927 Works together with kfreduction.
9928 Determines the minimum distance below which you consider that
9929 two frames are considered consecutive and treated differently
9930 according to kfreduction
9931 (default: 10).
9934 .B kfreduction=<0\-100> (two pass mode only)
9935 The above two settings can be used to adjust the size of keyframes that
9936 you consider too close to the first (in a row).
9937 kfthreshold sets the range in which keyframes are reduced, and
9938 kfreduction determines the bitrate reduction they get.
9939 The last I-frame will get treated normally
9940 (default: 30).
9943 .B max_bframes=<0\-4>
9944 Maximum number of B-frames to put between I/P-frames (default: 2).
9947 .B bquant_ratio=<0\-1000>
9948 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9951 .B bquant_offset=<\-1000\-1000>
9952 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9955 .B bf_threshold=<\-255\-255>
9956 This setting allows you to specify what priority to place on the use of
9957 B-frames.
9958 The higher the value, the higher the probability of B-frames being used
9959 (default: 0).
9960 Do not forget that B-frames usually have a higher quantizer, and therefore
9961 aggressive production of B-frames may cause worse visual quality.
9964 .B (no)closed_gop
9965 This option tells Xvid to close every GOP (Group Of Pictures bounded
9966 by two I-frames), which makes GOPs independent from each other.
9967 This just implies that the last frame of the GOP is either a P-frame or a
9968 N-frame but not a B-frame.
9969 It is usually a good idea to turn this option on (default: on).
9972 .B (no)packed
9973 This option is meant to solve frame-order issues when encoding to
9974 container formats like AVI that cannot cope with out-of-order frames.
9975 In practice, most decoders (both software and hardware) are able to deal
9976 with frame-order themselves, and may get confused when this option is
9977 turned on, so you can safely leave if off, unless you really know what
9978 you are doing.
9980 .I WARNING:
9981 This will generate an illegal bitstream, and will not be
9982 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
9984 .I WARNING:
9985 This will also store a fake DivX version in the file so the bug
9986 autodetection of some decoders might be confused.
9989 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
9990 This setting allows the creation of variable framerate video streams.
9991 The value of the setting specifies a threshold under which, if the
9992 difference of the following frame to the previous frame is below or equal
9993 to this threshold, a frame gets not coded (a so called n-vop is placed
9994 in the stream).
9995 On playback, when reaching an n-vop the previous frame will be displayed.
9997 .I WARNING:
9998 Playing with this setting may result in a jerky video, so use it at your
9999 own risks!
10002 .B rc_reaction_delay_factor=<value>
10003 This parameter controls the number of frames the CBR rate controller
10004 will wait before reacting to bitrate changes and compensating for them
10005 to obtain a constant bitrate over an averaging range of frames.
10008 .B rc_averaging_period=<value>
10009 Real CBR is hard to achieve.
10010 Depending on the video material, bitrate can be variable, and hard to predict.
10011 Therefore Xvid uses an averaging period for which it guarantees a given
10012 amount of bits (minus a small variation).
10013 This settings expresses the "number of frames" for which Xvid averages
10014 bitrate and tries to achieve CBR.
10017 .B rc_buffer=<value>
10018 size of the rate control buffer
10021 .B curve_compression_high=<0\-100>
10022 This setting allows Xvid to take a certain percentage of bits away from
10023 high bitrate scenes and give them back to the bit reservoir.
10024 You could also use this if you have a clip with so many bits allocated
10025 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
10026 (default: 0).
10029 .B curve_compression_low=<0\-100>
10030 This setting allows Xvid to give a certain percentage of extra bits to the
10031 low bitrate scenes, taking a few bits from the entire clip.
10032 This might come in handy if you have a few low-bitrate scenes that are
10033 still blocky (default: 0).
10036 .B overflow_control_strength=<0\-100>
10037 During pass one of two pass encoding, a scaled bitrate curve is computed.
10038 The difference between that expected curve and the result obtained during
10039 encoding is called overflow.
10040 Obviously, the two pass rate controller tries to compensate for that overflow,
10041 distributing it over the next frames.
10042 This setting controls how much of the overflow is distributed every time
10043 there is a new frame.
10044 Low values allow lazy overflow control, big rate bursts are compensated for
10045 more slowly (could lead to lack of precision for small clips).
10046 Higher values will make changes in bit redistribution more abrupt, possibly
10047 too abrupt if you set it too high, creating artifacts (default: 5).
10049 .I NOTE:
10050 This setting impacts quality a lot, play with it carefully!
10053 .B max_overflow_improvement=<0\-100>
10054 During the frame bit allocation, overflow control may increase the frame
10055 size.
10056 This parameter specifies the maximum percentage by which the overflow
10057 control is allowed to increase the frame size, compared to the ideal curve
10058 allocation
10059 (default: 5).
10062 .B max_overflow_degradation=<0\-100>
10063 During the frame bit allocation, overflow control may decrease the frame
10064 size.
10065 This parameter specifies the maximum percentage by which the overflow
10066 control is allowed to decrease the frame size, compared to the ideal curve
10067 allocation
10068 (default: 5).
10071 .B container_frame_overhead=<0...>
10072 Specifies a frame average overhead per frame, in bytes.
10073 Most of the time users express their target bitrate for video w/o taking
10074 care of the video container overhead.
10075 This small but (mostly) constant overhead can cause the target file size
10076 to be exceeded.
10077 Xvid allows users to set the amount of overhead per frame the
10078 container generates (give only an average per frame).
10079 0 has a special meaning, it lets Xvid use its own default values
10080 (default: 24 \- AVI average overhead).
10083 .B profile=<profile_name>
10084 Restricts options and VBV (peak bitrate over a short period) according to
10085 the Simple, Advanced Simple and DivX profiles.
10086 The resulting videos should be playable on standalone players adhering to these
10087 profile specifications.
10088 .PD 0
10089 .RSs
10090 .IPs unrestricted
10091 no restrictions (default)
10092 .IPs "sp0\ \ "
10093 simple profile at level 0
10094 .IPs "sp1\ \ "
10095 simple profile at level 1
10096 .IPs "sp2\ \ "
10097 simple profile at level 2
10098 .IPs "sp3\ \ "
10099 simple profile at level 3
10100 .IPs "asp0\ "
10101 advanced simple profile at level 0
10102 .IPs "asp1\ "
10103 advanced simple profile at level 1
10104 .IPs "asp2\ "
10105 advanced simple profile at level 2
10106 .IPs "asp3\ "
10107 advanced simple profile at level 3
10108 .IPs "asp4\ "
10109 advanced simple profile at level 4
10110 .IPs "asp5\ "
10111 advanced simple profile at level 5
10112 .IPs dxnhandheld
10113 DXN handheld profile
10114 .IPs dxnportntsc
10115 DXN portable NTSC profile
10116 .IPs dxnportpal
10117 DXN portable PAL profile
10118 .IPs dxnhtntsc
10119 DXN home theater NTSC profile
10120 .IPs dxnhtpal
10121 DXN home theater PAL profile
10122 .IPs dxnhdtv
10123 DXN HDTV profile
10125 .PD 1
10127 .I NOTE:
10128 These profiles should be used in conjunction with an appropriate \-ffourcc.
10129 Generally DX50 is applicable, as some players do not recognize Xvid but
10130 most recognize DivX.
10134 .B par=<mode>
10135 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
10136 the Display Aspect Ratio).
10137 PAR is the ratio of the width and height of a single pixel.
10138 So both are related like this: DAR = PAR * (width/height).
10140 MPEG-4 defines 5 pixel aspect ratios and one extended
10141 one, giving the opportunity to specify a specific pixel aspect
10142 ratio.
10143 5 standard modes can be specified:
10144 .PD 0
10145 .RSs
10146 .IPs vga11
10147 It is the usual PAR for PC content.
10148 Pixels are a square unit.
10149 .IPs pal43
10150 PAL standard 4:3 PAR.
10151 Pixels are rectangles.
10152 .IPs pal169
10153 same as above
10154 .IPs ntsc43
10155 same as above
10156 .IPs ntsc169
10157 same as above (Do not forget to give the exact ratio.)
10158 .IPs "ext\ \ "
10159 Allows you to specify your own pixel aspect ratio with par_width and
10160 par_height.
10162 .PD 1
10164 .I NOTE:
10165 In general, setting aspect and autoaspect options is enough.
10169 .B par_width=<1\-255> (par=ext only)
10170 Specifies the width of the custom pixel aspect ratio.
10173 .B par_height=<1\-255> (par=ext only)
10174 Specifies the height of the custom pixel aspect ratio.
10177 .B aspect=<x/y | f (float value)>
10178 Store movie aspect internally, just like MPEG files.
10179 Much nicer solution than rescaling, because quality is not decreased.
10180 MPlayer and a few others players will play these files correctly, others
10181 will display them with the wrong aspect.
10182 The aspect parameter can be given as a ratio or a floating point number.
10185 .B (no)autoaspect
10186 Same as the aspect option, but automatically computes aspect, taking
10187 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
10188 filter chain.
10191 .B "psnr\ \ \ "
10192 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
10193 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
10194 the current directory.
10195 Returned values are in dB (decibel), the higher the better.
10198 .B "debug\ \ "
10199 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
10200 file.)
10204 .sp 1
10205 The following option is only available in Xvid 1.1.x.
10208 .B bvhq=<0|1>
10209 This setting allows vector candidates for B-frames to be used for
10210 the encoding chosen using a rate distortion optimized operator,
10211 which is what is done for P-frames by the vhq option.
10212 This produces nicer-looking B-frames while incurring almost no
10213 performance penalty (default: 1).
10216 .sp 1
10217 The following option is only available in the 1.2.x version of Xvid.
10220 .B threads=<0\-n>
10221 Create n threads to run the motion estimation (default: 0).
10222 The maximum number of threads that can be used is the picture height
10223 divided by 16.
10226 .SS x264enc (\-x264encopts)
10229 .B bitrate=<value>
10230 Sets the average bitrate to be used in kbits/\:second (default: off).
10231 Since local bitrate may vary, this average may be inaccurate for
10232 very short videos (see ratetol).
10233 Constant bitrate can be achieved by combining this with vbv_maxrate,
10234 at significant reduction in quality.
10237 .B qp=<0\-51>
10238 This selects the quantizer to use for P-frames.
10239 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
10240 20\-40 is a useful range.
10241 Lower values result in better fidelity, but higher bitrates.
10242 0 is lossless.
10243 Note that quantization in H.264 works differently from MPEG-1/2/4:
10244 H.264's quantization parameter (QP) is on a logarithmic scale.
10245 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
10246 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
10249 .B crf=<1.0\-50.0>
10250 Enables constant quality mode, and selects the quality.
10251 The scale is similar to QP.
10252 Like the bitrate-based modes, this allows each frame to use a
10253 different QP based on the frame's complexity.
10256 .B pass=<1\-3>
10257 Enable 2 or 3-pass mode.
10258 It is recommended to always encode in 2 or 3-pass mode as it leads to a
10259 better bit distribution and improves overall quality.
10260 .PD 0
10261 .RSs
10262 .IPs 1
10263 first pass
10264 .IPs 2
10265 second pass (of two pass encoding)
10266 .IPs 3
10267 Nth pass (second and third passes of three pass encoding)
10270 Here is how it works, and how to use it:
10272 The first pass (pass=1) collects statistics on the video and writes them
10273 to a file.
10274 You might want to deactivate some CPU-hungry options, apart from the ones
10275 that are on by default.
10277 In two pass mode, the second pass (pass=2) reads the statistics file and
10278 bases ratecontrol decisions on it.
10280 In three pass mode, the second pass (pass=3, that is not a typo)
10281 does both: It first reads the statistics, then overwrites them.
10282 You can use all encoding options, except very CPU-hungry options.
10284 The third pass (pass=3) is the same as the second pass, except that it has
10285 the second pass' statistics to work from.
10286 You can use all encoding options, including CPU-hungry ones.
10288 The first pass may use either average bitrate or constant quantizer.
10289 ABR is recommended, since it does not require guessing a quantizer.
10290 Subsequent passes are ABR, and must specify bitrate.
10291 .REss
10294 .B turbo=<0\-2>
10295 Fast first pass mode.
10296 During the first pass of a two or more pass encode it is possible to gain
10297 speed by disabling some options with negligible or even no impact on the
10298 final pass output quality.
10299 .PD 0
10300 .RSs
10301 .IPs 0
10302 disabled (default)
10303 .IPs 1
10304 Reduce subq, frameref and disable some inter-macroblock partition analysis
10305 modes.
10306 .IPs 2
10307 Reduce subq and frameref to 1, use a diamond ME search and disable all
10308 partition analysis modes.
10311 Level 1 can increase first pass speed up to 2x with no change in the global
10312 PSNR of the final pass compared to a full quality first pass.
10314 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
10315 in the global PSNR of the final pass compared to a full quality first pass.
10316 .REss
10319 .B keyint=<value>
10320 Sets maximum interval between IDR-frames (default: 250).
10321 Larger values save bits, thus improve quality, at the cost of seeking
10322 precision.
10323 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
10324 values of keyint.
10327 .B keyint_min=<1\-keyint/2>
10328 Sets minimum interval between IDR-frames (default: 25).
10329 If scenecuts appear within this interval, they are still encoded as
10330 I-frames, but do not start a new GOP.
10331 In H.264, I-frames do not necessarily bound a closed GOP because it is
10332 allowable for a P-frame to be predicted from more frames than just the one
10333 frame before it (also see frameref).
10334 Therefore, I-frames are not necessarily seekable.
10335 IDR-frames restrict subsequent P-frames from referring to any frame
10336 prior to the IDR-frame.
10339 .B scenecut=<\-1\-100>
10340 Controls how aggressively to insert extra I-frames (default: 40).
10341 With small values of scenecut, the codec often has to force an I-frame
10342 when it would exceed keyint.
10343 Good values of scenecut may find a better location for the I-frame.
10344 Large values use more I-frames than necessary, thus wasting bits.
10345 \-1 disables scene-cut detection, so I-frames are inserted only once
10346 every other keyint frames, even if a scene-cut occurs earlier.
10347 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
10348 are just as big as I-frames, but do not reset the "keyint counter".
10351 .B (no)intra_refresh
10352 Periodic intra block refresh instead of keyframes (default: disabled).
10353 This option disables IDR-frames, and, instead, uses a moving vertical bar
10354 of intra-coded blocks. This reduces compression efficiency but benefits
10355 low-latency streaming and resilience to packet loss.
10358 .B frameref=<1\-16>
10359 Number of previous frames used as predictors in B- and P-frames (default: 3).
10360 This is effective in anime, but in live-action material the improvements
10361 usually drop off very rapidly above 6 or so reference frames.
10362 This has no effect on decoding speed, but does increase the memory needed for
10363 decoding.
10364 Some decoders can only handle a maximum of 15 reference frames.
10367 .B bframes=<0\-16>
10368 maximum number of consecutive B-frames between I- and P-frames (default: 3)
10371 .B (no)b_adapt
10372 Automatically decides when to use B-frames and how many, up to the maximum
10373 specified above (default: on).
10374 If this option is disabled, then the maximum number of B-frames is used.
10377 .B b_bias=<\-100\-100>
10378 Controls the decision performed by b_adapt.
10379 A higher b_bias produces more B-frames (default: 0).
10382 .B (no)b_pyramid
10383 Allows B-frames to be used as references for predicting other frames.
10384 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
10385 Without this option, B-frames follow the same pattern as MPEG-[124].
10386 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
10387 are predicted from I0 and P4.
10388 With this option, they are coded as I0 P4 B2 B1 B3.
10389 B2 is the same as above, but B1 is predicted from I0 and B2, and
10390 B3 is predicted from B2 and P4.
10391 This usually results in slightly improved compression, at almost no
10392 speed cost.
10393 However, this is an experimental option: it is not fully tuned and
10394 may not always help.
10395 Requires bframes >= 2.
10396 Disadvantage: increases decoding delay to 2 frames.
10399 .B (no)deblock
10400 Use deblocking filter (default: on).
10401 As it takes very little time compared to its quality gain, it is not
10402 recommended to disable it.
10405 .B deblock=<\-6\-6>,<\-6\-6>
10406 The first parameter is AlphaC0 (default: 0).
10407 This adjusts thresholds for the H.264 in-loop deblocking filter.
10408 First, this parameter adjusts the maximum amount of change that the filter is
10409 allowed to cause on any one pixel.
10410 Secondly, this parameter affects the threshold for difference across the
10411 edge being filtered.
10412 A positive value reduces blocking artifacts more, but will also smear details.
10414 The second parameter is Beta (default: 0).
10415 This affects the detail threshold.
10416 Very detailed blocks are not filtered, since the smoothing caused by the
10417 filter would be more noticeable than the original blocking.
10419 The default behavior of the filter almost always achieves optimal quality,
10420 so it is best to either leave it alone, or make only small adjustments.
10421 However, if your source material already has some blocking or noise which
10422 you would like to remove, it may be a good idea to turn it up a little bit.
10425 .B (no)cabac
10426 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
10427 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
10428 Unless you are looking for decoding speed, you should not disable it.
10431 .B qp_min=<1\-51> (ABR or two pass)
10432 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
10435 .B qp_max=<1\-51> (ABR or two pass)
10436 maximum quantizer (default: 51)
10439 .B qp_step=<1\-50> (ABR or two pass)
10440 maximum value by which the quantizer may be incremented/decremented between
10441 frames (default: 4)
10444 .B (no)mbtree
10445 Enable macroblock tree ratecontrol (default: enabled).
10446 Use a large lookahead to track temporal propagation of data and weight quality
10447 accordingly.
10448 In multi-pass mode, this writes to a separate stats file named
10449 <passlogfile>.mbtree.
10452 .B rc_lookahead=<0\-250>
10453 Adjust the mbtree lookahead distance (default: 40).
10454 Larger values will be slower and cause x264 to consume more memory, but can
10455 yield higher quality.
10458 .B ratetol=<0.1\-100.0> (ABR or two pass)
10459 allowed variance in average bitrate (no particular units) (default: 1.0)
10462 .B vbv_maxrate=<value> (ABR or two pass)
10463 maximum local bitrate, in kbits/\:second (default: disabled)
10466 .B vbv_bufsize=<value> (ABR or two pass)
10467 averaging period for vbv_maxrate, in kbits
10468 (default: none, must be specified if vbv_maxrate is enabled)
10471 .B vbv_init=<0.0\-1.0> (ABR or two pass)
10472 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
10475 .B ip_factor=<value>
10476 quantizer factor between I- and P-frames (default: 1.4)
10479 .B pb_factor=<value>
10480 quantizer factor between P- and B-frames (default: 1.3)
10483 .B qcomp=<0\-1> (ABR or two pass)
10484 quantizer compression (default: 0.6).
10485 A lower value makes the bitrate more constant,
10486 while a higher value makes the quantization parameter more constant.
10489 .B cplx_blur=<0\-999> (two pass only)
10490 Temporal blur of the estimated frame complexity, before curve compression
10491 (default: 20).
10492 Lower values allow the quantizer value to jump around more,
10493 higher values force it to vary more smoothly.
10494 cplx_blur ensures that each I-frame has quality comparable to the following
10495 P-frames, and ensures that alternating high and low complexity frames
10496 (e.g.\& low fps animation) do not waste bits on fluctuating quantizer.
10499 .B qblur=<0\-99> (two pass only)
10500 Temporal blur of the quantization parameter, after curve compression
10501 (default: 0.5).
10502 Lower values allow the quantizer value to jump around more,
10503 higher values force it to vary more smoothly.
10506 .B zones=<zone0>[/<zone1>[/...]]
10507 User specified quality for specific parts (ending, credits, ...).
10508 Each zone is <start-frame>,<end-frame>,<option> where option may be
10509 .PD 0
10510 .RSs
10511 .IPs "q=<0\-51>"
10512 quantizer
10513 .IPs "b=<0.01\-100.0>"
10514 bitrate multiplier
10516 .PD 1
10518 .I NOTE:
10519 The quantizer option is not strictly enforced.
10520 It affects only the planning stage of ratecontrol, and is still subject
10521 to overflow compensation and qp_min/qp_max.
10525 .B direct_pred=<name>
10526 Determines the type of motion prediction used for direct macroblocks
10527 in B-frames.
10528 .PD 0
10529 .RSs
10530 .IPs none
10531 Direct macroblocks are not used.
10532 .IPs spatial
10533 Motion vectors are extrapolated from neighboring blocks.
10534 (default)
10535 .IPs temporal
10536 Motion vectors are extrapolated from the following P-frame.
10537 .IPs auto
10538 The codec selects between spatial and temporal for each frame.
10540 .PD 1
10542 Spatial and temporal are approximately the same speed and PSNR,
10543 the choice between them depends on the video content.
10544 Auto is slightly better, but slower.
10545 Auto is most effective when combined with multipass.
10546 direct_pred=none is both slower and lower quality.
10550 .B weightp
10551 Weighted P-frame prediction mode (default: 2).
10552 .PD 0
10553 .RSs
10554 .IPs 0
10555 disabled (fastest)
10556 .IPs 1
10557 blind mode (slightly better quality)
10558 .IPs 2
10559 smart mode (best)
10561 .PD 1
10564 .B (no)weight_b
10565 Use weighted prediction in B-frames.
10566 Without this option, bidirectionally predicted macroblocks give
10567 equal weight to each reference frame.
10568 With this option, the weights are determined by the temporal position
10569 of the B-frame relative to the references.
10570 Requires bframes > 1.
10573 .B partitions=<list>
10574 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
10575 .PD 0
10576 .RSs
10577 .IPs p8x8
10578 Enable types p16x8, p8x16, p8x8.
10579 .IPs p4x4
10580 Enable types p8x4, p4x8, p4x4.
10581 p4x4 is recommended only with subq >= 5, and only at low resolutions.
10582 .IPs b8x8
10583 Enable types b16x8, b8x16, b8x8.
10584 .IPs i8x8
10585 Enable type i8x8.
10586 i8x8 has no effect unless 8x8dct is enabled.
10587 .IPs i4x4
10588 Enable type i4x4.
10589 .IPs all
10590 Enable all of the above types.
10591 .IPs none
10592 Disable all of the above types.
10594 .PD 1
10596 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
10597 are always enabled.
10599 The idea is to find the type and size that best describe a certain area
10600 of the picture.
10601 For example, a global pan is better represented by 16x16 blocks, while
10602 small moving objects are better represented by smaller blocks.
10606 .B (no)8x8dct
10607 Adaptive spatial transform size: allows macroblocks to choose between
10608 4x4 and 8x8 DCT.
10609 Also allows the i8x8 macroblock type.
10610 Without this option, only 4x4 DCT is used.
10613 .B me=<name>
10614 Select fullpixel motion estimation algorithm.
10615 .PD 0
10616 .RSs
10617 .IPs dia
10618 diamond search, radius 1 (fast)
10619 .IPs hex
10620 hexagon search, radius 2 (default)
10621 .IPs umh
10622 uneven multi-hexagon search (slow)
10623 .IPs esa
10624 exhaustive search (very slow, and no better than umh)
10626 .PD 1
10629 .B me_range=<4\-64>
10630 radius of exhaustive or multi-hexagon motion search (default: 16)
10633 .B subq=<0\-9>
10634 Adjust subpel refinement quality.
10635 This parameter controls quality versus speed tradeoffs involved in the motion
10636 estimation decision process.
10637 subq=5 can compress up to 10% better than subq=1.
10638 .PD 0
10639 .RSs
10640 .IPs 0
10641 Runs fullpixel precision motion estimation on all candidate
10642 macroblock types.
10643 Then selects the best type with SAD metric (faster than subq=1, not recommended
10644 unless you're looking for ultra-fast encoding).
10645 .IPs 1
10646 Does as 0, then refines the motion of that type to fast quarterpixel precision
10647 (fast).
10648 .IPs 2
10649 Runs halfpixel precision motion estimation on all candidate macroblock types.
10650 Then selects the best type with SATD metric.
10651 Then refines the motion of that type to fast quarterpixel precision.
10652 .IPs 3
10653 As 2, but uses a slower quarterpixel refinement.
10654 .IPs 4
10655 Runs fast quarterpixel precision motion estimation on all candidate
10656 macroblock types.
10657 Then selects the best type with SATD metric.
10658 Then finishes the quarterpixel refinement for that type.
10659 .IPs 5
10660 Runs best quality quarterpixel precision motion estimation on all
10661 candidate macroblock types, before selecting the best type.
10662 Also refines the two motion vectors used in bidirectional macroblocks with
10663 SATD metric, rather than reusing vectors from the forward and backward
10664 searches.
10665 .IPs 6
10666 Enables rate-distortion optimization of macroblock types in
10667 I- and P-frames.
10668 .IPs 7
10669 Enables rate-distortion optimization of macroblock types in all frames (default).
10670 .IPs 8
10671 Enables rate-distortion optimization of motion vectors and intra prediction modes in I- and P-frames.
10672 .IPs 9
10673 Enables rate-distortion optimization of motion vectors and intra prediction modes in all frames (best).
10675 .PD 1
10677 In the above, "all candidates" does not exactly mean all enabled types:
10678 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
10682 .B (no)chroma_me
10683 Takes into account chroma information during subpixel motion search
10684 (default: enabled).
10685 Requires subq>=5.
10688 .B (no)mixed_refs
10689 Allows each 8x8 or 16x8 motion partition to independently select a
10690 reference frame.
10691 Without this option, a whole macroblock must use the same reference.
10692 Requires frameref>1.
10695 .B trellis=<0\-2> (cabac only)
10696 rate-distortion optimal quantization
10697 .PD 0
10698 .RSs
10699 .IPs 0
10700 disabled
10701 .IPs 1
10702 enabled only for the final encode (default)
10703 .IPs 2
10704 enabled during all mode decisions (slow, requires subq>=6)
10706 .PD 1
10709 .B psy-rd=rd[,trell]
10710 Sets the strength of the psychovisual optimization.
10711 .PD 0
10712 .RSs
10713 .IPs rd=<0.0\-10.0>
10714 psy optimization strength (requires subq>=6) (default: 1.0)
10715 .IPs trell=<0.0\-10.0>
10716 trellis (requires trellis, experimental) (default: 0.0)
10718 .PD 1
10721 .B (no)psy
10722 Enable psychovisual optimizations that hurt PSNR and SSIM but ought to look
10723 better (default: enabled).
10726 .B deadzone_inter=<0\-32>
10727 Set the size of the inter luma quantization deadzone for non-trellis
10728 quantization (default: 21).
10729 Lower values help to preserve fine details and film grain (typically useful
10730 for high bitrate/quality encode), while higher values help filter out
10731 these details to save bits that can be spent again on other macroblocks
10732 and frames (typically useful for bitrate-starved encodes).
10733 It is recommended that you start by tweaking deadzone_intra before changing
10734 this parameter.
10737 .B deadzone_intra=<0\-32>
10738 Set the size of the intra luma quantization deadzone for non-trellis
10739 quantization (default: 11).
10740 This option has the same effect as deadzone_inter except that it affects
10741 intra frames.
10742 It is recommended that you start by tweaking this parameter before changing
10743 deadzone_inter.
10746 .B (no)fast_pskip
10747 Performs early skip detection in P-frames (default: enabled).
10748 This usually improves speed at no cost, but it can sometimes produce
10749 artifacts in areas with no details, like sky.
10752 .B (no)dct_decimate
10753 Eliminate dct blocks in P-frames containing only a small single coefficient
10754 (default: enabled).
10755 This will remove some details, so it will save bits that can be spent
10756 again on other frames, hopefully raising overall subjective quality.
10757 If you are compressing non-anime content with a high target bitrate, you
10758 may want to disable this to preserve as much detail as possible.
10761 .B nr=<0\-100000>
10762 Noise reduction, 0 means disabled.
10763 100\-1000 is a useful range for typical content, but you may want to turn it
10764 up a bit more for very noisy content (default: 0).
10765 Given its small impact on speed, you might want to prefer to use this over
10766 filtering noise away with video filters like denoise3d or hqdn3d.
10769 .B chroma_qp_offset=<\-12\-12>
10770 Use a different quantizer for chroma as compared to luma.
10771 Useful values are in the range <\-2\-2> (default: 0).
10774 .B aq_mode=<0\-2>
10775 Defines how adaptive quantization (AQ) distributes bits:
10776 .PD 0
10777 .RSs
10778 .IPs 0
10779 disabled
10780 .IPs 1
10781 Avoid moving bits between frames.
10782 .IPs 2
10783 Move bits between frames (by default).
10785 .PD 1
10788 .B aq_strength=<positive float value>
10789 Controls how much adaptive quantization (AQ) reduces blocking and blurring
10790 in flat and textured areas (default: 1.0).
10791 A value of 0.5 will lead to weak AQ and less details, when a value of 1.5
10792 will lead to strong AQ and more details.
10795 .B cqm=<flat|jvt|<filename>>
10796 Either uses a predefined custom quantization matrix or loads a JM format
10797 matrix file.
10798 .PD 0
10799 .RSs
10800 .IPs "flat\ "
10801 Use the predefined flat 16 matrix (default).
10802 .IPs "jvt\ \ "
10803 Use the predefined JVT matrix.
10804 .IPs <filename>
10805 Use the provided JM format matrix file.
10806 .PD 1
10809 .I NOTE:
10810 Windows CMD.EXE users may experience problems with parsing the command line
10811 if they attempt to use all the CQM lists.
10812 This is due to a command line length limitation.
10813 In this case it is recommended the lists be put into a JM format CQM
10814 file and loaded as specified above.
10818 .B cqm4iy=<list> (also see cqm)
10819 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10820 values in the 1\-255 range.
10823 .B cqm4ic=<list> (also see cqm)
10824 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10825 separated values in the 1\-255 range.
10828 .B cqm4py=<list> (also see cqm)
10829 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10830 values in the 1\-255 range.
10833 .B cqm4pc=<list> (also see cqm)
10834 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10835 separated values in the 1\-255 range.
10838 .B cqm8iy=<list> (also see cqm)
10839 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10840 values in the 1\-255 range.
10843 .B cqm8py=<list> (also see cqm)
10844 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10845 values in the 1\-255 range.
10848 .B level_idc=<10\-51>
10849 Set the bitstream's level as defined by annex A of the H.264 standard
10850 (default: 51 \- level 5.1).
10851 This is used for telling the decoder what capabilities it needs to support.
10852 Use this parameter only if you know what it means,
10853 and you have a need to set it.
10856 .B threads=<0\-16>
10857 Spawn threads to encode in parallel on multiple CPUs (default: 0).
10858 This has a slight penalty to compression quality.
10859 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10860 appropriate number of threads.
10863 .B (no)sliced_threads
10864 Use slice-based threading (default: disabled).
10865 Unlike normal threading, this option adds no encoding latency, but is slightly
10866 slower and less effective at compression.
10869 .B slice_max_size=<0 or positive integer>
10870 Maximum slice size in bytes (default: 0).
10871 A value of zero disables the maximum.
10874 .B slice_max_mbs=<0 or positive integer>
10875 Maximum slice size in number of macroblocks (default: 0).
10876 A value of zero disables the maximum.
10879 .B slices=<0 or positive integer>
10880 Maximum number of slices per frame (default: 0).
10881 A value of zero disables the maximum.
10884 .B sync_lookahead=<0\-250>
10885 Adjusts the size of the threaded lookahead buffer (default: 0).
10886 0 or 'auto' tells x264 to automatically determine buffer size.
10889 .B (no)deterministic
10890 Use only deterministic optimizations with multithreaded encoding (default:
10891 enabled).
10894 .B (no)global_header
10895 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10896 (default: disabled).
10897 Some players, such as the Sony PSP, require the use of this option.
10898 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10901 .B (no)interlaced
10902 Treat the video content as interlaced.
10905 .B (no)constrained_intra
10906 Enable constrained intra prediction (default: disabled).
10907 This significantly reduces compression, but is required for the base layer of
10908 SVC encodes.
10911 .B (no)aud
10912 Write access unit delimeters to the stream (default: disabled).
10913 Enable this only if your target container format requires access unit
10914 delimiters.
10917 .B overscan=<undef|show|crop>
10918 Include VUI overscan information in the stream (default: disabled).
10919 See doc/vui.txt in the x264 source code for more information.
10922 .B videoformat=<component|pal|ntsc|secam|mac|undef>
10923 Include VUI video format information in the stream (default: disabled).
10924 This is a purely informative setting for describing the original source.
10925 See doc/vui.txt in the x264 source code for more information.
10928 .B (no)fullrange
10929 Include VUI full range information in the stream (default: disabled).
10930 Use this option if your source video is not range limited.
10931 See doc/vui.txt in the x264 source code for more information.
10934 .B colorprim=<bt709|bt470m|bt470bg|smpte170m|smpte240m|film|undef>
10935 Include color primaries information (default: disabled).
10936 This can be used for color correction.
10937 See doc/vui.txt in the x264 source code for more information.
10940 .B transfer=<bt709|bt470m|bt470bg|linear|log100|log316|smpte170m|smpte240m>
10941 Include VUI transfer characteristics information in the stream
10942 (default: disabled).
10943 This can be used for color correction.
10944 See doc/vui.txt in the x264 source code for more information.
10947 .B colormatrix=<bt709|fcc|bt470bg|smpte170m|smpte240m|GBR|YCgCo>
10948 Include VUI matrix coefficients in the stream (default: disabled).
10949 This can be used for color correction.
10950 See doc/vui.txt in the x264 source code for more information.
10953 .B chromaloc=<0-5>
10954 Include VUI chroma sample location information in the stream (default:
10955 disabled).
10956 Use this option to ensure alignment of the chroma and luma planes after
10957 color space conversions.
10958 See doc/vui.txt in the x264 source code for more information.
10961 .B log=<\-1\-3>
10962 Adjust the amount of logging info printed to the screen.
10963 .PD 0
10964 .RSs
10965 .IPs "\-1"
10966 none
10967 .IPs " 0"
10968 Print errors only.
10969 .IPs " 1"
10970 warnings
10971 .IPs " 2"
10972 PSNR and other analysis statistics when the encode finishes (default)
10973 .IPs " 3"
10974 PSNR, QP, frametype, size, and other statistics for every frame
10976 .PD 1
10979 .B (no)psnr
10980 Print signal-to-noise ratio statistics.
10982 .I NOTE:
10983 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
10984 mathematically sound (they are simply the average of per-frame PSNRs).
10985 They are kept only for comparison to the JM reference codec.
10986 For all other purposes, please use either the 'Global' PSNR, or the per-frame
10987 PSNRs printed by log=3.
10990 .B (no)ssim
10991 Print the Structural Similarity Metric results.
10992 This is an alternative to PSNR, and may be better correlated with the
10993 perceived quality of the compressed video.
10996 .B (no)visualize
10997 Enable x264 visualizations during encoding.
10998 If the x264 on your system supports it, a new window will be opened during
10999 the encoding process, in which x264 will attempt to present an overview of
11000 how each frame gets encoded.
11001 Each block type on the visualized movie will be colored as follows:
11004 .B dump_yuv=<file name>
11005 Dump YUV frames to the specified file.
11006 For debugging use.
11007 .PD 0
11008 .RSs
11009 .IPs red/pink
11010 intra block
11011 .IPs "blue\ "
11012 inter block
11013 .IPs green
11014 skip block
11015 .IPs yellow
11016 B-block
11018 .PD 1
11020 This feature can be considered experimental and subject to change.
11021 In particular, it depends on x264 being compiled with visualizations enabled.
11022 Note that as of writing this, x264 pauses after encoding and visualizing
11023 each frame, waiting for the user to press a key, at which point the next
11024 frame will be encoded.
11028 .SS xvfw (\-xvfwopts)
11030 Encoding with Video for Windows codecs is mostly obsolete unless you wish
11031 to encode to some obscure fringe codec.
11034 .B codec=<name>
11035 The name of the binary codec file with which to encode.
11038 .B compdata=<file>
11039 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
11042 .SS MPEG muxer (\-mpegopts)
11044 The MPEG muxer can generate 5 types of streams, each of which has reasonable
11045 default parameters that the user can override.
11046 Generally, when generating MPEG files, it is advisable to disable
11047 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
11048 harddup and softskip video filters).
11050 .I EXAMPLE:
11051 .PD 0
11052 .RSs
11053 .IPs format=mpeg2:tsaf:vbitrate=8000
11055 .PD 1
11058 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
11059 stream format (default: mpeg2).
11060 pes1 and pes2 are very broken formats (no pack header and no padding),
11061 but VDR uses them; do not choose them unless you know exactly what you
11062 are doing.
11065 .B size=<up to 65535>
11066 Pack size in bytes, do not change unless you know exactly what
11067 you are doing (default: 2048).
11070 .B muxrate=<int>
11071 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
11072 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
11075 .B "tsaf\ \ \ "
11076 Sets timestamps on all frames, if possible; recommended when format=dvd.
11077 If dvdauthor complains with a message like "..audio sector out of range...",
11078 you probably did not enable this option.
11081 .B interleaving2
11082 Uses a better algorithm to interleave audio and video packets, based on the
11083 principle that the muxer will always try to fill the stream with the largest
11084 percentage of free space.
11087 .B vdelay=<1\-32760>
11088 Initial video delay time, in milliseconds (default: 0),
11089 use it if you want to delay video with respect to audio.
11090 It doesn't work with :drop.
11093 .B adelay=<1\-32760>
11094 Initial audio delay time, in milliseconds (default: 0),
11095 use it if you want to delay audio with respect to video.
11098 .B "drop\ \ \ "
11099 When used with vdelay the muxer drops the part of audio that was
11100 anticipated.
11103 .B vwidth, vheight=<1\-4095>
11104 Set the video width and height when video is MPEG-1/2.
11107 .B vpswidth, vpsheight=<1\-4095>
11108 Set pan and scan video width and height when video is MPEG-2.
11111 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
11112 Sets the display aspect ratio for MPEG-2 video.
11113 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
11116 .B vbitrate=<int>
11117 Sets the video bitrate in kbit/s for MPEG-1/2 video.
11120 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
11121 Sets the framerate for MPEG-1/2 video.
11122 This option will be ignored if used with the telecine option.
11125 .B telecine
11126 Enables 3:2 pulldown soft telecine mode: The muxer will make the
11127 video stream look like it was encoded at 30000/1001 fps.
11128 It only works with MPEG-2 video when the output framerate is
11129 24000/1001 fps, convert it with \-ofps if necessary.
11130 Any other framerate is incompatible with this option.
11133 .B film2pal
11134 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
11135 will make the video stream look like it was encoded at 25 fps.
11136 It only works with MPEG-2 video when the output framerate is
11137 24000/1001 fps, convert it with \-ofps if necessary.
11138 Any other framerate is incompatible with this option.
11141 .B tele_src and tele_dest
11142 Enables arbitrary telecining using Donand Graft's DGPulldown code.
11143 You need to specify the original and the desired framerate; the
11144 muxer will make the video stream look like it was encoded at
11145 the desired framerate.
11146 It only works with MPEG-2 video when the input framerate is smaller
11147 than the output framerate and the framerate increase is <= 1.5.
11148 .sp 1
11150 .I EXAMPLE:
11152 .PD 0
11153 .RSs
11154 .IPs tele_src=25,tele_dest=30000/1001
11155 PAL to NTSC telecining
11157 .PD 1
11160 .B vbuf_size=<40\-1194>
11161 Sets the size of the video decoder's buffer, expressed in kilobytes.
11162 Specify it only if the bitrate of the video stream is too high for
11163 the chosen format and if you know perfectly well what you are doing.
11164 A too high value may lead to an unplayable movie, depending on the player's
11165 capabilities.
11166 When muxing HDTV video a value of 400 should suffice.
11169 .B abuf_size=<4\-64>
11170 Sets the size of the audio decoder's buffer, expressed in kilobytes.
11171 The same principle as for vbuf_size applies.
11174 .SS FFmpeg libavformat demuxers (\-lavfdopts)
11177 .B analyzeduration=<value>
11178 Maximum length in seconds to analyze the stream properties.
11181 .B format=<value>
11182 Force a specific libavformat demuxer.
11185 .B o=<key>=<value>[,<key>=<value>[,...]]
11186 Pass AVOptions to libavformat demuxer.
11187 Note, a patch to make the o= unneeded and pass all unknown options through
11188 the AVOption system is welcome.
11189 A full list of AVOptions can be found in the FFmpeg manual.
11190 Note that some options may conflict with MPlayer/MEncoder options.
11191 .sp 1
11193 .I EXAMPLE:
11195 .RSs
11196 .PD 0
11197 .IPs o=ignidx
11198 .PD 1
11202 .B probesize=<value>
11203 Maximum amount of data to probe during the detection phase.
11204 In the case of MPEG-TS this value identifies the maximum number
11205 of TS packets to scan.
11208 .B cryptokey=<hexstring>
11209 Encryption key the demuxer should use.
11210 This is the raw binary data of the key converted to a hexadecimal string.
11213 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
11216 .B delay=<value>
11217 Currently only meaningful for MPEG[12]: Maximum allowed distance,
11218 in seconds, between the reference timer of the output stream (SCR)
11219 and the decoding timestamp (DTS) for any stream present
11220 (demux to decode delay).
11221 Default is 0.7 (as mandated by the standards defined by MPEG).
11222 Higher values require larger buffers and must not be used.
11225 .B format=<container_format>
11226 Override which container format to mux into
11227 (default: autodetect from output file extension).
11228 .PD 0
11229 .RSs
11230 .IPs "mpg\ \ "
11231 MPEG-1 systems and MPEG-2 PS
11232 .IPs "asf\ \ "
11233 Advanced Streaming Format
11234 .IPs "avi\ \ "
11235 Audio Video Interleave file
11236 .IPs "wav\ \ "
11237 Waveform Audio
11238 .IPs "swf\ \ "
11239 Macromedia Flash
11240 .IPs "flv\ \ "
11241 Macromedia Flash video files
11242 .IPs "rm\ \ \ "
11243 RealAudio and RealVideo
11244 .IPs "au\ \ \ "
11245 SUN AU format
11246 .IPs "nut\ \ "
11247 NUT open container format (experimental)
11248 .IPs "mov\ \ "
11249 QuickTime
11250 .IPs "mp4\ \ "
11251 MPEG-4 format
11252 .IPs "ipod\ "
11253 MPEG-4 format with extra header flags required by Apple iPod firmware
11254 .IPs "dv\ \ \ "
11255 Sony Digital Video container
11256 .IPs "matroska\ \ \ "
11257 Matroska
11259 .PD 1
11261 .B muxrate=<rate>
11262 Nominal bitrate of the multiplex, in bits per second;
11263 currently it is meaningful only for MPEG[12].
11264 Sometimes raising it is necessary in order to avoid "buffer underflows".
11267 .B o=<key>=<value>[,<key>=<value>[,...]]
11268 Pass AVOptions to libavformat muxer.
11269 Note, a patch to make the o= unneeded and pass all unknown options through
11270 the AVOption system is welcome.
11271 A full list of AVOptions can be found in the FFmpeg manual.
11272 Note that some options may conflict with MEncoder options.
11273 .sp 1
11275 .I EXAMPLE:
11277 .RSs
11278 .PD 0
11279 .IPs o=packetsize=100
11280 .PD 1
11284 .B packetsize=<size>
11285 Size, expressed in bytes, of the unitary packet for the chosen format.
11286 When muxing to MPEG[12] implementations the default values are:
11287 2324 for [S]VCD, 2048 for all others formats.
11290 .B preload=<distance>
11291 Currently only meaningful for MPEG[12]: Initial distance,
11292 in seconds, between the reference timer of the output stream (SCR)
11293 and the decoding timestamp (DTS) for any stream present
11294 (demux to decode delay).
11298 .\" --------------------------------------------------------------------------
11299 .\" environment variables
11300 .\" --------------------------------------------------------------------------
11302 .SH ENVIRONMENT VARIABLES
11304 There are a number of environment variables that can be used to
11305 control the behavior of MPlayer and MEncoder.
11308 .B MPLAYER_CHARSET (also see \-msgcharset)
11309 Convert console messages to the specified charset (default: autodetect).
11310 A value of "noconv" means no conversion.
11313 .B MPLAYER_HOME
11314 Directory where MPlayer looks for user settings.
11317 .B MPLAYER_LOCALEDIR
11318 Directory where MPlayer looks for gettext translation files (if enabled).
11321 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
11322 Set the initial verbosity level across all message modules (default: 0).
11323 The resulting verbosity corresponds to that of \-msglevel 5 plus the
11324 value of MPLAYER_VERBOSE.
11326 .SS libaf:
11329 .B LADSPA_PATH
11330 If LADSPA_PATH is set, it searches for the specified file.
11331 If it is not set, you must supply a fully specified pathname.
11332 FIXME: This is also mentioned in the ladspa section.
11334 .SS libdvdcss:
11337 .B DVDCSS_CACHE
11338 Specify a directory in which to store title key values.
11339 This will speed up descrambling of DVDs which are in the cache.
11340 The DVDCSS_CACHE directory is created if it does not exist,
11341 and a subdirectory is created named after the DVD's title
11342 or manufacturing date.
11343 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
11344 the default value which is "${HOME}/.dvdcss/" under Unix and
11345 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
11346 The special value "off" disables caching.
11349 .B DVDCSS_METHOD
11350 Sets the authentication and decryption method that
11351 libdvdcss will use to read scrambled discs.
11352 Can be one of title, key or disc.
11353 .PD 0
11354 .RSs
11355 .IPs "key\ \ "
11356 is the default method.
11357 libdvdcss will use a set of calculated player keys to try and get the disc key.
11358 This can fail if the drive does not recognize any of the player keys.
11359 .IPs "disc\ "
11360 is a fallback method when key has failed.
11361 Instead of using player keys, libdvdcss will crack the disc key using
11362 a brute force algorithm.
11363 This process is CPU intensive and requires 64 MB of memory to store
11364 temporary data.
11365 .IPs title
11366 is the fallback when all other methods have failed.
11367 It does not rely on a key exchange with the DVD drive, but rather uses
11368 a crypto attack to guess the title key.
11369 On rare cases this may fail because there is not enough encrypted data
11370 on the disc to perform a statistical attack, but in the other hand it
11371 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
11372 the wrong region on an RPC2 drive.
11374 .PD 1
11377 .B DVDCSS_RAW_DEVICE
11378 Specify the raw device to use.
11379 Exact usage will depend on your operating system, the Linux
11380 utility to set up raw devices is raw(8) for instance.
11381 Please note that on most operating systems, using a raw device
11382 requires highly aligned buffers: Linux requires a 2048 bytes
11383 alignment (which is the size of a DVD sector).
11386 .B DVDCSS_VERBOSE
11387 Sets the libdvdcss verbosity level.
11388 .PD 0
11389 .RSs
11390 .IPs 0
11391 Outputs no messages at all.
11392 .IPs 1
11393 Outputs error messages to stderr.
11394 .IPs 2
11395 Outputs error messages and debug messages to stderr.
11397 .PD 1
11400 .B DVDREAD_NOKEYS
11401 Skip retrieving all keys on startup.
11402 Currently disabled.
11405 .B HOME
11406 FIXME: Document this.
11408 .SS libao2:
11411 .B AO_SUN_DISABLE_SAMPLE_TIMING
11412 FIXME: Document this.
11415 .B AUDIODEV
11416 FIXME: Document this.
11419 .B AUDIOSERVER
11420 Specifies the Network Audio System server to which the
11421 nas audio output driver should connect and the transport
11422 that should be used.
11423 If unset DISPLAY is used instead.
11424 The transport can be one of tcp and unix.
11425 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
11426 or [unix]:<instancenumber>.
11427 The NAS base port is 8000 and <instancenumber> is added to that.
11428 .sp 1
11430 .I EXAMPLES:
11432 .PD 0
11433 .RSs
11434 .IPs AUDIOSERVER=somehost:0
11435 Connect to NAS server on somehost using default port and transport.
11436 .IPs AUDIOSERVER=tcp/somehost:8000
11437 Connect to NAS server on somehost listening on TCP port 8000.
11438 .IPs AUDIOSERVER=(unix)?:0
11439 Connect to NAS server instance 0 on localhost using unix domain sockets.
11441 .PD 1
11444 .B DISPLAY
11445 FIXME: Document this.
11447 .SS vidix:
11450 .B VIDIX_CRT
11451 FIXME: Document this.
11454 .B VIDIXIVTVALPHA
11455 Set this to 'disable' in order to stop the VIDIX driver from controlling
11456 alphablending settings.
11457 You can then manipulate it yourself with 'ivtvfbctl'.
11459 .SS osdep:
11462 .B TERM
11463 FIXME: Document this.
11465 .SS libvo:
11468 .B DISPLAY
11469 FIXME: Document this.
11472 .B FRAMEBUFFER
11473 FIXME: Document this.
11476 .B HOME
11477 FIXME: Document this.
11479 .SS libmpdemux:
11482 .B HOME
11483 FIXME: Document this.
11486 .B HOMEPATH
11487 FIXME: Document this.
11490 .B http_proxy
11491 FIXME: Document this.
11494 .B LOGNAME
11495 FIXME: Document this.
11498 .B USERPROFILE
11499 FIXME: Document this.
11501 .SS GUI:
11504 .B CHARSET
11505 FIXME: Document this.
11508 .B DISPLAY
11509 FIXME: Document this.
11512 .B HOME
11513 FIXME: Document this.
11515 .SS libavformat:
11518 .B AUDIO_FLIP_LEFT
11519 FIXME: Document this.
11522 .B BKTR_DEV
11523 FIXME: Document this.
11526 .B BKTR_FORMAT
11527 FIXME: Document this.
11530 .B BKTR_FREQUENCY
11531 FIXME: Document this.
11534 .B http_proxy
11535 FIXME: Document this.
11538 .B no_proxy
11539 FIXME: Document this.
11543 .\" --------------------------------------------------------------------------
11544 .\" Files
11545 .\" --------------------------------------------------------------------------
11547 .SH FILES
11550 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
11551 MPlayer system-wide settings
11554 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
11555 MEncoder system-wide settings
11558 ~/.mplayer/\:config
11559 MPlayer user settings
11562 ~/.mplayer/\:mencoder.conf
11563 MEncoder user settings
11566 ~/.mplayer/\:input.conf
11567 input bindings (see '\-input keylist' for the full list)
11570 ~/.mplayer/\:font/
11571 font directory (There must be a font.desc file and files with .RAW extension.)
11574 ~/.mplayer/\:DVDkeys/
11575 cached CSS keys
11578 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
11579 in this order:
11581 /path/\:to/\:movie.sub
11583 ~/.mplayer/\:sub/\:movie.sub
11585 .PD 1
11588 .\" --------------------------------------------------------------------------
11589 .\" Examples
11590 .\" --------------------------------------------------------------------------
11592 .SH EXAMPLES OF MPLAYER USAGE
11595 .B Quickstart Blu\-ray playing:
11597 mplayer br:////path/to/disc
11598 mplayer br:// \-bluray\-device /path/to/disc
11602 .B Quickstart DVD playing:
11604 mplayer dvd://1
11608 .B Play in Japanese with English subtitles:
11610 mplayer dvd://1 \-alang ja \-slang en
11614 .B Play only chapters 5, 6, 7:
11616 mplayer dvd://1 \-chapter 5\-7
11620 .B Play only titles 5, 6, 7:
11622 mplayer dvd://5\-7
11626 .B Play a multiangle DVD:
11628 mplayer dvd://1 \-dvdangle 2
11632 .B Play from a different DVD device:
11634 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
11638 .B Play DVD video from a directory with VOB files:
11640 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
11644 .B Copy a DVD title to hard disk, saving to file "title1.vob":
11646 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
11650 .B Play a DVD with dvdnav from path /dev/sr1:
11652 mplayer dvdnav:////dev/sr1
11656 .B Stream from HTTP:
11658 mplayer http://mplayer.hq/example.avi
11662 .B Stream using RTSP:
11664 mplayer rtsp://server.example.com/streamName
11668 .B Convert subtitles to MPsub format:
11670 mplayer dummy.avi \-sub source.sub \-dumpmpsub
11674 .B Convert subtitles to MPsub format without watching the movie:
11676 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
11680 .B input from standard V4L:
11682 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
11686 .B Playback on Zoran cards (old style, deprecated):
11688 mplayer \-vo zr \-vf scale=352:288 file.avi
11692 .B Playback on Zoran cards (new style):
11694 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
11698 .B Play DTS-CD with passthrough:
11700 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
11703 You can also use \-afm hwac3 instead of \-ac hwdts.
11704 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
11705 If your external receiver supports decoding raw DTS streams,
11706 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
11709 .B Play a 6-channel AAC file with only two speakers:
11711 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
11714 You might want to play a bit with the pan values (e.g multiply with a value) to
11715 increase volume or avoid clipping.
11718 .B checkerboard invert with geq filter:
11720 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'
11724 .SH EXAMPLES OF MENCODER USAGE
11727 .B Encode DVD title #2, only selected chapters:
11729 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11733 .B Encode DVD title #2, resizing to 640x480:
11735 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11739 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
11741 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11745 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
11747 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
11751 .B The same, but with MJPEG compression:
11753 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
11757 .B Encode all *.jpg files in the current directory:
11759 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
11763 .B Encode from a tuner (specify a format with \-vf format):
11765 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
11769 .B Encode from a pipe:
11771 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
11775 .\" --------------------------------------------------------------------------
11776 .\" Bugs, authors, standard disclaimer
11777 .\" --------------------------------------------------------------------------
11779 .SH BUGS
11780 Don't panic.
11781 If you find one, report it to us, but please make sure you have read all
11782 of the documentation first.
11783 Also look out for smileys. :)
11784 Many bugs are the result of incorrect setup or parameter usage.
11785 The bug reporting section of the documentation
11786 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
11787 explains how to create useful bug reports.
11791 .SH AUTHORS
11792 MPlayer was initially written by Arpad Gereoffy.
11793 See the AUTHORS file for a list of some of the many other contributors.
11795 MPlayer is (C) 2000\-2009 The MPlayer Team
11797 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
11798 It is maintained by Diego Biurrun.
11799 Please send mails about it to the MPlayer-DOCS mailing list.
11800 Translation specific mails belong on the MPlayer-translations mailing list.
11801 .\" end of file