vf_rgb2bgr: remove the filter
[mplayer.git] / DOCS / man / en / mplayer.1
blobf25d5de094fa1ab08124c3ef71d7c0e0ba1186c1
1 .\" $Revision$
2 .\" MPlayer (C) 2000-2010 MPlayer Team
3 .\" This man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
5 .\" --------------------------------------------------------------------------
6 .\" Macro definitions
7 .\" --------------------------------------------------------------------------
9 .\" define indentation for suboptions
10 .nr SS 5
11 .\" add new suboption
12 .de IPs
13 .IP "\\$1" \n(SS
15 .\" begin of first level suboptions, end with .RE
16 .de RSs
17 .RS 10
19 .\" begin of 2nd level suboptions
20 .de RSss
21 .PD 0
22 .RS \n(SS+3
24 .\" end of 2nd level suboptions
25 .de REss
26 .RE
27 .PD 1
30 .\" --------------------------------------------------------------------------
31 .\" Title
32 .\" --------------------------------------------------------------------------
34 .TH MPlayer 1 "2009-03-25" "The MPlayer Project" "The Movie Player"
36 .SH NAME
37 mplayer  \- movie player
38 .br
39 mencoder \- movie encoder
41 .\" --------------------------------------------------------------------------
42 .\" Synopsis
43 .\" --------------------------------------------------------------------------
45 .SH SYNOPSIS
46 .na
47 .nh
48 .B mplayer
49 [options] [file|URL|playlist|\-]
51 .br
52 .B mplayer
53 [options] file1
54 [specific options] [file2] [specific options]
56 .br
57 .B mplayer
58 [options]
59 {group of files and options}
60 [group-specific options]
62 .br
63 .B mplayer
64 [dvd|dvdnav]://[title|[start_title]\-end_title][/device]
65 [options]
67 .br
68 .B mplayer
69 vcd://track[/device]
71 .br
72 .B mplayer
73 tv://[channel][/input_id]
74 [options]
76 .br
77 .B mplayer
78 radio://[channel|frequency][/capture]
79 [options]
81 .br
82 .B mplayer
83 pvr://
84 [options]
86 .br
87 .B mplayer
88 dvb://[card_number@]channel
89 [options]
91 .br
92 .B mplayer
93 mf://[filemask|@listfile]
94 [\-mf options] [options]
96 .br
97 .B mplayer
98 [cdda|cddb]://track[\-endtrack][:speed][/device]
99 [options]
102 .B mplayer
103 cue://file[:track]
104 [options]
107 .B mplayer
108 [file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|icyx|noicyx|smb]://
109 [user:pass@]URL[:port] [options]
112 .B mplayer
113 sdp://file
114 [options]
117 .B mplayer
118 mpst://host[:port]/URL
119 [options]
122 .B mplayer
123 tivo://host/[list|llist|fsid]
124 [options]
127 .B mencoder
128 [options] file
129 [file|URL|\-] [\-o file | file://file | smb://[user:pass@]host/filepath]
132 .B mencoder
133 [options] file1
134 [specific options] [file2] [specific options]
138 .\" --------------------------------------------------------------------------
139 .\" Description
140 .\" --------------------------------------------------------------------------
142 .SH DESCRIPTION
143 .B mplayer
144 is a movie player for Linux (runs on many other platforms and CPU
145 architectures, see the documentation).
146 It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM,
147 MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
148 native and binary codecs.
149 You can watch VCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies,
150 too.
152 MPlayer supports a wide range of video and audio output drivers.
153 It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
154 Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers),
155 VESA (on every VESA-compatible card, even without X11), some low-level
156 card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder
157 boards, such as the Siemens DVB, Hauppauge PVR (IVTV), DXR2 and DXR3/\:Hollywood+.
158 Most of them support software or hardware scaling, so you can enjoy movies in
159 fullscreen mode.
161 MPlayer has an onscreen display (OSD) for status information, nice big
162 antialiased shaded subtitles and visual feedback for keyboard controls.
163 European/\:ISO8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean
164 fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM,
165 SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and
166 DVD subtitles (SPU streams, VOBsub and Closed Captions).
168 .B mencoder
169 (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode
170 MPlayer-playable movies (see above) to other MPlayer-playable formats (see
171 below).
172 It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and
173 PCM/\:MP3/\:VBRMP3 audio in 1, 2 or 3 passes.
174 Furthermore it has stream copying abilities, a powerful filter system (crop,
175 expand, flip, postprocess, rotate, scale, noise, RGB/\:YUV conversion) and
176 more.
178 .B gmplayer
179 is MPlayer with a graphical user interface.
180 It has the same options as MPlayer.
182 Usage examples to get you started quickly can be found at the end
183 of this man page.
185 .B Also see the HTML documentation!
188 .\" --------------------------------------------------------------------------
189 .\" interactive control
190 .\" --------------------------------------------------------------------------
192 .SH "INTERACTIVE CONTROL"
193 MPlayer has a fully configurable, command-driven control layer
194 which allows you to control MPlayer using keyboard, mouse, joystick
195 or remote control (with LIRC).
196 See the \-input option for ways to customize it.
199 .B keyboard control
200 .PD 0
202 .IPs "<\- and \->"
203 Seek backward/\:forward 10 seconds.
204 .IPs "up and down"
205 Seek forward/\:backward 1 minute.
206 .IPs "pgup and pgdown"
207 Seek forward/\:backward 10 minutes.
208 .IPs "[ and ]"
209 Decrease/increase current playback speed by 10%.
210 .IPs "{ and }"
211 Halve/double current playback speed.
212 .IPs "backspace"
213 Reset playback speed to normal.
214 .IPs "< and >"
215 Go backward/\:forward in the playlist.
216 .IPs "ENTER"
217 Go forward in the playlist, even over the end.
218 .IPs "HOME and END"
219 next/\:previous playtree entry in the parent list
220 .IPs "INS and DEL (ASX playlist only)"
221 next/\:previous alternative source.
222 .IPs "p / SPACE"
223 Pause (pressing again unpauses).
224 .IPs ".\ \ \ \ "
225 Step forward.
226 Pressing once will pause movie, every consecutive press will play one frame
227 and then go into pause mode again (any other key unpauses).
228 .IPs "q / ESC"
229 Stop playing and quit.
230 .IPs "U\ \ \ \ "
231 Stop playing (and quit if \-idle is not used).
232 .IPs "+ and \-"
233 Adjust audio delay by +/\- 0.1 seconds.
234 .IPs "/ and *"
235 Decrease/\:increase volume.
236 .IPs "9 and 0"
237 Decrease/\:increase volume.
238 .IPs "( and )"
239 Adjust audio balance in favor of left/\:right channel.
240 .IPs "m\ \ \ \ "
241 Mute sound.
242 .IPs "_ (MPEG-TS, AVI and libavformat only)"
243 Cycle through the available video tracks.
244 .IPs "# (DVD, MPEG, Matroska, AVI and libavformat only)"
245 Cycle through the available audio tracks.
246 .IPs "TAB (MPEG-TS and libavformat only)"
247 Cycle through the available programs.
248 .IPs "f\ \ \ \ "
249 Toggle fullscreen (also see \-fs).
250 .IPs "T\ \ \ \ "
251 Toggle stay-on-top (also see \-ontop).
252 .IPs "w and e"
253 Decrease/\:increase pan-and-scan range.
254 .IPs "o\ \ \ \ "
255 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
256 .IPs "d\ \ \ \ "
257 Toggle frame dropping states: none / skip display / skip decoding
258 (see \-framedrop and \-hardframedrop).
259 .IPs "v\ \ \ \ "
260 Toggle subtitle visibility.
261 .IPs "j\ \ \ \ "
262 Cycle through the available subtitles.
263 .IPs "y and g"
264 Step forward/backward in the subtitle list.
265 .IPs "F\ \ \ \ "
266 Toggle displaying "forced subtitles".
267 .IPs "a\ \ \ \ "
268 Toggle subtitle alignment: top / middle / bottom.
269 .IPs "x and z"
270 Adjust subtitle delay by +/\- 0.1 seconds.
271 .IPs "r and t"
272 Move subtitles up/down.
273 .IPs "i (\-edlout mode only)"
274 Set start or end of an EDL skip and write it out to the given file.
275 .IPs "s (\-vf screenshot only)"
276 Take a screenshot.
277 .IPs "S (\-vf screenshot only)"
278 Start/stop taking screenshots.
279 .IPs "I\ \ \ \ "
280 Show filename on the OSD.
281 .IPs "P\ \ \ \ "
282 Show progression bar, elapsed time and total duration on the OSD.
283 .IPs "! and @"
284 Seek to the beginning of the previous/next chapter.
285 .IPs "D (\-vo xvmc, \-vo vdpau, \-vf yadif, \-vf kerndeint only)"
286 Activate/deactivate deinterlacer.
287 .IPs "A\ \ \ \ "
288 Cycle through the available DVD angles.
289 .IPs "c (currently -vo vdpau and -vo xv only)"
290 Change YUV colorspace.
292 .PD 1
295 (The following keys are valid only when using a hardware accelerated video
296 output (xv, (x)vidix, (x)mga, etc), the software equalizer
297 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
300 .PD 0
302 .IPs "1 and 2"
303 Adjust contrast.
304 .IPs "3 and 4"
305 Adjust brightness.
306 .IPs "5 and 6"
307 Adjust hue.
308 .IPs "7 and 8"
309 Adjust saturation.
311 .PD 1
314 (The following keys are valid only when using the quartz or corevideo
315 video output driver.)
318 .PD 0
320 .IPs "command + 0"
321 Resize movie window to half its original size.
322 .IPs "command + 1"
323 Resize movie window to its original size.
324 .IPs "command + 2"
325 Resize movie window to double its original size.
326 .IPs "command + f"
327 Toggle fullscreen (also see \-fs).
328 .IPs "command + [ and command + ]"
329 Set movie window alpha.
331 .PD 1
334 (The following keys are valid only when using the sdl
335 video output driver.)
338 .PD 0
340 .IPs "c\ \ \ \ "
341 Cycle through available fullscreen modes.
342 .IPs "n\ \ \ \ "
343 Restore original mode.
345 .PD 1
348 (The following keys are valid if you have a keyboard
349 with multimedia keys.)
352 .PD 0
354 .IPs PAUSE
355 Pause.
356 .IPs "STOP\ "
357 Stop playing and quit.
358 .IPs "PREVIOUS and NEXT"
359 Seek backward/\:forward 1 minute.
361 .PD 1
364 (The following keys are only valid if you compiled with TV or DVB input
365 support and will take precedence over the keys defined above.)
368 .PD 0
370 .IPs "h and k"
371 Select previous/\:next channel.
372 .IPs "n\ \ \ \ "
373 Change norm.
374 .IPs "u\ \ \ \ "
375 Change channel list.
377 .PD 1
380 (The following keys are only valid if you compiled with dvdnav
381 support: They are used to navigate the menus.)
384 .PD 0
386 .IPs "keypad 8"
387 Select button up.
388 .IPs "keypad 2"
389 Select button down.
390 .IPs "keypad 4"
391 Select button left.
392 .IPs "keypad 6"
393 Select button right.
394 .IPs "keypad 5"
395 Return to main menu.
396 .IPs "keypad 7"
397 Return to nearest menu (the order of preference is: chapter->title->root).
398 .IPs "keypad ENTER"
399 Confirm choice.
401 .PD 1
405 (The following keys are only valid if teletext support is enabled during
406 compilation: They are used for controlling TV teletext, whose data may come
407 from either an analog TV source or an MPEG Transport Stream.)
410 .PD 0
412 .IPs "X\ \ \ \ "
413 Switch teletext on/\:off.
414 .IPs "Q and W"
415 Go to next/\:prev teletext page.
417 .PD 1
420 .B mouse control
421 .PD 0
423 .IPs "button 3 and button 4"
424 Seek backward/\:forward 1 minute.
425 .IPs "button 5 and button 6"
426 Decrease/\:increase volume.
428 .PD 1
431 .B joystick control
432 .PD 0
434 .IPs "left and right"
435 Seek backward/\:forward 10 seconds.
436 .IPs "up and down"
437 Seek forward/\:backward 1 minute.
438 .IPs "button 1"
439 Pause.
440 .IPs "button 2"
441 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
442 .IPs "button 3 and button 4"
443 Decrease/\:increase volume.
445 .PD 1
448 .\" --------------------------------------------------------------------------
449 .\" Usage
450 .\" --------------------------------------------------------------------------
452 .SH "USAGE"
453 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
454 \-fs option is \-nofs.
456 If an option is marked as (XXX only), it will only work in combination with
457 the XXX option or if XXX is compiled in.
459 .I NOTE:
460 The suboption parser (used for example for \-ao pcm suboptions) supports
461 a special kind of string-escaping intended for use with external GUIs.
463 It has the following format:
465 %n%string_of_length_n
467 .I EXAMPLES:
469 mplayer \-ao pcm:file=%10%C:test.wav test.avi
471 Or in a script:
473 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
476 .\" --------------------------------------------------------------------------
477 .\" Configuration files
478 .\" --------------------------------------------------------------------------
480 .SH "CONFIGURATION FILES"
481 You can put all of the options in configuration files which will be read
482 every time MPlayer/MEncoder is run.
483 The system-wide configuration file 'mplayer.conf' is in your configuration
484 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
485 specific one is '~/\:.mplayer/\:config'.
486 The configuration file for MEncoder is 'mencoder.conf' in your configuration
487 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
488 user specific one is '~/\:.mplayer/\:mencoder.conf'.
489 User specific options override system-wide options and options given on the
490 command line override either.
491 The syntax of the configuration files is 'option=<value>', everything after
492 a '#' is considered a comment.
493 Options that work without values can be enabled by setting them to 'yes'
494 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
495 Even suboptions can be specified in this way.
497 You can also write file-specific configuration files.
498 If you wish to have a configuration file for a file called 'movie.avi', create a file
499 named 'movie.avi.conf' with the file-specific options in it and put it in
500 ~/.mplayer/.
501 You can also put the configuration file in the same directory as the file to
502 be played, as long as you give the \-use\-filedir\-conf option (either on the
503 command line or in your global config file).
504 If a file-specific configuration file is found in the same directory, no
505 file-specific configuration is loaded from ~/.mplayer.
506 In addition, the \-use\-filedir\-conf option enables directory-specific
507 configuration files.
508 For this, MPlayer first tries to load a mplayer.conf from the same directory as
509 the file played and then tries to load any file-specific configuration.
511 .I EXAMPLE MPLAYER CONFIGURATION FILE:
512 .sp 1
514 # Use Matrox driver by default.
515 vo=xmga
516 # I love practicing handstands while watching videos.
517 flip=yes
518 # Decode/encode multiple files from PNG,
519 # start with mf://filemask
520 mf=type=png:fps=25
521 # Eerie negative images are cool.
522 vf=eq2=1.0:\-0.8
525 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
526 .sp 1
528 # Make MEncoder output to a default filename.
529 o=encoded.avi
530 # The next 4 lines allow mencoder tv:// to start capturing immediately.
531 oac=pcm=yes
532 ovc=lavc=yes
533 lavcopts=vcodec=mjpeg
534 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
535 # more complex default encoding option set
536 lavcopts=vcodec=mpeg4:autoaspect=1
537 lameopts=aq=2:vbr=4
538 ovc=lavc=1
539 oac=lavc=1
540 passlogfile=pass1stats.log
541 noautoexpand=1
542 subfont-autoscale=3
543 subfont-osd-scale=6
544 subfont-text-scale=4
545 subalign=2
546 subpos=96
547 spuaa=20
550 .\" --------------------------------------------------------------------------
551 .\" Profiles
552 .\" --------------------------------------------------------------------------
554 .SH "PROFILES"
555 To ease working with different configurations profiles can be defined in the
556 configuration files.
557 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
558 All following options will be part of the profile.
559 A description (shown by \-profile help) can be defined with the profile-desc
560 option.
561 To end the profile, start another one or use the profile name 'default'
562 to continue with normal options.
565 .I "EXAMPLE MPLAYER PROFILE:"
566 .sp 1
569 [protocol.dvd]
570 profile-desc="profile for dvd:// streams"
571 vf=pp=hb/vb/dr/al/fd
572 alang=en
574 [protocol.dvdnav]
575 profile-desc="profile for dvdnav:// streams"
576 profile=protocol.dvd
577 mouse-movements=yes
578 nocache=yes
580 [extension.flv]
581 profile-desc="profile for .flv files"
582 flip=yes
584 [vo.pnm]
585 outdir=/tmp
587 [ao.alsa]
588 device=spdif
591 .I "EXAMPLE MENCODER PROFILE:"
592 .sp 1
595 [mpeg4]
596 profile-desc="MPEG4 encoding"
597 ovc=lacv=yes
598 lavcopts=vcodec=mpeg4:vbitrate=1200
600 [mpeg4\-hq]
601 profile-desc="HQ MPEG4 encoding"
602 profile=mpeg4
603 lavcopts=mbd=2:trell=yes:v4mv=yes
606 .\" --------------------------------------------------------------------------
607 .\" Options
608 .\" --------------------------------------------------------------------------
610 .SH "GENERAL OPTIONS"
613 .B \-codecpath <dir>
614 Specify a directory for binary codecs.
617 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
618 Override the standard search path and use the specified file
619 instead of the builtin codecs.conf.
622 .B \-include <configuration file>
623 Specify configuration file to be parsed after the default ones.
626 .B \-list\-options
627 Prints all available options.
630 .B \-msgcharset <charset>
631 Convert console messages to the specified character set (default: autodetect).
632 Text will be in the encoding specified with the \-\-charset configure option.
633 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
635 .I NOTE:
636 The option takes effect after command line parsing has finished.
637 The MPLAYER_CHARSET environment variable can help you get rid of
638 the first lines of garbled output.
641 .B \-msgcolor
642 Enable colorful console output on terminals that support ANSI color.
645 .B \-msglevel <all=<level>:<module>=<level>:...>
646 Control verbosity directly for each module.
647 The 'all' module changes the verbosity of all the modules not
648 explicitly specified on the command line.
649 See '\-msglevel help' for a list of all modules.
651 .I NOTE:
652 Some messages are printed before the command line is parsed and are
653 therefore not affected by \-msglevel.
654 To control these messages you have to use the MPLAYER_VERBOSE environment
655 variable, see its description below for details.
657 Available levels:
658 .PD 0
659 .RSs
660 .IPs "\-1"
661 complete silence
662 .IPs " 0"
663 fatal messages only
664 .IPs " 1"
665 error messages
666 .IPs " 2"
667 warning messages
668 .IPs " 3"
669 short hints
670 .IPs " 4"
671 informational messages
672 .IPs " 5"
673 status messages (default)
674 .IPs " 6"
675 verbose messages
676 .IPs " 7"
677 debug level 2
678 .IPs " 8"
679 debug level 3
680 .IPs " 9"
681 debug level 4
683 .PD 1
686 .B \-msgmodule
687 Prepend module name in front of each console message.
690 .B \-noconfig <options>
691 Do not parse selected configuration files.
693 .I NOTE:
694 If \-include or \-use\-filedir\-conf options are
695 specified at the command line, they will be honoured.
696 .sp 1
697 Available options are:
698 .PD 0
699 .RSs
700 .IPs "all\ \ "
701 all configuration files
702 .IPs system
703 system configuration file
704 .IPs "user\ "
705 user configuration file
707 .PD 1
710 .B "\-quiet\ "
711 Make console output less verbose; in particular, prevents the status line
712 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
713 Particularly useful on slow terminals or broken ones which do not properly
714 handle carriage return (i.e.\& \\r).
717 .B \-priority <prio> (Windows and OS/2 only)
718 Set process priority for MPlayer according to the predefined
719 priorities available under Windows and OS/2.
720 Possible values of <prio>:
721 .RSs
722 idle|belownormal|normal|abovenormal|high|realtime
724 .sp 1
726 .I WARNING:
727 Using realtime priority can cause system lockup.
731 .B \-profile <profile1,profile2,...>
732 Use the given profile(s), \-profile help displays a list of the defined profiles.
735 .B \-really\-quiet (also see \-quiet)
736 Display even less output and status messages than with \-quiet.
739 .B \-show\-profile <profile>
740 Show the description and content of a profile.
743 .B \-use\-filedir\-conf
744 Look for a file-specific configuration file in the same directory as
745 the file that is being played.
747 .I WARNING:
748 May be dangerous if playing from untrusted media.
751 .B "\-v\ \ \ \ \ "
752 Increment verbosity level, one level for each \-v
753 found on the command line.
757 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
760 .B \-autoq <quality> (use with \-vf [s]pp)
761 Dynamically changes the level of postprocessing depending on the available spare
762 CPU time.
763 The number you specify will be the maximum level used.
764 Usually you can use some big number.
765 You have to use \-vf [s]pp without parameters in order for this to work.
768 .B \-autosync <factor>
769 Gradually adjusts the A/V sync based on audio delay measurements.
770 Specifying \-autosync 0, the default, will cause frame timing to be based
771 entirely on audio delay measurements.
772 Specifying \-autosync 1 will do the same, but will subtly change the A/V
773 correction algorithm.
774 An uneven video framerate in a movie which plays fine with \-nosound can
775 often be helped by setting this to an integer value greater than 1.
776 The higher the value, the closer the timing will be to \-nosound.
777 Try \-autosync 30 to smooth out problems with sound drivers which do
778 not implement a perfect audio delay measurement.
779 With this value, if large A/V sync offsets occur, they will only take about
780 1 or 2 seconds to settle out.
781 This delay in reaction time to sudden A/V offsets should be the only
782 side-effect of turning this option on, for all sound drivers.
785 .B \-benchmark
786 Prints some statistics on CPU usage and dropped frames at the end of playback.
787 Use in combination with \-nosound and \-vo null for benchmarking only the
788 video codec.
790 .I NOTE:
791 With this option MPlayer will also ignore frame duration when playing
792 only video (you can think of that as infinite fps).
795 .B \-colorkey <number>
796 Changes the colorkey to an RGB value of your choice.
797 0x000000 is black and 0xffffff is white.
798 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
799 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
800 drivers.
803 .B \-nocolorkey
804 Disables colorkeying.
805 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
806 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
807 drivers.
810 .B \-correct\-pts
811 Switches MPlayer to a mode where timestamps for video frames
812 are calculated differently and video filters which add new frames or
813 modify timestamps of existing ones are supported.
814 The more accurate timestamps can be visible for example when playing
815 subtitles timed to scene changes with the \-ass option.
816 Without \-correct\-pts the subtitle timing will typically be off by some frames.
817 This option does not work correctly with some demuxers and codecs.
820 .B \-crash\-debug (DEBUG CODE)
821 Automatically attaches gdb upon crash or SIGTRAP.
822 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
825 .B \-doubleclick\-time
826 Time in milliseconds to recognize two consecutive button presses as
827 a double-click (default: 300).
828 Set to 0 to let your windowing system decide what a double-click is
829 (\-vo directx only).
831 .I NOTE:
832 You will get slightly different behaviour depending on whether you bind
833 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
836 .B \-edlout <filename>
837 Creates a new file and writes edit decision list (EDL) records to it.
838 During playback, the user hits 'i' to mark the start or end of a skip block.
839 This provides a starting point from which the user can fine-tune EDL entries
840 later.
841 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
844 .B \-nofixed\-vo
845 \-fixed\-vo enforces a fixed video system for multiple files (one
846 (un)initialization for all files).
847 Therefore only one window will be opened for all files.
848 Now enabled by default, use \-nofixed\-vo to disable and create a new window
849 whenever the video stream changes.
850 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
851 xmga, xv, xvidix and dfbmga.
854 .B \-framedrop (also see \-hardframedrop, experimental without \-nocorrect\-pts)
855 Skip displaying some frames to maintain A/V sync on slow systems.
856 Video filters are not applied to such frames.
857 For B-frames even decoding is skipped completely.
860 .B \-h, \-help, \-\-help
861 Show short summary of options.
864 .B \-hardframedrop (experimental without \-nocorrect\-pts)
865 More intense frame dropping (breaks decoding).
866 Leads to image distortion!
867 Note that especially the libmpeg2 decoder may crash with this,
868 so consider using "\-vc ffmpeg12,".
871 .B \-heartbeat\-cmd
872 Command that is executed every 30 seconds during playback via system() -
873 i.e.\& using the shell.
874 .sp 1
875 .I NOTE:
876 MPlayer uses this command without any checking, it is your responsibility
877 to ensure it does not cause security problems (e.g.\& make sure to use full
878 paths if "." is in your path like on Windows).
879 It also only works when playing video (i.e.\& not with \-novideo but works with \-vo null).
880 .sp 1
881 This can be "misused" to disable screensavers that do not support the proper
882 X API (also see \-stop\-xscreensaver).
883 If you think this is too complicated, ask the author of the screensaver
884 program to support the proper X APIs.
885 .sp 1
886 .I EXAMPLE for xscreensaver:
887 mplayer \-heartbeat\-cmd "xscreensaver\-command \-deactivate" file
888 .sp 1
889 .I EXAMPLE for GNOME screensaver:
890 mplayer \-heartbeat\-cmd "gnome\-screensaver\-command \-p" file
892 .PD 1
895 .B \-identify
896 Shorthand for \-msglevel identify=4.
897 Show file parameters in an easily parseable format.
898 Also prints more detailed information about subtitle and audio
899 track languages and IDs.
900 In some cases you can get more information by using \-msglevel identify=6.
901 For example, for a DVD it will list the chapters and time length of each title,
902 as well as a disk ID.
903 Combine this with \-frames 0 to suppress all output.
904 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
905 (hopefully) shellescapes the filenames.
908 .B \-idle (also see \-slave)
909 Makes MPlayer wait idly instead of quitting when there is no file to play.
910 Mostly useful in slave mode where MPlayer can be controlled
911 through input commands.
914 .B \-input <commands>
915 This option can be used to configure certain parts of the input system.
916 Paths are relative to ~/.mplayer/.
918 .I NOTE:
919 Autorepeat is currently only supported by joysticks.
920 .sp 1
921 Available commands are:
922 .sp 1
923 .PD 0
924 .RSs
925 .IPs conf=<filename>
926 Specify input configuration file other than the default
927 ~/\:.mplayer/\:input.conf.
928 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
929 .IPs ar-dev=<device>
930 Device to be used for Apple IR Remote (default is autodetected, Linux only).
931 .IPs ar-delay
932 Delay in milliseconds before we start to autorepeat a key (0 to disable).
933 .IPs ar-rate
934 Number of key presses to generate per second on autorepeat.
935 .IPs (no)default-bindings
936 Use the key bindings that MPlayer ships with by default.
937 .IPs keylist
938 Prints all keys that can be bound to commands.
939 .IPs cmdlist
940 Prints all commands that can be bound to keys.
941 .IPs js-dev
942 Specifies the joystick device to use (default: /dev/\:input/\:js0).
943 .IPs file=<filename>
944 Read commands from the given file.
945 Mostly useful with a FIFO.
947 .I NOTE:
948 When the given file is a FIFO MPlayer opens both ends so you can do
949 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
951 .PD 1
954 .B \-key\-fifo\-size <2\-65000>
955 Specify the size of the FIFO that buffers key events (default: 7).
956 A FIFO of size n can buffer (n\-1) events.
957 If it is too small some events may be lost
958 (leading to "stuck mouse buttons" and similar effects).
959 If it is too big, MPlayer may seem to hang while it
960 processes the buffered events.
961 To get the same behavior as before this option was introduced,
962 set it to 2 for Linux or 1024 for Windows.
965 .B \-lircconf <filename> (LIRC only)
966 Specifies a configuration file for LIRC (default: ~/.lircrc).
969 .B \-list\-properties
970 Print a list of the available properties.
973 .B \-loop <number>
974 Loops movie playback <number> times.
975 0 means forever.
978 .B \-menu (OSD menu only)
979 Turn on OSD menu support.
982 .B \-menu\-cfg <filename> (OSD menu only)
983 Use an alternative menu.conf.
986 .B \-menu\-chroot <path> (OSD menu only)
987 Chroot the file selection menu to a specific location.
988 .sp 1
989 .I EXAMPLE:
990 .PD 0
991 .RSs
992 .IPs "\-menu\-chroot /home"
993 Will restrict the file selection menu to /\:home and downward (i.e.\& no
994 access to / will be possible, but /home/user_name will).
996 .PD 1
999 .B \-menu\-keepdir (OSD menu only)
1000 File browser starts from the last known location instead of current directory.
1003 .B \-menu\-root <value> (OSD menu only)
1004 Specify the main menu.
1007 .B \-menu\-startup (OSD menu only)
1008 Display the main menu at MPlayer startup.
1011 .B \-mouse\-movements
1012 Permit MPlayer to receive pointer events reported by the video
1013 output driver.
1014 Necessary to select the buttons in DVD menus.
1015 Supported for X11-based VOs (x11, xv, xvmc, etc) and the gl, gl2, direct3d and
1016 corevideo VOs.
1019 .B \-noar
1020 Turns off AppleIR remote support.
1023 .B \-noconsolecontrols
1024 Prevent MPlayer from reading key events from standard input.
1025 Useful when reading data from standard input.
1026 This is automatically enabled when \- is found on the command line.
1027 There are situations where you have to set it manually, e.g.\&
1028 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1029 in a playlist or intend to read from stdin later on via the loadfile or
1030 loadlist slave commands.
1033 .B \-nojoystick
1034 Turns off joystick support.
1037 .B \-nolirc
1038 Turns off LIRC support.
1041 .B \-nomouseinput
1042 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1043 on this option).
1045 .B \-noordered\-chapters
1046 Disable support for Matroska ordered chapters.
1047 MPlayer will not load or search for video segments from other files,
1048 and will also ignore any chapter order specified for the main file.
1051 .B \-pts\-association\-mode <mode number>
1052 Select the method used to determine which container packet timestamp
1053 corresponds to a particular output frame from the video decoder.
1054 .PD 0
1055 .RSs
1056 .IPs 0
1057 Try to pick a working mode from the ones below automatically (default)
1058 .IPs 1
1059 Use decoder reordering functionality.
1060 .IPs 2
1061 Maintain a buffer of unused pts values and use the lowest value for the frame.
1063 .PD 1
1066 .B \-rtc (RTC only)
1067 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1068 mechanism.
1069 This wakes up the process every 1/1024 seconds to check the current time.
1070 Useless with modern Linux kernels configured for desktop use as they already
1071 wake up the process with similar accuracy when using normal timed sleep.
1074 .B \-playing\-msg <string>
1075 Print out a string before starting playback.
1076 The following expansions are supported:
1077 .RSs
1078 .IPs ${NAME}
1079 Expand to the value of the property NAME.
1080 .IPs ?(NAME:TEXT)
1081 Expand TEXT only if the property NAME is available.
1082 .IPs ?(!NAME:TEXT)
1083 Expand TEXT only if the property NAME is not available.
1087 .B \-playlist <filename>
1088 Play files according to a playlist file (ASX, Winamp, SMIL, or
1089 one-file-per-line format).
1091 .I NOTE:
1092 This option is considered an entry so options found after it will apply
1093 only to the elements of this playlist.
1095 FIXME: This needs to be clarified and documented thoroughly.
1098 .B \-rtc\-device <device>
1099 Use the specified device for RTC timing.
1102 .B \-shuffle
1103 Play files in random order.
1106 .B \-slave (also see \-input)
1107 Switches on slave mode, in which MPlayer works as a backend for other programs.
1108 Instead of intercepting keyboard events, MPlayer will read commands separated
1109 by a newline (\\n) from stdin.
1111 .I NOTE:
1112 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1113 for their description.
1114 Also, this is not intended to disable other inputs, e.g.\& via the video window,
1115 use some other method like \-input nodefault\-binds:conf=/dev/null for that.
1118 .B \-softsleep
1119 Time frames by repeatedly checking the current time instead of asking the
1120 kernel to wake up MPlayer at the correct time.
1121 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1122 Comes at the price of higher CPU consumption.
1125 .B \-sstep <sec>
1126 Skip <sec> seconds after every frame.
1127 The normal framerate of the movie is kept, so playback is accelerated.
1128 Since MPlayer can only seek to the next keyframe this may be inexact.
1132 .SH "DEMUXER/STREAM OPTIONS"
1135 .B \-a52drc <level>
1136 Select the Dynamic Range Compression level for AC-3 audio streams.
1137 <level> is a float value ranging from 0 to 1, where 0 means no compression
1138 and 1 (which is the default) means full compression (make loud passages more
1139 silent and vice versa).
1140 Values up to 2 are also accepted, but are purely experimental.
1141 This option only shows an effect if the AC-3 stream contains the required range
1142 compression information.
1145 .B \-aid <ID> (also see \-alang)
1146 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1147 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1148 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1149 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1150 (if present) with the chosen audio stream.
1153 .B \-ausid <ID> (also see \-alang)
1154 Select audio substream channel.
1155 Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled
1156 by the native demuxer (not by libavformat).
1157 The format type may not be correctly identified because of how this information
1158 (or lack thereof) is embedded in the stream, but it will demux correctly the
1159 audio streams when multiple substreams are present.
1160 MPlayer prints the available substream IDs when run with \-identify.
1163 .B \-alang <language code[,language code,...]> (also see \-aid)
1164 Specify a priority list of audio languages to use.
1165 Different container formats employ different language codes.
1166 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1167 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1168 MPlayer prints the available languages when run in verbose (\-v) mode.
1169 .sp 1
1170 .I EXAMPLE:
1171 .PD 0
1172 .RSs
1173 .IPs "mplayer dvd://1 \-alang hu,en"
1174 Chooses the Hungarian language track on a DVD and falls back on English if
1175 Hungarian is not available.
1176 .IPs "mplayer \-alang jpn example.mkv"
1177 Plays a Matroska file in Japanese.
1179 .PD 1
1182 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1183 Force audio demuxer type for \-audiofile.
1184 Use a '+' before the name to force it, this will skip some checks!
1185 Give the demuxer name as printed by \-audio\-demuxer help.
1186 For backward compatibility it also accepts the demuxer ID as defined in
1187 libmpdemux/\:demuxer.h.
1188 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1191 .B \-audiofile <filename>
1192 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1193 movie.
1196 .B \-audiofile\-cache <kBytes>
1197 Enables caching for the stream used by \-audiofile, using the specified
1198 amount of memory.
1201 .B \-reuse\-socket (udp:// only)
1202 Allows a socket to be reused by other processes as soon as it is closed.
1205 .B \-bandwidth <Bytes> (network only)
1206 Specify the maximum bandwidth for network streaming (for servers that are
1207 able to send content in different bitrates).
1208 Useful if you want to watch live streamed media behind a slow connection.
1209 With Real RTSP streaming, it is also used to set the maximum delivery
1210 bandwidth allowing faster cache filling and stream dumping.
1213 .B \-cache <kBytes>
1214 This option specifies how much memory (in kBytes) to use when precaching a
1215 file or URL.
1216 Especially useful on slow media.
1219 .B \-nocache
1220 Turns off caching.
1223 .B \-cache\-min <percentage>
1224 Playback will start when the cache has been filled up to <percentage>
1225 of the total.
1228 .B \-cache\-seek\-min <percentage>
1229 If a seek is to be made to a position within <percentage> of the cache size
1230 from the current position, MPlayer will wait for the cache to be filled to
1231 this position rather than performing a stream seek (default: 50).
1234 .B \-cdda <option1:option2> (CDDA only)
1235 This option can be used to tune the CD Audio reading feature of MPlayer.
1236 .sp 1
1237 Available options are:
1238 .RSs
1239 .IPs speed=<value>
1240 Set CD spin speed.
1241 .IPs paranoia=<0\-2>
1242 Set paranoia level.
1243 Values other than 0 seem to break playback of anything but the first track.
1244 .RSss
1245 0: disable checking (default)
1247 1: overlap checking only
1249 2: full data correction and verification
1250 .REss
1251 .IPs generic-dev=<value>
1252 Use specified generic SCSI device.
1253 .IPs sector-size=<value>
1254 Set atomic read size.
1255 .IPs overlap=<value>
1256 Force minimum overlap search during verification to <value> sectors.
1257 .IPs toc-bias
1258 Assume that the beginning offset of track 1 as reported in the TOC will be
1259 addressed as LBA 0.
1260 Some Toshiba drives need this for getting track boundaries correct.
1261 .IPs toc-offset=<value>
1262 Add <value> sectors to the values reported when addressing tracks.
1263 May be negative.
1264 .IPs (no)skip
1265 (Never) accept imperfect data reconstruction.
1269 .B \-cdrom\-device <path to device>
1270 Specify the CD-ROM device (default: /dev/\:cdrom).
1273 .B \-channels <number> (also see \-af channels)
1274 Request the number of playback channels (default: 2).
1275 MPlayer asks the decoder to decode the audio into as many channels as
1276 specified.
1277 Then it is up to the decoder to fulfill the requirement.
1278 This is usually only important when playing videos with AC-3 audio (like DVDs).
1279 In that case liba52 does the decoding by default and correctly downmixes the
1280 audio into the requested number of channels.
1281 To directly control the number of output channels independently of how many
1282 channels are decoded, use the channels filter.
1284 .I NOTE:
1285 This option is honored by codecs (AC-3 only), filters (surround) and audio
1286 output drivers (OSS at least).
1287 .sp 1
1288 Available options are:
1289 .sp 1
1290 .PD 0
1291 .RSs
1292 .IPs 2
1293 stereo
1294 .IPs 4
1295 surround
1296 .IPs 6
1297 full 5.1
1298 .IPs 8
1299 full 7.1
1301 .PD 1
1304 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1305 Specify which chapter to start playing at.
1306 Optionally specify which chapter to end playing at (default: 1).
1309 .B \-edition <edition ID> (Matroska, MPlayer only)
1310 Specify the edition (set of chapters) to use, where 0 is the first. If set to
1311 -1 (the default), MPlayer will choose the first edition declared as a default,
1312 or if there is no default, the first edition defined.
1315 .B \-cookies (network only)
1316 Send cookies when making HTTP requests.
1319 .B \-cookies\-file <filename> (network only)
1320 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1321 and skip reading from default locations.
1322 The file is assumed to be in Netscape format.
1325 .B \-delay <sec>
1326 audio delay in seconds (positive or negative float value)
1328 Negative values delay the audio, and positive values delay the video.
1329 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1331 .I NOTE:
1332 When used with MEncoder, this is not guaranteed to work correctly
1333 with \-ovc copy; use \-audio\-delay instead.
1336 .B \-ignore\-start
1337 Ignore the specified starting time for streams in AVI files.
1338 In MPlayer, this nullifies stream delays in files encoded with
1339 the \-audio\-delay option.
1340 During encoding, this option prevents MEncoder from transferring
1341 original stream start times to the new file; the \-audio\-delay option is
1342 not affected.
1343 Note that MEncoder sometimes adjusts stream starting times
1344 automatically to compensate for anticipated decoding delays, so do not
1345 use this option for encoding without testing it first.
1348 .B \-demuxer <[+]name>
1349 Force demuxer type.
1350 Use a '+' before the name to force it, this will skip some checks!
1351 Give the demuxer name as printed by \-demuxer help.
1352 For backward compatibility it also accepts the demuxer ID as defined in
1353 libmpdemux/\:demuxer.h.
1356 .B \-dumpaudio (MPlayer only)
1357 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1358 in most other cases the resulting file will not be playable).
1359 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1360 on the command line only the last one will work.
1363 .B \-dumpfile <filename> (MPlayer only)
1364 Specify which file MPlayer should dump to.
1365 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream.
1368 .B \-dumpstream (MPlayer only)
1369 Dumps the raw stream to ./stream.dump.
1370 Useful when ripping from DVD or network.
1371 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1372 on the command line only the last one will work.
1375 .B \-dumpvideo (MPlayer only)
1376 Dump raw compressed video stream to ./stream.dump (not very usable).
1377 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1378 on the command line only the last one will work.
1381 .B \-dvbin <options> (DVB only)
1382 Pass the following parameters to the DVB input module, in order to override
1383 the default ones:
1384 .sp 1
1385 .PD 0
1386 .RSs
1387 .IPs card=<1\-4>
1388 Specifies using card number 1\-4 (default: 1).
1389 .IPs file=<filename>
1390 Instructs MPlayer to read the channels list from <filename>.
1391 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1392 or ~/.mplayer/\:channels.conf as a last resort.
1393 .IPs timeout=<1\-30>
1394 Maximum number of seconds to wait when trying to tune a
1395 frequency before giving up (default: 30).
1397 .PD 1
1400 .B \-dvd\-device <path to device> (DVD only)
1401 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1402 You can also specify a directory that contains files previously copied directly
1403 from a DVD (with e.g.\& vobcopy).
1406 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1407 Try to limit DVD speed (default: 0, no change).
1408 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1409 10800KB/s.
1410 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1411 quiet and fast enough.
1412 MPlayer resets the speed to the drive default value on close.
1413 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1414 10800KB/s.
1416 .I NOTE:
1417 You need write access to the DVD device to change the speed.
1420 .B \-dvdangle <angle ID> (DVD only)
1421 Some DVD discs contain scenes that can be viewed from multiple angles.
1422 Here you can tell MPlayer which angles to use (default: 1).
1425 .B \-edl <filename>
1426 Enables edit decision list (EDL) actions during playback.
1427 Video will be skipped over and audio will be muted and unmuted according to
1428 the entries in the given file.
1429 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1430 on how to use this.
1433 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1434 Stop at given time or byte position.
1436 .I NOTE:
1437 Byte position is enabled only for MEncoder and will not be accurate, as it can
1438 only stop at a frame boundary.
1439 When used in conjunction with \-ss option, \-endpos time will shift forward by
1440 seconds specified with \-ss.
1441 .sp 1
1442 .I EXAMPLE:
1443 .PD 0
1444 .RSs
1445 .IPs "\-endpos 56"
1446 Stop at 56 seconds.
1447 .IPs "\-endpos 01:10:00"
1448 Stop at 1 hour 10 minutes.
1449 .IPs "\-ss 10 \-endpos 56"
1450 Stop at 1 minute 6 seconds.
1451 .IPs "\-endpos 100mb"
1452 Encode only 100 MB.
1454 .PD 1
1457 .B \-forceidx
1458 Force index rebuilding.
1459 Useful for files with broken index (A/V desync, etc).
1460 This will enable seeking in files where seeking was not possible.
1461 You can fix the index permanently with MEncoder (see the documentation).
1463 .I NOTE:
1464 This option only works if the underlying media supports seeking
1465 (i.e.\& not with stdin, pipe, etc).
1468 .B \-fps <float value>
1469 Override video framerate.
1470 Useful if the original value is wrong or missing.
1473 .B \-frames <number>
1474 Play/\:convert only first <number> frames, then quit.
1477 .B \-hr\-mp3\-seek (MP3 only)
1478 Hi-res MP3 seeking.
1479 Enabled when playing from an external MP3 file, as we need to seek
1480 to the very exact position to keep A/V sync.
1481 Can be slow especially when seeking backwards since it has to rewind
1482 to the beginning to find an exact frame position.
1485 .B \-idx (also see \-forceidx)
1486 Rebuilds index of files if no index was found, allowing seeking.
1487 Useful with broken/\:incomplete downloads, or badly created files.
1489 .I NOTE:
1490 This option only works if the underlying media supports seeking
1491 (i.e.\& not with stdin, pipe, etc).
1494 .B \-noidx
1495 Skip rebuilding index file.
1496 MEncoder skips writing the index with this option.
1499 .B \-ipv4\-only\-proxy (network only)
1500 Skip the proxy for IPv6 addresses.
1501 It will still be used for IPv4 connections.
1504 .B \-loadidx <index file>
1505 The file from which to read the video index data saved by \-saveidx.
1506 This index will be used for seeking, overriding any index data
1507 contained in the AVI itself.
1508 MPlayer will not prevent you from loading an index file generated
1509 from a different AVI, but this is sure to cause unfavorable results.
1511 .I NOTE:
1512 This option is obsolete now that MPlayer has OpenDML support.
1515 .B \-mc <seconds/frame>
1516 maximum A-V sync correction per frame (in seconds)
1518 \-mc 0 should always be combined with \-noskip for mencoder, otherwise
1519 it will almost certainly cause A-V desync.
1522 .B \-mf <option1:option2:...>
1523 Used when decoding from multiple PNG or JPEG files.
1524 .sp 1
1525 Available options are:
1526 .sp 1
1527 .PD 0
1528 .RSs
1529 .IPs w=<value>
1530 input file width (default: autodetect)
1531 .IPs h=<value>
1532 input file height (default: autodetect)
1533 .IPs fps=<value>
1534 output fps (default: 25)
1535 .IPs type=<value>
1536 input file type (available: jpeg, png, tga, sgi)
1538 .PD 1
1541 .B \-ni (AVI only)
1542 Force usage of non-interleaved AVI parser (fixes playback
1543 of some bad AVI files).
1546 .B \-nobps (AVI only)
1547 Do not use average byte/\:second value for A-V sync.
1548 Helps with some AVI files with broken header.
1551 .B \-noextbased
1552 Disables extension-based demuxer selection.
1553 By default, when the file type (demuxer) cannot be detected reliably
1554 (the file has no header or it is not reliable enough), the filename
1555 extension is used to select the demuxer.
1556 Always falls back on content-based demuxer selection.
1559 .B \-passwd <password> (also see \-user) (network only)
1560 Specify password for HTTP authentication.
1563 .B \-prefer\-ipv4 (network only)
1564 Use IPv4 on network connections.
1565 Falls back on IPv6 automatically.
1568 .B \-prefer\-ipv6 (IPv6 network only)
1569 Use IPv6 on network connections.
1570 Falls back on IPv4 automatically.
1573 .B \-psprobe <byte position>
1574 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1575 how many bytes in the stream you want MPlayer to scan in order to identify
1576 the video codec used.
1577 This option is needed to play EVO or VDR files containing H.264 streams.
1580 .B \-pvr <option1:option2:...> (PVR only)
1581 This option tunes various encoding properties of the PVR capture module.
1582 It has to be used with any hardware MPEG encoder based card supported by the
1583 V4L2 driver.
1584 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1585 cards are known as PVR capture cards.
1586 Be aware that only Linux 2.6.18 kernel
1587 and above is able to handle MPEG stream through V4L2 layer.
1588 For hardware capture of an MPEG stream and watching it with
1589 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1590 .sp 1
1591 Available options are:
1592 .RSs
1593 .IPs aspect=<0\-3>
1594 Specify input aspect ratio:
1595 .RSss
1596 0: 1:1
1598 1: 4:3 (default)
1600 2: 16:9
1602 3: 2.21:1
1603 .REss
1604 .IPs arate=<32000\-48000>
1605 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1606 and 48000 Hz).
1607 .IPs alayer=<1\-3>
1608 Specify MPEG audio layer encoding (default: 2).
1609 .IPs abitrate=<32\-448>
1610 Specify audio encoding bitrate in kbps (default: 384).
1611 .IPs amode=<value>
1612 Specify audio encoding mode.
1613 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1614 .IPs vbitrate=<value>
1615 Specify average video bitrate encoding in Mbps (default: 6).
1616 .IPs vmode=<value>
1617 Specify video encoding mode:
1618 .RSss
1619 vbr: Variable BitRate (default)
1621 cbr: Constant BitRate
1622 .REss
1623 .IPs vpeak=<value>
1624 Specify peak video bitrate encoding in Mbps
1625 (only useful for VBR encoding, default: 9.6).
1626 .IPs fmt=<value>
1627 Choose an MPEG format for encoding:
1628 .RSss
1629 ps:    MPEG-2 Program Stream (default)
1631 ts:    MPEG-2 Transport Stream
1633 mpeg1: MPEG-1 System Stream
1635 vcd:   Video CD compatible stream
1637 svcd:  Super Video CD compatible stream
1639 dvd:   DVD compatible stream
1640 .REss
1642 .PD 1
1645 .B \-radio <option1:option2:...> (radio only)
1646 These options set various parameters of the radio capture module.
1647 For listening to radio with MPlayer use 'radio://<frequency>'
1648 (if channels option is not given) or 'radio://<channel_number>'
1649 (if channels option is given) as a movie URL.
1650 You can see allowed frequency range by running MPlayer with '\-v'.
1651 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1652 If the capture keyword is not given you can listen to radio
1653 using the line-in cable only.
1654 Using capture to listen is not recommended due to synchronization
1655 problems, which makes this process uncomfortable.
1656 .sp 1
1657 Available options are:
1658 .RSs
1659 .IPs device=<value>
1660 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1661 .IPs driver=<value>
1662 Radio driver to use (default: v4l2 if available, otherwise v4l).
1663 Currently, v4l and v4l2 drivers are supported.
1664 .IPs volume=<0..100>
1665 sound volume for radio device (default 100)
1666 .IPs "freq_min=<value> (*BSD BT848 only)"
1667 minimum allowed frequency (default: 87.50)
1668 .IPs "freq_max=<value> (*BSD BT848 only)"
1669 maximum allowed frequency (default: 108.00)
1670 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1671 Set channel list.
1672 Use _ for spaces in names (or play with quoting ;-).
1673 The channel names will then be written using OSD and the slave commands
1674 radio_step_channel and radio_set_channel will be usable for
1675 a remote control (see LIRC).
1676 If given, number in movie URL will be treated as channel position in
1677 channel list.
1679 .I EXAMPLE:
1680 radio://1, radio://104.4, radio_set_channel 1
1681 .IPs "adevice=<value> (radio capture only)"
1682 Name of device to capture sound from.
1683 Without such a name capture will be disabled,
1684 even if the capture keyword appears in the URL.
1685 For ALSA devices use it in the form hw=<card>.<device>.
1686 If the device name contains a '=', the module will use
1687 ALSA to capture, otherwise OSS.
1688 .IPs "arate=<value> (radio capture only)"
1689 Rate in samples per second (default: 44100).
1691 .I NOTE:
1692 When using audio capture set also \-rawaudio rate=<value> option
1693 with the same value as arate.
1694 If you have problems with sound speed (runs too quickly), try to play
1695 with different rate values (e.g.\& 48000,44100,32000,...).
1696 .IPs "achannels=<value> (radio capture only)"
1697 Number of audio channels to capture.
1701 .B \-rawaudio <option1:option2:...>
1702 This option lets you play raw audio files.
1703 You have to use \-demuxer rawaudio as well.
1704 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1705 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1706 .sp 1
1707 Available options are:
1708 .sp 1
1709 .PD 0
1710 .RSs
1711 .IPs channels=<value>
1712 number of channels
1713 .IPs rate=<value>
1714 rate in samples per second
1715 .IPs samplesize=<value>
1716 sample size in bytes
1717 .IPs bitrate=<value>
1718 bitrate for rawaudio files
1719 .IPs format=<value>
1720 fourcc in hex
1722 .PD 1
1725 .B \-rawvideo <option1:option2:...>
1726 This option lets you play raw video files.
1727 You have to use \-demuxer rawvideo as well.
1728 .sp 1
1729 Available options are:
1730 .sp 1
1731 .PD 0
1732 .RSs
1733 .IPs fps=<value>
1734 rate in frames per second (default: 25.0)
1735 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1736 set standard image size
1737 .IPs w=<value>
1738 image width in pixels
1739 .IPs h=<value>
1740 image height in pixels
1741 .IPs i420|yv12|yuy2|y8
1742 set colorspace
1743 .IPs format=<value>
1744 colorspace (fourcc) in hex or string constant.
1745 Use \-rawvideo format=help for a list of possible strings.
1746 .IPs size=<value>
1747 frame size in Bytes
1748 .REss
1749 .sp 1
1751 .I EXAMPLE:
1753 .PD 0
1754 .RSs
1755 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1756 Play the famous "foreman" sample video.
1757 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1758 Play a raw YUV sample.
1760 .PD 1
1763 .B \-referrer <string> (network only)
1764 Specify a referrer path or URL for HTTP requests.
1767 .B \-rtsp\-port
1768 Used with 'rtsp://' URLs to force the client's port number.
1769 This option may be useful if you are behind a router and want to forward
1770 the RTSP stream from the server to a specific client.
1773 .B \-rtsp\-destination
1774 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1775 This option may be useful with some RTSP server which do not
1776 send RTP packets to the right interface.
1777 If the connection to the RTSP server fails, use \-v to see
1778 which IP address MPlayer tries to bind to and try to force
1779 it to one assigned to your computer instead.
1782 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1783 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1784 packets be streamed over TCP (using the same TCP connection as RTSP).
1785 This option may be useful if you have a broken internet connection that does
1786 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1789 .B \-rtsp\-stream\-over\-http (LIVE555 only)
1790 Used with 'http://' URLs to specify that the resulting incoming RTP and RTCP
1791 packets be streamed over HTTP.
1794 .B \-saveidx <filename>
1795 Force index rebuilding and dump the index to <filename>.
1796 Currently this only works with AVI files.
1798 .I NOTE:
1799 This option is obsolete now that MPlayer has OpenDML support.
1802 .B \-sb <byte position> (also see \-ss)
1803 Seek to byte position.
1804 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1807 .B \-speed <0.01\-100>
1808 Slow down or speed up playback by the factor given as parameter.
1809 Not guaranteed to work correctly with \-oac copy.
1812 .B \-srate <Hz>
1813 Select the output sample rate to be used
1814 (of course sound cards have limits on this).
1815 If the sample frequency selected is different from that
1816 of the current media, the resample or lavcresample audio filter will be inserted
1817 into the audio filter layer to compensate for the difference.
1818 The type of resampling can be controlled by the \-af\-adv option.
1819 The default is fast resampling that may cause distortion.
1822 .B \-ss <time> (also see \-sb)
1823 Seek to given time position.
1824 .sp 1
1825 .I EXAMPLE:
1826 .PD 0
1827 .RSs
1828 .IPs "\-ss 56"
1829 Seeks to 56 seconds.
1830 .IPs "\-ss 01:10:00"
1831 Seeks to 1 hour 10 min.
1833 .PD 1
1836 .B \-tskeepbroken
1837 Tells MPlayer not to discard TS packets reported as broken in the stream.
1838 Sometimes needed to play corrupted MPEG-TS files.
1841 .B \-tsprobe <byte position>
1842 When playing an MPEG-TS stream, this option lets you specify how many
1843 bytes in the stream you want MPlayer to search for the desired
1844 audio and video IDs.
1847 .B \-tsprog <1\-65534>
1848 When playing an MPEG-TS stream, you can specify with this option which
1849 program (if present) you want to play.
1850 Can be used with \-vid and \-aid.
1853 .B \-tv <option1:option2:...> (TV/\:PVR only)
1854 This option tunes various properties of the TV capture module.
1855 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1856 or even 'tv://<channel_name> (see option channels for channel_name below)
1857 as a movie URL.
1858 You can also use 'tv:///<input_id>' to start watching a
1859 movie from a composite or S-Video input (see option input for details).
1860 .sp 1
1861 Available options are:
1862 .RSs
1863 .IPs noaudio
1864 no sound
1865 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1866 If signal strength reported by device is less than this value,
1867 audio and video will be muted.
1868 In most cases automute=100 will be enough.
1869 Default is 0 (automute disabled).
1870 .IPs driver=<value>
1871 See \-tv driver=help for a list of compiled-in TV input drivers.
1872 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1873 .IPs device=<value>
1874 Specify TV device (default: /dev/\:video0).
1875 .I NOTE:
1876 For the bsdbt848 driver you can provide both bktr and tuner device
1877 names separating them with a comma, tuner after
1878 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1879 .IPs input=<value>
1880 Specify input (default: 0 (TV), see console output for available inputs).
1881 .IPs freq=<value>
1882 Specify the frequency to set the tuner to (e.g.\& 511.250).
1883 Not compatible with the channels parameter.
1884 .IPs outfmt=<value>
1885 Specify the output format of the tuner with a preset value supported by the
1886 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1887 arbitrary format given as hex value.
1888 Try outfmt=help for a list of all available formats.
1889 .IPs width=<value>
1890 output window width
1891 .IPs height=<value>
1892 output window height
1893 .IPs fps=<value>
1894 framerate at which to capture video (frames per second)
1895 .IPs buffersize=<value>
1896 maximum size of the capture buffer in megabytes (default: dynamical)
1897 .IPs norm=<value>
1898 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1899 For v4l2, see the console output for a list of all available norms,
1900 also see the normid option below.
1901 .IPs "normid=<value> (v4l2 only)"
1902 Sets the TV norm to the given numeric ID.
1903 The TV norm depends on the capture card.
1904 See the console output for a list of available TV norms.
1905 .IPs channel=<value>
1906 Set tuner to <value> channel.
1907 .IPs chanlist=<value>
1908 available: europe-east, europe-west, us-bcast, us-cable, etc
1909 .IPs channels=<chan>\-<name>[=<norm>],<chan>\-<name>[=<norm>],...
1910 Set names for channels.
1911 .I NOTE:
1912 If <chan> is an integer greater than 1000, it will be treated as frequency (in kHz)
1913 rather than channel name from frequency table.
1915 Use _ for spaces in names (or play with quoting ;-).
1916 The channel names will then be written using OSD, and the slave commands
1917 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1918 a remote control (see LIRC).
1919 Not compatible with the frequency parameter.
1921 .I NOTE:
1922 The channel number will then be the position in the 'channels' list,
1923 beginning with 1.
1925 .I EXAMPLE:
1926 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1927 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1928 Set the image equalizer on the card.
1929 .IPs audiorate=<value>
1930 Set audio capture bitrate.
1931 .IPs forceaudio
1932 Capture audio even if there are no audio sources reported by v4l.
1933 .IPs "alsa\ "
1934 Capture from ALSA.
1935 .IPs amode=<0\-3>
1936 Choose an audio mode:
1937 .RSss
1938 0: mono
1940 1: stereo
1942 2: language 1
1944 3: language 2
1945 .REss
1946 .IPs forcechan=<1\-2>
1947 By default, the count of recorded audio channels is determined automatically
1948 by querying the audio mode from the TV card.
1949 This option allows forcing stereo/\:mono recording regardless of the amode
1950 option and the values returned by v4l.
1951 This can be used for troubleshooting when the TV card is unable to report the
1952 current audio mode.
1953 .IPs adevice=<value>
1954 Set an audio device.
1955 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1956 You must replace any ':' by a '.' in the hardware ID for ALSA.
1957 .IPs audioid=<value>
1958 Choose an audio output of the capture card, if it has more than one.
1959 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1960 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1961 These options set parameters of the mixer on the video capture card.
1962 They will have no effect, if your card does not have one.
1963 For v4l2 50 maps to the default value of the
1964 control, as reported by the driver.
1965 .IPs "gain=<0\-100> (v4l2)"
1966 Set gain control for video devices (usually webcams) to the desired
1967 value and switch off automatic control.
1968 A value of 0 enables automatic control.
1969 If this option is omitted, gain control will not be modified.
1970 .IPs immediatemode=<bool>
1971 A value of 0 means capture and buffer audio and video together
1972 (default for MEncoder).
1973 A value of 1 (default for MPlayer) means to do video capture only and let the
1974 audio go through a loopback cable from the TV card to the sound card.
1975 .IPs mjpeg
1976 Use hardware MJPEG compression (if the card supports it).
1977 When using this option, you do not need to specify the width and height
1978 of the output window, because MPlayer will determine it automatically
1979 from the decimation value (see below).
1980 .IPs decimation=<1|2|4>
1981 choose the size of the picture that will be compressed by hardware
1982 MJPEG compression:
1983 .RSss
1984 1: full size
1985     704x576    PAL
1986     704x480    NTSC
1988 2: medium size
1989     352x288    PAL
1990     352x240    NTSC
1992 4: small size
1993     176x144    PAL
1994     176x120    NTSC
1995 .REss
1996 .IPs quality=<0\-100>
1997 Choose the quality of the JPEG compression
1998 (< 60 recommended for full size).
1999 .IPs tdevice=<value>
2000 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
2001 .IPs tformat=<format>
2002 Specify TV teletext display format (default: 0):
2003 .RSss
2004 0: opaque
2006 1: transparent
2008 2: opaque with inverted colors
2010 3: transparent with inverted colors
2011 .REss
2012 .IPs tpage=<100\-899>
2013 Specify initial TV teletext page number (default: 100).
2014 .IPs tlang=<\-1\-127>
2015 Specify default teletext language code (default: 0), which will be used
2016 as primary language until a type 28 packet is received.
2017 Useful when the teletext system uses a non-latin character set, but language
2018 codes are not transmitted via teletext type 28 packets for some reason.
2019 To see a list of supported language codes set this option to \-1.
2020 .IPs "hidden_video_renderer (dshow only)"
2021 Terminate stream with video renderer instead of Null renderer (default: off).
2022 Will help if video freezes but audio does not.
2023 .I NOTE:
2024 May not work with \-vo directx and \-vf crop combination.
2025 .IPs "hidden_vp_renderer (dshow only)"
2026 Terminate VideoPort pin stream with video renderer
2027 instead of removing it from the graph (default: off).
2028 Useful if your card has a VideoPort pin and video is choppy.
2029 .I NOTE:
2030 May not work with \-vo directx and \-vf crop combination.
2031 .IPs "system_clock (dshow only)"
2032 Use the system clock as sync source instead of the default graph clock
2033 (usually the clock from one of the live sources in graph).
2034 .IPs "normalize_audio_chunks (dshow only)"
2035 Create audio chunks with a time length equal to
2036 video frame time length (default: off).
2037 Some audio cards create audio chunks about 0.5s in size, resulting in
2038 choppy video when using immediatemode=0.
2042 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
2043 Tune the TV channel scanner.
2044 MPlayer will also print value for "-tv channels=" option,
2045 including existing and just found channels.
2046 .sp 1
2047 Available suboptions are:
2048 .RSs
2049 .IPs autostart
2050 Begin channel scanning immediately after startup (default: disabled).
2051 .IPs period=<0.1\-2.0>
2052 Specify delay in seconds before switching to next channel (default: 0.5).
2053 Lower values will cause faster scanning, but can detect
2054 inactive TV channels as active.
2055 .IPs threshold=<1\-100>
2056 Threshold value for the signal strength (in percent), as reported
2057 by the device (default: 50).
2058 A signal strength higher than this value will indicate that the
2059 currently scanning channel is active.
2063 .B \-user <username> (also see \-passwd) (network only)
2064 Specify username for HTTP authentication.
2067 .B \-user\-agent <string>
2068 Use <string> as user agent for HTTP streaming.
2071 .B \-vid <ID>
2072 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2073 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
2074 (if present) with the chosen video stream.
2077 .B \-vivo <suboption> (DEBUG CODE)
2078 Force audio parameters for the VIVO demuxer (for debugging purposes).
2079 FIXME: Document this.
2083 .SH "OSD/SUBTITLE OPTIONS"
2084 .I NOTE:
2085 Also see \-vf expand.
2088 .B \-ass (FreeType only)
2089 Turn on SSA/ASS subtitle rendering.
2090 With this option, libass will be used for SSA/ASS
2091 external subtitles and Matroska tracks.
2093 .I NOTE:
2094 Unlike normal OSD, libass uses fontconfig by default. To disable it, use
2095 \-nofontconfig.
2098 .B \-ass\-border\-color <value>
2099 Sets the border (outline) color for text subtitles.
2100 The color format is RRGGBBAA.
2103 .B \-ass\-bottom\-margin <value>
2104 Adds a black band at the bottom of the frame.
2105 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2108 .B \-ass\-color <value>
2109 Sets the color for text subtitles.
2110 The color format is RRGGBBAA.
2113 .B \-ass\-font\-scale <value>
2114 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2117 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2118 Override some style or script info parameters.
2120 .I EXAMPLE:
2121 .PD 0
2122 .RSs
2123 \-ass\-force\-style FontName=Arial,Default.Bold=1
2125 \-ass\-force\-style PlayResY=768
2127 .PD 1
2130 .B \-ass\-hinting <type>
2131 Set hinting type.
2132 <type> can be:
2133 .PD 0
2134 .RSs
2135 .IPs 0
2136 no hinting
2137 .IPs 1
2138 FreeType autohinter, light mode
2139 .IPs 2
2140 FreeType autohinter, normal mode
2141 .IPs 3
2142 font native hinter
2143 .IPs "0-3 + 4"
2144 The same, but hinting will only be performed if the OSD is rendered at
2145 screen resolution and will therefore not be scaled.
2147 .RSs
2148 The default value is 5 (use light hinter for unscaled OSD and no hinting otherwise).
2150 .PD 1
2153 .B \-ass\-line\-spacing <value>
2154 Set line spacing value for SSA/ASS renderer.
2157 .B \-ass\-styles <filename>
2158 Load all SSA/ASS styles found in the specified file and use them for
2159 rendering text subtitles.
2160 The syntax of the file is exactly like the
2161 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2164 .B \-ass\-top\-margin <value>
2165 Adds a black band at the top of the frame.
2166 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2169 .B \-ass\-use\-margins
2170 Enables placing toptitles and subtitles in black borders when they
2171 are available.
2174 .B \-dumpjacosub (MPlayer only)
2175 Convert the given subtitle (specified with the \-sub option) to the time-based
2176 JACOsub subtitle format.
2177 Creates a dumpsub.js file in the current directory.
2180 .B \-dumpmicrodvdsub (MPlayer only)
2181 Convert the given subtitle (specified with the \-sub option) to the
2182 MicroDVD subtitle format.
2183 Creates a dumpsub.sub file in the current directory.
2186 .B \-dumpmpsub (MPlayer only)
2187 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2188 subtitle format, MPsub.
2189 Creates a dump.mpsub file in the current directory.
2192 .B \-dumpsami (MPlayer only)
2193 Convert the given subtitle (specified with the \-sub option) to the time-based
2194 SAMI subtitle format.
2195 Creates a dumpsub.smi file in the current directory.
2198 .B \-dumpsrtsub (MPlayer only)
2199 Convert the given subtitle (specified with the \-sub option) to the time-based
2200 SubViewer (SRT) subtitle format.
2201 Creates a dumpsub.srt file in the current directory.
2203 .I NOTE:
2204 Some broken hardware players choke on SRT subtitle files with Unix
2205 line endings.
2206 If you are unlucky enough to have such a box, pass your subtitle
2207 files through unix2dos or a similar program to replace Unix line
2208 endings with DOS/Windows line endings.
2211 .B \-dumpsub (MPlayer only) (BETA CODE)
2212 Dumps the subtitle substream from VOB streams.
2213 Also see the \-dump*sub and \-vobsubout* options.
2216 .B \-noembeddedfonts
2217 Disables use of fonts embedded in Matroska containers and ASS scripts (default: enabled).
2218 These fonts can be used for SSA/ASS subtitle
2219 rendering (\-ass option).
2222 .B \-ffactor <number>
2223 Resample the font alphamap.
2224 Can be:
2225 .PD 0
2226 .RSs
2227 .IPs 0
2228 plain white fonts
2229 .IPs 0.75
2230 very narrow black outline (default)
2231 .IPs 1
2232 narrow black outline
2233 .IPs 10
2234 bold black outline
2236 .PD 1
2239 .B \-flip\-hebrew (FriBiDi only)
2240 Turns on flipping subtitles using FriBiDi.
2243 .B \-noflip\-hebrew\-commas
2244 Change FriBiDi's assumptions about the placements of commas in subtitles.
2245 Use this if commas in subtitles are shown at the start of a sentence
2246 instead of at the end.
2249 .B \-font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
2250 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2251 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2252 ~/.mplayer/\:subfont.ttf).
2254 .I NOTE:
2255 With FreeType, this option determines the path to the text font file.
2256 With Fontconfig, this option determines the Fontconfig font pattern.
2257 .sp 1
2258 .I EXAMPLE:
2259 .PD 0
2260 .RSs
2261 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2263 \-font ~/\:.mplayer/\:arialuni.ttf
2265 \-font 'Bitstream Vera Sans'
2267 \-font 'Bitstream Vera Sans:style=Bold'
2269 .PD 1
2272 .B \-fontconfig (fontconfig only)
2273 Enables the usage of fontconfig managed fonts.
2275 .I NOTE:
2276 By default fontconfig is used for libass-rendered subtitles and not used for
2277 OSD. With \-fontconfig it is used for both libass and OSD, with \-nofontconfig
2278 it is not used at all.
2281 .B \-forcedsubsonly
2282 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2283 \-slang.
2286 .B \-fribidi\-charset <charset name> (FriBiDi only)
2287 Specifies the character set that will be passed to FriBiDi when
2288 decoding non-UTF-8 subtitles (default: ISO8859-8).
2291 .B \-ifo <VOBsub IFO file>
2292 Indicate the file that will be used to load palette and frame size for VOBsub
2293 subtitles.
2296 .B \-noautosub
2297 Turns off automatic subtitle file loading.
2300 .B \-osd\-duration <time>
2301 Set the duration of the OSD messages in ms (default: 1000).
2304 .B \-osdlevel <0\-3> (MPlayer only)
2305 Specifies which mode the OSD should start in.
2306 .PD 0
2307 .RSs
2308 .IPs 0
2309 subtitles only
2310 .IPs 1
2311 volume + seek (default)
2312 .IPs 2
2313 volume + seek + timer + percentage
2314 .IPs 3
2315 volume + seek + timer + percentage + total time
2317 .PD 1
2320 .B \-overlapsub
2321 Allows the next subtitle to be displayed while the current one is
2322 still visible (default is to enable the support only for specific
2323 formats).
2326 .B \-sid <ID> (also see \-slang, \-vobsubid)
2327 Display the subtitle stream specified by <ID> (0\-31).
2328 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2329 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2332 .B \-nosub
2333 Disables any otherwise auto-selected subtitles (as e.g.\& the Matroska/mkv
2334 demuxer supports).
2337 .B \-slang <language code[,language code,...]> (also see \-sid)
2338 Specify a priority list of subtitle languages to use.
2339 Different container formats employ different language codes.
2340 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2341 three letter language codes while OGM uses a free-form identifier.
2342 MPlayer prints the available languages when run in verbose (\-v) mode.
2343 .sp 1
2344 .I EXAMPLE:
2345 .PD 0
2346 .RSs
2347 .IPs "mplayer dvd://1 \-slang hu,en"
2348 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2349 Hungarian is not available.
2350 .IPs "mplayer \-slang jpn example.mkv"
2351 Plays a Matroska file with Japanese subtitles.
2353 .PD 1
2356 .B \-spuaa <mode>
2357 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2358 A value of 16 may be added to <mode> in order to force scaling even
2359 when original and scaled frame size already match.
2360 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2361 Available modes are:
2362 .PD 0
2363 .RSs
2364 .IPs 0
2365 none (fastest, very ugly)
2366 .IPs 1
2367 approximate (broken?)
2368 .IPs 2
2369 full (slow)
2370 .IPs 3
2371 bilinear (default, fast and not too bad)
2372 .IPs 4
2373 uses swscaler gaussian blur (looks very good)
2375 .PD 1
2378 .B \-spualign <\-1\-2>
2379 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2380 .PD 0
2381 .RSs
2382 .IPs "\-1"
2383 original position
2384 .IPs " 0"
2385 Align at top (original behavior, default).
2386 .IPs " 1"
2387 Align at center.
2388 .IPs " 2"
2389 Align at bottom.
2391 .PD 1
2394 .B \-spugauss <0.0\-3.0>
2395 Variance parameter of gaussian used by \-spuaa 4.
2396 Higher means more blur (default: 1.0).
2399 .B \-sub <subtitlefile1,subtitlefile2,...>
2400 Use/\:display these subtitle files.
2401 Only one file can be displayed at the same time.
2404 .B \-sub\-bg\-alpha <0\-255>
2405 Specify the alpha channel value for subtitles and OSD backgrounds.
2406 Big values mean more transparency.
2407 0 means completely transparent.
2410 .B \-sub\-bg\-color <0\-255>
2411 Specify the color value for subtitles and OSD backgrounds.
2412 Currently subtitles are grayscale so this value is equivalent to the
2413 intensity of the color.
2414 255 means white and 0 black.
2417 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2418 Force subtitle demuxer type for \-subfile.
2419 Use a '+' before the name to force it, this will skip some checks!
2420 Give the demuxer name as printed by \-sub\-demuxer help.
2421 For backward compatibility it also accepts the demuxer ID as defined in
2422 subreader.h.
2425 .B \-sub\-fuzziness <mode>
2426 Adjust matching fuzziness when searching for subtitles:
2427 .PD 0
2428 .RSs
2429 .IPs 0
2430 exact match
2431 .IPs 1
2432 Load all subs containing movie name.
2433 .IPs 2
2434 Load all subs in the current directory.
2436 .PD 1
2439 .B \-sub\-no\-text\-pp
2440 Disables any kind of text post processing done after loading the subtitles.
2441 Used for debug purposes.
2444 .B \-subalign <0\-2>
2445 Specify which edge of the subtitles should be aligned at the height
2446 given by \-subpos.
2447 .PD 0
2448 .RSs
2449 .IPs 0
2450 Align subtitle top edge (original behavior).
2451 .IPs 1
2452 Align subtitle center.
2453 .IPs 2
2454 Align subtitle bottom edge (default).
2456 .PD 1
2459 .B "\-subcc \ "
2460 Display DVD Closed Caption (CC) subtitles.
2461 These are
2462 .B not
2463 the VOB subtitles, these are special ASCII subtitles for the
2464 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2465 CC subtitles have not been spotted on DVDs from other regions so far.
2468 .B \-subcp <codepage> (iconv only)
2469 If your system supports iconv(3), you can use this option to
2470 specify the subtitle codepage.
2471 .sp 1
2472 .I EXAMPLE:
2473 .PD 0
2474 .RSs
2475 \-subcp latin2
2477 \-subcp cp1250
2479 .PD 1
2482 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2483 You can specify your language using a two letter language code to
2484 make ENCA detect the codepage automatically.
2485 If unsure, enter anything and watch mplayer \-v output for available
2486 languages.
2487 Fallback codepage specifies the codepage to use, when autodetection fails.
2488 .sp 1
2489 .I EXAMPLE:
2490 .PD 0
2491 .RSs
2492 .IPs "\-subcp enca:cs:latin2"
2493 Guess the encoding, assuming the subtitles are Czech, fall back on
2494 latin 2, if the detection fails.
2495 .IPs "\-subcp enca:pl:cp1250"
2496 Guess the encoding for Polish, fall back on cp1250.
2498 .PD 1
2501 .B \-subdelay <sec>
2502 Delays subtitles by <sec> seconds.
2503 Can be negative.
2506 .B \-subfile <filename> (BETA CODE)
2507 Currently useless.
2508 Same as \-audiofile, but for subtitle streams (OggDS?).
2511 .B \-subfont <path to font (FreeType), font pattern (Fontconfig)> (FreeType only)
2512 Sets the subtitle font (see \-font).
2513 If no \-subfont is given, \-font is used.
2516 .B \-subfont\-autoscale <0\-3> (FreeType only)
2517 Sets the autoscale mode.
2519 .I NOTE:
2520 0 means that text scale and OSD scale are font heights in points.
2521 .sp 1
2522 The mode can be:
2523 .sp 1
2524 .PD 0
2525 .RSs
2526 .IPs 0
2527 no autoscale
2528 .IPs 1
2529 proportional to movie height
2530 .IPs 2
2531 proportional to movie width
2532 .IPs 3
2533 proportional to movie diagonal (default)
2535 .PD 1
2538 .B \-subfont\-blur <0\-8> (FreeType only)
2539 Sets the font blur radius (default: 2).
2542 .B \-subfont\-encoding <value> (FreeType only)
2543 Sets the font encoding.
2544 When set to 'unicode', all the glyphs from the font file will be rendered and
2545 unicode will be used (default: unicode).
2548 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2549 Sets the autoscale coefficient of the OSD elements (default: 6).
2552 .B \-subfont\-outline <0\-8> (FreeType only)
2553 Sets the font outline thickness (default: 2).
2556 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2557 Sets the subtitle text autoscale coefficient as percentage of the
2558 screen size (default: 5).
2561 .B \-subfps <rate>
2562 Specify the framerate of the subtitle file (default: movie fps).
2564 .I NOTE:
2565 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2566 slows them down for time-based ones.
2569 .B \-subpos <0\-100> (useful with \-vf expand)
2570 Specify the position of subtitles on the screen.
2571 The value is the vertical position of the subtitle in % of the screen height.
2574 .B \-subwidth <10\-100>
2575 Specify the maximum width of subtitles on the screen.
2576 Useful for TV-out.
2577 The value is the width of the subtitle in % of the screen width.
2580 .B \-noterm\-osd
2581 Disable the display of OSD messages on the console when no video output is
2582 available.
2585 .B \-term\-osd\-esc <escape sequence>
2586 Specify the escape sequence to use before writing an OSD message on the
2587 console.
2588 The escape sequence should move the pointer to the beginning of the line
2589 used for the OSD and clear it (default: ^[[A\\r^[[K).
2592 .B \-unicode
2593 Tells MPlayer to handle the subtitle file as unicode.
2596 .B \-unrarexec <path to unrar executable> (not supported on MingW)
2597 Specify the path to the unrar executable so MPlayer can use it to access
2598 rar-compressed VOBsub files (default: not set, so the feature is off).
2599 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2602 .B "\-utf8 \ \ "
2603 Tells MPlayer to handle the subtitle file as UTF-8.
2606 .B \-vobsub <VOBsub file without extension>
2607 Specify a VOBsub file to use for subtitles.
2608 Has to be the full pathname without extension, i.e.\& without
2609 the '.idx', '.ifo' or '.sub'.
2612 .B \-vobsubid <0\-31>
2613 Specify the VOBsub subtitle ID.
2617 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2620 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2621 Override audio driver/\:card buffer size detection.
2624 .B \-format <format> (also see the format audio filter)
2625 Select the sample format used for output from the audio filter
2626 layer to the sound card.
2627 The values that <format> can adopt are listed below in the
2628 description of the format audio filter.
2631 .B \-mixer <device>
2632 Use a mixer device different from the default /dev/\:mixer.
2633 For ALSA this is the mixer name.
2636 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2637 This option will tell MPlayer to use a different channel for controlling
2638 volume than the default PCM.
2639 Options for OSS include
2640 .B vol, pcm, line.
2641 For a complete list of options look for SOUND_DEVICE_NAMES in
2642 /usr/\:include/\:linux/\:soundcard.h.
2643 For ALSA you can use the names e.g.\& alsamixer displays, like
2644 .B Master, Line, PCM.
2646 .I NOTE:
2647 ALSA mixer channel names followed by a number must be specified in the
2648 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2649 be converted to
2650 .BR PCM,1 .
2653 .B \-softvol
2654 Force the use of the software mixer, instead of using the sound card
2655 mixer.
2658 .B \-softvol\-max <10.0\-10000.0>
2659 Set the maximum amplification level in percent (default: 110).
2660 A value of 200 will allow you to adjust the volume up to a maximum of
2661 double the current level.
2662 With values below 100 the initial volume (which is 100%) will be above
2663 the maximum, which e.g.\& the OSD cannot display correctly.
2666 .B \-volstep <0\-100>
2667 Set the step size of mixer volume changes in percent of the whole range
2668 (default: 3).
2671 .B \-volume <-1\-100> (also see \-af volume)
2672 Set the startup volume in the mixer, either hardware or software (if
2673 used with \-softvol).
2674 A value of -1 (the default) will not change the volume.
2678 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2679 Audio output drivers are interfaces to different audio output facilities.
2680 The syntax is:
2683 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2684 Specify a priority list of audio output drivers to be used.
2686 If the list has a trailing ',' MPlayer will fall back on drivers not
2687 contained in the list.
2688 Suboptions are optional and can mostly be omitted.
2690 .I NOTE:
2691 See \-ao help for a list of compiled-in audio output drivers.
2692 .sp 1
2693 .I EXAMPLE:
2694 .PD 0
2695 .RSs
2696 .IPs "\-ao alsa,oss,"
2697 Try the ALSA driver, then the OSS driver, then others.
2698 .IPs "\-ao alsa:noblock:device=hw=0.3"
2699 Sets noblock-mode and the device-name as first card, fourth device.
2701 .PD 1
2702 .sp 1
2703 Available audio output drivers are:
2706 .B "alsa\ \ \ "
2707 ALSA 0.9/1.x audio output driver
2708 .PD 0
2709 .RSs
2710 .IPs noblock
2711 Sets noblock-mode.
2712 .IPs device=<device>
2713 Sets the device name.
2714 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2715 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2716 you really know how to set it correctly.
2718 .PD 1
2721 .B "alsa5\ \ "
2722 ALSA 0.5 audio output driver
2725 .B "oss\ \ \ \ "
2726 OSS audio output driver
2727 .PD 0
2728 .RSs
2729 .IPs <dsp-device>
2730 Sets the audio output device (default: /dev/\:dsp).
2731 .IPs <mixer-device>
2732 Sets the audio mixer device (default: /dev/\:mixer).
2733 .IPs <mixer-channel>
2734 Sets the audio mixer channel (default: pcm).
2736 .PD 1
2739 .B sdl (SDL only)
2740 highly platform independent SDL (Simple Directmedia Layer) library
2741 audio output driver
2742 .PD 0
2743 .RSs
2744 .IPs <driver>
2745 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2747 .PD 1
2750 .B "arts\ \ \ "
2751 audio output through the aRts daemon
2754 .B "esd\ \ \ \ "
2755 audio output through the ESD daemon
2756 .PD 0
2757 .RSs
2758 .IPs <server>
2759 Explicitly choose the ESD server to use (default: localhost).
2761 .PD 1
2764 .B "jack\ \ \ \ "
2765 audio output through JACK (Jack Audio Connection Kit)
2766 .PD 0
2767 .RSs
2768 .IPs port=<name>
2769 Connects to the ports with the given name (default: physical ports).
2770 .IPs name=<client name>
2771 Client name that is passed to JACK (default: MPlayer [<PID>]).
2772 Useful if you want to have certain connections established automatically.
2773 .IPs (no)estimate
2774 Estimate the audio delay, supposed to make the video playback smoother
2775 (default: enabled).
2776 .IPs (no)autostart
2777 Automatically start jackd if necessary (default: disabled).
2778 Note that this seems unreliable and will spam stdout with server messages.
2780 .PD 1
2783 .B "nas\ \ \ \ "
2784 audio output through NAS
2787 .B coreaudio (Mac OS X only)
2788 native Mac OS X audio output driver
2791 .B "openal\ "
2792 Experimental OpenAL audio output driver
2795 .B "pulse\ \ "
2796 PulseAudio audio output driver
2797 .PD 0
2798 .RSs
2799 .IPs "[<host>][:<output sink>]"
2800 Specify the host and optionally output sink to use.
2801 An empty <host> string uses a local connection, "localhost"
2802 uses network transfer (most likely not what you want).
2804 .PD 1
2807 .B sgi (SGI only)
2808 native SGI audio output driver
2809 .PD 0
2810 .RSs
2811 .IPs "<output device name>"
2812 Explicitly choose the output device/\:interface to use
2813 (default: system-wide default).
2814 For example, 'Analog Out' or 'Digital Out'.
2816 .PD 1
2819 .B sun (Sun only)
2820 native Sun audio output driver
2821 .PD 0
2822 .RSs
2823 .IPs <device>
2824 Explicitly choose the audio device to use (default: /dev/\:audio).
2826 .PD 1
2829 .B win32 (Windows only)
2830 native Windows waveout audio output driver
2833 .B dsound (Windows only)
2834 DirectX DirectSound audio output driver
2835 .PD 0
2836 .RSs
2837 .IPs device=<devicenum>
2838 Sets the device number to use.
2839 Playing a file with \-v will show a list of available devices.
2841 .PD 1
2844 .B kai (OS/2 only)
2845 OS/2 KAI audio output driver
2846 .PD 0
2847 .RSs
2848 .IPs uniaud
2849 Force UNIAUD mode.
2850 .IPs dart
2851 Force DART mode.
2852 .IPs (no)share
2853 Open audio in shareable or exclusive mode.
2854 .IPs bufsize=<size>
2855 Set buffer size to <size> in samples (default: 2048).
2857 .PD 1
2860 .B dart (OS/2 only)
2861 OS/2 DART audio output driver
2862 .PD 0
2863 .RSs
2864 .IPs (no)share
2865 Open DART in shareable or exclusive mode.
2866 .IPs bufsize=<size>
2867 Set buffer size to <size> in samples (default: 2048).
2869 .PD 1
2872 .B dxr2 (also see \-dxr2) (DXR2 only)
2873 Creative DXR2 specific output driver
2876 .B ivtv (IVTV only)
2877 IVTV specific MPEG audio output driver.
2878 Works with \-ac hwmpa only.
2881 .B v4l2 (requires Linux 2.6.22+ kernel)
2882 Audio output driver for V4L2 cards with hardware MPEG decoder.
2885 .B mpegpes (DVB only)
2886 Audio output driver for DVB cards that writes the output to an MPEG-PES
2887 file if no DVB card is installed.
2888 .PD 0
2889 .RSs
2890 .IPs card=<1\-4>
2891 DVB card to use if more than one card is present.
2892 If not specified MPlayer will search the first usable card.
2893 .IPs file=<filename>
2894 output filename
2896 .PD 1
2899 .B "null\ \ \ "
2900 Produces no audio output but maintains video playback speed.
2901 Use \-nosound for benchmarking.
2904 .B "pcm\ \ \ \ "
2905 raw PCM/wave file writer audio output
2906 .PD 0
2907 .RSs
2908 .IPs (no)waveheader
2909 Include or do not include the wave header (default: included).
2910 When not included, raw PCM will be generated.
2911 .IPs file=<filename>
2912 Write the sound to <filename> instead of the default
2913 audiodump.wav.
2914 If nowaveheader is specified, the default is audiodump.pcm.
2915 .IPs "fast\ "
2916 Try to dump faster than realtime.
2917 Make sure the output does not get truncated (usually with
2918 "Too many video packets in buffer" message).
2919 It is normal that you get a "Your system is too SLOW to play this!" message.
2921 .PD 1
2924 .B "plugin\ \ "
2925 plugin audio output driver
2929 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
2932 .B \-adapter <value>
2933 Set the graphics card that will receive the image.
2934 You can get a list of available cards when you run this option with \-v.
2935 Currently only works with the directx video output driver.
2938 .B \-bpp <depth>
2939 Override the autodetected color depth.
2940 Only supported by the fbdev, dga, svga, vesa video output drivers.
2943 .B \-border
2944 Play movie with window border and decorations.
2945 Since this is on by default, use \-noborder to disable the standard window
2946 decorations.
2949 .B \-brightness <\-100\-100>
2950 Adjust the brightness of the video signal (default: 0).
2951 Not supported by all video output drivers.
2954 .B \-contrast <\-100\-100>
2955 Adjust the contrast of the video signal (default: 0).
2956 Not supported by all video output drivers.
2959 .B \-display <name> (X11 only)
2960 Specify the hostname and display number of the X server you want to display
2962 .sp 1
2963 .I EXAMPLE:
2964 .PD 0
2965 .RSs
2966 \-display xtest.localdomain:0
2968 .PD 1
2971 .B "\-dr \ \ \ "
2972 Turns on direct rendering (not supported by all codecs and video outputs)
2974 .I WARNING:
2975 May cause OSD/SUB corruption!
2978 .B \-dxr2 <option1:option2:...>
2979 This option is used to control the dxr2 video output driver.
2980 .RSs
2981 .IPs ar-mode=<value>
2982 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
2983 .IPs iec958-encoded
2984 Set iec958 output mode to encoded.
2985 .IPs iec958-decoded
2986 Set iec958 output mode to decoded (default).
2987 .IPs macrovision=<value>
2988 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
2989 3 = agc 4 colorstripe)
2990 .IPs "mute\ "
2991 mute sound output
2992 .IPs unmute
2993 unmute sound output
2994 .IPs ucode=<value>
2995 path to the microcode
2998 .sp 1
2999 .I TV output
3001 .RSs
3002 .IPs 75ire
3003 enable 7.5 IRE output mode
3004 .IPs no75ire
3005 disable 7.5 IRE output mode (default)
3006 .IPs "bw\ \ \ "
3007 b/w TV output
3008 .IPs color
3009 color TV output (default)
3010 .IPs interlaced
3011 interlaced TV output (default)
3012 .IPs nointerlaced
3013 disable interlaced TV output
3014 .IPs norm=<value>
3015 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
3016 .IPs square-pixel
3017 set pixel mode to square
3018 .IPs ccir601-pixel
3019 set pixel mode to ccir601
3022 .sp 1
3023 .I overlay
3025 .RSs
3026 .IPs cr-left=<0\-500>
3027 Set the left cropping value (default: 50).
3028 .IPs cr-right=<0\-500>
3029 Set the right cropping value (default: 300).
3030 .IPs cr-top=<0\-500>
3031 Set the top cropping value (default: 0).
3032 .IPs cr-bottom=<0\-500>
3033 Set the bottom cropping value (default: 0).
3034 .IPs ck-[r|g|b]=<0\-255>
3035 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
3036 .IPs ck-[r|g|b]min=<0\-255>
3037 minimum value for the respective color key
3038 .IPs ck-[r|g|b]max=<0\-255>
3039 maximum value for the respective color key
3040 .IPs ignore-cache
3041 Ignore cached overlay settings.
3042 .IPs update-cache
3043 Update cached overlay settings.
3044 .IPs ol-osd
3045 Enable overlay onscreen display.
3046 .IPs nool-osd
3047 Disable overlay onscreen display (default).
3048 .IPs ol[h|w|x|y]-cor=<\-20\-20>
3049 Adjust the overlay size (h,w) and position (x,y) in case it does not
3050 match the window perfectly (default: 0).
3051 .IPs overlay
3052 Activate overlay (default).
3053 .IPs nooverlay
3054 Activate TV-out.
3055 .IPs overlay-ratio=<1\-2500>
3056 Tune the overlay (default: 1000).
3060 .B \-fbmode <modename> (\-vo fbdev only)
3061 Change video mode to the one that is labeled as <modename> in
3062 /etc/\:fb.modes.
3064 .I NOTE:
3065 VESA framebuffer does not support mode changing.
3068 .B \-fbmodeconfig <filename> (\-vo fbdev only)
3069 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
3072 .B \-force\-window\-position
3073 Forcefully move MPlayer's video output window to default location whenever
3074 there is a change in video parameters, video stream or file.
3075 This used to be the default behavior.
3076 Currently only affects X11 VOs.
3079 .B \-fs (also see \-zoom)
3080 Fullscreen playback (centers movie, and paints black bands around it).
3081 Not supported by all video output drivers.
3084 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3085 Try this option if you still experience fullscreen problems.
3088 .B \-fstype <type1,type2,...> (X11 only)
3089 Specify a priority list of fullscreen modes to be used.
3090 You can negate the modes by prefixing them with '\-'.
3091 If you experience problems like the fullscreen window being covered
3092 by other windows try using a different order.
3094 .I NOTE:
3095 See \-fstype help for a full list of available modes.
3096 .sp 1
3097 The available types are:
3098 .sp 1
3099 .PD 0
3100 .RSs
3101 .IPs above
3102 Use the _NETWM_STATE_ABOVE hint if available.
3103 .IPs below
3104 Use the _NETWM_STATE_BELOW hint if available.
3105 .IPs fullscreen
3106 Use the _NETWM_STATE_FULLSCREEN hint if available.
3107 .IPs layer
3108 Use the _WIN_LAYER hint with the default layer.
3109 .IPs layer=<0...15>
3110 Use the _WIN_LAYER hint with the given layer number.
3111 .IPs netwm
3112 Force NETWM style.
3113 .IPs "none\ "
3114 Clear the list of modes; you can add modes to enable afterward.
3115 .IPs stays_on_top
3116 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3117 .REss
3118 .sp 1
3120 .I EXAMPLE:
3122 .PD 0
3123 .RSs
3124 .IPs layer,stays_on_top,above,fullscreen
3125 Default order, will be used as a fallback if incorrect or
3126 unsupported modes are specified.
3127 .IPs \-fullscreen
3128 Fixes fullscreen switching on OpenBox 1.x.
3130 .PD 1
3133 .B \-geometry x[%][:y[%]] or [WxH][+-x+-y]
3134 Adjust where the output is on the screen initially.
3135 The x and y specifications are in pixels measured from the top-left of the
3136 screen to the top-left of the image being displayed, however if a percentage
3137 sign is given after the argument it turns the value into a percentage of the
3138 screen size in that direction.
3139 It also supports the standard X11 \-geometry option format, in which e.g.
3140 +10-50 means "place 10 pixels from the left border and 50 pixels from the lower
3141 border" and "--20+-10" means "place 20 pixels beyond the right and 10 pixels
3142 beyond the top border".
3143 If an external window is specified using the \-wid option, then the x and
3144 y coordinates are relative to the top-left corner of the window rather
3145 than the screen.
3146 The coordinates are relative to the screen given with \-xineramascreen for
3147 the video output drivers that fully support \-xineramascreen (direct3d, gl, gl2,
3148 vdpau, x11, xv, xvmc, corevideo).
3150 .I NOTE:
3151 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
3152 gl, gl2, directx, fbdev, tdfxfb and corevideo video output drivers.
3153 .sp 1
3154 .I EXAMPLE:
3155 .PD 0
3156 .RSs
3157 .IPs 50:40
3158 Places the window at x=50, y=40.
3159 .IPs 50%:50%
3160 Places the window in the middle of the screen.
3161 .IPs "100%\ "
3162 Places the window at the middle of the right edge of the screen.
3163 .IPs 100%:100%
3164 Places the window at the bottom right corner of the screen.
3166 .PD 1
3169 .B \-hue <\-100\-100>
3170 Adjust the hue of the video signal (default: 0).
3171 You can get a colored negative of the image with this option.
3172 Not supported by all video output drivers.
3175 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3176 Specify the dotclock or pixelclock range of the monitor.
3179 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3180 Specify the horizontal frequency range of the monitor.
3183 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3184 Specify the vertical frequency range of the monitor.
3187 .B \-monitoraspect <ratio> (also see \-aspect)
3188 Set the aspect ratio of your monitor or TV screen.
3189 A value of 0 disables a previous setting (e.g.\& in the config file).
3190 Overrides the \-monitorpixelaspect setting if enabled.
3191 .sp 1
3192 .I EXAMPLE:
3193 .PD 0
3194 .RSs
3195 \-monitoraspect 4:3  or 1.3333
3197 \-monitoraspect 16:9 or 1.7777
3199 .PD 1
3202 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3203 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3204 A value of 1 means square pixels
3205 (correct for (almost?) all LCDs).
3208 .B \-name (X11 only)
3209 Set the window class name.
3212 .B \-nodouble
3213 Disables double buffering, mostly for debugging purposes.
3214 Double buffering fixes flicker by storing two frames in memory, and
3215 displaying one while decoding another.
3216 It can affect OSD negatively, but often removes OSD flickering.
3219 .B \-nograbpointer
3220 Do not grab the mouse pointer after a video mode change (\-vm).
3221 Useful for multihead setups.
3224 .B \-nokeepaspect
3225 Do not keep window aspect ratio when resizing windows.
3226 By default MPlayer tries to keep the correct video aspect ratio by
3227 instructing the window manager to maintain window aspect when resizing,
3228 and by adding black bars if the window manager nevertheless allows
3229 window shape to change.
3230 This option disables window manager aspect hints and scales the video
3231 to completely fill the window without regard for aspect ratio.
3234 .B "\-ontop\ "
3235 Makes the player window stay on top of other windows.
3236 Supported by video output drivers which use X11, except SDL,
3237 as well as directx, corevideo, quartz, ggi and gl2.
3240 .B \-panscan <0.0\-1.0>
3241 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3242 movie to make it fit a 4:3 display without black bands).
3243 The range controls how much of the image is cropped.
3244 Only works with the xv, xmga, mga, gl, gl2, quartz, corevideo and xvidix
3245 video output drivers.
3247 .I NOTE:
3248 Values between \-1 and 0 are allowed as well, but highly experimental
3249 and may crash or worse.
3250 Use at your own risk!
3253 .B \-panscanrange <\-19.0\-99.0> (experimental)
3254 Change the range of the pan-and-scan functionality (default: 1).
3255 Positive values mean multiples of the default range.
3256 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3257 E.g.\& \-panscanrange \-3 allows a zoom factor of up to 4.
3258 This feature is experimental.
3259 Do not report bugs unless you are using \-vo gl.
3262 .B \-refreshrate <Hz>
3263 Set the monitor refreshrate in Hz.
3264 Currently only supported by \-vo directx combined with the \-vm option.
3267 .B \-rootwin
3268 Play movie in the root window (desktop background).
3269 Desktop background images may cover the movie window, though.
3270 Only works with the x11, xv, xmga, xvidix, quartz, corevideo and directx video output drivers.
3273 .B \-saturation <\-100\-100>
3274 Adjust the saturation of the video signal (default: 0).
3275 You can get grayscale output with this option.
3276 Not supported by all video output drivers.
3279 .B \-screenh <pixels>
3280 Specify the screen height for video output drivers which
3281 do not know the screen resolution like fbdev, x11 and TV-out.
3284 .B \-screenw <pixels>
3285 Specify the screen width for video output drivers which
3286 do not know the screen resolution like fbdev, x11 and TV-out.
3289 .B \-stop\-xscreensaver (X11 only)
3290 Turns off xscreensaver at startup and turns it on again on exit.
3291 If your screensaver supports neither the XSS nor XResetScreenSaver
3292 API please use \-heartbeat\-cmd instead.
3295 .B \-title (also see \-use\-filename\-title)
3296 Set the window title.
3297 Supported by X11-based video output drivers.
3300 .B \-use\-filename\-title (also see \-title)
3301 Set the window title using the media filename, when not set with \-title.
3302 Supported by X11-based video output drivers.
3305 .B "\-vm \ \ \ "
3306 Try to change to a different video mode.
3307 Supported by the dga, x11, xv, sdl and directx video output drivers.
3308 If used with the directx video output driver the \-screenw,
3309 \-screenh, \-bpp and \-refreshrate options can be used to set
3310 the new display mode.
3313 .B "\-vsync \ \ "
3314 Enables VBI for the vesa, dfbmga and svga video output drivers.
3317 .B \-wid <window ID> (X11, OpenGL and DirectX only)
3318 This tells MPlayer to attach to an existing window.
3319 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3320 This option fills the given window completely, thus aspect scaling,
3321 panscan, etc are no longer handled by MPlayer but must be managed by the
3322 application that created the window.
3325 .B \-xineramascreen <\-2\-...>
3326 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3327 displays) this option tells MPlayer which screen to display the movie on.
3328 A value of \-2 means fullscreen across the whole virtual display (in this case
3329 Xinerama information is completely ignored), \-1 means
3330 fullscreen on the display the window currently is on.
3331 The initial position set via the \-geometry option is relative to the
3332 specified screen.
3333 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3334 This option is not suitable to only set the startup screen (because
3335 it will always display on the given screen in fullscreen mode),
3336 \-geometry is the best that is available for that purpose
3337 currently.
3338 Supported by at least the direct3d, gl, gl2, x11, xv and corevideo video output
3339 drivers.
3342 .B \-zrbw (\-vo zr only)
3343 Display in black and white.
3344 For optimal performance, this can be combined with '\-lavdopts gray'.
3347 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3348 Select a part of the input image to display, multiple occurrences
3349 of this option switch on cinerama mode.
3350 In cinerama mode the movie is distributed over more than one TV
3351 (or beamer) to create a larger image.
3352 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3353 card should at least have a \-zrdev in addition to the \-zrcrop.
3354 For examples, see the output of \-zrhelp and the Zr section of the
3355 documentation.
3358 .B \-zrdev <device> (\-vo zr only)
3359 Specify the device special file that belongs to your MJPEG card, by default
3360 the zr video output driver takes the first v4l device it can find.
3363 .B \-zrfd (\-vo zr only)
3364 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3365 happens if the hardware scaler can stretch the image to its original size.
3366 Use this option to force decimation.
3369 .B \-zrhdec <1|2|4> (\-vo zr only)
3370 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3371 line/\:pixel of the input image to the MJPEG card and use the scaler
3372 of the MJPEG card to stretch the image to its original size.
3375 .B \-zrhelp (\-vo zr only)
3376 Display a list of all \-zr* options, their default values and a
3377 cinerama mode example.
3380 .B \-zrnorm <norm> (\-vo zr only)
3381 Specify the TV norm as PAL or NTSC (default: no change).
3384 .B \-zrquality <1\-20> (\-vo zr only)
3385 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3388 .B \-zrvdec <1|2|4> (\-vo zr only)
3389 Vertical decimation: Ask the driver to send only every 2nd or 4th
3390 line/\:pixel of the input image to the MJPEG card and use the scaler
3391 of the MJPEG card to stretch the image to its original size.
3394 .B \-zrxdoff <x display offset> (\-vo zr only)
3395 If the movie is smaller than the TV screen, this option specifies the x
3396 offset from the upper-left corner of the TV screen (default: centered).
3399 .B \-zrydoff <y display offset> (\-vo zr only)
3400 If the movie is smaller than the TV screen, this option specifies the y
3401 offset from the upper-left corner of the TV screen (default: centered).
3405 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3406 Video output drivers are interfaces to different video output facilities.
3407 The syntax is:
3410 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3411 Specify a priority list of video output drivers to be used.
3413 If the list has a trailing ',' MPlayer will fall back on drivers not
3414 contained in the list.
3415 Suboptions are optional and can mostly be omitted.
3417 .I NOTE:
3418 See \-vo help for a list of compiled-in video output drivers.
3419 .sp 1
3420 .I EXAMPLE:
3421 .PD 0
3422 .RSs
3423 .IPs "\-vo xmga,xv,"
3424 Try the Matrox X11 driver, then the Xv driver, then others.
3425 .IPs "\-vo directx:noaccel"
3426 Uses the DirectX driver with acceleration features turned off.
3428 .PD 1
3429 .sp 1
3430 Available video output drivers are:
3433 .B xv (X11 only)
3434 Uses the XVideo extension of XFree86 4.x to enable hardware
3435 accelerated playback.
3436 If you cannot use a hardware specific driver, this is probably
3437 the best option.
3438 For information about what colorkey is used and how it is drawn run MPlayer
3439 with \-v option and look out for the lines tagged with [xv common] at the
3440 beginning.
3441 .PD 0
3442 .RSs
3443 .IPs adaptor=<number>
3444 Select a specific XVideo adaptor (check xvinfo results).
3445 .IPs port=<number>
3446 Select a specific XVideo port.
3447 .IPs ck=<cur|use|set>
3448 Select the source from which the colorkey is taken (default: cur).
3449 .RSss
3450 .IPs cur
3451 The default takes the colorkey currently set in Xv.
3452 .IPs use
3453 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3454 it).
3455 .IPs set
3456 Same as use but also sets the supplied colorkey.
3458 .IPs ck-method=<man|bg|auto>
3459 Sets the colorkey drawing method (default: man).
3460 .RSss
3461 .IPs man
3462 Draw the colorkey manually (reduces flicker in some cases).
3463 .IPs bg
3464 Set the colorkey as window background.
3465 .IPs auto
3466 Let Xv draw the colorkey.
3469 .PD 1
3472 .B x11 (X11 only)
3473 Shared memory video output driver without hardware acceleration that
3474 works whenever X11 is present.
3477 .B xover (X11 only)
3478 Adds X11 support to all overlay based video output drivers.
3479 Currently only supported by tdfx_vid.
3480 .PD 0
3481 .RSs
3482 .IPs <vo_driver>
3483 Select the driver to use as source to overlay on top of X11.
3485 .PD 1
3488 .B vdpau (with \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau, ffh264vdpau or ffodivxvdpau)
3489 Video output that uses VDPAU to decode video via hardware.
3490 Also supports displaying of software-decoded video.
3491 .PD 0
3492 .RSs
3493 .IPs sharpen=<\-1\-1>
3494 For positive values, apply a sharpening algorithm to the video,
3495 for negative values a blurring algorithm (default: 0).
3496 .IPs denoise=<0\-1>
3497 Apply a noise reduction algorithm to the video (default: 0, no noise reduction).
3498 .IPs deint=<0\-4>
3499 Select the deinterlacer (default: 0).
3500 All modes > 0 respect \-field\-dominance.
3501 .RSss
3502 .IPs 0
3503 no deinterlacing
3504 .IPs 1
3505 Show only first field, similar to \-vf field.
3506 .IPs 2
3507 Bob deinterlacing, similar to \-vf tfields=1.
3508 .IPs 3
3509 motion adaptive temporal deinterlacing
3510 May lead to A/V desync with slow video hardware and/or high resolution.
3511 This is the default if "D" is used to enable deinterlacing.
3512 .IPs 4
3513 motion adaptive temporal deinterlacing with edge-guided spatial interpolation
3514 Needs fast video hardware.
3516 .IPs chroma\-deint
3517 Makes temporal deinterlacers operate both on luma and chroma (default).
3518 Use nochroma\-deint to solely use luma and speed up advanced deinterlacing.
3519 Useful with slow video memory.
3520 .IPs pullup
3521 Try to apply inverse telecine, needs motion adaptive temporal deinterlacing.
3522 .IPs colorspace=<0-3>
3523 Select the color space for YUV to RGB conversion.
3524 In general BT.601 should be used for standard definition (SD) content and
3525 BT.709 for high definition (HD) content.
3526 Using incorrect color space results in slightly under or over saturated and
3527 shifted colors.
3528 .RSss
3529 .IPs 0
3530 Guess the color space based on video resolution.
3531 Video with width >= 1280 or height > 576 is assumed to be HD and BT.709 color
3532 space will be used.
3533 .IPs 1
3534 Use ITU-R BT.601 color space (default).
3535 .IPs 2
3536 Use ITU-R BT.709 color space.
3537 .IPs 3
3538 Use SMPTE-240M color space.
3540 .IPs hqscaling=<0-9>
3541 .RSss
3542 .IPs 0
3543 Use default VDPAU scaling (default).
3544 .IPs 1\-9
3545 Apply high quality VDPAU scaling (needs capable hardware).
3547 .IPs studio
3548 Output video in studio level RGB (16-235).
3549 This is what TVs and video monitors generally expect.
3550 By default PC level RGB (0-255) suitable for PC monitors is used.
3551 Providing studio level output to a device expecting PC level input results in
3552 grey blacks and dim whites, the reverse in crushed blacks and whites.
3553 .IPs fps=<number>
3554 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).
3555 Default 0 means use autodetected value.
3556 A positive value is interpreted as a refresh rate in Hz and overrides the autodetected value.
3557 A negative value disables all timing adjustment and framedrop logic.
3558 .IPs queuetime_windowed=<number>
3559 .IPs queuetime_fs=<number>
3560 Use VDPAU's presentation queue functionality to queue future video frame
3561 changes at most this many milliseconds in advance (default: 50).
3562 See below for additional information.
3563 .IPs output_surfaces=<2-15>
3564 Allocate this many output surfaces to display video frames (default: 3).
3565 See below for additional information.
3568 .sp 1
3569 Using the VDPAU frame queueing functionality controlled by the queuetime
3570 options makes MPlayer's frame flip timing less sensitive to system CPU load
3571 and allows MPlayer to start decoding the next frame(s) slightly earlier
3572 which can reduce jitter caused by individual slow-to-decode frames.
3573 However the NVIDIA graphics drivers can make other window behavior such as
3574 window moves choppy if VDPAU is using the blit queue (mainly happens
3575 if you have the composite extension enabled) and this feature is active.
3576 If this happens on your system and it bothers you then you can set the
3577 queuetime value to 0 to disable this feature.
3578 The settings to use in windowed and fullscreen mode are separate because there
3579 should be less reason to disable this for fullscreen mode (as the driver issue
3580 shouldn't affect the video itself).
3581 .sp 1
3582 You can queue more frames ahead by increasing the queuetime values and the
3583 output_surfaces count (to ensure enough surfaces to buffer video for a
3584 certain time ahead you need at least as many surfaces as the video has
3585 frames during that time, plus two).
3586 This could help make video smoother in some cases.
3587 The main downsides are increased video RAM requirements for the surfaces
3588 and laggier display response to user commands (display changes only become
3589 visible some time after they're queued). The graphics driver implementation may
3590 also have limits on the length of maximum queuing time or number of queued
3591 surfaces that work well or at all.
3593 .PD 1
3596 .B xvmc (X11 with \-vc ffmpeg12mc only)
3597 Video output driver that uses the XvMC (X Video Motion Compensation)
3598 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3599 .PD 0
3600 .RSs
3601 .IPs adaptor=<number>
3602 Select a specific XVideo adaptor (check xvinfo results).
3603 .IPs port=<number>
3604 Select a specific XVideo port.
3605 .IPs (no)benchmark
3606 Disables image display.
3607 Necessary for proper benchmarking of drivers that change
3608 image buffers on monitor retrace only (nVidia).
3609 Default is not to disable image display (nobenchmark).
3610 .IPs (no)bobdeint
3611 Very simple deinterlacer.
3612 Might not look better than \-vf tfields=1,
3613 but it is the only deinterlacer for xvmc (default: nobobdeint).
3614 .IPs (no)queue
3615 Queue frames for display to allow more parallel work of the video hardware.
3616 May add a small (not noticeable) constant A/V desync (default: noqueue).
3617 .IPs (no)sleep
3618 Use sleep function while waiting for rendering to finish
3619 (not recommended on Linux) (default: nosleep).
3620 .IPs ck=cur|use|set
3621 Same as \-vo xv:ck (see \-vo xv).
3622 .IPs ck-method=man|bg|auto
3623 Same as \-vo xv:ck-method (see \-vo xv).
3625 .PD 1
3628 .B dga (X11 only)
3629 Play video through the XFree86 Direct Graphics Access extension.
3630 Considered obsolete.
3633 .B sdl (SDL only, buggy/outdated)
3634 Highly platform independent SDL (Simple Directmedia Layer) library
3635 video output driver.
3636 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3637 any effect on SDL.
3638 Note that it has several minor bugs (\-vm/\-novm is mostly ignored,
3639 \-fs behaves like \-novm should, window is in top-left corner when
3640 returning from fullscreen, panscan is not supported, ...).
3641 .PD 0
3642 .RSs
3643 .IPs driver=<driver>
3644 Explicitly choose the SDL driver to use.
3645 .IPs (no)forcexv
3646 Use XVideo through the sdl video output driver (default: forcexv).
3647 .IPs (no)hwaccel
3648 Use hardware accelerated scaler (default: hwaccel).
3650 .PD 1
3653 .B "vidix\ \ "
3654 VIDIX (VIDeo Interface for *niX) is an interface to the
3655 video acceleration features of different graphics cards.
3656 Very fast video output driver on cards that support it.
3657 .PD 0
3658 .RSs
3659 .IPs <subdevice>
3660 Explicitly choose the VIDIX subdevice driver to use.
3661 Available subdevice drivers are cyberblade, ivtv, mach64,
3662 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, s3, sh_veu,
3663 sis_vid and unichrome.
3665 .PD 1
3668 .B xvidix (X11 only)
3669 X11 frontend for VIDIX
3670 .PD 0
3671 .RSs
3672 .IPs <subdevice>
3673 same as vidix
3675 .PD 1
3678 .B "cvidix\ "
3679 Generic and platform independent VIDIX frontend, can even run in a
3680 text console with nVidia cards.
3681 .PD 0
3682 .RSs
3683 .IPs <subdevice>
3684 same as vidix
3686 .PD 1
3689 .B winvidix (Windows only)
3690 Windows frontend for VIDIX
3691 .PD 0
3692 .RSs
3693 .IPs <subdevice>
3694 same as vidix
3696 .PD 1
3699 .B direct3d (Windows only) (BETA CODE!)
3700 Video output driver that uses the Direct3D interface (useful for Vista).
3703 .B directx (Windows only)
3704 Video output driver that uses the DirectX interface.
3705 .PD 0
3706 .RSs
3707 .IPs noaccel
3708 Turns off hardware acceleration.
3709 Try this option if you have display problems.
3711 .PD 1
3714 .B kva (OS/2 only)
3715 Video output driver that uses the libkva interface.
3716 .PD 0
3717 .RSs
3718 .IPs snap
3719 Force SNAP mode.
3720 .IPs wo
3721 Force WarpOverlay! mode.
3722 .IPs dive
3723 Force DIVE mode.
3724 .IPs (no)t23
3725 Enable or disable workaround for T23 laptop (default: disabled).
3726 Try to enable this option if your video card supports upscaling only.
3728 .PD 1
3731 .B quartz (Mac OS X only)
3732 Mac OS X Quartz video output driver.
3733 Under some circumstances, it might be more efficient to force a
3734 packed YUV output format, with e.g.\& \-vf format=yuy2.
3735 .PD 0
3736 .RSs
3737 .IPs device_id=<number>
3738 Choose the display device to use in fullscreen.
3739 .IPs fs_res=<width>:<height>
3740 Specify the fullscreen resolution (useful on slow systems).
3742 .PD 1
3745 .B corevideo (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3746 Mac OS X CoreVideo video output driver
3747 .PD 0
3748 .RSs
3749 .IPs device_id=<number>
3750 Choose the display device to use for fullscreen or set it to \-1 to
3751 always use the same screen the video window is on (default: \-1 \- auto).
3752 .IPs shared_buffer
3753 Write output to a shared memory buffer instead of displaying it and
3754 try to open an existing NSConnection for communication with a GUI.
3755 .IPs buffer_name=<name>
3756 Name of the shared buffer created with shm_open as well as the name of
3757 the NSConnection MPlayer will try to open (default: "mplayerosx").
3758 Setting buffer_name implicitly enables shared_buffer.
3760 .PD 1
3763 .B fbdev (Linux only)
3764 Uses the kernel framebuffer to play video.
3765 .PD 0
3766 .RSs
3767 .IPs <device>
3768 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3769 name of the VIDIX subdevice if the device name starts with 'vidix'
3770 (e.g.\& 'vidixsis_vid' for the sis driver).
3772 .PD 1
3775 .B fbdev2 (Linux only)
3776 Uses the kernel framebuffer to play video,
3777 alternative implementation.
3778 .PD 0
3779 .RSs
3780 .IPs <device>
3781 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3783 .PD 1
3786 .B "vesa\ \ \ "
3787 Very general video output driver that should work on any VESA VBE 2.0
3788 compatible card.
3789 .PD 0
3790 .RSs
3791 .IPs (no)dga
3792 Turns DGA mode on or off (default: on).
3793 .IPs neotv_pal
3794 Activate the NeoMagic TV out and set it to PAL norm.
3795 .IPs neotv_ntsc
3796 Activate the NeoMagic TV out and set it to NTSC norm.
3797 .IPs vidix
3798 Use the VIDIX driver.
3799 .IPs "lvo:\ \ \ "
3800 Activate the Linux Video Overlay on top of VESA mode.
3802 .PD 1
3805 .B "svga\ \ \ "
3806 Play video using the SVGA library.
3807 .PD 0
3808 .RSs
3809 .IPs "<video mode>"
3810 Specify video mode to use.
3811 The mode can be given in a <width>x<height>x<colors> format,
3812 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3813 .IPs bbosd
3814 Draw OSD into black bands below the movie (slower).
3815 .IPs native
3816 Use only native drawing functions.
3817 This avoids direct rendering, OSD and hardware acceleration.
3818 .IPs retrace
3819 Force frame switch on vertical retrace.
3820 Usable only with \-double.
3821 It has the same effect as the \-vsync option.
3822 .IPs "sq\ \ \ "
3823 Try to select a video mode with square pixels.
3824 .IPs vidix
3825 Use svga with VIDIX.
3827 .PD 1
3830 .B "gl\ \ \ \ \ "
3831 OpenGL video output driver, simple version.
3832 Video size must be smaller than
3833 the maximum texture size of your OpenGL implementation.
3834 Intended to work even with the most basic OpenGL implementations,
3835 but also makes use of newer extensions, which allow support for more
3836 colorspaces and direct rendering.
3837 For optimal speed try something similar to
3839 \-vo gl:yuv=2:rectangle=2:force\-pbo:ati\-hack \-dr \-noslices
3841 The code performs very few checks, so if a feature does not work, this
3842 might be because it is not supported by your card/OpenGL implementation
3843 even if you do not get any error message.
3844 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3845 .PD 0
3846 .RSs
3847 .IPs (no)ati\-hack
3848 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3849 or force\-pbo).
3850 This option fixes this, at the expense of using a bit more memory.
3851 .IPs (no)force\-pbo
3852 Always uses PBOs to transfer textures even if this involves an extra copy.
3853 Currently this gives a little extra speed with NVidia drivers and a lot more
3854 speed with ATI drivers.
3855 May need \-noslices and the ati\-hack suboption to work correctly.
3856 .IPs (no)scaled-osd
3857 Changes the way the OSD behaves when the size of the
3858 window changes (default: disabled).
3859 When enabled behaves more like the other video output drivers,
3860 which is better for fixed-size fonts.
3861 Disabled looks much better with FreeType fonts and uses the
3862 borders in fullscreen mode.
3863 Does not work correctly with ass subtitles (see \-ass), you can instead
3864 render them without OpenGL support via \-vf ass.
3865 .IPs osdcolor=<0xAARRGGBB>
3866 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3867 .IPs rectangle=<0,1,2>
3868 Select usage of rectangular textures which saves video RAM, but often is
3869 slower (default: 0).
3870 .RSss
3871 0: Use power-of-two textures (default).
3873 1: Use the GL_ARB_texture_rectangle extension.
3875 2: Use the GL_ARB_texture_non_power_of_two extension.
3876 In some cases only supported in software and thus very slow.
3878 .IPs swapinterval=<n>
3879 Minimum interval between two buffer swaps, counted in
3880 displayed frames (default: 1).
3881 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3882 Values below 0 will leave it at the system default.
3883 This limits the framerate to (horizontal refresh rate / n).
3884 Requires GLX_SGI_swap_control support to work.
3885 With some (most/all?) implementations this only works in fullscreen mode.
3886 .IPs ycbcr
3887 Use the GL_MESA_ycbcr_texture extension to convert YUV to RGB.
3888 In most cases this is probably slower than doing software conversion to RGB.
3889 .IPs yuv=<n>
3890 Select the type of YUV to RGB conversion.
3891 The default is auto-detection deciding between values 0 and 2.
3892 .RSss
3893 0: Use software conversion.
3894 Compatible with all OpenGL versions.
3895 Provides brightness, contrast and saturation control.
3897 1: Use register combiners.
3898 This uses an nVidia-specific extension (GL_NV_register_combiners).
3899 At least three texture units are needed.
3900 Provides saturation and hue control.
3901 This method is fast but inexact.
3903 2: Use a fragment program.
3904 Needs the GL_ARB_fragment_program extension and at least three texture units.
3905 Provides brightness, contrast, saturation and hue control.
3907 3: Use a fragment program using the POW instruction.
3908 Needs the GL_ARB_fragment_program extension and at least three texture units.
3909 Provides brightness, contrast, saturation, hue and gamma control.
3910 Gamma can also be set independently for red, green and blue.
3911 Method 4 is usually faster.
3913 4: Use a fragment program with additional lookup.
3914 Needs the GL_ARB_fragment_program extension and at least four texture units.
3915 Provides brightness, contrast, saturation, hue and gamma control.
3916 Gamma can also be set independently for red, green and blue.
3918 5: Use ATI-specific method (for older cards).
3919 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3920 GL_ARB_fragment_shader!).
3921 At least three texture units are needed.
3922 Provides saturation and hue control.
3923 This method is fast but inexact.
3925 6: Use a 3D texture to do conversion via lookup.
3926 Needs the GL_ARB_fragment_program extension and at least four texture units.
3927 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3928 a texture with border pixels.
3929 Provides brightness, contrast, saturation, hue and gamma control.
3930 Gamma can also be set independently for red, green and blue.
3931 Speed depends more on GPU memory bandwidth than other methods.
3933 .IPs colorspace
3934 Select the color space for YUV to RGB conversion.
3935 .RSss
3936 .IPs 0
3937 Use the formula used normally by MPlayer (default).
3938 .IPs 1
3939 Use ITU-R BT.601 color space.
3940 .IPs 2
3941 Use ITU-R BT.709 color space.
3942 .IPs 3
3943 Use SMPTE-240M color space.
3945 .IPs levelconv=<n>
3946 Select the brightness level conversion to use for the YUV to RGB conversion
3947 .RSss
3948 .IPs 0
3949 Convert TV to PC levels (default).
3950 .IPs 1
3951 Convert PC to TV levels.
3952 .IPs 2
3953 Do not do any conversion.
3955 .IPs lscale=<n>
3956 Select the scaling function to use for luminance scaling.
3957 Only valid for yuv modes 2, 3, 4 and 6.
3958 .RSss
3959 0: Use simple linear filtering (default).
3961 1: Use bicubic B-spline filtering (better quality).
3962 Needs one additional texture unit.
3963 Older cards will not be able to handle this for chroma at least in fullscreen mode.
3965 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
3966 Works on a few more cards than method 1.
3968 3: Same as 1 but does not use a lookup texture.
3969 Might be faster on some cards.
3971 4: Use experimental unsharp masking with 3x3 support and a default strength of 0.5 (see filter-strength).
3973 5: Use experimental unsharp masking with 5x5 support and a default strength of 0.5 (see filter-strength).
3975 .IPs cscale=<n>
3976 Select the scaling function to use for chrominance scaling.
3977 For details see lscale.
3978 .IPs filter-strength=<value>
3979 Set the effect strength for the lscale/cscale filters that support it.
3980 .IPs customprog=<filename>
3981 Load a custom fragment program from <filename>.
3982 See TOOLS/edgedect.fp for an example.
3983 .IPs customtex=<filename>
3984 Load a custom "gamma ramp" texture from <filename>.
3985 This can be used in combination with yuv=4 or with the customprog option.
3986 .IPs (no)customtlin
3987 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
3988 for customtex texture.
3989 .IPs (no)customtrect
3990 If enabled, use texture_rectangle for customtex texture.
3991 Default is disabled.
3992 .IPs (no)mipmapgen
3993 If enabled, mipmaps for the video are automatically generated.
3994 This should be useful together with the customprog and the TXB
3995 instruction to implement blur filters with a large radius.
3996 For most OpenGL implementations this is very slow for any non-RGB
3997 formats.
3998 Default is disabled.
4000 .sp 1
4002 Normally there is no reason to use the following options, they mostly
4003 exist for testing purposes.
4005 .sp 1
4006 .RSs
4007 .IPs (no)glfinish
4008 Call glFinish() before swapping buffers.
4009 Slower but in some cases more correct output (default: disabled).
4010 .IPs (no)manyfmts
4011 Enables support for more (RGB and BGR) color formats (default: enabled).
4012 Needs OpenGL version >= 1.2.
4013 .IPs slice-height=<0\-...>
4014 Number of lines copied to texture in one piece (default: 0).
4015 0 for whole image.
4017 .I NOTE:
4018 If YUV colorspace is used (see yuv suboption), special rules apply:
4019 .RSss
4020 If the decoder uses slice rendering (see \-noslices), this setting
4021 has no effect, the size of the slices as provided by the decoder is used.
4023 If the decoder does not use slice rendering, the default is 16.
4025 .IPs (no)osd
4026 Enable or disable support for OSD rendering via OpenGL (default: enabled).
4027 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
4028 .IPs (no)aspect
4029 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
4030 Disabling might increase speed.
4031 .REss
4033 .PD 1
4036 .B "gl2\ \ \ \ "
4037 Variant of the OpenGL video output driver.
4038 Supports videos larger than the maximum texture size but lacks many of the
4039 advanced features and optimizations of the gl driver and is unlikely to be
4040 extended further.
4041 .PD 0
4042 .RSs
4043 .IPs (no)glfinish
4044 same as gl (default: enabled)
4045 .IPs yuv=<n>
4046 Select the type of YUV to RGB conversion.
4047 If set to anything except 0 OSD will be disabled and brightness, contrast and
4048 gamma setting is only available via the global X server settings.
4049 Apart from this the values have the same meaning as for \-vo gl.
4050 .REss
4053 .B matrixview
4054 OpenGL-based renderer creating a Matrix-like running-text effect.
4055 .PD 0
4056 .RSs
4057 .IPs cols=<n>
4058 Number of text columns to display.
4059 Very low values (< 16) will probably fail due to scaler limitations.
4060 Values not divisible by 16 may cause issues as well.
4061 .IPs rows=<n>
4062 Number of text rows to display.
4063 Very low values (< 16) will probably fail due to scaler limitations.
4064 Values not divisible by 16 may cause issues as well.
4065 .REss
4068 .B "null\ \ \ "
4069 Produces no video output.
4070 Useful for benchmarking.
4073 .B "aa\ \ \ \ \ "
4074 ASCII art video output driver that works on a text console.
4075 You can get a list and an explanation of available suboptions
4076 by executing 'mplayer \-vo aa:help'.
4078 .I NOTE:
4079 The driver does not handle \-aspect correctly.
4081 .I HINT:
4082 You probably have to specify \-monitorpixelaspect.
4083 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
4086 .B "caca\ \ \ "
4087 Color ASCII art video output driver that works on a text console.
4090 .B "bl\ \ \ \ \ "
4091 Video playback using the Blinkenlights UDP protocol.
4092 This driver is highly hardware specific.
4093 .PD 0
4094 .RSs
4095 .IPs <subdevice>
4096 Explicitly choose the Blinkenlights subdevice driver to use.
4097 It is something like arcade:host=localhost:2323 or
4098 hdl:file=name1,file=name2.
4099 You must specify a subdevice.
4101 .PD 1
4104 .B "ggi\ \ \ \ "
4105 GGI graphics system video output driver
4106 .PD 0
4107 .RSs
4108 .IPs <driver>
4109 Explicitly choose the GGI driver to use.
4110 Replace any ',' that would appear in the driver string by a '.'.
4112 .PD 1
4115 .B directfb
4116 Play video using the DirectFB library.
4117 .PD 0
4118 .RSs
4119 .IPs (no)input
4120 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
4121 .IPs buffermode=single|double|triple
4122 Double and triple buffering give best results if you want to avoid tearing issues.
4123 Triple buffering is more efficient than double buffering as it does
4124 not block MPlayer while waiting for the vertical retrace.
4125 Single buffering should be avoided (default: single).
4126 .IPs fieldparity=top|bottom
4127 Control the output order for interlaced frames (default: disabled).
4128 Valid values are top = top fields first, bottom = bottom fields first.
4129 This option does not have any effect on progressive film material
4130 like most MPEG movies are.
4131 You need to enable this option if you have tearing issues or unsmooth
4132 motions watching interlaced film material.
4133 .IPs layer=N
4134 Will force layer with ID N for playback (default: \-1 \- auto).
4135 .IPs dfbopts=<list>
4136 Specify a parameter list for DirectFB.
4138 .PD 1
4141 .B "dfbmga\ "
4142 Matrox G400/\:G450/\:G550 specific video output driver that uses the
4143 DirectFB library to make use of special hardware features.
4144 Enables CRTC2 (second head), displaying video independently of the first head.
4145 .PD 0
4146 .RSs
4147 .IPs (no)input
4148 same as directfb (default: disabled)
4149 .IPs buffermode=single|double|triple
4150 same as directfb (default: triple)
4151 .IPs fieldparity=top|bottom
4152 same as directfb
4153 .IPs (no)bes
4154 Enable the use of the Matrox BES (backend scaler) (default: disabled).
4155 Gives very good results concerning speed and output quality as interpolated
4156 picture processing is done in hardware.
4157 Works only on the primary head.
4158 .IPs (no)spic
4159 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
4160 .IPs (no)crtc2
4161 Turn on TV-out on the second head (default: enabled).
4162 The output quality is amazing as it is a full interlaced picture
4163 with proper sync to every odd/\:even field.
4164 .IPs tvnorm=pal|ntsc|auto
4165 Will set the TV norm of the Matrox card without the need
4166 for modifying /etc/\:directfbrc (default: disabled).
4167 Valid norms are pal = PAL, ntsc = NTSC.
4168 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
4169 which norm to use by looking at the framerate of the movie.
4171 .PD 1
4174 .B mga (Linux only)
4175 Matrox specific video output driver that makes use of the YUV back
4176 end scaler on Gxxx cards through a kernel module.
4177 If you have a Matrox card, this is the fastest option.
4178 .PD 0
4179 .RSs
4180 .IPs <device>
4181 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4183 .PD 1
4186 .B xmga (Linux, X11 only)
4187 The mga video output driver, running in an X11 window.
4188 .PD 0
4189 .RSs
4190 .IPs <device>
4191 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4193 .PD 1
4196 .B s3fb (Linux only) (also see \-dr)
4197 S3 Virge specific video output driver.
4198 This driver supports the card's YUV conversion and scaling, double
4199 buffering and direct rendering features.
4200 Use \-vf format=yuy2 to get hardware-accelerated YUY2 rendering, which is
4201 much faster than YV12 on this card.
4202 .PD 0
4203 .RSs
4204 .IPs <device>
4205 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4207 .PD 1
4210 .B wii (Linux only)
4211 Nintendo Wii/GameCube specific video output driver.
4214 .B 3dfx (Linux only)
4215 3dfx-specific video output driver that directly uses
4216 the hardware on top of X11.
4217 Only 16 bpp are supported.
4220 .B tdfxfb (Linux only)
4221 This driver employs the tdfxfb framebuffer driver to play movies with
4222 YUV acceleration on 3dfx cards.
4223 .PD 0
4224 .RSs
4225 .IPs <device>
4226 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4228 .PD 1
4231 .B tdfx_vid (Linux only)
4232 3dfx-specific video output driver that works in combination with
4233 the tdfx_vid kernel module.
4234 .PD 0
4235 .RSs
4236 .IPs <device>
4237 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
4239 .PD 1
4242 .B dxr2 (also see \-dxr2) (DXR2 only)
4243 Creative DXR2 specific video output driver.
4244 .PD 0
4245 .RSs
4246 .IPs <vo_driver>
4247 Output video subdriver to use as overlay (x11, xv).
4249 .PD 1
4252 .B dxr3 (DXR3 only)
4253 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
4254 Hollywood Plus) specific video output driver.
4255 Also see the lavc video filter.
4256 .PD 0
4257 .RSs
4258 .IPs overlay
4259 Activates the overlay instead of TV-out.
4260 .IPs prebuf
4261 Turns on prebuffering.
4262 .IPs "sync\ "
4263 Will turn on the new sync-engine.
4264 .IPs norm=<norm>
4265 Specifies the TV norm.
4266 .RSss
4267 0: Does not change current norm (default).
4269 1: Auto-adjust using PAL/\:NTSC.
4271 2: Auto-adjust using PAL/\:PAL-60.
4273 3: PAL
4275 4: PAL-60
4277 5: NTSC
4279 .IPs <0\-3>
4280 Specifies the device number to use if you have more than one em8300 card.
4282 .PD 1
4285 .B ivtv (IVTV only)
4286 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4287 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4288 specific video output driver for TV-out.
4289 Also see the lavc video filter.
4290 .PD 0
4291 .RSs
4292 .IPs <device>
4293 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4294 .IPs <output>
4295 Explicitly choose the TV-out output to be used for the video signal.
4297 .PD 1
4300 .B v4l2 (requires Linux 2.6.22+ kernel)
4301 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4302 Also see the lavc video filter.
4303 .PD 0
4304 .RSs
4305 .IPs <device>
4306 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4307 .IPs <output>
4308 Explicitly choose the TV-out output to be used for the video signal.
4310 .PD 1
4313 .B mpegpes (DVB only)
4314 Video output driver for DVB cards that writes the output to an MPEG-PES file
4315 if no DVB card is installed.
4316 .PD 0
4317 .RSs
4318 .IPs card=<1\-4>
4319 Specifies the device number to use if you have more than one DVB output card
4320 (V3 API only, such as 1.x.y series drivers).
4321 If not specified MPlayer will search the first usable card.
4322 .IPs <filename>
4323 output filename (default: ./grab.mpg)
4325 .PD 1
4328 .B zr (also see \-zr* and \-zrhelp)
4329 Video output driver for a number of MJPEG capture/\:playback cards.
4332 .B zr2 (also see the zrmjpeg video filter)
4333 Video output driver for a number of MJPEG capture/\:playback cards,
4334 second generation.
4335 .PD 0
4336 .RSs
4337 .IPs dev=<device>
4338 Specifies the video device to use.
4339 .IPs norm=<PAL|NTSC|SECAM|auto>
4340 Specifies the video norm to use (default: auto).
4341 .IPs (no)prebuf
4342 (De)Activate prebuffering, not yet supported.
4344 .PD 1
4347 .B "md5sum\ "
4348 Calculate MD5 sums of each frame and write them to a file.
4349 Supports RGB24 and YV12 colorspaces.
4350 Useful for debugging.
4351 .PD 0
4352 .RSs
4353 .IPs outfile=<value>
4354 Specify the output filename (default: ./md5sums).
4356 .PD 1
4359 .B yuv4mpeg
4360 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4361 images and stores it in a file (default: ./stream.yuv).
4362 The format is the same as the one employed by mjpegtools, so this is
4363 useful if you want to process the video with the mjpegtools suite.
4364 It supports the YV12 format.
4365 If your source file has a different format and is interlaced, make sure
4366 to use -vf scale=::1 to ensure the conversion uses interlaced mode.
4367 You can combine it with the \-fixed\-vo option to concatenate files
4368 with the same dimensions and fps value.
4369 .PD 0
4370 .RSs
4371 .IPs interlaced
4372 Write the output as interlaced frames, top field first.
4373 .IPs interlaced_bf
4374 Write the output as interlaced frames, bottom field first.
4375 .IPs file=<filename>
4376 Write the output to <filename> instead of the default stream.yuv.
4377 .REss
4378 .PD 1
4380 .sp 1
4381 .I NOTE:
4382 If you do not specify any option the output is progressive
4383 (i.e.\& not interlaced).
4387 .B "gif89a\ "
4388 Output each frame into a single animated GIF file in the current directory.
4389 It supports only RGB format with 24 bpp and the output is converted to 256
4390 colors.
4391 .PD 0
4392 .RSs
4393 .IPs <fps>
4394 Float value to specify framerate (default: 5.0).
4395 .IPs <output>
4396 Specify the output filename (default: ./out.gif).
4397 .REss
4398 .PD 1
4400 .sp 1
4401 .I NOTE:
4402 You must specify the framerate before the filename or the framerate will
4403 be part of the filename.
4404 .sp 1
4405 .I EXAMPLE:
4407 .PD 0
4408 .RSs
4409 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4411 .PD 1
4414 .B "jpeg\ \ \ "
4415 Output each frame into a JPEG file in the current directory.
4416 Each file takes the frame number padded with leading zeros as name.
4417 .PD 0
4418 .RSs
4419 .IPs [no]progressive
4420 Specify standard or progressive JPEG (default: noprogressive).
4421 .IPs [no]baseline
4422 Specify use of baseline or not (default: baseline).
4423 .IPs optimize=<0\-100>
4424 optimization factor (default: 100)
4425 .IPs smooth=<0\-100>
4426 smooth factor (default: 0)
4427 .IPs quality=<0\-100>
4428 quality factor (default: 75)
4429 .IPs outdir=<dirname>
4430 Specify the directory to save the JPEG files to (default: ./).
4431 .IPs subdirs=<prefix>
4432 Create numbered subdirectories with the specified prefix to
4433 save the files in instead of the current directory.
4434 .IPs "maxfiles=<value> (subdirs only)"
4435 Maximum number of files to be saved per subdirectory.
4436 Must be equal to or larger than 1 (default: 1000).
4438 .PD 1
4441 .B "pnm\ \ \ \ "
4442 Output each frame into a PNM file in the current directory.
4443 Each file takes the frame number padded with leading zeros as name.
4444 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4445 Also see pnm(5), ppm(5) and pgm(5).
4446 .PD 0
4447 .RSs
4448 .IPs "ppm\ \ "
4449 Write PPM files (default).
4450 .IPs "pgm\ \ "
4451 Write PGM files.
4452 .IPs pgmyuv
4453 Write PGMYUV files.
4454 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4455 bottom of the picture.
4456 .IPs "raw\ \ "
4457 Write PNM files in raw mode (default).
4458 .IPs ascii
4459 Write PNM files in ASCII mode.
4460 .IPs outdir=<dirname>
4461 Specify the directory to save the PNM files to (default: ./).
4462 .IPs subdirs=<prefix>
4463 Create numbered subdirectories with the specified prefix to
4464 save the files in instead of the current directory.
4465 .IPs "maxfiles=<value> (subdirs only)"
4466 Maximum number of files to be saved per subdirectory.
4467 Must be equal to or larger than 1 (default: 1000).
4469 .PD 1
4472 .B "png\ \ \ \ "
4473 Output each frame into a PNG file in the current directory.
4474 Each file takes the frame number padded with leading zeros as name.
4475 24bpp RGB and BGR formats are supported.
4476 .PD 0
4477 .RSs
4478 .IPs z=<0\-9>
4479 Specifies the compression level.
4480 0 is no compression, 9 is maximum compression.
4481 .IPs alpha (default: noalpha)
4482 Create PNG files with an alpha channel.
4483 Note that MPlayer in general does not support alpha, so this will only
4484 be useful in some rare cases.
4486 .PD 1
4489 .B "tga\ \ \ \ "
4490 Output each frame into a Targa file in the current directory.
4491 Each file takes the frame number padded with leading zeros as name.
4492 The purpose of this video output driver is to have a simple lossless
4493 image writer to use without any external library.
4494 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4495 You can force a particular format with the format video filter.
4496 .sp 1
4497 .I EXAMPLE:
4499 .PD 0
4500 .RSs
4501 mplayer video.nut \-vf format=bgr15 \-vo tga
4503 .PD 1
4507 .SH "DECODING/FILTERING OPTIONS"
4510 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4511 Specify a priority list of audio codecs to be used, according to their codec
4512 name in codecs.conf.
4513 Use a '\-' before the codec name to omit it.
4514 Use a '+' before the codec name to force it, this will likely crash!
4515 If the list has a trailing ',' MPlayer will fall back on codecs not
4516 contained in the list.
4518 .I NOTE:
4519 See \-ac help for a full list of available codecs.
4520 .sp 1
4521 .I EXAMPLE:
4522 .PD 0
4523 .RSs
4524 .IPs "\-ac mp3acm"
4525 Force the l3codeca.acm MP3 codec.
4526 .IPs "\-ac mad,"
4527 Try libmad first, then fall back on others.
4528 .IPs "\-ac hwac3,a52,"
4529 Try hardware AC-3 passthrough, software AC-3, then others.
4530 .IPs "\-ac hwdts,"
4531 Try hardware DTS passthrough, then fall back on others.
4532 .IPs "\-ac \-ffmp3,"
4533 Skip FFmpeg's MP3 decoder.
4535 .PD 1
4538 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4539 Specify advanced audio filter options:
4540 .RSs
4541 .IPs force=<0\-7>
4542 Forces the insertion of audio filters to one of the following:
4543 .RSss
4544 0: Use completely automatic filter insertion (currently identical to 1).
4546 1: Optimize for accuracy (default).
4548 2: Optimize for speed.
4549 .I Warning:
4550 Some features in the audio filters may silently fail,
4551 and the sound quality may drop.
4553 3: Use no automatic insertion of filters and no optimization.
4554 .I Warning:
4555 It may be possible to crash MPlayer using this setting.
4557 4: Use automatic insertion of filters according to 0 above,
4558 but use floating point processing when possible.
4560 5: Use automatic insertion of filters according to 1 above,
4561 but use floating point processing when possible.
4563 6: Use automatic insertion of filters according to 2 above,
4564 but use floating point processing when possible.
4566 7: Use no automatic insertion of filters according to 3 above,
4567 and use floating point processing when possible.
4568 .REss
4569 .IPs list=<filters>
4570 Same as \-af.
4574 .B \-afm <driver1,driver2,...>
4575 Specify a priority list of audio codec families to be used, according
4576 to their codec name in codecs.conf.
4577 Falls back on the default codecs if none of the given codec families work.
4579 .I NOTE:
4580 See \-afm help for a full list of available codec families.
4581 .sp 1
4582 .I EXAMPLE:
4583 .PD 0
4584 .RSs
4585 .IPs "\-afm ffmpeg"
4586 Try FFmpeg's libavcodec codecs first.
4587 .IPs "\-afm acm,dshow"
4588 Try Win32 codecs first.
4590 .PD 1
4593 .B \-aspect <ratio> (also see \-zoom)
4594 Override movie aspect ratio, in case aspect information is
4595 incorrect or missing in the file being played.
4596 .sp 1
4597 .I EXAMPLE:
4598 .PD 0
4599 .RSs
4600 \-aspect 4:3  or \-aspect 1.3333
4602 \-aspect 16:9 or \-aspect 1.7777
4604 .PD 1
4607 .B \-noaspect
4608 Disable automatic movie aspect ratio compensation.
4611 .B "\-field\-dominance <\-1\-1>"
4612 Set first field for interlaced content.
4613 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4614 \-vf yadif=1, \-vo vdpau:deint and \-vo xvmc:bobdeint.
4615 .PD 0
4616 .RSs
4617 .IPs \-1
4618 auto (default): If the decoder does not export the appropriate information,
4619 it falls back to 0 (top field first).
4620 .IPs 0
4621 top field first
4622 .IPs 1
4623 bottom field first
4625 .PD 1
4628 .B "\-flip \ "
4629 Flip image upside-down.
4632 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4633 Specify libavcodec decoding parameters.
4634 Separate multiple options with a colon.
4635 .sp 1
4636 .I EXAMPLE:
4637 .PD 0
4638 .RSs
4639 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4641 .PD 1
4642 .sp 1
4644 Available options are:
4646 .RSs
4647 .IPs bitexact
4648 Only use bit-exact algorithms in all decoding steps (for codec testing).
4649 .IPs bug=<value>
4650 Manually work around encoder bugs.
4651 .RSss
4652 0: nothing
4654 1: autodetect bugs (default)
4656 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4658 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4660 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4662 16 (mpeg4): padding bug (autodetected)
4664 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4666 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4668 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4670 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4672 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4674 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4675 .REss
4676 .IPs debug=<value>
4677 Display debugging information.
4678 .RSss
4680 0: disabled
4682 1: picture info
4684 2: rate control
4686 4: bitstream
4688 8: macroblock (MB) type
4690 16: per-block quantization parameter (QP)
4692 32: motion vector
4694 0x0040: motion vector visualization (use \-noslices)
4696 0x0080: macroblock (MB) skip
4698 0x0100: startcode
4700 0x0200: PTS
4702 0x0400: error resilience
4704 0x0800: memory management control operations (H.264)
4706 0x1000: bugs
4708 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4710 0x4000: Visualize block types.
4711 .REss
4712 .IPs ec=<value>
4713 Set error concealment strategy.
4714 .RSss
4715 1: Use strong deblock filter for damaged MBs.
4717 2: iterative motion vector (MV) search (slow)
4719 3: all (default)
4720 .REss
4721 .IPs er=<value>
4722 Set error resilience strategy.
4723 .RSss
4725 0: disabled
4727 1: careful (Should work with broken encoders.)
4729 2: normal (default) (Works with compliant encoders.)
4731 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4733 4: very aggressive
4734 .REss
4735 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4736 Enable optimizations which do not comply to the specification and might
4737 potentially cause problems, like simpler dequantization, simpler motion
4738 compensation, assuming use of the default quantization matrix, assuming
4739 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4740 .IPs "gray\ "
4741 grayscale only decoding (a bit faster than with color)
4742 .IPs "idct=<0\-99> (see \-lavcopts)"
4743 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4744 This may come at a price in accuracy, though.
4745 .IPs lowres=<number>[,<w>]
4746 Decode at lower resolutions.
4747 Low resolution decoding is not supported by all codecs, and it will
4748 often result in ugly artifacts.
4749 This is not a bug, but a side effect of not decoding at full resolution.
4750 .RSss
4752 0: disabled
4754 1: 1/2 resolution
4756 2: 1/4 resolution
4758 3: 1/8 resolution
4759 .REss
4761 If <w> is specified lowres decoding will be used only if the width of the
4762 video is major than or equal to <w>.
4764 .B o=<key>=<value>[,<key>=<value>[,...]]
4765 Pass AVOptions to libavcodec decoder.
4766 Note, a patch to make the o= unneeded and pass all unknown options through
4767 the AVOption system is welcome.
4768 A full list of AVOptions can be found in the FFmpeg manual.
4769 Note that some options may conflict with MEncoder options.
4770 .sp 1
4772 .I EXAMPLE:
4774 .RSs
4775 .PD 0
4776 .IPs o=debug=pict
4777 .PD 1
4779 .IPs "sb=<number> (MPEG-2 only)"
4780 Skip the given number of macroblock rows at the bottom.
4781 .IPs "st=<number> (MPEG-2 only)"
4782 Skip the given number of macroblock rows at the top.
4783 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4784 Skips the loop filter (AKA deblocking) during H.264 decoding.
4785 Since the filtered frame is supposed to be used as reference
4786 for decoding dependent frames this has a worse effect on quality
4787 than not doing deblocking on e.g.\& MPEG-2 video.
4788 But at least for high bitrate HDTV this provides a big speedup with
4789 no visible quality loss.
4790 .sp 1
4791 <skipvalue> can be either one of the following:
4792 .RSss
4794 none: Never skip.
4796 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4798 nonref: Skip frames that are not referenced (i.e.\& not used for
4799 decoding other frames, the error cannot "build up").
4801 bidir: Skip B-Frames.
4803 nonkey: Skip all frames except keyframes.
4805 all: Skip all frames.
4806 .REss
4807 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4808 Skips the IDCT step.
4809 This degrades quality a lot of in almost all cases
4810 (see skiploopfilter for available skip values).
4811 .IPs skipframe=<skipvalue>
4812 Skips decoding of frames completely.
4813 Big speedup, but jerky motion and sometimes bad artifacts
4814 (see skiploopfilter for available skip values).
4815 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4816 number of threads to use for decoding (default: 1)
4817 .IPs vismv=<value>
4818 Visualize motion vectors.
4819 .RSss
4821 0: disabled
4823 1: Visualize forward predicted MVs of P-frames.
4825 2: Visualize forward predicted MVs of B-frames.
4827 4: Visualize backward predicted MVs of B-frames.
4828 .REss
4829 .IPs vstats
4830 Prints some statistics and stores them in ./vstats_*.log.
4834 .B \-noslices
4835 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4836 whole frame in a single run.
4837 May be faster or slower, depending on video card and available cache.
4838 It has effect only with libmpeg2 and libavcodec codecs.
4841 .B \-nosound
4842 Do not play/\:encode sound.
4843 Useful for benchmarking.
4846 .B \-novideo
4847 Do not play/\:encode video.
4848 In many cases this will not work, use \-vc null \-vo null instead.
4851 .B \-pp <quality> (also see \-vf pp)
4852 Set the DLL postprocess level.
4853 This option is no longer usable with \-vf pp.
4854 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4855 The valid range of \-pp values varies by codec, it is mostly
4856 0\-6, where 0=disable, 6=slowest/\:best.
4859 .B \-pphelp (also see \-vf pp)
4860 Show a summary about the available postprocess filters and their usage.
4863 .B \-ssf <mode>
4864 Specifies software scaler parameters.
4865 .sp 1
4866 .I EXAMPLE:
4867 .PD 0
4868 .RSs
4869 \-vf scale \-ssf lgb=3.0
4871 .PD 1
4872 .PD 0
4873 .RSs
4874 .IPs lgb=<0\-100>
4875 gaussian blur filter (luma)
4876 .IPs cgb=<0\-100>
4877 gaussian blur filter (chroma)
4878 .IPs ls=<\-100\-100>
4879 sharpen filter (luma)
4880 .IPs cs=<\-100\-100>
4881 sharpen filter (chroma)
4882 .IPs chs=<h>
4883 chroma horizontal shifting
4884 .IPs cvs=<v>
4885 chroma vertical shifting
4887 .PD 1
4890 .B \-stereo <mode>
4891 Select type of MP2/\:MP3 stereo output.
4892 .PD 0
4893 .RSs
4894 .IPs 0
4895 stereo
4896 .IPs 1
4897 left channel
4898 .IPs 2
4899 right channel
4901 .PD 1
4904 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4905 Specify the software scaler algorithm to be used with the \-zoom option.
4906 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4907 .sp 1
4908 Available types are:
4909 .sp 1
4910 .PD 0
4911 .RSs
4912 .IPs 0
4913 fast bilinear
4914 .IPs 1
4915 bilinear
4916 .IPs 2
4917 bicubic (good quality) (default)
4918 .IPs 3
4919 experimental
4920 .IPs 4
4921 nearest neighbor (bad quality)
4922 .IPs 5
4923 area
4924 .IPs 6
4925 luma bicubic / chroma bilinear
4926 .IPs 7
4927 gauss
4928 .IPs 8
4929 sincR
4930 .IPs 9
4931 lanczos
4932 .IPs 10
4933 natural bicubic spline
4935 .PD 1
4936 .sp 1
4938 .I NOTE:
4939 Some \-sws options are tunable.
4940 The description of the scale video filter has further information.
4944 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
4945 Specify a priority list of video codecs to be used, according to their codec
4946 name in codecs.conf.
4947 Use a '\-' before the codec name to omit it.
4948 Use a '+' before the codec name to force it, this will likely crash!
4949 If the list has a trailing ',' MPlayer will fall back on codecs not
4950 contained in the list.
4952 .I NOTE:
4953 See \-vc help for a full list of available codecs.
4954 .sp 1
4955 .I EXAMPLE:
4956 .PD 0
4957 .RSs
4958 .IPs "\-vc divx"
4959 Force Win32/\:VfW DivX codec, no fallback.
4960 .IPs "\-vc \-divxds,\-divx,"
4961 Skip Win32 DivX codecs.
4962 .IPs "\-vc ffmpeg12,mpeg12,"
4963 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
4965 .PD 1
4968 .B \-vfm <driver1,driver2,...>
4969 Specify a priority list of video codec families to be used, according
4970 to their names in codecs.conf.
4971 Falls back on the default codecs if none of the given codec families work.
4973 .I NOTE:
4974 See \-vfm help for a full list of available codec families.
4975 .sp 1
4976 .I EXAMPLE:
4977 .PD 0
4978 .RSs
4979 .IPs "\-vfm ffmpeg,dshow,vfw"
4980 Try the libavcodec, then Directshow, then VfW codecs and fall back
4981 on others, if they do not work.
4982 .IPs "\-vfm xanim"
4983 Try XAnim codecs first.
4985 .PD 1
4988 .B \-x <x> (also see \-zoom) (MPlayer only)
4989 Scale image to width <x> (if software/\:hardware scaling is available).
4990 Disables aspect calculations.
4993 .B \-xvidopts <option1:option2:...>
4994 Specify additional parameters when decoding with Xvid.
4996 .I NOTE:
4997 Since libavcodec is faster than Xvid you might want to use the libavcodec
4998 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
4999 .sp 1
5000 Xvid's internal postprocessing filters:
5001 .PD 0
5002 .RSs
5003 .IPs "deblock-chroma (also see \-vf pp)"
5004 chroma deblock filter
5005 .IPs "deblock-luma (also see \-vf pp)"
5006 luma deblock filter
5007 .IPs "dering-luma (also see \-vf pp)"
5008 luma deringing filter
5009 .IPs "dering-chroma (also see \-vf pp)"
5010 chroma deringing filter
5011 .IPs "filmeffect (also see \-vf noise)"
5012 Adds artificial film grain to the video.
5013 May increase perceived quality, while lowering true quality.
5015 .sp 1
5017 rendering methods:
5019 .PD 0
5020 .RSs
5021 .IPs "dr2\ \ "
5022 Activate direct rendering method 2.
5023 .IPs nodr2
5024 Deactivate direct rendering method 2.
5026 .PD 1
5029 .B \-xy <value> (also see \-zoom)
5030 .PD 0
5031 .RSs
5032 .IPs value<=8
5033 Scale image by factor <value>.
5034 .IPs value>8
5035 Set width to value and calculate height to keep correct aspect ratio.
5037 .PD 1
5040 .B \-y <y> (also see \-zoom) (MPlayer only)
5041 Scale image to height <y> (if software/\:hardware scaling is available).
5042 Disables aspect calculations.
5045 .B "\-zoom\ \ "
5046 Allow software scaling, where available.
5047 This will allow scaling with output drivers (like x11, fbdev) that
5048 do not support hardware scaling where MPlayer disables scaling by
5049 default for performance reasons.
5053 .SH "AUDIO FILTERS"
5054 Audio filters allow you to modify the audio stream and its properties.
5055 The syntax is:
5058 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
5059 Setup a chain of audio filters.
5061 .I NOTE:
5062 To get a full list of available audio filters, see \-af help.
5063 .sp 1
5064 Audio filters are managed in lists.
5065 There are a few commands to manage the filter list.
5068 .B \-af\-add <filter1[,filter2,...]>
5069 Appends the filters given as arguments to the filter list.
5072 .B \-af\-pre <filter1[,filter2,...]>
5073 Prepends the filters given as arguments to the filter list.
5076 .B \-af\-del <index1[,index2,...]>
5077 Deletes the filters at the given indexes.
5078 Index numbers start at 0, negative numbers address the end of the
5079 list (\-1 is the last).
5082 .B \-af\-clr
5083 Completely empties the filter list.
5085 Available filters are:
5088 .B resample[=srate[:sloppy[:type]]]
5089 Changes the sample rate of the audio stream.
5090 Can be used if you have a fixed frequency sound card or if you are
5091 stuck with an old sound card that is only capable of max 44.1kHz.
5092 This filter is automatically enabled if necessary.
5093 It only supports 16-bit integer and float in native-endian format as input.
5095 .I NOTE:
5096 With MEncoder, you need to also use \-srate <srate>.
5097 .PD 0
5098 .RSs
5099 .IPs <srate>
5100 output sample frequency in Hz.
5101 The valid range for this parameter is 8000 to 192000.
5102 If the input and output sample frequency are the same or if this
5103 parameter is omitted the filter is automatically unloaded.
5104 A high sample frequency normally improves the audio quality,
5105 especially when used in combination with other filters.
5106 .IPs <sloppy>
5107 Allow (1) or disallow (0) the output frequency to differ slightly
5108 from the frequency given by <srate> (default: 1).
5109 Can be used if the startup of the playback is extremely slow.
5110 .IPs <type>
5111 Select which resampling method to use.
5112 .RSss
5113 0: linear interpolation (fast, poor quality especially when upsampling)
5115 1: polyphase filterbank and integer processing
5117 2: polyphase filterbank and floating point processing (slow, best quality)
5118 .REss
5119 .PD 1
5121 .sp 1
5123 .I EXAMPLE:
5125 .PD 0
5126 .RSs
5127 .IPs "mplayer \-af resample=44100:0:0"
5128 would set the output frequency of the resample filter to 44100Hz using
5129 exact output frequency scaling and linear interpolation.
5131 .PD 1
5134 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
5135 Changes the sample rate of the audio stream to an integer <srate> in Hz.
5136 It only supports the 16-bit native-endian format.
5138 .I NOTE:
5139 With MEncoder, you need to also use \-srate <srate>.
5140 .PD 0
5141 .RSs
5142 .IPs <srate>
5143 the output sample rate
5144 .IPs <length>
5145 length of the filter with respect to the lower sampling rate (default: 16)
5146 .IPs <linear>
5147 if 1 then filters will be linearly interpolated between polyphase entries
5148 .IPs <count>
5149 log2 of the number of polyphase entries
5150 (..., 10->1024, 11->2048, 12->4096, ...)
5151 (default: 10->1024)
5152 .IPs <cutoff>
5153 cutoff frequency (0.0\-1.0), default set depending upon filter length
5155 .PD 1
5158 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
5159 Encode multi-channel audio to AC-3 at runtime using libavcodec.
5160 Supports 16-bit native-endian input format, maximum 6 channels.
5161 The output is big-endian when outputting a raw AC-3 stream,
5162 native-endian when outputting to S/PDIF.
5163 The output sample rate of this filter is same with the input sample rate.
5164 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
5165 Otherwise a resampling filter is auto-inserted before this filter to make
5166 the input and output sample rate be 48kHz.
5167 You need to specify '\-channels N' to make the decoder decode audio into
5168 N-channel, then the filter can encode the N-channel input to AC-3.
5170 .PD 0
5171 .RSs
5172 .IPs <tospdif>
5173 Output raw AC-3 stream if zero or not set,
5174 output to S/PDIF for passthrough when <tospdif> is set non-zero.
5175 .IPs <bitrate>
5176 The bitrate to encode the AC-3 stream.
5177 Set it to either 384 or 384000 to get 384kbits.
5178 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
5179               320, 384, 448, 512, 576, 640
5180 Default bitrate is based on the input channel number:
5181 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
5182 .IPs <minchn>
5183 If the input channel number is less than <minchn>, the filter will
5184 detach itself (default: 5).
5186 .PD 1
5189 .B sweep[=speed]
5190 Produces a sine sweep.
5191 .PD 0
5192 .RSs
5193 .IPs <0.0\-1.0>
5194 Sine function delta, use very low values to hear the sweep.
5196 .PD 1
5199 .B sinesuppress[=freq:decay]
5200 Remove a sine at the specified frequency.
5201 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
5202 It probably only works on mono input.
5203 .PD 0
5204 .RSs
5205 .IPs <freq>
5206 The frequency of the sine which should be removed (in Hz) (default: 50)
5207 .IPs <decay>
5208 Controls the adaptivity (a larger value will make the filter adapt to
5209 amplitude and phase changes quicker, a smaller value will make the
5210 adaptation slower) (default: 0.0001).
5211 Reasonable values are around 0.001.
5213 .PD 1
5216 .B bs2b[=option1:option2:...]
5217 Bauer stereophonic to binaural transformation using libbs2b.
5218 Improves the headphone listening experience by making the sound
5219 similar to that from loudspeakers, allowing each ear to hear both
5220 channels and taking into account the distance difference and the
5221 head shadowing effect.
5222 It is applicable only to 2 channel audio.
5223 .PD 0
5224 .RSs
5225 .IPs fcut=<300\-1000>
5226 Set cut frequency in Hz.
5227 .IPs feed=<10\-150>
5228 Set feed level for low frequencies in 0.1*dB.
5229 .IPs profile=<value>
5230 Several profiles are available for convenience:
5231 .PD 0
5232 .RSs
5233 .IPs default
5234 will be used if nothing else was specified (fcut=700, feed=45)
5235 .IPs "cmoy\ "
5236 Chu Moy circuit implementation (fcut=700, feed=60)
5237 .IPs jmeier
5238 Jan Meier circuit implementation (fcut=650, feed=95)
5241 .sp 1
5243 If fcut or feed options are specified together with a profile, they
5244 will be applied on top of the selected profile.
5246 .PD 1
5249 .B hrtf[=flag]
5250 Head-related transfer function: Converts multichannel audio to
5251 2 channel output for headphones, preserving the spatiality of the sound.
5252 .sp 1
5253 .PD 0
5255 .IPs "Flag  Meaning"
5256 .IPs "m     matrix decoding of the rear channel"
5257 .IPs "s     2-channel matrix decoding"
5258 .IPs "0     no matrix decoding (default)"
5260 .PD 1
5263 .B equalizer=[g1:g2:g3:...:g10]
5264 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
5265 This means that it works regardless of what type of audio is being played back.
5266 The center frequencies for the 10 bands are:
5267 .sp 1
5268 .PD 0
5270 .IPs "No. frequency"
5271 .IPs "0    31.25 Hz"
5272 .IPs "1    62.50 Hz"
5273 .IPs "2   125.00 Hz"
5274 .IPs "3   250.00 Hz"
5275 .IPs "4   500.00 Hz"
5276 .IPs "5    1.00 kHz"
5277 .IPs "6    2.00 kHz"
5278 .IPs "7    4.00 kHz"
5279 .IPs "8    8.00 kHz"
5280 .IPs "9   16.00 kHz"
5282 .PD 1
5283 .sp 1
5285 If the sample rate of the sound being played is lower than the center
5286 frequency for a frequency band, then that band will be disabled.
5287 A known bug with this filter is that the characteristics for the
5288 uppermost band are not completely symmetric if the sample
5289 rate is close to the center frequency of that band.
5290 This problem can be worked around by upsampling the sound
5291 using the resample filter before it reaches this filter.
5293 .PD 0
5294 .RSs
5295 .IPs <g1>:<g2>:<g3>:...:<g10>
5296 floating point numbers representing the gain in dB
5297 for each frequency band (\-12\-12)
5299 .sp 1
5301 .I EXAMPLE:
5303 .RSs
5304 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
5305 Would amplify the sound in the upper and lower frequency region
5306 while canceling it almost completely around 1kHz.
5308 .PD 1
5311 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
5312 Can be used for adding, removing, routing and copying audio channels.
5313 If only <nch> is given the default routing is used, it works as
5314 follows: If the number of output channels is bigger than the number of
5315 input channels empty channels are inserted (except mixing from mono to
5316 stereo, then the mono channel is repeated in both of the output
5317 channels).
5318 If the number of output channels is smaller than the number
5319 of input channels the exceeding channels are truncated.
5320 .PD 0
5321 .RSs
5322 .IPs <nch>
5323 number of output channels (1\-8)
5324 .IPs "<nr>\ "
5325 number of routes (1\-8)
5326 .IPs <from1:to1:from2:to2:from3:to3:...>
5327 Pairs of numbers between 0 and 7 that define where to route each channel.
5329 .sp 1
5331 .I EXAMPLE:
5333 .RSs
5334 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5335 Would change the number of channels to 4 and set up 4 routes that
5336 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5337 Observe that if media containing two channels was played back, channels
5338 2 and 3 would contain silence but 0 and 1 would still be swapped.
5339 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5340 Would change the number of channels to 6 and set up 4 routes
5341 that copy channel 0 to channels 0 to 3.
5342 Channel 4 and 5 will contain silence.
5344 .PD 1
5347 .B format[=format] (also see \-format)
5348 Convert between different sample formats.
5349 Automatically enabled when needed by the sound card or another filter.
5350 .PD 0
5351 .RSs
5352 .IPs <format>
5353 Sets the desired format.
5354 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5355 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5356 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5357 and 'ne' the endianness of the computer MPlayer is running on).
5358 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5359 Exceptions to this rule that are also valid format specifiers: u8, s8,
5360 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5362 .PD 1
5365 .B volume[=v[:sc]]
5366 Implements software volume control.
5367 Use this filter with caution since it can reduce the signal
5368 to noise ratio of the sound.
5369 In most cases it is best to set the level for the PCM sound to max,
5370 leave this filter out and control the output level to your
5371 speakers with the master volume control of the mixer.
5372 In case your sound card has a digital PCM mixer instead of an analog
5373 one, and you hear distortion, use the MASTER mixer instead.
5374 If there is an external amplifier connected to the computer (this
5375 is almost always the case), the noise level can be minimized by
5376 adjusting the master level and the volume knob on the amplifier
5377 until the hissing noise in the background is gone.
5379 This filter has a second feature: It measures the overall maximum
5380 sound level and prints out that level when MPlayer exits.
5381 This volume estimate can be used for setting the sound level in
5382 MEncoder such that the maximum dynamic range is utilized.
5384 .I NOTE:
5385 This filter is not reentrant and can therefore only be enabled
5386 once for every audio stream.
5387 .PD 0
5388 .RSs
5389 .IPs "<v>\ \ "
5390 Sets the desired gain in dB for all channels in the stream
5391 from \-200dB to +60dB, where \-200dB mutes the sound
5392 completely and +60dB equals a gain of 1000 (default: 0).
5393 .IPs "<sc>\ "
5394 Turns soft clipping on (1) or off (0).
5395 Soft-clipping can make the sound more smooth if very
5396 high volume levels are used.
5397 Enable this option if the dynamic range of the
5398 loudspeakers is very low.
5400 .I WARNING:
5401 This feature creates distortion and should be considered a last resort.
5403 .sp 1
5405 .I EXAMPLE:
5407 .RSs
5408 .IPs "mplayer \-af volume=10.1:0 media.avi"
5409 Would amplify the sound by 10.1dB and hard-clip if the
5410 sound level is too high.
5412 .PD 1
5415 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5416 Mixes channels arbitrarily.
5417 Basically a combination of the volume and the channels filter
5418 that can be used to down-mix many channels to only a few,
5419 e.g.\& stereo to mono or vary the "width" of the center
5420 speaker in a surround sound system.
5421 This filter is hard to use, and will require some tinkering
5422 before the desired result is obtained.
5423 The number of options for this filter depends on
5424 the number of output channels.
5425 An example how to downmix a six-channel file to two channels with
5426 this filter can be found in the examples section near the end.
5427 .PD 0
5428 .RSs
5429 .IPs "<n>\ \ "
5430 number of output channels (1\-8)
5431 .IPs <Lij>
5432 How much of input channel i is mixed into output channel j (0\-1).
5433 So in principle you first have n numbers saying what to do with the
5434 first input channel, then n numbers that act on the second input channel
5435 etc.
5436 If you do not specify any numbers for some input channels, 0 is assumed.
5438 .sp 1
5440 .I EXAMPLE:
5442 .RSs
5443 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5444 Would down-mix from stereo to mono.
5445 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5446 Would give 3 channel output leaving channels 0 and 1 intact,
5447 and mix channels 0 and 1 into output channel 2 (which could
5448 be sent to a subwoofer for example).
5450 .PD 1
5453 .B sub[=fc:ch]
5454 Adds a subwoofer channel to the audio stream.
5455 The audio data used for creating the subwoofer channel is
5456 an average of the sound in channel 0 and channel 1.
5457 The resulting sound is then low-pass filtered by a 4th order
5458 Butterworth filter with a default cutoff frequency of 60Hz
5459 and added to a separate channel in the audio stream.
5461 .I Warning:
5462 Disable this filter when you are playing DVDs with Dolby
5463 Digital 5.1 sound, otherwise this filter will disrupt
5464 the sound to the subwoofer.
5465 .PD 0
5466 .RSs
5467 .IPs "<fc>\ "
5468 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5469 For the best result try setting the cutoff frequency as low as possible.
5470 This will improve the stereo or surround sound experience.
5471 .IPs "<ch>\ "
5472 Determines the channel number in which to insert the sub-channel audio.
5473 Channel number can be between 0 and 7 (default: 5).
5474 Observe that the number of channels will automatically
5475 be increased to <ch> if necessary.
5477 .sp 1
5479 .I EXAMPLE:
5481 .RSs
5482 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5483 Would add a sub-woofer channel with a cutoff frequency of
5484 100Hz to output channel 4.
5486 .PD 1
5489 .B "center\ "
5490 Creates a center channel from the front channels.
5491 May currently be low quality as it does not implement a
5492 high-pass filter for proper extraction yet, but averages and
5493 halves the channels instead.
5494 .PD 0
5495 .RSs
5496 .IPs "<ch>\ "
5497 Determines the channel number in which to insert the center channel.
5498 Channel number can be between 0 and 7 (default: 5).
5499 Observe that the number of channels will automatically
5500 be increased to <ch> if necessary.
5502 .PD 1
5505 .B surround[=delay]
5506 Decoder for matrix encoded surround sound like Dolby Surround.
5507 Many files with 2 channel audio actually contain matrixed surround sound.
5508 Requires a sound card supporting at least 4 channels.
5509 .PD 0
5510 .RSs
5511 .IPs <delay>
5512 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5513 This delay should be set as follows: If d1 is the distance
5514 from the listening position to the front speakers and d2 is the distance
5515 from the listening position to the rear speakers, then the delay should
5516 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5518 .sp 1
5520 .I EXAMPLE:
5522 .RSs
5523 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5524 Would add surround sound decoding with 15ms delay for the sound to the
5525 rear speakers.
5527 .PD 1
5530 .B delay[=ch1:ch2:...]
5531 Delays the sound to the loudspeakers such that the sound from the
5532 different channels arrives at the listening position simultaneously.
5533 It is only useful if you have more than 2 loudspeakers.
5534 .PD 0
5535 .RSs
5536 .IPs ch1,ch2,...
5537 The delay in ms that should be imposed on each channel
5538 (floating point number between 0 and 1000).
5540 .PD 1
5541 .sp 1
5543 To calculate the required delay for the different channels do as follows:
5544 .IP 1. 3
5545 Measure the distance to the loudspeakers in meters in relation
5546 to your listening position, giving you the distances s1 to s5
5547 (for a 5.1 system).
5548 There is no point in compensating for the subwoofer (you will not hear the
5549 difference anyway).
5550 .IP 2. 3
5551 Subtract the distances s1 to s5 from the maximum distance,
5552 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5553 .IP 3.
5554 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5556 .PD 0
5557 .sp 1
5559 .I EXAMPLE:
5561 .RSs
5562 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5563 Would delay front left and right by 10.5ms, the two rear channels
5564 and the sub by 0ms and the center channel by 7ms.
5566 .PD 1
5569 .B export[=mmapped_file[:nsamples]]
5570 Exports the incoming signal to other processes using memory mapping (mmap()).
5571 Memory mapped areas contain a header:
5572 .sp 1
5574 int nch                      /*number of channels*/
5575 int size                     /*buffer size*/
5576 unsigned long long counter   /*Used to keep sync, updated every
5577                                time new data is exported.*/
5579 .sp 1
5580 The rest is payload (non-interleaved) 16 bit data.
5581 .PD 0
5582 .RSs
5583 .IPs <mmapped_file>
5584 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5585 .IPs <nsamples>
5586 number of samples per channel (default: 512)
5588 .sp 1
5590 .I EXAMPLE:
5592 .RSs
5593 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5594 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5596 .PD 1
5599 .B extrastereo[=mul]
5600 (Linearly) increases the difference between left and right channels
5601 which adds some sort of "live" effect to playback.
5602 .PD 0
5603 .RSs
5604 .IPs <mul>
5605 Sets the difference coefficient (default: 2.5).
5606 0.0 means mono sound (average of both channels), with 1.0 sound will be
5607 unchanged, with \-1.0 left and right channels will be swapped.
5609 .PD 1
5612 .B volnorm[=method:target]
5613 Maximizes the volume without distorting the sound.
5614 .PD 0
5615 .RSs
5616 .IPs <method>
5617 Sets the used method.
5618 .RSss
5619 1: Use a single sample to smooth the variations via the standard
5620 weighted mean over past samples (default).
5622 2: Use several samples to smooth the variations via the standard
5623 weighted mean over past samples.
5624 .REss
5625 .IPs <target>
5626 Sets the target amplitude as a fraction of the maximum for the
5627 sample type (default: 0.25).
5629 .PD 1
5632 .B ladspa=file:label[:controls...]
5633 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5634 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5635 .PD 0
5636 .RSs
5637 .IPs <file>
5638 Specifies the LADSPA plugin library file.
5639 If LADSPA_PATH is set, it searches for the specified file.
5640 If it is not set, you must supply a fully specified pathname.
5641 .IPs <label>
5642 Specifies the filter within the library.
5643 Some libraries contain only one filter, but others contain many of them.
5644 Entering 'help' here, will list all available filters within the specified
5645 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5646 .IPs <controls>
5647 Controls are zero or more floating point values that determine the
5648 behavior of the loaded plugin (for example delay, threshold or gain).
5649 In verbose mode (add \-v to the MPlayer command line), all available controls
5650 and their valid ranges are printed.
5651 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5653 .PD 1
5656 .B "comp\ \ \ "
5657 Compressor/expander filter usable for microphone input.
5658 Prevents artifacts on very loud sound and raises the volume on
5659 very low sound.
5660 This filter is untested, maybe even unusable.
5663 .B "gate\ \ \ "
5664 Noise gate filter similar to the comp audio filter.
5665 This filter is untested, maybe even unusable.
5668 .B karaoke
5669 Simple voice removal filter exploiting the fact that voice is
5670 usually recorded with mono gear and later 'center' mixed onto
5671 the final audio stream.
5672 Beware that this filter will turn your signal into mono.
5673 Works well for 2 channel tracks; do not bother trying it
5674 on anything but 2 channel stereo.
5677 .B scaletempo[=option1:option2:...]
5678 Scales audio tempo without altering pitch, optionally synced to playback
5679 speed (default).
5681 This works by playing \'stride\' ms of audio at normal speed then
5682 consuming \'stride*scale\' ms of input audio.
5683 It pieces the strides together by blending \'overlap\'% of stride with
5684 audio following the previous stride.
5685 It optionally performs a short statistical analysis on the next \'search\'
5686 ms of audio to determine the best overlap position.
5687 .PD 0
5688 .RSs
5689 .IPs scale=<amount>
5690 Nominal amount to scale tempo.
5691 Scales this amount in addition to speed.
5692 (default: 1.0)
5693 .IPs stride=<amount>
5694 Length in milliseconds to output each stride.
5695 Too high of value will cause noticable skips at high scale amounts and
5696 an echo at low scale amounts.
5697 Very low values will alter pitch.
5698 Increasing improves performance.
5699 (default: 60)
5700 .IPs overlap=<percent>
5701 Percentage of stride to overlap.
5702 Decreasing improves performance.
5703 (default: .20)
5704 .IPs search=<amount>
5705 Length in milliseconds to search for best overlap position.
5706 Decreasing improves performance greatly.
5707 On slow systems, you will probably want to set this very low.
5708 (default: 14)
5709 .IPs speed=<tempo|pitch|both|none>
5710 Set response to speed change.
5711 .RSss
5712 .IPs tempo
5713 Scale tempo in sync with speed (default).
5714 .IPs pitch
5715 Reverses effect of filter.
5716 Scales pitch without altering tempo.
5717 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5718 to your input.conf to step by musical semi-tones.
5719 .I WARNING:
5720 Loses sync with video.
5721 .IPs both
5722 Scale both tempo and pitch.
5723 .IPs none
5724 Ignore speed changes.
5727 .sp 1
5729 .I EXAMPLE:
5731 .RSs
5732 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5733 Would playback media at 1.2x normal speed, with audio at normal pitch.
5734 Changing playback speed, would change audio tempo to match.
5735 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5736 Would playback media at 1.2x normal speed, with audio at normal pitch,
5737 but changing playback speed has no effect on audio tempo.
5738 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5739 Would tweak the quality and performace parameters.
5740 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5741 Would make scaletempo use float code.
5742 Maybe faster on some platforms.
5743 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5744 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5745 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5747 .PD 1
5750 .B "stats\ \ "
5751 Collects and prints statistics about the audio stream, especially the volume.
5752 These statistics are especially intended to help adjusting the volume while
5753 avoiding clipping.
5754 The volumes are printed in dB and compatible with the volume audio filter.
5758 .SH "VIDEO FILTERS"
5759 Video filters allow you to modify the video stream and its properties.
5760 The syntax is:
5763 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5764 Setup a chain of video filters.
5766 Many parameters are optional and set to default values if omitted.
5767 To explicitly use a default value set a parameter to '\-1'.
5768 Parameters w:h means width x height in pixels, x:y means x;y position counted
5769 from the upper left corner of the bigger image.
5771 .I NOTE:
5772 To get a full list of available video filters, see \-vf help.
5773 .sp 1
5774 Video filters are managed in lists.
5775 There are a few commands to manage the filter list.
5778 .B \-vf\-add <filter1[,filter2,...]>
5779 Appends the filters given as arguments to the filter list.
5782 .B \-vf\-pre <filter1[,filter2,...]>
5783 Prepends the filters given as arguments to the filter list.
5786 .B \-vf\-del <index1[,index2,...]>
5787 Deletes the filters at the given indexes.
5788 Index numbers start at 0, negative numbers address the end of the
5789 list (\-1 is the last).
5792 .B \-vf\-clr
5793 Completely empties the filter list.
5795 With filters that support it, you can access parameters by their name.
5798 .B \-vf <filter>=help
5799 Prints the parameter names and parameter value ranges for a particular
5800 filter.
5803 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5804 Sets a named parameter to the given value.
5805 Use on and off or yes and no to set flag parameters.
5807 Available filters are:
5810 .B crop[=w:h:x:y]
5811 Crops the given part of the image and discards the rest.
5812 Useful to remove black bands from widescreen movies.
5813 .PD 0
5814 .RSs
5815 .IPs <w>,<h>
5816 Cropped width and height, defaults to original width and height.
5817 .IPs <x>,<y>
5818 Position of the cropped picture, defaults to center.
5820 .PD 1
5823 .B cropdetect[=limit:round[:reset]]
5824 Calculates necessary cropping parameters and prints the recommended parameters
5825 to stdout.
5826 .PD 0
5827 .RSs
5828 .IPs <limit>
5829 Threshold, which can be optionally specified from nothing (0) to
5830 everything (255) (default: 24).
5832 .IPs <round>
5833 Value which the width/\:height should be divisible by (default: 16).
5834 The offset is automatically adjusted to center the video.
5835 Use 2 to get only even dimensions (needed for 4:2:2 video).
5836 16 is best when encoding to most video codecs.
5838 .IPs <reset>
5839 Counter that determines after how many frames cropdetect will reset the
5840 previously detected largest video area and start over to detect the current
5841 optimal crop area (default: 0).
5842 This can be useful when channel logos distort the video area.
5843 0 indicates never reset and return the largest area encountered during playback.
5845 .PD 1
5848 .B rectangle[=w:h:x:y]
5849 Draws a rectangle of the requested width and height at the specified
5850 coordinates over the image and prints current rectangle parameters
5851 to the console.
5852 This can be used to find optimal cropping parameters.
5853 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5854 you can move and resize the rectangle on the fly.
5855 .PD 0
5856 .RSs
5857 .IPs <w>,<h>
5858 width and height (default: \-1, maximum possible width where boundaries
5859 are still visible.)
5860 .IPs <x>,<y>
5861 top left corner position (default: \-1, uppermost leftmost)
5863 .PD 1
5866 .B expand[=w:h:x:y:o:a:r]
5867 Expands (not scales) movie resolution to the given value and places the
5868 unscaled original at coordinates x, y.
5869 Can be used for placing subtitles/\:OSD in the resulting black bands.
5870 .RSs
5871 .IPs <w>,<h>
5872 Expanded width,height (default: original width,height).
5873 Negative values for w and h are treated as offsets to the original size.
5874 .sp 1
5875 .I EXAMPLE:
5876 .PD 0
5877 .RSs
5878 .IP expand=0:\-50:0:0
5879 Adds a 50 pixel border to the bottom of the picture.
5881 .PD 1
5882 .IPs <x>,<y>
5883 position of original image on the expanded image (default: center)
5884 .IPs "<o>\ \ "
5885 OSD/\:subtitle rendering
5886 .RSss
5887 0: disable (default)
5889 1: enable
5890 .REss
5891 .IPs "<a>\ \ "
5892 Expands to fit an aspect instead of a resolution (default: 0).
5893 .sp 1
5894 .I EXAMPLE:
5895 .PD 0
5896 .RSs
5897 .IP expand=800:::::4/3
5898 Expands to 800x600, unless the source is higher resolution, in which
5899 case it expands to fill a 4/3 aspect.
5901 .PD 1
5902 .IPs "<r>\ \ "
5903 Rounds up to make both width and height divisible by <r> (default: 1).
5907 .B flip (also see \-flip)
5908 Flips the image upside down.
5911 .B "mirror\ "
5912 Mirrors the image on the Y axis.
5915 .B rotate[=<0\-7>]
5916 Rotates the image by 90 degrees and optionally flips it.
5917 For values between 4\-7 rotation is only done if the movie geometry is
5918 portrait and not landscape.
5919 .RSs
5920 .IPs 0
5921 Rotate by 90 degrees clockwise and flip (default).
5922 .IPs 1
5923 Rotate by 90 degrees clockwise.
5924 .IPs 2
5925 Rotate by 90 degrees counterclockwise.
5926 .IPs 3
5927 Rotate by 90 degrees counterclockwise and flip.
5931 .B scale[=w:h[:interlaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5932 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5933 colorspace conversion (also see \-sws).
5934 .RSs
5935 .IPs <w>,<h>
5936 scaled width/\:height (default: original width/\:height)
5938 .I NOTE:
5939 If \-zoom is used, and underlying filters (including libvo) are
5940 incapable of scaling, it defaults to d_width/\:d_height!
5941 .RSss
5942  0:   scaled d_width/\:d_height
5944 \-1:   original width/\:height
5946 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
5948 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
5950 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
5951 .REss
5952 .IPs <interlaced>
5953 Toggle interlaced scaling.
5954 .RSss
5955 0: off (default)
5957 1: on
5958 .REss
5959 .IPs <chr_drop>
5960 chroma skipping
5961 .RSss
5962 0: Use all available input lines for chroma.
5964 1: Use only every 2. input line for chroma.
5966 2: Use only every 4. input line for chroma.
5968 3: Use only every 8. input line for chroma.
5969 .REss
5970 .IPs "<par>[:<par2>] (also see \-sws)"
5971 Set some scaling parameters depending on the type of scaler selected
5972 with \-sws.
5973 .RSss
5974 \-sws 2 (bicubic):  B (blurring) and C (ringing)
5976 0.00:0.60 default
5978 0.00:0.75 VirtualDub's "precise bicubic"
5980 0.00:0.50 Catmull-Rom spline
5982 0.33:0.33 Mitchell-Netravali spline
5984 1.00:0.00 cubic B-spline
5986 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
5988 \-sws 9 (lanczos):  filter length (1\-10)
5989 .REss
5990 .IPs <presize>
5991 Scale to preset sizes.
5992 .RSss
5993 qntsc:   352x240 (NTSC quarter screen)
5995 qpal:    352x288 (PAL quarter screen)
5997 ntsc:    720x480 (standard NTSC)
5999 pal:     720x576 (standard PAL)
6001 sntsc:   640x480 (square pixel NTSC)
6003 spal:    768x576 (square pixel PAL)
6004 .REss
6005 .IPs <noup>
6006 Disallow upscaling past the original dimensions.
6007 .RSss
6008 0: Allow upscaling (default).
6010 1: Disallow upscaling if one dimension exceeds its original value.
6012 2: Disallow upscaling if both dimensions exceed their original values.
6013 .REss
6014 .IPs <arnd>
6015 Accurate rounding for the vertical scaler, which may be faster
6016 or slower than the default rounding.
6017 .RSss
6018 0: Disable accurate rounding (default).
6020 1: Enable accurate rounding.
6021 .REss
6025 .B dsize[=aspect|w:h:aspect-method:r]
6026 Changes the intended display size/\:aspect at an arbitrary point in the
6027 filter chain.
6028 Aspect can be given as a fraction (4/3) or floating point number
6029 (1.33).
6030 Alternatively, you may specify the exact display width and height
6031 desired.
6032 Note that this filter does
6033 .B not
6034 do any scaling itself; it just affects
6035 what later scalers (software or hardware) will do when auto-scaling to
6036 correct aspect.
6037 .RSs
6038 .IPs <w>,<h>
6039 New display width and height.
6040 Can also be these special values:
6041 .RSss
6042  0:   original display width and height
6044 \-1:   original video width and height (default)
6046 \-2:   Calculate w/h using the other dimension and the original display
6047 aspect ratio.
6049 \-3:   Calculate w/h using the other dimension and the original video
6050 aspect ratio.
6051 .REss
6052 .sp 1
6053 .I EXAMPLE:
6054 .PD 0
6055 .RSs
6056 .IP dsize=800:\-2
6057 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
6058 800x450 for a 16/9 aspect video.
6060 .IPs <aspect-method>
6061 Modifies width and height according to original aspect ratios.
6062 .RSss
6063 \-1: Ignore original aspect ratio (default).
6065  0: Keep display aspect ratio by using <w> and <h> as maximum
6066 resolution.
6068  1: Keep display aspect ratio by using <w> and <h> as minimum
6069 resolution.
6071  2: Keep video aspect ratio by using <w> and <h> as maximum
6072 resolution.
6074  3: Keep video aspect ratio by using <w> and <h> as minimum
6075 resolution.
6076 .REss
6077 .sp 1
6078 .I EXAMPLE:
6079 .PD 0
6080 .RSs
6081 .IP dsize=800:600:0
6082 Specifies a display resolution of at most 800x600, or smaller, in order
6083 to keep aspect.
6085 .PD 1
6086 .IPs "<r>\ \ "
6087 Rounds up to make both width and height divisible by <r> (default: 1).
6091 .B "yvu9\ \ \ "
6092 Forces software YVU9 to YV12 colorspace conversion.
6093 Deprecated in favor of the software scaler.
6096 .B "yuvcsp\ "
6097 Clamps YUV color values to the CCIR 601 range without doing real conversion.
6100 .B palette
6101 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
6104 .B format[=fourcc[:outfourcc]]
6105 Restricts the colorspace for the next filter without doing any conversion.
6106 Use together with the scale filter for a real conversion.
6108 .I NOTE:
6109 For a list of available formats see format=fmt=help.
6110 .PD 0
6111 .RSs
6112 .IPs <fourcc>
6113 format name like rgb15, bgr24, yv12, etc (default: yuy2)
6114 .IPs <outfourcc>
6115 Format name that should be substituted for the output.
6116 If this is not 100% compatible with the <fourcc> value it will crash.
6118 Valid examples:
6120 format=rgb24:bgr24 format=yuyv:yuy2
6122 Invalid examples (will crash):
6124 format=rgb24:yv12
6126 .PD 1
6129 .B noformat[=fourcc]
6130 Restricts the colorspace for the next filter without doing any conversion.
6131 Unlike the format filter, this will allow any colorspace
6132 .B except
6133 the one you specify.
6135 .I NOTE:
6136 For a list of available formats see noformat=fmt=help.
6137 .PD 0
6138 .RSs
6139 .IPs <fourcc>
6140 format name like rgb15, bgr24, yv12, etc (default: yv12)
6142 .PD 1
6145 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
6146 Enables the specified chain of postprocessing subfilters.
6147 Subfilters must be separated by '/' and can be disabled by
6148 prepending a '\-'.
6149 Each subfilter and some options have a short and a long name that can be
6150 used interchangeably, i.e.\& dr/dering are the same.
6151 All subfilters share common options to determine their scope:
6152 .PD 0
6153 .RSs
6154 .IPs a/autoq
6155 Automatically switch the subfilter off if the CPU is too slow.
6156 .IPs c/chrom
6157 Do chrominance filtering, too (default).
6158 .IPs y/nochrom
6159 Do luminance filtering only (no chrominance).
6160 .IPs n/noluma
6161 Do chrominance filtering only (no luminance).
6163 .PD 1
6164 .sp 1
6167 .I NOTE:
6168 \-pphelp shows a list of available subfilters.
6169 .sp 1
6170 Available subfilters are
6172 .RSs
6173 .IPs hb/hdeblock[:difference[:flatness]]
6174 horizontal deblocking filter
6175 .RSss
6176 <difference>: Difference factor where higher values mean
6177 more deblocking (default: 32).
6179 <flatness>: Flatness threshold where lower values mean
6180 more deblocking (default: 39).
6181 .REss
6182 .IPs vb/vdeblock[:difference[:flatness]]
6183 vertical deblocking filter
6184 .RSss
6185 <difference>: Difference factor where higher values mean
6186 more deblocking (default: 32).
6188 <flatness>: Flatness threshold where lower values mean
6189 more deblocking (default: 39).
6190 .REss
6191 .IPs ha/hadeblock[:difference[:flatness]]
6192 accurate horizontal deblocking filter
6193 .RSss
6194 <difference>: Difference factor where higher values mean
6195 more deblocking (default: 32).
6197 <flatness>: Flatness threshold where lower values mean
6198 more deblocking (default: 39).
6199 .REss
6200 .IPs va/vadeblock[:difference[:flatness]]
6201 accurate vertical deblocking filter
6202 .RSss
6203 <difference>: Difference factor where higher values mean
6204 more deblocking (default: 32).
6206 <flatness>: Flatness threshold where lower values mean
6207 more deblocking (default: 39).
6208 .REss
6209 .sp 1
6210 The horizontal and vertical deblocking filters share the
6211 difference and flatness values so you cannot set
6212 different horizontal and vertical thresholds.
6213 .sp 1
6214 .IPs h1/x1hdeblock
6215 experimental horizontal deblocking filter
6216 .IPs v1/x1vdeblock
6217 experimental vertical deblocking filter
6218 .IPs dr/dering
6219 deringing filter
6220 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
6221 temporal noise reducer
6222 .RSss
6223 <threshold1>: larger -> stronger filtering
6225 <threshold2>: larger -> stronger filtering
6227 <threshold3>: larger -> stronger filtering
6228 .REss
6229 .IPs al/autolevels[:f/fullyrange]
6230 automatic brightness / contrast correction
6231 .RSss
6232 f/fullyrange: Stretch luminance to (0\-255).
6233 .REss
6234 .IPs lb/linblenddeint
6235 Linear blend deinterlacing filter that deinterlaces the given block
6236 by filtering all lines with a (1 2 1) filter.
6237 .IPs li/linipoldeint
6238 Linear interpolating deinterlacing filter that deinterlaces the given block
6239 by linearly interpolating every second line.
6240 .IPs ci/cubicipoldeint
6241 Cubic interpolating deinterlacing filter deinterlaces the given block
6242 by cubically interpolating every second line.
6243 .IPs md/mediandeint
6244 Median deinterlacing filter that deinterlaces the given block
6245 by applying a median filter to every second line.
6246 .IPs fd/ffmpegdeint
6247 FFmpeg deinterlacing filter that deinterlaces the given block
6248 by filtering every second line with a (\-1 4 2 4 \-1) filter.
6249 .IPs l5/lowpass5
6250 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
6251 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
6252 .IPs fq/forceQuant[:quantizer]
6253 Overrides the quantizer table from the input with the constant
6254 quantizer you specify.
6255 .RSss
6256 <quantizer>: quantizer to use
6257 .REss
6258 .IPs de/default
6259 default pp filter combination (hb:a,vb:a,dr:a)
6260 .IPs fa/fast
6261 fast pp filter combination (h1:a,v1:a,dr:a)
6262 .IPs "ac\ \ \ "
6263 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
6266 .sp 1
6267 .I EXAMPLE:
6269 .PD 0
6270 .RSs
6271 .IPs "\-vf pp=hb/vb/dr/al"
6272 horizontal and vertical deblocking, deringing and automatic
6273 brightness/\:contrast
6274 .IPs "\-vf pp=de/\-al"
6275 default filters without brightness/\:contrast correction
6276 .IPs "\-vf pp=default/tmpnoise:1:2:3"
6277 Enable default filters & temporal denoiser.
6278 .IPs "\-vf pp=hb:y/vb:a"
6279 Horizontal deblocking on luminance only, and switch vertical deblocking
6280 on or off automatically depending on available CPU time.
6282 .PD 1
6285 .B spp[=quality[:qp[:mode]]]
6286 Simple postprocessing filter that compresses and decompresses the
6287 image at several (or \- in the case of quality level 6 \- all)
6288 shifts and averages the results.
6289 .RSs
6290 .IPs <quality>
6291 0\-6 (default: 3)
6292 .IPs "<qp>\ "
6293 Force quantization parameter (default: 0, use QP from video).
6294 .IPs <mode>
6295 0: hard thresholding (default)
6297 1: soft thresholding (better deringing, but blurrier)
6299 4: like 0, but also use B-frames' QP (may cause flicker)
6301 5: like 1, but also use B-frames' QP (may cause flicker)
6305 .B uspp[=quality[:qp]]
6306 Ultra simple & slow postprocessing filter that compresses and
6307 decompresses the image at several (or \- in the case of quality
6308 level 8 \- all) shifts and averages the results.
6309 The way this differs from the behavior of spp is that uspp actually
6310 encodes & decodes each case with libavcodec Snow, whereas spp uses
6311 a simplified intra only 8x8 DCT similar to MJPEG.
6312 .RSs
6313 .IPs <quality>
6314 0\-8 (default: 3)
6315 .IPs "<qp>\ "
6316 Force quantization parameter (default: 0, use QP from video).
6320 .B fspp[=quality[:qp[:strength[:bframes]]]]
6321 faster version of the simple postprocessing filter
6322 .RSs
6323 .IPs <quality>
6324 4\-5 (equivalent to spp; default: 4)
6325 .IPs "<qp>\ "
6326 Force quantization parameter (default: 0, use QP from video).
6327 .IPs <\-15\-32>
6328 Filter strength, lower values mean more details but also more artifacts,
6329 while higher values make the image smoother but also blurrier (default:
6330 0 \- PSNR optimal).
6331 .IPs <bframes>
6332 0: do not use QP from B-frames (default)
6334 1: use QP from B-frames too (may cause flicker)
6338 .B pp7[=qp[:mode]]
6339 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6340 only the center sample is used after IDCT.
6341 .RSs
6342 .IPs "<qp>\ "
6343 Force quantization parameter (default: 0, use QP from video).
6344 .IPs <mode>
6345 0: hard thresholding
6347 1: soft thresholding (better deringing, but blurrier)
6349 2: medium thresholding (default, good results)
6353 .B qp=equation
6354 quantization parameter (QP) change filter
6355 .RSs
6356 .IPs <equation>
6357 some equation like "2+2*sin(PI*qp)"
6361 .B geq=equation
6362 generic equation change filter
6363 .RSs
6364 .IPs <equation>
6365 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6366 You can use whitespace to make the equation more readable.
6367 There are a couple of constants that can be used in the equation:
6368 .RSss
6369 PI: the number pi
6371 E: the number e
6373 X / Y: the coordinates of the current sample
6375 W / H: width and height of the image
6377 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6378 1,1 and 0.5,0.5 for YUV 4:2:0.
6380 p(x,y): returns the value of the pixel at location x/y of the current plane.
6381 .REss
6385 .B "test\ \ \ "
6386 Generate various test patterns.
6389 .B rgbtest[=width:height]
6390 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6391 You should see a red, green and blue stripe from top to bottom.
6392 .RSs
6393 .IPs <width>
6394 Desired width of generated image (default: 0).
6395 0 means width of input image.
6397 .IPs <height>
6398 Desired height of generated image (default: 0).
6399 0 means height of input image.
6403 .B lavc[=quality:fps]
6404 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6405 .RSs
6406 .IPs <quality>
6407 1\-31: fixed qscale
6409 32\-:  fixed bitrate in kbits
6410 .IPs <fps>
6411 force output fps (float value) (default: 0, autodetect based on height)
6415 .B dvbscale[=aspect]
6416 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6417 calculating the y axis scaling in software to keep aspect.
6418 Only useful together with expand and scale.
6419 .RSs
6420 .IPs <aspect>
6421 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6422 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6424 .sp 1
6426 .I EXAMPLE:
6428 .PD 0
6429 .RSs
6430 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6431 FIXME: Explain what this does.
6433 .PD 1
6436 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6437 Adds noise.
6438 .PD 0
6439 .RSs
6440 .IPs <0\-100>
6441 luma noise
6442 .IPs <0\-100>
6443 chroma noise
6444 .IPs u
6445 uniform noise (gaussian otherwise)
6446 .IPs t
6447 temporal noise (noise pattern changes between frames)
6448 .IPs a
6449 averaged temporal noise (smoother, but a lot slower)
6450 .IPs h
6451 high quality (slightly better looking, slightly slower)
6452 .IPs p
6453 mix random noise with a (semi)regular pattern
6455 .PD 1
6458 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6459 This filter aims to reduce image noise producing smooth images and making still
6460 images really still (This should enhance compressibility.).
6461 .PD 0
6462 .RSs
6463 .IPs <luma_spatial>
6464 spatial luma strength (default: 4)
6465 .IPs <chroma_spatial>
6466 spatial chroma strength (default: 3)
6467 .IPs <luma_tmp>
6468 luma temporal strength (default: 6)
6469 .IPs <chroma_tmp>
6470 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6472 .PD 1
6475 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6476 High precision/\:quality version of the denoise3d filter.
6477 Parameters and usage are the same.
6480 .B ow[=depth[:luma_strength[:chroma_strength]]]
6481 Overcomplete Wavelet denoiser.
6482 .PD 0
6483 .RSs
6484 .IPs <depth>
6485 Larger depth values will denoise lower frequency components more, but
6486 slow down filtering (default: 8).
6487 .IPs <luma_strength>
6488 luma strength (default: 1.0)
6489 .IPs <chroma_strength>
6490 chroma strength (default: 1.0)
6492 .PD 1
6495 .B eq[=brightness:contrast] (OBSOLETE)
6496 Software equalizer with interactive controls just like the hardware
6497 equalizer, for cards/\:drivers that do not support brightness and
6498 contrast controls in hardware.
6499 Might also be useful with MEncoder, either for fixing poorly captured
6500 movies, or for slightly reducing contrast to mask artifacts and get by
6501 with lower bitrates.
6502 .PD 0
6503 .RSs
6504 .IPs <\-100\-100>
6505 initial brightness
6506 .IPs <\-100\-100>
6507 initial contrast
6509 .PD 1
6512 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6513 Alternative software equalizer that uses lookup tables (very slow),
6514 allowing gamma correction in addition to simple brightness
6515 and contrast adjustment.
6516 Note that it uses the same MMX optimized code as \-vf eq if all
6517 gamma values are 1.0.
6518 The parameters are given as floating point values.
6519 .PD 0
6520 .RSs
6521 .IPs <0.1\-10>
6522 initial gamma value (default: 1.0)
6523 .IPs <\-2\-2>
6524 initial contrast, where negative values result in a
6525 negative image (default: 1.0)
6526 .IPs <\-1\-1>
6527 initial brightness (default: 0.0)
6528 .IPs <0\-3>
6529 initial saturation (default: 1.0)
6530 .IPs <0.1\-10>
6531 gamma value for the red component (default: 1.0)
6532 .IPs <0.1\-10>
6533 gamma value for the green component (default: 1.0)
6534 .IPs <0.1\-10>
6535 gamma value for the blue component (default: 1.0)
6536 .IPs <0\-1>
6537 The weight parameter can be used to reduce the effect of a high gamma value on
6538 bright image areas, e.g.\& keep them from getting overamplified and just plain
6539 white.
6540 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6541 at its full strength (default: 1.0).
6543 .PD 1
6546 .B hue[=hue:saturation]
6547 Software equalizer with interactive controls just like the hardware
6548 equalizer, for cards/\:drivers that do not support hue and
6549 saturation controls in hardware.
6550 .PD 0
6551 .RSs
6552 .IPs <\-180\-180>
6553 initial hue (default: 0.0)
6554 .IPs <\-100\-100>
6555 initial saturation, where negative values result
6556 in a negative chroma (default: 1.0)
6558 .PD 1
6561 .B halfpack[=f]
6562 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6563 keeping all chroma samples.
6564 Useful for output to low-resolution display devices when hardware downscaling
6565 is poor quality or is not available.
6566 Can also be used as a primitive luma-only deinterlacer with very low CPU
6567 usage.
6568 .PD 0
6569 .RSs
6570 .IPs "<f>\ \ "
6571 By default, halfpack averages pairs of lines when downsampling.
6572 Any value different from 0 or 1 gives the default (averaging) behavior.
6573 .RSss
6574 0: Only use even lines when downsampling.
6576 1: Only use odd lines when downsampling.
6577 .REss
6579 .PD 1
6582 .B ilpack[=mode]
6583 When interlaced video is stored in YUV 4:2:0 formats, chroma
6584 interlacing does not line up properly due to vertical downsampling of
6585 the chroma channels.
6586 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6587 the chroma lines in their proper locations, so that in any given
6588 scanline, the luma and chroma data both come from the same field.
6589 .PD 0
6590 .RSs
6591 .IPs <mode>
6592 Select the sampling mode.
6593 .RSss
6594 0: nearest-neighbor sampling, fast but incorrect
6596 1: linear interpolation (default)
6597 .REss
6599 .PD 1
6602 .B harddup
6603 Only useful with MEncoder.
6604 If harddup is used when encoding, it will force duplicate frames to be
6605 encoded in the output.
6606 This uses slightly more space, but is necessary for output to MPEG
6607 files or if you plan to demux and remux the video stream after
6608 encoding.
6609 Should be placed at or near the end of the filter chain unless you
6610 have a good reason to do otherwise.
6613 .B softskip
6614 Only useful with MEncoder.
6615 Softskip moves the frame skipping (dropping) step of encoding from
6616 before the filter chain to some point during the filter chain.
6617 This allows filters which need to see all frames (inverse telecine,
6618 temporal denoising, etc.) to function properly.
6619 Should be placed after the filters which need to see all frames and
6620 before any subsequent filters that are CPU-intensive.
6623 .B decimate[=max:hi:lo:frac]
6624 Drops frames that do not differ greatly from the previous frame in
6625 order to reduce framerate.
6626 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6627 streaming over dialup modem), but it could in theory be used for
6628 fixing movies that were inverse-telecined incorrectly.
6629 .PD 0
6630 .RSs
6631 .IPs <max>
6632 Sets the maximum number of consecutive frames which can be
6633 dropped (if positive), or the minimum interval between
6634 dropped frames (if negative).
6635 .IPs <hi>,<lo>,<frac>
6636 A frame is a candidate for dropping if no 8x8 region differs by more
6637 than a threshold of <hi>, and if not more than <frac> portion (1
6638 meaning the whole image) differs by more than a threshold of <lo>.
6639 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6640 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6641 difference for each pixel, or the same spread out differently over the
6642 block.
6644 .PD 1
6647 .B dint[=sense:level]
6648 The drop-deinterlace (dint) filter detects and drops the first from a set
6649 of interlaced video frames.
6650 .PD 0
6651 .RSs
6652 .IPs <0.0\-1.0>
6653 relative difference between neighboring pixels (default: 0.1)
6654 .IPs <0.0\-1.0>
6655 What part of the image has to be detected as interlaced to
6656 drop the frame (default: 0.15).
6658 .PD 1
6661 .B lavcdeint (OBSOLETE)
6662 FFmpeg deinterlacing filter, same as \-vf pp=fd
6665 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6666 Donald Graft's adaptive kernel deinterlacer.
6667 Deinterlaces parts of a video if a configurable threshold is exceeded.
6668 .PD 0
6669 .RSs
6670 .IPs <0\-255>
6671 threshold (default: 10)
6672 .IPs <map>
6673 .RSss
6674 0: Ignore pixels exceeding the threshold (default).
6676 1: Paint pixels exceeding the threshold white.
6677 .REss
6678 .IPs <order>
6679 .RSss
6680 0: Leave fields alone (default).
6682 1: Swap fields.
6683 .REss
6684 .IPs <sharp>
6685 .RSss
6686 0: Disable additional sharpening (default).
6688 1: Enable additional sharpening.
6689 .REss
6690 .IPs <twoway>
6691 .RSss
6692 0: Disable twoway sharpening (default).
6694 1: Enable twoway sharpening.
6695 .REss
6697 .PD 1
6700 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6701 unsharp mask / gaussian blur
6702 .RSs
6703 .IPs "l\ \ \ \ "
6704 Apply effect on luma component.
6705 .IPs "c\ \ \ \ "
6706 Apply effect on chroma components.
6707 .IPs <width>x<height>
6708 width and height of the matrix, odd sized in both directions
6709 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6710 .IPs amount
6711 Relative amount of sharpness/\:blur to add to the image
6712 (a sane range should be \-1.5\-1.5).
6713 .RSss
6714 <0: blur
6716 >0: sharpen
6717 .REss
6721 .B "swapuv\ "
6722 Swap U & V plane.
6725 .B il[=d|i][s][:[d|i][s]]
6726 (De)interleaves lines.
6727 The goal of this filter is to add the ability to process interlaced images
6728 pre-field without deinterlacing them.
6729 You can filter your interlaced DVD and play it on a TV without breaking the
6730 interlacing.
6731 While deinterlacing (with the postprocessing filter) removes interlacing
6732 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6733 2 fields (so called half pictures), so you can process (filter) them
6734 independently and then re-interleave them.
6735 .PD 0
6736 .RSs
6737 .IPs d
6738 deinterleave (placing one above the other)
6739 .IPs i
6740 interleave
6741 .IPs s
6742 swap fields (exchange even & odd lines)
6744 .PD 1
6747 .B fil[=i|d]
6748 (De)interleaves lines.
6749 This filter is very similar to the il filter but much faster, the main
6750 disadvantage is that it does not always work.
6751 Especially if combined with other filters it may produce randomly messed
6752 up images, so be happy if it works but do not complain if it does not for
6753 your combination of filters.
6754 .PD 0
6755 .RSs
6756 .IPs d
6757 Deinterleave fields, placing them side by side.
6758 .IPs i
6759 Interleave fields again (reversing the effect of fil=d).
6761 .PD 1
6764 .B field[=n]
6765 Extracts a single field from an interlaced image using stride arithmetic
6766 to avoid wasting CPU time.
6767 The optional argument n specifies whether to extract the even or the odd
6768 field (depending on whether n is even or odd).
6771 .B detc[=var1=value1:var2=value2:...]
6772 Attempts to reverse the 'telecine' process to recover a clean,
6773 non-interlaced stream at film framerate.
6774 This was the first and most primitive inverse telecine filter to be
6775 added to MPlayer/\:MEncoder.
6776 It works by latching onto the telecine 3:2 pattern and following it as
6777 long as possible.
6778 This makes it suitable for perfectly-telecined material, even in the
6779 presence of a fair degree of noise, but it will fail in the presence
6780 of complex post-telecine edits.
6781 Development on this filter is no longer taking place, as ivtc, pullup,
6782 and filmdint are better for most applications.
6783 The following arguments (see syntax above) may be used to control
6784 detc's behavior:
6785 .RSs
6786 .IPs "<dr>\ "
6787 Set the frame dropping mode.
6788 .RSss
6789 0: Do not drop frames to maintain fixed output framerate (default).
6791 1: Always drop a frame when there have been no drops or telecine
6792 merges in the past 5 frames.
6794 2: Always maintain exact 5:4 input to output frame ratio.
6796 .I NOTE:
6797 Use mode 1 or 2 with MEncoder.
6798 .REss
6799 .IPs "<am>\ "
6800 Analysis mode.
6801 .RSss
6802 0: Fixed pattern with initial frame number specified by <fr>.
6804 1: aggressive search for telecine pattern (default)
6805 .REss
6806 .IPs "<fr>\ "
6807 Set initial frame number in sequence.
6808 0\-2 are the three clean progressive frames; 3 and 4 are the two
6809 interlaced frames.
6810 The default, \-1, means 'not in telecine sequence'.
6811 The number specified here is the type for the imaginary previous
6812 frame before the movie starts.
6813 .IPs "<t0>, <t1>, <t2>, <t3>"
6814 Threshold values to be used in certain modes.
6818 .B ivtc[=1]
6819 Experimental 'stateless' inverse telecine filter.
6820 Rather than trying to lock on to a pattern like the detc filter does,
6821 ivtc makes its decisions independently for each frame.
6822 This will give much better results for material that has undergone
6823 heavy editing after telecine was applied, but as a result it is not as
6824 forgiving of noisy input, for example TV capture.
6825 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6826 detc filter, and should be used with MEncoder but not with MPlayer.
6827 As with detc, you must specify the correct output framerate (\-ofps
6828 24000/1001) when using MEncoder.
6829 Further development on ivtc has stopped, as the pullup and filmdint
6830 filters appear to be much more accurate.
6833 .B pullup[=jl:jr:jt:jb:sb:mp]
6834 Third-generation pulldown reversal (inverse telecine) filter,
6835 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6836 fps progressive content.
6837 The pullup filter is designed to be much more robust than detc or
6838 ivtc, by taking advantage of future context in making its decisions.
6839 Like ivtc, pullup is stateless in the sense that it does not lock onto
6840 a pattern to follow, but it instead looks forward to the following
6841 fields in order to identify matches and rebuild progressive frames.
6842 It is still under development, but believed to be quite accurate.
6843 .RSs
6844 .IPs "jl, jr, jt, and jb"
6845 These options set the amount of "junk" to ignore at
6846 the left, right, top, and bottom of the image, respectively.
6847 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6848 2 lines.
6849 The default is 8 pixels on each side.
6851 .IPs "sb (strict breaks)"
6852 Setting this option to 1 will reduce the chances of
6853 pullup generating an occasional mismatched frame, but it may also
6854 cause an excessive number of frames to be dropped during high motion
6855 sequences.
6856 Conversely, setting it to \-1 will make pullup match fields more
6857 easily.
6858 This may help processing of video where there is slight blurring
6859 between the fields, but may also cause there to be interlaced frames
6860 in the output.
6862 .IPs "mp (metric plane)"
6863 This option may be set to 1 or 2 to use a chroma
6864 plane instead of the luma plane for doing pullup's computations.
6865 This may improve accuracy on very clean source material, but more
6866 likely will decrease accuracy, especially if there is chroma noise
6867 (rainbow effect) or any grayscale video.
6868 The main purpose of setting mp to a chroma plane is to reduce CPU load
6869 and make pullup usable in realtime on slow machines.
6870 .REss
6872 .sp 1
6873 .I NOTE:
6874 Always follow pullup with the softskip filter when encoding to ensure
6875 that pullup is able to see each frame.
6876 Failure to do so will lead to incorrect output and will usually crash,
6877 due to design limitations in the codec/\:filter layer.
6878 .REss
6881 .B filmdint[=options]
6882 Inverse telecine filter, similar to the pullup filter above.
6883 It is designed to handle any pulldown pattern, including mixed soft and
6884 hard telecine and limited support for movies that are slowed down or sped
6885 up from their original framerate for TV.
6886 Only the luma plane is used to find the frame breaks.
6887 If a field has no match, it is deinterlaced with simple linear
6888 approximation.
6889 If the source is MPEG-2, this must be the first filter to allow
6890 access to the field-flags set by the MPEG-2 decoder.
6891 Depending on the source MPEG, you may be fine ignoring this advice, as
6892 long as you do not see lots of "Bottom-first field" warnings.
6893 With no options it does normal inverse telecine, and should be used
6894 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6895 When this filter is used with MPlayer, it will result in an uneven
6896 framerate during playback, but it is still generally better than using
6897 pp=lb or no deinterlacing at all.
6898 Multiple options can be specified separated by /.
6899 .RSs
6900 .IPs crop=<w>:<h>:<x>:<y>
6901 Just like the crop filter, but faster, and works on mixed hard and soft
6902 telecined content as well as when y is not a multiple of 4.
6903 If x or y would require cropping fractional pixels from the chroma
6904 planes, the crop area is extended.
6905 This usually means that x and y must be even.
6906 .IPs io=<ifps>:<ofps>
6907 For each ifps input frames the filter will output ofps frames.
6908 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
6909 This could be used to filter movies that are broadcast on TV at a frame
6910 rate different from their original framerate.
6911 .IPs luma_only=<n>
6912 If n is nonzero, the chroma plane is copied unchanged.
6913 This is useful for YV12 sampled TV, which discards one of the chroma
6914 fields.
6915 .IPs mmx2=<n>
6916 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6917 optimized functions, otherwise, use plain C.
6918 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6919 this option to override auto-detection.
6920 .IPs fast=<n>
6921 The larger n will speed up the filter at the expense of accuracy.
6922 The default value is n=3.
6923 If n is odd, a frame immediately following a frame marked with the
6924 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6925 will not spend any time on soft-telecined MPEG-2 content.
6926 This is the only effect of this flag if MMX2 or 3DNow! is available.
6927 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6928 as with n=2 or 3.
6929 If n=2 or 3, the number of luma levels used to find the frame breaks is
6930 reduced from 256 to 128, which results in a faster filter without losing
6931 much accuracy.
6932 If n=4 or 5, a faster, but much less accurate metric will be used to
6933 find the frame breaks, which is more likely to misdetect high vertical
6934 detail as interlaced content.
6935 .IPs verbose=<n>
6936 If n is nonzero, print the detailed metrics for each frame.
6937 Useful for debugging.
6938 .IPs dint_thres=<n>
6939 Deinterlace threshold.
6940 Used during de-interlacing of unmatched frames.
6941 Larger value means less deinterlacing, use n=256 to completely turn off
6942 deinterlacing.
6943 Default is n=8.
6944 .IPs comb_thres=<n>
6945 Threshold for comparing a top and bottom fields.
6946 Defaults to 128.
6947 .IPs diff_thres=<n>
6948 Threshold to detect temporal change of a field.
6949 Default is 128.
6950 .IPs sad_thres=<n>
6951 Sum of Absolute Difference threshold, default is 64.
6955 .B softpulldown
6956 This filter works only correct with MEncoder and acts on the MPEG-2 flags
6957 used for soft 3:2 pulldown (soft telecine).
6958 If you want to use the ivtc or detc filter on movies that are partly soft
6959 telecined, inserting this filter before them should make them more reliable.
6962 .B divtc[=options]
6963 Inverse telecine for deinterlaced video.
6964 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
6965 using a method that keeps one field and interpolates the other, the result is
6966 a juddering video that has every fourth frame duplicated.
6967 This filter is intended to find and drop those duplicates and restore the
6968 original film framerate.
6969 When using this filter, you must specify \-ofps that is 4/5 of
6970 the fps of the input file and place the softskip later in the
6971 filter chain to make sure that divtc sees all the frames.
6972 Two different modes are available:
6973 One pass mode is the default and is straightforward to use,
6974 but has the disadvantage that any changes in the telecine
6975 phase (lost frames or bad edits) cause momentary judder
6976 until the filter can resync again.
6977 Two pass mode avoids this by analyzing the whole video
6978 beforehand so it will have forward knowledge about the
6979 phase changes and can resync at the exact spot.
6980 These passes do
6981 .B not
6982 correspond to pass one and two of the encoding process.
6983 You must run an extra pass using divtc pass one before the
6984 actual encoding throwing the resulting video away.
6985 Use \-nosound \-ovc raw \-o /dev/null to avoid
6986 wasting CPU power for this pass.
6987 You may add something like crop=2:2:0:0 after divtc
6988 to speed things up even more.
6989 Then use divtc pass two for the actual encoding.
6990 If you use multiple encoder passes, use divtc
6991 pass two for all of them.
6992 The options are:
6993 .RSs
6994 .IPs pass=1|2
6995 Use two pass mode.
6996 .IPs file=<filename>
6997 Set the two pass log filename (default: "framediff.log").
6998 .IPs threshold=<value>
6999 Set the minimum strength the telecine pattern must have for the filter to
7000 believe in it (default: 0.5).
7001 This is used to avoid recognizing false pattern from the parts of the video
7002 that are very dark or very still.
7003 .IPs window=<numframes>
7004 Set the number of past frames to look at when searching for pattern
7005 (default: 30).
7006 Longer window improves the reliability of the pattern search, but shorter
7007 window improves the reaction time to the changes in the telecine phase.
7008 This only affects the one pass mode.
7009 The two pass mode currently uses fixed window that extends to both future
7010 and past.
7011 .IPs phase=0|1|2|3|4
7012 Sets the initial telecine phase for one pass mode (default: 0).
7013 The two pass mode can see the future, so it is able to use the correct
7014 phase from the beginning, but one pass mode can only guess.
7015 It catches the correct phase when it finds it, but this option can be used
7016 to fix the possible juddering at the beginning.
7017 The first pass of the two pass mode also uses this, so if you save the output
7018 from the first pass, you get constant phase result.
7019 .IPs deghost=<value>
7020 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
7021 mode, default 0).
7022 If nonzero, deghosting mode is used.
7023 This is for video that has been deinterlaced by blending the fields
7024 together instead of dropping one of the fields.
7025 Deghosting amplifies any compression artifacts in the blended frames, so the
7026 parameter value is used as a threshold to exclude those pixels from
7027 deghosting that differ from the previous frame less than specified value.
7028 If two pass mode is used, then negative value can be used to make the
7029 filter analyze the whole video in the beginning of pass-2 to determine
7030 whether it needs deghosting or not and then select either zero or the
7031 absolute value of the parameter.
7032 Specify this option for pass-2, it makes no difference on pass-1.
7036 .B phase[=t|b|p|a|u|T|B|A|U][:v]
7037 Delay interlaced video by one field time so that the field order
7038 changes.
7039 The intended use is to fix PAL movies that have been captured with the
7040 opposite field order to the film-to-video transfer.
7041 The options are:
7042 .RSs
7043 .IPs t
7044 Capture field order top-first, transfer bottom-first.
7045 Filter will delay the bottom field.
7046 .IPs b
7047 Capture bottom-first, transfer top-first.
7048 Filter will delay the top field.
7049 .IPs p
7050 Capture and transfer with the same field order.
7051 This mode only exists for the documentation of the other options to refer to,
7052 but if you actually select it, the filter will faithfully do nothing ;-)
7053 .IPs a
7054 Capture field order determined automatically by field flags, transfer opposite.
7055 Filter selects among t and b modes on a frame by frame basis using field flags.
7056 If no field information is available, then this works just like u.
7057 .IPs u
7058 Capture unknown or varying, transfer opposite.
7059 Filter selects among t and b on a frame by frame basis by analyzing the
7060 images and selecting the alternative that produces best match between the
7061 fields.
7062 .IPs T
7063 Capture top-first, transfer unknown or varying.
7064 Filter selects among t and p using image analysis.
7065 .IPs B
7066 Capture bottom-first, transfer unknown or varying.
7067 Filter selects among b and p using image analysis.
7068 .IPs A
7069 Capture determined by field flags, transfer unknown or varying.
7070 Filter selects among t, b and p using field flags and image analysis.
7071 If no field information is available, then this works just like U.
7072 This is the default mode.
7073 .IPs U
7074 Both capture and transfer unknown or varying.
7075 Filter selects among t, b and p using image analysis only.
7076 .IPs v
7077 Verbose operation.
7078 Prints the selected mode for each frame and the average squared difference
7079 between fields for t, b, and p alternatives.
7083 .B telecine[=start]
7084 Apply 3:2 'telecine' process to increase framerate by 20%.
7085 This most likely will not work correctly with MPlayer, but it can
7086 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
7087 Both fps options are essential!
7088 (A/V sync will break if they are wrong.)
7089 The optional start parameter tells the filter where in the telecine
7090 pattern to start (0\-3).
7093 .B tinterlace[=mode]
7094 Temporal field interlacing \- merge pairs of frames into an interlaced
7095 frame, halving the framerate.
7096 Even frames are moved into the upper field, odd frames to the lower field.
7097 This can be used to fully reverse the effect of the tfields filter (in mode 0).
7098 Available modes are:
7099 .PD 0
7100 .RSs
7101 .IPs 0
7102 Move odd frames into the upper field, even into the lower field, generating
7103 a full-height frame at half framerate.
7104 .IPs 1
7105 Only output odd frames, even frames are dropped; height unchanged.
7106 .IPs 2
7107 Only output even frames, odd frames are dropped; height unchanged.
7108 .IPs 3
7109 Expand each frame to full height, but pad alternate lines with black;
7110 framerate unchanged.
7111 .IPs 4
7112 Interleave even lines from even frames with odd lines from odd frames.
7113 Height unchanged at half framerate.
7115 .PD 1
7118 .B tfields[=mode[:field_dominance]]
7119 Temporal field separation \- split fields into frames, doubling the
7120 output framerate.
7121 Like the telecine filter, tfields might not work completely right unless
7122 used with MEncoder and both \-fps and \-ofps set to the
7123 desired (double) framerate!
7124 .PD 0
7125 .RSs
7126 .IPs <mode>
7127 0: Leave fields unchanged (will jump/\:flicker).
7129 1: Interpolate missing lines. (The algorithm used might not be so good.)
7131 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
7133 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
7134 .IPs <field_dominance>\ (DEPRECATED)
7135 \-1: auto (default)
7136 Only works if the decoder exports the appropriate information and
7137 no other filters which discard that information come before tfields
7138 in the filter chain, otherwise it falls back to 0 (top field first).
7140 0: top field first
7142 1: bottom field first
7144 .I NOTE:
7145 This option will possibly be removed in a future version.
7146 Use \-field\-dominance instead.
7148 .PD 1
7151 .B yadif=[mode[:field_dominance]]
7152 Yet another deinterlacing filter
7153 .PD 0
7154 .RSs
7155 .IPs <mode>
7156 0: Output 1 frame for each frame.
7158 1: Output 1 frame for each field.
7160 2: Like 0 but skips spatial interlacing check.
7162 3: Like 1 but skips spatial interlacing check.
7163 .IPs <field_dominance>\ (DEPRECATED)
7164 Operates like tfields.
7166 .I NOTE:
7167 This option will possibly be removed in a future version.
7168 Use \-field\-dominance instead.
7170 .PD 1
7173 .B mcdeint=[mode[:parity[:qp]]]
7174 Motion compensating deinterlacer.
7175 It needs one field per frame as input and must thus be used together
7176 with tfields=1 or yadif=1/3 or equivalent.
7177 .PD 0
7178 .RSs
7179 .IPs <mode>
7180 0: fast
7182 1: medium
7184 2: slow, iterative motion estimation
7186 3: extra slow, like 2 plus multiple reference frames
7187 .IPs <parity>
7188 0 or 1 selects which field to use (note: no autodetection yet!).
7189 .IPs "<qp>\ "
7190 Higher values should result in a smoother motion vector
7191 field but less optimal individual vectors.
7193 .PD 1
7196 .B boxblur=radius:power[:radius:power]
7197 box blur
7198 .PD 0
7199 .RSs
7200 .IPs <radius>
7201 blur filter strength
7202 .IPs <power>
7203 number of filter applications
7205 .PD 1
7208 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
7209 shape adaptive blur
7210 .PD 0
7211 .RSs
7212 .IPs <radius>
7213 blur filter strength (~0.1\-4.0) (slower if larger)
7214 .IPs "<pf>\ "
7215 prefilter strength (~0.1\-2.0)
7216 .IPs <colorDiff>
7217 maximum difference between pixels to still be considered (~0.1\-100.0)
7219 .PD 1
7222 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
7223 smart blur
7224 .PD 0
7225 .RSs
7226 .IPs <radius>
7227 blur filter strength (~0.1\-5.0) (slower if larger)
7228 .IPs <strength>
7229 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
7230 .IPs <threshold>
7231 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
7233 .PD 1
7236 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
7237 Correct the perspective of movies not filmed perpendicular to the screen.
7238 .PD 0
7239 .RSs
7240 .IPs <x0>,<y0>,...
7241 coordinates of the top left, top right, bottom left, bottom right corners
7242 .IPs "<t>\ \ "
7243 linear (0) or cubic resampling (1)
7245 .PD 1
7248 .B "2xsai\ \ "
7249 Scale and smooth the image with the 2x scale and interpolate algorithm.
7252 .B "1bpp\ \ \ "
7253 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
7256 .B down3dright[=lines]
7257 Reposition and resize stereoscopic images.
7258 Extracts both stereo fields and places them side by side, resizing
7259 them to maintain the original movie aspect.
7260 .PD 0
7261 .RSs
7262 .IPs <lines>
7263 number of lines to select from the middle of the image (default: 12)
7265 .PD 1
7268 .B bmovl=hidden:opaque:fifo
7269 The bitmap overlay filter reads bitmaps from a FIFO and displays them
7270 on top of the movie, allowing some transformations on the image.
7271 Also see TOOLS/bmovl-test.c for a small bmovl test program.
7272 .PD 0
7273 .RSs
7274 .IPs <hidden>
7275 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
7276 .IPs <opaque>
7277 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
7278 .IPs <fifo>
7279 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
7280 controlling application)
7282 .PD 1
7283 .sp 1
7285 FIFO commands are:
7287 .PD 0
7288 .RSs
7289 .IPs "RGBA32 width height xpos ypos alpha clear"
7290 followed by width*height*4 Bytes of raw RGBA32 data.
7291 .IPs "ABGR32 width height xpos ypos alpha clear"
7292 followed by width*height*4 Bytes of raw ABGR32 data.
7293 .IPs "RGB24 width height xpos ypos alpha clear"
7294 followed by width*height*3 Bytes of raw RGB24 data.
7295 .IPs "BGR24 width height xpos ypos alpha clear"
7296 followed by width*height*3 Bytes of raw BGR24 data.
7297 .IPs "ALPHA width height xpos ypos alpha"
7298 Change alpha transparency of the specified area.
7299 .IPs "CLEAR width height xpos ypos"
7300 Clear area.
7301 .IPs OPAQUE
7302 Disable all alpha transparency.
7303 Send "ALPHA 0 0 0 0 0" to enable it again.
7304 .IPs "HIDE\ "
7305 Hide bitmap.
7306 .IPs "SHOW\ "
7307 Show bitmap.
7309 .PD 1
7310 .sp 1
7312 Arguments are:
7314 .PD 0
7315 .RSs
7316 .IPs "<width>, <height>"
7317 image/area size
7318 .IPs "<xpos>, <ypos>"
7319 Start blitting at position x/y.
7320 .IPs <alpha>
7321 Set alpha difference.
7322 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
7323 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
7324 .RSss
7325 0:    same as original
7327 255:  Make everything opaque.
7329 \-255: Make everything transparent.
7330 .REss
7331 .IPs <clear>
7332 Clear the framebuffer before blitting.
7333 .RSss
7334 0: The image will just be blitted on top of the old one, so you do not need to
7335 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7337 1: clear
7338 .REss
7340 .PD 1
7343 .B framestep=I|[i]step
7344 Renders only every nth frame or every intra frame (keyframe).
7345 .sp 1
7346 If you call the filter with I (uppercase) as the parameter, then
7347 .B only
7348 keyframes are rendered.
7349 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7350 for AVI it means every scene change or every keyint value (see \-lavcopts
7351 keyint= value if you use MEncoder to encode the video).
7352 .sp 1
7353 When a keyframe is found, an 'I!' string followed by a newline character is
7354 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
7355 because it contains the time (in seconds) and frame number of the keyframe
7356 (You can use this information to split the AVI.).
7357 .sp 1
7358 If you call the filter with a numeric parameter 'step' then only one in
7359 every 'step' frames is rendered.
7360 .sp 1
7361 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7362 (like the I parameter).
7363 .sp 1
7364 If you give only the i then nothing is done to the frames, only I! is
7365 printed.
7368 .B tile=xtiles:ytiles:output:start:delta
7369 Tile a series of images into a single, bigger image.
7370 If you omit a parameter or use a value less than 0, then the default
7371 value is used.
7372 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7373 It is probably a good idea to put the scale filter before the tile :-)
7374 .sp 1
7375 The parameters are:
7376 .sp 1
7377 .PD 0
7378 .RSs
7379 .IPs <xtiles>
7380 number of tiles on the x axis (default: 5)
7381 .IPs <ytiles>
7382 number of tiles on the y axis (default: 5)
7383 .IPs <output>
7384 Render the tile when 'output' number of frames are reached, where 'output'
7385 should be a number less than xtile * ytile.
7386 Missing tiles are left blank.
7387 You could, for example, write an 8 * 7 tile every 50 frames to have one
7388 image every 2 seconds @ 25 fps.
7389 .IPs <start>
7390 outer border thickness in pixels (default: 2)
7391 .IPs <delta>
7392 inner border thickness in pixels (default: 4)
7394 .PD 1
7397 .B delogo[=x:y:w:h:t]
7398 Suppresses a TV station logo by a simple interpolation of the
7399 surrounding pixels.
7400 Just set a rectangle covering the logo and watch it disappear (and
7401 sometimes something even uglier appear \- your mileage may vary).
7402 .PD 0
7403 .RSs
7404 .IPs <x>,<y>
7405 top left corner of the logo
7406 .IPs <w>,<h>
7407 width and height of the cleared rectangle
7408 .IPs <t>
7409 Thickness of the fuzzy edge of the rectangle (added to w and h).
7410 When set to \-1, a green rectangle is drawn on the screen to
7411 simplify finding the right x,y,w,h parameters.
7413 .PD 1
7416 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7417 Suppresses a TV station logo, using a PGM or PPM image
7418 file to determine which pixels comprise the logo.
7419 The width and height of the image file must match
7420 those of the video stream being processed.
7421 Uses the filter image and a circular blur
7422 algorithm to remove the logo.
7423 .RSs
7424 .IPs /path/to/logo_bitmap_file_name.pgm
7425 [path] + filename of the filter image.
7429 .B zrmjpeg[=options]
7430 Software YV12 to MJPEG encoder for use with the zr2 video
7431 output device.
7432 .RSs
7433 .IPs maxheight=<h>|maxwidth=<w>
7434 These options set the maximum width and height the zr card
7435 can handle (the MPlayer filter layer currently cannot query those).
7436 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
7437 Use these options to set maxwidth and maxheight automatically to the
7438 values known for card/\:mode combo.
7439 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
7440 .IPs color|bw
7441 Select color or black and white encoding.
7442 Black and white encoding is faster.
7443 Color is the default.
7444 .IPs hdec={1,2,4}
7445 Horizontal decimation 1, 2 or 4.
7446 .IPs vdec={1,2,4}
7447 Vertical decimation 1, 2 or 4.
7448 .IPs quality=1\-20
7449 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
7450 .IPs fd|nofd
7451 By default, decimation is only performed if the Zoran hardware
7452 can upscale the resulting MJPEG images to the original size.
7453 The option fd instructs the filter to always perform the requested
7454 decimation (ugly).
7458 .B screenshot
7459 Allows acquiring screenshots of the movie using slave mode
7460 commands that can be bound to keypresses.
7461 See the slave mode documentation and the INTERACTIVE CONTROL
7462 section for details.
7463 Files named 'shotNNNN.png' will be saved in the working directory,
7464 using the first available number \- no files will be overwritten.
7465 The filter has no overhead when not used and accepts an arbitrary
7466 colorspace, so it is safe to add it to the configuration file.
7467 Make sure that the screenshot filter is added after all other filters
7468 whose effect you want to record on the saved image.
7469 E.g.\& it should be the last filter if you want to have an exact
7470 screenshot of what you see on the monitor.
7474 .B "ass\ \ \ \ "
7475 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7476 Only useful with the \-ass option.
7477 .sp 1
7478 .I EXAMPLE:
7479 .PD 0
7480 .RSs
7481 .IPs "\-vf ass,screenshot"
7482 Moves SSA/ASS rendering before the screenshot filter.
7483 Screenshots taken this way will contain subtitles.
7485 .PD 1
7488 .B blackframe[=amount:threshold]
7489 Detect frames that are (almost) completely black.
7490 Can be useful to detect chapter transitions or commercials.
7491 Output lines consist of the frame number of the detected frame, the
7492 percentage of blackness, the frame type and the frame number of the last
7493 encountered keyframe.
7494 .RSs
7495 .IPs <amount>
7496 Percentage of the pixels that have to be below the threshold (default: 98).
7497 .IPs <threshold>
7498 Threshold below which a pixel value is considered black (default: 32).
7502 .B gradfun[=strength[:radius]]
7503 Fix the banding artifacts that are sometimes introduced into nearly flat
7504 regions by truncation to 8bit colordepth.
7505 Interpolates the gradients that should go where the bands are, and
7506 dithers them.
7507 .sp 1
7508 This filter is designed for playback only.
7509 Do not use it prior to lossy compression, because compression tends
7510 to lose the dither and bring back the bands.
7511 .RSs
7512 .IPs <strength>
7513 Maximum amount by which the filter will change any one pixel.
7514 Also the threshold for detecting nearly flat regions (default: 1.2).
7515 .IPs <radius>
7516 Neighborhood to fit the gradient to.
7517 Larger radius makes for smoother gradients, but also prevents the filter
7518 from modifying pixels near detailed regions (default: 16).
7522 .B fixpts[=options]
7523 Fixes the presentation timestamps (PTS) of the frames.
7524 By default, the PTS passed to the next filter is dropped, but the following
7525 options can change that:
7526 .RSs
7527 .IPs print
7528 Print the incoming PTS.
7529 .IPs fps=<fps>
7530 Specify a frame per second value.
7531 .IPs start=<pts>
7532 Specify an initial value for the PTS.
7533 .IPs autostart=<n>
7534 Uses the
7535 .IR n th
7536 incoming PTS as the initial PTS.
7537 All previous PTS are kept, so setting a huge value or \-1 keeps the PTS
7538 intact.
7539 .IPs autofps=<n>
7540 Uses the
7541 .IR n th
7542 incoming PTS after the end of autostart to determine the framerate.
7544 .sp 1
7546 .I EXAMPLE:
7548 .PD 0
7549 .RSs
7550 .IPs "\-vf fixpts=fps=24000/1001,ass,fixpts"
7551 Generates a new sequence of PTS, uses it for ASS subtitles, then drops it.
7552 Generating a new sequence is useful when the timestamps are reset during the
7553 program; this is frequent on DVDs.
7554 Dropping it may be necessary to avoid confusing encoders.
7556 .PD 1
7557 .sp 1
7559 .I NOTE:
7560 Using this filter together with any sort of seeking (including -ss and EDLs)
7561 may make demons fly out of your nose.
7565 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7568 .B \-audio\-delay <any floating-point number>
7569 Delays either audio or video by setting a delay field in the header
7570 (default: 0.0).
7571 This does not delay either stream while encoding, but the player will
7572 see the delay field and compensate accordingly.
7573 Positive values delay the audio, and negative values delay the video.
7574 Note that this is the exact opposite of the \-delay option.
7575 For example, if a video plays correctly with \-delay 0.2, you can
7576 fix the video with MEncoder by using \-audio\-delay \-0.2.
7577 .sp 1
7578 Currently, this option only works with the default muxer (\-of avi).
7579 If you are using a different muxer, then you must use \-delay instead.
7582 .B \-audio\-density <1\-50>
7583 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7585 .I NOTE:
7586 CBR only, VBR ignores this as it puts each packet in a new chunk.
7589 .B \-audio\-preload <0.0\-2.0>
7590 Sets up the audio buffering time interval (default: 0.5s).
7593 .B \-fafmttag <format>
7594 Can be used to override the audio format tag of the output file.
7595 .sp 1
7596 .I EXAMPLE:
7597 .PD 0
7598 .RSs
7599 .IPs "\-fafmttag 0x55"
7600 Will have the output file contain 0x55 (mp3) as audio format tag.
7602 .PD 1
7605 .B \-ffourcc <fourcc>
7606 Can be used to override the video fourcc of the output file.
7607 .sp 1
7608 .I EXAMPLE:
7609 .PD 0
7610 .RSs
7611 .IPs "\-ffourcc div3"
7612 Will have the output file contain 'div3' as video fourcc.
7614 .PD 1
7617 .B \-force\-avi\-aspect <0.2\-3.0>
7618 Override the aspect stored in the AVI OpenDML vprp header.
7619 This can be used to change the aspect ratio with '\-ovc copy'.
7622 .B \-frameno\-file <filename> (DEPRECATED)
7623 Specify the name of the audio file with framenumber mappings created in
7624 the first (audio only) pass of a special three pass encoding mode.
7626 .I NOTE:
7627 Using this mode will most likely give you A-V desync.
7628 Do not use it.
7629 It is kept for backwards compatibility only and will possibly
7630 be removed in a future version.
7633 .B \-hr\-edl\-seek
7634 Use a more precise, but much slower method for skipping areas.
7635 Areas marked for skipping are not seeked over, instead all
7636 frames are decoded, but only the necessary frames are encoded.
7637 This allows starting at non-keyframe boundaries.
7639 .I NOTE:
7640 Not guaranteed to work right with '\-ovc copy'.
7643 .B \-info <option1:option2:...> (AVI only)
7644 Specify the info header of the resulting AVI file.
7645 .sp 1
7646 Available options are:
7647 .RSs
7648 .IPs "help\ "
7649 Show this description.
7650 .IPs name=<value>
7651 title of the work
7652 .IPs artist=<value>
7653 artist or author of the work
7654 .IPs genre=<value>
7655 original work category
7656 .IPs subject=<value>
7657 contents of the work
7658 .IPs copyright=<value>
7659 copyright information
7660 .IPs srcform=<value>
7661 original format of the digitized material
7662 .IPs comment=<value>
7663 general comments about the work
7667 .B \-noautoexpand
7668 Do not automatically insert the expand filter into the MEncoder filter chain.
7669 Useful to control at which point of the filter chain subtitles are rendered
7670 when hardcoding subtitles onto a movie.
7673 .B \-noencodedups
7674 Do not attempt to encode duplicate frames in duplicate; always output
7675 zero-byte frames to indicate duplicates.
7676 Zero-byte frames will be written anyway unless a filter or encoder
7677 capable of doing duplicate encoding is loaded.
7678 Currently the only such filter is harddup.
7681 .B \-noodml (\-of avi only)
7682 Do not write OpenDML index for AVI files >1GB.
7685 .B \-noskip
7686 Do not skip frames.
7689 .B \-o <filename>
7690 Outputs to the given filename.
7692 If you want a default output filename, you can put this option in the
7693 MEncoder config file.
7696 .B \-oac <codec name>
7697 Encode with the given audio codec (no default set).
7699 .I NOTE:
7700 Use \-oac help to get a list of available audio codecs.
7701 .sp 1
7702 .I EXAMPLE:
7703 .PD 0
7704 .RSs
7705 .IPs "\-oac copy"
7706 no encoding, just streamcopy
7707 .IPs "\-oac pcm"
7708 Encode to uncompressed PCM.
7709 .IPs "\-oac mp3lame"
7710 Encode to MP3 (using LAME).
7711 .IPs "\-oac lavc"
7712 Encode with a libavcodec codec.
7714 .PD 1
7717 .B \-of <format> (BETA CODE!)
7718 Encode to the specified container format (default: AVI).
7720 .I NOTE:
7721 Use \-of help to get a list of available container formats.
7722 .sp 1
7723 .I EXAMPLE:
7724 .PD 0
7725 .RSs
7726 .IPs "\-of avi"
7727 Encode to AVI.
7728 .IPs "\-of mpeg"
7729 Encode to MPEG (also see \-mpegopts).
7730 .IPs "\-of lavf"
7731 Encode with libavformat muxers (also see \-lavfopts).
7732 .IPs "\-of rawvideo"
7733 raw video stream (no muxing \- one video stream only)
7734 .IPs "\-of rawaudio"
7735 raw audio stream (no muxing \- one audio stream only)
7737 .PD 1
7740 .B \-ofps <fps>
7741 Specify a frames per second (fps) value for the output file,
7742 which can be different from that of the source material.
7743 Must be set for variable fps (ASF, some MOV) and progressive
7744 (30000/1001 fps telecined MPEG) files.
7747 .B \-ovc <codec name>
7748 Encode with the given video codec (no default set).
7750 .I NOTE:
7751 Use \-ovc help to get a list of available video codecs.
7752 .sp 1
7753 .I EXAMPLE:
7754 .PD 0
7755 .RSs
7756 .IPs "\-ovc copy"
7757 no encoding, just streamcopy
7758 .IPs "\-ovc raw"
7759 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7760 .IPs "\-ovc lavc"
7761 Encode with a libavcodec codec.
7763 .PD 1
7766 .B \-passlogfile <filename>
7767 Dump first pass information to <filename> instead of the default divx2pass.log
7768 in two pass encoding mode.
7771 .B \-skiplimit <value>
7772 Specify the maximum number of frames that may be skipped after
7773 encoding one frame (\-noskiplimit for unlimited).
7776 .B \-vobsubout <basename>
7777 Specify the basename for the output .idx and .sub files.
7778 This turns off subtitle rendering in the encoded movie and diverts it to
7779 VOBsub subtitle files.
7782 .B \-vobsuboutid <langid>
7783 Specify the language two letter code for the subtitles.
7784 This overrides what is read from the DVD or the .ifo file.
7787 .B \-vobsuboutindex <index>
7788 Specify the index of the subtitles in the output files (default: 0).
7792 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7793 You can specify codec specific encoding parameters using the following
7794 syntax:
7797 .B \-<codec>opts <option1[=value1]:option2[=value2]:...>
7800 Where <codec> may be: lavc, xvidenc, mp3lame, toolame, twolame,
7801 nuv, xvfw, faac, x264enc, mpeg, lavf.
7804 .SS mp3lame (\-lameopts)
7807 .B "help\ \ \ "
7808 get help
7811 .B vbr=<0\-4>
7812 variable bitrate method
7813 .PD 0
7814 .RSs
7815 .IPs 0
7817 .IPs 1
7819 .IPs 2
7820 rh (default)
7821 .IPs 3
7823 .IPs 4
7824 mtrh
7826 .PD 1
7829 .B "abr\ \ \ \ "
7830 average bitrate
7833 .B "cbr\ \ \ \ "
7834 constant bitrate
7835 Also forces CBR mode encoding on subsequent ABR presets modes.
7838 .B br=<0\-1024>
7839 bitrate in kbps (CBR and ABR only)
7842 .B q=<0\-9>
7843 quality (0 \- highest, 9 \- lowest) (VBR only)
7846 .B aq=<0\-9>
7847 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
7850 .B ratio=<1\-100>
7851 compression ratio
7854 .B vol=<0\-10>
7855 audio input gain
7858 .B mode=<0\-3>
7859 (default: auto)
7860 .PD 0
7861 .RSs
7862 .IPs 0
7863 stereo
7864 .IPs 1
7865 joint-stereo
7866 .IPs 2
7867 dualchannel
7868 .IPs 3
7869 mono
7871 .PD 1
7874 .B padding=<0\-2>
7875 .PD 0
7876 .RSs
7877 .IPs 0
7878 none
7879 .IPs 1
7881 .IPs 2
7882 adjust
7884 .PD 1
7887 .B "fast\ \ \ "
7888 Switch on faster encoding on subsequent VBR presets modes.
7889 This results in slightly lower quality and higher bitrates.
7892 .B highpassfreq=<freq>
7893 Set a highpass filtering frequency in Hz.
7894 Frequencies below the specified one will be cut off.
7895 A value of \-1 will disable filtering, a value of 0
7896 will let LAME choose values automatically.
7899 .B lowpassfreq=<freq>
7900 Set a lowpass filtering frequency in Hz.
7901 Frequencies above the specified one will be cut off.
7902 A value of \-1 will disable filtering, a value of 0
7903 will let LAME choose values automatically.
7906 .B preset=<value>
7907 preset values
7908 .RSs
7909 .IPs "help\ "
7910 Print additional options and information about presets settings.
7911 .IPs medium
7912 VBR encoding, good quality, 150\-180 kbps bitrate range
7913 .IPs standard
7914 VBR encoding, high quality, 170\-210 kbps bitrate range
7915 .IPs extreme
7916 VBR encoding, very high quality, 200\-240 kbps bitrate range
7917 .IPs insane
7918 CBR encoding, highest preset quality, 320 kbps bitrate
7919 .IPs <8\-320>
7920 ABR encoding at average given kbps bitrate
7922 .sp 1
7924 .I EXAMPLES:
7926 .PD 0
7927 .RSs
7928 .IPs fast:preset=standard
7929 suitable for most people and most music types and already quite high quality
7930 .IPs cbr:preset=192
7931 Encode with ABR presets at a 192 kbps forced constant bitrate.
7932 .IPs preset=172
7933 Encode with ABR presets at a 172 kbps average bitrate.
7934 .IPs preset=extreme
7935 for people with extremely good hearing and similar equipment
7937 .PD 1
7940 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
7943 .B br=<32\-384>
7944 In CBR mode this parameter indicates the bitrate in kbps,
7945 when in VBR mode it is the minimum bitrate allowed per frame.
7946 VBR mode will not work with a value below 112.
7949 .B vbr=<\-50\-50> (VBR only)
7950 variability range; if negative the encoder shifts the average bitrate
7951 towards the lower limit, if positive towards the higher.
7952 When set to 0 CBR is used (default).
7955 .B maxvbr=<32\-384> (VBR only)
7956 maximum bitrate allowed per frame, in kbps
7959 .B mode=<stereo  |  jstereo  |  mono  |  dual>
7960 (default: mono for 1-channel audio, stereo otherwise)
7963 .B psy=<\-1\-4>
7964 psychoacoustic model (default: 2)
7967 .B errprot=<0 | 1>
7968 Include error protection.
7971 .B debug=<0\-10>
7972 debug level
7974 .PD 1
7977 .SS faac (\-faacopts)
7980 .B br=<bitrate>
7981 average bitrate in kbps (mutually exclusive with quality)
7984 .B quality=<1\-1000>
7985 quality mode, the higher the better (mutually exclusive with br)
7988 .B object=<1\-4>
7989 object type complexity
7990 .PD 0
7991 .RSs
7992 .IPs 1
7993 MAIN (default)
7994 .IPs 2
7996 .IPs 3
7998 .IPs 4
7999 LTP (extremely slow)
8001 .PD 1
8004 .B mpeg=<2|4>
8005 MPEG version (default: 4)
8008 .B "tns\ \ \ \ "
8009 Enables temporal noise shaping.
8012 .B cutoff=<0\-sampling_rate/2>
8013 cutoff frequency (default: sampling_rate/2)
8016 .B "raw\ \ \ \ "
8017 Stores the bitstream as raw payload with extradata in the container header
8018 (default: 0, corresponds to ADTS).
8019 Do not set this flag if not explicitly required or you will not be able to
8020 remux the audio stream later on.
8022 .PD 1
8025 .SS lavc (\-lavcopts)
8027 Many libavcodec (lavc for short) options are tersely documented.
8028 Read the source for full details.
8030 .I EXAMPLE:
8031 .PD 0
8032 .RSs
8033 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
8035 .PD 1
8038 .B o=<key>=<value>[,<key>=<value>[,...]]
8039 Pass AVOptions to libavcodec encoder.
8040 Note, a patch to make the o= unneeded and pass all unknown options through
8041 the AVOption system is welcome.
8042 A full list of AVOptions can be found in the FFmpeg manual.
8043 Note that some AVOptions may conflict with MEncoder options.
8044 .sp 1
8046 .I EXAMPLE:
8048 .RSs
8049 .PD 0
8050 .IPs o=bt=100k
8051 .PD 1
8055 .B acodec=<value>
8056 audio codec (default: mp2)
8057 .PD 0
8058 .RSs
8059 .IPs "ac3\ \ "
8060 Dolby Digital (AC-3)
8061 .IPs adpcm_*
8062 Adaptive PCM formats \- see the HTML documentation for details.
8063 .IPs "flac\ "
8064 Free Lossless Audio Codec (FLAC)
8065 .IPs "g726\ "
8066 G.726 ADPCM
8067 .IPs libfaac
8068 Advanced Audio Coding (AAC) \- using FAAC
8069 .IPs libmp3lame
8070 MPEG-1 audio layer 3 (MP3) \- using LAME
8071 .IPs "mp2\ \ "
8072 MPEG-1 audio layer 2 (MP2)
8073 .IPs pcm_*
8074 PCM formats \- see the HTML documentation for details.
8075 .IPs roq_dpcm
8076 Id Software RoQ DPCM
8077 .IPs sonic
8078 experimental simple lossy codec
8079 .IPs sonicls
8080 experimental simple lossless codec
8081 .IPs vorbis
8082 Vorbis
8083 .IPs wmav1
8084 Windows Media Audio v1
8085 .IPs wmav2
8086 Windows Media Audio v2
8088 .PD 1
8091 .B abitrate=<value>
8092 audio bitrate in kbps (default: 224)
8095 .B atag=<value>
8096 Use the specified Windows audio format tag (e.g.\& atag=0x55).
8099 .B bit_exact
8100 Use only bit exact algorithms (except (I)DCT).
8101 Additionally bit_exact disables several optimizations and thus
8102 should only be used for regression tests, which need binary
8103 identical files even if the encoder version changes.
8104 This also suppresses the user_data header in MPEG-4 streams.
8105 Do not use this option unless you know exactly what you are doing.
8108 .B threads=<1\-8>
8109 Maximum number of threads to use (default: 1).
8110 May have a slight negative effect on motion estimation.
8114 .B vcodec=<value>
8115 Employ the specified codec (default: mpeg4).
8116 .PD 0
8117 .RSs
8118 .IPs "asv1\ "
8119 ASUS Video v1
8120 .IPs "asv2\ "
8121 ASUS Video v2
8122 .IPs dvvideo
8123 Sony Digital Video
8124 .IPs "ffv1\ "
8125 FFmpeg's lossless video codec
8126 .IPs ffvhuff
8127 nonstandard 20% smaller HuffYUV using YV12
8128 .IPs "flv\ \ "
8129 Sorenson H.263 used in Flash Video
8130 .IPs "h261\ "
8131 H.261
8132 .IPs "h263\ "
8133 H.263
8134 .IPs h263p
8135 H.263+
8136 .IPs huffyuv
8137 HuffYUV
8138 .IPs libtheora
8139 Theora
8140 .IPs libx264
8141 x264 H.264/AVC MPEG-4 Part 10
8142 .IPs libxvid
8143 Xvid MPEG-4 Part 2 (ASP)
8144 .IPs ljpeg
8145 Lossless JPEG
8146 .IPs mjpeg
8147 Motion JPEG
8148 .IPs mpeg1video
8149 MPEG-1 video
8150 .IPs mpeg2video
8151 MPEG-2 video
8152 .IPs mpeg4
8153 MPEG-4 (DivX 4/5)
8154 .IPs msmpeg4
8155 DivX 3
8156 .IPs msmpeg4v2
8157 MS MPEG4v2
8158 .IPs roqvideo
8159 ID Software RoQ Video
8160 .IPs "rv10\ "
8161 an old RealVideo codec
8162 .IPs "snow (also see: vstrict)"
8163 FFmpeg's experimental wavelet-based codec
8164 .IPs "svq1\ "
8165 Apple Sorenson Video 1
8166 .IPs "wmv1\ "
8167 Windows Media Video, version 1 (AKA WMV7)
8168 .IPs "wmv2\ "
8169 Windows Media Video, version 2 (AKA WMV8)
8171 .PD 1
8174 .B vqmin=<1\-31>
8175 minimum quantizer
8176 .RSs
8177 .IPs 1
8178 Not recommended (much larger file, little quality difference and weird side
8179 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
8180 resulting in lower quality and some decoders will not be able to decode it).
8181 .IPs 2
8182 Recommended for normal mpeg4/\:mpeg1video encoding (default).
8183 .IPs 3
8184 Recommended for h263(p)/\:msmpeg4.
8185 The reason for preferring 3 over 2 is that 2 could lead to overflows.
8186 (This will be fixed for h263(p) by changing the quantizer per MB in
8187 the future, msmpeg4 cannot be fixed as it does not support that.)
8191 .B lmin=<0.01\-255.0>
8192 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
8193 Lavc will rarely use quantizers below the value of lmin.
8194 Lowering lmin will make lavc more likely to choose lower quantizers for
8195 some frames, but not lower than the value of vqmin.
8196 Likewise, raising lmin will make lavc less likely to choose low
8197 quantizers, even if vqmin would have allowed them.
8198 You probably want to set lmin approximately equal to vqmin.
8199 When adaptive quantization is in use, changing lmin/lmax may have less
8200 of an effect; see mblmin/mblmax.
8204 .B lmax=<0.01\-255.0>
8205 maximum Lagrange multiplier for ratecontrol (default: 31.0)
8209 .B mblmin=<0.01\-255.0>
8210 Minimum macroblock-level Lagrange multiplier for ratecontrol
8211 (default:2.0).
8212 This parameter affects adaptive quantization options like qprd,
8213 lumi_mask, etc..
8217 .B mblmax=<0.01\-255.0>
8218 Maximum macroblock-level Lagrange multiplier for ratecontrol
8219 (default: 31.0).
8223 .B vqscale=<0\-31>
8224 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
8225 A lower value means better quality but larger files (default: \-1).
8226 In case of snow codec, value 0 means lossless encoding.
8227 Since the other codecs do not support this, vqscale=0 will have an undefined
8228 effect.
8229 1 is not recommended (see vqmin for details).
8232 .B vqmax=<1\-31>
8233 Maximum quantizer, 10\-31 should be a sane range (default: 31).
8236 .B mbqmin=<1\-31>
8237 obsolete, use vqmin
8240 .B mbqmax=<1\-31>
8241 obsolete, use vqmax
8244 .B vqdiff=<1\-31>
8245 maximum quantizer difference between consecutive I- or P-frames
8246 (default: 3)
8249 .B vmax_b_frames=<0\-4>
8250 maximum number of B-frames between non-B-frames:
8251 .PD 0
8252 .RSs
8253 .IPs 0
8254 no B-frames (default)
8255 .IPs 0\-2
8256 sane range for MPEG-4
8258 .PD 1
8261 .B vme=<0\-5>
8262 motion estimation method.
8263 Available methods are:
8264 .PD 0
8265 .RSs
8266 .IPs 0
8267 none (very low quality)
8268 .IPs 1
8269 full (slow, currently unmaintained and disabled)
8270 .IPs 2
8271 log (low quality, currently unmaintained and disabled)
8272 .IPs 3
8273 phods (low quality, currently unmaintained and disabled)
8274 .IPs 4
8275 EPZS: size=1 diamond, size can be adjusted with the *dia options
8276 (default)
8277 .IPs 5
8278 X1 (experimental, currently aliased to EPZS)
8279 .IPs 8
8280 iter (iterative overlapped block, only used in snow)
8282 .PD 1
8283 .sp 1
8286 .I NOTE:
8287 0\-3 currently ignores the amount of bits spent,
8288 so quality may be low.
8292 .B me_range=<0\-9999>
8293 motion estimation search range (default: 0 (unlimited))
8296 .B mbd=<0\-2> (also see *cmp, qpel)
8297 Macroblock decision algorithm (high quality mode), encode each macro
8298 block in all modes and choose the best.
8299 This is slow but results in better quality and file size.
8300 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
8301 macroblocks (the mbcmp value is still used in other places though, in particular
8302 the motion search algorithms).
8303 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
8304 however, a slower but better half-pel motion search will be used,
8305 regardless of what mbd is set to.
8306 If qpel is set, quarter-pel motion search will be used regardless.
8307 .PD 0
8308 .RSs
8309 .IPs 0
8310 Use comparison function given by mbcmp (default).
8311 .IPs 1
8312 Select the MB mode which needs the fewest bits (=vhq).
8313 .IPs 2
8314 Select the MB mode which has the best rate distortion.
8316 .PD 1
8319 .B "vhq\ \ \ \ "
8320 Same as mbd=1, kept for compatibility reasons.
8323 .B "v4mv\ \ \ "
8324 Allow 4 motion vectors per macroblock (slightly better quality).
8325 Works better if used with mbd>0.
8328 .B "obmc\ \ \ "
8329 overlapped block motion compensation (H.263+)
8332 .B "loop\ \ \ "
8333 loop filter (H.263+)
8334 note, this is broken
8337 .B inter_threshold <\-1000\-1000>
8338 Does absolutely nothing at the moment.
8341 .B keyint=<0\-300>
8342 maximum interval between keyframes in frames (default: 250 or one
8343 keyframe every ten seconds in a 25fps movie.
8344 This is the recommended default for MPEG-4).
8345 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
8346 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
8347 keyframes need more space than other frames, so larger numbers here mean
8348 slightly smaller files but less precise seeking.
8349 0 is equivalent to 1, which makes every frame a keyframe.
8350 Values >300 are not recommended as the quality might be bad depending upon
8351 decoder, encoder and luck.
8352 It is common for MPEG-1/2 to use values <=30.
8355 .B sc_threshold=<\-1000000000\-1000000000>
8356 Threshold for scene change detection.
8357 A keyframe is inserted by libavcodec when it detects a scene change.
8358 You can specify the sensitivity of the detection with this option.
8359 \-1000000000 means there is a scene change detected at every frame,
8360 1000000000 means no scene changes are detected (default: 0).
8363 .B sc_factor=<any positive integer>
8364 Causes frames with higher quantizers to be more likely to trigger a
8365 scene change detection and make libavcodec use an I-frame (default: 1).
8366 1\-16 is a sane range.
8367 Values between 2 and 6 may yield increasing PSNR (up to approximately
8368 0.04 dB) and better placement of I-frames in high-motion scenes.
8369 Higher values than 6 may give very slightly better PSNR (approximately
8370 0.01 dB more than sc_factor=6), but noticably worse visual quality.
8373 .B vb_strategy=<0\-2> (pass one only)
8374 strategy to choose between I/P/B-frames:
8375 .PD 0
8376 .RSs
8377 .IPs 0
8378 Always use the maximum number of B-frames (default).
8379 .IPs 1
8380 Avoid B-frames in high motion scenes.
8381 See the b_sensitivity option to tune this strategy.
8382 .IPs 2
8383 Places B-frames more or less optimally to yield maximum quality (slower).
8384 You may want to reduce the speed impact of this option by tuning the
8385 option brd_scale.
8387 .PD 1
8390 .B b_sensitivity=<any integer greater than 0>
8391 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
8392 B-frames (default: 40).
8393 Lower sensitivities will result in more B-frames.
8394 Using more B-frames usually improves PSNR, but too many B-frames can
8395 hurt quality in high-motion scenes.
8396 Unless there is an extremely high amount of motion, b_sensitivity can
8397 safely be lowered below the default; 10 is a reasonable value in most
8398 cases.
8401 .B brd_scale=<0\-10>
8402 Downscales frames for dynamic B-frame decision (default: 0).
8403 Each time brd_scale is increased by one, the frame dimensions are
8404 divided by two, which improves speed by a factor of four.
8405 Both dimensions of the fully downscaled frame must be even numbers, so
8406 brd_scale=1 requires the original dimensions to be multiples of four,
8407 brd_scale=2 requires multiples of eight, etc.
8408 In other words, the dimensions of the original frame must both be
8409 divisible by 2^(brd_scale+1) with no remainder.
8412 .B bidir_refine=<0\-4>
8413 Refine the two motion vectors used in bidirectional macroblocks,
8414 rather than re-using vectors from the forward and backward searches.
8415 This option has no effect without B-frames.
8416 .PD 0
8417 .RSs
8418 .IPs 0
8419 Disabled (default).
8420 .IPs 1\-4
8421 Use a wider search (larger values are slower).
8423 .PD 1
8426 .B vpass=<1\-3>
8427 Activates internal two (or more) pass mode, only specify if you wish to
8428 use two (or more) pass encoding.
8429 .PD 0
8430 .RSs
8431 .IPs 1
8432 first pass (also see turbo)
8433 .IPs 2
8434 second pass
8435 .IPs 3
8436 Nth pass (second and subsequent passes of N-pass encoding)
8439 Here is how it works, and how to use it:
8441 The first pass (vpass=1) writes the statistics file.
8442 You might want to deactivate some CPU-hungry options, like "turbo"
8443 mode does.
8445 In two pass mode, the second pass (vpass=2) reads the statistics file and
8446 bases ratecontrol decisions on it.
8448 In N-pass mode, the second pass (vpass=3, that is not a typo)
8449 does both: It first reads the statistics, then overwrites them.
8450 You might want to backup divx2pass.log before doing this if there is
8451 any possibility that you will have to cancel MEncoder.
8452 You can use all encoding options, except very CPU-hungry options like "qns".
8454 You can run this same pass over and over to refine the encode.
8455 Each subsequent pass will use the statistics from the previous pass to improve.
8456 The final pass can include any CPU-hungry encoding options.
8458 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
8460 If you want a 3 or more pass encode, use vpass=1 for the first pass
8461 and then vpass=3 and then vpass=3 again and again until you are
8462 satisfied with the encode.
8464 .PD 1
8465 .sp 1
8467 huffyuv:
8469 .PD 0
8470 .RSs
8471 .IPs "pass 1"
8472 Saves statistics.
8473 .IPs "pass 2"
8474 Encodes with an optimal Huffman table based upon statistics
8475 from the first pass.
8477 .PD 1
8480 .B turbo (two pass only)
8481 Dramatically speeds up pass one using faster algorithms and disabling
8482 CPU-intensive options.
8483 This will probably reduce global PSNR a little bit (around 0.01dB) and
8484 change individual frame type and PSNR a little bit more (up to 0.03dB).
8487 .B aspect=<x/y>
8488 Store movie aspect internally, just like with MPEG files.
8489 Much nicer than rescaling, because quality is not decreased.
8490 Only MPlayer will play these files correctly, other players will display
8491 them with wrong aspect.
8492 The aspect parameter can be given as a ratio or a floating point number.
8493 .sp 1
8495 .I EXAMPLE:
8497 .RSs
8498 .PD 0
8499 .IPs "aspect=16/9 or aspect=1.78"
8500 .PD 1
8504 .B autoaspect
8505 Same as the aspect option, but automatically computes aspect, taking
8506 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
8507 filter chain.
8508 Does not incur a performance penalty, so you can safely leave it
8509 always on.
8512 .B vbitrate=<value>
8513 Specify bitrate (default: 800).
8515 .I WARNING:
8516 1kbit = 1000 bits
8517 .PD 0
8518 .RSs
8519 .IPs 4\-16000
8520 (in kbit)
8521 .IPs 16001\-24000000
8522 (in bit)
8524 .PD 1
8527 .B vratetol=<value>
8528 approximated file size tolerance in kbit.
8529 1000\-100000 is a sane range.
8530 (warning: 1kbit = 1000 bits)
8531 (default: 8000)
8533 .I NOTE:
8534 vratetol should not be too large during the second pass or there might
8535 be problems if vrc_(min|max)rate is used.
8538 .B vrc_maxrate=<value>
8539 maximum bitrate in kbit/\:sec
8540 (default: 0, unlimited)
8543 .B vrc_minrate=<value>
8544 minimum bitrate in kbit/\:sec
8545 (default: 0, unlimited)
8548 .B vrc_buf_size=<value>
8549 buffer size in kbit
8550 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
8551 917 for SVCD and 1835 for DVD.
8554 .B vrc_buf_aggressivity
8555 currently useless
8558 .B vrc_strategy
8559 Ratecontrol method.
8560 Note that some of the ratecontrol-affecting options will have no effect
8561 if vrc_strategy is not set to 0.
8562 .PD 0
8563 .RSs
8564 .IPs 0
8565 Use internal lavc ratecontrol (default).
8566 .IPs 1
8567 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
8568 with support for Xvid 1.1 or higher).
8570 .PD 1
8573 .B vb_qfactor=<\-31.0\-31.0>
8574 quantizer factor between B- and non-B-frames (default: 1.25)
8577 .B vi_qfactor=<\-31.0\-31.0>
8578 quantizer factor between I- and non-I-frames (default: 0.8)
8581 .B vb_qoffset=<\-31.0\-31.0>
8582 quantizer offset between B- and non-B-frames (default: 1.25)
8585 .B vi_qoffset=<\-31.0\-31.0>
8586 (default: 0.0)
8588 if v{b|i}_qfactor > 0
8590 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8592 else
8594 do normal ratecontrol (do not lock to next P-frame quantizer) and
8595 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8597 .I HINT:
8598 To do constant quantizer encoding with different quantizers for
8599 I/P- and B-frames you can use:
8600 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8603 .B vqblur=<0.0\-1.0> (pass one)
8604 Quantizer blur (default: 0.5), larger values will average the
8605 quantizer more over time (slower change).
8606 .PD 0
8607 .RSs
8608 .IPs 0.0
8609 Quantizer blur disabled.
8610 .IPs 1.0
8611 Average the quantizer over all previous frames.
8613 .PD 1
8616 .B vqblur=<0.0\-99.0> (pass two)
8617 Quantizer gaussian blur (default: 0.5), larger values will average
8618 the quantizer more over time (slower change).
8621 .B vqcomp=<0.0\-1.0>
8622 Quantizer compression, vrc_eq depends upon this (default: 0.5).
8623 .I NOTE:
8624 Perceptual quality will be optimal somewhere in between the range's extremes.
8627 .B vrc_eq=<equation>
8628 main ratecontrol equation
8630 .RSs
8631 .IPs 1+(tex/\:avgTex-1)*qComp
8632 approximately the equation of the old ratecontrol code
8633 .IPs tex^qComp
8634 with qcomp 0.5 or something like that (default)
8638 infix operators:
8640 .RSs
8641 .IPs +,\-,*,/,^
8645 variables:
8647 .RSs
8648 .IPs "tex\ \ "
8649 texture complexity
8650 .IPs iTex,pTex
8651 intra, non-intra texture complexity
8652 .IPs avgTex
8653 average texture complexity
8654 .IPs avgIITex
8655 average intra texture complexity in I-frames
8656 .IPs avgPITex
8657 average intra texture complexity in P-frames
8658 .IPs avgPPTex
8659 average non-intra texture complexity in P-frames
8660 .IPs avgBPTex
8661 average non-intra texture complexity in B-frames
8662 .IPs "mv\ \ \ "
8663 bits used for motion vectors
8664 .IPs fCode
8665 maximum length of motion vector in log2 scale
8666 .IPs iCount
8667 number of intra macroblocks / number of macroblocks
8668 .IPs "var\ \ "
8669 spatial complexity
8670 .IPs mcVar
8671 temporal complexity
8672 .IPs qComp
8673 qcomp from the command line
8674 .IPs "isI, isP, isB"
8675 Is 1 if picture type is I/P/B else 0.
8676 .IPs "Pi,E\ "
8677 See your favorite math book.
8681 functions:
8683 .RSs
8684 .IPs max(a,b),min(a,b)
8685 maximum / minimum
8686 .IPs gt(a,b)
8687 is 1 if a>b, 0 otherwise
8688 .IPs lt(a,b)
8689 is 1 if a<b, 0 otherwise
8690 .IPs eq(a,b)
8691 is 1 if a==b, 0 otherwise
8692 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8696 .B vrc_override=<options>
8697 User specified quality for specific parts (ending, credits, ...).
8698 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8699 <end-frame>, <quality>[/...]]:
8700 .PD 0
8701 .RSs
8702 .IPs "quality (2\-31)"
8703 quantizer
8704 .IPs "quality (\-500\-0)"
8705 quality correction in %
8707 .PD 1
8710 .B vrc_init_cplx=<0\-1000>
8711 initial complexity (pass 1)
8714 .B vrc_init_occupancy=<0.0\-1.0>
8715 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8718 .B vqsquish=<0|1>
8719 Specify how to keep the quantizer between qmin and qmax.
8720 .PD 0
8721 .RSs
8722 .IPs 0
8723 Use clipping.
8724 .IPs 1
8725 Use a nice differentiable function (default).
8727 .PD 1
8730 .B vlelim=<\-1000\-1000>
8731 Sets single coefficient elimination threshold for luminance.
8732 Negative values will also consider the DC coefficient (should be at least \-4
8733 or lower for encoding at quant=1):
8734 .PD 0
8735 .RSs
8736 .IPs 0
8737 disabled (default)
8738 .IPs \-4
8739 JVT recommendation
8741 .PD 1
8744 .B vcelim=<\-1000\-1000>
8745 Sets single coefficient elimination threshold for chrominance.
8746 Negative values will also consider the DC coefficient (should be at least \-4
8747 or lower for encoding at quant=1):
8748 .PD 0
8749 .RSs
8750 .IPs 0
8751 disabled (default)
8752 .IPs 7
8753 JVT recommendation
8755 .PD 1
8758 .B vstrict=<\-2|\-1|0|1>
8759 strict standard compliance
8760 .PD 0
8761 .RSs
8762 .IPs 0
8763 disabled
8764 .IPs 1
8765 Only recommended if you want to feed the output into the
8766 MPEG-4 reference decoder.
8767 .IPs \-1
8768 Allow libavcodec specific extensions (default).
8769 .IPs \-2
8770 Enables experimental codecs and features which may not be playable
8771 with future MPlayer versions (snow).
8773 .PD 1
8776 .B "vdpart\ "
8777 Data partitioning.
8778 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8779 unreliable channels (e.g.\& streaming over the internet).
8780 Each video packet will be encoded in 3 separate partitions:
8781 .PD 0
8782 .RSs
8783 .IPs "1. MVs"
8784 movement
8785 .IPs "2. DC coefficients"
8786 low res picture
8787 .IPs "3. AC coefficients"
8788 details
8790 .PD 1
8792 MV & DC are most important, losing them looks far worse than losing
8793 the AC and the 1. & 2. partition.
8794 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8795 will hit the AC partition much more often than the MV & DC partitions.
8796 Thus, the picture will look better with partitioning than without,
8797 as without partitioning an error will trash AC/\:DC/\:MV equally.
8801 .B vpsize=<0\-10000> (also see vdpart)
8802 Video packet size, improves error-resistance.
8803 .PD 0
8804 .RSs
8805 .IPs "0\ \ \ \ "
8806 disabled (default)
8807 .IPs 100\-1000
8808 good choice
8810 .PD 1
8813 .B "ss\ \ \ \ \ "
8814 slice structured mode for H.263+
8817 .B "gray\ \ \ "
8818 grayscale only encoding (faster)
8821 .B vfdct=<0\-10>
8822 DCT algorithm
8823 .PD 0
8824 .RSs
8825 .IPs 0
8826 Automatically select a good one (default).
8827 .IPs 1
8828 fast integer
8829 .IPs 2
8830 accurate integer
8831 .IPs 3
8833 .IPs 4
8834 mlib
8835 .IPs 5
8836 AltiVec
8837 .IPs 6
8838 floating point AAN
8840 .PD 1
8843 .B idct=<0\-99>
8844 IDCT algorithm
8846 .I NOTE:
8847 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
8848 .PD 0
8849 .RSs
8850 .IPs 0
8851 Automatically select a good one (default).
8852 .IPs 1
8853 JPEG reference integer
8854 .IPs 2
8855 simple
8856 .IPs 3
8857 simplemmx
8858 .IPs 4
8859 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
8860 .IPs 5
8862 .IPs 6
8863 mlib
8864 .IPs 7
8866 .IPs 8
8867 AltiVec
8868 .IPs 9
8870 .IPs 10
8871 simplearm
8872 .IPs 11
8873 H.264
8874 .IPs 12
8876 .IPs 13
8878 .IPs 14
8879 xvidmmx
8880 .IPs 15
8881 CAVS
8882 .IPs 16
8883 simplearmv5te
8884 .IPs 17
8885 simplearmv6
8887 .PD 1
8890 .B lumi_mask=<0.0\-1.0>
8891 Luminance masking is a 'psychosensory' setting that is supposed to
8892 make use of the fact that the human eye tends to notice fewer details
8893 in very bright parts of the picture.
8894 Luminance masking compresses bright areas stronger than medium ones,
8895 so it will save bits that can be spent again on other frames, raising
8896 overall subjective quality, while possibly reducing PSNR.
8898 .I WARNING:
8899 Be careful, overly large values can cause disastrous things.
8901 .I WARNING:
8902 Large values might look good on some monitors but may look horrible
8903 on other monitors.
8904 .PD 0
8905 .RSs
8906 .IPs "0.0\ \ "
8907 disabled (default)
8908 .IPs 0.0\-0.3
8909 sane range
8911 .PD 1
8914 .B dark_mask=<0.0\-1.0>
8915 Darkness masking is a 'psychosensory' setting that is supposed to
8916 make use of the fact that the human eye tends to notice fewer details
8917 in very dark parts of the picture.
8918 Darkness masking compresses dark areas stronger than medium ones,
8919 so it will save bits that can be spent again on other frames, raising
8920 overall subjective quality, while possibly reducing PSNR.
8922 .I WARNING:
8923 Be careful, overly large values can cause disastrous things.
8925 .I WARNING:
8926 Large values might look good on some monitors but may look horrible
8927 on other monitors / TV / TFT.
8928 .PD 0
8929 .RSs
8930 .IPs "0.0\ \ "
8931 disabled (default)
8932 .IPs 0.0\-0.3
8933 sane range
8935 .PD 1
8938 .B tcplx_mask=<0.0\-1.0>
8939 Temporal complexity masking (default: 0.0 (disabled)).
8940 Imagine a scene with a bird flying across the whole scene; tcplx_mask
8941 will raise the quantizers of the bird's macroblocks (thus decreasing their
8942 quality), as the human eye usually does not have time to see all the bird's
8943 details.
8944 Be warned that if the masked object stops (e.g.\& the bird lands) it is
8945 likely to look horrible for a short period of time, until the encoder
8946 figures out that the object is not moving and needs refined blocks.
8947 The saved bits will be spent on other parts of the video, which may increase
8948 subjective quality, provided that tcplx_mask is carefully chosen.
8951 .B scplx_mask=<0.0\-1.0>
8952 Spatial complexity masking.
8953 Larger values help against blockiness, if no deblocking filter is used for
8954 decoding, which is maybe not a good idea.
8956 Imagine a scene with grass (which usually has great spatial complexity),
8957 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
8958 macroblocks, thus decreasing its quality, in order to spend more bits on
8959 the sky and the house.
8961 .I HINT:
8962 Crop any black borders completely as they will reduce the quality
8963 of the macroblocks (also applies without scplx_mask).
8964 .PD 0
8965 .RSs
8966 .IPs "0.0\ \ "
8967 disabled (default)
8968 .IPs 0.0\-0.5
8969 sane range
8971 .PD 1
8972 .sp 1
8974 .I NOTE:
8975 This setting does not have the same effect as using a custom matrix that
8976 would compress high frequencies harder, as scplx_mask will reduce the
8977 quality of P blocks even if only DC is changing.
8978 The result of scplx_mask will probably not look as good.
8982 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
8983 Reduces the quality of inter blocks.
8984 This is equivalent to increasing the quality of intra blocks, because the
8985 same average bitrate will be distributed by the rate controller to the
8986 whole video sequence (default: 0.0 (disabled)).
8987 p_mask=1.0 doubles the bits allocated to each intra block.
8990 .B border_mask=<0.0\-1.0>
8991 border-processing for MPEG-style encoders.
8992 Border processing increases the quantizer for macroblocks which are less
8993 than 1/5th of the frame width/height away from the frame border,
8994 since they are often visually less important.
8997 .B "naq\ \ \ \ "
8998 Normalize adaptive quantization (experimental).
8999 When using adaptive quantization (*_mask), the average per-MB quantizer may no
9000 longer match the requested frame-level quantizer.
9001 Naq will attempt to adjust the per-MB quantizers to maintain the proper
9002 average.
9005 .B "ildct\ \ "
9006 Use interlaced DCT.
9009 .B "ilme\ \ \ "
9010 Use interlaced motion estimation (mutually exclusive with qpel).
9013 .B "alt\ \ \ \ "
9014 Use alternative scantable.
9017 .B "top=<\-1\-1>\ \ \ "
9018 .PD 0
9019 .RSs
9020 .IPs \-1
9021 automatic
9022 .IPs 0
9023 bottom field first
9024 .IPs 1
9025 top field first
9027 .PD 1
9030 .B format=<value>
9031 .PD 0
9032 .RSs
9033 .IPs "YV12\ "
9034 default
9035 .IPs "444P\ "
9036 for ffv1
9037 .IPs "422P\ "
9038 for HuffYUV, lossless JPEG, dv and ffv1
9039 .IPs "411P\ "
9040 for lossless JPEG, dv and ffv1
9041 .IPs "YVU9\ "
9042 for lossless JPEG, ffv1 and svq1
9043 .IPs "BGR32"
9044 for lossless JPEG and ffv1
9046 .PD 1
9049 .B "pred\ \ \ "
9050 (for HuffYUV)
9051 .PD 0
9052 .RSs
9053 .IPs 0
9054 left prediction
9055 .IPs 1
9056 plane/\:gradient prediction
9057 .IPs 2
9058 median prediction
9060 .PD 1
9063 .B "pred\ \ \ "
9064 (for lossless JPEG)
9065 .PD 0
9066 .RSs
9067 .IPs 0
9068 left prediction
9069 .IPs 1
9070 top prediction
9071 .IPs 2
9072 topleft prediction
9073 .IPs 3
9074 plane/\:gradient prediction
9075 .IPs 6
9076 mean prediction
9078 .PD 1
9081 .B "coder\ \ "
9082 (for ffv1)
9083 .PD 0
9084 .RSs
9085 .IPs 0
9086 vlc coding (Golomb-Rice)
9087 .IPs 1
9088 arithmetic coding (CABAC)
9090 .PD 1
9093 .B context
9094 (for ffv1)
9095 .PD 0
9096 .RSs
9097 .IPs 0
9098 small context model
9099 .IPs 1
9100 large context model
9102 .PD 1
9103 .sp 1
9105 (for ffvhuff)
9107 .PD 0
9108 .RSs
9109 .IPs 0
9110 predetermined Huffman tables (builtin or two pass)
9111 .IPs 1
9112 adaptive Huffman tables
9114 .PD 1
9117 .B "qpel\ \ \ "
9118 Use quarter pel motion compensation (mutually exclusive with ilme).
9120 .I HINT:
9121 This seems only useful for high bitrate encodings.
9124 .B mbcmp=<0\-2000>
9125 Sets the comparison function for the macroblock decision, has only
9126 an effect if mbd=0.
9127 This is also used for some motion search functions, in which case
9128 it has an effect regardless of mbd setting.
9129 .PD 0
9130 .RSs
9131 .IPs "0 (SAD)"
9132 sum of absolute differences, fast (default)
9133 .IPs "1 (SSE)"
9134 sum of squared errors
9135 .IPs "2 (SATD)"
9136 sum of absolute Hadamard transformed differences
9137 .IPs "3 (DCT)"
9138 sum of absolute DCT transformed differences
9139 .IPs "4 (PSNR)"
9140 sum of squared quantization errors (avoid, low quality)
9141 .IPs "5 (BIT)"
9142 number of bits needed for the block
9143 .IPs "6 (RD)"
9144 rate distortion optimal, slow
9145 .IPs "7 (ZERO)"
9147 .IPs "8 (VSAD)"
9148 sum of absolute vertical differences
9149 .IPs "9 (VSSE)"
9150 sum of squared vertical differences
9151 .IPs "10 (NSSE)"
9152 noise preserving sum of squared differences
9153 .IPs "11 (W53)"
9154 5/3 wavelet, only used in snow
9155 .IPs "12 (W97)"
9156 9/7 wavelet, only used in snow
9157 .IPs "+256\ "
9158 Also use chroma, currently does not work (correctly) with B-frames.
9160 .PD 1
9163 .B ildctcmp=<0\-2000>
9164 Sets the comparison function for interlaced DCT decision
9165 (see mbcmp for available comparison functions).
9168 .B precmp=<0\-2000>
9169 Sets the comparison function for motion estimation pre pass
9170 (see mbcmp for available comparison functions) (default: 0).
9173 .B cmp=<0\-2000>
9174 Sets the comparison function for full pel motion estimation
9175 (see mbcmp for available comparison functions) (default: 0).
9178 .B subcmp=<0\-2000>
9179 Sets the comparison function for sub pel motion estimation
9180 (see mbcmp for available comparison functions) (default: 0).
9183 .B skipcmp=<0\-2000>
9184 FIXME: Document this.
9187 .B nssew=<0\-1000000>
9188 This setting controls NSSE weight, where larger weights will result in
9189 more noise.
9190 0 NSSE is identical to SSE
9191 You may find this useful if you prefer to keep some noise in your encoded
9192 video rather than filtering it away before encoding (default: 8).
9195 .B predia=<\-99\-6>
9196 diamond type and size for motion estimation pre-pass
9199 .B dia=<\-99\-6>
9200 Diamond type & size for motion estimation.
9201 Motion search is an iterative process.
9202 Using a small diamond does not limit the search to finding only small
9203 motion vectors.
9204 It is just somewhat more likely to stop before finding the very best motion
9205 vector, especially when noise is involved.
9206 Bigger diamonds allow a wider search for the best motion vector, thus are
9207 slower but result in better quality.
9209 Big normal diamonds are better quality than shape-adaptive diamonds.
9211 Shape-adaptive diamonds are a good tradeoff between speed and quality.
9213 .I NOTE:
9214 The sizes of the normal diamonds and shape adaptive ones do not have
9215 the same meaning.
9216 .RSs
9217 .IPs \-3
9218 shape adaptive (fast) diamond with size 3
9219 .IPs \-2
9220 shape adaptive (fast) diamond with size 2
9221 .IPs \-1
9222 uneven multi-hexagon search (slow)
9223 .IPs  1
9224 normal size=1 diamond (default) =EPZS type diamond
9227       0
9228      000
9229       0
9231 .IPs 2
9232 normal size=2 diamond
9235       0
9236      000
9237     00000
9238      000
9239       0
9244 .B "trell\ \ "
9245 Trellis searched quantization.
9246 This will find the optimal encoding for each 8x8 block.
9247 Trellis searched quantization is quite simply an optimal quantization in
9248 the PSNR versus bitrate sense (Assuming that there would be no rounding
9249 errors introduced by the IDCT, which is obviously not the case.).
9250 It simply finds a block for the minimum of error and lambda*bits.
9251 .PD 0
9252 .RSs
9253 .IPs lambda
9254 quantization parameter (QP) dependent constant
9255 .IPs "bits\ "
9256 amount of bits needed to encode the block
9257 .IPs error
9258 sum of squared errors of the quantization
9260 .PD 1
9263 .B "cbp\ \ \ \ "
9264 Rate distorted optimal coded block pattern.
9265 Will select the coded block pattern which minimizes distortion + lambda*rate.
9266 This can only be used together with trellis quantization.
9269 .B "mv0\ \ \ \ "
9270 Try to encode each MB with MV=<0,0> and choose the better one.
9271 This has no effect if mbd=0.
9274 .B mv0_threshold=<any non-negative integer>
9275 When surrounding motion vectors are <0,0> and the motion estimation
9276 score of the current block is less than mv0_threshold, <0,0> is used for
9277 the motion vector and further motion estimation is skipped (default:
9278 256).
9279 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
9280 possibly make the encoded video look slightly better; raising
9281 mv0_threshold past 320 results in diminished PSNR and visual quality.
9282 Higher values speed up encoding very slightly (usually less than 1%,
9283 depending on the other options used).
9285 .I NOTE:
9286 This option does not require mv0 to be enabled.
9289 .B qprd (mbd=2 only)
9290 rate distorted optimal quantization parameter (QP) for the given
9291 lambda of each macroblock
9294 .B last_pred=<0\-99>
9295 amount of motion predictors from the previous frame
9296 .PD 0
9297 .RSs
9298 .IPs 0
9299 (default)
9300 .IPs a
9301 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
9302 previous frame.
9304 .PD 1
9307 .B preme=<0\-2>
9308 motion estimation pre-pass
9309 .PD 0
9310 .RSs
9311 .IPs 0
9312 disabled
9313 .IPs 1
9314 only after I-frames (default)
9315 .IPs 2
9316 always
9318 .PD 1
9321 .B subq=<1\-8>
9322 subpel refinement quality (for qpel) (default: 8 (high quality))
9324 .I NOTE:
9325 This has a significant effect on speed.
9328 .B refs=<1\-8>
9329 number of reference frames to consider for motion compensation
9330 (Snow only) (default: 1)
9333 .B "psnr\ \ \ "
9334 print the PSNR (peak signal to noise ratio) for the whole video after encoding
9335 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
9336 Returned values are in dB (decibel), the higher the better.
9339 .B mpeg_quant
9340 Use MPEG quantizers instead of H.263.
9343 .B "aic\ \ \ \ "
9344 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
9345 This will improve quality very slightly (around 0.02 dB PSNR) and slow
9346 down encoding very slightly (about 1%).
9348 .I NOTE:
9349 vqmin should be 8 or larger for H.263+ AIC.
9352 .B "aiv\ \ \ \ "
9353 alternative inter vlc for H.263+
9356 .B "umv\ \ \ \ "
9357 unlimited MVs (H.263+ only)
9358 Allows encoding of arbitrarily long MVs.
9361 .B ibias=<\-256\-256>
9362 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
9363 H.263 style quantizer default: 0)
9365 .I NOTE:
9366 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9367 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9370 .B pbias=<\-256\-256>
9371 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
9372 H.263 style quantizer default: \-64)
9374 .I NOTE:
9375 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9376 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9378 .I HINT:
9379 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
9382 .B nr=<0\-100000>
9383 Noise reduction, 0 means disabled.
9384 0\-600 is a useful range for typical content, but you may want to turn it
9385 up a bit more for very noisy content (default: 0).
9386 Given its small impact on speed, you might want to prefer to use this over
9387 filtering noise away with video filters like denoise3d or hqdn3d.
9390 .B qns=<0\-3>
9391 Quantizer noise shaping.
9392 Rather than choosing quantization to most closely match the source video
9393 in the PSNR sense, it chooses quantization such that noise (usually ringing)
9394 will be masked by similar-frequency content in the image.
9395 Larger values are slower but may not result in better quality.
9396 This can and should be used together with trellis quantization, in which case
9397 the trellis quantization (optimal for constant weight) will be used as
9398 startpoint for the iterative search.
9399 .PD 0
9400 .RSs
9401 .IPs 0
9402 disabled (default)
9403 .IPs 1
9404 Only lower the absolute value of coefficients.
9405 .IPs 2
9406 Only change coefficients before the last non-zero coefficient + 1.
9407 .IPs 3
9408 Try all.
9410 .PD 1
9413 .B inter_matrix=<comma separated matrix>
9414 Use custom inter matrix.
9415 It needs a comma separated string of 64 integers.
9418 .B intra_matrix=<comma separated matrix>
9419 Use custom intra matrix.
9420 It needs a comma separated string of 64 integers.
9423 .B vqmod_amp
9424 experimental quantizer modulation
9427 .B vqmod_freq
9428 experimental quantizer modulation
9431 .B "dc\ \ \ \ \ "
9432 intra DC precision in bits (default: 8).
9433 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
9436 .B cgop (also see sc_threshold)
9437 Close all GOPs.
9438 Currently it only works if scene change detection is disabled
9439 (sc_threshold=1000000000).
9442 .B "gmc\ \ \ \ "
9443 Enable Global Motion Compensation.
9446 .B (no)lowdelay
9447 Sets the low delay flag for MPEG-1/2 (disables B-frames).
9450 .B vglobal=<0\-3>
9451 Control writing global video headers.
9452 .PD 0
9453 .RSs
9454 .IPs 0
9455 Codec decides where to write global headers (default).
9456 .IPs 1
9457 Write global headers only in extradata (needed for .mp4/MOV/NUT).
9458 .IPs 2
9459 Write global headers only in front of keyframes.
9460 .IPs 3
9461 Combine 1 and 2.
9463 .PD 1
9466 .B aglobal=<0\-3>
9467 Same as vglobal for audio headers.
9470 .B level=<value>
9471 Set CodecContext Level.
9472 Use 31 or 41 to play video on a Playstation 3.
9475 .B skip_exp=<0\-1000000>
9476 FIXME: Document this.
9479 .B skip_factor=<0\-1000000>
9480 FIXME: Document this.
9483 .B skip_threshold=<0\-1000000>
9484 FIXME: Document this.
9487 .SS nuv (\-nuvopts)
9489 Nuppel video is based on RTJPEG and LZO.
9490 By default frames are first encoded with RTJPEG and then compressed with LZO,
9491 but it is possible to disable either or both of the two passes.
9492 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
9493 or the default LZO compressed RTJPEG.
9495 .I NOTE:
9496 The nuvrec documentation contains some advice and examples about the
9497 settings to use for the most common TV encodings.
9500 .B c=<0\-20>
9501 chrominance threshold (default: 1)
9504 .B l=<0\-20>
9505 luminance threshold (default: 1)
9508 .B "lzo\ \ \ \ "
9509 Enable LZO compression (default).
9512 .B "nolzo\ \ "
9513 Disable LZO compression.
9516 .B q=<3\-255>
9517 quality level (default: 255)
9520 .B "raw \ \ \ "
9521 Disable RTJPEG encoding.
9524 .B "rtjpeg\ "
9525 Enable RTJPEG encoding (default).
9528 .SS xvidenc (\-xvidencopts)
9530 There are three modes available: constant bitrate (CBR), fixed quantizer and
9531 two pass.
9534 .B pass=<1|2>
9535 Specify the pass in two pass mode.
9538 .B turbo (two pass only)
9539 Dramatically speeds up pass one using faster algorithms and disabling
9540 CPU-intensive options.
9541 This will probably reduce global PSNR a little bit and change individual
9542 frame type and PSNR a little bit more.
9545 .B bitrate=<value> (CBR or two pass mode)
9546 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
9547 if >16000.
9548 If <value> is negative, Xvid will use its absolute value as the target size
9549 (in kBytes) of the video and compute the associated bitrate automagically
9550 (default: 687 kbits/s).
9553 .B fixed_quant=<1\-31>
9554 Switch to fixed quantizer mode and specify the quantizer to be used.
9557 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
9558 User specified quality for specific parts (ending, credits, ...).
9559 Each zone is <start-frame>,<mode>,<value> where <mode> may be
9560 .PD 0
9561 .RSs
9562 .IPs "q"
9563 Constant quantizer override, where value=<2.0\-31.0>
9564 represents the quantizer value.
9565 .IPs "w"
9566 Ratecontrol weight override, where value=<0.01\-2.00>
9567 represents the quality correction in %.
9569 .PD 1
9570 .sp 1
9572 .I EXAMPLE:
9574 .PD 0
9575 .RSs
9576 .IPs zones=90000,q,20
9577 Encodes all frames starting with frame 90000 at constant quantizer 20.
9578 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9579 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9580 up to the end at constant quantizer 20.
9581 Note that the second zone is needed to delimit the first zone, as
9582 without it everything up until frame 89999 would be encoded at 10%
9583 bitrate.
9585 .PD 1
9588 .B me_quality=<0\-6>
9589 This option controls the motion estimation subsystem.
9590 The higher the value, the more precise the estimation should be (default: 6).
9591 The more precise the motion estimation is, the more bits can be saved.
9592 Precision is gained at the expense of CPU time so decrease this setting if
9593 you need realtime encoding.
9596 .B (no)qpel
9597 MPEG-4 uses a half pixel precision for its motion search by default.
9598 The standard proposes a mode where encoders are allowed to use quarter
9599 pixel precision.
9600 This option usually results in a sharper image.
9601 Unfortunately it has a great impact on bitrate and sometimes the
9602 higher bitrate use will prevent it from giving a better image
9603 quality at a fixed bitrate.
9604 It is better to test with and without this option and see whether it
9605 is worth activating.
9608 .B (no)gmc
9609 Enable Global Motion Compensation, which makes Xvid generate special
9610 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9611 Whether or not the use of this option will save bits is highly
9612 dependent on the source material.
9615 .B (no)trellis
9616 Trellis Quantization is a kind of adaptive quantization method that
9617 saves bits by modifying quantized coefficients to make them more
9618 compressible by the entropy encoder.
9619 Its impact on quality is good, and if VHQ uses too much CPU for you,
9620 this setting can be a good alternative to save a few bits (and gain
9621 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9624 .B (no)cartoon
9625 Activate this if your encoded sequence is an anime/\:cartoon.
9626 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9627 frame types and motion vectors for flat looking cartoons.
9630 .B (no)chroma_me
9631 The usual motion estimation algorithm uses only the luminance information to
9632 find the best motion vector.
9633 However for some video material, using the chroma planes can help find
9634 better vectors.
9635 This setting toggles the use of chroma planes for motion estimation
9636 (default: on).
9639 .B (no)chroma_opt
9640 Enable a chroma optimizer prefilter.
9641 It will do some extra magic on color information to minimize the
9642 stepped-stairs effect on edges.
9643 It will improve quality at the cost of encoding speed.
9644 It reduces PSNR by nature, as the mathematical deviation to the original
9645 picture will get bigger, but the subjective image quality will raise.
9646 Since it works with color information, you might want to turn it off when
9647 encoding in grayscale.
9650 .B (no)hq_ac
9651 Activates high-quality prediction of AC coefficients for intra frames from
9652 neighbor blocks (default: on).
9655 .B vhq=<0\-4>
9656 The motion search algorithm is based on a search in the usual color domain
9657 and tries to find a motion vector that minimizes the difference between the
9658 reference frame and the encoded frame.
9659 With this setting activated, Xvid will also use the frequency domain (DCT)
9660 to search for a motion vector that minimizes not only the spatial
9661 difference but also the encoding length of the block.
9662 Fastest to slowest:
9663 .PD 0
9664 .RSs
9665 .IPs 0
9667 .IPs 1
9668 mode decision (inter/\:intra MB) (default)
9669 .IPs 2
9670 limited search
9671 .IPs 3
9672 medium search
9673 .IPs 4
9674 wide search
9676 .PD 1
9679 .B (no)lumi_mask
9680 Adaptive quantization allows the macroblock quantizers to vary inside
9681 each frame.
9682 This is a 'psychosensory' setting that is supposed to make use of the
9683 fact that the human eye tends to notice fewer details in very bright
9684 and very dark parts of the picture.
9685 It compresses those areas more strongly than medium ones, which will
9686 save bits that can be spent again on other frames, raising overall
9687 subjective quality and possibly reducing PSNR.
9690 .B (no)grayscale
9691 Make Xvid discard chroma planes so the encoded video is grayscale only.
9692 Note that this does not speed up encoding, it just prevents chroma data
9693 from being written in the last stage of encoding.
9696 .B (no)interlacing
9697 Encode the fields of interlaced video material.
9698 Turn this option on for interlaced content.
9700 .I NOTE:
9701 Should you rescale the video, you would need an interlace-aware resizer,
9702 which you can activate with \-vf scale=<width>:<height>:1.
9705 .B min_iquant=<0\-31>
9706 minimum I-frame quantizer (default: 2)
9709 .B max_iquant=<0\-31>
9710 maximum I-frame quantizer (default: 31)
9713 .B min_pquant=<0\-31>
9714 minimum P-frame quantizer (default: 2)
9717 .B max_pquant=<0\-31>
9718 maximum P-frame quantizer (default: 31)
9721 .B min_bquant=<0\-31>
9722 minimum B-frame quantizer (default: 2)
9725 .B max_bquant=<0\-31>
9726 maximum B-frame quantizer (default: 31)
9729 .B min_key_interval=<value> (two pass only)
9730 minimum interval between keyframes (default: 0)
9733 .B max_key_interval=<value>
9734 maximum interval between keyframes (default: 10*fps)
9737 .B quant_type=<h263|mpeg>
9738 Sets the type of quantizer to use.
9739 For high bitrates, you will find that MPEG quantization preserves more detail.
9740 For low bitrates, the smoothing of H.263 will give you less block noise.
9741 When using custom matrices, MPEG quantization
9742 .B must
9743 be used.
9746 .B quant_intra_matrix=<filename>
9747 Load a custom intra matrix file.
9748 You can build such a file with xvid4conf's matrix editor.
9751 .B quant_inter_matrix=<filename>
9752 Load a custom inter matrix file.
9753 You can build such a file with xvid4conf's matrix editor.
9756 .B keyframe_boost=<0\-1000> (two pass mode only)
9757 Shift some bits from the pool for other frame types to intra frames,
9758 thus improving keyframe quality.
9759 This amount is an extra percentage, so a value of 10 will give
9760 your keyframes 10% more bits than normal
9761 (default: 0).
9764 .B kfthreshold=<value> (two pass mode only)
9765 Works together with kfreduction.
9766 Determines the minimum distance below which you consider that
9767 two frames are considered consecutive and treated differently
9768 according to kfreduction
9769 (default: 10).
9772 .B kfreduction=<0\-100> (two pass mode only)
9773 The above two settings can be used to adjust the size of keyframes that
9774 you consider too close to the first (in a row).
9775 kfthreshold sets the range in which keyframes are reduced, and
9776 kfreduction determines the bitrate reduction they get.
9777 The last I-frame will get treated normally
9778 (default: 30).
9781 .B max_bframes=<0\-4>
9782 Maximum number of B-frames to put between I/P-frames (default: 2).
9785 .B bquant_ratio=<0\-1000>
9786 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9789 .B bquant_offset=<\-1000\-1000>
9790 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9793 .B bf_threshold=<\-255\-255>
9794 This setting allows you to specify what priority to place on the use of
9795 B-frames.
9796 The higher the value, the higher the probability of B-frames being used
9797 (default: 0).
9798 Do not forget that B-frames usually have a higher quantizer, and therefore
9799 aggressive production of B-frames may cause worse visual quality.
9802 .B (no)closed_gop
9803 This option tells Xvid to close every GOP (Group Of Pictures bounded
9804 by two I-frames), which makes GOPs independent from each other.
9805 This just implies that the last frame of the GOP is either a P-frame or a
9806 N-frame but not a B-frame.
9807 It is usually a good idea to turn this option on (default: on).
9810 .B (no)packed
9811 This option is meant to solve frame-order issues when encoding to
9812 container formats like AVI that cannot cope with out-of-order frames.
9813 In practice, most decoders (both software and hardware) are able to deal
9814 with frame-order themselves, and may get confused when this option is
9815 turned on, so you can safely leave if off, unless you really know what
9816 you are doing.
9818 .I WARNING:
9819 This will generate an illegal bitstream, and will not be
9820 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
9822 .I WARNING:
9823 This will also store a fake DivX version in the file so the bug
9824 autodetection of some decoders might be confused.
9827 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
9828 This setting allows the creation of variable framerate video streams.
9829 The value of the setting specifies a threshold under which, if the
9830 difference of the following frame to the previous frame is below or equal
9831 to this threshold, a frame gets not coded (a so called n-vop is placed
9832 in the stream).
9833 On playback, when reaching an n-vop the previous frame will be displayed.
9835 .I WARNING:
9836 Playing with this setting may result in a jerky video, so use it at your
9837 own risks!
9840 .B rc_reaction_delay_factor=<value>
9841 This parameter controls the number of frames the CBR rate controller
9842 will wait before reacting to bitrate changes and compensating for them
9843 to obtain a constant bitrate over an averaging range of frames.
9846 .B rc_averaging_period=<value>
9847 Real CBR is hard to achieve.
9848 Depending on the video material, bitrate can be variable, and hard to predict.
9849 Therefore Xvid uses an averaging period for which it guarantees a given
9850 amount of bits (minus a small variation).
9851 This settings expresses the "number of frames" for which Xvid averages
9852 bitrate and tries to achieve CBR.
9855 .B rc_buffer=<value>
9856 size of the rate control buffer
9859 .B curve_compression_high=<0\-100>
9860 This setting allows Xvid to take a certain percentage of bits away from
9861 high bitrate scenes and give them back to the bit reservoir.
9862 You could also use this if you have a clip with so many bits allocated
9863 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
9864 (default: 0).
9867 .B curve_compression_low=<0\-100>
9868 This setting allows Xvid to give a certain percentage of extra bits to the
9869 low bitrate scenes, taking a few bits from the entire clip.
9870 This might come in handy if you have a few low-bitrate scenes that are
9871 still blocky (default: 0).
9874 .B overflow_control_strength=<0\-100>
9875 During pass one of two pass encoding, a scaled bitrate curve is computed.
9876 The difference between that expected curve and the result obtained during
9877 encoding is called overflow.
9878 Obviously, the two pass rate controller tries to compensate for that overflow,
9879 distributing it over the next frames.
9880 This setting controls how much of the overflow is distributed every time
9881 there is a new frame.
9882 Low values allow lazy overflow control, big rate bursts are compensated for
9883 more slowly (could lead to lack of precision for small clips).
9884 Higher values will make changes in bit redistribution more abrupt, possibly
9885 too abrupt if you set it too high, creating artifacts (default: 5).
9887 .I NOTE:
9888 This setting impacts quality a lot, play with it carefully!
9891 .B max_overflow_improvement=<0\-100>
9892 During the frame bit allocation, overflow control may increase the frame
9893 size.
9894 This parameter specifies the maximum percentage by which the overflow
9895 control is allowed to increase the frame size, compared to the ideal curve
9896 allocation
9897 (default: 5).
9900 .B max_overflow_degradation=<0\-100>
9901 During the frame bit allocation, overflow control may decrease the frame
9902 size.
9903 This parameter specifies the maximum percentage by which the overflow
9904 control is allowed to decrease the frame size, compared to the ideal curve
9905 allocation
9906 (default: 5).
9909 .B container_frame_overhead=<0...>
9910 Specifies a frame average overhead per frame, in bytes.
9911 Most of the time users express their target bitrate for video w/o taking
9912 care of the video container overhead.
9913 This small but (mostly) constant overhead can cause the target file size
9914 to be exceeded.
9915 Xvid allows users to set the amount of overhead per frame the
9916 container generates (give only an average per frame).
9917 0 has a special meaning, it lets Xvid use its own default values
9918 (default: 24 \- AVI average overhead).
9921 .B profile=<profile_name>
9922 Restricts options and VBV (peak bitrate over a short period) according to
9923 the Simple, Advanced Simple and DivX profiles.
9924 The resulting videos should be playable on standalone players adhering to these
9925 profile specifications.
9926 .PD 0
9927 .RSs
9928 .IPs unrestricted
9929 no restrictions (default)
9930 .IPs "sp0\ \ "
9931 simple profile at level 0
9932 .IPs "sp1\ \ "
9933 simple profile at level 1
9934 .IPs "sp2\ \ "
9935 simple profile at level 2
9936 .IPs "sp3\ \ "
9937 simple profile at level 3
9938 .IPs "asp0\ "
9939 advanced simple profile at level 0
9940 .IPs "asp1\ "
9941 advanced simple profile at level 1
9942 .IPs "asp2\ "
9943 advanced simple profile at level 2
9944 .IPs "asp3\ "
9945 advanced simple profile at level 3
9946 .IPs "asp4\ "
9947 advanced simple profile at level 4
9948 .IPs "asp5\ "
9949 advanced simple profile at level 5
9950 .IPs dxnhandheld
9951 DXN handheld profile
9952 .IPs dxnportntsc
9953 DXN portable NTSC profile
9954 .IPs dxnportpal
9955 DXN portable PAL profile
9956 .IPs dxnhtntsc
9957 DXN home theater NTSC profile
9958 .IPs dxnhtpal
9959 DXN home theater PAL profile
9960 .IPs dxnhdtv
9961 DXN HDTV profile
9963 .PD 1
9965 .I NOTE:
9966 These profiles should be used in conjunction with an appropriate \-ffourcc.
9967 Generally DX50 is applicable, as some players do not recognize Xvid but
9968 most recognize DivX.
9972 .B par=<mode>
9973 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
9974 the Display Aspect Ratio).
9975 PAR is the ratio of the width and height of a single pixel.
9976 So both are related like this: DAR = PAR * (width/height).
9978 MPEG-4 defines 5 pixel aspect ratios and one extended
9979 one, giving the opportunity to specify a specific pixel aspect
9980 ratio.
9981 5 standard modes can be specified:
9982 .PD 0
9983 .RSs
9984 .IPs vga11
9985 It is the usual PAR for PC content.
9986 Pixels are a square unit.
9987 .IPs pal43
9988 PAL standard 4:3 PAR.
9989 Pixels are rectangles.
9990 .IPs pal169
9991 same as above
9992 .IPs ntsc43
9993 same as above
9994 .IPs ntsc169
9995 same as above (Do not forget to give the exact ratio.)
9996 .IPs "ext\ \ "
9997 Allows you to specify your own pixel aspect ratio with par_width and
9998 par_height.
10000 .PD 1
10002 .I NOTE:
10003 In general, setting aspect and autoaspect options is enough.
10007 .B par_width=<1\-255> (par=ext only)
10008 Specifies the width of the custom pixel aspect ratio.
10011 .B par_height=<1\-255> (par=ext only)
10012 Specifies the height of the custom pixel aspect ratio.
10015 .B aspect=<x/y | f (float value)>
10016 Store movie aspect internally, just like MPEG files.
10017 Much nicer solution than rescaling, because quality is not decreased.
10018 MPlayer and a few others players will play these files correctly, others
10019 will display them with the wrong aspect.
10020 The aspect parameter can be given as a ratio or a floating point number.
10023 .B (no)autoaspect
10024 Same as the aspect option, but automatically computes aspect, taking
10025 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
10026 filter chain.
10029 .B "psnr\ \ \ "
10030 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
10031 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
10032 the current directory.
10033 Returned values are in dB (decibel), the higher the better.
10036 .B "debug\ \ "
10037 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
10038 file.)
10042 .sp 1
10043 The following option is only available in Xvid 1.1.x.
10046 .B bvhq=<0|1>
10047 This setting allows vector candidates for B-frames to be used for
10048 the encoding chosen using a rate distortion optimized operator,
10049 which is what is done for P-frames by the vhq option.
10050 This produces nicer-looking B-frames while incurring almost no
10051 performance penalty (default: 1).
10054 .sp 1
10055 The following option is only available in the 1.2.x version of Xvid.
10058 .B threads=<0\-n>
10059 Create n threads to run the motion estimation (default: 0).
10060 The maximum number of threads that can be used is the picture height
10061 divided by 16.
10064 .SS x264enc (\-x264encopts)
10067 .B bitrate=<value>
10068 Sets the average bitrate to be used in kbits/\:second (default: off).
10069 Since local bitrate may vary, this average may be inaccurate for
10070 very short videos (see ratetol).
10071 Constant bitrate can be achieved by combining this with vbv_maxrate,
10072 at significant reduction in quality.
10075 .B qp=<0\-51>
10076 This selects the quantizer to use for P-frames.
10077 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
10078 20\-40 is a useful range.
10079 Lower values result in better fidelity, but higher bitrates.
10080 0 is lossless.
10081 Note that quantization in H.264 works differently from MPEG-1/2/4:
10082 H.264's quantization parameter (QP) is on a logarithmic scale.
10083 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
10084 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
10087 .B crf=<1.0\-50.0>
10088 Enables constant quality mode, and selects the quality.
10089 The scale is similar to QP.
10090 Like the bitrate-based modes, this allows each frame to use a
10091 different QP based on the frame's complexity.
10094 .B pass=<1\-3>
10095 Enable 2 or 3-pass mode.
10096 It is recommended to always encode in 2 or 3-pass mode as it leads to a
10097 better bit distribution and improves overall quality.
10098 .PD 0
10099 .RSs
10100 .IPs 1
10101 first pass
10102 .IPs 2
10103 second pass (of two pass encoding)
10104 .IPs 3
10105 Nth pass (second and third passes of three pass encoding)
10108 Here is how it works, and how to use it:
10110 The first pass (pass=1) collects statistics on the video and writes them
10111 to a file.
10112 You might want to deactivate some CPU-hungry options, apart from the ones
10113 that are on by default.
10115 In two pass mode, the second pass (pass=2) reads the statistics file and
10116 bases ratecontrol decisions on it.
10118 In three pass mode, the second pass (pass=3, that is not a typo)
10119 does both: It first reads the statistics, then overwrites them.
10120 You can use all encoding options, except very CPU-hungry options.
10122 The third pass (pass=3) is the same as the second pass, except that it has
10123 the second pass' statistics to work from.
10124 You can use all encoding options, including CPU-hungry ones.
10126 The first pass may use either average bitrate or constant quantizer.
10127 ABR is recommended, since it does not require guessing a quantizer.
10128 Subsequent passes are ABR, and must specify bitrate.
10129 .REss
10132 .B turbo=<0\-2>
10133 Fast first pass mode.
10134 During the first pass of a two or more pass encode it is possible to gain
10135 speed by disabling some options with negligible or even no impact on the
10136 final pass output quality.
10137 .PD 0
10138 .RSs
10139 .IPs 0
10140 disabled (default)
10141 .IPs 1
10142 Reduce subq, frameref and disable some inter-macroblock partition analysis
10143 modes.
10144 .IPs 2
10145 Reduce subq and frameref to 1, use a diamond ME search and disable all
10146 partition analysis modes.
10149 Level 1 can increase first pass speed up to 2x with no change in the global
10150 PSNR of the final pass compared to a full quality first pass.
10152 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
10153 in the global PSNR of the final pass compared to a full quality first pass.
10154 .REss
10157 .B keyint=<value>
10158 Sets maximum interval between IDR-frames (default: 250).
10159 Larger values save bits, thus improve quality, at the cost of seeking
10160 precision.
10161 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
10162 values of keyint.
10165 .B keyint_min=<1\-keyint/2>
10166 Sets minimum interval between IDR-frames (default: 25).
10167 If scenecuts appear within this interval, they are still encoded as
10168 I-frames, but do not start a new GOP.
10169 In H.264, I-frames do not necessarily bound a closed GOP because it is
10170 allowable for a P-frame to be predicted from more frames than just the one
10171 frame before it (also see frameref).
10172 Therefore, I-frames are not necessarily seekable.
10173 IDR-frames restrict subsequent P-frames from referring to any frame
10174 prior to the IDR-frame.
10177 .B scenecut=<\-1\-100>
10178 Controls how aggressively to insert extra I-frames (default: 40).
10179 With small values of scenecut, the codec often has to force an I-frame
10180 when it would exceed keyint.
10181 Good values of scenecut may find a better location for the I-frame.
10182 Large values use more I-frames than necessary, thus wasting bits.
10183 \-1 disables scene-cut detection, so I-frames are inserted only once
10184 every other keyint frames, even if a scene-cut occurs earlier.
10185 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
10186 are just as big as I-frames, but do not reset the "keyint counter".
10189 .B (no)intra_refresh
10190 Periodic intra block refresh instead of keyframes (default: disabled).
10191 This option disables IDR-frames, and, instead, uses a moving vertical bar
10192 of intra-coded blocks. This reduces compression efficiency but benefits
10193 low-latency streaming and resilience to packet loss.
10196 .B frameref=<1\-16>
10197 Number of previous frames used as predictors in B- and P-frames (default: 3).
10198 This is effective in anime, but in live-action material the improvements
10199 usually drop off very rapidly above 6 or so reference frames.
10200 This has no effect on decoding speed, but does increase the memory needed for
10201 decoding.
10202 Some decoders can only handle a maximum of 15 reference frames.
10205 .B bframes=<0\-16>
10206 maximum number of consecutive B-frames between I- and P-frames (default: 3)
10209 .B (no)b_adapt
10210 Automatically decides when to use B-frames and how many, up to the maximum
10211 specified above (default: on).
10212 If this option is disabled, then the maximum number of B-frames is used.
10215 .B b_bias=<\-100\-100>
10216 Controls the decision performed by b_adapt.
10217 A higher b_bias produces more B-frames (default: 0).
10220 .B (no)b_pyramid
10221 Allows B-frames to be used as references for predicting other frames.
10222 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
10223 Without this option, B-frames follow the same pattern as MPEG-[124].
10224 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
10225 are predicted from I0 and P4.
10226 With this option, they are coded as I0 P4 B2 B1 B3.
10227 B2 is the same as above, but B1 is predicted from I0 and B2, and
10228 B3 is predicted from B2 and P4.
10229 This usually results in slightly improved compression, at almost no
10230 speed cost.
10231 However, this is an experimental option: it is not fully tuned and
10232 may not always help.
10233 Requires bframes >= 2.
10234 Disadvantage: increases decoding delay to 2 frames.
10237 .B (no)deblock
10238 Use deblocking filter (default: on).
10239 As it takes very little time compared to its quality gain, it is not
10240 recommended to disable it.
10243 .B deblock=<\-6\-6>,<\-6\-6>
10244 The first parameter is AlphaC0 (default: 0).
10245 This adjusts thresholds for the H.264 in-loop deblocking filter.
10246 First, this parameter adjusts the maximum amount of change that the filter is
10247 allowed to cause on any one pixel.
10248 Secondly, this parameter affects the threshold for difference across the
10249 edge being filtered.
10250 A positive value reduces blocking artifacts more, but will also smear details.
10252 The second parameter is Beta (default: 0).
10253 This affects the detail threshold.
10254 Very detailed blocks are not filtered, since the smoothing caused by the
10255 filter would be more noticeable than the original blocking.
10257 The default behavior of the filter almost always achieves optimal quality,
10258 so it is best to either leave it alone, or make only small adjustments.
10259 However, if your source material already has some blocking or noise which
10260 you would like to remove, it may be a good idea to turn it up a little bit.
10263 .B (no)cabac
10264 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
10265 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
10266 Unless you are looking for decoding speed, you should not disable it.
10269 .B qp_min=<1\-51> (ABR or two pass)
10270 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
10273 .B qp_max=<1\-51> (ABR or two pass)
10274 maximum quantizer (default: 51)
10277 .B qp_step=<1\-50> (ABR or two pass)
10278 maximum value by which the quantizer may be incremented/decremented between
10279 frames (default: 4)
10282 .B (no)mbtree
10283 Enable macroblock tree ratecontrol (default: enabled).
10284 Use a large lookahead to track temporal propagation of data and weight quality
10285 accordingly.
10286 In multi-pass mode, this writes to a separate stats file named
10287 <passlogfile>.mbtree.
10290 .B rc_lookahead=<0\-250>
10291 Adjust the mbtree lookahead distance (default: 40).
10292 Larger values will be slower and cause x264 to consume more memory, but can
10293 yield higher quality.
10296 .B ratetol=<0.1\-100.0> (ABR or two pass)
10297 allowed variance in average bitrate (no particular units) (default: 1.0)
10300 .B vbv_maxrate=<value> (ABR or two pass)
10301 maximum local bitrate, in kbits/\:second (default: disabled)
10304 .B vbv_bufsize=<value> (ABR or two pass)
10305 averaging period for vbv_maxrate, in kbits
10306 (default: none, must be specified if vbv_maxrate is enabled)
10309 .B vbv_init=<0.0\-1.0> (ABR or two pass)
10310 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
10313 .B ip_factor=<value>
10314 quantizer factor between I- and P-frames (default: 1.4)
10317 .B pb_factor=<value>
10318 quantizer factor between P- and B-frames (default: 1.3)
10321 .B qcomp=<0\-1> (ABR or two pass)
10322 quantizer compression (default: 0.6).
10323 A lower value makes the bitrate more constant,
10324 while a higher value makes the quantization parameter more constant.
10327 .B cplx_blur=<0\-999> (two pass only)
10328 Temporal blur of the estimated frame complexity, before curve compression
10329 (default: 20).
10330 Lower values allow the quantizer value to jump around more,
10331 higher values force it to vary more smoothly.
10332 cplx_blur ensures that each I-frame has quality comparable to the following
10333 P-frames, and ensures that alternating high and low complexity frames
10334 (e.g.\& low fps animation) do not waste bits on fluctuating quantizer.
10337 .B qblur=<0\-99> (two pass only)
10338 Temporal blur of the quantization parameter, after curve compression
10339 (default: 0.5).
10340 Lower values allow the quantizer value to jump around more,
10341 higher values force it to vary more smoothly.
10344 .B zones=<zone0>[/<zone1>[/...]]
10345 User specified quality for specific parts (ending, credits, ...).
10346 Each zone is <start-frame>,<end-frame>,<option> where option may be
10347 .PD 0
10348 .RSs
10349 .IPs "q=<0\-51>"
10350 quantizer
10351 .IPs "b=<0.01\-100.0>"
10352 bitrate multiplier
10354 .PD 1
10356 .I NOTE:
10357 The quantizer option is not strictly enforced.
10358 It affects only the planning stage of ratecontrol, and is still subject
10359 to overflow compensation and qp_min/qp_max.
10363 .B direct_pred=<name>
10364 Determines the type of motion prediction used for direct macroblocks
10365 in B-frames.
10366 .PD 0
10367 .RSs
10368 .IPs none
10369 Direct macroblocks are not used.
10370 .IPs spatial
10371 Motion vectors are extrapolated from neighboring blocks.
10372 (default)
10373 .IPs temporal
10374 Motion vectors are extrapolated from the following P-frame.
10375 .IPs auto
10376 The codec selects between spatial and temporal for each frame.
10378 .PD 1
10380 Spatial and temporal are approximately the same speed and PSNR,
10381 the choice between them depends on the video content.
10382 Auto is slightly better, but slower.
10383 Auto is most effective when combined with multipass.
10384 direct_pred=none is both slower and lower quality.
10388 .B weightp
10389 Weighted P-frame prediction mode (default: 2).
10390 .PD 0
10391 .RSs
10392 .IPs 0
10393 disabled (fastest)
10394 .IPs 1
10395 blind mode (slightly better quality)
10396 .IPs 2
10397 smart mode (best)
10399 .PD 1
10402 .B (no)weight_b
10403 Use weighted prediction in B-frames.
10404 Without this option, bidirectionally predicted macroblocks give
10405 equal weight to each reference frame.
10406 With this option, the weights are determined by the temporal position
10407 of the B-frame relative to the references.
10408 Requires bframes > 1.
10411 .B partitions=<list>
10412 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
10413 .PD 0
10414 .RSs
10415 .IPs p8x8
10416 Enable types p16x8, p8x16, p8x8.
10417 .IPs p4x4
10418 Enable types p8x4, p4x8, p4x4.
10419 p4x4 is recommended only with subq >= 5, and only at low resolutions.
10420 .IPs b8x8
10421 Enable types b16x8, b8x16, b8x8.
10422 .IPs i8x8
10423 Enable type i8x8.
10424 i8x8 has no effect unless 8x8dct is enabled.
10425 .IPs i4x4
10426 Enable type i4x4.
10427 .IPs all
10428 Enable all of the above types.
10429 .IPs none
10430 Disable all of the above types.
10432 .PD 1
10434 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
10435 are always enabled.
10437 The idea is to find the type and size that best describe a certain area
10438 of the picture.
10439 For example, a global pan is better represented by 16x16 blocks, while
10440 small moving objects are better represented by smaller blocks.
10444 .B (no)8x8dct
10445 Adaptive spatial transform size: allows macroblocks to choose between
10446 4x4 and 8x8 DCT.
10447 Also allows the i8x8 macroblock type.
10448 Without this option, only 4x4 DCT is used.
10451 .B me=<name>
10452 Select fullpixel motion estimation algorithm.
10453 .PD 0
10454 .RSs
10455 .IPs dia
10456 diamond search, radius 1 (fast)
10457 .IPs hex
10458 hexagon search, radius 2 (default)
10459 .IPs umh
10460 uneven multi-hexagon search (slow)
10461 .IPs esa
10462 exhaustive search (very slow, and no better than umh)
10464 .PD 1
10467 .B me_range=<4\-64>
10468 radius of exhaustive or multi-hexagon motion search (default: 16)
10471 .B subq=<0\-9>
10472 Adjust subpel refinement quality.
10473 This parameter controls quality versus speed tradeoffs involved in the motion
10474 estimation decision process.
10475 subq=5 can compress up to 10% better than subq=1.
10476 .PD 0
10477 .RSs
10478 .IPs 0
10479 Runs fullpixel precision motion estimation on all candidate
10480 macroblock types.
10481 Then selects the best type with SAD metric (faster than subq=1, not recommended
10482 unless you're looking for ultra-fast encoding).
10483 .IPs 1
10484 Does as 0, then refines the motion of that type to fast quarterpixel precision
10485 (fast).
10486 .IPs 2
10487 Runs halfpixel precision motion estimation on all candidate macroblock types.
10488 Then selects the best type with SATD metric.
10489 Then refines the motion of that type to fast quarterpixel precision.
10490 .IPs 3
10491 As 2, but uses a slower quarterpixel refinement.
10492 .IPs 4
10493 Runs fast quarterpixel precision motion estimation on all candidate
10494 macroblock types.
10495 Then selects the best type with SATD metric.
10496 Then finishes the quarterpixel refinement for that type.
10497 .IPs 5
10498 Runs best quality quarterpixel precision motion estimation on all
10499 candidate macroblock types, before selecting the best type.
10500 Also refines the two motion vectors used in bidirectional macroblocks with
10501 SATD metric, rather than reusing vectors from the forward and backward
10502 searches.
10503 .IPs 6
10504 Enables rate-distortion optimization of macroblock types in
10505 I- and P-frames.
10506 .IPs 7
10507 Enables rate-distortion optimization of macroblock types in all frames (default).
10508 .IPs 8
10509 Enables rate-distortion optimization of motion vectors and intra prediction modes in I- and P-frames.
10510 .IPs 9
10511 Enables rate-distortion optimization of motion vectors and intra prediction modes in all frames (best).
10513 .PD 1
10515 In the above, "all candidates" does not exactly mean all enabled types:
10516 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
10520 .B (no)chroma_me
10521 Takes into account chroma information during subpixel motion search
10522 (default: enabled).
10523 Requires subq>=5.
10526 .B (no)mixed_refs
10527 Allows each 8x8 or 16x8 motion partition to independently select a
10528 reference frame.
10529 Without this option, a whole macroblock must use the same reference.
10530 Requires frameref>1.
10533 .B trellis=<0\-2> (cabac only)
10534 rate-distortion optimal quantization
10535 .PD 0
10536 .RSs
10537 .IPs 0
10538 disabled
10539 .IPs 1
10540 enabled only for the final encode (default)
10541 .IPs 2
10542 enabled during all mode decisions (slow, requires subq>=6)
10544 .PD 1
10547 .B psy-rd=rd[,trell]
10548 Sets the strength of the psychovisual optimization.
10549 .PD 0
10550 .RSs
10551 .IPs rd=<0.0\-10.0>
10552 psy optimization strength (requires subq>=6) (default: 1.0)
10553 .IPs trell=<0.0\-10.0>
10554 trellis (requires trellis, experimental) (default: 0.0)
10556 .PD 1
10559 .B (no)psy
10560 Enable psychovisual optimizations that hurt PSNR and SSIM but ought to look
10561 better (default: enabled).
10564 .B deadzone_inter=<0\-32>
10565 Set the size of the inter luma quantization deadzone for non-trellis
10566 quantization (default: 21).
10567 Lower values help to preserve fine details and film grain (typically useful
10568 for high bitrate/quality encode), while higher values help filter out
10569 these details to save bits that can be spent again on other macroblocks
10570 and frames (typically useful for bitrate-starved encodes).
10571 It is recommended that you start by tweaking deadzone_intra before changing
10572 this parameter.
10575 .B deadzone_intra=<0\-32>
10576 Set the size of the intra luma quantization deadzone for non-trellis
10577 quantization (default: 11).
10578 This option has the same effect as deadzone_inter except that it affects
10579 intra frames.
10580 It is recommended that you start by tweaking this parameter before changing
10581 deadzone_inter.
10584 .B (no)fast_pskip
10585 Performs early skip detection in P-frames (default: enabled).
10586 This usually improves speed at no cost, but it can sometimes produce
10587 artifacts in areas with no details, like sky.
10590 .B (no)dct_decimate
10591 Eliminate dct blocks in P-frames containing only a small single coefficient
10592 (default: enabled).
10593 This will remove some details, so it will save bits that can be spent
10594 again on other frames, hopefully raising overall subjective quality.
10595 If you are compressing non-anime content with a high target bitrate, you
10596 may want to disable this to preserve as much detail as possible.
10599 .B nr=<0\-100000>
10600 Noise reduction, 0 means disabled.
10601 100\-1000 is a useful range for typical content, but you may want to turn it
10602 up a bit more for very noisy content (default: 0).
10603 Given its small impact on speed, you might want to prefer to use this over
10604 filtering noise away with video filters like denoise3d or hqdn3d.
10607 .B chroma_qp_offset=<\-12\-12>
10608 Use a different quantizer for chroma as compared to luma.
10609 Useful values are in the range <\-2\-2> (default: 0).
10612 .B aq_mode=<0\-2>
10613 Defines how adaptive quantization (AQ) distributes bits:
10614 .PD 0
10615 .RSs
10616 .IPs 0
10617 disabled
10618 .IPs 1
10619 Avoid moving bits between frames.
10620 .IPs 2
10621 Move bits between frames (by default).
10623 .PD 1
10626 .B aq_strength=<positive float value>
10627 Controls how much adaptive quantization (AQ) reduces blocking and blurring
10628 in flat and textured areas (default: 1.0).
10629 A value of 0.5 will lead to weak AQ and less details, when a value of 1.5
10630 will lead to strong AQ and more details.
10633 .B cqm=<flat|jvt|<filename>>
10634 Either uses a predefined custom quantization matrix or loads a JM format
10635 matrix file.
10636 .PD 0
10637 .RSs
10638 .IPs "flat\ "
10639 Use the predefined flat 16 matrix (default).
10640 .IPs "jvt\ \ "
10641 Use the predefined JVT matrix.
10642 .IPs <filename>
10643 Use the provided JM format matrix file.
10644 .PD 1
10647 .I NOTE:
10648 Windows CMD.EXE users may experience problems with parsing the command line
10649 if they attempt to use all the CQM lists.
10650 This is due to a command line length limitation.
10651 In this case it is recommended the lists be put into a JM format CQM
10652 file and loaded as specified above.
10656 .B cqm4iy=<list> (also see cqm)
10657 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10658 values in the 1\-255 range.
10661 .B cqm4ic=<list> (also see cqm)
10662 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10663 separated values in the 1\-255 range.
10666 .B cqm4py=<list> (also see cqm)
10667 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10668 values in the 1\-255 range.
10671 .B cqm4pc=<list> (also see cqm)
10672 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10673 separated values in the 1\-255 range.
10676 .B cqm8iy=<list> (also see cqm)
10677 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10678 values in the 1\-255 range.
10681 .B cqm8py=<list> (also see cqm)
10682 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10683 values in the 1\-255 range.
10686 .B level_idc=<10\-51>
10687 Set the bitstream's level as defined by annex A of the H.264 standard
10688 (default: 51 \- level 5.1).
10689 This is used for telling the decoder what capabilities it needs to support.
10690 Use this parameter only if you know what it means,
10691 and you have a need to set it.
10694 .B threads=<0\-16>
10695 Spawn threads to encode in parallel on multiple CPUs (default: 0).
10696 This has a slight penalty to compression quality.
10697 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10698 appropriate number of threads.
10701 .B (no)sliced_threads
10702 Use slice-based threading (default: disabled).
10703 Unlike normal threading, this option adds no encoding latency, but is slightly
10704 slower and less effective at compression.
10707 .B slice_max_size=<0 or positive integer>
10708 Maximum slice size in bytes (default: 0).
10709 A value of zero disables the maximum.
10712 .B slice_max_mbs=<0 or positive integer>
10713 Maximum slice size in number of macroblocks (default: 0).
10714 A value of zero disables the maximum.
10717 .B slices=<0 or positive integer>
10718 Maximum number of slices per frame (default: 0).
10719 A value of zero disables the maximum.
10722 .B sync_lookahead=<0\-250>
10723 Adjusts the size of the threaded lookahead buffer (default: 0).
10724 0 or 'auto' tells x264 to automatically determine buffer size.
10727 .B (no)deterministic
10728 Use only deterministic optimizations with multithreaded encoding (default:
10729 enabled).
10732 .B (no)global_header
10733 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10734 (default: disabled).
10735 Some players, such as the Sony PSP, require the use of this option.
10736 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10739 .B (no)interlaced
10740 Treat the video content as interlaced.
10743 .B (no)constrained_intra
10744 Enable constrained intra prediction (default: disabled).
10745 This significantly reduces compression, but is required for the base layer of
10746 SVC encodes.
10749 .B (no)aud
10750 Write access unit delimeters to the stream (default: disabled).
10751 Enable this only if your target container format requires access unit
10752 delimiters.
10755 .B overscan=<undef|show|crop>
10756 Include VUI overscan information in the stream (default: disabled).
10757 See doc/vui.txt in the x264 source code for more information.
10760 .B videoformat=<component|pal|ntsc|secam|mac|undef>
10761 Include VUI video format information in the stream (default: disabled).
10762 This is a purely informative setting for describing the original source.
10763 See doc/vui.txt in the x264 source code for more information.
10766 .B (no)fullrange
10767 Include VUI full range information in the stream (default: disabled).
10768 Use this option if your source video is not range limited.
10769 See doc/vui.txt in the x264 source code for more information.
10772 .B colorprim=<bt709|bt470m|bt470bg|smpte170m|smpte240m|film|undef>
10773 Include color primaries information (default: disabled).
10774 This can be used for color correction.
10775 See doc/vui.txt in the x264 source code for more information.
10778 .B transfer=<bt709|bt470m|bt470bg|linear|log100|log316|smpte170m|smpte240m>
10779 Include VUI transfer characteristics information in the stream
10780 (default: disabled).
10781 This can be used for color correction.
10782 See doc/vui.txt in the x264 source code for more information.
10785 .B colormatrix=<bt709|fcc|bt470bg|smpte170m|smpte240m|GBR|YCgCo>
10786 Include VUI matrix coefficients in the stream (default: disabled).
10787 This can be used for color correction.
10788 See doc/vui.txt in the x264 source code for more information.
10791 .B chromaloc=<0-5>
10792 Include VUI chroma sample location information in the stream (default:
10793 disabled).
10794 Use this option to ensure alignment of the chroma and luma planes after
10795 color space conversions.
10796 See doc/vui.txt in the x264 source code for more information.
10799 .B log=<\-1\-3>
10800 Adjust the amount of logging info printed to the screen.
10801 .PD 0
10802 .RSs
10803 .IPs "\-1"
10804 none
10805 .IPs " 0"
10806 Print errors only.
10807 .IPs " 1"
10808 warnings
10809 .IPs " 2"
10810 PSNR and other analysis statistics when the encode finishes (default)
10811 .IPs " 3"
10812 PSNR, QP, frametype, size, and other statistics for every frame
10814 .PD 1
10817 .B (no)psnr
10818 Print signal-to-noise ratio statistics.
10820 .I NOTE:
10821 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
10822 mathematically sound (they are simply the average of per-frame PSNRs).
10823 They are kept only for comparison to the JM reference codec.
10824 For all other purposes, please use either the 'Global' PSNR, or the per-frame
10825 PSNRs printed by log=3.
10828 .B (no)ssim
10829 Print the Structural Similarity Metric results.
10830 This is an alternative to PSNR, and may be better correlated with the
10831 perceived quality of the compressed video.
10834 .B (no)visualize
10835 Enable x264 visualizations during encoding.
10836 If the x264 on your system supports it, a new window will be opened during
10837 the encoding process, in which x264 will attempt to present an overview of
10838 how each frame gets encoded.
10839 Each block type on the visualized movie will be colored as follows:
10842 .B dump_yuv=<file name>
10843 Dump YUV frames to the specified file.
10844 For debugging use.
10845 .PD 0
10846 .RSs
10847 .IPs red/pink
10848 intra block
10849 .IPs "blue\ "
10850 inter block
10851 .IPs green
10852 skip block
10853 .IPs yellow
10854 B-block
10856 .PD 1
10858 This feature can be considered experimental and subject to change.
10859 In particular, it depends on x264 being compiled with visualizations enabled.
10860 Note that as of writing this, x264 pauses after encoding and visualizing
10861 each frame, waiting for the user to press a key, at which point the next
10862 frame will be encoded.
10866 .SS xvfw (\-xvfwopts)
10868 Encoding with Video for Windows codecs is mostly obsolete unless you wish
10869 to encode to some obscure fringe codec.
10872 .B codec=<name>
10873 The name of the binary codec file with which to encode.
10876 .B compdata=<file>
10877 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
10880 .SS MPEG muxer (\-mpegopts)
10882 The MPEG muxer can generate 5 types of streams, each of which has reasonable
10883 default parameters that the user can override.
10884 Generally, when generating MPEG files, it is advisable to disable
10885 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
10886 harddup and softskip video filters).
10888 .I EXAMPLE:
10889 .PD 0
10890 .RSs
10891 .IPs format=mpeg2:tsaf:vbitrate=8000
10893 .PD 1
10896 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
10897 stream format (default: mpeg2).
10898 pes1 and pes2 are very broken formats (no pack header and no padding),
10899 but VDR uses them; do not choose them unless you know exactly what you
10900 are doing.
10903 .B size=<up to 65535>
10904 Pack size in bytes, do not change unless you know exactly what
10905 you are doing (default: 2048).
10908 .B muxrate=<int>
10909 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
10910 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
10913 .B "tsaf\ \ \ "
10914 Sets timestamps on all frames, if possible; recommended when format=dvd.
10915 If dvdauthor complains with a message like "..audio sector out of range...",
10916 you probably did not enable this option.
10919 .B interleaving2
10920 Uses a better algorithm to interleave audio and video packets, based on the
10921 principle that the muxer will always try to fill the stream with the largest
10922 percentage of free space.
10925 .B vdelay=<1\-32760>
10926 Initial video delay time, in milliseconds (default: 0),
10927 use it if you want to delay video with respect to audio.
10928 It doesn't work with :drop.
10931 .B adelay=<1\-32760>
10932 Initial audio delay time, in milliseconds (default: 0),
10933 use it if you want to delay audio with respect to video.
10936 .B "drop\ \ \ "
10937 When used with vdelay the muxer drops the part of audio that was
10938 anticipated.
10941 .B vwidth, vheight=<1\-4095>
10942 Set the video width and height when video is MPEG-1/2.
10945 .B vpswidth, vpsheight=<1\-4095>
10946 Set pan and scan video width and height when video is MPEG-2.
10949 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
10950 Sets the display aspect ratio for MPEG-2 video.
10951 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
10954 .B vbitrate=<int>
10955 Sets the video bitrate in kbit/s for MPEG-1/2 video.
10958 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
10959 Sets the framerate for MPEG-1/2 video.
10960 This option will be ignored if used with the telecine option.
10963 .B telecine
10964 Enables 3:2 pulldown soft telecine mode: The muxer will make the
10965 video stream look like it was encoded at 30000/1001 fps.
10966 It only works with MPEG-2 video when the output framerate is
10967 24000/1001 fps, convert it with \-ofps if necessary.
10968 Any other framerate is incompatible with this option.
10971 .B film2pal
10972 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
10973 will make the video stream look like it was encoded at 25 fps.
10974 It only works with MPEG-2 video when the output framerate is
10975 24000/1001 fps, convert it with \-ofps if necessary.
10976 Any other framerate is incompatible with this option.
10979 .B tele_src and tele_dest
10980 Enables arbitrary telecining using Donand Graft's DGPulldown code.
10981 You need to specify the original and the desired framerate; the
10982 muxer will make the video stream look like it was encoded at
10983 the desired framerate.
10984 It only works with MPEG-2 video when the input framerate is smaller
10985 than the output framerate and the framerate increase is <= 1.5.
10986 .sp 1
10988 .I EXAMPLE:
10990 .PD 0
10991 .RSs
10992 .IPs tele_src=25,tele_dest=30000/1001
10993 PAL to NTSC telecining
10995 .PD 1
10998 .B vbuf_size=<40\-1194>
10999 Sets the size of the video decoder's buffer, expressed in kilobytes.
11000 Specify it only if the bitrate of the video stream is too high for
11001 the chosen format and if you know perfectly well what you are doing.
11002 A too high value may lead to an unplayable movie, depending on the player's
11003 capabilities.
11004 When muxing HDTV video a value of 400 should suffice.
11007 .B abuf_size=<4\-64>
11008 Sets the size of the audio decoder's buffer, expressed in kilobytes.
11009 The same principle as for vbuf_size applies.
11012 .SS FFmpeg libavformat demuxers (\-lavfdopts)
11015 .B analyzeduration=<value>
11016 Maximum length in seconds to analyze the stream properties.
11019 .B format=<value>
11020 Force a specific libavformat demuxer.
11023 .B o=<key>=<value>[,<key>=<value>[,...]]
11024 Pass AVOptions to libavformat demuxer.
11025 Note, a patch to make the o= unneeded and pass all unknown options through
11026 the AVOption system is welcome.
11027 A full list of AVOptions can be found in the FFmpeg manual.
11028 Note that some options may conflict with MPlayer/MEncoder options.
11029 .sp 1
11031 .I EXAMPLE:
11033 .RSs
11034 .PD 0
11035 .IPs o=ignidx
11036 .PD 1
11040 .B probesize=<value>
11041 Maximum amount of data to probe during the detection phase.
11042 In the case of MPEG-TS this value identifies the maximum number
11043 of TS packets to scan.
11046 .B cryptokey=<hexstring>
11047 Encryption key the demuxer should use.
11048 This is the raw binary data of the key converted to a hexadecimal string.
11051 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
11054 .B delay=<value>
11055 Currently only meaningful for MPEG[12]: Maximum allowed distance,
11056 in seconds, between the reference timer of the output stream (SCR)
11057 and the decoding timestamp (DTS) for any stream present
11058 (demux to decode delay).
11059 Default is 0.7 (as mandated by the standards defined by MPEG).
11060 Higher values require larger buffers and must not be used.
11063 .B format=<container_format>
11064 Override which container format to mux into
11065 (default: autodetect from output file extension).
11066 .PD 0
11067 .RSs
11068 .IPs "mpg\ \ "
11069 MPEG-1 systems and MPEG-2 PS
11070 .IPs "asf\ \ "
11071 Advanced Streaming Format
11072 .IPs "avi\ \ "
11073 Audio Video Interleave file
11074 .IPs "wav\ \ "
11075 Waveform Audio
11076 .IPs "swf\ \ "
11077 Macromedia Flash
11078 .IPs "flv\ \ "
11079 Macromedia Flash video files
11080 .IPs "rm\ \ \ "
11081 RealAudio and RealVideo
11082 .IPs "au\ \ \ "
11083 SUN AU format
11084 .IPs "nut\ \ "
11085 NUT open container format (experimental)
11086 .IPs "mov\ \ "
11087 QuickTime
11088 .IPs "mp4\ \ "
11089 MPEG-4 format
11090 .IPs "ipod\ "
11091 MPEG-4 format with extra header flags required by Apple iPod firmware
11092 .IPs "dv\ \ \ "
11093 Sony Digital Video container
11094 .IPs "matroska\ \ \ "
11095 Matroska
11097 .PD 1
11099 .B muxrate=<rate>
11100 Nominal bitrate of the multiplex, in bits per second;
11101 currently it is meaningful only for MPEG[12].
11102 Sometimes raising it is necessary in order to avoid "buffer underflows".
11105 .B o=<key>=<value>[,<key>=<value>[,...]]
11106 Pass AVOptions to libavformat muxer.
11107 Note, a patch to make the o= unneeded and pass all unknown options through
11108 the AVOption system is welcome.
11109 A full list of AVOptions can be found in the FFmpeg manual.
11110 Note that some options may conflict with MEncoder options.
11111 .sp 1
11113 .I EXAMPLE:
11115 .RSs
11116 .PD 0
11117 .IPs o=packetsize=100
11118 .PD 1
11122 .B packetsize=<size>
11123 Size, expressed in bytes, of the unitary packet for the chosen format.
11124 When muxing to MPEG[12] implementations the default values are:
11125 2324 for [S]VCD, 2048 for all others formats.
11128 .B preload=<distance>
11129 Currently only meaningful for MPEG[12]: Initial distance,
11130 in seconds, between the reference timer of the output stream (SCR)
11131 and the decoding timestamp (DTS) for any stream present
11132 (demux to decode delay).
11136 .\" --------------------------------------------------------------------------
11137 .\" environment variables
11138 .\" --------------------------------------------------------------------------
11140 .SH ENVIRONMENT VARIABLES
11142 There are a number of environment variables that can be used to
11143 control the behavior of MPlayer and MEncoder.
11146 .B MPLAYER_CHARSET (also see \-msgcharset)
11147 Convert console messages to the specified charset (default: autodetect).
11148 A value of "noconv" means no conversion.
11151 .B MPLAYER_HOME
11152 Directory where MPlayer looks for user settings.
11155 .B MPLAYER_LOCALEDIR
11156 Directory where MPlayer looks for gettext translation files (if enabled).
11159 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
11160 Set the initial verbosity level across all message modules (default: 0).
11161 The resulting verbosity corresponds to that of \-msglevel 5 plus the
11162 value of MPLAYER_VERBOSE.
11164 .SS libaf:
11167 .B LADSPA_PATH
11168 If LADSPA_PATH is set, it searches for the specified file.
11169 If it is not set, you must supply a fully specified pathname.
11170 FIXME: This is also mentioned in the ladspa section.
11172 .SS libdvdcss:
11175 .B DVDCSS_CACHE
11176 Specify a directory in which to store title key values.
11177 This will speed up descrambling of DVDs which are in the cache.
11178 The DVDCSS_CACHE directory is created if it does not exist,
11179 and a subdirectory is created named after the DVD's title
11180 or manufacturing date.
11181 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
11182 the default value which is "${HOME}/.dvdcss/" under Unix and
11183 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
11184 The special value "off" disables caching.
11187 .B DVDCSS_METHOD
11188 Sets the authentication and decryption method that
11189 libdvdcss will use to read scrambled discs.
11190 Can be one of title, key or disc.
11191 .PD 0
11192 .RSs
11193 .IPs "key\ \ "
11194 is the default method.
11195 libdvdcss will use a set of calculated player keys to try and get the disc key.
11196 This can fail if the drive does not recognize any of the player keys.
11197 .IPs "disc\ "
11198 is a fallback method when key has failed.
11199 Instead of using player keys, libdvdcss will crack the disc key using
11200 a brute force algorithm.
11201 This process is CPU intensive and requires 64 MB of memory to store
11202 temporary data.
11203 .IPs title
11204 is the fallback when all other methods have failed.
11205 It does not rely on a key exchange with the DVD drive, but rather uses
11206 a crypto attack to guess the title key.
11207 On rare cases this may fail because there is not enough encrypted data
11208 on the disc to perform a statistical attack, but in the other hand it
11209 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
11210 the wrong region on an RPC2 drive.
11212 .PD 1
11215 .B DVDCSS_RAW_DEVICE
11216 Specify the raw device to use.
11217 Exact usage will depend on your operating system, the Linux
11218 utility to set up raw devices is raw(8) for instance.
11219 Please note that on most operating systems, using a raw device
11220 requires highly aligned buffers: Linux requires a 2048 bytes
11221 alignment (which is the size of a DVD sector).
11224 .B DVDCSS_VERBOSE
11225 Sets the libdvdcss verbosity level.
11226 .PD 0
11227 .RSs
11228 .IPs 0
11229 Outputs no messages at all.
11230 .IPs 1
11231 Outputs error messages to stderr.
11232 .IPs 2
11233 Outputs error messages and debug messages to stderr.
11235 .PD 1
11238 .B DVDREAD_NOKEYS
11239 Skip retrieving all keys on startup.
11240 Currently disabled.
11243 .B HOME
11244 FIXME: Document this.
11246 .SS libao2:
11249 .B AO_SUN_DISABLE_SAMPLE_TIMING
11250 FIXME: Document this.
11253 .B AUDIODEV
11254 FIXME: Document this.
11257 .B AUDIOSERVER
11258 Specifies the Network Audio System server to which the
11259 nas audio output driver should connect and the transport
11260 that should be used.
11261 If unset DISPLAY is used instead.
11262 The transport can be one of tcp and unix.
11263 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
11264 or [unix]:<instancenumber>.
11265 The NAS base port is 8000 and <instancenumber> is added to that.
11266 .sp 1
11268 .I EXAMPLES:
11270 .PD 0
11271 .RSs
11272 .IPs AUDIOSERVER=somehost:0
11273 Connect to NAS server on somehost using default port and transport.
11274 .IPs AUDIOSERVER=tcp/somehost:8000
11275 Connect to NAS server on somehost listening on TCP port 8000.
11276 .IPs AUDIOSERVER=(unix)?:0
11277 Connect to NAS server instance 0 on localhost using unix domain sockets.
11279 .PD 1
11282 .B DISPLAY
11283 FIXME: Document this.
11285 .SS vidix:
11288 .B VIDIX_CRT
11289 FIXME: Document this.
11292 .B VIDIXIVTVALPHA
11293 Set this to 'disable' in order to stop the VIDIX driver from controlling
11294 alphablending settings.
11295 You can then manipulate it yourself with 'ivtvfbctl'.
11297 .SS osdep:
11300 .B TERM
11301 FIXME: Document this.
11303 .SS libvo:
11306 .B DISPLAY
11307 FIXME: Document this.
11310 .B FRAMEBUFFER
11311 FIXME: Document this.
11314 .B HOME
11315 FIXME: Document this.
11317 .SS libmpdemux:
11320 .B HOME
11321 FIXME: Document this.
11324 .B HOMEPATH
11325 FIXME: Document this.
11328 .B http_proxy
11329 FIXME: Document this.
11332 .B LOGNAME
11333 FIXME: Document this.
11336 .B USERPROFILE
11337 FIXME: Document this.
11339 .SS GUI:
11342 .B CHARSET
11343 FIXME: Document this.
11346 .B DISPLAY
11347 FIXME: Document this.
11350 .B HOME
11351 FIXME: Document this.
11353 .SS libavformat:
11356 .B AUDIO_FLIP_LEFT
11357 FIXME: Document this.
11360 .B BKTR_DEV
11361 FIXME: Document this.
11364 .B BKTR_FORMAT
11365 FIXME: Document this.
11368 .B BKTR_FREQUENCY
11369 FIXME: Document this.
11372 .B http_proxy
11373 FIXME: Document this.
11376 .B no_proxy
11377 FIXME: Document this.
11381 .\" --------------------------------------------------------------------------
11382 .\" Files
11383 .\" --------------------------------------------------------------------------
11385 .SH FILES
11388 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
11389 MPlayer system-wide settings
11392 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
11393 MEncoder system-wide settings
11396 ~/.mplayer/\:config
11397 MPlayer user settings
11400 ~/.mplayer/\:mencoder.conf
11401 MEncoder user settings
11404 ~/.mplayer/\:input.conf
11405 input bindings (see '\-input keylist' for the full list)
11408 ~/.mplayer/\:font/
11409 font directory (There must be a font.desc file and files with .RAW extension.)
11412 ~/.mplayer/\:DVDkeys/
11413 cached CSS keys
11416 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
11417 in this order:
11419 /path/\:to/\:movie.sub
11421 ~/.mplayer/\:sub/\:movie.sub
11423 .PD 1
11426 .\" --------------------------------------------------------------------------
11427 .\" Examples
11428 .\" --------------------------------------------------------------------------
11430 .SH EXAMPLES OF MPLAYER USAGE
11433 .B Quickstart DVD playing:
11435 mplayer dvd://1
11439 .B Play in Japanese with English subtitles:
11441 mplayer dvd://1 \-alang ja \-slang en
11445 .B Play only chapters 5, 6, 7:
11447 mplayer dvd://1 \-chapter 5\-7
11451 .B Play only titles 5, 6, 7:
11453 mplayer dvd://5\-7
11457 .B Play a multiangle DVD:
11459 mplayer dvd://1 \-dvdangle 2
11463 .B Play from a different DVD device:
11465 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
11469 .B Play DVD video from a directory with VOB files:
11471 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
11475 .B Copy a DVD title to hard disk, saving to file "title1.vob":
11477 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
11481 .B Play a DVD with dvdnav from path /dev/sr1:
11483 mplayer dvdnav:////dev/sr1
11487 .B Stream from HTTP:
11489 mplayer http://mplayer.hq/example.avi
11493 .B Stream using RTSP:
11495 mplayer rtsp://server.example.com/streamName
11499 .B Convert subtitles to MPsub format:
11501 mplayer dummy.avi \-sub source.sub \-dumpmpsub
11505 .B Convert subtitles to MPsub format without watching the movie:
11507 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
11511 .B input from standard V4L:
11513 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
11517 .B Playback on Zoran cards (old style, deprecated):
11519 mplayer \-vo zr \-vf scale=352:288 file.avi
11523 .B Playback on Zoran cards (new style):
11525 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
11529 .B Play DTS-CD with passthrough:
11531 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
11534 You can also use \-afm hwac3 instead of \-ac hwdts.
11535 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
11536 If your external receiver supports decoding raw DTS streams,
11537 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
11540 .B Play a 6-channel AAC file with only two speakers:
11542 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
11545 You might want to play a bit with the pan values (e.g multiply with a value) to
11546 increase volume or avoid clipping.
11549 .B checkerboard invert with geq filter:
11551 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'
11555 .SH EXAMPLES OF MENCODER USAGE
11558 .B Encode DVD title #2, only selected chapters:
11560 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11564 .B Encode DVD title #2, resizing to 640x480:
11566 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11570 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
11572 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11576 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
11578 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
11582 .B The same, but with MJPEG compression:
11584 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
11588 .B Encode all *.jpg files in the current directory:
11590 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
11594 .B Encode from a tuner (specify a format with \-vf format):
11596 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
11600 .B Encode from a pipe:
11602 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
11606 .\" --------------------------------------------------------------------------
11607 .\" Bugs, authors, standard disclaimer
11608 .\" --------------------------------------------------------------------------
11610 .SH BUGS
11611 Don't panic.
11612 If you find one, report it to us, but please make sure you have read all
11613 of the documentation first.
11614 Also look out for smileys. :)
11615 Many bugs are the result of incorrect setup or parameter usage.
11616 The bug reporting section of the documentation
11617 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
11618 explains how to create useful bug reports.
11622 .SH AUTHORS
11623 MPlayer was initially written by Arpad Gereoffy.
11624 See the AUTHORS file for a list of some of the many other contributors.
11626 MPlayer is (C) 2000\-2009 The MPlayer Team
11628 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
11629 It is maintained by Diego Biurrun.
11630 Please send mails about it to the MPlayer-DOCS mailing list.
11631 Translation specific mails belong on the MPlayer-translations mailing list.
11632 .\" end of file