Fix first line(s) of vo vdpau documentation.
[mplayer/glamo.git] / DOCS / man / en / mplayer.1
blobc748f17882afcfba816a38ac1b459d5720065f6d
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 gmplayer
128 [options]
129 [\-skin\ skin]
132 .B mencoder
133 [options] file
134 [file|URL|\-] [\-o file | file://file | smb://[user:pass@]host/filepath]
137 .B mencoder
138 [options] file1
139 [specific options] [file2] [specific options]
143 .\" --------------------------------------------------------------------------
144 .\" Description
145 .\" --------------------------------------------------------------------------
147 .SH DESCRIPTION
148 .B mplayer
149 is a movie player for Linux (runs on many other platforms and CPU
150 architectures, see the documentation).
151 It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM,
152 MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
153 native and binary codecs.
154 You can watch VCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies,
155 too.
157 MPlayer supports a wide range of video and audio output drivers.
158 It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
159 Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers),
160 VESA (on every VESA-compatible card, even without X11), some low-level
161 card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder
162 boards, such as the Siemens DVB, Hauppauge PVR (IVTV), DXR2 and DXR3/\:Hollywood+.
163 Most of them support software or hardware scaling, so you can enjoy movies in
164 fullscreen mode.
166 MPlayer has an onscreen display (OSD) for status information, nice big
167 antialiased shaded subtitles and visual feedback for keyboard controls.
168 European/\:ISO8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean
169 fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM,
170 SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and
171 DVD subtitles (SPU streams, VOBsub and Closed Captions).
173 .B mencoder
174 (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode
175 MPlayer-playable movies (see above) to other MPlayer-playable formats (see
176 below).
177 It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and
178 PCM/\:MP3/\:VBRMP3 audio in 1, 2 or 3 passes.
179 Furthermore it has stream copying abilities, a powerful filter system (crop,
180 expand, flip, postprocess, rotate, scale, noise, RGB/\:YUV conversion) and
181 more.
183 .B gmplayer
184 is MPlayer with a graphical user interface.
185 It has the same options as MPlayer, however they might not all work correctly
186 due to conflicts with the configuration via the GUI (stored in gui.conf).
187 In particular some options might be overwritten by settings in gui.conf while
188 others might end up stored permanently in gui.conf.
190 Usage examples to get you started quickly can be found at the end
191 of this man page.
193 .B Also see the HTML documentation!
196 .\" --------------------------------------------------------------------------
197 .\" interactive control
198 .\" --------------------------------------------------------------------------
200 .SH "INTERACTIVE CONTROL"
201 MPlayer has a fully configurable, command-driven control layer
202 which allows you to control MPlayer using keyboard, mouse, joystick
203 or remote control (with LIRC).
204 See the \-input option for ways to customize it.
207 .B keyboard control
208 .PD 0
210 .IPs "<\- and \->"
211 Seek backward/\:forward 10 seconds.
212 .IPs "up and down"
213 Seek forward/\:backward 1 minute.
214 .IPs "pgup and pgdown"
215 Seek forward/\:backward 10 minutes.
216 .IPs "[ and ]"
217 Decrease/increase current playback speed by 10%.
218 .IPs "{ and }"
219 Halve/double current playback speed.
220 .IPs "backspace"
221 Reset playback speed to normal.
222 .IPs "< and >"
223 Go backward/\:forward in the playlist.
224 .IPs "ENTER"
225 Go forward in the playlist, even over the end.
226 .IPs "HOME and END"
227 next/\:previous playtree entry in the parent list
228 .IPs "INS and DEL (ASX playlist only)"
229 next/\:previous alternative source.
230 .IPs "p / SPACE"
231 Pause (pressing again unpauses).
232 .IPs ".\ \ \ \ "
233 Step forward.
234 Pressing once will pause movie, every consecutive press will play one frame
235 and then go into pause mode again (any other key unpauses).
236 .IPs "q / ESC"
237 Stop playing and quit.
238 .IPs "U\ \ \ \ "
239 Stop playing (and quit if \-idle is not used).
240 .IPs "+ and \-"
241 Adjust audio delay by +/\- 0.1 seconds.
242 .IPs "/ and *"
243 Decrease/\:increase volume.
244 .IPs "9 and 0"
245 Decrease/\:increase volume.
246 .IPs "( and )"
247 Adjust audio balance in favor of left/\:right channel.
248 .IPs "m\ \ \ \ "
249 Mute sound.
250 .IPs "_ (MPEG-TS, AVI and libavformat only)"
251 Cycle through the available video tracks.
252 .IPs "# (DVD, MPEG, Matroska, AVI and libavformat only)"
253 Cycle through the available audio tracks.
254 .IPs "TAB (MPEG-TS and libavformat only)"
255 Cycle through the available programs.
256 .IPs "f\ \ \ \ "
257 Toggle fullscreen (also see \-fs).
258 .IPs "T\ \ \ \ "
259 Toggle stay-on-top (also see \-ontop).
260 .IPs "w and e"
261 Decrease/\:increase pan-and-scan range.
262 .IPs "o\ \ \ \ "
263 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
264 .IPs "d\ \ \ \ "
265 Toggle frame dropping states: none / skip display / skip decoding
266 (see \-framedrop and \-hardframedrop).
267 .IPs "v\ \ \ \ "
268 Toggle subtitle visibility.
269 .IPs "j\ \ \ \ "
270 Cycle through the available subtitles.
271 .IPs "y and g"
272 Step forward/backward in the subtitle list.
273 .IPs "F\ \ \ \ "
274 Toggle displaying "forced subtitles".
275 .IPs "a\ \ \ \ "
276 Toggle subtitle alignment: top / middle / bottom.
277 .IPs "x and z"
278 Adjust subtitle delay by +/\- 0.1 seconds.
279 .IPs "r and t"
280 Move subtitles up/down.
281 .IPs "i (\-edlout mode only)"
282 Set start or end of an EDL skip and write it out to the given file.
283 .IPs "s (\-vf screenshot only)"
284 Take a screenshot.
285 .IPs "S (\-vf screenshot only)"
286 Start/stop taking screenshots.
287 .IPs "I\ \ \ \ "
288 Show filename on the OSD.
289 .IPs "! and @"
290 Seek to the beginning of the previous/next chapter.
291 .IPs "D (\-vo xvmc, \-vo vdpau, \-vf yadif, \-vf kerndeint only)"
292 Activate/deactivate deinterlacer.
293 .IPs "A"
294 Cycle through the available DVD angles.
296 .PD 1
299 (The following keys are valid only when using a hardware accelerated video
300 output (xv, (x)vidix, (x)mga, etc), the software equalizer
301 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
304 .PD 0
306 .IPs "1 and 2"
307 Adjust contrast.
308 .IPs "3 and 4"
309 Adjust brightness.
310 .IPs "5 and 6"
311 Adjust hue.
312 .IPs "7 and 8"
313 Adjust saturation.
315 .PD 1
318 (The following keys are valid only when using the quartz or corevideo
319 video output driver.)
322 .PD 0
324 .IPs "command + 0"
325 Resize movie window to half its original size.
326 .IPs "command + 1"
327 Resize movie window to its original size.
328 .IPs "command + 2"
329 Resize movie window to double its original size.
330 .IPs "command + f"
331 Toggle fullscreen (also see \-fs).
332 .IPs "command + [ and command + ]"
333 Set movie window alpha.
335 .PD 1
338 (The following keys are valid only when using the sdl
339 video output driver.)
342 .PD 0
344 .IPs "c\ \ \ \ "
345 Cycle through available fullscreen modes.
346 .IPs "n\ \ \ \ "
347 Restore original mode.
349 .PD 1
352 (The following keys are valid if you have a keyboard
353 with multimedia keys.)
356 .PD 0
358 .IPs PAUSE
359 Pause.
360 .IPs "STOP\ "
361 Stop playing and quit.
362 .IPs "PREVIOUS and NEXT"
363 Seek backward/\:forward 1 minute.
365 .PD 1
368 (The following keys are only valid if GUI support is compiled in
369 and will take precedence over the keys defined above.)
372 .PD 0
374 .IPs ENTER
375 Start playing.
376 .IPs "ESC\ \ "
377 Stop playing.
378 .IPs "l\ \ \ \ "
379 Load file.
380 .IPs "t\ \ \ \ "
381 Load subtitle.
382 .IPs "c\ \ \ \ "
383 Open skin browser.
384 .IPs "p\ \ \ \ "
385 Open playlist.
386 .IPs "r\ \ \ \ "
387 Open preferences.
389 .PD 1
392 (The following keys are only valid if you compiled with TV or DVB input
393 support and will take precedence over the keys defined above.)
396 .PD 0
398 .IPs "h and k"
399 Select previous/\:next channel.
400 .IPs "n\ \ \ \ "
401 Change norm.
402 .IPs "u\ \ \ \ "
403 Change channel list.
405 .PD 1
408 (The following keys are only valid if you compiled with dvdnav
409 support: They are used to navigate the menus.)
412 .PD 0
414 .IPs "keypad 8"
415 Select button up.
416 .IPs "keypad 2"
417 Select button down.
418 .IPs "keypad 4"
419 Select button left.
420 .IPs "keypad 6"
421 Select button right.
422 .IPs "keypad 5"
423 Return to main menu.
424 .IPs "keypad 7"
425 Return to nearest menu (the order of preference is: chapter->title->root).
426 .IPs "keypad ENTER"
427 Confirm choice.
429 .PD 1
433 (The following keys are only valid if teletext support is enabled during
434 compilation: They are used for controlling TV teletext, whose data may come
435 from either an analog TV source or an MPEG Transport Stream.)
438 .PD 0
440 .IPs "X\ \ \ \ "
441 Switch teletext on/\:off.
442 .IPs "Q and W"
443 Go to next/\:prev teletext page.
445 .PD 1
448 .B mouse control
449 .PD 0
451 .IPs "button 3 and button 4"
452 Seek backward/\:forward 1 minute.
453 .IPs "button 5 and button 6"
454 Decrease/\:increase volume.
456 .PD 1
459 .B joystick control
460 .PD 0
462 .IPs "left and right"
463 Seek backward/\:forward 10 seconds.
464 .IPs "up and down"
465 Seek forward/\:backward 1 minute.
466 .IPs "button 1"
467 Pause.
468 .IPs "button 2"
469 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
470 .IPs "button 3 and button 4"
471 Decrease/\:increase volume.
473 .PD 1
476 .\" --------------------------------------------------------------------------
477 .\" Usage
478 .\" --------------------------------------------------------------------------
480 .SH "USAGE"
481 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
482 \-fs option is \-nofs.
484 If an option is marked as (XXX only), it will only work in combination with
485 the XXX option or if XXX is compiled in.
487 .I NOTE:
488 The suboption parser (used for example for \-ao pcm suboptions) supports
489 a special kind of string-escaping intended for use with external GUIs.
491 It has the following format:
493 %n%string_of_length_n
495 .I EXAMPLES:
497 mplayer \-ao pcm:file=%10%C:test.wav test.avi
499 Or in a script:
501 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
504 .\" --------------------------------------------------------------------------
505 .\" Configuration files
506 .\" --------------------------------------------------------------------------
508 .SH "CONFIGURATION FILES"
509 You can put all of the options in configuration files which will be read
510 every time MPlayer/MEncoder is run.
511 The system-wide configuration file 'mplayer.conf' is in your configuration
512 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
513 specific one is '~/\:.mplayer/\:config'.
514 The configuration file for MEncoder is 'mencoder.conf' in your configuration
515 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
516 user specific one is '~/\:.mplayer/\:mencoder.conf'.
517 User specific options override system-wide options and options given on the
518 command line override either.
519 The syntax of the configuration files is 'option=<value>', everything after
520 a '#' is considered a comment.
521 Options that work without values can be enabled by setting them to 'yes'
522 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
523 Even suboptions can be specified in this way.
525 You can also write file-specific configuration files.
526 If you wish to have a configuration file for a file called 'movie.avi', create a file
527 named 'movie.avi.conf' with the file-specific options in it and put it in
528 ~/.mplayer/.
529 You can also put the configuration file in the same directory as the file to
530 be played, as long as you give the \-use\-filedir\-conf option (either on the
531 command line or in your global config file).
532 If a file-specific configuration file is found in the same directory, no
533 file-specific configuration is loaded from ~/.mplayer.
534 In addition, the \-use\-filedir\-conf option enables directory-specific
535 configuration files.
536 For this, MPlayer first tries to load a mplayer.conf from the same directory as
537 the file played and then tries to load any file-specific configuration.
539 .I EXAMPLE MPLAYER CONFIGURATION FILE:
540 .sp 1
542 # Use Matrox driver by default.
543 vo=xmga
544 # I love practicing handstands while watching videos.
545 flip=yes
546 # Decode/encode multiple files from PNG,
547 # start with mf://filemask
548 mf=type=png:fps=25
549 # Eerie negative images are cool.
550 vf=eq2=1.0:\-0.8
553 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
554 .sp 1
556 # Make MEncoder output to a default filename.
557 o=encoded.avi
558 # The next 4 lines allow mencoder tv:// to start capturing immediately.
559 oac=pcm=yes
560 ovc=lavc=yes
561 lavcopts=vcodec=mjpeg
562 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
563 # more complex default encoding option set
564 lavcopts=vcodec=mpeg4:autoaspect=1
565 lameopts=aq=2:vbr=4
566 ovc=lavc=1
567 oac=lavc=1
568 passlogfile=pass1stats.log
569 noautoexpand=1
570 subfont-autoscale=3
571 subfont-osd-scale=6
572 subfont-text-scale=4
573 subalign=2
574 subpos=96
575 spuaa=20
578 .\" --------------------------------------------------------------------------
579 .\" Profiles
580 .\" --------------------------------------------------------------------------
582 .SH "PROFILES"
583 To ease working with different configurations profiles can be defined in the
584 configuration files.
585 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
586 All following options will be part of the profile.
587 A description (shown by \-profile help) can be defined with the profile-desc
588 option.
589 To end the profile, start another one or use the profile name 'default'
590 to continue with normal options.
593 .I "EXAMPLE MPLAYER PROFILE:"
594 .sp 1
597 [protocol.dvd]
598 profile-desc="profile for dvd:// streams"
599 vf=pp=hb/vb/dr/al/fd
600 alang=en
602 [protocol.dvdnav]
603 profile-desc="profile for dvdnav:// streams"
604 profile=protocol.dvd
605 mouse-movements=yes
606 nocache=yes
608 [extension.flv]
609 profile-desc="profile for .flv files"
610 flip=yes
612 [vo.pnm]
613 outdir=/tmp
615 [ao.alsa]
616 device=spdif
619 .I "EXAMPLE MENCODER PROFILE:"
620 .sp 1
623 [mpeg4]
624 profile-desc="MPEG4 encoding"
625 ovc=lacv=yes
626 lavcopts=vcodec=mpeg4:vbitrate=1200
628 [mpeg4\-hq]
629 profile-desc="HQ MPEG4 encoding"
630 profile=mpeg4
631 lavcopts=mbd=2:trell=yes:v4mv=yes
634 .\" --------------------------------------------------------------------------
635 .\" Options
636 .\" --------------------------------------------------------------------------
638 .SH "GENERAL OPTIONS"
641 .B \-codecpath <dir>
642 Specify a directory for binary codecs.
645 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
646 Override the standard search path and use the specified file
647 instead of the builtin codecs.conf.
650 .B \-include <configuration file>
651 Specify configuration file to be parsed after the default ones.
654 .B \-list\-options
655 Prints all available options.
658 .B \-msgcharset <charset>
659 Convert console messages to the specified character set (default: autodetect).
660 Text will be in the encoding specified with the \-\-charset configure option.
661 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
663 .I NOTE:
664 The option takes effect after command line parsing has finished.
665 The MPLAYER_CHARSET environment variable can help you get rid of
666 the first lines of garbled output.
669 .B \-msgcolor
670 Enable colorful console output on terminals that support ANSI color.
673 .B \-msglevel <all=<level>:<module>=<level>:...>
674 Control verbosity directly for each module.
675 The 'all' module changes the verbosity of all the modules not
676 explicitly specified on the command line.
677 See '\-msglevel help' for a list of all modules.
679 .I NOTE:
680 Some messages are printed before the command line is parsed and are
681 therefore not affected by \-msglevel.
682 To control these messages you have to use the MPLAYER_VERBOSE environment
683 variable, see its description below for details.
685 Available levels:
686 .PD 0
687 .RSs
688 .IPs "\-1"
689 complete silence
690 .IPs " 0"
691 fatal messages only
692 .IPs " 1"
693 error messages
694 .IPs " 2"
695 warning messages
696 .IPs " 3"
697 short hints
698 .IPs " 4"
699 informational messages
700 .IPs " 5"
701 status messages (default)
702 .IPs " 6"
703 verbose messages
704 .IPs " 7"
705 debug level 2
706 .IPs " 8"
707 debug level 3
708 .IPs " 9"
709 debug level 4
711 .PD 1
714 .B \-msgmodule
715 Prepend module name in front of each console message.
718 .B \-noconfig <options>
719 Do not parse selected configuration files.
721 .I NOTE:
722 If \-include or \-use\-filedir\-conf options are
723 specified at the command line, they will be honoured.
724 .sp 1
725 Available options are:
726 .PD 0
727 .RSs
728 .IPs "all\ \ "
729 all configuration files
730 .IPs "gui (GUI only)"
731 GUI configuration file
732 .IPs system
733 system configuration file
734 .IPs "user\ "
735 user configuration file
737 .PD 1
740 .B "\-quiet\ "
741 Make console output less verbose; in particular, prevents the status line
742 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
743 Particularly useful on slow terminals or broken ones which do not properly
744 handle carriage return (i.e.\& \\r).
747 .B \-priority <prio> (Windows and OS/2 only)
748 Set process priority for MPlayer according to the predefined
749 priorities available under Windows and OS/2.
750 Possible values of <prio>:
751 .RSs
752 idle|belownormal|normal|abovenormal|high|realtime
754 .sp 1
756 .I WARNING:
757 Using realtime priority can cause system lockup.
761 .B \-profile <profile1,profile2,...>
762 Use the given profile(s), \-profile help displays a list of the defined profiles.
765 .B \-really\-quiet (also see \-quiet)
766 Display even less output and status messages than with \-quiet.
767 Also suppresses the GUI error message boxes.
770 .B \-show\-profile <profile>
771 Show the description and content of a profile.
774 .B \-use\-filedir\-conf
775 Look for a file-specific configuration file in the same directory as
776 the file that is being played.
778 .I WARNING:
779 May be dangerous if playing from untrusted media.
782 .B "\-v\ \ \ \ \ "
783 Increment verbosity level, one level for each \-v
784 found on the command line.
788 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
791 .B \-autoq <quality> (use with \-vf [s]pp)
792 Dynamically changes the level of postprocessing depending on the available spare
793 CPU time.
794 The number you specify will be the maximum level used.
795 Usually you can use some big number.
796 You have to use \-vf [s]pp without parameters in order for this to work.
799 .B \-autosync <factor>
800 Gradually adjusts the A/V sync based on audio delay measurements.
801 Specifying \-autosync 0, the default, will cause frame timing to be based
802 entirely on audio delay measurements.
803 Specifying \-autosync 1 will do the same, but will subtly change the A/V
804 correction algorithm.
805 An uneven video framerate in a movie which plays fine with \-nosound can
806 often be helped by setting this to an integer value greater than 1.
807 The higher the value, the closer the timing will be to \-nosound.
808 Try \-autosync 30 to smooth out problems with sound drivers which do
809 not implement a perfect audio delay measurement.
810 With this value, if large A/V sync offsets occur, they will only take about
811 1 or 2 seconds to settle out.
812 This delay in reaction time to sudden A/V offsets should be the only
813 side-effect of turning this option on, for all sound drivers.
816 .B \-benchmark
817 Prints some statistics on CPU usage and dropped frames at the end of playback.
818 Use in combination with \-nosound and \-vo null for benchmarking only the
819 video codec.
821 .I NOTE:
822 With this option MPlayer will also ignore frame duration when playing
823 only video (you can think of that as infinite fps).
826 .B \-colorkey <number>
827 Changes the colorkey to an RGB value of your choice.
828 0x000000 is black and 0xffffff is white.
829 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
830 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
831 drivers.
834 .B \-nocolorkey
835 Disables colorkeying.
836 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
837 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
838 drivers.
841 .B \-correct\-pts (EXPERIMENTAL)
842 Switches MPlayer to an experimental mode where timestamps for video frames
843 are calculated differently and video filters which add new frames or
844 modify timestamps of existing ones are supported.
845 The more accurate timestamps can be visible for example when playing
846 subtitles timed to scene changes with the \-ass option.
847 Without \-correct\-pts the subtitle timing will typically be off by some frames.
848 This option does not work correctly with some demuxers and codecs.
851 .B \-crash\-debug (DEBUG CODE)
852 Automatically attaches gdb upon crash or SIGTRAP.
853 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
856 .B \-doubleclick\-time
857 Time in milliseconds to recognize two consecutive button presses as
858 a double-click (default: 300).
859 Set to 0 to let your windowing system decide what a double-click is
860 (\-vo directx only).
862 .I NOTE:
863 You will get slightly different behaviour depending on whether you bind
864 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
867 .B \-edlout <filename>
868 Creates a new file and writes edit decision list (EDL) records to it.
869 During playback, the user hits 'i' to mark the start or end of a skip block.
870 This provides a starting point from which the user can fine-tune EDL entries
871 later.
872 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
875 .B \-enqueue (GUI only)
876 Enqueue files given on the command line in the playlist instead of playing them
877 immediately.
880 .B \-fixed\-vo
881 Enforces a fixed video system for multiple files (one (un)initialization for
882 all files).
883 Therefore only one window will be opened for all files.
884 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
885 xmga, xv, xvidix and dfbmga.
888 .B \-framedrop (also see \-hardframedrop, experimental without \-nocorrect\-pts)
889 Skip displaying some frames to maintain A/V sync on slow systems.
890 Video filters are not applied to such frames.
891 For B-frames even decoding is skipped completely.
894 .B \-(no)gui
895 Enable or disable the GUI interface (default depends on binary name).
896 Only works as the first argument on the command line.
897 Does not work as a config-file option.
900 .B \-h, \-help, \-\-help
901 Show short summary of options.
904 .B \-hardframedrop (experimental without \-nocorrect\-pts)
905 More intense frame dropping (breaks decoding).
906 Leads to image distortion!
907 Note that especially the libmpeg2 decoder may crash with this,
908 so consider using "\-vc ffmpeg12,".
911 .B \-heartbeat\-cmd
912 Command that is executed every 30 seconds during playback via system() -
913 i.e.\& using the shell.
914 .sp 1
915 .I NOTE:
916 MPlayer uses this command without any checking, it is your responsibility
917 to ensure it does not cause security problems (e.g.\& make sure to use full
918 paths if "." is in your path like on Windows).
919 It also only works when playing video (i.e.\& not with \-novideo but works with \-vo null).
920 .sp 1
921 This can be "misused" to disable screensavers that do not support the proper
922 X API (also see \-stop\-xscreensaver).
923 If you think this is too complicated, ask the author of the screensaver
924 program to support the proper X APIs.
925 .sp 1
926 .I EXAMPLE for xscreensaver:
927 mplayer \-heartbeat\-cmd "xscreensaver\-command \-deactivate" file
928 .sp 1
929 .I EXAMPLE for GNOME screensaver:
930 mplayer \-heartbeat\-cmd "gnome\-screensaver\-command \-p" file
932 .PD 1
935 .B \-identify
936 Shorthand for \-msglevel identify=4.
937 Show file parameters in an easily parseable format.
938 Also prints more detailed information about subtitle and audio
939 track languages and IDs.
940 In some cases you can get more information by using \-msglevel identify=6.
941 For example, for a DVD it will list the chapters and time length of each title,
942 as well as a disk ID.
943 Combine this with \-frames 0 to suppress all output.
944 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
945 (hopefully) shellescapes the filenames.
948 .B \-idle (also see \-slave)
949 Makes MPlayer wait idly instead of quitting when there is no file to play.
950 Mostly useful in slave mode where MPlayer can be controlled
951 through input commands.
954 .B \-input <commands>
955 This option can be used to configure certain parts of the input system.
956 Paths are relative to ~/.mplayer/.
958 .I NOTE:
959 Autorepeat is currently only supported by joysticks.
960 .sp 1
961 Available commands are:
962 .sp 1
963 .PD 0
964 .RSs
965 .IPs conf=<filename>
966 Specify input configuration file other than the default
967 ~/\:.mplayer/\:input.conf.
968 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
969 .IPs ar-dev=<device>
970 Device to be used for Apple IR Remote (default is autodetected, Linux only).
971 .IPs ar-delay
972 Delay in milliseconds before we start to autorepeat a key (0 to disable).
973 .IPs ar-rate
974 Number of key presses to generate per second on autorepeat.
975 .IPs (no)default-bindings
976 Use the key bindings that MPlayer ships with by default.
977 .IPs keylist
978 Prints all keys that can be bound to commands.
979 .IPs cmdlist
980 Prints all commands that can be bound to keys.
981 .IPs js-dev
982 Specifies the joystick device to use (default: /dev/\:input/\:js0).
983 .IPs file=<filename>
984 Read commands from the given file.
985 Mostly useful with a FIFO.
987 .I NOTE:
988 When the given file is a FIFO MPlayer opens both ends so you can do
989 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
991 .PD 1
994 .B \-key\-fifo\-size <2\-65000>
995 Specify the size of the FIFO that buffers key events (default: 7).
996 A FIFO of size n can buffer (n\-1) events.
997 If it is too small some events may be lost
998 (leading to "stuck mouse buttons" and similar effects).
999 If it is too big, MPlayer may seem to hang while it
1000 processes the buffered events.
1001 To get the same behavior as before this option was introduced,
1002 set it to 2 for Linux or 1024 for Windows.
1005 .B \-lircconf <filename> (LIRC only)
1006 Specifies a configuration file for LIRC (default: ~/.lircrc).
1009 .B \-list\-properties
1010 Print a list of the available properties.
1013 .B \-loop <number>
1014 Loops movie playback <number> times.
1015 0 means forever.
1018 .B \-menu (OSD menu only)
1019 Turn on OSD menu support.
1022 .B \-menu\-cfg <filename> (OSD menu only)
1023 Use an alternative menu.conf.
1026 .B \-menu\-chroot <path> (OSD menu only)
1027 Chroot the file selection menu to a specific location.
1028 .sp 1
1029 .I EXAMPLE:
1030 .PD 0
1031 .RSs
1032 .IPs "\-menu\-chroot /home"
1033 Will restrict the file selection menu to /\:home and downward (i.e.\& no
1034 access to / will be possible, but /home/user_name will).
1036 .PD 1
1039 .B \-menu\-keepdir (OSD menu only)
1040 File browser starts from the last known location instead of current directory.
1043 .B \-menu\-root <value> (OSD menu only)
1044 Specify the main menu.
1047 .B \-menu\-startup (OSD menu only)
1048 Display the main menu at MPlayer startup.
1051 .B \-mouse\-movements
1052 Permit MPlayer to receive pointer events reported by the video
1053 output driver.
1054 Necessary to select the buttons in DVD menus.
1055 Supported for X11-based VOs (x11, xv, xvmc, etc) and the gl, gl2, direct3d and
1056 corevideo VOs.
1059 .B \-noar
1060 Turns off AppleIR remote support.
1063 .B \-noconsolecontrols
1064 Prevent MPlayer from reading key events from standard input.
1065 Useful when reading data from standard input.
1066 This is automatically enabled when \- is found on the command line.
1067 There are situations where you have to set it manually, e.g.\&
1068 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1069 in a playlist or intend to read from stdin later on via the loadfile or
1070 loadlist slave commands.
1073 .B \-nojoystick
1074 Turns off joystick support.
1077 .B \-nolirc
1078 Turns off LIRC support.
1081 .B \-nomouseinput
1082 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1083 on this option).
1086 .B \-rtc (RTC only)
1087 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1088 mechanism.
1089 This wakes up the process every 1/1024 seconds to check the current time.
1090 Useless with modern Linux kernels configured for desktop use as they already
1091 wake up the process with similar accuracy when using normal timed sleep.
1094 .B \-playing\-msg <string>
1095 Print out a string before starting playback.
1096 The following expansions are supported:
1097 .RSs
1098 .IPs ${NAME}
1099 Expand to the value of the property NAME.
1100 .IPs ?(NAME:TEXT)
1101 Expand TEXT only if the property NAME is available.
1102 .IPs ?(!NAME:TEXT)
1103 Expand TEXT only if the property NAME is not available.
1107 .B \-playlist <filename>
1108 Play files according to a playlist file (ASX, Winamp, SMIL, or
1109 one-file-per-line format).
1111 .I NOTE:
1112 This option is considered an entry so options found after it will apply
1113 only to the elements of this playlist.
1115 FIXME: This needs to be clarified and documented thoroughly.
1118 .B \-rtc\-device <device>
1119 Use the specified device for RTC timing.
1122 .B \-shuffle
1123 Play files in random order.
1126 .B \-skin <name> (GUI only)
1127 Loads a skin from the directory given as parameter below the default skin
1128 directories, /usr/\:local/\:share/\:mplayer/\:skins/\: and ~/.mplayer/\:skins/.
1129 .sp 1
1130 .I EXAMPLE:
1131 .PD 0
1132 .RSs
1133 .IPs "\-skin fittyfene"
1134 Tries /usr/\:local/\:share/\:mplayer/\:skins/\:fittyfene
1135 and afterwards ~/.mplayer/\:skins/\:fittyfene.
1137 .PD 1
1140 .B \-slave (also see \-input)
1141 Switches on slave mode, in which MPlayer works as a backend for other programs.
1142 Instead of intercepting keyboard events, MPlayer will read commands separated
1143 by a newline (\\n) from stdin.
1145 .I NOTE:
1146 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1147 for their description.
1148 Also, this is not intended to disable other inputs, e.g.\& via the video window,
1149 use some other method like \-input nodefault\-binds:conf=/dev/null for that.
1152 .B \-softsleep
1153 Time frames by repeatedly checking the current time instead of asking the
1154 kernel to wake up MPlayer at the correct time.
1155 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1156 Comes at the price of higher CPU consumption.
1159 .B \-sstep <sec>
1160 Skip <sec> seconds after every frame.
1161 The normal framerate of the movie is kept, so playback is accelerated.
1162 Since MPlayer can only seek to the next keyframe this may be inexact.
1166 .SH "DEMUXER/STREAM OPTIONS"
1169 .B \-a52drc <level>
1170 Select the Dynamic Range Compression level for AC-3 audio streams.
1171 <level> is a float value ranging from 0 to 1, where 0 means no compression
1172 and 1 (which is the default) means full compression (make loud passages more
1173 silent and vice versa).
1174 This option only shows an effect if the AC-3 stream contains the required range
1175 compression information.
1178 .B \-aid <ID> (also see \-alang)
1179 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1180 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1181 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1182 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1183 (if present) with the chosen audio stream.
1186 .B \-ausid <ID> (also see \-alang)
1187 Select audio substream channel.
1188 Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled
1189 by the native demuxer (not by libavformat).
1190 The format type may not be correctly identified because of how this information
1191 (or lack thereof) is embedded in the stream, but it will demux correctly the
1192 audio streams when multiple substreams are present.
1193 MPlayer prints the available substream IDs when run with \-identify.
1196 .B \-alang <language code[,language code,...]> (also see \-aid)
1197 Specify a priority list of audio languages to use.
1198 Different container formats employ different language codes.
1199 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1200 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1201 MPlayer prints the available languages when run in verbose (\-v) mode.
1202 .sp 1
1203 .I EXAMPLE:
1204 .PD 0
1205 .RSs
1206 .IPs "mplayer dvd://1 \-alang hu,en"
1207 Chooses the Hungarian language track on a DVD and falls back on English if
1208 Hungarian is not available.
1209 .IPs "mplayer \-alang jpn example.mkv"
1210 Plays a Matroska file in Japanese.
1212 .PD 1
1215 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1216 Force audio demuxer type for \-audiofile.
1217 Use a '+' before the name to force it, this will skip some checks!
1218 Give the demuxer name as printed by \-audio\-demuxer help.
1219 For backward compatibility it also accepts the demuxer ID as defined in
1220 libmpdemux/\:demuxer.h.
1221 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1224 .B \-audiofile <filename>
1225 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1226 movie.
1229 .B \-audiofile\-cache <kBytes>
1230 Enables caching for the stream used by \-audiofile, using the specified
1231 amount of memory.
1234 .B \-reuse\-socket (udp:// only)
1235 Allows a socket to be reused by other processes as soon as it is closed.
1238 .B \-bandwidth <Bytes> (network only)
1239 Specify the maximum bandwidth for network streaming (for servers that are
1240 able to send content in different bitrates).
1241 Useful if you want to watch live streamed media behind a slow connection.
1242 With Real RTSP streaming, it is also used to set the maximum delivery
1243 bandwidth allowing faster cache filling and stream dumping.
1246 .B \-cache <kBytes>
1247 This option specifies how much memory (in kBytes) to use when precaching a
1248 file or URL.
1249 Especially useful on slow media.
1252 .B \-nocache
1253 Turns off caching.
1256 .B \-cache\-min <percentage>
1257 Playback will start when the cache has been filled up to <percentage>
1258 of the total.
1261 .B \-cache\-seek\-min <percentage>
1262 If a seek is to be made to a position within <percentage> of the cache size
1263 from the current position, MPlayer will wait for the cache to be filled to
1264 this position rather than performing a stream seek (default: 50).
1267 .B \-cdda <option1:option2> (CDDA only)
1268 This option can be used to tune the CD Audio reading feature of MPlayer.
1269 .sp 1
1270 Available options are:
1271 .RSs
1272 .IPs speed=<value>
1273 Set CD spin speed.
1274 .IPs paranoia=<0\-2>
1275 Set paranoia level.
1276 Values other than 0 seem to break playback of anything but the first track.
1277 .RSss
1278 0: disable checking (default)
1280 1: overlap checking only
1282 2: full data correction and verification
1283 .REss
1284 .IPs generic-dev=<value>
1285 Use specified generic SCSI device.
1286 .IPs sector-size=<value>
1287 Set atomic read size.
1288 .IPs overlap=<value>
1289 Force minimum overlap search during verification to <value> sectors.
1290 .IPs toc-bias
1291 Assume that the beginning offset of track 1 as reported in the TOC will be
1292 addressed as LBA 0.
1293 Some Toshiba drives need this for getting track boundaries correct.
1294 .IPs toc-offset=<value>
1295 Add <value> sectors to the values reported when addressing tracks.
1296 May be negative.
1297 .IPs (no)skip
1298 (Never) accept imperfect data reconstruction.
1302 .B \-cdrom\-device <path to device>
1303 Specify the CD-ROM device (default: /dev/\:cdrom).
1306 .B \-channels <number> (also see \-af channels)
1307 Request the number of playback channels (default: 2).
1308 MPlayer asks the decoder to decode the audio into as many channels as
1309 specified.
1310 Then it is up to the decoder to fulfill the requirement.
1311 This is usually only important when playing videos with AC-3 audio (like DVDs).
1312 In that case liba52 does the decoding by default and correctly downmixes the
1313 audio into the requested number of channels.
1314 To directly control the number of output channels independently of how many
1315 channels are decoded, use the channels filter.
1317 .I NOTE:
1318 This option is honored by codecs (AC-3 only), filters (surround) and audio
1319 output drivers (OSS at least).
1320 .sp 1
1321 Available options are:
1322 .sp 1
1323 .PD 0
1324 .RSs
1325 .IPs 2
1326 stereo
1327 .IPs 4
1328 surround
1329 .IPs 6
1330 full 5.1
1331 .IPs 8
1332 full 7.1
1334 .PD 1
1337 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1338 Specify which chapter to start playing at.
1339 Optionally specify which chapter to end playing at (default: 1).
1342 .B \-cookies (network only)
1343 Send cookies when making HTTP requests.
1346 .B \-cookies\-file <filename> (network only)
1347 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1348 and skip reading from default locations.
1349 The file is assumed to be in Netscape format.
1352 .B \-delay <sec>
1353 audio delay in seconds (positive or negative float value)
1355 Negative values delay the audio, and positive values delay the video.
1356 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1358 .I NOTE:
1359 When used with MEncoder, this is not guaranteed to work correctly
1360 with \-ovc copy; use \-audio\-delay instead.
1363 .B \-ignore\-start
1364 Ignore the specified starting time for streams in AVI files.
1365 In MPlayer, this nullifies stream delays in files encoded with
1366 the \-audio\-delay option.
1367 During encoding, this option prevents MEncoder from transferring
1368 original stream start times to the new file; the \-audio\-delay option is
1369 not affected.
1370 Note that MEncoder sometimes adjusts stream starting times
1371 automatically to compensate for anticipated decoding delays, so do not
1372 use this option for encoding without testing it first.
1375 .B \-demuxer <[+]name>
1376 Force demuxer type.
1377 Use a '+' before the name to force it, this will skip some checks!
1378 Give the demuxer name as printed by \-demuxer help.
1379 For backward compatibility it also accepts the demuxer ID as defined in
1380 libmpdemux/\:demuxer.h.
1383 .B \-dumpaudio (MPlayer only)
1384 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1385 in most other cases the resulting file will not be playable).
1386 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1387 on the command line only the last one will work.
1390 .B \-dumpfile <filename> (MPlayer only)
1391 Specify which file MPlayer should dump to.
1392 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream.
1395 .B \-dumpstream (MPlayer only)
1396 Dumps the raw stream to ./stream.dump.
1397 Useful when ripping from DVD or network.
1398 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1399 on the command line only the last one will work.
1402 .B \-dumpvideo (MPlayer only)
1403 Dump raw compressed video stream to ./stream.dump (not very usable).
1404 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1405 on the command line only the last one will work.
1408 .B \-dvbin <options> (DVB only)
1409 Pass the following parameters to the DVB input module, in order to override
1410 the default ones:
1411 .sp 1
1412 .PD 0
1413 .RSs
1414 .IPs card=<1\-4>
1415 Specifies using card number 1\-4 (default: 1).
1416 .IPs file=<filename>
1417 Instructs MPlayer to read the channels list from <filename>.
1418 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1419 or ~/.mplayer/\:channels.conf as a last resort.
1420 .IPs timeout=<1\-30>
1421 Maximum number of seconds to wait when trying to tune a
1422 frequency before giving up (default: 30).
1424 .PD 1
1427 .B \-dvd\-device <path to device> (DVD only)
1428 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1429 You can also specify a directory that contains files previously copied directly
1430 from a DVD (with e.g.\& vobcopy).
1433 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1434 Try to limit DVD speed (default: 0, no change).
1435 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1436 10800KB/s.
1437 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1438 quiet and fast enough.
1439 MPlayer resets the speed to the drive default value on close.
1440 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1441 10800KB/s.
1443 .I NOTE:
1444 You need write access to the DVD device to change the speed.
1447 .B \-dvdangle <angle ID> (DVD only)
1448 Some DVD discs contain scenes that can be viewed from multiple angles.
1449 Here you can tell MPlayer which angles to use (default: 1).
1452 .B \-edl <filename>
1453 Enables edit decision list (EDL) actions during playback.
1454 Video will be skipped over and audio will be muted and unmuted according to
1455 the entries in the given file.
1456 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1457 on how to use this.
1460 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1461 Stop at given time or byte position.
1463 .I NOTE:
1464 Byte position is enabled only for MEncoder and will not be accurate, as it can
1465 only stop at a frame boundary.
1466 When used in conjunction with \-ss option, \-endpos time will shift forward by
1467 seconds specified with \-ss.
1468 .sp 1
1469 .I EXAMPLE:
1470 .PD 0
1471 .RSs
1472 .IPs "\-endpos 56"
1473 Stop at 56 seconds.
1474 .IPs "\-endpos 01:10:00"
1475 Stop at 1 hour 10 minutes.
1476 .IPs "\-ss 10 \-endpos 56"
1477 Stop at 1 minute 6 seconds.
1478 .IPs "\-endpos 100mb"
1479 Encode only 100 MB.
1481 .PD 1
1484 .B \-forceidx
1485 Force index rebuilding.
1486 Useful for files with broken index (A/V desync, etc).
1487 This will enable seeking in files where seeking was not possible.
1488 You can fix the index permanently with MEncoder (see the documentation).
1490 .I NOTE:
1491 This option only works if the underlying media supports seeking
1492 (i.e.\& not with stdin, pipe, etc).
1495 .B \-fps <float value>
1496 Override video framerate.
1497 Useful if the original value is wrong or missing.
1500 .B \-frames <number>
1501 Play/\:convert only first <number> frames, then quit.
1504 .B \-hr\-mp3\-seek (MP3 only)
1505 Hi-res MP3 seeking.
1506 Enabled when playing from an external MP3 file, as we need to seek
1507 to the very exact position to keep A/V sync.
1508 Can be slow especially when seeking backwards since it has to rewind
1509 to the beginning to find an exact frame position.
1512 .B \-idx (also see \-forceidx)
1513 Rebuilds index of files if no index was found, allowing seeking.
1514 Useful with broken/\:incomplete downloads, or badly created files.
1516 .I NOTE:
1517 This option only works if the underlying media supports seeking
1518 (i.e.\& not with stdin, pipe, etc).
1521 .B \-noidx
1522 Skip rebuilding index file.
1523 MEncoder skips writing the index with this option.
1526 .B \-ipv4\-only\-proxy (network only)
1527 Skip the proxy for IPv6 addresses.
1528 It will still be used for IPv4 connections.
1531 .B \-loadidx <index file>
1532 The file from which to read the video index data saved by \-saveidx.
1533 This index will be used for seeking, overriding any index data
1534 contained in the AVI itself.
1535 MPlayer will not prevent you from loading an index file generated
1536 from a different AVI, but this is sure to cause unfavorable results.
1538 .I NOTE:
1539 This option is obsolete now that MPlayer has OpenDML support.
1542 .B \-mc <seconds/frame>
1543 maximum A-V sync correction per frame (in seconds)
1545 \-mc 0 should always be combined with \-noskip for mencoder, otherwise
1546 it will almost certainly cause A-V desync.
1549 .B \-mf <option1:option2:...>
1550 Used when decoding from multiple PNG or JPEG files.
1551 .sp 1
1552 Available options are:
1553 .sp 1
1554 .PD 0
1555 .RSs
1556 .IPs w=<value>
1557 input file width (default: autodetect)
1558 .IPs h=<value>
1559 input file height (default: autodetect)
1560 .IPs fps=<value>
1561 output fps (default: 25)
1562 .IPs type=<value>
1563 input file type (available: jpeg, png, tga, sgi)
1565 .PD 1
1568 .B \-ni (AVI only)
1569 Force usage of non-interleaved AVI parser (fixes playback
1570 of some bad AVI files).
1573 .B \-nobps (AVI only)
1574 Do not use average byte/\:second value for A-V sync.
1575 Helps with some AVI files with broken header.
1578 .B \-noextbased
1579 Disables extension-based demuxer selection.
1580 By default, when the file type (demuxer) cannot be detected reliably
1581 (the file has no header or it is not reliable enough), the filename
1582 extension is used to select the demuxer.
1583 Always falls back on content-based demuxer selection.
1586 .B \-passwd <password> (also see \-user) (network only)
1587 Specify password for HTTP authentication.
1590 .B \-prefer\-ipv4 (network only)
1591 Use IPv4 on network connections.
1592 Falls back on IPv6 automatically.
1595 .B \-prefer\-ipv6 (IPv6 network only)
1596 Use IPv6 on network connections.
1597 Falls back on IPv4 automatically.
1600 .B \-psprobe <byte position>
1601 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1602 how many bytes in the stream you want MPlayer to scan in order to identify
1603 the video codec used.
1604 This option is needed to play EVO or VDR files containing H.264 streams.
1607 .B \-pvr <option1:option2:...> (PVR only)
1608 This option tunes various encoding properties of the PVR capture module.
1609 It has to be used with any hardware MPEG encoder based card supported by the
1610 V4L2 driver.
1611 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1612 cards are known as PVR capture cards.
1613 Be aware that only Linux 2.6.18 kernel
1614 and above is able to handle MPEG stream through V4L2 layer.
1615 For hardware capture of an MPEG stream and watching it with
1616 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1617 .sp 1
1618 Available options are:
1619 .RSs
1620 .IPs aspect=<0\-3>
1621 Specify input aspect ratio:
1622 .RSss
1623 0: 1:1
1625 1: 4:3 (default)
1627 2: 16:9
1629 3: 2.21:1
1630 .REss
1631 .IPs arate=<32000\-48000>
1632 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1633 and 48000 Hz).
1634 .IPs alayer=<1\-3>
1635 Specify MPEG audio layer encoding (default: 2).
1636 .IPs abitrate=<32\-448>
1637 Specify audio encoding bitrate in kbps (default: 384).
1638 .IPs amode=<value>
1639 Specify audio encoding mode.
1640 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1641 .IPs vbitrate=<value>
1642 Specify average video bitrate encoding in Mbps (default: 6).
1643 .IPs vmode=<value>
1644 Specify video encoding mode:
1645 .RSss
1646 vbr: Variable BitRate (default)
1648 cbr: Constant BitRate
1649 .REss
1650 .IPs vpeak=<value>
1651 Specify peak video bitrate encoding in Mbps
1652 (only useful for VBR encoding, default: 9.6).
1653 .IPs fmt=<value>
1654 Choose an MPEG format for encoding:
1655 .RSss
1656 ps:    MPEG-2 Program Stream (default)
1658 ts:    MPEG-2 Transport Stream
1660 mpeg1: MPEG-1 System Stream
1662 vcd:   Video CD compatible stream
1664 svcd:  Super Video CD compatible stream
1666 dvd:   DVD compatible stream
1667 .REss
1669 .PD 1
1672 .B \-radio <option1:option2:...> (radio only)
1673 These options set various parameters of the radio capture module.
1674 For listening to radio with MPlayer use 'radio://<frequency>'
1675 (if channels option is not given) or 'radio://<channel_number>'
1676 (if channels option is given) as a movie URL.
1677 You can see allowed frequency range by running MPlayer with '\-v'.
1678 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1679 If the capture keyword is not given you can listen to radio
1680 using the line-in cable only.
1681 Using capture to listen is not recommended due to synchronization
1682 problems, which makes this process uncomfortable.
1683 .sp 1
1684 Available options are:
1685 .RSs
1686 .IPs device=<value>
1687 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1688 .IPs driver=<value>
1689 Radio driver to use (default: v4l2 if available, otherwise v4l).
1690 Currently, v4l and v4l2 drivers are supported.
1691 .IPs volume=<0..100>
1692 sound volume for radio device (default 100)
1693 .IPs "freq_min=<value> (*BSD BT848 only)"
1694 minimum allowed frequency (default: 87.50)
1695 .IPs "freq_max=<value> (*BSD BT848 only)"
1696 maximum allowed frequency (default: 108.00)
1697 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1698 Set channel list.
1699 Use _ for spaces in names (or play with quoting ;-).
1700 The channel names will then be written using OSD and the slave commands
1701 radio_step_channel and radio_set_channel will be usable for
1702 a remote control (see LIRC).
1703 If given, number in movie URL will be treated as channel position in
1704 channel list.
1706 .I EXAMPLE:
1707 radio://1, radio://104.4, radio_set_channel 1
1708 .IPs "adevice=<value> (radio capture only)"
1709 Name of device to capture sound from.
1710 Without such a name capture will be disabled,
1711 even if the capture keyword appears in the URL.
1712 For ALSA devices use it in the form hw=<card>.<device>.
1713 If the device name contains a '=', the module will use
1714 ALSA to capture, otherwise OSS.
1715 .IPs "arate=<value> (radio capture only)"
1716 Rate in samples per second (default: 44100).
1718 .I NOTE:
1719 When using audio capture set also \-rawaudio rate=<value> option
1720 with the same value as arate.
1721 If you have problems with sound speed (runs too quickly), try to play
1722 with different rate values (e.g.\& 48000,44100,32000,...).
1723 .IPs "achannels=<value> (radio capture only)"
1724 Number of audio channels to capture.
1728 .B \-rawaudio <option1:option2:...>
1729 This option lets you play raw audio files.
1730 You have to use \-demuxer rawaudio as well.
1731 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1732 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1733 .sp 1
1734 Available options are:
1735 .sp 1
1736 .PD 0
1737 .RSs
1738 .IPs channels=<value>
1739 number of channels
1740 .IPs rate=<value>
1741 rate in samples per second
1742 .IPs samplesize=<value>
1743 sample size in bytes
1744 .IPs bitrate=<value>
1745 bitrate for rawaudio files
1746 .IPs format=<value>
1747 fourcc in hex
1749 .PD 1
1752 .B \-rawvideo <option1:option2:...>
1753 This option lets you play raw video files.
1754 You have to use \-demuxer rawvideo as well.
1755 .sp 1
1756 Available options are:
1757 .sp 1
1758 .PD 0
1759 .RSs
1760 .IPs fps=<value>
1761 rate in frames per second (default: 25.0)
1762 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1763 set standard image size
1764 .IPs w=<value>
1765 image width in pixels
1766 .IPs h=<value>
1767 image height in pixels
1768 .IPs i420|yv12|yuy2|y8
1769 set colorspace
1770 .IPs format=<value>
1771 colorspace (fourcc) in hex or string constant.
1772 Use \-rawvideo format=help for a list of possible strings.
1773 .IPs size=<value>
1774 frame size in Bytes
1775 .REss
1776 .sp 1
1778 .I EXAMPLE:
1780 .PD 0
1781 .RSs
1782 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1783 Play the famous "foreman" sample video.
1784 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1785 Play a raw YUV sample.
1787 .PD 1
1790 .B \-rtsp\-port
1791 Used with 'rtsp://' URLs to force the client's port number.
1792 This option may be useful if you are behind a router and want to forward
1793 the RTSP stream from the server to a specific client.
1796 .B \-rtsp\-destination
1797 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1798 This option may be useful with some RTSP server which do not
1799 send RTP packets to the right interface.
1800 If the connection to the RTSP server fails, use \-v to see
1801 which IP address MPlayer tries to bind to and try to force
1802 it to one assigned to your computer instead.
1805 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1806 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1807 packets be streamed over TCP (using the same TCP connection as RTSP).
1808 This option may be useful if you have a broken internet connection that does
1809 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1812 .B \-saveidx <filename>
1813 Force index rebuilding and dump the index to <filename>.
1814 Currently this only works with AVI files.
1816 .I NOTE:
1817 This option is obsolete now that MPlayer has OpenDML support.
1820 .B \-sb <byte position> (also see \-ss)
1821 Seek to byte position.
1822 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1825 .B \-speed <0.01\-100>
1826 Slow down or speed up playback by the factor given as parameter.
1827 Not guaranteed to work correctly with \-oac copy.
1830 .B \-srate <Hz>
1831 Select the output sample rate to be used
1832 (of course sound cards have limits on this).
1833 If the sample frequency selected is different from that
1834 of the current media, the resample or lavcresample audio filter will be inserted
1835 into the audio filter layer to compensate for the difference.
1836 The type of resampling can be controlled by the \-af\-adv option.
1837 The default is fast resampling that may cause distortion.
1840 .B \-ss <time> (also see \-sb)
1841 Seek to given time position.
1842 .sp 1
1843 .I EXAMPLE:
1844 .PD 0
1845 .RSs
1846 .IPs "\-ss 56"
1847 Seeks to 56 seconds.
1848 .IPs "\-ss 01:10:00"
1849 Seeks to 1 hour 10 min.
1851 .PD 1
1854 .B \-tskeepbroken
1855 Tells MPlayer not to discard TS packets reported as broken in the stream.
1856 Sometimes needed to play corrupted MPEG-TS files.
1859 .B \-tsprobe <byte position>
1860 When playing an MPEG-TS stream, this option lets you specify how many
1861 bytes in the stream you want MPlayer to search for the desired
1862 audio and video IDs.
1865 .B \-tsprog <1\-65534>
1866 When playing an MPEG-TS stream, you can specify with this option which
1867 program (if present) you want to play.
1868 Can be used with \-vid and \-aid.
1871 .B \-tv <option1:option2:...> (TV/\:PVR only)
1872 This option tunes various properties of the TV capture module.
1873 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1874 or even 'tv://<channel_name> (see option channels for channel_name below)
1875 as a movie URL.
1876 You can also use 'tv:///<input_id>' to start watching a
1877 movie from a composite or S-Video input (see option input for details).
1878 .sp 1
1879 Available options are:
1880 .RSs
1881 .IPs noaudio
1882 no sound
1883 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1884 If signal strength reported by device is less than this value,
1885 audio and video will be muted.
1886 In most cases automute=100 will be enough.
1887 Default is 0 (automute disabled).
1888 .IPs driver=<value>
1889 See \-tv driver=help for a list of compiled-in TV input drivers.
1890 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1891 .IPs device=<value>
1892 Specify TV device (default: /dev/\:video0).
1893 .I NOTE:
1894 For the bsdbt848 driver you can provide both bktr and tuner device
1895 names separating them with a comma, tuner after
1896 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1897 .IPs input=<value>
1898 Specify input (default: 0 (TV), see console output for available inputs).
1899 .IPs freq=<value>
1900 Specify the frequency to set the tuner to (e.g.\& 511.250).
1901 Not compatible with the channels parameter.
1902 .IPs outfmt=<value>
1903 Specify the output format of the tuner with a preset value supported by the
1904 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1905 arbitrary format given as hex value.
1906 Try outfmt=help for a list of all available formats.
1907 .IPs width=<value>
1908 output window width
1909 .IPs height=<value>
1910 output window height
1911 .IPs fps=<value>
1912 framerate at which to capture video (frames per second)
1913 .IPs buffersize=<value>
1914 maximum size of the capture buffer in megabytes (default: dynamical)
1915 .IPs norm=<value>
1916 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1917 For v4l2, see the console output for a list of all available norms,
1918 also see the normid option below.
1919 .IPs "normid=<value> (v4l2 only)"
1920 Sets the TV norm to the given numeric ID.
1921 The TV norm depends on the capture card.
1922 See the console output for a list of available TV norms.
1923 .IPs channel=<value>
1924 Set tuner to <value> channel.
1925 .IPs chanlist=<value>
1926 available: europe-east, europe-west, us-bcast, us-cable, etc
1927 .IPs channels=<chan>\-<name>[=<norm>],<chan>\-<name>[=<norm>],...
1928 Set names for channels.
1929 .I NOTE:
1930 If <chan> is an integer greater than 1000, it will be treated as frequency (in kHz)
1931 rather than channel name from frequency table.
1933 Use _ for spaces in names (or play with quoting ;-).
1934 The channel names will then be written using OSD, and the slave commands
1935 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1936 a remote control (see LIRC).
1937 Not compatible with the frequency parameter.
1939 .I NOTE:
1940 The channel number will then be the position in the 'channels' list,
1941 beginning with 1.
1943 .I EXAMPLE:
1944 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1945 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1946 Set the image equalizer on the card.
1947 .IPs audiorate=<value>
1948 Set audio capture bitrate.
1949 .IPs forceaudio
1950 Capture audio even if there are no audio sources reported by v4l.
1951 .IPs "alsa\ "
1952 Capture from ALSA.
1953 .IPs amode=<0\-3>
1954 Choose an audio mode:
1955 .RSss
1956 0: mono
1958 1: stereo
1960 2: language 1
1962 3: language 2
1963 .REss
1964 .IPs forcechan=<1\-2>
1965 By default, the count of recorded audio channels is determined automatically
1966 by querying the audio mode from the TV card.
1967 This option allows forcing stereo/\:mono recording regardless of the amode
1968 option and the values returned by v4l.
1969 This can be used for troubleshooting when the TV card is unable to report the
1970 current audio mode.
1971 .IPs adevice=<value>
1972 Set an audio device.
1973 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1974 You must replace any ':' by a '.' in the hardware ID for ALSA.
1975 .IPs audioid=<value>
1976 Choose an audio output of the capture card, if it has more than one.
1977 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1978 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1979 These options set parameters of the mixer on the video capture card.
1980 They will have no effect, if your card does not have one.
1981 For v4l2 50 maps to the default value of the
1982 control, as reported by the driver.
1983 .IPs "gain=<0\-100> (v4l2)"
1984 Set gain control for video devices (usually webcams) to the desired
1985 value and switch off automatic control.
1986 A value of 0 enables automatic control.
1987 If this option is omitted, gain control will not be modified.
1988 .IPs immediatemode=<bool>
1989 A value of 0 means capture and buffer audio and video together
1990 (default for MEncoder).
1991 A value of 1 (default for MPlayer) means to do video capture only and let the
1992 audio go through a loopback cable from the TV card to the sound card.
1993 .IPs mjpeg
1994 Use hardware MJPEG compression (if the card supports it).
1995 When using this option, you do not need to specify the width and height
1996 of the output window, because MPlayer will determine it automatically
1997 from the decimation value (see below).
1998 .IPs decimation=<1|2|4>
1999 choose the size of the picture that will be compressed by hardware
2000 MJPEG compression:
2001 .RSss
2002 1: full size
2003     704x576    PAL
2004     704x480    NTSC
2006 2: medium size
2007     352x288    PAL
2008     352x240    NTSC
2010 4: small size
2011     176x144    PAL
2012     176x120    NTSC
2013 .REss
2014 .IPs quality=<0\-100>
2015 Choose the quality of the JPEG compression
2016 (< 60 recommended for full size).
2017 .IPs tdevice=<value>
2018 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
2019 .IPs tformat=<format>
2020 Specify TV teletext display format (default: 0):
2021 .RSss
2022 0: opaque
2024 1: transparent
2026 2: opaque with inverted colors
2028 3: transparent with inverted colors
2029 .REss
2030 .IPs tpage=<100\-899>
2031 Specify initial TV teletext page number (default: 100).
2032 .IPs tlang=<\-1\-127>
2033 Specify default teletext language code (default: 0), which will be used
2034 as primary language until a type 28 packet is received.
2035 Useful when the teletext system uses a non-latin character set, but language
2036 codes are not transmitted via teletext type 28 packets for some reason.
2037 To see a list of supported language codes set this option to \-1.
2038 .IPs "hidden_video_renderer (dshow only)"
2039 Terminate stream with video renderer instead of Null renderer (default: off).
2040 Will help if video freezes but audio does not.
2041 .I NOTE:
2042 May not work with \-vo directx and \-vf crop combination.
2043 .IPs "hidden_vp_renderer (dshow only)"
2044 Terminate VideoPort pin stream with video renderer
2045 instead of removing it from the graph (default: off).
2046 Useful if your card has a VideoPort pin and video is choppy.
2047 .I NOTE:
2048 May not work with \-vo directx and \-vf crop combination.
2049 .IPs "system_clock (dshow only)"
2050 Use the system clock as sync source instead of the default graph clock
2051 (usually the clock from one of the live sources in graph).
2052 .IPs "normalize_audio_chunks (dshow only)"
2053 Create audio chunks with a time length equal to
2054 video frame time length (default: off).
2055 Some audio cards create audio chunks about 0.5s in size, resulting in
2056 choppy video when using immediatemode=0.
2060 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
2061 Tune the TV channel scanner.
2062 MPlayer will also print value for "-tv channels=" option,
2063 including existing and just found channels.
2064 .sp 1
2065 Available suboptions are:
2066 .RSs
2067 .IPs autostart
2068 Begin channel scanning immediately after startup (default: disabled).
2069 .IPs period=<0.1\-2.0>
2070 Specify delay in seconds before switching to next channel (default: 0.5).
2071 Lower values will cause faster scanning, but can detect
2072 inactive TV channels as active.
2073 .IPs threshold=<1\-100>
2074 Threshold value for the signal strength (in percent), as reported
2075 by the device (default: 50).
2076 A signal strength higher than this value will indicate that the
2077 currently scanning channel is active.
2081 .B \-user <username> (also see \-passwd) (network only)
2082 Specify username for HTTP authentication.
2085 .B \-user\-agent <string>
2086 Use <string> as user agent for HTTP streaming.
2089 .B \-vid <ID>
2090 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2091 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
2092 (if present) with the chosen video stream.
2095 .B \-vivo <suboption> (DEBUG CODE)
2096 Force audio parameters for the VIVO demuxer (for debugging purposes).
2097 FIXME: Document this.
2101 .SH "OSD/SUBTITLE OPTIONS"
2102 .I NOTE:
2103 Also see \-vf expand.
2106 .B \-ass (FreeType only)
2107 Turn on SSA/ASS subtitle rendering.
2108 With this option, libass will be used for SSA/ASS
2109 external subtitles and Matroska tracks.
2110 You may also want to use \-embeddedfonts.
2112 .I NOTE:
2113 Unlike normal OSD, libass uses fontconfig by default. To disable it, use
2114 \-nofontconfig.
2117 .B \-ass\-border\-color <value>
2118 Sets the border (outline) color for text subtitles.
2119 The color format is RRGGBBAA.
2122 .B \-ass\-bottom\-margin <value>
2123 Adds a black band at the bottom of the frame.
2124 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2127 .B \-ass\-color <value>
2128 Sets the color for text subtitles.
2129 The color format is RRGGBBAA.
2132 .B \-ass\-font\-scale <value>
2133 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2136 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2137 Override some style or script info parameters.
2139 .I EXAMPLE:
2140 .PD 0
2141 .RSs
2142 \-ass\-force\-style FontName=Arial,Default.Bold=1
2144 \-ass\-force\-style PlayResY=768
2146 .PD 1
2149 .B \-ass\-hinting <type>
2150 Set hinting type.
2151 <type> can be:
2152 .PD 0
2153 .RSs
2154 .IPs 0
2155 no hinting
2156 .IPs 1
2157 FreeType autohinter, light mode
2158 .IPs 2
2159 FreeType autohinter, normal mode
2160 .IPs 3
2161 font native hinter
2162 .IPs "0-3 + 4"
2163 The same, but hinting will only be performed if the OSD is rendered at
2164 screen resolution and will therefore not be scaled.
2166 .RSs
2167 The default value is 7 (use native hinter for unscaled OSD and no hinting otherwise).
2169 .PD 1
2172 .B \-ass\-line\-spacing <value>
2173 Set line spacing value for SSA/ASS renderer.
2176 .B \-ass\-styles <filename>
2177 Load all SSA/ASS styles found in the specified file and use them for
2178 rendering text subtitles.
2179 The syntax of the file is exactly like the
2180 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2183 .B \-ass\-top\-margin <value>
2184 Adds a black band at the top of the frame.
2185 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2188 .B \-ass\-use\-margins
2189 Enables placing toptitles and subtitles in black borders when they
2190 are available.
2193 .B \-dumpjacosub (MPlayer only)
2194 Convert the given subtitle (specified with the \-sub option) to the time-based
2195 JACOsub subtitle format.
2196 Creates a dumpsub.js file in the current directory.
2199 .B \-dumpmicrodvdsub (MPlayer only)
2200 Convert the given subtitle (specified with the \-sub option) to the
2201 MicroDVD subtitle format.
2202 Creates a dumpsub.sub file in the current directory.
2205 .B \-dumpmpsub (MPlayer only)
2206 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2207 subtitle format, MPsub.
2208 Creates a dump.mpsub file in the current directory.
2211 .B \-dumpsami (MPlayer only)
2212 Convert the given subtitle (specified with the \-sub option) to the time-based
2213 SAMI subtitle format.
2214 Creates a dumpsub.smi file in the current directory.
2217 .B \-dumpsrtsub (MPlayer only)
2218 Convert the given subtitle (specified with the \-sub option) to the time-based
2219 SubViewer (SRT) subtitle format.
2220 Creates a dumpsub.srt file in the current directory.
2222 .I NOTE:
2223 Some broken hardware players choke on SRT subtitle files with Unix
2224 line endings.
2225 If you are unlucky enough to have such a box, pass your subtitle
2226 files through unix2dos or a similar program to replace Unix line
2227 endings with DOS/Windows line endings.
2230 .B \-dumpsub (MPlayer only) (BETA CODE)
2231 Dumps the subtitle substream from VOB streams.
2232 Also see the \-dump*sub and \-vobsubout* options.
2235 .B \-embeddedfonts (FreeType only)
2236 Enables extraction of Matroska embedded fonts (default: disabled).
2237 These fonts can be used for SSA/ASS subtitle
2238 rendering (\-ass option).
2239 Font files are created in the ~/.mplayer/\:fonts directory.
2241 .I NOTE:
2242 With FontConfig 2.4.2 or newer, embedded fonts are opened directly from memory,
2243 and this option is enabled by default.
2246 .B \-ffactor <number>
2247 Resample the font alphamap.
2248 Can be:
2249 .PD 0
2250 .RSs
2251 .IPs 0
2252 plain white fonts
2253 .IPs 0.75
2254 very narrow black outline (default)
2255 .IPs 1
2256 narrow black outline
2257 .IPs 10
2258 bold black outline
2260 .PD 1
2263 .B \-flip\-hebrew (FriBiDi only)
2264 Turns on flipping subtitles using FriBiDi.
2267 .B \-noflip\-hebrew\-commas
2268 Change FriBiDi's assumptions about the placements of commas in subtitles.
2269 Use this if commas in subtitles are shown at the start of a sentence
2270 instead of at the end.
2273 .B \-font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
2274 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2275 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2276 ~/.mplayer/\:subfont.ttf).
2278 .I NOTE:
2279 With FreeType, this option determines the path to the text font file.
2280 With Fontconfig, this option determines the Fontconfig font pattern.
2281 .sp 1
2282 .I EXAMPLE:
2283 .PD 0
2284 .RSs
2285 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2287 \-font ~/\:.mplayer/\:arialuni.ttf
2289 \-font 'Bitstream Vera Sans'
2291 \-font 'Bitstream Vera Sans:style=Bold'
2293 .PD 1
2296 .B \-fontconfig (fontconfig only)
2297 Enables the usage of fontconfig managed fonts.
2299 .I NOTE:
2300 By default fontconfig is used for libass-rendered subtitles and not used for
2301 OSD. With \-fontconfig it is used for both libass and OSD, with \-nofontconfig
2302 it is not used at all.
2305 .B \-forcedsubsonly
2306 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2307 \-slang.
2310 .B \-fribidi\-charset <charset name> (FriBiDi only)
2311 Specifies the character set that will be passed to FriBiDi when
2312 decoding non-UTF-8 subtitles (default: ISO8859-8).
2315 .B \-ifo <VOBsub IFO file>
2316 Indicate the file that will be used to load palette and frame size for VOBsub
2317 subtitles.
2320 .B \-noautosub
2321 Turns off automatic subtitle file loading.
2324 .B \-osd\-duration <time>
2325 Set the duration of the OSD messages in ms (default: 1000).
2328 .B \-osdlevel <0\-3> (MPlayer only)
2329 Specifies which mode the OSD should start in.
2330 .PD 0
2331 .RSs
2332 .IPs 0
2333 subtitles only
2334 .IPs 1
2335 volume + seek (default)
2336 .IPs 2
2337 volume + seek + timer + percentage
2338 .IPs 3
2339 volume + seek + timer + percentage + total time
2341 .PD 1
2344 .B \-overlapsub
2345 Allows the next subtitle to be displayed while the current one is
2346 still visible (default is to enable the support only for specific
2347 formats).
2350 .B \-sid <ID> (also see \-slang, \-vobsubid)
2351 Display the subtitle stream specified by <ID> (0\-31).
2352 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2353 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2356 .B \-nosub
2357 Disables any otherwise auto-selected subtitles (as e.g.\& the Matroska/mkv
2358 demuxer supports).
2361 .B \-slang <language code[,language code,...]> (also see \-sid)
2362 Specify a priority list of subtitle languages to use.
2363 Different container formats employ different language codes.
2364 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2365 three letter language codes while OGM uses a free-form identifier.
2366 MPlayer prints the available languages when run in verbose (\-v) mode.
2367 .sp 1
2368 .I EXAMPLE:
2369 .PD 0
2370 .RSs
2371 .IPs "mplayer dvd://1 \-slang hu,en"
2372 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2373 Hungarian is not available.
2374 .IPs "mplayer \-slang jpn example.mkv"
2375 Plays a Matroska file with Japanese subtitles.
2377 .PD 1
2380 .B \-spuaa <mode>
2381 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2382 A value of 16 may be added to <mode> in order to force scaling even
2383 when original and scaled frame size already match.
2384 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2385 Available modes are:
2386 .PD 0
2387 .RSs
2388 .IPs 0
2389 none (fastest, very ugly)
2390 .IPs 1
2391 approximate (broken?)
2392 .IPs 2
2393 full (slow)
2394 .IPs 3
2395 bilinear (default, fast and not too bad)
2396 .IPs 4
2397 uses swscaler gaussian blur (looks very good)
2399 .PD 1
2402 .B \-spualign <\-1\-2>
2403 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2404 .PD 0
2405 .RSs
2406 .IPs "\-1"
2407 original position
2408 .IPs " 0"
2409 Align at top (original behavior, default).
2410 .IPs " 1"
2411 Align at center.
2412 .IPs " 2"
2413 Align at bottom.
2415 .PD 1
2418 .B \-spugauss <0.0\-3.0>
2419 Variance parameter of gaussian used by \-spuaa 4.
2420 Higher means more blur (default: 1.0).
2423 .B \-sub <subtitlefile1,subtitlefile2,...>
2424 Use/\:display these subtitle files.
2425 Only one file can be displayed at the same time.
2428 .B \-sub\-bg\-alpha <0\-255>
2429 Specify the alpha channel value for subtitles and OSD backgrounds.
2430 Big values mean more transparency.
2431 0 means completely transparent.
2434 .B \-sub\-bg\-color <0\-255>
2435 Specify the color value for subtitles and OSD backgrounds.
2436 Currently subtitles are grayscale so this value is equivalent to the
2437 intensity of the color.
2438 255 means white and 0 black.
2441 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2442 Force subtitle demuxer type for \-subfile.
2443 Use a '+' before the name to force it, this will skip some checks!
2444 Give the demuxer name as printed by \-sub\-demuxer help.
2445 For backward compatibility it also accepts the demuxer ID as defined in
2446 subreader.h.
2449 .B \-sub\-fuzziness <mode>
2450 Adjust matching fuzziness when searching for subtitles:
2451 .PD 0
2452 .RSs
2453 .IPs 0
2454 exact match
2455 .IPs 1
2456 Load all subs containing movie name.
2457 .IPs 2
2458 Load all subs in the current directory.
2460 .PD 1
2463 .B \-sub\-no\-text\-pp
2464 Disables any kind of text post processing done after loading the subtitles.
2465 Used for debug purposes.
2468 .B \-subalign <0\-2>
2469 Specify which edge of the subtitles should be aligned at the height
2470 given by \-subpos.
2471 .PD 0
2472 .RSs
2473 .IPs 0
2474 Align subtitle top edge (original behavior).
2475 .IPs 1
2476 Align subtitle center.
2477 .IPs 2
2478 Align subtitle bottom edge (default).
2480 .PD 1
2483 .B "\-subcc \ "
2484 Display DVD Closed Caption (CC) subtitles.
2485 These are
2486 .B not
2487 the VOB subtitles, these are special ASCII subtitles for the
2488 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2489 CC subtitles have not been spotted on DVDs from other regions so far.
2492 .B \-subcp <codepage> (iconv only)
2493 If your system supports iconv(3), you can use this option to
2494 specify the subtitle codepage.
2495 .sp 1
2496 .I EXAMPLE:
2497 .PD 0
2498 .RSs
2499 \-subcp latin2
2501 \-subcp cp1250
2503 .PD 1
2506 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2507 You can specify your language using a two letter language code to
2508 make ENCA detect the codepage automatically.
2509 If unsure, enter anything and watch mplayer \-v output for available
2510 languages.
2511 Fallback codepage specifies the codepage to use, when autodetection fails.
2512 .sp 1
2513 .I EXAMPLE:
2514 .PD 0
2515 .RSs
2516 .IPs "\-subcp enca:cs:latin2"
2517 Guess the encoding, assuming the subtitles are Czech, fall back on
2518 latin 2, if the detection fails.
2519 .IPs "\-subcp enca:pl:cp1250"
2520 Guess the encoding for Polish, fall back on cp1250.
2522 .PD 1
2525 .B \-subdelay <sec>
2526 Delays subtitles by <sec> seconds.
2527 Can be negative.
2530 .B \-subfile <filename> (BETA CODE)
2531 Currently useless.
2532 Same as \-audiofile, but for subtitle streams (OggDS?).
2535 .B \-subfont <path to font (FreeType), font pattern (Fontconfig)> (FreeType only)
2536 Sets the subtitle font (see \-font).
2537 If no \-subfont is given, \-font is used.
2540 .B \-subfont\-autoscale <0\-3> (FreeType only)
2541 Sets the autoscale mode.
2543 .I NOTE:
2544 0 means that text scale and OSD scale are font heights in points.
2545 .sp 1
2546 The mode can be:
2547 .sp 1
2548 .PD 0
2549 .RSs
2550 .IPs 0
2551 no autoscale
2552 .IPs 1
2553 proportional to movie height
2554 .IPs 2
2555 proportional to movie width
2556 .IPs 3
2557 proportional to movie diagonal (default)
2559 .PD 1
2562 .B \-subfont\-blur <0\-8> (FreeType only)
2563 Sets the font blur radius (default: 2).
2566 .B \-subfont\-encoding <value> (FreeType only)
2567 Sets the font encoding.
2568 When set to 'unicode', all the glyphs from the font file will be rendered and
2569 unicode will be used (default: unicode).
2572 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2573 Sets the autoscale coefficient of the OSD elements (default: 6).
2576 .B \-subfont\-outline <0\-8> (FreeType only)
2577 Sets the font outline thickness (default: 2).
2580 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2581 Sets the subtitle text autoscale coefficient as percentage of the
2582 screen size (default: 5).
2585 .B \-subfps <rate>
2586 Specify the framerate of the subtitle file (default: movie fps).
2588 .I NOTE:
2589 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2590 slows them down for time-based ones.
2593 .B \-subpos <0\-100> (useful with \-vf expand)
2594 Specify the position of subtitles on the screen.
2595 The value is the vertical position of the subtitle in % of the screen height.
2598 .B \-subwidth <10\-100>
2599 Specify the maximum width of subtitles on the screen.
2600 Useful for TV-out.
2601 The value is the width of the subtitle in % of the screen width.
2604 .B \-noterm\-osd
2605 Disable the display of OSD messages on the console when no video output is
2606 available.
2609 .B \-term\-osd\-esc <escape sequence>
2610 Specify the escape sequence to use before writing an OSD message on the
2611 console.
2612 The escape sequence should move the pointer to the beginning of the line
2613 used for the OSD and clear it (default: ^[[A\\r^[[K).
2616 .B \-unicode
2617 Tells MPlayer to handle the subtitle file as unicode.
2620 .B \-unrarexec <path to unrar executable> (not supported on MingW)
2621 Specify the path to the unrar executable so MPlayer can use it to access
2622 rar-compressed VOBsub files (default: not set, so the feature is off).
2623 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2626 .B "\-utf8 \ \ "
2627 Tells MPlayer to handle the subtitle file as UTF-8.
2630 .B \-vobsub <VOBsub file without extension>
2631 Specify a VOBsub file to use for subtitles.
2632 Has to be the full pathname without extension, i.e.\& without
2633 the '.idx', '.ifo' or '.sub'.
2636 .B \-vobsubid <0\-31>
2637 Specify the VOBsub subtitle ID.
2641 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2644 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2645 Override audio driver/\:card buffer size detection.
2648 .B \-format <format> (also see the format audio filter)
2649 Select the sample format used for output from the audio filter
2650 layer to the sound card.
2651 The values that <format> can adopt are listed below in the
2652 description of the format audio filter.
2655 .B \-mixer <device>
2656 Use a mixer device different from the default /dev/\:mixer.
2657 For ALSA this is the mixer name.
2660 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2661 This option will tell MPlayer to use a different channel for controlling
2662 volume than the default PCM.
2663 Options for OSS include
2664 .B vol, pcm, line.
2665 For a complete list of options look for SOUND_DEVICE_NAMES in
2666 /usr/\:include/\:linux/\:soundcard.h.
2667 For ALSA you can use the names e.g.\& alsamixer displays, like
2668 .B Master, Line, PCM.
2670 .I NOTE:
2671 ALSA mixer channel names followed by a number must be specified in the
2672 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2673 be converted to
2674 .BR PCM,1 .
2677 .B \-softvol
2678 Force the use of the software mixer, instead of using the sound card
2679 mixer.
2682 .B \-softvol\-max <10.0\-10000.0>
2683 Set the maximum amplification level in percent (default: 110).
2684 A value of 200 will allow you to adjust the volume up to a maximum of
2685 double the current level.
2686 With values below 100 the initial volume (which is 100%) will be above
2687 the maximum, which e.g.\& the OSD cannot display correctly.
2690 .B \-volstep <0\-100>
2691 Set the step size of mixer volume changes in percent of the whole range
2692 (default: 3).
2695 .B \-volume <-1\-100> (also see \-af volume)
2696 Set the startup volume in the mixer, either hardware or software (if
2697 used with \-softvol).
2698 A value of -1 (the default) will not change the volume.
2702 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2703 Audio output drivers are interfaces to different audio output facilities.
2704 The syntax is:
2707 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2708 Specify a priority list of audio output drivers to be used.
2710 If the list has a trailing ',' MPlayer will fall back on drivers not
2711 contained in the list.
2712 Suboptions are optional and can mostly be omitted.
2714 .I NOTE:
2715 See \-ao help for a list of compiled-in audio output drivers.
2716 .sp 1
2717 .I EXAMPLE:
2718 .PD 0
2719 .RSs
2720 .IPs "\-ao alsa,oss,"
2721 Try the ALSA driver, then the OSS driver, then others.
2722 .IPs "\-ao alsa:noblock:device=hw=0.3"
2723 Sets noblock-mode and the device-name as first card, fourth device.
2725 .PD 1
2726 .sp 1
2727 Available audio output drivers are:
2730 .B "alsa\ \ \ "
2731 ALSA 0.9/1.x audio output driver
2732 .PD 0
2733 .RSs
2734 .IPs noblock
2735 Sets noblock-mode.
2736 .IPs device=<device>
2737 Sets the device name.
2738 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2739 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2740 you really know how to set it correctly.
2742 .PD 1
2745 .B "alsa5\ \ "
2746 ALSA 0.5 audio output driver
2749 .B "oss\ \ \ \ "
2750 OSS audio output driver
2751 .PD 0
2752 .RSs
2753 .IPs <dsp-device>
2754 Sets the audio output device (default: /dev/\:dsp).
2755 .IPs <mixer-device>
2756 Sets the audio mixer device (default: /dev/\:mixer).
2757 .IPs <mixer-channel>
2758 Sets the audio mixer channel (default: pcm).
2760 .PD 1
2763 .B sdl (SDL only)
2764 highly platform independent SDL (Simple Directmedia Layer) library
2765 audio output driver
2766 .PD 0
2767 .RSs
2768 .IPs <driver>
2769 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2771 .PD 1
2774 .B "arts\ \ \ "
2775 audio output through the aRts daemon
2778 .B "esd\ \ \ \ "
2779 audio output through the ESD daemon
2780 .PD 0
2781 .RSs
2782 .IPs <server>
2783 Explicitly choose the ESD server to use (default: localhost).
2785 .PD 1
2788 .B "jack\ \ \ \ "
2789 audio output through JACK (Jack Audio Connection Kit)
2790 .PD 0
2791 .RSs
2792 .IPs port=<name>
2793 Connects to the ports with the given name (default: physical ports).
2794 .IPs name=<client name>
2795 Client name that is passed to JACK (default: MPlayer [<PID>]).
2796 Useful if you want to have certain connections established automatically.
2797 .IPs (no)estimate
2798 Estimate the audio delay, supposed to make the video playback smoother
2799 (default: enabled).
2800 .IPs (no)autostart
2801 Automatically start jackd if necessary (default: disabled).
2802 Note that this seems unreliable and will spam stdout with server messages.
2804 .PD 1
2807 .B "nas\ \ \ \ "
2808 audio output through NAS
2811 .B coreaudio (Mac OS X only)
2812 native Mac OS X audio output driver
2815 .B "openal\ "
2816 Experimental OpenAL audio output driver
2819 .B "pulse\ \ "
2820 PulseAudio audio output driver
2821 .PD 0
2822 .RSs
2823 .IPs "[<host>][:<output sink>]"
2824 Specify the host and optionally output sink to use.
2825 An empty <host> string uses a local connection, "localhost"
2826 uses network transfer (most likely not what you want).
2828 .PD 1
2831 .B sgi (SGI only)
2832 native SGI audio output driver
2833 .PD 0
2834 .RSs
2835 .IPs "<output device name>"
2836 Explicitly choose the output device/\:interface to use
2837 (default: system-wide default).
2838 For example, 'Analog Out' or 'Digital Out'.
2840 .PD 1
2843 .B sun (Sun only)
2844 native Sun audio output driver
2845 .PD 0
2846 .RSs
2847 .IPs <device>
2848 Explicitly choose the audio device to use (default: /dev/\:audio).
2850 .PD 1
2853 .B win32 (Windows only)
2854 native Windows waveout audio output driver
2857 .B dsound (Windows only)
2858 DirectX DirectSound audio output driver
2859 .PD 0
2860 .RSs
2861 .IPs device=<devicenum>
2862 Sets the device number to use.
2863 Playing a file with \-v will show a list of available devices.
2865 .PD 1
2868 .B kai (OS/2 only)
2869 OS/2 KAI audio output driver
2870 .PD 0
2871 .RSs
2872 .IPs uniaud
2873 Force UNIAUD mode.
2874 .IPs dart
2875 Force DART mode.
2876 .IPs (no)share
2877 Open audio in shareable or exclusive mode.
2878 .IPs bufsize=<size>
2879 Set buffer size to <size> in samples (default: 2048).
2881 .PD 1
2884 .B dart (OS/2 only)
2885 OS/2 DART audio output driver
2886 .PD 0
2887 .RSs
2888 .IPs (no)share
2889 Open DART in shareable or exclusive mode.
2890 .IPs bufsize=<size>
2891 Set buffer size to <size> in samples (default: 2048).
2893 .PD 1
2896 .B dxr2 (also see \-dxr2) (DXR2 only)
2897 Creative DXR2 specific output driver
2900 .B ivtv (IVTV only)
2901 IVTV specific MPEG audio output driver.
2902 Works with \-ac hwmpa only.
2905 .B v4l2 (requires Linux 2.6.22+ kernel)
2906 Audio output driver for V4L2 cards with hardware MPEG decoder.
2909 .B mpegpes (DVB only)
2910 Audio output driver for DVB cards that writes the output to an MPEG-PES
2911 file if no DVB card is installed.
2912 .PD 0
2913 .RSs
2914 .IPs card=<1\-4>
2915 DVB card to use if more than one card is present.
2916 If not specified MPlayer will search the first usable card.
2917 .IPs file=<filename>
2918 output filename
2920 .PD 1
2923 .B "null\ \ \ "
2924 Produces no audio output but maintains video playback speed.
2925 Use \-nosound for benchmarking.
2928 .B "pcm\ \ \ \ "
2929 raw PCM/wave file writer audio output
2930 .PD 0
2931 .RSs
2932 .IPs (no)waveheader
2933 Include or do not include the wave header (default: included).
2934 When not included, raw PCM will be generated.
2935 .IPs file=<filename>
2936 Write the sound to <filename> instead of the default
2937 audiodump.wav.
2938 If nowaveheader is specified, the default is audiodump.pcm.
2939 .IPs "fast\ "
2940 Try to dump faster than realtime.
2941 Make sure the output does not get truncated (usually with
2942 "Too many video packets in buffer" message).
2943 It is normal that you get a "Your system is too SLOW to play this!" message.
2945 .PD 1
2948 .B "plugin\ \ "
2949 plugin audio output driver
2953 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
2956 .B \-adapter <value>
2957 Set the graphics card that will receive the image.
2958 You can get a list of available cards when you run this option with \-v.
2959 Currently only works with the directx video output driver.
2962 .B \-bpp <depth>
2963 Override the autodetected color depth.
2964 Only supported by the fbdev, dga, svga, vesa video output drivers.
2967 .B \-border
2968 Play movie with window border and decorations.
2969 Since this is on by default, use \-noborder to disable the standard window
2970 decorations.
2973 .B \-brightness <\-100\-100>
2974 Adjust the brightness of the video signal (default: 0).
2975 Not supported by all video output drivers.
2978 .B \-contrast <\-100\-100>
2979 Adjust the contrast of the video signal (default: 0).
2980 Not supported by all video output drivers.
2983 .B \-display <name> (X11 only)
2984 Specify the hostname and display number of the X server you want to display
2986 .sp 1
2987 .I EXAMPLE:
2988 .PD 0
2989 .RSs
2990 \-display xtest.localdomain:0
2992 .PD 1
2995 .B "\-dr \ \ \ "
2996 Turns on direct rendering (not supported by all codecs and video outputs)
2998 .I WARNING:
2999 May cause OSD/SUB corruption!
3002 .B \-dxr2 <option1:option2:...>
3003 This option is used to control the dxr2 video output driver.
3004 .RSs
3005 .IPs ar-mode=<value>
3006 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
3007 .IPs iec958-encoded
3008 Set iec958 output mode to encoded.
3009 .IPs iec958-decoded
3010 Set iec958 output mode to decoded (default).
3011 .IPs macrovision=<value>
3012 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
3013 3 = agc 4 colorstripe)
3014 .IPs "mute\ "
3015 mute sound output
3016 .IPs unmute
3017 unmute sound output
3018 .IPs ucode=<value>
3019 path to the microcode
3022 .sp 1
3023 .I TV output
3025 .RSs
3026 .IPs 75ire
3027 enable 7.5 IRE output mode
3028 .IPs no75ire
3029 disable 7.5 IRE output mode (default)
3030 .IPs "bw\ \ \ "
3031 b/w TV output
3032 .IPs color
3033 color TV output (default)
3034 .IPs interlaced
3035 interlaced TV output (default)
3036 .IPs nointerlaced
3037 disable interlaced TV output
3038 .IPs norm=<value>
3039 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
3040 .IPs square-pixel
3041 set pixel mode to square
3042 .IPs ccir601-pixel
3043 set pixel mode to ccir601
3046 .sp 1
3047 .I overlay
3049 .RSs
3050 .IPs cr-left=<0\-500>
3051 Set the left cropping value (default: 50).
3052 .IPs cr-right=<0\-500>
3053 Set the right cropping value (default: 300).
3054 .IPs cr-top=<0\-500>
3055 Set the top cropping value (default: 0).
3056 .IPs cr-bottom=<0\-500>
3057 Set the bottom cropping value (default: 0).
3058 .IPs ck-[r|g|b]=<0\-255>
3059 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
3060 .IPs ck-[r|g|b]min=<0\-255>
3061 minimum value for the respective color key
3062 .IPs ck-[r|g|b]max=<0\-255>
3063 maximum value for the respective color key
3064 .IPs ignore-cache
3065 Ignore cached overlay settings.
3066 .IPs update-cache
3067 Update cached overlay settings.
3068 .IPs ol-osd
3069 Enable overlay onscreen display.
3070 .IPs nool-osd
3071 Disable overlay onscreen display (default).
3072 .IPs ol[h|w|x|y]-cor=<\-20\-20>
3073 Adjust the overlay size (h,w) and position (x,y) in case it does not
3074 match the window perfectly (default: 0).
3075 .IPs overlay
3076 Activate overlay (default).
3077 .IPs nooverlay
3078 Activate TV-out.
3079 .IPs overlay-ratio=<1\-2500>
3080 Tune the overlay (default: 1000).
3084 .B \-fbmode <modename> (\-vo fbdev only)
3085 Change video mode to the one that is labeled as <modename> in
3086 /etc/\:fb.modes.
3088 .I NOTE:
3089 VESA framebuffer does not support mode changing.
3092 .B \-fbmodeconfig <filename> (\-vo fbdev only)
3093 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
3096 .B \-fs (also see \-zoom)
3097 Fullscreen playback (centers movie, and paints black bands around it).
3098 Not supported by all video output drivers.
3101 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3102 Try this option if you still experience fullscreen problems.
3105 .B \-fstype <type1,type2,...> (X11 only)
3106 Specify a priority list of fullscreen modes to be used.
3107 You can negate the modes by prefixing them with '\-'.
3108 If you experience problems like the fullscreen window being covered
3109 by other windows try using a different order.
3111 .I NOTE:
3112 See \-fstype help for a full list of available modes.
3113 .sp 1
3114 The available types are:
3115 .sp 1
3116 .PD 0
3117 .RSs
3118 .IPs above
3119 Use the _NETWM_STATE_ABOVE hint if available.
3120 .IPs below
3121 Use the _NETWM_STATE_BELOW hint if available.
3122 .IPs fullscreen
3123 Use the _NETWM_STATE_FULLSCREEN hint if available.
3124 .IPs layer
3125 Use the _WIN_LAYER hint with the default layer.
3126 .IPs layer=<0...15>
3127 Use the _WIN_LAYER hint with the given layer number.
3128 .IPs netwm
3129 Force NETWM style.
3130 .IPs "none\ "
3131 Clear the list of modes; you can add modes to enable afterward.
3132 .IPs stays_on_top
3133 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3134 .REss
3135 .sp 1
3137 .I EXAMPLE:
3139 .PD 0
3140 .RSs
3141 .IPs layer,stays_on_top,above,fullscreen
3142 Default order, will be used as a fallback if incorrect or
3143 unsupported modes are specified.
3144 .IPs \-fullscreen
3145 Fixes fullscreen switching on OpenBox 1.x.
3147 .PD 1
3150 .B \-geometry x[%][:y[%]] or [WxH][+-x+-y]
3151 Adjust where the output is on the screen initially.
3152 The x and y specifications are in pixels measured from the top-left of the
3153 screen to the top-left of the image being displayed, however if a percentage
3154 sign is given after the argument it turns the value into a percentage of the
3155 screen size in that direction.
3156 It also supports the standard X11 \-geometry option format, in which e.g.
3157 +10-50 means "place 10 pixels from the left border and 50 pixels from the lower
3158 border" and "--20+-10" means "place 20 pixels beyond the right and 10 pixels
3159 beyond the top border".
3160 If an external window is specified using the \-wid option, then the x and
3161 y coordinates are relative to the top-left corner of the window rather
3162 than the screen.
3163 The coordinates are relative to the screen given with \-xineramascreen for
3164 the video output drivers that fully support \-xineramascreen (direct3d, gl, gl2,
3165 vdpau, x11, xv, xvmc, corevideo).
3167 .I NOTE:
3168 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
3169 gl, gl2, directx, fbdev, tdfxfb and corevideo video output drivers.
3170 .sp 1
3171 .I EXAMPLE:
3172 .PD 0
3173 .RSs
3174 .IPs 50:40
3175 Places the window at x=50, y=40.
3176 .IPs 50%:50%
3177 Places the window in the middle of the screen.
3178 .IPs "100%\ "
3179 Places the window at the middle of the right edge of the screen.
3180 .IPs 100%:100%
3181 Places the window at the bottom right corner of the screen.
3183 .PD 1
3186 .B \-guiwid <window ID> (also see \-wid) (GUI only)
3187 This tells the GUI to also use an X11 window and stick itself to the bottom
3188 of the video, which is useful to embed a mini-GUI in a browser (with the
3189 MPlayer plugin for instance).
3192 .B \-hue <\-100\-100>
3193 Adjust the hue of the video signal (default: 0).
3194 You can get a colored negative of the image with this option.
3195 Not supported by all video output drivers.
3198 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3199 Specify the dotclock or pixelclock range of the monitor.
3202 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3203 Specify the horizontal frequency range of the monitor.
3206 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3207 Specify the vertical frequency range of the monitor.
3210 .B \-monitoraspect <ratio> (also see \-aspect)
3211 Set the aspect ratio of your monitor or TV screen.
3212 A value of 0 disables a previous setting (e.g.\& in the config file).
3213 Overrides the \-monitorpixelaspect setting if enabled.
3214 .sp 1
3215 .I EXAMPLE:
3216 .PD 0
3217 .RSs
3218 \-monitoraspect 4:3  or 1.3333
3220 \-monitoraspect 16:9 or 1.7777
3222 .PD 1
3225 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3226 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3227 A value of 1 means square pixels
3228 (correct for (almost?) all LCDs).
3231 .B \-name (X11 only)
3232 Set the window class name.
3235 .B \-nodouble
3236 Disables double buffering, mostly for debugging purposes.
3237 Double buffering fixes flicker by storing two frames in memory, and
3238 displaying one while decoding another.
3239 It can affect OSD negatively, but often removes OSD flickering.
3242 .B \-nograbpointer
3243 Do not grab the mouse pointer after a video mode change (\-vm).
3244 Useful for multihead setups.
3247 .B \-nokeepaspect
3248 Do not keep window aspect ratio when resizing windows.
3249 Only works with the x11, xv, xmga, xvidix, directx video output drivers.
3250 Furthermore under X11 your window manager has to honor window aspect hints.
3253 .B "\-ontop\ "
3254 Makes the player window stay on top of other windows.
3255 Supported by video output drivers which use X11, except SDL,
3256 as well as directx, corevideo, quartz, ggi and gl2.
3259 .B \-panscan <0.0\-1.0>
3260 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3261 movie to make it fit a 4:3 display without black bands).
3262 The range controls how much of the image is cropped.
3263 Only works with the xv, xmga, mga, gl, gl2, quartz, corevideo and xvidix
3264 video output drivers.
3266 .I NOTE:
3267 Values between \-1 and 0 are allowed as well, but highly experimental
3268 and may crash or worse.
3269 Use at your own risk!
3272 .B \-panscanrange <\-19.0\-99.0> (experimental)
3273 Change the range of the pan-and-scan functionality (default: 1).
3274 Positive values mean multiples of the default range.
3275 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3276 E.g.\& \-panscanrange \-3 allows a zoom factor of up to 4.
3277 This feature is experimental.
3278 Do not report bugs unless you are using \-vo gl.
3281 .B \-refreshrate <Hz>
3282 Set the monitor refreshrate in Hz.
3283 Currently only supported by \-vo directx combined with the \-vm option.
3286 .B \-rootwin
3287 Play movie in the root window (desktop background).
3288 Desktop background images may cover the movie window, though.
3289 Only works with the x11, xv, xmga, xvidix, quartz, corevideo and directx video output drivers.
3292 .B \-saturation <\-100\-100>
3293 Adjust the saturation of the video signal (default: 0).
3294 You can get grayscale output with this option.
3295 Not supported by all video output drivers.
3298 .B \-screenh <pixels>
3299 Specify the screen height for video output drivers which
3300 do not know the screen resolution like fbdev, x11 and TV-out.
3303 .B \-screenw <pixels>
3304 Specify the screen width for video output drivers which
3305 do not know the screen resolution like fbdev, x11 and TV-out.
3308 .B \-stop\-xscreensaver (X11 only)
3309 Turns off xscreensaver at startup and turns it on again on exit.
3310 If your screensaver supports neither the XSS nor XResetScreenSaver
3311 API please use \-heartbeat\-cmd instead.
3314 .B \-title (also see \-use\-filename\-title)
3315 Set the window title.
3316 Supported by X11-based video output drivers.
3319 .B \-use\-filename\-title (also see \-title)
3320 Set the window title using the media filename, when not set with \-title.
3321 Supported by X11-based video output drivers.
3324 .B "\-vm \ \ \ "
3325 Try to change to a different video mode.
3326 Supported by the dga, x11, xv, sdl and directx video output drivers.
3327 If used with the directx video output driver the \-screenw,
3328 \-screenh, \-bpp and \-refreshrate options can be used to set
3329 the new display mode.
3332 .B "\-vsync \ \ "
3333 Enables VBI for the vesa, dfbmga and svga video output drivers.
3336 .B \-wid <window ID> (also see \-guiwid) (X11, OpenGL and DirectX only)
3337 This tells MPlayer to attach to an existing window.
3338 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3339 This option fills the given window completely, thus aspect scaling,
3340 panscan, etc are no longer handled by MPlayer but must be managed by the
3341 application that created the window.
3344 .B \-xineramascreen <\-2\-...>
3345 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3346 displays) this option tells MPlayer which screen to display the movie on.
3347 A value of \-2 means fullscreen across the whole virtual display (in this case
3348 Xinerama information is completely ignored), \-1 means
3349 fullscreen on the display the window currently is on.
3350 The initial position set via the \-geometry option is relative to the
3351 specified screen.
3352 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3353 This option is not suitable to only set the startup screen (because
3354 it will always display on the given screen in fullscreen mode),
3355 \-geometry is the best that is available for that purpose
3356 currently.
3357 Supported by at least the direct3d, gl, gl2, x11, xv and corevideo video output
3358 drivers.
3361 .B \-zrbw (\-vo zr only)
3362 Display in black and white.
3363 For optimal performance, this can be combined with '\-lavdopts gray'.
3366 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3367 Select a part of the input image to display, multiple occurrences
3368 of this option switch on cinerama mode.
3369 In cinerama mode the movie is distributed over more than one TV
3370 (or beamer) to create a larger image.
3371 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3372 card should at least have a \-zrdev in addition to the \-zrcrop.
3373 For examples, see the output of \-zrhelp and the Zr section of the
3374 documentation.
3377 .B \-zrdev <device> (\-vo zr only)
3378 Specify the device special file that belongs to your MJPEG card, by default
3379 the zr video output driver takes the first v4l device it can find.
3382 .B \-zrfd (\-vo zr only)
3383 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3384 happens if the hardware scaler can stretch the image to its original size.
3385 Use this option to force decimation.
3388 .B \-zrhdec <1|2|4> (\-vo zr only)
3389 Horizontal 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 \-zrhelp (\-vo zr only)
3395 Display a list of all \-zr* options, their default values and a
3396 cinerama mode example.
3399 .B \-zrnorm <norm> (\-vo zr only)
3400 Specify the TV norm as PAL or NTSC (default: no change).
3403 .B \-zrquality <1\-20> (\-vo zr only)
3404 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3407 .B \-zrvdec <1|2|4> (\-vo zr only)
3408 Vertical decimation: Ask the driver to send only every 2nd or 4th
3409 line/\:pixel of the input image to the MJPEG card and use the scaler
3410 of the MJPEG card to stretch the image to its original size.
3413 .B \-zrxdoff <x display offset> (\-vo zr only)
3414 If the movie is smaller than the TV screen, this option specifies the x
3415 offset from the upper-left corner of the TV screen (default: centered).
3418 .B \-zrydoff <y display offset> (\-vo zr only)
3419 If the movie is smaller than the TV screen, this option specifies the y
3420 offset from the upper-left corner of the TV screen (default: centered).
3424 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3425 Video output drivers are interfaces to different video output facilities.
3426 The syntax is:
3429 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3430 Specify a priority list of video output drivers to be used.
3432 If the list has a trailing ',' MPlayer will fall back on drivers not
3433 contained in the list.
3434 Suboptions are optional and can mostly be omitted.
3436 .I NOTE:
3437 See \-vo help for a list of compiled-in video output drivers.
3438 .sp 1
3439 .I EXAMPLE:
3440 .PD 0
3441 .RSs
3442 .IPs "\-vo xmga,xv,"
3443 Try the Matrox X11 driver, then the Xv driver, then others.
3444 .IPs "\-vo directx:noaccel"
3445 Uses the DirectX driver with acceleration features turned off.
3447 .PD 1
3448 .sp 1
3449 Available video output drivers are:
3452 .B xv (X11 only)
3453 Uses the XVideo extension of XFree86 4.x to enable hardware
3454 accelerated playback.
3455 If you cannot use a hardware specific driver, this is probably
3456 the best option.
3457 For information about what colorkey is used and how it is drawn run MPlayer
3458 with \-v option and look out for the lines tagged with [xv common] at the
3459 beginning.
3460 .PD 0
3461 .RSs
3462 .IPs adaptor=<number>
3463 Select a specific XVideo adaptor (check xvinfo results).
3464 .IPs port=<number>
3465 Select a specific XVideo port.
3466 .IPs ck=<cur|use|set>
3467 Select the source from which the colorkey is taken (default: cur).
3468 .RSss
3469 .IPs cur
3470 The default takes the colorkey currently set in Xv.
3471 .IPs use
3472 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3473 it).
3474 .IPs set
3475 Same as use but also sets the supplied colorkey.
3477 .IPs ck-method=<man|bg|auto>
3478 Sets the colorkey drawing method (default: man).
3479 .RSss
3480 .IPs man
3481 Draw the colorkey manually (reduces flicker in some cases).
3482 .IPs bg
3483 Set the colorkey as window background.
3484 .IPs auto
3485 Let Xv draw the colorkey.
3488 .PD 1
3491 .B x11 (X11 only)
3492 Shared memory video output driver without hardware acceleration that
3493 works whenever X11 is present.
3496 .B xover (X11 only)
3497 Adds X11 support to all overlay based video output drivers.
3498 Currently only supported by tdfx_vid.
3499 .PD 0
3500 .RSs
3501 .IPs <vo_driver>
3502 Select the driver to use as source to overlay on top of X11.
3504 .PD 1
3507 .B vdpau (with \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau, ffh264vdpau or ffodivxvdpau)
3508 Video output that uses VDPAU to decode video via hardware.
3509 Also supports displaying of software-decoded video.
3510 .PD 0
3511 .RSs
3512 .IPs sharpen=<\-1\-1>
3513 For positive values, apply a sharpening algorithm to the video,
3514 for negative values a blurring algorithm (default: 0).
3515 .IPs denoise=<0\-1>
3516 Apply a noise reduction algorithm to the video (default: 0, no noise reduction).
3517 .IPs deint=<0\-4>
3518 Select the deinterlacer (default: 0).
3519 All modes > 0 respect \-field\-dominance.
3520 .RSss
3521 .IPs 0
3522 no deinterlacing
3523 .IPs 1
3524 Show only first field, similar to \-vf field.
3525 .IPs 2
3526 Bob deinterlacing, similar to \-vf tfields=1.
3527 .IPs 3
3528 motion adaptive temporal deinterlacing
3529 May lead to A/V desync with slow video hardware and/or high resolution.
3530 This is the default if "D" is used to enable deinterlacing.
3531 .IPs 4
3532 motion adaptive temporal deinterlacing with edge-guided spatial interpolation
3533 Needs fast video hardware.
3535 .IPs chroma\-deint
3536 Makes temporal deinterlacers operate both on luma and chroma (default).
3537 Use nochroma\-deint to solely use luma and speed up advanced deinterlacing.
3538 Useful with slow video memory.
3539 .IPs pullup
3540 Try to skip deinterlacing for progressive frames, useful for watching
3541 telecined content, needs fast video hardware for high resolutions.
3542 Only works with motion adaptive temporal deinterlacing.
3543 .IPs colorspace
3544 Select the color space for YUV to RGB conversion.
3545 In general BT.601 should be used for standard definition (SD) content and
3546 BT.709 for high definition (HD) content.
3547 Using incorrect color space results in slightly under or over saturated and
3548 shifted colors.
3549 .RSss
3550 .IPs 0
3551 Guess the color space based on video resolution.
3552 Video with width >= 1280 or height > 576 is assumed to be HD and BT.709 color
3553 space will be used.
3554 .IPs 1
3555 Use ITU-R BT.601 color space (default).
3556 .IPs 2
3557 Use ITU-R BT.709 color space.
3558 .IPs 3
3559 Use SMPTE-240M color space.
3561 .IPs hqscaling
3562 .RSss
3563 .IPs 0
3564 Use default VDPAU scaling (default).
3565 .IPs 1\-9
3566 Apply high quality VDPAU scaling (needs capable hardware).
3568 .IPs force\-mixer
3569 Forces the use of the VDPAU mixer, which implements all above options (default).
3570 Use noforce\-mixer to allow displaying BGRA colorspace.
3571 (Disables all above options and the hardware equalizer
3572 if image format BGRA is actually used.)
3574 .PD 1
3577 .B xvmc (X11 with \-vc ffmpeg12mc only)
3578 Video output driver that uses the XvMC (X Video Motion Compensation)
3579 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3580 .PD 0
3581 .RSs
3582 .IPs adaptor=<number>
3583 Select a specific XVideo adaptor (check xvinfo results).
3584 .IPs port=<number>
3585 Select a specific XVideo port.
3586 .IPs (no)benchmark
3587 Disables image display.
3588 Necessary for proper benchmarking of drivers that change
3589 image buffers on monitor retrace only (nVidia).
3590 Default is not to disable image display (nobenchmark).
3591 .IPs (no)bobdeint
3592 Very simple deinterlacer.
3593 Might not look better than \-vf tfields=1,
3594 but it is the only deinterlacer for xvmc (default: nobobdeint).
3595 .IPs (no)queue
3596 Queue frames for display to allow more parallel work of the video hardware.
3597 May add a small (not noticeable) constant A/V desync (default: noqueue).
3598 .IPs (no)sleep
3599 Use sleep function while waiting for rendering to finish
3600 (not recommended on Linux) (default: nosleep).
3601 .IPs ck=cur|use|set
3602 Same as \-vo xv:ck (see \-vo xv).
3603 .IPs ck-method=man|bg|auto
3604 Same as \-vo xv:ck-method (see \-vo xv).
3606 .PD 1
3609 .B dga (X11 only)
3610 Play video through the XFree86 Direct Graphics Access extension.
3611 Considered obsolete.
3614 .B sdl (SDL only, buggy/outdated)
3615 Highly platform independent SDL (Simple Directmedia Layer) library
3616 video output driver.
3617 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3618 any effect on SDL.
3619 Note that it has several minor bugs (\-vm/\-novm is mostly ignored,
3620 \-fs behaves like \-novm should, window is in top-left corner when
3621 returning from fullscreen, panscan is not supported, ...).
3622 .PD 0
3623 .RSs
3624 .IPs driver=<driver>
3625 Explicitly choose the SDL driver to use.
3626 .IPs (no)forcexv
3627 Use XVideo through the sdl video output driver (default: forcexv).
3628 .IPs (no)hwaccel
3629 Use hardware accelerated scaler (default: hwaccel).
3631 .PD 1
3634 .B "vidix\ \ "
3635 VIDIX (VIDeo Interface for *niX) is an interface to the
3636 video acceleration features of different graphics cards.
3637 Very fast video output driver on cards that support it.
3638 .PD 0
3639 .RSs
3640 .IPs <subdevice>
3641 Explicitly choose the VIDIX subdevice driver to use.
3642 Available subdevice drivers are cyberblade, ivtv, mach64,
3643 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, s3, sh_veu,
3644 sis_vid and unichrome.
3646 .PD 1
3649 .B xvidix (X11 only)
3650 X11 frontend for VIDIX
3651 .PD 0
3652 .RSs
3653 .IPs <subdevice>
3654 same as vidix
3656 .PD 1
3659 .B "cvidix\ "
3660 Generic and platform independent VIDIX frontend, can even run in a
3661 text console with nVidia cards.
3662 .PD 0
3663 .RSs
3664 .IPs <subdevice>
3665 same as vidix
3667 .PD 1
3670 .B winvidix (Windows only)
3671 Windows frontend for VIDIX
3672 .PD 0
3673 .RSs
3674 .IPs <subdevice>
3675 same as vidix
3677 .PD 1
3680 .B direct3d (Windows only) (BETA CODE!)
3681 Video output driver that uses the Direct3D interface (useful for Vista).
3684 .B directx (Windows only)
3685 Video output driver that uses the DirectX interface.
3686 .PD 0
3687 .RSs
3688 .IPs noaccel
3689 Turns off hardware acceleration.
3690 Try this option if you have display problems.
3692 .PD 1
3695 .B kva (OS/2 only)
3696 Video output driver that uses the libkva interface.
3697 .PD 0
3698 .RSs
3699 .IPs snap
3700 Force SNAP mode.
3701 .IPs wo
3702 Force WarpOverlay! mode.
3703 .IPs dive
3704 Force DIVE mode.
3705 .IPs (no)t23
3706 Enable or disable workaround for T23 laptop (default: disabled).
3707 Try to enable this option if your video card supports upscaling only.
3709 .PD 1
3712 .B quartz (Mac OS X only)
3713 Mac OS X Quartz video output driver.
3714 Under some circumstances, it might be more efficient to force a
3715 packed YUV output format, with e.g.\& \-vf format=yuy2.
3716 .PD 0
3717 .RSs
3718 .IPs device_id=<number>
3719 Choose the display device to use in fullscreen.
3720 .IPs fs_res=<width>:<height>
3721 Specify the fullscreen resolution (useful on slow systems).
3723 .PD 1
3726 .B corevideo (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3727 Mac OS X CoreVideo video output driver
3728 .PD 0
3729 .RSs
3730 .IPs device_id=<number>
3731 Choose the display device to use for fullscreen or set it to \-1 to
3732 always use the same screen the video window is on (default: \-1 \- auto).
3733 .IPs shared_buffer
3734 Write output to a shared memory buffer instead of displaying it and
3735 try to open an existing NSConnection for communication with a GUI.
3736 .IPs buffer_name=<name>
3737 Name of the shared buffer created with shm_open as well as the name of
3738 the NSConnection MPlayer will try to open (default: "mplayerosx").
3739 Setting buffer_name implicitly enables shared_buffer.
3741 .PD 1
3744 .B fbdev (Linux only)
3745 Uses the kernel framebuffer to play video.
3746 .PD 0
3747 .RSs
3748 .IPs <device>
3749 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3750 name of the VIDIX subdevice if the device name starts with 'vidix'
3751 (e.g.\& 'vidixsis_vid' for the sis driver).
3753 .PD 1
3756 .B fbdev2 (Linux only)
3757 Uses the kernel framebuffer to play video,
3758 alternative implementation.
3759 .PD 0
3760 .RSs
3761 .IPs <device>
3762 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3764 .PD 1
3767 .B "vesa\ \ \ "
3768 Very general video output driver that should work on any VESA VBE 2.0
3769 compatible card.
3770 .PD 0
3771 .RSs
3772 .IPs (no)dga
3773 Turns DGA mode on or off (default: on).
3774 .IPs neotv_pal
3775 Activate the NeoMagic TV out and set it to PAL norm.
3776 .IPs neotv_ntsc
3777 Activate the NeoMagic TV out and set it to NTSC norm.
3778 .IPs vidix
3779 Use the VIDIX driver.
3780 .IPs "lvo:\ \ \ "
3781 Activate the Linux Video Overlay on top of VESA mode.
3783 .PD 1
3786 .B "svga\ \ \ "
3787 Play video using the SVGA library.
3788 .PD 0
3789 .RSs
3790 .IPs "<video mode>"
3791 Specify video mode to use.
3792 The mode can be given in a <width>x<height>x<colors> format,
3793 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3794 .IPs bbosd
3795 Draw OSD into black bands below the movie (slower).
3796 .IPs native
3797 Use only native drawing functions.
3798 This avoids direct rendering, OSD and hardware acceleration.
3799 .IPs retrace
3800 Force frame switch on vertical retrace.
3801 Usable only with \-double.
3802 It has the same effect as the \-vsync option.
3803 .IPs "sq\ \ \ "
3804 Try to select a video mode with square pixels.
3805 .IPs vidix
3806 Use svga with VIDIX.
3808 .PD 1
3811 .B "gl\ \ \ \ \ "
3812 OpenGL video output driver, simple version.
3813 Video size must be smaller than
3814 the maximum texture size of your OpenGL implementation.
3815 Intended to work even with the most basic OpenGL implementations,
3816 but also makes use of newer extensions, which allow support for more
3817 colorspaces and direct rendering.
3818 For optimal speed try something similar to
3820 \-vo gl:yuv=2:rectangle=2:force\-pbo:ati\-hack \-dr \-noslices
3822 The code performs very few checks, so if a feature does not work, this
3823 might be because it is not supported by your card/OpenGL implementation
3824 even if you do not get any error message.
3825 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3826 .PD 0
3827 .RSs
3828 .IPs (no)ati\-hack
3829 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3830 or force\-pbo).
3831 This option fixes this, at the expense of using a bit more memory.
3832 .IPs (no)force\-pbo
3833 Always uses PBOs to transfer textures even if this involves an extra copy.
3834 Currently this gives a little extra speed with NVidia drivers and a lot more
3835 speed with ATI drivers.
3836 May need \-noslices and the ati\-hack suboption to work correctly.
3837 .IPs (no)scaled-osd
3838 Changes the way the OSD behaves when the size of the
3839 window changes (default: disabled).
3840 When enabled behaves more like the other video output drivers,
3841 which is better for fixed-size fonts.
3842 Disabled looks much better with FreeType fonts and uses the
3843 borders in fullscreen mode.
3844 Does not work correctly with ass subtitles (see \-ass), you can instead
3845 render them without OpenGL support via \-vf ass.
3846 .IPs osdcolor=<0xAARRGGBB>
3847 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3848 .IPs rectangle=<0,1,2>
3849 Select usage of rectangular textures which saves video RAM, but often is
3850 slower (default: 0).
3851 .RSss
3852 0: Use power-of-two textures (default).
3854 1: Use the GL_ARB_texture_rectangle extension.
3856 2: Use the GL_ARB_texture_non_power_of_two extension.
3857 In some cases only supported in software and thus very slow.
3859 .IPs swapinterval=<n>
3860 Minimum interval between two buffer swaps, counted in
3861 displayed frames (default: 1).
3862 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3863 Values below 0 will leave it at the system default.
3864 This limits the framerate to (horizontal refresh rate / n).
3865 Requires GLX_SGI_swap_control support to work.
3866 With some (most/all?) implementations this only works in fullscreen mode.
3867 .IPs ycbcr
3868 Use the GL_MESA_ycbcr_texture extension to convert YUV to RGB.
3869 In most cases this is probably slower than doing software conversion to RGB.
3870 .IPs yuv=<n>
3871 Select the type of YUV to RGB conversion.
3872 The default is auto-detection deciding between values 0 and 2.
3873 .RSss
3874 0: Use software conversion.
3875 Compatible with all OpenGL versions.
3876 Provides brightness, contrast and saturation control.
3878 1: Use register combiners.
3879 This uses an nVidia-specific extension (GL_NV_register_combiners).
3880 At least three texture units are needed.
3881 Provides saturation and hue control.
3882 This method is fast but inexact.
3884 2: Use a fragment program.
3885 Needs the GL_ARB_fragment_program extension and at least three texture units.
3886 Provides brightness, contrast, saturation and hue control.
3888 3: Use a fragment program using the POW instruction.
3889 Needs the GL_ARB_fragment_program extension and at least three texture units.
3890 Provides brightness, contrast, saturation, hue and gamma control.
3891 Gamma can also be set independently for red, green and blue.
3892 Method 4 is usually faster.
3894 4: Use a fragment program with additional lookup.
3895 Needs the GL_ARB_fragment_program extension and at least four texture units.
3896 Provides brightness, contrast, saturation, hue and gamma control.
3897 Gamma can also be set independently for red, green and blue.
3899 5: Use ATI-specific method (for older cards).
3900 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3901 GL_ARB_fragment_shader!).
3902 At least three texture units are needed.
3903 Provides saturation and hue control.
3904 This method is fast but inexact.
3906 6: Use a 3D texture to do conversion via lookup.
3907 Needs the GL_ARB_fragment_program extension and at least four texture units.
3908 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3909 a texture with border pixels.
3910 Provides brightness, contrast, saturation, hue and gamma control.
3911 Gamma can also be set independently for red, green and blue.
3912 Speed depends more on GPU memory bandwidth than other methods.
3914 .IPs colorspace
3915 Select the color space for YUV to RGB conversion.
3916 .RSss
3917 .IPs 0
3918 Use the formula used normally by MPlayer (default).
3919 .IPs 1
3920 Use ITU-R BT.601 color space.
3921 .IPs 2
3922 Use ITU-R BT.709 color space.
3923 .IPs 3
3924 Use SMPTE-240M color space.
3926 .IPs levelconv=<n>
3927 Select the brightness level conversion to use for the YUV to RGB conversion
3928 .RSss
3929 .IPs 0
3930 Convert TV to PC levels (default).
3931 .IPs 1
3932 Convert PC to TV levels.
3933 .IPs 2
3934 Do not do any conversion.
3936 .IPs lscale=<n>
3937 Select the scaling function to use for luminance scaling.
3938 Only valid for yuv modes 2, 3, 4 and 6.
3939 .RSss
3940 0: Use simple linear filtering (default).
3942 1: Use bicubic B-spline filtering (better quality).
3943 Needs one additional texture unit.
3944 Older cards will not be able to handle this for chroma at least in fullscreen mode.
3946 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
3947 Works on a few more cards than method 1.
3949 3: Same as 1 but does not use a lookup texture.
3950 Might be faster on some cards.
3952 4: Use experimental unsharp masking with 3x3 support and a default strength of 0.5 (see filter-strength).
3954 5: Use experimental unsharp masking with 5x5 support and a default strength of 0.5 (see filter-strength).
3956 .IPs cscale=<n>
3957 Select the scaling function to use for chrominance scaling.
3958 For details see lscale.
3959 .IPs filter-strength=<value>
3960 Set the effect strength for the lscale/cscale filters that support it.
3961 .IPs customprog=<filename>
3962 Load a custom fragment program from <filename>.
3963 See TOOLS/edgedect.fp for an example.
3964 .IPs customtex=<filename>
3965 Load a custom "gamma ramp" texture from <filename>.
3966 This can be used in combination with yuv=4 or with the customprog option.
3967 .IPs (no)customtlin
3968 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
3969 for customtex texture.
3970 .IPs (no)customtrect
3971 If enabled, use texture_rectangle for customtex texture.
3972 Default is disabled.
3973 .IPs (no)mipmapgen
3974 If enabled, mipmaps for the video are automatically generated.
3975 This should be useful together with the customprog and the TXB
3976 instruction to implement blur filters with a large radius.
3977 For most OpenGL implementations this is very slow for any non-RGB
3978 formats.
3979 Default is disabled.
3981 .sp 1
3983 Normally there is no reason to use the following options, they mostly
3984 exist for testing purposes.
3986 .sp 1
3987 .RSs
3988 .IPs (no)glfinish
3989 Call glFinish() before swapping buffers.
3990 Slower but in some cases more correct output (default: disabled).
3991 .IPs (no)manyfmts
3992 Enables support for more (RGB and BGR) color formats (default: enabled).
3993 Needs OpenGL version >= 1.2.
3994 .IPs slice-height=<0\-...>
3995 Number of lines copied to texture in one piece (default: 0).
3996 0 for whole image.
3998 .I NOTE:
3999 If YUV colorspace is used (see yuv suboption), special rules apply:
4000 .RSss
4001 If the decoder uses slice rendering (see \-noslices), this setting
4002 has no effect, the size of the slices as provided by the decoder is used.
4004 If the decoder does not use slice rendering, the default is 16.
4006 .IPs (no)osd
4007 Enable or disable support for OSD rendering via OpenGL (default: enabled).
4008 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
4009 .IPs (no)aspect
4010 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
4011 Disabling might increase speed.
4012 .REss
4014 .PD 1
4017 .B "gl2\ \ \ \ "
4018 Variant of the OpenGL video output driver.
4019 Supports videos larger than the maximum texture size but lacks many of the
4020 advanced features and optimizations of the gl driver and is unlikely to be
4021 extended further.
4022 .PD 0
4023 .RSs
4024 .IPs (no)glfinish
4025 same as gl (default: enabled)
4026 .IPs yuv=<n>
4027 Select the type of YUV to RGB conversion.
4028 If set to anything except 0 OSD will be disabled and brightness, contrast and
4029 gamma setting is only available via the global X server settings.
4030 Apart from this the values have the same meaning as for \-vo gl.
4031 .REss
4034 .B matrixview
4035 OpenGL-based renderer creating a Matrix-like running-text effect.
4036 .PD 0
4037 .RSs
4038 .IPs cols=<n>
4039 Number of text columns to display.
4040 Very low values (< 16) will probably fail due to scaler limitations.
4041 Values not divisible by 16 may cause issues as well.
4042 .IPs rows=<n>
4043 Number of text rows to display.
4044 Very low values (< 16) will probably fail due to scaler limitations.
4045 Values not divisible by 16 may cause issues as well.
4046 .REss
4049 .B "null\ \ \ "
4050 Produces no video output.
4051 Useful for benchmarking.
4054 .B "aa\ \ \ \ \ "
4055 ASCII art video output driver that works on a text console.
4056 You can get a list and an explanation of available suboptions
4057 by executing 'mplayer \-vo aa:help'.
4059 .I NOTE:
4060 The driver does not handle \-aspect correctly.
4062 .I HINT:
4063 You probably have to specify \-monitorpixelaspect.
4064 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
4067 .B "caca\ \ \ "
4068 Color ASCII art video output driver that works on a text console.
4071 .B "bl\ \ \ \ \ "
4072 Video playback using the Blinkenlights UDP protocol.
4073 This driver is highly hardware specific.
4074 .PD 0
4075 .RSs
4076 .IPs <subdevice>
4077 Explicitly choose the Blinkenlights subdevice driver to use.
4078 It is something like arcade:host=localhost:2323 or
4079 hdl:file=name1,file=name2.
4080 You must specify a subdevice.
4082 .PD 1
4085 .B "ggi\ \ \ \ "
4086 GGI graphics system video output driver
4087 .PD 0
4088 .RSs
4089 .IPs <driver>
4090 Explicitly choose the GGI driver to use.
4091 Replace any ',' that would appear in the driver string by a '.'.
4093 .PD 1
4096 .B directfb
4097 Play video using the DirectFB library.
4098 .PD 0
4099 .RSs
4100 .IPs (no)input
4101 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
4102 .IPs buffermode=single|double|triple
4103 Double and triple buffering give best results if you want to avoid tearing issues.
4104 Triple buffering is more efficient than double buffering as it does
4105 not block MPlayer while waiting for the vertical retrace.
4106 Single buffering should be avoided (default: single).
4107 .IPs fieldparity=top|bottom
4108 Control the output order for interlaced frames (default: disabled).
4109 Valid values are top = top fields first, bottom = bottom fields first.
4110 This option does not have any effect on progressive film material
4111 like most MPEG movies are.
4112 You need to enable this option if you have tearing issues or unsmooth
4113 motions watching interlaced film material.
4114 .IPs layer=N
4115 Will force layer with ID N for playback (default: \-1 \- auto).
4116 .IPs dfbopts=<list>
4117 Specify a parameter list for DirectFB.
4119 .PD 1
4122 .B "dfbmga\ "
4123 Matrox G400/\:G450/\:G550 specific video output driver that uses the
4124 DirectFB library to make use of special hardware features.
4125 Enables CRTC2 (second head), displaying video independently of the first head.
4126 .PD 0
4127 .RSs
4128 .IPs (no)input
4129 same as directfb (default: disabled)
4130 .IPs buffermode=single|double|triple
4131 same as directfb (default: triple)
4132 .IPs fieldparity=top|bottom
4133 same as directfb
4134 .IPs (no)bes
4135 Enable the use of the Matrox BES (backend scaler) (default: disabled).
4136 Gives very good results concerning speed and output quality as interpolated
4137 picture processing is done in hardware.
4138 Works only on the primary head.
4139 .IPs (no)spic
4140 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
4141 .IPs (no)crtc2
4142 Turn on TV-out on the second head (default: enabled).
4143 The output quality is amazing as it is a full interlaced picture
4144 with proper sync to every odd/\:even field.
4145 .IPs tvnorm=pal|ntsc|auto
4146 Will set the TV norm of the Matrox card without the need
4147 for modifying /etc/\:directfbrc (default: disabled).
4148 Valid norms are pal = PAL, ntsc = NTSC.
4149 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
4150 which norm to use by looking at the framerate of the movie.
4152 .PD 1
4155 .B mga (Linux only)
4156 Matrox specific video output driver that makes use of the YUV back
4157 end scaler on Gxxx cards through a kernel module.
4158 If you have a Matrox card, this is the fastest option.
4159 .PD 0
4160 .RSs
4161 .IPs <device>
4162 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4164 .PD 1
4167 .B xmga (Linux, X11 only)
4168 The mga video output driver, running in an X11 window.
4169 .PD 0
4170 .RSs
4171 .IPs <device>
4172 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4174 .PD 1
4177 .B s3fb (Linux only) (also see \-vf yuv2 and \-dr)
4178 S3 Virge specific video output driver.
4179 This driver supports the card's YUV conversion and scaling, double
4180 buffering and direct rendering features.
4181 Use \-vf yuy2 to get hardware-accelerated YUY2 rendering, which is
4182 much faster than YV12 on this card.
4183 .PD 0
4184 .RSs
4185 .IPs <device>
4186 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4188 .PD 1
4191 .B wii (Linux only)
4192 Nintendo Wii/GameCube specific video output driver.
4195 .B 3dfx (Linux only)
4196 3dfx-specific video output driver that directly uses
4197 the hardware on top of X11.
4198 Only 16 bpp are supported.
4201 .B tdfxfb (Linux only)
4202 This driver employs the tdfxfb framebuffer driver to play movies with
4203 YUV acceleration on 3dfx cards.
4204 .PD 0
4205 .RSs
4206 .IPs <device>
4207 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4209 .PD 1
4212 .B tdfx_vid (Linux only)
4213 3dfx-specific video output driver that works in combination with
4214 the tdfx_vid kernel module.
4215 .PD 0
4216 .RSs
4217 .IPs <device>
4218 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
4220 .PD 1
4223 .B dxr2 (also see \-dxr2) (DXR2 only)
4224 Creative DXR2 specific video output driver.
4225 .PD 0
4226 .RSs
4227 .IPs <vo_driver>
4228 Output video subdriver to use as overlay (x11, xv).
4230 .PD 1
4233 .B dxr3 (DXR3 only)
4234 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
4235 Hollywood Plus) specific video output driver.
4236 Also see the lavc video filter.
4237 .PD 0
4238 .RSs
4239 .IPs overlay
4240 Activates the overlay instead of TV-out.
4241 .IPs prebuf
4242 Turns on prebuffering.
4243 .IPs "sync\ "
4244 Will turn on the new sync-engine.
4245 .IPs norm=<norm>
4246 Specifies the TV norm.
4247 .RSss
4248 0: Does not change current norm (default).
4250 1: Auto-adjust using PAL/\:NTSC.
4252 2: Auto-adjust using PAL/\:PAL-60.
4254 3: PAL
4256 4: PAL-60
4258 5: NTSC
4260 .IPs <0\-3>
4261 Specifies the device number to use if you have more than one em8300 card.
4263 .PD 1
4266 .B ivtv (IVTV only)
4267 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4268 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4269 specific video output driver for TV-out.
4270 Also see the lavc video filter.
4271 .PD 0
4272 .RSs
4273 .IPs <device>
4274 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4275 .IPs <output>
4276 Explicitly choose the TV-out output to be used for the video signal.
4278 .PD 1
4281 .B v4l2 (requires Linux 2.6.22+ kernel)
4282 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4283 Also see the lavc video filter.
4284 .PD 0
4285 .RSs
4286 .IPs <device>
4287 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4288 .IPs <output>
4289 Explicitly choose the TV-out output to be used for the video signal.
4291 .PD 1
4294 .B mpegpes (DVB only)
4295 Video output driver for DVB cards that writes the output to an MPEG-PES file
4296 if no DVB card is installed.
4297 .PD 0
4298 .RSs
4299 .IPs card=<1\-4>
4300 Specifies the device number to use if you have more than one DVB output card
4301 (V3 API only, such as 1.x.y series drivers).
4302 If not specified MPlayer will search the first usable card.
4303 .IPs <filename>
4304 output filename (default: ./grab.mpg)
4306 .PD 1
4309 .B zr (also see \-zr* and \-zrhelp)
4310 Video output driver for a number of MJPEG capture/\:playback cards.
4313 .B zr2 (also see the zrmjpeg video filter)
4314 Video output driver for a number of MJPEG capture/\:playback cards,
4315 second generation.
4316 .PD 0
4317 .RSs
4318 .IPs dev=<device>
4319 Specifies the video device to use.
4320 .IPs norm=<PAL|NTSC|SECAM|auto>
4321 Specifies the video norm to use (default: auto).
4322 .IPs (no)prebuf
4323 (De)Activate prebuffering, not yet supported.
4325 .PD 1
4328 .B "md5sum\ "
4329 Calculate MD5 sums of each frame and write them to a file.
4330 Supports RGB24 and YV12 colorspaces.
4331 Useful for debugging.
4332 .PD 0
4333 .RSs
4334 .IPs outfile=<value>
4335 Specify the output filename (default: ./md5sums).
4337 .PD 1
4340 .B yuv4mpeg
4341 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4342 images and stores it in a file (default: ./stream.yuv).
4343 The format is the same as the one employed by mjpegtools, so this is
4344 useful if you want to process the video with the mjpegtools suite.
4345 It supports the YV12, RGB (24 bpp) and BGR (24 bpp) format.
4346 You can combine it with the \-fixed\-vo option to concatenate files
4347 with the same dimensions and fps value.
4348 .PD 0
4349 .RSs
4350 .IPs interlaced
4351 Write the output as interlaced frames, top field first.
4352 .IPs interlaced_bf
4353 Write the output as interlaced frames, bottom field first.
4354 .IPs file=<filename>
4355 Write the output to <filename> instead of the default stream.yuv.
4356 .REss
4357 .PD 1
4359 .sp 1
4360 .I NOTE:
4361 If you do not specify any option the output is progressive
4362 (i.e.\& not interlaced).
4366 .B "gif89a\ "
4367 Output each frame into a single animated GIF file in the current directory.
4368 It supports only RGB format with 24 bpp and the output is converted to 256
4369 colors.
4370 .PD 0
4371 .RSs
4372 .IPs <fps>
4373 Float value to specify framerate (default: 5.0).
4374 .IPs <output>
4375 Specify the output filename (default: ./out.gif).
4376 .REss
4377 .PD 1
4379 .sp 1
4380 .I NOTE:
4381 You must specify the framerate before the filename or the framerate will
4382 be part of the filename.
4383 .sp 1
4384 .I EXAMPLE:
4386 .PD 0
4387 .RSs
4388 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4390 .PD 1
4393 .B "jpeg\ \ \ "
4394 Output each frame into a JPEG file in the current directory.
4395 Each file takes the frame number padded with leading zeros as name.
4396 .PD 0
4397 .RSs
4398 .IPs [no]progressive
4399 Specify standard or progressive JPEG (default: noprogressive).
4400 .IPs [no]baseline
4401 Specify use of baseline or not (default: baseline).
4402 .IPs optimize=<0\-100>
4403 optimization factor (default: 100)
4404 .IPs smooth=<0\-100>
4405 smooth factor (default: 0)
4406 .IPs quality=<0\-100>
4407 quality factor (default: 75)
4408 .IPs outdir=<dirname>
4409 Specify the directory to save the JPEG files to (default: ./).
4410 .IPs subdirs=<prefix>
4411 Create numbered subdirectories with the specified prefix to
4412 save the files in instead of the current directory.
4413 .IPs "maxfiles=<value> (subdirs only)"
4414 Maximum number of files to be saved per subdirectory.
4415 Must be equal to or larger than 1 (default: 1000).
4417 .PD 1
4420 .B "pnm\ \ \ \ "
4421 Output each frame into a PNM file in the current directory.
4422 Each file takes the frame number padded with leading zeros as name.
4423 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4424 Also see pnm(5), ppm(5) and pgm(5).
4425 .PD 0
4426 .RSs
4427 .IPs "ppm\ \ "
4428 Write PPM files (default).
4429 .IPs "pgm\ \ "
4430 Write PGM files.
4431 .IPs pgmyuv
4432 Write PGMYUV files.
4433 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4434 bottom of the picture.
4435 .IPs "raw\ \ "
4436 Write PNM files in raw mode (default).
4437 .IPs ascii
4438 Write PNM files in ASCII mode.
4439 .IPs outdir=<dirname>
4440 Specify the directory to save the PNM files to (default: ./).
4441 .IPs subdirs=<prefix>
4442 Create numbered subdirectories with the specified prefix to
4443 save the files in instead of the current directory.
4444 .IPs "maxfiles=<value> (subdirs only)"
4445 Maximum number of files to be saved per subdirectory.
4446 Must be equal to or larger than 1 (default: 1000).
4448 .PD 1
4451 .B "png\ \ \ \ "
4452 Output each frame into a PNG file in the current directory.
4453 Each file takes the frame number padded with leading zeros as name.
4454 24bpp RGB and BGR formats are supported.
4455 .PD 0
4456 .RSs
4457 .IPs z=<0\-9>
4458 Specifies the compression level.
4459 0 is no compression, 9 is maximum compression.
4460 .IPs outdir=<dirname>
4461 Specify the directory to save the PNG files to (default: ./).
4462 .IPs alpha (default: noalpha)
4463 Create PNG files with an alpha channel.
4464 Note that MPlayer in general does not support alpha, so this will only
4465 be useful in some rare cases.
4467 .PD 1
4470 .B "tga\ \ \ \ "
4471 Output each frame into a Targa file in the current directory.
4472 Each file takes the frame number padded with leading zeros as name.
4473 The purpose of this video output driver is to have a simple lossless
4474 image writer to use without any external library.
4475 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4476 You can force a particular format with the format video filter.
4477 .sp 1
4478 .I EXAMPLE:
4480 .PD 0
4481 .RSs
4482 mplayer video.nut \-vf format=bgr15 \-vo tga
4484 .PD 1
4488 .SH "DECODING/FILTERING OPTIONS"
4491 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4492 Specify a priority list of audio codecs to be used, according to their codec
4493 name in codecs.conf.
4494 Use a '\-' before the codec name to omit it.
4495 Use a '+' before the codec name to force it, this will likely crash!
4496 If the list has a trailing ',' MPlayer will fall back on codecs not
4497 contained in the list.
4499 .I NOTE:
4500 See \-ac help for a full list of available codecs.
4501 .sp 1
4502 .I EXAMPLE:
4503 .PD 0
4504 .RSs
4505 .IPs "\-ac mp3acm"
4506 Force the l3codeca.acm MP3 codec.
4507 .IPs "\-ac mad,"
4508 Try libmad first, then fall back on others.
4509 .IPs "\-ac hwac3,a52,"
4510 Try hardware AC-3 passthrough, software AC-3, then others.
4511 .IPs "\-ac hwdts,"
4512 Try hardware DTS passthrough, then fall back on others.
4513 .IPs "\-ac \-ffmp3,"
4514 Skip FFmpeg's MP3 decoder.
4516 .PD 1
4519 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4520 Specify advanced audio filter options:
4521 .RSs
4522 .IPs force=<0\-7>
4523 Forces the insertion of audio filters to one of the following:
4524 .RSss
4525 0: Use completely automatic filter insertion (currently identical to 1).
4527 1: Optimize for accuracy (default).
4529 2: Optimize for speed.
4530 .I Warning:
4531 Some features in the audio filters may silently fail,
4532 and the sound quality may drop.
4534 3: Use no automatic insertion of filters and no optimization.
4535 .I Warning:
4536 It may be possible to crash MPlayer using this setting.
4538 4: Use automatic insertion of filters according to 0 above,
4539 but use floating point processing when possible.
4541 5: Use automatic insertion of filters according to 1 above,
4542 but use floating point processing when possible.
4544 6: Use automatic insertion of filters according to 2 above,
4545 but use floating point processing when possible.
4547 7: Use no automatic insertion of filters according to 3 above,
4548 and use floating point processing when possible.
4549 .REss
4550 .IPs list=<filters>
4551 Same as \-af.
4555 .B \-afm <driver1,driver2,...>
4556 Specify a priority list of audio codec families to be used, according
4557 to their codec name in codecs.conf.
4558 Falls back on the default codecs if none of the given codec families work.
4560 .I NOTE:
4561 See \-afm help for a full list of available codec families.
4562 .sp 1
4563 .I EXAMPLE:
4564 .PD 0
4565 .RSs
4566 .IPs "\-afm ffmpeg"
4567 Try FFmpeg's libavcodec codecs first.
4568 .IPs "\-afm acm,dshow"
4569 Try Win32 codecs first.
4571 .PD 1
4574 .B \-aspect <ratio> (also see \-zoom)
4575 Override movie aspect ratio, in case aspect information is
4576 incorrect or missing in the file being played.
4577 .sp 1
4578 .I EXAMPLE:
4579 .PD 0
4580 .RSs
4581 \-aspect 4:3  or \-aspect 1.3333
4583 \-aspect 16:9 or \-aspect 1.7777
4585 .PD 1
4588 .B \-noaspect
4589 Disable automatic movie aspect ratio compensation.
4592 .B "\-field\-dominance <\-1\-1>"
4593 Set first field for interlaced content.
4594 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4595 \-vf yadif=1, \-vo vdpau:deint and \-vo xvmc:bobdeint.
4596 .PD 0
4597 .RSs
4598 .IPs \-1
4599 auto (default): If the decoder does not export the appropriate information,
4600 it falls back to 0 (top field first).
4601 .IPs 0
4602 top field first
4603 .IPs 1
4604 bottom field first
4606 .PD 1
4609 .B "\-flip \ "
4610 Flip image upside-down.
4613 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4614 Specify libavcodec decoding parameters.
4615 Separate multiple options with a colon.
4616 .sp 1
4617 .I EXAMPLE:
4618 .PD 0
4619 .RSs
4620 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4622 .PD 1
4623 .sp 1
4625 Available options are:
4627 .RSs
4628 .IPs bitexact
4629 Only use bit-exact algorithms in all decoding steps (for codec testing).
4630 .IPs bug=<value>
4631 Manually work around encoder bugs.
4632 .RSss
4633 0: nothing
4635 1: autodetect bugs (default)
4637 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4639 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4641 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4643 16 (mpeg4): padding bug (autodetected)
4645 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4647 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4649 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4651 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4653 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4655 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4656 .REss
4657 .IPs debug=<value>
4658 Display debugging information.
4659 .RSss
4661 0: disabled
4663 1: picture info
4665 2: rate control
4667 4: bitstream
4669 8: macroblock (MB) type
4671 16: per-block quantization parameter (QP)
4673 32: motion vector
4675 0x0040: motion vector visualization (use \-noslices)
4677 0x0080: macroblock (MB) skip
4679 0x0100: startcode
4681 0x0200: PTS
4683 0x0400: error resilience
4685 0x0800: memory management control operations (H.264)
4687 0x1000: bugs
4689 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4691 0x4000: Visualize block types.
4692 .REss
4693 .IPs ec=<value>
4694 Set error concealment strategy.
4695 .RSss
4696 1: Use strong deblock filter for damaged MBs.
4698 2: iterative motion vector (MV) search (slow)
4700 3: all (default)
4701 .REss
4702 .IPs er=<value>
4703 Set error resilience strategy.
4704 .RSss
4706 0: disabled
4708 1: careful (Should work with broken encoders.)
4710 2: normal (default) (Works with compliant encoders.)
4712 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4714 4: very aggressive
4715 .REss
4716 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4717 Enable optimizations which do not comply to the specification and might
4718 potentially cause problems, like simpler dequantization, simpler motion
4719 compensation, assuming use of the default quantization matrix, assuming
4720 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4721 .IPs "gray\ "
4722 grayscale only decoding (a bit faster than with color)
4723 .IPs "idct=<0\-99> (see \-lavcopts)"
4724 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4725 This may come at a price in accuracy, though.
4726 .IPs lowres=<number>[,<w>]
4727 Decode at lower resolutions.
4728 Low resolution decoding is not supported by all codecs, and it will
4729 often result in ugly artifacts.
4730 This is not a bug, but a side effect of not decoding at full resolution.
4731 .RSss
4733 0: disabled
4735 1: 1/2 resolution
4737 2: 1/4 resolution
4739 3: 1/8 resolution
4740 .REss
4742 If <w> is specified lowres decoding will be used only if the width of the
4743 video is major than or equal to <w>.
4745 .B o=<key>=<value>[,<key>=<value>[,...]]
4746 Pass AVOptions to libavcodec decoder.
4747 Note, a patch to make the o= unneeded and pass all unknown options through
4748 the AVOption system is welcome.
4749 A full list of AVOptions can be found in the FFmpeg manual.
4750 Note that some options may conflict with MEncoder options.
4751 .sp 1
4753 .I EXAMPLE:
4755 .RSs
4756 .PD 0
4757 .IPs o=debug=pict
4758 .PD 1
4760 .IPs "sb=<number> (MPEG-2 only)"
4761 Skip the given number of macroblock rows at the bottom.
4762 .IPs "st=<number> (MPEG-2 only)"
4763 Skip the given number of macroblock rows at the top.
4764 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4765 Skips the loop filter (AKA deblocking) during H.264 decoding.
4766 Since the filtered frame is supposed to be used as reference
4767 for decoding dependent frames this has a worse effect on quality
4768 than not doing deblocking on e.g.\& MPEG-2 video.
4769 But at least for high bitrate HDTV this provides a big speedup with
4770 no visible quality loss.
4771 .sp 1
4772 <skipvalue> can be either one of the following:
4773 .RSss
4775 none: Never skip.
4777 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4779 nonref: Skip frames that are not referenced (i.e.\& not used for
4780 decoding other frames, the error cannot "build up").
4782 bidir: Skip B-Frames.
4784 nonkey: Skip all frames except keyframes.
4786 all: Skip all frames.
4787 .REss
4788 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4789 Skips the IDCT step.
4790 This degrades quality a lot of in almost all cases
4791 (see skiploopfilter for available skip values).
4792 .IPs skipframe=<skipvalue>
4793 Skips decoding of frames completely.
4794 Big speedup, but jerky motion and sometimes bad artifacts
4795 (see skiploopfilter for available skip values).
4796 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4797 number of threads to use for decoding (default: 1)
4798 .IPs vismv=<value>
4799 Visualize motion vectors.
4800 .RSss
4802 0: disabled
4804 1: Visualize forward predicted MVs of P-frames.
4806 2: Visualize forward predicted MVs of B-frames.
4808 4: Visualize backward predicted MVs of B-frames.
4809 .REss
4810 .IPs vstats
4811 Prints some statistics and stores them in ./vstats_*.log.
4815 .B \-noslices
4816 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4817 whole frame in a single run.
4818 May be faster or slower, depending on video card and available cache.
4819 It has effect only with libmpeg2 and libavcodec codecs.
4822 .B \-nosound
4823 Do not play/\:encode sound.
4824 Useful for benchmarking.
4827 .B \-novideo
4828 Do not play/\:encode video.
4829 In many cases this will not work, use \-vc null \-vo null instead.
4832 .B \-pp <quality> (also see \-vf pp)
4833 Set the DLL postprocess level.
4834 This option is no longer usable with \-vf pp.
4835 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4836 The valid range of \-pp values varies by codec, it is mostly
4837 0\-6, where 0=disable, 6=slowest/\:best.
4840 .B \-pphelp (also see \-vf pp)
4841 Show a summary about the available postprocess filters and their usage.
4844 .B \-ssf <mode>
4845 Specifies software scaler parameters.
4846 .sp 1
4847 .I EXAMPLE:
4848 .PD 0
4849 .RSs
4850 \-vf scale \-ssf lgb=3.0
4852 .PD 1
4853 .PD 0
4854 .RSs
4855 .IPs lgb=<0\-100>
4856 gaussian blur filter (luma)
4857 .IPs cgb=<0\-100>
4858 gaussian blur filter (chroma)
4859 .IPs ls=<\-100\-100>
4860 sharpen filter (luma)
4861 .IPs cs=<\-100\-100>
4862 sharpen filter (chroma)
4863 .IPs chs=<h>
4864 chroma horizontal shifting
4865 .IPs cvs=<v>
4866 chroma vertical shifting
4868 .PD 1
4871 .B \-stereo <mode>
4872 Select type of MP2/\:MP3 stereo output.
4873 .PD 0
4874 .RSs
4875 .IPs 0
4876 stereo
4877 .IPs 1
4878 left channel
4879 .IPs 2
4880 right channel
4882 .PD 1
4885 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4886 Specify the software scaler algorithm to be used with the \-zoom option.
4887 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4888 .sp 1
4889 Available types are:
4890 .sp 1
4891 .PD 0
4892 .RSs
4893 .IPs 0
4894 fast bilinear
4895 .IPs 1
4896 bilinear
4897 .IPs 2
4898 bicubic (good quality) (default)
4899 .IPs 3
4900 experimental
4901 .IPs 4
4902 nearest neighbor (bad quality)
4903 .IPs 5
4904 area
4905 .IPs 6
4906 luma bicubic / chroma bilinear
4907 .IPs 7
4908 gauss
4909 .IPs 8
4910 sincR
4911 .IPs 9
4912 lanczos
4913 .IPs 10
4914 natural bicubic spline
4916 .PD 1
4917 .sp 1
4919 .I NOTE:
4920 Some \-sws options are tunable.
4921 The description of the scale video filter has further information.
4925 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
4926 Specify a priority list of video codecs to be used, according to their codec
4927 name in codecs.conf.
4928 Use a '\-' before the codec name to omit it.
4929 Use a '+' before the codec name to force it, this will likely crash!
4930 If the list has a trailing ',' MPlayer will fall back on codecs not
4931 contained in the list.
4933 .I NOTE:
4934 See \-vc help for a full list of available codecs.
4935 .sp 1
4936 .I EXAMPLE:
4937 .PD 0
4938 .RSs
4939 .IPs "\-vc divx"
4940 Force Win32/\:VfW DivX codec, no fallback.
4941 .IPs "\-vc \-divxds,\-divx,"
4942 Skip Win32 DivX codecs.
4943 .IPs "\-vc ffmpeg12,mpeg12,"
4944 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
4946 .PD 1
4949 .B \-vfm <driver1,driver2,...>
4950 Specify a priority list of video codec families to be used, according
4951 to their names in codecs.conf.
4952 Falls back on the default codecs if none of the given codec families work.
4954 .I NOTE:
4955 See \-vfm help for a full list of available codec families.
4956 .sp 1
4957 .I EXAMPLE:
4958 .PD 0
4959 .RSs
4960 .IPs "\-vfm ffmpeg,dshow,vfw"
4961 Try the libavcodec, then Directshow, then VfW codecs and fall back
4962 on others, if they do not work.
4963 .IPs "\-vfm xanim"
4964 Try XAnim codecs first.
4966 .PD 1
4969 .B \-x <x> (also see \-zoom) (MPlayer only)
4970 Scale image to width <x> (if software/\:hardware scaling is available).
4971 Disables aspect calculations.
4974 .B \-xvidopts <option1:option2:...>
4975 Specify additional parameters when decoding with Xvid.
4977 .I NOTE:
4978 Since libavcodec is faster than Xvid you might want to use the libavcodec
4979 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
4980 .sp 1
4981 Xvid's internal postprocessing filters:
4982 .PD 0
4983 .RSs
4984 .IPs "deblock-chroma (also see \-vf pp)"
4985 chroma deblock filter
4986 .IPs "deblock-luma (also see \-vf pp)"
4987 luma deblock filter
4988 .IPs "dering-luma (also see \-vf pp)"
4989 luma deringing filter
4990 .IPs "dering-chroma (also see \-vf pp)"
4991 chroma deringing filter
4992 .IPs "filmeffect (also see \-vf noise)"
4993 Adds artificial film grain to the video.
4994 May increase perceived quality, while lowering true quality.
4996 .sp 1
4998 rendering methods:
5000 .PD 0
5001 .RSs
5002 .IPs "dr2\ \ "
5003 Activate direct rendering method 2.
5004 .IPs nodr2
5005 Deactivate direct rendering method 2.
5007 .PD 1
5010 .B \-xy <value> (also see \-zoom)
5011 .PD 0
5012 .RSs
5013 .IPs value<=8
5014 Scale image by factor <value>.
5015 .IPs value>8
5016 Set width to value and calculate height to keep correct aspect ratio.
5018 .PD 1
5021 .B \-y <y> (also see \-zoom) (MPlayer only)
5022 Scale image to height <y> (if software/\:hardware scaling is available).
5023 Disables aspect calculations.
5026 .B "\-zoom\ \ "
5027 Allow software scaling, where available.
5028 This will allow scaling with output drivers (like x11, fbdev) that
5029 do not support hardware scaling where MPlayer disables scaling by
5030 default for performance reasons.
5034 .SH "AUDIO FILTERS"
5035 Audio filters allow you to modify the audio stream and its properties.
5036 The syntax is:
5039 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
5040 Setup a chain of audio filters.
5042 .I NOTE:
5043 To get a full list of available audio filters, see \-af help.
5044 .sp 1
5045 Audio filters are managed in lists.
5046 There are a few commands to manage the filter list.
5049 .B \-af\-add <filter1[,filter2,...]>
5050 Appends the filters given as arguments to the filter list.
5053 .B \-af\-pre <filter1[,filter2,...]>
5054 Prepends the filters given as arguments to the filter list.
5057 .B \-af\-del <index1[,index2,...]>
5058 Deletes the filters at the given indexes.
5059 Index numbers start at 0, negative numbers address the end of the
5060 list (\-1 is the last).
5063 .B \-af\-clr
5064 Completely empties the filter list.
5066 Available filters are:
5069 .B resample[=srate[:sloppy[:type]]]
5070 Changes the sample rate of the audio stream.
5071 Can be used if you have a fixed frequency sound card or if you are
5072 stuck with an old sound card that is only capable of max 44.1kHz.
5073 This filter is automatically enabled if necessary.
5074 It only supports 16-bit integer and float in native-endian format as input.
5076 .I NOTE:
5077 With MEncoder, you need to also use \-srate <srate>.
5078 .PD 0
5079 .RSs
5080 .IPs <srate>
5081 output sample frequency in Hz.
5082 The valid range for this parameter is 8000 to 192000.
5083 If the input and output sample frequency are the same or if this
5084 parameter is omitted the filter is automatically unloaded.
5085 A high sample frequency normally improves the audio quality,
5086 especially when used in combination with other filters.
5087 .IPs <sloppy>
5088 Allow (1) or disallow (0) the output frequency to differ slightly
5089 from the frequency given by <srate> (default: 1).
5090 Can be used if the startup of the playback is extremely slow.
5091 .IPs <type>
5092 Select which resampling method to use.
5093 .RSss
5094 0: linear interpolation (fast, poor quality especially when upsampling)
5096 1: polyphase filterbank and integer processing
5098 2: polyphase filterbank and floating point processing (slow, best quality)
5099 .REss
5100 .PD 1
5102 .sp 1
5104 .I EXAMPLE:
5106 .PD 0
5107 .RSs
5108 .IPs "mplayer \-af resample=44100:0:0"
5109 would set the output frequency of the resample filter to 44100Hz using
5110 exact output frequency scaling and linear interpolation.
5112 .PD 1
5115 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
5116 Changes the sample rate of the audio stream to an integer <srate> in Hz.
5117 It only supports the 16-bit native-endian format.
5119 .I NOTE:
5120 With MEncoder, you need to also use \-srate <srate>.
5121 .PD 0
5122 .RSs
5123 .IPs <srate>
5124 the output sample rate
5125 .IPs <length>
5126 length of the filter with respect to the lower sampling rate (default: 16)
5127 .IPs <linear>
5128 if 1 then filters will be linearly interpolated between polyphase entries
5129 .IPs <count>
5130 log2 of the number of polyphase entries
5131 (..., 10->1024, 11->2048, 12->4096, ...)
5132 (default: 10->1024)
5133 .IPs <cutoff>
5134 cutoff frequency (0.0\-1.0), default set depending upon filter length
5136 .PD 1
5139 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
5140 Encode multi-channel audio to AC-3 at runtime using libavcodec.
5141 Supports 16-bit native-endian input format, maximum 6 channels.
5142 The output is big-endian when outputting a raw AC-3 stream,
5143 native-endian when outputting to S/PDIF.
5144 The output sample rate of this filter is same with the input sample rate.
5145 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
5146 Otherwise a resampling filter is auto-inserted before this filter to make
5147 the input and output sample rate be 48kHz.
5148 You need to specify '\-channels N' to make the decoder decode audio into
5149 N-channel, then the filter can encode the N-channel input to AC-3.
5151 .PD 0
5152 .RSs
5153 .IPs <tospdif>
5154 Output raw AC-3 stream if zero or not set,
5155 output to S/PDIF for passthrough when <tospdif> is set non-zero.
5156 .IPs <bitrate>
5157 The bitrate to encode the AC-3 stream.
5158 Set it to either 384 or 384000 to get 384kbits.
5159 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
5160               320, 384, 448, 512, 576, 640
5161 Default bitrate is based on the input channel number:
5162 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
5163 .IPs <minchn>
5164 If the input channel number is less than <minchn>, the filter will
5165 detach itself (default: 5).
5167 .PD 1
5170 .B sweep[=speed]
5171 Produces a sine sweep.
5172 .PD 0
5173 .RSs
5174 .IPs <0.0\-1.0>
5175 Sine function delta, use very low values to hear the sweep.
5177 .PD 1
5180 .B sinesuppress[=freq:decay]
5181 Remove a sine at the specified frequency.
5182 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
5183 It probably only works on mono input.
5184 .PD 0
5185 .RSs
5186 .IPs <freq>
5187 The frequency of the sine which should be removed (in Hz) (default: 50)
5188 .IPs <decay>
5189 Controls the adaptivity (a larger value will make the filter adapt to
5190 amplitude and phase changes quicker, a smaller value will make the
5191 adaptation slower) (default: 0.0001).
5192 Reasonable values are around 0.001.
5194 .PD 1
5197 .B bs2b[=option1:option2:...]
5198 Bauer stereophonic to binaural transformation using libbs2b.
5199 Improves the headphone listening experience by making the sound
5200 similar to that from loudspeakers, allowing each ear to hear both
5201 channels and taking into account the distance difference and the
5202 head shadowing effect.
5203 It is applicable only to 2 channel audio.
5204 .PD 0
5205 .RSs
5206 .IPs fcut=<300\-1000>
5207 Set cut frequency in Hz.
5208 .IPs feed=<10\-150>
5209 Set feed level for low frequencies in 0.1*dB.
5210 .IPs profile=<value>
5211 Several profiles are available for convenience:
5212 .PD 0
5213 .RSs
5214 .IPs default
5215 will be used if nothing else was specified (fcut=700, feed=45)
5216 .IPs "cmoy\ "
5217 Chu Moy circuit implementation (fcut=700, feed=60)
5218 .IPs jmeier
5219 Jan Meier circuit implementation (fcut=650, feed=95)
5222 .sp 1
5224 If fcut or feed options are specified together with a profile, they
5225 will be applied on top of the selected profile.
5227 .PD 1
5230 .B hrtf[=flag]
5231 Head-related transfer function: Converts multichannel audio to
5232 2 channel output for headphones, preserving the spatiality of the sound.
5233 .sp 1
5234 .PD 0
5236 .IPs "Flag  Meaning"
5237 .IPs "m     matrix decoding of the rear channel"
5238 .IPs "s     2-channel matrix decoding"
5239 .IPs "0     no matrix decoding (default)"
5241 .PD 1
5244 .B equalizer=[g1:g2:g3:...:g10]
5245 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
5246 This means that it works regardless of what type of audio is being played back.
5247 The center frequencies for the 10 bands are:
5248 .sp 1
5249 .PD 0
5251 .IPs "No. frequency"
5252 .IPs "0    31.25 Hz"
5253 .IPs "1    62.50 Hz"
5254 .IPs "2   125.00 Hz"
5255 .IPs "3   250.00 Hz"
5256 .IPs "4   500.00 Hz"
5257 .IPs "5    1.00 kHz"
5258 .IPs "6    2.00 kHz"
5259 .IPs "7    4.00 kHz"
5260 .IPs "8    8.00 kHz"
5261 .IPs "9   16.00 kHz"
5263 .PD 1
5264 .sp 1
5266 If the sample rate of the sound being played is lower than the center
5267 frequency for a frequency band, then that band will be disabled.
5268 A known bug with this filter is that the characteristics for the
5269 uppermost band are not completely symmetric if the sample
5270 rate is close to the center frequency of that band.
5271 This problem can be worked around by upsampling the sound
5272 using the resample filter before it reaches this filter.
5274 .PD 0
5275 .RSs
5276 .IPs <g1>:<g2>:<g3>:...:<g10>
5277 floating point numbers representing the gain in dB
5278 for each frequency band (\-12\-12)
5280 .sp 1
5282 .I EXAMPLE:
5284 .RSs
5285 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
5286 Would amplify the sound in the upper and lower frequency region
5287 while canceling it almost completely around 1kHz.
5289 .PD 1
5292 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
5293 Can be used for adding, removing, routing and copying audio channels.
5294 If only <nch> is given the default routing is used, it works as
5295 follows: If the number of output channels is bigger than the number of
5296 input channels empty channels are inserted (except mixing from mono to
5297 stereo, then the mono channel is repeated in both of the output
5298 channels).
5299 If the number of output channels is smaller than the number
5300 of input channels the exceeding channels are truncated.
5301 .PD 0
5302 .RSs
5303 .IPs <nch>
5304 number of output channels (1\-8)
5305 .IPs "<nr>\ "
5306 number of routes (1\-8)
5307 .IPs <from1:to1:from2:to2:from3:to3:...>
5308 Pairs of numbers between 0 and 7 that define where to route each channel.
5310 .sp 1
5312 .I EXAMPLE:
5314 .RSs
5315 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5316 Would change the number of channels to 4 and set up 4 routes that
5317 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5318 Observe that if media containing two channels was played back, channels
5319 2 and 3 would contain silence but 0 and 1 would still be swapped.
5320 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5321 Would change the number of channels to 6 and set up 4 routes
5322 that copy channel 0 to channels 0 to 3.
5323 Channel 4 and 5 will contain silence.
5325 .PD 1
5328 .B format[=format] (also see \-format)
5329 Convert between different sample formats.
5330 Automatically enabled when needed by the sound card or another filter.
5331 .PD 0
5332 .RSs
5333 .IPs <format>
5334 Sets the desired format.
5335 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5336 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5337 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5338 and 'ne' the endianness of the computer MPlayer is running on).
5339 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5340 Exceptions to this rule that are also valid format specifiers: u8, s8,
5341 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5343 .PD 1
5346 .B volume[=v[:sc]]
5347 Implements software volume control.
5348 Use this filter with caution since it can reduce the signal
5349 to noise ratio of the sound.
5350 In most cases it is best to set the level for the PCM sound to max,
5351 leave this filter out and control the output level to your
5352 speakers with the master volume control of the mixer.
5353 In case your sound card has a digital PCM mixer instead of an analog
5354 one, and you hear distortion, use the MASTER mixer instead.
5355 If there is an external amplifier connected to the computer (this
5356 is almost always the case), the noise level can be minimized by
5357 adjusting the master level and the volume knob on the amplifier
5358 until the hissing noise in the background is gone.
5360 This filter has a second feature: It measures the overall maximum
5361 sound level and prints out that level when MPlayer exits.
5362 This volume estimate can be used for setting the sound level in
5363 MEncoder such that the maximum dynamic range is utilized.
5365 .I NOTE:
5366 This filter is not reentrant and can therefore only be enabled
5367 once for every audio stream.
5368 .PD 0
5369 .RSs
5370 .IPs "<v>\ \ "
5371 Sets the desired gain in dB for all channels in the stream
5372 from \-200dB to +60dB, where \-200dB mutes the sound
5373 completely and +60dB equals a gain of 1000 (default: 0).
5374 .IPs "<sc>\ "
5375 Turns soft clipping on (1) or off (0).
5376 Soft-clipping can make the sound more smooth if very
5377 high volume levels are used.
5378 Enable this option if the dynamic range of the
5379 loudspeakers is very low.
5381 .I WARNING:
5382 This feature creates distortion and should be considered a last resort.
5384 .sp 1
5386 .I EXAMPLE:
5388 .RSs
5389 .IPs "mplayer \-af volume=10.1:0 media.avi"
5390 Would amplify the sound by 10.1dB and hard-clip if the
5391 sound level is too high.
5393 .PD 1
5396 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5397 Mixes channels arbitrarily.
5398 Basically a combination of the volume and the channels filter
5399 that can be used to down-mix many channels to only a few,
5400 e.g.\& stereo to mono or vary the "width" of the center
5401 speaker in a surround sound system.
5402 This filter is hard to use, and will require some tinkering
5403 before the desired result is obtained.
5404 The number of options for this filter depends on
5405 the number of output channels.
5406 An example how to downmix a six-channel file to two channels with
5407 this filter can be found in the examples section near the end.
5408 .PD 0
5409 .RSs
5410 .IPs "<n>\ \ "
5411 number of output channels (1\-8)
5412 .IPs <Lij>
5413 How much of input channel i is mixed into output channel j (0\-1).
5414 So in principle you first have n numbers saying what to do with the
5415 first input channel, then n numbers that act on the second input channel
5416 etc.
5417 If you do not specify any numbers for some input channels, 0 is assumed.
5419 .sp 1
5421 .I EXAMPLE:
5423 .RSs
5424 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5425 Would down-mix from stereo to mono.
5426 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5427 Would give 3 channel output leaving channels 0 and 1 intact,
5428 and mix channels 0 and 1 into output channel 2 (which could
5429 be sent to a subwoofer for example).
5431 .PD 1
5434 .B sub[=fc:ch]
5435 Adds a subwoofer channel to the audio stream.
5436 The audio data used for creating the subwoofer channel is
5437 an average of the sound in channel 0 and channel 1.
5438 The resulting sound is then low-pass filtered by a 4th order
5439 Butterworth filter with a default cutoff frequency of 60Hz
5440 and added to a separate channel in the audio stream.
5442 .I Warning:
5443 Disable this filter when you are playing DVDs with Dolby
5444 Digital 5.1 sound, otherwise this filter will disrupt
5445 the sound to the subwoofer.
5446 .PD 0
5447 .RSs
5448 .IPs "<fc>\ "
5449 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5450 For the best result try setting the cutoff frequency as low as possible.
5451 This will improve the stereo or surround sound experience.
5452 .IPs "<ch>\ "
5453 Determines the channel number in which to insert the sub-channel audio.
5454 Channel number can be between 0 and 7 (default: 5).
5455 Observe that the number of channels will automatically
5456 be increased to <ch> if necessary.
5458 .sp 1
5460 .I EXAMPLE:
5462 .RSs
5463 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5464 Would add a sub-woofer channel with a cutoff frequency of
5465 100Hz to output channel 4.
5467 .PD 1
5470 .B "center\ "
5471 Creates a center channel from the front channels.
5472 May currently be low quality as it does not implement a
5473 high-pass filter for proper extraction yet, but averages and
5474 halves the channels instead.
5475 .PD 0
5476 .RSs
5477 .IPs "<ch>\ "
5478 Determines the channel number in which to insert the center channel.
5479 Channel number can be between 0 and 7 (default: 5).
5480 Observe that the number of channels will automatically
5481 be increased to <ch> if necessary.
5483 .PD 1
5486 .B surround[=delay]
5487 Decoder for matrix encoded surround sound like Dolby Surround.
5488 Many files with 2 channel audio actually contain matrixed surround sound.
5489 Requires a sound card supporting at least 4 channels.
5490 .PD 0
5491 .RSs
5492 .IPs <delay>
5493 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5494 This delay should be set as follows: If d1 is the distance
5495 from the listening position to the front speakers and d2 is the distance
5496 from the listening position to the rear speakers, then the delay should
5497 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5499 .sp 1
5501 .I EXAMPLE:
5503 .RSs
5504 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5505 Would add surround sound decoding with 15ms delay for the sound to the
5506 rear speakers.
5508 .PD 1
5511 .B delay[=ch1:ch2:...]
5512 Delays the sound to the loudspeakers such that the sound from the
5513 different channels arrives at the listening position simultaneously.
5514 It is only useful if you have more than 2 loudspeakers.
5515 .PD 0
5516 .RSs
5517 .IPs ch1,ch2,...
5518 The delay in ms that should be imposed on each channel
5519 (floating point number between 0 and 1000).
5521 .PD 1
5522 .sp 1
5524 To calculate the required delay for the different channels do as follows:
5525 .IP 1. 3
5526 Measure the distance to the loudspeakers in meters in relation
5527 to your listening position, giving you the distances s1 to s5
5528 (for a 5.1 system).
5529 There is no point in compensating for the subwoofer (you will not hear the
5530 difference anyway).
5531 .IP 2. 3
5532 Subtract the distances s1 to s5 from the maximum distance,
5533 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5534 .IP 3.
5535 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5537 .PD 0
5538 .sp 1
5540 .I EXAMPLE:
5542 .RSs
5543 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5544 Would delay front left and right by 10.5ms, the two rear channels
5545 and the sub by 0ms and the center channel by 7ms.
5547 .PD 1
5550 .B export[=mmapped_file[:nsamples]]
5551 Exports the incoming signal to other processes using memory mapping (mmap()).
5552 Memory mapped areas contain a header:
5553 .sp 1
5555 int nch                      /*number of channels*/
5556 int size                     /*buffer size*/
5557 unsigned long long counter   /*Used to keep sync, updated every
5558                                time new data is exported.*/
5560 .sp 1
5561 The rest is payload (non-interleaved) 16 bit data.
5562 .PD 0
5563 .RSs
5564 .IPs <mmapped_file>
5565 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5566 .IPs <nsamples>
5567 number of samples per channel (default: 512)
5569 .sp 1
5571 .I EXAMPLE:
5573 .RSs
5574 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5575 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5577 .PD 1
5580 .B extrastereo[=mul]
5581 (Linearly) increases the difference between left and right channels
5582 which adds some sort of "live" effect to playback.
5583 .PD 0
5584 .RSs
5585 .IPs <mul>
5586 Sets the difference coefficient (default: 2.5).
5587 0.0 means mono sound (average of both channels), with 1.0 sound will be
5588 unchanged, with \-1.0 left and right channels will be swapped.
5590 .PD 1
5593 .B volnorm[=method:target]
5594 Maximizes the volume without distorting the sound.
5595 .PD 0
5596 .RSs
5597 .IPs <method>
5598 Sets the used method.
5599 .RSss
5600 1: Use a single sample to smooth the variations via the standard
5601 weighted mean over past samples (default).
5603 2: Use several samples to smooth the variations via the standard
5604 weighted mean over past samples.
5605 .REss
5606 .IPs <target>
5607 Sets the target amplitude as a fraction of the maximum for the
5608 sample type (default: 0.25).
5610 .PD 1
5613 .B ladspa=file:label[:controls...]
5614 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5615 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5616 .PD 0
5617 .RSs
5618 .IPs <file>
5619 Specifies the LADSPA plugin library file.
5620 If LADSPA_PATH is set, it searches for the specified file.
5621 If it is not set, you must supply a fully specified pathname.
5622 .IPs <label>
5623 Specifies the filter within the library.
5624 Some libraries contain only one filter, but others contain many of them.
5625 Entering 'help' here, will list all available filters within the specified
5626 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5627 .IPs <controls>
5628 Controls are zero or more floating point values that determine the
5629 behavior of the loaded plugin (for example delay, threshold or gain).
5630 In verbose mode (add \-v to the MPlayer command line), all available controls
5631 and their valid ranges are printed.
5632 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5634 .PD 1
5637 .B "comp\ \ \ "
5638 Compressor/expander filter usable for microphone input.
5639 Prevents artifacts on very loud sound and raises the volume on
5640 very low sound.
5641 This filter is untested, maybe even unusable.
5644 .B "gate\ \ \ "
5645 Noise gate filter similar to the comp audio filter.
5646 This filter is untested, maybe even unusable.
5649 .B karaoke
5650 Simple voice removal filter exploiting the fact that voice is
5651 usually recorded with mono gear and later 'center' mixed onto
5652 the final audio stream.
5653 Beware that this filter will turn your signal into mono.
5654 Works well for 2 channel tracks; do not bother trying it
5655 on anything but 2 channel stereo.
5658 .B scaletempo[=option1:option2:...]
5659 Scales audio tempo without altering pitch, optionally synced to playback
5660 speed (default).
5662 This works by playing \'stride\' ms of audio at normal speed then
5663 consuming \'stride*scale\' ms of input audio.
5664 It pieces the strides together by blending \'overlap\'% of stride with
5665 audio following the previous stride.
5666 It optionally performs a short statistical analysis on the next \'search\'
5667 ms of audio to determine the best overlap position.
5668 .PD 0
5669 .RSs
5670 .IPs scale=<amount>
5671 Nominal amount to scale tempo.
5672 Scales this amount in addition to speed.
5673 (default: 1.0)
5674 .IPs stride=<amount>
5675 Length in milliseconds to output each stride.
5676 Too high of value will cause noticable skips at high scale amounts and
5677 an echo at low scale amounts.
5678 Very low values will alter pitch.
5679 Increasing improves performance.
5680 (default: 60)
5681 .IPs overlap=<percent>
5682 Percentage of stride to overlap.
5683 Decreasing improves performance.
5684 (default: .20)
5685 .IPs search=<amount>
5686 Length in milliseconds to search for best overlap position.
5687 Decreasing improves performance greatly.
5688 On slow systems, you will probably want to set this very low.
5689 (default: 14)
5690 .IPs speed=<tempo|pitch|both|none>
5691 Set response to speed change.
5692 .RSss
5693 .IPs tempo
5694 Scale tempo in sync with speed (default).
5695 .IPs pitch
5696 Reverses effect of filter.
5697 Scales pitch without altering tempo.
5698 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5699 to your input.conf to step by musical semi-tones.
5700 .I WARNING:
5701 Loses sync with video.
5702 .IPs both
5703 Scale both tempo and pitch.
5704 .IPs none
5705 Ignore speed changes.
5708 .sp 1
5710 .I EXAMPLE:
5712 .RSs
5713 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5714 Would playback media at 1.2x normal speed, with audio at normal pitch.
5715 Changing playback speed, would change audio tempo to match.
5716 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5717 Would playback media at 1.2x normal speed, with audio at normal pitch,
5718 but changing playback speed has no effect on audio tempo.
5719 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5720 Would tweak the quality and performace parameters.
5721 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5722 Would make scaletempo use float code.
5723 Maybe faster on some platforms.
5724 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5725 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5726 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5728 .PD 1
5731 .B "stats\ \ "
5732 Collects and prints statistics about the audio stream, especially the volume.
5733 These statistics are especially intended to help adjusting the volume while
5734 avoiding clipping.
5735 The volumes are printed in dB and compatible with the volume audio filter.
5739 .SH "VIDEO FILTERS"
5740 Video filters allow you to modify the video stream and its properties.
5741 The syntax is:
5744 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5745 Setup a chain of video filters.
5747 Many parameters are optional and set to default values if omitted.
5748 To explicitly use a default value set a parameter to '\-1'.
5749 Parameters w:h means width x height in pixels, x:y means x;y position counted
5750 from the upper left corner of the bigger image.
5752 .I NOTE:
5753 To get a full list of available video filters, see \-vf help.
5754 .sp 1
5755 Video filters are managed in lists.
5756 There are a few commands to manage the filter list.
5759 .B \-vf\-add <filter1[,filter2,...]>
5760 Appends the filters given as arguments to the filter list.
5763 .B \-vf\-pre <filter1[,filter2,...]>
5764 Prepends the filters given as arguments to the filter list.
5767 .B \-vf\-del <index1[,index2,...]>
5768 Deletes the filters at the given indexes.
5769 Index numbers start at 0, negative numbers address the end of the
5770 list (\-1 is the last).
5773 .B \-vf\-clr
5774 Completely empties the filter list.
5776 With filters that support it, you can access parameters by their name.
5779 .B \-vf <filter>=help
5780 Prints the parameter names and parameter value ranges for a particular
5781 filter.
5784 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5785 Sets a named parameter to the given value.
5786 Use on and off or yes and no to set flag parameters.
5788 Available filters are:
5791 .B crop[=w:h:x:y]
5792 Crops the given part of the image and discards the rest.
5793 Useful to remove black bands from widescreen movies.
5794 .PD 0
5795 .RSs
5796 .IPs <w>,<h>
5797 Cropped width and height, defaults to original width and height.
5798 .IPs <x>,<y>
5799 Position of the cropped picture, defaults to center.
5801 .PD 1
5804 .B cropdetect[=limit:round[:reset]]
5805 Calculates necessary cropping parameters and prints the recommended parameters
5806 to stdout.
5807 .PD 0
5808 .RSs
5809 .IPs <limit>
5810 Threshold, which can be optionally specified from nothing (0) to
5811 everything (255) (default: 24).
5813 .IPs <round>
5814 Value which the width/\:height should be divisible by (default: 16).
5815 The offset is automatically adjusted to center the video.
5816 Use 2 to get only even dimensions (needed for 4:2:2 video).
5817 16 is best when encoding to most video codecs.
5819 .IPs <reset>
5820 Counter that determines after how many frames cropdetect will reset the
5821 previously detected largest video area and start over to detect the current
5822 optimal crop area (default: 0).
5823 This can be useful when channel logos distort the video area.
5824 0 indicates never reset and return the largest area encountered during playback.
5826 .PD 1
5829 .B rectangle[=w:h:x:y]
5830 Draws a rectangle of the requested width and height at the specified
5831 coordinates over the image and prints current rectangle parameters
5832 to the console.
5833 This can be used to find optimal cropping parameters.
5834 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5835 you can move and resize the rectangle on the fly.
5836 .PD 0
5837 .RSs
5838 .IPs <w>,<h>
5839 width and height (default: \-1, maximum possible width where boundaries
5840 are still visible.)
5841 .IPs <x>,<y>
5842 top left corner position (default: \-1, uppermost leftmost)
5844 .PD 1
5847 .B expand[=w:h:x:y:o:a:r]
5848 Expands (not scales) movie resolution to the given value and places the
5849 unscaled original at coordinates x, y.
5850 Can be used for placing subtitles/\:OSD in the resulting black bands.
5851 .RSs
5852 .IPs <w>,<h>
5853 Expanded width,height (default: original width,height).
5854 Negative values for w and h are treated as offsets to the original size.
5855 .sp 1
5856 .I EXAMPLE:
5857 .PD 0
5858 .RSs
5859 .IP expand=0:\-50:0:0
5860 Adds a 50 pixel border to the bottom of the picture.
5862 .PD 1
5863 .IPs <x>,<y>
5864 position of original image on the expanded image (default: center)
5865 .IPs "<o>\ \ "
5866 OSD/\:subtitle rendering
5867 .RSss
5868 0: disable (default)
5870 1: enable
5871 .REss
5872 .IPs "<a>\ \ "
5873 Expands to fit an aspect instead of a resolution (default: 0).
5874 .sp 1
5875 .I EXAMPLE:
5876 .PD 0
5877 .RSs
5878 .IP expand=800:::::4/3
5879 Expands to 800x600, unless the source is higher resolution, in which
5880 case it expands to fill a 4/3 aspect.
5882 .PD 1
5883 .IPs "<r>\ \ "
5884 Rounds up to make both width and height divisible by <r> (default: 1).
5888 .B flip (also see \-flip)
5889 Flips the image upside down.
5892 .B "mirror\ "
5893 Mirrors the image on the Y axis.
5896 .B rotate[=<0\-7>]
5897 Rotates the image by 90 degrees and optionally flips it.
5898 For values between 4\-7 rotation is only done if the movie geometry is
5899 portrait and not landscape.
5900 .RSs
5901 .IPs 0
5902 Rotate by 90 degrees clockwise and flip (default).
5903 .IPs 1
5904 Rotate by 90 degrees clockwise.
5905 .IPs 2
5906 Rotate by 90 degrees counterclockwise.
5907 .IPs 3
5908 Rotate by 90 degrees counterclockwise and flip.
5912 .B scale[=w:h[:interlaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5913 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5914 colorspace conversion (also see \-sws).
5915 .RSs
5916 .IPs <w>,<h>
5917 scaled width/\:height (default: original width/\:height)
5919 .I NOTE:
5920 If \-zoom is used, and underlying filters (including libvo) are
5921 incapable of scaling, it defaults to d_width/\:d_height!
5922 .RSss
5923  0:   scaled d_width/\:d_height
5925 \-1:   original width/\:height
5927 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
5929 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
5931 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
5932 .REss
5933 .IPs <interlaced>
5934 Toggle interlaced scaling.
5935 .RSss
5936 0: off (default)
5938 1: on
5939 .REss
5940 .IPs <chr_drop>
5941 chroma skipping
5942 .RSss
5943 0: Use all available input lines for chroma.
5945 1: Use only every 2. input line for chroma.
5947 2: Use only every 4. input line for chroma.
5949 3: Use only every 8. input line for chroma.
5950 .REss
5951 .IPs "<par>[:<par2>] (also see \-sws)"
5952 Set some scaling parameters depending on the type of scaler selected
5953 with \-sws.
5954 .RSss
5955 \-sws 2 (bicubic):  B (blurring) and C (ringing)
5957 0.00:0.60 default
5959 0.00:0.75 VirtualDub's "precise bicubic"
5961 0.00:0.50 Catmull-Rom spline
5963 0.33:0.33 Mitchell-Netravali spline
5965 1.00:0.00 cubic B-spline
5967 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
5969 \-sws 9 (lanczos):  filter length (1\-10)
5970 .REss
5971 .IPs <presize>
5972 Scale to preset sizes.
5973 .RSss
5974 qntsc:   352x240 (NTSC quarter screen)
5976 qpal:    352x288 (PAL quarter screen)
5978 ntsc:    720x480 (standard NTSC)
5980 pal:     720x576 (standard PAL)
5982 sntsc:   640x480 (square pixel NTSC)
5984 spal:    768x576 (square pixel PAL)
5985 .REss
5986 .IPs <noup>
5987 Disallow upscaling past the original dimensions.
5988 .RSss
5989 0: Allow upscaling (default).
5991 1: Disallow upscaling if one dimension exceeds its original value.
5993 2: Disallow upscaling if both dimensions exceed their original values.
5994 .REss
5995 .IPs <arnd>
5996 Accurate rounding for the vertical scaler, which may be faster
5997 or slower than the default rounding.
5998 .RSss
5999 0: Disable accurate rounding (default).
6001 1: Enable accurate rounding.
6002 .REss
6006 .B dsize[=aspect|w:h:aspect-method:r]
6007 Changes the intended display size/\:aspect at an arbitrary point in the
6008 filter chain.
6009 Aspect can be given as a fraction (4/3) or floating point number
6010 (1.33).
6011 Alternatively, you may specify the exact display width and height
6012 desired.
6013 Note that this filter does
6014 .B not
6015 do any scaling itself; it just affects
6016 what later scalers (software or hardware) will do when auto-scaling to
6017 correct aspect.
6018 .RSs
6019 .IPs <w>,<h>
6020 New display width and height.
6021 Can also be these special values:
6022 .RSss
6023  0:   original display width and height
6025 \-1:   original video width and height (default)
6027 \-2:   Calculate w/h using the other dimension and the original display
6028 aspect ratio.
6030 \-3:   Calculate w/h using the other dimension and the original video
6031 aspect ratio.
6032 .REss
6033 .sp 1
6034 .I EXAMPLE:
6035 .PD 0
6036 .RSs
6037 .IP dsize=800:\-2
6038 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
6039 800x450 for a 16/9 aspect video.
6041 .IPs <aspect-method>
6042 Modifies width and height according to original aspect ratios.
6043 .RSss
6044 \-1: Ignore original aspect ratio (default).
6046  0: Keep display aspect ratio by using <w> and <h> as maximum
6047 resolution.
6049  1: Keep display aspect ratio by using <w> and <h> as minimum
6050 resolution.
6052  2: Keep video aspect ratio by using <w> and <h> as maximum
6053 resolution.
6055  3: Keep video aspect ratio by using <w> and <h> as minimum
6056 resolution.
6057 .REss
6058 .sp 1
6059 .I EXAMPLE:
6060 .PD 0
6061 .RSs
6062 .IP dsize=800:600:0
6063 Specifies a display resolution of at most 800x600, or smaller, in order
6064 to keep aspect.
6066 .PD 1
6067 .IPs "<r>\ \ "
6068 Rounds up to make both width and height divisible by <r> (default: 1).
6072 .B "yuy2\ \ \ "
6073 Forces software YV12/\:I420/\:422P to YUY2 conversion.
6074 Useful for video cards/\:drivers with slow YV12 but fast YUY2 support.
6077 .B "yvu9\ \ \ "
6078 Forces software YVU9 to YV12 colorspace conversion.
6079 Deprecated in favor of the software scaler.
6082 .B "yuvcsp\ "
6083 Clamps YUV color values to the CCIR 601 range without doing real conversion.
6086 .B rgb2bgr[=swap]
6087 RGB 24/32 <\-> BGR 24/32 colorspace conversion.
6088 .PD 0
6089 .RSs
6090 .IPs "swap\ "
6091 Also perform  R <\-> B swapping.
6093 .PD 1
6096 .B palette
6097 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
6100 .B format[=fourcc]
6101 Restricts the colorspace for the next filter without doing any conversion.
6102 Use together with the scale filter for a real conversion.
6104 .I NOTE:
6105 For a list of available formats see format=fmt=help.
6106 .PD 0
6107 .RSs
6108 .IPs <fourcc>
6109 format name like rgb15, bgr24, yv12, etc (default: yuy2)
6111 .PD 1
6114 .B noformat[=fourcc]
6115 Restricts the colorspace for the next filter without doing any conversion.
6116 Unlike the format filter, this will allow any colorspace
6117 .B except
6118 the one you specify.
6120 .I NOTE:
6121 For a list of available formats see noformat=fmt=help.
6122 .PD 0
6123 .RSs
6124 .IPs <fourcc>
6125 format name like rgb15, bgr24, yv12, etc (default: yv12)
6127 .PD 1
6130 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
6131 Enables the specified chain of postprocessing subfilters.
6132 Subfilters must be separated by '/' and can be disabled by
6133 prepending a '\-'.
6134 Each subfilter and some options have a short and a long name that can be
6135 used interchangeably, i.e.\& dr/dering are the same.
6136 All subfilters share common options to determine their scope:
6137 .PD 0
6138 .RSs
6139 .IPs a/autoq
6140 Automatically switch the subfilter off if the CPU is too slow.
6141 .IPs c/chrom
6142 Do chrominance filtering, too (default).
6143 .IPs y/nochrom
6144 Do luminance filtering only (no chrominance).
6145 .IPs n/noluma
6146 Do chrominance filtering only (no luminance).
6148 .PD 1
6149 .sp 1
6152 .I NOTE:
6153 \-pphelp shows a list of available subfilters.
6154 .sp 1
6155 Available subfilters are
6157 .RSs
6158 .IPs hb/hdeblock[:difference[:flatness]]
6159 horizontal deblocking filter
6160 .RSss
6161 <difference>: Difference factor where higher values mean
6162 more deblocking (default: 32).
6164 <flatness>: Flatness threshold where lower values mean
6165 more deblocking (default: 39).
6166 .REss
6167 .IPs vb/vdeblock[:difference[:flatness]]
6168 vertical deblocking filter
6169 .RSss
6170 <difference>: Difference factor where higher values mean
6171 more deblocking (default: 32).
6173 <flatness>: Flatness threshold where lower values mean
6174 more deblocking (default: 39).
6175 .REss
6176 .IPs ha/hadeblock[:difference[:flatness]]
6177 accurate horizontal deblocking filter
6178 .RSss
6179 <difference>: Difference factor where higher values mean
6180 more deblocking (default: 32).
6182 <flatness>: Flatness threshold where lower values mean
6183 more deblocking (default: 39).
6184 .REss
6185 .IPs va/vadeblock[:difference[:flatness]]
6186 accurate vertical deblocking filter
6187 .RSss
6188 <difference>: Difference factor where higher values mean
6189 more deblocking (default: 32).
6191 <flatness>: Flatness threshold where lower values mean
6192 more deblocking (default: 39).
6193 .REss
6194 .sp 1
6195 The horizontal and vertical deblocking filters share the
6196 difference and flatness values so you cannot set
6197 different horizontal and vertical thresholds.
6198 .sp 1
6199 .IPs h1/x1hdeblock
6200 experimental horizontal deblocking filter
6201 .IPs v1/x1vdeblock
6202 experimental vertical deblocking filter
6203 .IPs dr/dering
6204 deringing filter
6205 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
6206 temporal noise reducer
6207 .RSss
6208 <threshold1>: larger -> stronger filtering
6210 <threshold2>: larger -> stronger filtering
6212 <threshold3>: larger -> stronger filtering
6213 .REss
6214 .IPs al/autolevels[:f/fullyrange]
6215 automatic brightness / contrast correction
6216 .RSss
6217 f/fullyrange: Stretch luminance to (0\-255).
6218 .REss
6219 .IPs lb/linblenddeint
6220 Linear blend deinterlacing filter that deinterlaces the given block
6221 by filtering all lines with a (1 2 1) filter.
6222 .IPs li/linipoldeint
6223 Linear interpolating deinterlacing filter that deinterlaces the given block
6224 by linearly interpolating every second line.
6225 .IPs ci/cubicipoldeint
6226 Cubic interpolating deinterlacing filter deinterlaces the given block
6227 by cubically interpolating every second line.
6228 .IPs md/mediandeint
6229 Median deinterlacing filter that deinterlaces the given block
6230 by applying a median filter to every second line.
6231 .IPs fd/ffmpegdeint
6232 FFmpeg deinterlacing filter that deinterlaces the given block
6233 by filtering every second line with a (\-1 4 2 4 \-1) filter.
6234 .IPs l5/lowpass5
6235 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
6236 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
6237 .IPs fq/forceQuant[:quantizer]
6238 Overrides the quantizer table from the input with the constant
6239 quantizer you specify.
6240 .RSss
6241 <quantizer>: quantizer to use
6242 .REss
6243 .IPs de/default
6244 default pp filter combination (hb:a,vb:a,dr:a)
6245 .IPs fa/fast
6246 fast pp filter combination (h1:a,v1:a,dr:a)
6247 .IPs "ac\ \ \ "
6248 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
6251 .sp 1
6252 .I EXAMPLE:
6254 .PD 0
6255 .RSs
6256 .IPs "\-vf pp=hb/vb/dr/al"
6257 horizontal and vertical deblocking, deringing and automatic
6258 brightness/\:contrast
6259 .IPs "\-vf pp=de/\-al"
6260 default filters without brightness/\:contrast correction
6261 .IPs "\-vf pp=default/tmpnoise:1:2:3"
6262 Enable default filters & temporal denoiser.
6263 .IPs "\-vf pp=hb:y/vb:a"
6264 Horizontal deblocking on luminance only, and switch vertical deblocking
6265 on or off automatically depending on available CPU time.
6267 .PD 1
6270 .B spp[=quality[:qp[:mode]]]
6271 Simple postprocessing filter that compresses and decompresses the
6272 image at several (or \- in the case of quality level 6 \- all)
6273 shifts and averages the results.
6274 .RSs
6275 .IPs <quality>
6276 0\-6 (default: 3)
6277 .IPs "<qp>\ "
6278 Force quantization parameter (default: 0, use QP from video).
6279 .IPs <mode>
6280 0: hard thresholding (default)
6282 1: soft thresholding (better deringing, but blurrier)
6284 4: like 0, but also use B-frames' QP (may cause flicker)
6286 5: like 1, but also use B-frames' QP (may cause flicker)
6290 .B uspp[=quality[:qp]]
6291 Ultra simple & slow postprocessing filter that compresses and
6292 decompresses the image at several (or \- in the case of quality
6293 level 8 \- all) shifts and averages the results.
6294 The way this differs from the behavior of spp is that uspp actually
6295 encodes & decodes each case with libavcodec Snow, whereas spp uses
6296 a simplified intra only 8x8 DCT similar to MJPEG.
6297 .RSs
6298 .IPs <quality>
6299 0\-8 (default: 3)
6300 .IPs "<qp>\ "
6301 Force quantization parameter (default: 0, use QP from video).
6305 .B fspp[=quality[:qp[:strength[:bframes]]]]
6306 faster version of the simple postprocessing filter
6307 .RSs
6308 .IPs <quality>
6309 4\-5 (equivalent to spp; default: 4)
6310 .IPs "<qp>\ "
6311 Force quantization parameter (default: 0, use QP from video).
6312 .IPs <\-15\-32>
6313 Filter strength, lower values mean more details but also more artifacts,
6314 while higher values make the image smoother but also blurrier (default:
6315 0 \- PSNR optimal).
6316 .IPs <bframes>
6317 0: do not use QP from B-frames (default)
6319 1: use QP from B-frames too (may cause flicker)
6323 .B pp7[=qp[:mode]]
6324 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6325 only the center sample is used after IDCT.
6326 .RSs
6327 .IPs "<qp>\ "
6328 Force quantization parameter (default: 0, use QP from video).
6329 .IPs <mode>
6330 0: hard thresholding
6332 1: soft thresholding (better deringing, but blurrier)
6334 2: medium thresholding (default, good results)
6338 .B qp=equation
6339 quantization parameter (QP) change filter
6340 .RSs
6341 .IPs <equation>
6342 some equation like "2+2*sin(PI*qp)"
6346 .B geq=equation
6347 generic equation change filter
6348 .RSs
6349 .IPs <equation>
6350 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6351 You can use whitespace to make the equation more readable.
6352 There are a couple of constants that can be used in the equation:
6353 .RSss
6354 PI: the number pi
6356 E: the number e
6358 X / Y: the coordinates of the current sample
6360 W / H: width and height of the image
6362 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6363 1,1 and 0.5,0.5 for YUV 4:2:0.
6365 p(x,y): returns the value of the pixel at location x/y of the current plane.
6366 .REss
6370 .B "test\ \ \ "
6371 Generate various test patterns.
6374 .B rgbtest[=width:height]
6375 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6376 You should see a red, green and blue stripe from top to bottom.
6377 .RSs
6378 .IPs <width>
6379 Desired width of generated image (default: 0).
6380 0 means width of input image.
6382 .IPs <height>
6383 Desired height of generated image (default: 0).
6384 0 means height of input image.
6388 .B lavc[=quality:fps]
6389 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6390 .RSs
6391 .IPs <quality>
6392 1\-31: fixed qscale
6394 32\-:  fixed bitrate in kbits
6395 .IPs <fps>
6396 force output fps (float value) (default: 0, autodetect based on height)
6400 .B dvbscale[=aspect]
6401 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6402 calculating the y axis scaling in software to keep aspect.
6403 Only useful together with expand and scale.
6404 .RSs
6405 .IPs <aspect>
6406 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6407 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6409 .sp 1
6411 .I EXAMPLE:
6413 .PD 0
6414 .RSs
6415 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6416 FIXME: Explain what this does.
6418 .PD 1
6421 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6422 Adds noise.
6423 .PD 0
6424 .RSs
6425 .IPs <0\-100>
6426 luma noise
6427 .IPs <0\-100>
6428 chroma noise
6429 .IPs u
6430 uniform noise (gaussian otherwise)
6431 .IPs t
6432 temporal noise (noise pattern changes between frames)
6433 .IPs a
6434 averaged temporal noise (smoother, but a lot slower)
6435 .IPs h
6436 high quality (slightly better looking, slightly slower)
6437 .IPs p
6438 mix random noise with a (semi)regular pattern
6440 .PD 1
6443 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6444 This filter aims to reduce image noise producing smooth images and making still
6445 images really still (This should enhance compressibility.).
6446 .PD 0
6447 .RSs
6448 .IPs <luma_spatial>
6449 spatial luma strength (default: 4)
6450 .IPs <chroma_spatial>
6451 spatial chroma strength (default: 3)
6452 .IPs <luma_tmp>
6453 luma temporal strength (default: 6)
6454 .IPs <chroma_tmp>
6455 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6457 .PD 1
6460 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6461 High precision/\:quality version of the denoise3d filter.
6462 Parameters and usage are the same.
6465 .B ow[=depth[:luma_strength[:chroma_strength]]]
6466 Overcomplete Wavelet denoiser.
6467 .PD 0
6468 .RSs
6469 .IPs <depth>
6470 Larger depth values will denoise lower frequency components more, but
6471 slow down filtering (default: 8).
6472 .IPs <luma_strength>
6473 luma strength (default: 1.0)
6474 .IPs <chroma_strength>
6475 chroma strength (default: 1.0)
6477 .PD 1
6480 .B eq[=brightness:contrast] (OBSOLETE)
6481 Software equalizer with interactive controls just like the hardware
6482 equalizer, for cards/\:drivers that do not support brightness and
6483 contrast controls in hardware.
6484 Might also be useful with MEncoder, either for fixing poorly captured
6485 movies, or for slightly reducing contrast to mask artifacts and get by
6486 with lower bitrates.
6487 .PD 0
6488 .RSs
6489 .IPs <\-100\-100>
6490 initial brightness
6491 .IPs <\-100\-100>
6492 initial contrast
6494 .PD 1
6497 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6498 Alternative software equalizer that uses lookup tables (very slow),
6499 allowing gamma correction in addition to simple brightness
6500 and contrast adjustment.
6501 Note that it uses the same MMX optimized code as \-vf eq if all
6502 gamma values are 1.0.
6503 The parameters are given as floating point values.
6504 .PD 0
6505 .RSs
6506 .IPs <0.1\-10>
6507 initial gamma value (default: 1.0)
6508 .IPs <\-2\-2>
6509 initial contrast, where negative values result in a
6510 negative image (default: 1.0)
6511 .IPs <\-1\-1>
6512 initial brightness (default: 0.0)
6513 .IPs <0\-3>
6514 initial saturation (default: 1.0)
6515 .IPs <0.1\-10>
6516 gamma value for the red component (default: 1.0)
6517 .IPs <0.1\-10>
6518 gamma value for the green component (default: 1.0)
6519 .IPs <0.1\-10>
6520 gamma value for the blue component (default: 1.0)
6521 .IPs <0\-1>
6522 The weight parameter can be used to reduce the effect of a high gamma value on
6523 bright image areas, e.g.\& keep them from getting overamplified and just plain
6524 white.
6525 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6526 at its full strength (default: 1.0).
6528 .PD 1
6531 .B hue[=hue:saturation]
6532 Software equalizer with interactive controls just like the hardware
6533 equalizer, for cards/\:drivers that do not support hue and
6534 saturation controls in hardware.
6535 .PD 0
6536 .RSs
6537 .IPs <\-180\-180>
6538 initial hue (default: 0.0)
6539 .IPs <\-100\-100>
6540 initial saturation, where negative values result
6541 in a negative chroma (default: 1.0)
6543 .PD 1
6546 .B halfpack[=f]
6547 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6548 keeping all chroma samples.
6549 Useful for output to low-resolution display devices when hardware downscaling
6550 is poor quality or is not available.
6551 Can also be used as a primitive luma-only deinterlacer with very low CPU
6552 usage.
6553 .PD 0
6554 .RSs
6555 .IPs "<f>\ \ "
6556 By default, halfpack averages pairs of lines when downsampling.
6557 Any value different from 0 or 1 gives the default (averaging) behavior.
6558 .RSss
6559 0: Only use even lines when downsampling.
6561 1: Only use odd lines when downsampling.
6562 .REss
6564 .PD 1
6567 .B ilpack[=mode]
6568 When interlaced video is stored in YUV 4:2:0 formats, chroma
6569 interlacing does not line up properly due to vertical downsampling of
6570 the chroma channels.
6571 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6572 the chroma lines in their proper locations, so that in any given
6573 scanline, the luma and chroma data both come from the same field.
6574 .PD 0
6575 .RSs
6576 .IPs <mode>
6577 Select the sampling mode.
6578 .RSss
6579 0: nearest-neighbor sampling, fast but incorrect
6581 1: linear interpolation (default)
6582 .REss
6584 .PD 1
6587 .B harddup
6588 Only useful with MEncoder.
6589 If harddup is used when encoding, it will force duplicate frames to be
6590 encoded in the output.
6591 This uses slightly more space, but is necessary for output to MPEG
6592 files or if you plan to demux and remux the video stream after
6593 encoding.
6594 Should be placed at or near the end of the filter chain unless you
6595 have a good reason to do otherwise.
6598 .B softskip
6599 Only useful with MEncoder.
6600 Softskip moves the frame skipping (dropping) step of encoding from
6601 before the filter chain to some point during the filter chain.
6602 This allows filters which need to see all frames (inverse telecine,
6603 temporal denoising, etc.) to function properly.
6604 Should be placed after the filters which need to see all frames and
6605 before any subsequent filters that are CPU-intensive.
6608 .B decimate[=max:hi:lo:frac]
6609 Drops frames that do not differ greatly from the previous frame in
6610 order to reduce framerate.
6611 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6612 streaming over dialup modem), but it could in theory be used for
6613 fixing movies that were inverse-telecined incorrectly.
6614 .PD 0
6615 .RSs
6616 .IPs <max>
6617 Sets the maximum number of consecutive frames which can be
6618 dropped (if positive), or the minimum interval between
6619 dropped frames (if negative).
6620 .IPs <hi>,<lo>,<frac>
6621 A frame is a candidate for dropping if no 8x8 region differs by more
6622 than a threshold of <hi>, and if not more than <frac> portion (1
6623 meaning the whole image) differs by more than a threshold of <lo>.
6624 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6625 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6626 difference for each pixel, or the same spread out differently over the
6627 block.
6629 .PD 1
6632 .B dint[=sense:level]
6633 The drop-deinterlace (dint) filter detects and drops the first from a set
6634 of interlaced video frames.
6635 .PD 0
6636 .RSs
6637 .IPs <0.0\-1.0>
6638 relative difference between neighboring pixels (default: 0.1)
6639 .IPs <0.0\-1.0>
6640 What part of the image has to be detected as interlaced to
6641 drop the frame (default: 0.15).
6643 .PD 1
6646 .B lavcdeint (OBSOLETE)
6647 FFmpeg deinterlacing filter, same as \-vf pp=fd
6650 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6651 Donald Graft's adaptive kernel deinterlacer.
6652 Deinterlaces parts of a video if a configurable threshold is exceeded.
6653 .PD 0
6654 .RSs
6655 .IPs <0\-255>
6656 threshold (default: 10)
6657 .IPs <map>
6658 .RSss
6659 0: Ignore pixels exceeding the threshold (default).
6661 1: Paint pixels exceeding the threshold white.
6662 .REss
6663 .IPs <order>
6664 .RSss
6665 0: Leave fields alone (default).
6667 1: Swap fields.
6668 .REss
6669 .IPs <sharp>
6670 .RSss
6671 0: Disable additional sharpening (default).
6673 1: Enable additional sharpening.
6674 .REss
6675 .IPs <twoway>
6676 .RSss
6677 0: Disable twoway sharpening (default).
6679 1: Enable twoway sharpening.
6680 .REss
6682 .PD 1
6685 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6686 unsharp mask / gaussian blur
6687 .RSs
6688 .IPs "l\ \ \ \ "
6689 Apply effect on luma component.
6690 .IPs "c\ \ \ \ "
6691 Apply effect on chroma components.
6692 .IPs <width>x<height>
6693 width and height of the matrix, odd sized in both directions
6694 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6695 .IPs amount
6696 Relative amount of sharpness/\:blur to add to the image
6697 (a sane range should be \-1.5\-1.5).
6698 .RSss
6699 <0: blur
6701 >0: sharpen
6702 .REss
6706 .B "swapuv\ "
6707 Swap U & V plane.
6710 .B il[=d|i][s][:[d|i][s]]
6711 (De)interleaves lines.
6712 The goal of this filter is to add the ability to process interlaced images
6713 pre-field without deinterlacing them.
6714 You can filter your interlaced DVD and play it on a TV without breaking the
6715 interlacing.
6716 While deinterlacing (with the postprocessing filter) removes interlacing
6717 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6718 2 fields (so called half pictures), so you can process (filter) them
6719 independently and then re-interleave them.
6720 .PD 0
6721 .RSs
6722 .IPs d
6723 deinterleave (placing one above the other)
6724 .IPs i
6725 interleave
6726 .IPs s
6727 swap fields (exchange even & odd lines)
6729 .PD 1
6732 .B fil[=i|d]
6733 (De)interleaves lines.
6734 This filter is very similar to the il filter but much faster, the main
6735 disadvantage is that it does not always work.
6736 Especially if combined with other filters it may produce randomly messed
6737 up images, so be happy if it works but do not complain if it does not for
6738 your combination of filters.
6739 .PD 0
6740 .RSs
6741 .IPs d
6742 Deinterleave fields, placing them side by side.
6743 .IPs i
6744 Interleave fields again (reversing the effect of fil=d).
6746 .PD 1
6749 .B field[=n]
6750 Extracts a single field from an interlaced image using stride arithmetic
6751 to avoid wasting CPU time.
6752 The optional argument n specifies whether to extract the even or the odd
6753 field (depending on whether n is even or odd).
6756 .B detc[=var1=value1:var2=value2:...]
6757 Attempts to reverse the 'telecine' process to recover a clean,
6758 non-interlaced stream at film framerate.
6759 This was the first and most primitive inverse telecine filter to be
6760 added to MPlayer/\:MEncoder.
6761 It works by latching onto the telecine 3:2 pattern and following it as
6762 long as possible.
6763 This makes it suitable for perfectly-telecined material, even in the
6764 presence of a fair degree of noise, but it will fail in the presence
6765 of complex post-telecine edits.
6766 Development on this filter is no longer taking place, as ivtc, pullup,
6767 and filmdint are better for most applications.
6768 The following arguments (see syntax above) may be used to control
6769 detc's behavior:
6770 .RSs
6771 .IPs "<dr>\ "
6772 Set the frame dropping mode.
6773 .RSss
6774 0: Do not drop frames to maintain fixed output framerate (default).
6776 1: Always drop a frame when there have been no drops or telecine
6777 merges in the past 5 frames.
6779 2: Always maintain exact 5:4 input to output frame ratio.
6781 .I NOTE:
6782 Use mode 1 or 2 with MEncoder.
6783 .REss
6784 .IPs "<am>\ "
6785 Analysis mode.
6786 .RSss
6787 0: Fixed pattern with initial frame number specified by <fr>.
6789 1: aggressive search for telecine pattern (default)
6790 .REss
6791 .IPs "<fr>\ "
6792 Set initial frame number in sequence.
6793 0\-2 are the three clean progressive frames; 3 and 4 are the two
6794 interlaced frames.
6795 The default, \-1, means 'not in telecine sequence'.
6796 The number specified here is the type for the imaginary previous
6797 frame before the movie starts.
6798 .IPs "<t0>, <t1>, <t2>, <t3>"
6799 Threshold values to be used in certain modes.
6803 .B ivtc[=1]
6804 Experimental 'stateless' inverse telecine filter.
6805 Rather than trying to lock on to a pattern like the detc filter does,
6806 ivtc makes its decisions independently for each frame.
6807 This will give much better results for material that has undergone
6808 heavy editing after telecine was applied, but as a result it is not as
6809 forgiving of noisy input, for example TV capture.
6810 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6811 detc filter, and should be used with MEncoder but not with MPlayer.
6812 As with detc, you must specify the correct output framerate (\-ofps
6813 24000/1001) when using MEncoder.
6814 Further development on ivtc has stopped, as the pullup and filmdint
6815 filters appear to be much more accurate.
6818 .B pullup[=jl:jr:jt:jb:sb:mp]
6819 Third-generation pulldown reversal (inverse telecine) filter,
6820 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6821 fps progressive content.
6822 The pullup filter is designed to be much more robust than detc or
6823 ivtc, by taking advantage of future context in making its decisions.
6824 Like ivtc, pullup is stateless in the sense that it does not lock onto
6825 a pattern to follow, but it instead looks forward to the following
6826 fields in order to identify matches and rebuild progressive frames.
6827 It is still under development, but believed to be quite accurate.
6828 .RSs
6829 .IPs "jl, jr, jt, and jb"
6830 These options set the amount of "junk" to ignore at
6831 the left, right, top, and bottom of the image, respectively.
6832 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6833 2 lines.
6834 The default is 8 pixels on each side.
6836 .IPs "sb (strict breaks)"
6837 Setting this option to 1 will reduce the chances of
6838 pullup generating an occasional mismatched frame, but it may also
6839 cause an excessive number of frames to be dropped during high motion
6840 sequences.
6841 Conversely, setting it to \-1 will make pullup match fields more
6842 easily.
6843 This may help processing of video where there is slight blurring
6844 between the fields, but may also cause there to be interlaced frames
6845 in the output.
6847 .IPs "mp (metric plane)"
6848 This option may be set to 1 or 2 to use a chroma
6849 plane instead of the luma plane for doing pullup's computations.
6850 This may improve accuracy on very clean source material, but more
6851 likely will decrease accuracy, especially if there is chroma noise
6852 (rainbow effect) or any grayscale video.
6853 The main purpose of setting mp to a chroma plane is to reduce CPU load
6854 and make pullup usable in realtime on slow machines.
6855 .REss
6857 .sp 1
6858 .I NOTE:
6859 Always follow pullup with the softskip filter when encoding to ensure
6860 that pullup is able to see each frame.
6861 Failure to do so will lead to incorrect output and will usually crash,
6862 due to design limitations in the codec/\:filter layer.
6863 .REss
6866 .B filmdint[=options]
6867 Inverse telecine filter, similar to the pullup filter above.
6868 It is designed to handle any pulldown pattern, including mixed soft and
6869 hard telecine and limited support for movies that are slowed down or sped
6870 up from their original framerate for TV.
6871 Only the luma plane is used to find the frame breaks.
6872 If a field has no match, it is deinterlaced with simple linear
6873 approximation.
6874 If the source is MPEG-2, this must be the first filter to allow
6875 access to the field-flags set by the MPEG-2 decoder.
6876 Depending on the source MPEG, you may be fine ignoring this advice, as
6877 long as you do not see lots of "Bottom-first field" warnings.
6878 With no options it does normal inverse telecine, and should be used
6879 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6880 When this filter is used with MPlayer, it will result in an uneven
6881 framerate during playback, but it is still generally better than using
6882 pp=lb or no deinterlacing at all.
6883 Multiple options can be specified separated by /.
6884 .RSs
6885 .IPs crop=<w>:<h>:<x>:<y>
6886 Just like the crop filter, but faster, and works on mixed hard and soft
6887 telecined content as well as when y is not a multiple of 4.
6888 If x or y would require cropping fractional pixels from the chroma
6889 planes, the crop area is extended.
6890 This usually means that x and y must be even.
6891 .IPs io=<ifps>:<ofps>
6892 For each ifps input frames the filter will output ofps frames.
6893 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
6894 This could be used to filter movies that are broadcast on TV at a frame
6895 rate different from their original framerate.
6896 .IPs luma_only=<n>
6897 If n is nonzero, the chroma plane is copied unchanged.
6898 This is useful for YV12 sampled TV, which discards one of the chroma
6899 fields.
6900 .IPs mmx2=<n>
6901 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6902 optimized functions, otherwise, use plain C.
6903 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6904 this option to override auto-detection.
6905 .IPs fast=<n>
6906 The larger n will speed up the filter at the expense of accuracy.
6907 The default value is n=3.
6908 If n is odd, a frame immediately following a frame marked with the
6909 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6910 will not spend any time on soft-telecined MPEG-2 content.
6911 This is the only effect of this flag if MMX2 or 3DNow! is available.
6912 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6913 as with n=2 or 3.
6914 If n=2 or 3, the number of luma levels used to find the frame breaks is
6915 reduced from 256 to 128, which results in a faster filter without losing
6916 much accuracy.
6917 If n=4 or 5, a faster, but much less accurate metric will be used to
6918 find the frame breaks, which is more likely to misdetect high vertical
6919 detail as interlaced content.
6920 .IPs verbose=<n>
6921 If n is nonzero, print the detailed metrics for each frame.
6922 Useful for debugging.
6923 .IPs dint_thres=<n>
6924 Deinterlace threshold.
6925 Used during de-interlacing of unmatched frames.
6926 Larger value means less deinterlacing, use n=256 to completely turn off
6927 deinterlacing.
6928 Default is n=8.
6929 .IPs comb_thres=<n>
6930 Threshold for comparing a top and bottom fields.
6931 Defaults to 128.
6932 .IPs diff_thres=<n>
6933 Threshold to detect temporal change of a field.
6934 Default is 128.
6935 .IPs sad_thres=<n>
6936 Sum of Absolute Difference threshold, default is 64.
6940 .B softpulldown
6941 This filter works only correct with MEncoder and acts on the MPEG-2 flags
6942 used for soft 3:2 pulldown (soft telecine).
6943 If you want to use the ivtc or detc filter on movies that are partly soft
6944 telecined, inserting this filter before them should make them more reliable.
6947 .B divtc[=options]
6948 Inverse telecine for deinterlaced video.
6949 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
6950 using a method that keeps one field and interpolates the other, the result is
6951 a juddering video that has every fourth frame duplicated.
6952 This filter is intended to find and drop those duplicates and restore the
6953 original film framerate.
6954 When using this filter, you must specify \-ofps that is 4/5 of
6955 the fps of the input file and place the softskip later in the
6956 filter chain to make sure that divtc sees all the frames.
6957 Two different modes are available:
6958 One pass mode is the default and is straightforward to use,
6959 but has the disadvantage that any changes in the telecine
6960 phase (lost frames or bad edits) cause momentary judder
6961 until the filter can resync again.
6962 Two pass mode avoids this by analyzing the whole video
6963 beforehand so it will have forward knowledge about the
6964 phase changes and can resync at the exact spot.
6965 These passes do
6966 .B not
6967 correspond to pass one and two of the encoding process.
6968 You must run an extra pass using divtc pass one before the
6969 actual encoding throwing the resulting video away.
6970 Use \-nosound \-ovc raw \-o /dev/null to avoid
6971 wasting CPU power for this pass.
6972 You may add something like crop=2:2:0:0 after divtc
6973 to speed things up even more.
6974 Then use divtc pass two for the actual encoding.
6975 If you use multiple encoder passes, use divtc
6976 pass two for all of them.
6977 The options are:
6978 .RSs
6979 .IPs pass=1|2
6980 Use two pass mode.
6981 .IPs file=<filename>
6982 Set the two pass log filename (default: "framediff.log").
6983 .IPs threshold=<value>
6984 Set the minimum strength the telecine pattern must have for the filter to
6985 believe in it (default: 0.5).
6986 This is used to avoid recognizing false pattern from the parts of the video
6987 that are very dark or very still.
6988 .IPs window=<numframes>
6989 Set the number of past frames to look at when searching for pattern
6990 (default: 30).
6991 Longer window improves the reliability of the pattern search, but shorter
6992 window improves the reaction time to the changes in the telecine phase.
6993 This only affects the one pass mode.
6994 The two pass mode currently uses fixed window that extends to both future
6995 and past.
6996 .IPs phase=0|1|2|3|4
6997 Sets the initial telecine phase for one pass mode (default: 0).
6998 The two pass mode can see the future, so it is able to use the correct
6999 phase from the beginning, but one pass mode can only guess.
7000 It catches the correct phase when it finds it, but this option can be used
7001 to fix the possible juddering at the beginning.
7002 The first pass of the two pass mode also uses this, so if you save the output
7003 from the first pass, you get constant phase result.
7004 .IPs deghost=<value>
7005 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
7006 mode, default 0).
7007 If nonzero, deghosting mode is used.
7008 This is for video that has been deinterlaced by blending the fields
7009 together instead of dropping one of the fields.
7010 Deghosting amplifies any compression artifacts in the blended frames, so the
7011 parameter value is used as a threshold to exclude those pixels from
7012 deghosting that differ from the previous frame less than specified value.
7013 If two pass mode is used, then negative value can be used to make the
7014 filter analyze the whole video in the beginning of pass-2 to determine
7015 whether it needs deghosting or not and then select either zero or the
7016 absolute value of the parameter.
7017 Specify this option for pass-2, it makes no difference on pass-1.
7021 .B phase[=t|b|p|a|u|T|B|A|U][:v]
7022 Delay interlaced video by one field time so that the field order
7023 changes.
7024 The intended use is to fix PAL movies that have been captured with the
7025 opposite field order to the film-to-video transfer.
7026 The options are:
7027 .RSs
7028 .IPs t
7029 Capture field order top-first, transfer bottom-first.
7030 Filter will delay the bottom field.
7031 .IPs b
7032 Capture bottom-first, transfer top-first.
7033 Filter will delay the top field.
7034 .IPs p
7035 Capture and transfer with the same field order.
7036 This mode only exists for the documentation of the other options to refer to,
7037 but if you actually select it, the filter will faithfully do nothing ;-)
7038 .IPs a
7039 Capture field order determined automatically by field flags, transfer opposite.
7040 Filter selects among t and b modes on a frame by frame basis using field flags.
7041 If no field information is available, then this works just like u.
7042 .IPs u
7043 Capture unknown or varying, transfer opposite.
7044 Filter selects among t and b on a frame by frame basis by analyzing the
7045 images and selecting the alternative that produces best match between the
7046 fields.
7047 .IPs T
7048 Capture top-first, transfer unknown or varying.
7049 Filter selects among t and p using image analysis.
7050 .IPs B
7051 Capture bottom-first, transfer unknown or varying.
7052 Filter selects among b and p using image analysis.
7053 .IPs A
7054 Capture determined by field flags, transfer unknown or varying.
7055 Filter selects among t, b and p using field flags and image analysis.
7056 If no field information is available, then this works just like U.
7057 This is the default mode.
7058 .IPs U
7059 Both capture and transfer unknown or varying.
7060 Filter selects among t, b and p using image analysis only.
7061 .IPs v
7062 Verbose operation.
7063 Prints the selected mode for each frame and the average squared difference
7064 between fields for t, b, and p alternatives.
7068 .B telecine[=start]
7069 Apply 3:2 'telecine' process to increase framerate by 20%.
7070 This most likely will not work correctly with MPlayer, but it can
7071 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
7072 Both fps options are essential!
7073 (A/V sync will break if they are wrong.)
7074 The optional start parameter tells the filter where in the telecine
7075 pattern to start (0\-3).
7078 .B tinterlace[=mode]
7079 Temporal field interlacing \- merge pairs of frames into an interlaced
7080 frame, halving the framerate.
7081 Even frames are moved into the upper field, odd frames to the lower field.
7082 This can be used to fully reverse the effect of the tfields filter (in mode 0).
7083 Available modes are:
7084 .PD 0
7085 .RSs
7086 .IPs 0
7087 Move odd frames into the upper field, even into the lower field, generating
7088 a full-height frame at half framerate.
7089 .IPs 1
7090 Only output odd frames, even frames are dropped; height unchanged.
7091 .IPs 2
7092 Only output even frames, odd frames are dropped; height unchanged.
7093 .IPs 3
7094 Expand each frame to full height, but pad alternate lines with black;
7095 framerate unchanged.
7096 .IPs 4
7097 Interleave even lines from even frames with odd lines from odd frames.
7098 Height unchanged at half framerate.
7100 .PD 1
7103 .B tfields[=mode[:field_dominance]]
7104 Temporal field separation \- split fields into frames, doubling the
7105 output framerate.
7106 Like the telecine filter, tfields might not work completely right unless
7107 used with MEncoder and both \-fps and \-ofps set to the
7108 desired (double) framerate!
7109 .PD 0
7110 .RSs
7111 .IPs <mode>
7112 0: Leave fields unchanged (will jump/\:flicker).
7114 1: Interpolate missing lines. (The algorithm used might not be so good.)
7116 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
7118 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
7119 .IPs <field_dominance>\ (DEPRECATED)
7120 \-1: auto (default)
7121 Only works if the decoder exports the appropriate information and
7122 no other filters which discard that information come before tfields
7123 in the filter chain, otherwise it falls back to 0 (top field first).
7125 0: top field first
7127 1: bottom field first
7129 .I NOTE:
7130 This option will possibly be removed in a future version.
7131 Use \-field\-dominance instead.
7133 .PD 1
7136 .B yadif=[mode[:field_dominance]]
7137 Yet another deinterlacing filter
7138 .PD 0
7139 .RSs
7140 .IPs <mode>
7141 0: Output 1 frame for each frame.
7143 1: Output 1 frame for each field.
7145 2: Like 0 but skips spatial interlacing check.
7147 3: Like 1 but skips spatial interlacing check.
7148 .IPs <field_dominance>\ (DEPRECATED)
7149 Operates like tfields.
7151 .I NOTE:
7152 This option will possibly be removed in a future version.
7153 Use \-field\-dominance instead.
7155 .PD 1
7158 .B mcdeint=[mode[:parity[:qp]]]
7159 Motion compensating deinterlacer.
7160 It needs one field per frame as input and must thus be used together
7161 with tfields=1 or yadif=1/3 or equivalent.
7162 .PD 0
7163 .RSs
7164 .IPs <mode>
7165 0: fast
7167 1: medium
7169 2: slow, iterative motion estimation
7171 3: extra slow, like 2 plus multiple reference frames
7172 .IPs <parity>
7173 0 or 1 selects which field to use (note: no autodetection yet!).
7174 .IPs "<qp>\ "
7175 Higher values should result in a smoother motion vector
7176 field but less optimal individual vectors.
7178 .PD 1
7181 .B boxblur=radius:power[:radius:power]
7182 box blur
7183 .PD 0
7184 .RSs
7185 .IPs <radius>
7186 blur filter strength
7187 .IPs <power>
7188 number of filter applications
7190 .PD 1
7193 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
7194 shape adaptive blur
7195 .PD 0
7196 .RSs
7197 .IPs <radius>
7198 blur filter strength (~0.1\-4.0) (slower if larger)
7199 .IPs "<pf>\ "
7200 prefilter strength (~0.1\-2.0)
7201 .IPs <colorDiff>
7202 maximum difference between pixels to still be considered (~0.1\-100.0)
7204 .PD 1
7207 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
7208 smart blur
7209 .PD 0
7210 .RSs
7211 .IPs <radius>
7212 blur filter strength (~0.1\-5.0) (slower if larger)
7213 .IPs <strength>
7214 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
7215 .IPs <threshold>
7216 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
7218 .PD 1
7221 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
7222 Correct the perspective of movies not filmed perpendicular to the screen.
7223 .PD 0
7224 .RSs
7225 .IPs <x0>,<y0>,...
7226 coordinates of the top left, top right, bottom left, bottom right corners
7227 .IPs "<t>\ \ "
7228 linear (0) or cubic resampling (1)
7230 .PD 1
7233 .B "2xsai\ \ "
7234 Scale and smooth the image with the 2x scale and interpolate algorithm.
7237 .B "1bpp\ \ \ "
7238 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
7241 .B down3dright[=lines]
7242 Reposition and resize stereoscopic images.
7243 Extracts both stereo fields and places them side by side, resizing
7244 them to maintain the original movie aspect.
7245 .PD 0
7246 .RSs
7247 .IPs <lines>
7248 number of lines to select from the middle of the image (default: 12)
7250 .PD 1
7253 .B bmovl=hidden:opaque:fifo
7254 The bitmap overlay filter reads bitmaps from a FIFO and displays them
7255 on top of the movie, allowing some transformations on the image.
7256 Also see TOOLS/bmovl-test.c for a small bmovl test program.
7257 .PD 0
7258 .RSs
7259 .IPs <hidden>
7260 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
7261 .IPs <opaque>
7262 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
7263 .IPs <fifo>
7264 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
7265 controlling application)
7267 .PD 1
7268 .sp 1
7270 FIFO commands are:
7272 .PD 0
7273 .RSs
7274 .IPs "RGBA32 width height xpos ypos alpha clear"
7275 followed by width*height*4 Bytes of raw RGBA32 data.
7276 .IPs "ABGR32 width height xpos ypos alpha clear"
7277 followed by width*height*4 Bytes of raw ABGR32 data.
7278 .IPs "RGB24 width height xpos ypos alpha clear"
7279 followed by width*height*3 Bytes of raw RGB24 data.
7280 .IPs "BGR24 width height xpos ypos alpha clear"
7281 followed by width*height*3 Bytes of raw BGR24 data.
7282 .IPs "ALPHA width height xpos ypos alpha"
7283 Change alpha transparency of the specified area.
7284 .IPs "CLEAR width height xpos ypos"
7285 Clear area.
7286 .IPs OPAQUE
7287 Disable all alpha transparency.
7288 Send "ALPHA 0 0 0 0 0" to enable it again.
7289 .IPs "HIDE\ "
7290 Hide bitmap.
7291 .IPs "SHOW\ "
7292 Show bitmap.
7294 .PD 1
7295 .sp 1
7297 Arguments are:
7299 .PD 0
7300 .RSs
7301 .IPs "<width>, <height>"
7302 image/area size
7303 .IPs "<xpos>, <ypos>"
7304 Start blitting at position x/y.
7305 .IPs <alpha>
7306 Set alpha difference.
7307 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
7308 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
7309 .RSss
7310 0:    same as original
7312 255:  Make everything opaque.
7314 \-255: Make everything transparent.
7315 .REss
7316 .IPs <clear>
7317 Clear the framebuffer before blitting.
7318 .RSss
7319 0: The image will just be blitted on top of the old one, so you do not need to
7320 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7322 1: clear
7323 .REss
7325 .PD 1
7328 .B framestep=I|[i]step
7329 Renders only every nth frame or every intra frame (keyframe).
7330 .sp 1
7331 If you call the filter with I (uppercase) as the parameter, then
7332 .B only
7333 keyframes are rendered.
7334 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7335 for AVI it means every scene change or every keyint value (see \-lavcopts
7336 keyint= value if you use MEncoder to encode the video).
7337 .sp 1
7338 When a keyframe is found, an 'I!' string followed by a newline character is
7339 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
7340 because it contains the time (in seconds) and frame number of the keyframe
7341 (You can use this information to split the AVI.).
7342 .sp 1
7343 If you call the filter with a numeric parameter 'step' then only one in
7344 every 'step' frames is rendered.
7345 .sp 1
7346 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7347 (like the I parameter).
7348 .sp 1
7349 If you give only the i then nothing is done to the frames, only I! is
7350 printed.
7353 .B tile=xtiles:ytiles:output:start:delta
7354 Tile a series of images into a single, bigger image.
7355 If you omit a parameter or use a value less than 0, then the default
7356 value is used.
7357 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7358 It is probably a good idea to put the scale filter before the tile :-)
7359 .sp 1
7360 The parameters are:
7361 .sp 1
7362 .PD 0
7363 .RSs
7364 .IPs <xtiles>
7365 number of tiles on the x axis (default: 5)
7366 .IPs <ytiles>
7367 number of tiles on the y axis (default: 5)
7368 .IPs <output>
7369 Render the tile when 'output' number of frames are reached, where 'output'
7370 should be a number less than xtile * ytile.
7371 Missing tiles are left blank.
7372 You could, for example, write an 8 * 7 tile every 50 frames to have one
7373 image every 2 seconds @ 25 fps.
7374 .IPs <start>
7375 outer border thickness in pixels (default: 2)
7376 .IPs <delta>
7377 inner border thickness in pixels (default: 4)
7379 .PD 1
7382 .B delogo[=x:y:w:h:t]
7383 Suppresses a TV station logo by a simple interpolation of the
7384 surrounding pixels.
7385 Just set a rectangle covering the logo and watch it disappear (and
7386 sometimes something even uglier appear \- your mileage may vary).
7387 .PD 0
7388 .RSs
7389 .IPs <x>,<y>
7390 top left corner of the logo
7391 .IPs <w>,<h>
7392 width and height of the cleared rectangle
7393 .IPs <t>
7394 Thickness of the fuzzy edge of the rectangle (added to w and h).
7395 When set to \-1, a green rectangle is drawn on the screen to
7396 simplify finding the right x,y,w,h parameters.
7398 .PD 1
7401 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7402 Suppresses a TV station logo, using a PGM or PPM image
7403 file to determine which pixels comprise the logo.
7404 The width and height of the image file must match
7405 those of the video stream being processed.
7406 Uses the filter image and a circular blur
7407 algorithm to remove the logo.
7408 .RSs
7409 .IPs /path/to/logo_bitmap_file_name.pgm
7410 [path] + filename of the filter image.
7414 .B zrmjpeg[=options]
7415 Software YV12 to MJPEG encoder for use with the zr2 video
7416 output device.
7417 .RSs
7418 .IPs maxheight=<h>|maxwidth=<w>
7419 These options set the maximum width and height the zr card
7420 can handle (the MPlayer filter layer currently cannot query those).
7421 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
7422 Use these options to set maxwidth and maxheight automatically to the
7423 values known for card/\:mode combo.
7424 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
7425 .IPs color|bw
7426 Select color or black and white encoding.
7427 Black and white encoding is faster.
7428 Color is the default.
7429 .IPs hdec={1,2,4}
7430 Horizontal decimation 1, 2 or 4.
7431 .IPs vdec={1,2,4}
7432 Vertical decimation 1, 2 or 4.
7433 .IPs quality=1\-20
7434 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
7435 .IPs fd|nofd
7436 By default, decimation is only performed if the Zoran hardware
7437 can upscale the resulting MJPEG images to the original size.
7438 The option fd instructs the filter to always perform the requested
7439 decimation (ugly).
7443 .B screenshot
7444 Allows acquiring screenshots of the movie using slave mode
7445 commands that can be bound to keypresses.
7446 See the slave mode documentation and the INTERACTIVE CONTROL
7447 section for details.
7448 Files named 'shotNNNN.png' will be saved in the working directory,
7449 using the first available number \- no files will be overwritten.
7450 The filter has no overhead when not used and accepts an arbitrary
7451 colorspace, so it is safe to add it to the configuration file.
7452 Make sure that the screenshot filter is added after all other filters
7453 whose effect you want to record on the saved image.
7454 E.g.\& it should be the last filter if you want to have an exact
7455 screenshot of what you see on the monitor.
7459 .B "ass\ \ \ \ "
7460 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7461 Only useful with the \-ass option.
7462 .sp 1
7463 .I EXAMPLE:
7464 .PD 0
7465 .RSs
7466 .IPs "\-vf ass,screenshot"
7467 Moves SSA/ASS rendering before the screenshot filter.
7468 Screenshots taken this way will contain subtitles.
7470 .PD 1
7473 .B blackframe[=amount:threshold]
7474 Detect frames that are (almost) completely black.
7475 Can be useful to detect chapter transitions or commercials.
7476 Output lines consist of the frame number of the detected frame, the
7477 percentage of blackness, the frame type and the frame number of the last
7478 encountered keyframe.
7479 .RSs
7480 .IPs <amount>
7481 Percentage of the pixels that have to be below the threshold (default: 98).
7482 .IPs <threshold>
7483 Threshold below which a pixel value is considered black (default: 32).
7487 .B gradfun[=strength[:radius]]
7488 Fix the banding artifacts that are sometimes introduced into nearly flat
7489 regions by truncation to 8bit colordepth.
7490 Interpolates the gradients that should go where the bands are, and
7491 dithers them.
7492 .sp 1
7493 This filter is designed for playback only.
7494 Do not use it prior to lossy compression, because compression tends
7495 to lose the dither and bring back the bands.
7496 .RSs
7497 .IPs <strength>
7498 Maximum amount by which the filter will change any one pixel.
7499 Also the threshold for detecting nearly flat regions (default: 1.2).
7500 .IPs <radius>
7501 Neighborhood to fit the gradient to.
7502 Larger radius makes for smoother gradients, but also prevents the filter
7503 from modifying pixels near detailed regions (default: 16).
7507 .B fixpts[=options]
7508 Fixes the presentation timestamps (PTS) of the frames.
7509 By default, the PTS passed to the next filter is dropped, but the following
7510 options can change that:
7511 .RSs
7512 .IPs print
7513 Print the incoming PTS.
7514 .IPs fps=<fps>
7515 Specify a frame per second value.
7516 .IPs start=<pts>
7517 Specify an initial value for the PTS.
7518 .IPs autostart=<n>
7519 Uses the
7520 .IR n th
7521 incoming PTS as the initial PTS.
7522 All previous pts are kept, so setting a huge value or \-1 keeps the PTS
7523 intact.
7524 .IPs autofps=<n>
7525 Uses the
7526 .IR n th
7527 incoming PTS after the end of autostart to determine the framerate.
7529 .sp 1
7531 .I EXAMPLE:
7533 .PD 0
7534 .RSs
7535 .IPs "\-vf fixpts=fps=24000/1001,ass,fixpts"
7536 Generates a new sequence of PTS, uses it for ASS subtitles, then drops it.
7537 Generating a new sequence is useful when the timestamps are reset during the
7538 program; this is frequent on DVDs.
7539 Dropping it may be necessary to avoid confusing encoders.
7541 .PD 1
7542 .sp 1
7544 .I NOTE:
7545 Using this filter together with any sort of seeking (including -ss and EDLs)
7546 may make demons fly out of your nose.
7550 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7553 .B \-audio\-delay <any floating-point number>
7554 Delays either audio or video by setting a delay field in the header
7555 (default: 0.0).
7556 This does not delay either stream while encoding, but the player will
7557 see the delay field and compensate accordingly.
7558 Positive values delay the audio, and negative values delay the video.
7559 Note that this is the exact opposite of the \-delay option.
7560 For example, if a video plays correctly with \-delay 0.2, you can
7561 fix the video with MEncoder by using \-audio\-delay \-0.2.
7562 .sp 1
7563 Currently, this option only works with the default muxer (\-of avi).
7564 If you are using a different muxer, then you must use \-delay instead.
7567 .B \-audio\-density <1\-50>
7568 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7570 .I NOTE:
7571 CBR only, VBR ignores this as it puts each packet in a new chunk.
7574 .B \-audio\-preload <0.0\-2.0>
7575 Sets up the audio buffering time interval (default: 0.5s).
7578 .B \-fafmttag <format>
7579 Can be used to override the audio format tag of the output file.
7580 .sp 1
7581 .I EXAMPLE:
7582 .PD 0
7583 .RSs
7584 .IPs "\-fafmttag 0x55"
7585 Will have the output file contain 0x55 (mp3) as audio format tag.
7587 .PD 1
7590 .B \-ffourcc <fourcc>
7591 Can be used to override the video fourcc of the output file.
7592 .sp 1
7593 .I EXAMPLE:
7594 .PD 0
7595 .RSs
7596 .IPs "\-ffourcc div3"
7597 Will have the output file contain 'div3' as video fourcc.
7599 .PD 1
7602 .B \-force\-avi\-aspect <0.2\-3.0>
7603 Override the aspect stored in the AVI OpenDML vprp header.
7604 This can be used to change the aspect ratio with '\-ovc copy'.
7607 .B \-frameno\-file <filename> (DEPRECATED)
7608 Specify the name of the audio file with framenumber mappings created in
7609 the first (audio only) pass of a special three pass encoding mode.
7611 .I NOTE:
7612 Using this mode will most likely give you A-V desync.
7613 Do not use it.
7614 It is kept for backwards compatibility only and will possibly
7615 be removed in a future version.
7618 .B \-hr\-edl\-seek
7619 Use a more precise, but much slower method for skipping areas.
7620 Areas marked for skipping are not seeked over, instead all
7621 frames are decoded, but only the necessary frames are encoded.
7622 This allows starting at non-keyframe boundaries.
7624 .I NOTE:
7625 Not guaranteed to work right with '\-ovc copy'.
7628 .B \-info <option1:option2:...> (AVI only)
7629 Specify the info header of the resulting AVI file.
7630 .sp 1
7631 Available options are:
7632 .RSs
7633 .IPs "help\ "
7634 Show this description.
7635 .IPs name=<value>
7636 title of the work
7637 .IPs artist=<value>
7638 artist or author of the work
7639 .IPs genre=<value>
7640 original work category
7641 .IPs subject=<value>
7642 contents of the work
7643 .IPs copyright=<value>
7644 copyright information
7645 .IPs srcform=<value>
7646 original format of the digitized material
7647 .IPs comment=<value>
7648 general comments about the work
7652 .B \-noautoexpand
7653 Do not automatically insert the expand filter into the MEncoder filter chain.
7654 Useful to control at which point of the filter chain subtitles are rendered
7655 when hardcoding subtitles onto a movie.
7658 .B \-noencodedups
7659 Do not attempt to encode duplicate frames in duplicate; always output
7660 zero-byte frames to indicate duplicates.
7661 Zero-byte frames will be written anyway unless a filter or encoder
7662 capable of doing duplicate encoding is loaded.
7663 Currently the only such filter is harddup.
7666 .B \-noodml (\-of avi only)
7667 Do not write OpenDML index for AVI files >1GB.
7670 .B \-noskip
7671 Do not skip frames.
7674 .B \-o <filename>
7675 Outputs to the given filename.
7677 If you want a default output filename, you can put this option in the
7678 MEncoder config file.
7681 .B \-oac <codec name>
7682 Encode with the given audio codec (no default set).
7684 .I NOTE:
7685 Use \-oac help to get a list of available audio codecs.
7686 .sp 1
7687 .I EXAMPLE:
7688 .PD 0
7689 .RSs
7690 .IPs "\-oac copy"
7691 no encoding, just streamcopy
7692 .IPs "\-oac pcm"
7693 Encode to uncompressed PCM.
7694 .IPs "\-oac mp3lame"
7695 Encode to MP3 (using LAME).
7696 .IPs "\-oac lavc"
7697 Encode with a libavcodec codec.
7699 .PD 1
7702 .B \-of <format> (BETA CODE!)
7703 Encode to the specified container format (default: AVI).
7705 .I NOTE:
7706 Use \-of help to get a list of available container formats.
7707 .sp 1
7708 .I EXAMPLE:
7709 .PD 0
7710 .RSs
7711 .IPs "\-of avi"
7712 Encode to AVI.
7713 .IPs "\-of mpeg"
7714 Encode to MPEG (also see \-mpegopts).
7715 .IPs "\-of lavf"
7716 Encode with libavformat muxers (also see \-lavfopts).
7717 .IPs "\-of rawvideo"
7718 raw video stream (no muxing \- one video stream only)
7719 .IPs "\-of rawaudio"
7720 raw audio stream (no muxing \- one audio stream only)
7722 .PD 1
7725 .B \-ofps <fps>
7726 Specify a frames per second (fps) value for the output file,
7727 which can be different from that of the source material.
7728 Must be set for variable fps (ASF, some MOV) and progressive
7729 (30000/1001 fps telecined MPEG) files.
7732 .B \-ovc <codec name>
7733 Encode with the given video codec (no default set).
7735 .I NOTE:
7736 Use \-ovc help to get a list of available video codecs.
7737 .sp 1
7738 .I EXAMPLE:
7739 .PD 0
7740 .RSs
7741 .IPs "\-ovc copy"
7742 no encoding, just streamcopy
7743 .IPs "\-ovc raw"
7744 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7745 .IPs "\-ovc lavc"
7746 Encode with a libavcodec codec.
7748 .PD 1
7751 .B \-passlogfile <filename>
7752 Dump first pass information to <filename> instead of the default divx2pass.log
7753 in two pass encoding mode.
7756 .B \-skiplimit <value>
7757 Specify the maximum number of frames that may be skipped after
7758 encoding one frame (\-noskiplimit for unlimited).
7761 .B \-vobsubout <basename>
7762 Specify the basename for the output .idx and .sub files.
7763 This turns off subtitle rendering in the encoded movie and diverts it to
7764 VOBsub subtitle files.
7767 .B \-vobsuboutid <langid>
7768 Specify the language two letter code for the subtitles.
7769 This overrides what is read from the DVD or the .ifo file.
7772 .B \-vobsuboutindex <index>
7773 Specify the index of the subtitles in the output files (default: 0).
7777 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7778 You can specify codec specific encoding parameters using the following
7779 syntax:
7782 .B \-<codec>opts <option1[=value1]:option2[=value2]:...>
7785 Where <codec> may be: lavc, xvidenc, mp3lame, toolame, twolame,
7786 nuv, xvfw, faac, x264enc, mpeg, lavf.
7789 .SS mp3lame (\-lameopts)
7792 .B "help\ \ \ "
7793 get help
7796 .B vbr=<0\-4>
7797 variable bitrate method
7798 .PD 0
7799 .RSs
7800 .IPs 0
7802 .IPs 1
7804 .IPs 2
7805 rh (default)
7806 .IPs 3
7808 .IPs 4
7809 mtrh
7811 .PD 1
7814 .B "abr\ \ \ \ "
7815 average bitrate
7818 .B "cbr\ \ \ \ "
7819 constant bitrate
7820 Also forces CBR mode encoding on subsequent ABR presets modes.
7823 .B br=<0\-1024>
7824 bitrate in kbps (CBR and ABR only)
7827 .B q=<0\-9>
7828 quality (0 \- highest, 9 \- lowest) (VBR only)
7831 .B aq=<0\-9>
7832 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
7835 .B ratio=<1\-100>
7836 compression ratio
7839 .B vol=<0\-10>
7840 audio input gain
7843 .B mode=<0\-3>
7844 (default: auto)
7845 .PD 0
7846 .RSs
7847 .IPs 0
7848 stereo
7849 .IPs 1
7850 joint-stereo
7851 .IPs 2
7852 dualchannel
7853 .IPs 3
7854 mono
7856 .PD 1
7859 .B padding=<0\-2>
7860 .PD 0
7861 .RSs
7862 .IPs 0
7863 none
7864 .IPs 1
7866 .IPs 2
7867 adjust
7869 .PD 1
7872 .B "fast\ \ \ "
7873 Switch on faster encoding on subsequent VBR presets modes.
7874 This results in slightly lower quality and higher bitrates.
7877 .B highpassfreq=<freq>
7878 Set a highpass filtering frequency in Hz.
7879 Frequencies below the specified one will be cut off.
7880 A value of \-1 will disable filtering, a value of 0
7881 will let LAME choose values automatically.
7884 .B lowpassfreq=<freq>
7885 Set a lowpass filtering frequency in Hz.
7886 Frequencies above the specified one will be cut off.
7887 A value of \-1 will disable filtering, a value of 0
7888 will let LAME choose values automatically.
7891 .B preset=<value>
7892 preset values
7893 .RSs
7894 .IPs "help\ "
7895 Print additional options and information about presets settings.
7896 .IPs medium
7897 VBR encoding, good quality, 150\-180 kbps bitrate range
7898 .IPs standard
7899 VBR encoding, high quality, 170\-210 kbps bitrate range
7900 .IPs extreme
7901 VBR encoding, very high quality, 200\-240 kbps bitrate range
7902 .IPs insane
7903 CBR encoding, highest preset quality, 320 kbps bitrate
7904 .IPs <8\-320>
7905 ABR encoding at average given kbps bitrate
7907 .sp 1
7909 .I EXAMPLES:
7911 .PD 0
7912 .RSs
7913 .IPs fast:preset=standard
7914 suitable for most people and most music types and already quite high quality
7915 .IPs cbr:preset=192
7916 Encode with ABR presets at a 192 kbps forced constant bitrate.
7917 .IPs preset=172
7918 Encode with ABR presets at a 172 kbps average bitrate.
7919 .IPs preset=extreme
7920 for people with extremely good hearing and similar equipment
7922 .PD 1
7925 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
7928 .B br=<32\-384>
7929 In CBR mode this parameter indicates the bitrate in kbps,
7930 when in VBR mode it is the minimum bitrate allowed per frame.
7931 VBR mode will not work with a value below 112.
7934 .B vbr=<\-50\-50> (VBR only)
7935 variability range; if negative the encoder shifts the average bitrate
7936 towards the lower limit, if positive towards the higher.
7937 When set to 0 CBR is used (default).
7940 .B maxvbr=<32\-384> (VBR only)
7941 maximum bitrate allowed per frame, in kbps
7944 .B mode=<stereo  |  jstereo  |  mono  |  dual>
7945 (default: mono for 1-channel audio, stereo otherwise)
7948 .B psy=<\-1\-4>
7949 psychoacoustic model (default: 2)
7952 .B errprot=<0 | 1>
7953 Include error protection.
7956 .B debug=<0\-10>
7957 debug level
7959 .PD 1
7962 .SS faac (\-faacopts)
7965 .B br=<bitrate>
7966 average bitrate in kbps (mutually exclusive with quality)
7969 .B quality=<1\-1000>
7970 quality mode, the higher the better (mutually exclusive with br)
7973 .B object=<1\-4>
7974 object type complexity
7975 .PD 0
7976 .RSs
7977 .IPs 1
7978 MAIN (default)
7979 .IPs 2
7981 .IPs 3
7983 .IPs 4
7984 LTP (extremely slow)
7986 .PD 1
7989 .B mpeg=<2|4>
7990 MPEG version (default: 4)
7993 .B "tns\ \ \ \ "
7994 Enables temporal noise shaping.
7997 .B cutoff=<0\-sampling_rate/2>
7998 cutoff frequency (default: sampling_rate/2)
8001 .B "raw\ \ \ \ "
8002 Stores the bitstream as raw payload with extradata in the container header
8003 (default: 0, corresponds to ADTS).
8004 Do not set this flag if not explicitly required or you will not be able to
8005 remux the audio stream later on.
8007 .PD 1
8010 .SS lavc (\-lavcopts)
8012 Many libavcodec (lavc for short) options are tersely documented.
8013 Read the source for full details.
8015 .I EXAMPLE:
8016 .PD 0
8017 .RSs
8018 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
8020 .PD 1
8023 .B o=<key>=<value>[,<key>=<value>[,...]]
8024 Pass AVOptions to libavcodec encoder.
8025 Note, a patch to make the o= unneeded and pass all unknown options through
8026 the AVOption system is welcome.
8027 A full list of AVOptions can be found in the FFmpeg manual.
8028 Note that some AVOptions may conflict with MEncoder options.
8029 .sp 1
8031 .I EXAMPLE:
8033 .RSs
8034 .PD 0
8035 .IPs o=bt=100k
8036 .PD 1
8040 .B acodec=<value>
8041 audio codec (default: mp2)
8042 .PD 0
8043 .RSs
8044 .IPs "ac3\ \ "
8045 Dolby Digital (AC-3)
8046 .IPs adpcm_*
8047 Adaptive PCM formats \- see the HTML documentation for details.
8048 .IPs "flac\ "
8049 Free Lossless Audio Codec (FLAC)
8050 .IPs "g726\ "
8051 G.726 ADPCM
8052 .IPs libfaac
8053 Advanced Audio Coding (AAC) \- using FAAC
8054 .IPs libmp3lame
8055 MPEG-1 audio layer 3 (MP3) \- using LAME
8056 .IPs "mp2\ \ "
8057 MPEG-1 audio layer 2 (MP2)
8058 .IPs pcm_*
8059 PCM formats \- see the HTML documentation for details.
8060 .IPs roq_dpcm
8061 Id Software RoQ DPCM
8062 .IPs sonic
8063 experimental simple lossy codec
8064 .IPs sonicls
8065 experimental simple lossless codec
8066 .IPs vorbis
8067 Vorbis
8068 .IPs wmav1
8069 Windows Media Audio v1
8070 .IPs wmav2
8071 Windows Media Audio v2
8073 .PD 1
8076 .B abitrate=<value>
8077 audio bitrate in kbps (default: 224)
8080 .B atag=<value>
8081 Use the specified Windows audio format tag (e.g.\& atag=0x55).
8084 .B bit_exact
8085 Use only bit exact algorithms (except (I)DCT).
8086 Additionally bit_exact disables several optimizations and thus
8087 should only be used for regression tests, which need binary
8088 identical files even if the encoder version changes.
8089 This also suppresses the user_data header in MPEG-4 streams.
8090 Do not use this option unless you know exactly what you are doing.
8093 .B threads=<1\-8>
8094 Maximum number of threads to use (default: 1).
8095 May have a slight negative effect on motion estimation.
8099 .B vcodec=<value>
8100 Employ the specified codec (default: mpeg4).
8101 .PD 0
8102 .RSs
8103 .IPs "asv1\ "
8104 ASUS Video v1
8105 .IPs "asv2\ "
8106 ASUS Video v2
8107 .IPs dvvideo
8108 Sony Digital Video
8109 .IPs "ffv1\ "
8110 FFmpeg's lossless video codec
8111 .IPs ffvhuff
8112 nonstandard 20% smaller HuffYUV using YV12
8113 .IPs "flv\ \ "
8114 Sorenson H.263 used in Flash Video
8115 .IPs "h261\ "
8116 H.261
8117 .IPs "h263\ "
8118 H.263
8119 .IPs h263p
8120 H.263+
8121 .IPs huffyuv
8122 HuffYUV
8123 .IPs libtheora
8124 Theora
8125 .IPs libx264
8126 x264 H.264/AVC MPEG-4 Part 10
8127 .IPs libxvid
8128 Xvid MPEG-4 Part 2 (ASP)
8129 .IPs ljpeg
8130 Lossless JPEG
8131 .IPs mjpeg
8132 Motion JPEG
8133 .IPs mpeg1video
8134 MPEG-1 video
8135 .IPs mpeg2video
8136 MPEG-2 video
8137 .IPs mpeg4
8138 MPEG-4 (DivX 4/5)
8139 .IPs msmpeg4
8140 DivX 3
8141 .IPs msmpeg4v2
8142 MS MPEG4v2
8143 .IPs roqvideo
8144 ID Software RoQ Video
8145 .IPs "rv10\ "
8146 an old RealVideo codec
8147 .IPs "snow (also see: vstrict)"
8148 FFmpeg's experimental wavelet-based codec
8149 .IPs "svq1\ "
8150 Apple Sorenson Video 1
8151 .IPs "wmv1\ "
8152 Windows Media Video, version 1 (AKA WMV7)
8153 .IPs "wmv2\ "
8154 Windows Media Video, version 2 (AKA WMV8)
8156 .PD 1
8159 .B vqmin=<1\-31>
8160 minimum quantizer
8161 .RSs
8162 .IPs 1
8163 Not recommended (much larger file, little quality difference and weird side
8164 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
8165 resulting in lower quality and some decoders will not be able to decode it).
8166 .IPs 2
8167 Recommended for normal mpeg4/\:mpeg1video encoding (default).
8168 .IPs 3
8169 Recommended for h263(p)/\:msmpeg4.
8170 The reason for preferring 3 over 2 is that 2 could lead to overflows.
8171 (This will be fixed for h263(p) by changing the quantizer per MB in
8172 the future, msmpeg4 cannot be fixed as it does not support that.)
8176 .B lmin=<0.01\-255.0>
8177 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
8178 Lavc will rarely use quantizers below the value of lmin.
8179 Lowering lmin will make lavc more likely to choose lower quantizers for
8180 some frames, but not lower than the value of vqmin.
8181 Likewise, raising lmin will make lavc less likely to choose low
8182 quantizers, even if vqmin would have allowed them.
8183 You probably want to set lmin approximately equal to vqmin.
8184 When adaptive quantization is in use, changing lmin/lmax may have less
8185 of an effect; see mblmin/mblmax.
8189 .B lmax=<0.01\-255.0>
8190 maximum Lagrange multiplier for ratecontrol (default: 31.0)
8194 .B mblmin=<0.01\-255.0>
8195 Minimum macroblock-level Lagrange multiplier for ratecontrol
8196 (default:2.0).
8197 This parameter affects adaptive quantization options like qprd,
8198 lumi_mask, etc..
8202 .B mblmax=<0.01\-255.0>
8203 Maximum macroblock-level Lagrange multiplier for ratecontrol
8204 (default: 31.0).
8208 .B vqscale=<0\-31>
8209 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
8210 A lower value means better quality but larger files (default: \-1).
8211 In case of snow codec, value 0 means lossless encoding.
8212 Since the other codecs do not support this, vqscale=0 will have an undefined
8213 effect.
8214 1 is not recommended (see vqmin for details).
8217 .B vqmax=<1\-31>
8218 Maximum quantizer, 10\-31 should be a sane range (default: 31).
8221 .B mbqmin=<1\-31>
8222 obsolete, use vqmin
8225 .B mbqmax=<1\-31>
8226 obsolete, use vqmax
8229 .B vqdiff=<1\-31>
8230 maximum quantizer difference between consecutive I- or P-frames
8231 (default: 3)
8234 .B vmax_b_frames=<0\-4>
8235 maximum number of B-frames between non-B-frames:
8236 .PD 0
8237 .RSs
8238 .IPs 0
8239 no B-frames (default)
8240 .IPs 0\-2
8241 sane range for MPEG-4
8243 .PD 1
8246 .B vme=<0\-5>
8247 motion estimation method.
8248 Available methods are:
8249 .PD 0
8250 .RSs
8251 .IPs 0
8252 none (very low quality)
8253 .IPs 1
8254 full (slow, currently unmaintained and disabled)
8255 .IPs 2
8256 log (low quality, currently unmaintained and disabled)
8257 .IPs 3
8258 phods (low quality, currently unmaintained and disabled)
8259 .IPs 4
8260 EPZS: size=1 diamond, size can be adjusted with the *dia options
8261 (default)
8262 .IPs 5
8263 X1 (experimental, currently aliased to EPZS)
8264 .IPs 8
8265 iter (iterative overlapped block, only used in snow)
8267 .PD 1
8268 .sp 1
8271 .I NOTE:
8272 0\-3 currently ignores the amount of bits spent,
8273 so quality may be low.
8277 .B me_range=<0\-9999>
8278 motion estimation search range (default: 0 (unlimited))
8281 .B mbd=<0\-2> (also see *cmp, qpel)
8282 Macroblock decision algorithm (high quality mode), encode each macro
8283 block in all modes and choose the best.
8284 This is slow but results in better quality and file size.
8285 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
8286 macroblocks (the mbcmp value is still used in other places though, in particular
8287 the motion search algorithms).
8288 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
8289 however, a slower but better half-pel motion search will be used,
8290 regardless of what mbd is set to.
8291 If qpel is set, quarter-pel motion search will be used regardless.
8292 .PD 0
8293 .RSs
8294 .IPs 0
8295 Use comparison function given by mbcmp (default).
8296 .IPs 1
8297 Select the MB mode which needs the fewest bits (=vhq).
8298 .IPs 2
8299 Select the MB mode which has the best rate distortion.
8301 .PD 1
8304 .B "vhq\ \ \ \ "
8305 Same as mbd=1, kept for compatibility reasons.
8308 .B "v4mv\ \ \ "
8309 Allow 4 motion vectors per macroblock (slightly better quality).
8310 Works better if used with mbd>0.
8313 .B "obmc\ \ \ "
8314 overlapped block motion compensation (H.263+)
8317 .B "loop\ \ \ "
8318 loop filter (H.263+)
8319 note, this is broken
8322 .B inter_threshold <\-1000\-1000>
8323 Does absolutely nothing at the moment.
8326 .B keyint=<0\-300>
8327 maximum interval between keyframes in frames (default: 250 or one
8328 keyframe every ten seconds in a 25fps movie.
8329 This is the recommended default for MPEG-4).
8330 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
8331 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
8332 keyframes need more space than other frames, so larger numbers here mean
8333 slightly smaller files but less precise seeking.
8334 0 is equivalent to 1, which makes every frame a keyframe.
8335 Values >300 are not recommended as the quality might be bad depending upon
8336 decoder, encoder and luck.
8337 It is common for MPEG-1/2 to use values <=30.
8340 .B sc_threshold=<\-1000000000\-1000000000>
8341 Threshold for scene change detection.
8342 A keyframe is inserted by libavcodec when it detects a scene change.
8343 You can specify the sensitivity of the detection with this option.
8344 \-1000000000 means there is a scene change detected at every frame,
8345 1000000000 means no scene changes are detected (default: 0).
8348 .B sc_factor=<any positive integer>
8349 Causes frames with higher quantizers to be more likely to trigger a
8350 scene change detection and make libavcodec use an I-frame (default: 1).
8351 1\-16 is a sane range.
8352 Values between 2 and 6 may yield increasing PSNR (up to approximately
8353 0.04 dB) and better placement of I-frames in high-motion scenes.
8354 Higher values than 6 may give very slightly better PSNR (approximately
8355 0.01 dB more than sc_factor=6), but noticably worse visual quality.
8358 .B vb_strategy=<0\-2> (pass one only)
8359 strategy to choose between I/P/B-frames:
8360 .PD 0
8361 .RSs
8362 .IPs 0
8363 Always use the maximum number of B-frames (default).
8364 .IPs 1
8365 Avoid B-frames in high motion scenes.
8366 See the b_sensitivity option to tune this strategy.
8367 .IPs 2
8368 Places B-frames more or less optimally to yield maximum quality (slower).
8369 You may want to reduce the speed impact of this option by tuning the
8370 option brd_scale.
8372 .PD 1
8375 .B b_sensitivity=<any integer greater than 0>
8376 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
8377 B-frames (default: 40).
8378 Lower sensitivities will result in more B-frames.
8379 Using more B-frames usually improves PSNR, but too many B-frames can
8380 hurt quality in high-motion scenes.
8381 Unless there is an extremely high amount of motion, b_sensitivity can
8382 safely be lowered below the default; 10 is a reasonable value in most
8383 cases.
8386 .B brd_scale=<0\-10>
8387 Downscales frames for dynamic B-frame decision (default: 0).
8388 Each time brd_scale is increased by one, the frame dimensions are
8389 divided by two, which improves speed by a factor of four.
8390 Both dimensions of the fully downscaled frame must be even numbers, so
8391 brd_scale=1 requires the original dimensions to be multiples of four,
8392 brd_scale=2 requires multiples of eight, etc.
8393 In other words, the dimensions of the original frame must both be
8394 divisible by 2^(brd_scale+1) with no remainder.
8397 .B bidir_refine=<0\-4>
8398 Refine the two motion vectors used in bidirectional macroblocks,
8399 rather than re-using vectors from the forward and backward searches.
8400 This option has no effect without B-frames.
8401 .PD 0
8402 .RSs
8403 .IPs 0
8404 Disabled (default).
8405 .IPs 1\-4
8406 Use a wider search (larger values are slower).
8408 .PD 1
8411 .B vpass=<1\-3>
8412 Activates internal two (or more) pass mode, only specify if you wish to
8413 use two (or more) pass encoding.
8414 .PD 0
8415 .RSs
8416 .IPs 1
8417 first pass (also see turbo)
8418 .IPs 2
8419 second pass
8420 .IPs 3
8421 Nth pass (second and subsequent passes of N-pass encoding)
8424 Here is how it works, and how to use it:
8426 The first pass (vpass=1) writes the statistics file.
8427 You might want to deactivate some CPU-hungry options, like "turbo"
8428 mode does.
8430 In two pass mode, the second pass (vpass=2) reads the statistics file and
8431 bases ratecontrol decisions on it.
8433 In N-pass mode, the second pass (vpass=3, that is not a typo)
8434 does both: It first reads the statistics, then overwrites them.
8435 You might want to backup divx2pass.log before doing this if there is
8436 any possibility that you will have to cancel MEncoder.
8437 You can use all encoding options, except very CPU-hungry options like "qns".
8439 You can run this same pass over and over to refine the encode.
8440 Each subsequent pass will use the statistics from the previous pass to improve.
8441 The final pass can include any CPU-hungry encoding options.
8443 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
8445 If you want a 3 or more pass encode, use vpass=1 for the first pass
8446 and then vpass=3 and then vpass=3 again and again until you are
8447 satisfied with the encode.
8449 .PD 1
8450 .sp 1
8452 huffyuv:
8454 .PD 0
8455 .RSs
8456 .IPs "pass 1"
8457 Saves statistics.
8458 .IPs "pass 2"
8459 Encodes with an optimal Huffman table based upon statistics
8460 from the first pass.
8462 .PD 1
8465 .B turbo (two pass only)
8466 Dramatically speeds up pass one using faster algorithms and disabling
8467 CPU-intensive options.
8468 This will probably reduce global PSNR a little bit (around 0.01dB) and
8469 change individual frame type and PSNR a little bit more (up to 0.03dB).
8472 .B aspect=<x/y>
8473 Store movie aspect internally, just like with MPEG files.
8474 Much nicer than rescaling, because quality is not decreased.
8475 Only MPlayer will play these files correctly, other players will display
8476 them with wrong aspect.
8477 The aspect parameter can be given as a ratio or a floating point number.
8478 .sp 1
8480 .I EXAMPLE:
8482 .RSs
8483 .PD 0
8484 .IPs "aspect=16/9 or aspect=1.78"
8485 .PD 1
8489 .B autoaspect
8490 Same as the aspect option, but automatically computes aspect, taking
8491 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
8492 filter chain.
8493 Does not incur a performance penalty, so you can safely leave it
8494 always on.
8497 .B vbitrate=<value>
8498 Specify bitrate (default: 800).
8500 .I WARNING:
8501 1kbit = 1000 bits
8502 .PD 0
8503 .RSs
8504 .IPs 4\-16000
8505 (in kbit)
8506 .IPs 16001\-24000000
8507 (in bit)
8509 .PD 1
8512 .B vratetol=<value>
8513 approximated file size tolerance in kbit.
8514 1000\-100000 is a sane range.
8515 (warning: 1kbit = 1000 bits)
8516 (default: 8000)
8518 .I NOTE:
8519 vratetol should not be too large during the second pass or there might
8520 be problems if vrc_(min|max)rate is used.
8523 .B vrc_maxrate=<value>
8524 maximum bitrate in kbit/\:sec
8525 (default: 0, unlimited)
8528 .B vrc_minrate=<value>
8529 minimum bitrate in kbit/\:sec
8530 (default: 0, unlimited)
8533 .B vrc_buf_size=<value>
8534 buffer size in kbit
8535 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
8536 917 for SVCD and 1835 for DVD.
8539 .B vrc_buf_aggressivity
8540 currently useless
8543 .B vrc_strategy
8544 Ratecontrol method.
8545 Note that some of the ratecontrol-affecting options will have no effect
8546 if vrc_strategy is not set to 0.
8547 .PD 0
8548 .RSs
8549 .IPs 0
8550 Use internal lavc ratecontrol (default).
8551 .IPs 1
8552 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
8553 with support for Xvid 1.1 or higher).
8555 .PD 1
8558 .B vb_qfactor=<\-31.0\-31.0>
8559 quantizer factor between B- and non-B-frames (default: 1.25)
8562 .B vi_qfactor=<\-31.0\-31.0>
8563 quantizer factor between I- and non-I-frames (default: 0.8)
8566 .B vb_qoffset=<\-31.0\-31.0>
8567 quantizer offset between B- and non-B-frames (default: 1.25)
8570 .B vi_qoffset=<\-31.0\-31.0>
8571 (default: 0.0)
8573 if v{b|i}_qfactor > 0
8575 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8577 else
8579 do normal ratecontrol (do not lock to next P-frame quantizer) and
8580 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8582 .I HINT:
8583 To do constant quantizer encoding with different quantizers for
8584 I/P- and B-frames you can use:
8585 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8588 .B vqblur=<0.0\-1.0> (pass one)
8589 Quantizer blur (default: 0.5), larger values will average the
8590 quantizer more over time (slower change).
8591 .PD 0
8592 .RSs
8593 .IPs 0.0
8594 Quantizer blur disabled.
8595 .IPs 1.0
8596 Average the quantizer over all previous frames.
8598 .PD 1
8601 .B vqblur=<0.0\-99.0> (pass two)
8602 Quantizer gaussian blur (default: 0.5), larger values will average
8603 the quantizer more over time (slower change).
8606 .B vqcomp=<0.0\-1.0>
8607 Quantizer compression, vrc_eq depends upon this (default: 0.5).
8608 .I NOTE:
8609 Perceptual quality will be optimal somewhere in between the range's extremes.
8612 .B vrc_eq=<equation>
8613 main ratecontrol equation
8615 .RSs
8616 .IPs 1+(tex/\:avgTex-1)*qComp
8617 approximately the equation of the old ratecontrol code
8618 .IPs tex^qComp
8619 with qcomp 0.5 or something like that (default)
8623 infix operators:
8625 .RSs
8626 .IPs +,\-,*,/,^
8630 variables:
8632 .RSs
8633 .IPs "tex\ \ "
8634 texture complexity
8635 .IPs iTex,pTex
8636 intra, non-intra texture complexity
8637 .IPs avgTex
8638 average texture complexity
8639 .IPs avgIITex
8640 average intra texture complexity in I-frames
8641 .IPs avgPITex
8642 average intra texture complexity in P-frames
8643 .IPs avgPPTex
8644 average non-intra texture complexity in P-frames
8645 .IPs avgBPTex
8646 average non-intra texture complexity in B-frames
8647 .IPs "mv\ \ \ "
8648 bits used for motion vectors
8649 .IPs fCode
8650 maximum length of motion vector in log2 scale
8651 .IPs iCount
8652 number of intra macroblocks / number of macroblocks
8653 .IPs "var\ \ "
8654 spatial complexity
8655 .IPs mcVar
8656 temporal complexity
8657 .IPs qComp
8658 qcomp from the command line
8659 .IPs "isI, isP, isB"
8660 Is 1 if picture type is I/P/B else 0.
8661 .IPs "Pi,E\ "
8662 See your favorite math book.
8666 functions:
8668 .RSs
8669 .IPs max(a,b),min(a,b)
8670 maximum / minimum
8671 .IPs gt(a,b)
8672 is 1 if a>b, 0 otherwise
8673 .IPs lt(a,b)
8674 is 1 if a<b, 0 otherwise
8675 .IPs eq(a,b)
8676 is 1 if a==b, 0 otherwise
8677 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8681 .B vrc_override=<options>
8682 User specified quality for specific parts (ending, credits, ...).
8683 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8684 <end-frame>, <quality>[/...]]:
8685 .PD 0
8686 .RSs
8687 .IPs "quality (2\-31)"
8688 quantizer
8689 .IPs "quality (\-500\-0)"
8690 quality correction in %
8692 .PD 1
8695 .B vrc_init_cplx=<0\-1000>
8696 initial complexity (pass 1)
8699 .B vrc_init_occupancy=<0.0\-1.0>
8700 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8703 .B vqsquish=<0|1>
8704 Specify how to keep the quantizer between qmin and qmax.
8705 .PD 0
8706 .RSs
8707 .IPs 0
8708 Use clipping.
8709 .IPs 1
8710 Use a nice differentiable function (default).
8712 .PD 1
8715 .B vlelim=<\-1000\-1000>
8716 Sets single coefficient elimination threshold for luminance.
8717 Negative values will also consider the DC coefficient (should be at least \-4
8718 or lower for encoding at quant=1):
8719 .PD 0
8720 .RSs
8721 .IPs 0
8722 disabled (default)
8723 .IPs \-4
8724 JVT recommendation
8726 .PD 1
8729 .B vcelim=<\-1000\-1000>
8730 Sets single coefficient elimination threshold for chrominance.
8731 Negative values will also consider the DC coefficient (should be at least \-4
8732 or lower for encoding at quant=1):
8733 .PD 0
8734 .RSs
8735 .IPs 0
8736 disabled (default)
8737 .IPs 7
8738 JVT recommendation
8740 .PD 1
8743 .B vstrict=<\-2|\-1|0|1>
8744 strict standard compliance
8745 .PD 0
8746 .RSs
8747 .IPs 0
8748 disabled
8749 .IPs 1
8750 Only recommended if you want to feed the output into the
8751 MPEG-4 reference decoder.
8752 .IPs \-1
8753 Allow libavcodec specific extensions (default).
8754 .IPs \-2
8755 Enables experimental codecs and features which may not be playable
8756 with future MPlayer versions (snow).
8758 .PD 1
8761 .B "vdpart\ "
8762 Data partitioning.
8763 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8764 unreliable channels (e.g.\& streaming over the internet).
8765 Each video packet will be encoded in 3 separate partitions:
8766 .PD 0
8767 .RSs
8768 .IPs "1. MVs"
8769 movement
8770 .IPs "2. DC coefficients"
8771 low res picture
8772 .IPs "3. AC coefficients"
8773 details
8775 .PD 1
8777 MV & DC are most important, losing them looks far worse than losing
8778 the AC and the 1. & 2. partition.
8779 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8780 will hit the AC partition much more often than the MV & DC partitions.
8781 Thus, the picture will look better with partitioning than without,
8782 as without partitioning an error will trash AC/\:DC/\:MV equally.
8786 .B vpsize=<0\-10000> (also see vdpart)
8787 Video packet size, improves error-resistance.
8788 .PD 0
8789 .RSs
8790 .IPs "0\ \ \ \ "
8791 disabled (default)
8792 .IPs 100\-1000
8793 good choice
8795 .PD 1
8798 .B "ss\ \ \ \ \ "
8799 slice structured mode for H.263+
8802 .B "gray\ \ \ "
8803 grayscale only encoding (faster)
8806 .B vfdct=<0\-10>
8807 DCT algorithm
8808 .PD 0
8809 .RSs
8810 .IPs 0
8811 Automatically select a good one (default).
8812 .IPs 1
8813 fast integer
8814 .IPs 2
8815 accurate integer
8816 .IPs 3
8818 .IPs 4
8819 mlib
8820 .IPs 5
8821 AltiVec
8822 .IPs 6
8823 floating point AAN
8825 .PD 1
8828 .B idct=<0\-99>
8829 IDCT algorithm
8831 .I NOTE:
8832 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
8833 .PD 0
8834 .RSs
8835 .IPs 0
8836 Automatically select a good one (default).
8837 .IPs 1
8838 JPEG reference integer
8839 .IPs 2
8840 simple
8841 .IPs 3
8842 simplemmx
8843 .IPs 4
8844 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
8845 .IPs 5
8847 .IPs 6
8848 mlib
8849 .IPs 7
8851 .IPs 8
8852 AltiVec
8853 .IPs 9
8855 .IPs 10
8856 simplearm
8857 .IPs 11
8858 H.264
8859 .IPs 12
8861 .IPs 13
8863 .IPs 14
8864 xvidmmx
8865 .IPs 15
8866 CAVS
8867 .IPs 16
8868 simplearmv5te
8869 .IPs 17
8870 simplearmv6
8872 .PD 1
8875 .B lumi_mask=<0.0\-1.0>
8876 Luminance masking is a 'psychosensory' setting that is supposed to
8877 make use of the fact that the human eye tends to notice fewer details
8878 in very bright parts of the picture.
8879 Luminance masking compresses bright areas stronger than medium ones,
8880 so it will save bits that can be spent again on other frames, raising
8881 overall subjective quality, while possibly reducing PSNR.
8883 .I WARNING:
8884 Be careful, overly large values can cause disastrous things.
8886 .I WARNING:
8887 Large values might look good on some monitors but may look horrible
8888 on other monitors.
8889 .PD 0
8890 .RSs
8891 .IPs "0.0\ \ "
8892 disabled (default)
8893 .IPs 0.0\-0.3
8894 sane range
8896 .PD 1
8899 .B dark_mask=<0.0\-1.0>
8900 Darkness masking is a 'psychosensory' setting that is supposed to
8901 make use of the fact that the human eye tends to notice fewer details
8902 in very dark parts of the picture.
8903 Darkness masking compresses dark areas stronger than medium ones,
8904 so it will save bits that can be spent again on other frames, raising
8905 overall subjective quality, while possibly reducing PSNR.
8907 .I WARNING:
8908 Be careful, overly large values can cause disastrous things.
8910 .I WARNING:
8911 Large values might look good on some monitors but may look horrible
8912 on other monitors / TV / TFT.
8913 .PD 0
8914 .RSs
8915 .IPs "0.0\ \ "
8916 disabled (default)
8917 .IPs 0.0\-0.3
8918 sane range
8920 .PD 1
8923 .B tcplx_mask=<0.0\-1.0>
8924 Temporal complexity masking (default: 0.0 (disabled)).
8925 Imagine a scene with a bird flying across the whole scene; tcplx_mask
8926 will raise the quantizers of the bird's macroblocks (thus decreasing their
8927 quality), as the human eye usually does not have time to see all the bird's
8928 details.
8929 Be warned that if the masked object stops (e.g.\& the bird lands) it is
8930 likely to look horrible for a short period of time, until the encoder
8931 figures out that the object is not moving and needs refined blocks.
8932 The saved bits will be spent on other parts of the video, which may increase
8933 subjective quality, provided that tcplx_mask is carefully chosen.
8936 .B scplx_mask=<0.0\-1.0>
8937 Spatial complexity masking.
8938 Larger values help against blockiness, if no deblocking filter is used for
8939 decoding, which is maybe not a good idea.
8941 Imagine a scene with grass (which usually has great spatial complexity),
8942 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
8943 macroblocks, thus decreasing its quality, in order to spend more bits on
8944 the sky and the house.
8946 .I HINT:
8947 Crop any black borders completely as they will reduce the quality
8948 of the macroblocks (also applies without scplx_mask).
8949 .PD 0
8950 .RSs
8951 .IPs "0.0\ \ "
8952 disabled (default)
8953 .IPs 0.0\-0.5
8954 sane range
8956 .PD 1
8957 .sp 1
8959 .I NOTE:
8960 This setting does not have the same effect as using a custom matrix that
8961 would compress high frequencies harder, as scplx_mask will reduce the
8962 quality of P blocks even if only DC is changing.
8963 The result of scplx_mask will probably not look as good.
8967 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
8968 Reduces the quality of inter blocks.
8969 This is equivalent to increasing the quality of intra blocks, because the
8970 same average bitrate will be distributed by the rate controller to the
8971 whole video sequence (default: 0.0 (disabled)).
8972 p_mask=1.0 doubles the bits allocated to each intra block.
8975 .B border_mask=<0.0\-1.0>
8976 border-processing for MPEG-style encoders.
8977 Border processing increases the quantizer for macroblocks which are less
8978 than 1/5th of the frame width/height away from the frame border,
8979 since they are often visually less important.
8982 .B "naq\ \ \ \ "
8983 Normalize adaptive quantization (experimental).
8984 When using adaptive quantization (*_mask), the average per-MB quantizer may no
8985 longer match the requested frame-level quantizer.
8986 Naq will attempt to adjust the per-MB quantizers to maintain the proper
8987 average.
8990 .B "ildct\ \ "
8991 Use interlaced DCT.
8994 .B "ilme\ \ \ "
8995 Use interlaced motion estimation (mutually exclusive with qpel).
8998 .B "alt\ \ \ \ "
8999 Use alternative scantable.
9002 .B "top=<\-1\-1>\ \ \ "
9003 .PD 0
9004 .RSs
9005 .IPs \-1
9006 automatic
9007 .IPs 0
9008 bottom field first
9009 .IPs 1
9010 top field first
9012 .PD 1
9015 .B format=<value>
9016 .PD 0
9017 .RSs
9018 .IPs "YV12\ "
9019 default
9020 .IPs "444P\ "
9021 for ffv1
9022 .IPs "422P\ "
9023 for HuffYUV, lossless JPEG, dv and ffv1
9024 .IPs "411P\ "
9025 for lossless JPEG, dv and ffv1
9026 .IPs "YVU9\ "
9027 for lossless JPEG, ffv1 and svq1
9028 .IPs "BGR32"
9029 for lossless JPEG and ffv1
9031 .PD 1
9034 .B "pred\ \ \ "
9035 (for HuffYUV)
9036 .PD 0
9037 .RSs
9038 .IPs 0
9039 left prediction
9040 .IPs 1
9041 plane/\:gradient prediction
9042 .IPs 2
9043 median prediction
9045 .PD 1
9048 .B "pred\ \ \ "
9049 (for lossless JPEG)
9050 .PD 0
9051 .RSs
9052 .IPs 0
9053 left prediction
9054 .IPs 1
9055 top prediction
9056 .IPs 2
9057 topleft prediction
9058 .IPs 3
9059 plane/\:gradient prediction
9060 .IPs 6
9061 mean prediction
9063 .PD 1
9066 .B "coder\ \ "
9067 (for ffv1)
9068 .PD 0
9069 .RSs
9070 .IPs 0
9071 vlc coding (Golomb-Rice)
9072 .IPs 1
9073 arithmetic coding (CABAC)
9075 .PD 1
9078 .B context
9079 (for ffv1)
9080 .PD 0
9081 .RSs
9082 .IPs 0
9083 small context model
9084 .IPs 1
9085 large context model
9087 .PD 1
9088 .sp 1
9090 (for ffvhuff)
9092 .PD 0
9093 .RSs
9094 .IPs 0
9095 predetermined Huffman tables (builtin or two pass)
9096 .IPs 1
9097 adaptive Huffman tables
9099 .PD 1
9102 .B "qpel\ \ \ "
9103 Use quarter pel motion compensation (mutually exclusive with ilme).
9105 .I HINT:
9106 This seems only useful for high bitrate encodings.
9109 .B mbcmp=<0\-2000>
9110 Sets the comparison function for the macroblock decision, has only
9111 an effect if mbd=0.
9112 This is also used for some motion search functions, in which case
9113 it has an effect regardless of mbd setting.
9114 .PD 0
9115 .RSs
9116 .IPs "0 (SAD)"
9117 sum of absolute differences, fast (default)
9118 .IPs "1 (SSE)"
9119 sum of squared errors
9120 .IPs "2 (SATD)"
9121 sum of absolute Hadamard transformed differences
9122 .IPs "3 (DCT)"
9123 sum of absolute DCT transformed differences
9124 .IPs "4 (PSNR)"
9125 sum of squared quantization errors (avoid, low quality)
9126 .IPs "5 (BIT)"
9127 number of bits needed for the block
9128 .IPs "6 (RD)"
9129 rate distortion optimal, slow
9130 .IPs "7 (ZERO)"
9132 .IPs "8 (VSAD)"
9133 sum of absolute vertical differences
9134 .IPs "9 (VSSE)"
9135 sum of squared vertical differences
9136 .IPs "10 (NSSE)"
9137 noise preserving sum of squared differences
9138 .IPs "11 (W53)"
9139 5/3 wavelet, only used in snow
9140 .IPs "12 (W97)"
9141 9/7 wavelet, only used in snow
9142 .IPs "+256\ "
9143 Also use chroma, currently does not work (correctly) with B-frames.
9145 .PD 1
9148 .B ildctcmp=<0\-2000>
9149 Sets the comparison function for interlaced DCT decision
9150 (see mbcmp for available comparison functions).
9153 .B precmp=<0\-2000>
9154 Sets the comparison function for motion estimation pre pass
9155 (see mbcmp for available comparison functions) (default: 0).
9158 .B cmp=<0\-2000>
9159 Sets the comparison function for full pel motion estimation
9160 (see mbcmp for available comparison functions) (default: 0).
9163 .B subcmp=<0\-2000>
9164 Sets the comparison function for sub pel motion estimation
9165 (see mbcmp for available comparison functions) (default: 0).
9168 .B skipcmp=<0\-2000>
9169 FIXME: Document this.
9172 .B nssew=<0\-1000000>
9173 This setting controls NSSE weight, where larger weights will result in
9174 more noise.
9175 0 NSSE is identical to SSE
9176 You may find this useful if you prefer to keep some noise in your encoded
9177 video rather than filtering it away before encoding (default: 8).
9180 .B predia=<\-99\-6>
9181 diamond type and size for motion estimation pre-pass
9184 .B dia=<\-99\-6>
9185 Diamond type & size for motion estimation.
9186 Motion search is an iterative process.
9187 Using a small diamond does not limit the search to finding only small
9188 motion vectors.
9189 It is just somewhat more likely to stop before finding the very best motion
9190 vector, especially when noise is involved.
9191 Bigger diamonds allow a wider search for the best motion vector, thus are
9192 slower but result in better quality.
9194 Big normal diamonds are better quality than shape-adaptive diamonds.
9196 Shape-adaptive diamonds are a good tradeoff between speed and quality.
9198 .I NOTE:
9199 The sizes of the normal diamonds and shape adaptive ones do not have
9200 the same meaning.
9201 .RSs
9202 .IPs \-3
9203 shape adaptive (fast) diamond with size 3
9204 .IPs \-2
9205 shape adaptive (fast) diamond with size 2
9206 .IPs \-1
9207 uneven multi-hexagon search (slow)
9208 .IPs  1
9209 normal size=1 diamond (default) =EPZS type diamond
9212       0
9213      000
9214       0
9216 .IPs 2
9217 normal size=2 diamond
9220       0
9221      000
9222     00000
9223      000
9224       0
9229 .B "trell\ \ "
9230 Trellis searched quantization.
9231 This will find the optimal encoding for each 8x8 block.
9232 Trellis searched quantization is quite simply an optimal quantization in
9233 the PSNR versus bitrate sense (Assuming that there would be no rounding
9234 errors introduced by the IDCT, which is obviously not the case.).
9235 It simply finds a block for the minimum of error and lambda*bits.
9236 .PD 0
9237 .RSs
9238 .IPs lambda
9239 quantization parameter (QP) dependent constant
9240 .IPs "bits\ "
9241 amount of bits needed to encode the block
9242 .IPs error
9243 sum of squared errors of the quantization
9245 .PD 1
9248 .B "cbp\ \ \ \ "
9249 Rate distorted optimal coded block pattern.
9250 Will select the coded block pattern which minimizes distortion + lambda*rate.
9251 This can only be used together with trellis quantization.
9254 .B "mv0\ \ \ \ "
9255 Try to encode each MB with MV=<0,0> and choose the better one.
9256 This has no effect if mbd=0.
9259 .B mv0_threshold=<any non-negative integer>
9260 When surrounding motion vectors are <0,0> and the motion estimation
9261 score of the current block is less than mv0_threshold, <0,0> is used for
9262 the motion vector and further motion estimation is skipped (default:
9263 256).
9264 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
9265 possibly make the encoded video look slightly better; raising
9266 mv0_threshold past 320 results in diminished PSNR and visual quality.
9267 Higher values speed up encoding very slightly (usually less than 1%,
9268 depending on the other options used).
9270 .I NOTE:
9271 This option does not require mv0 to be enabled.
9274 .B qprd (mbd=2 only)
9275 rate distorted optimal quantization parameter (QP) for the given
9276 lambda of each macroblock
9279 .B last_pred=<0\-99>
9280 amount of motion predictors from the previous frame
9281 .PD 0
9282 .RSs
9283 .IPs 0
9284 (default)
9285 .IPs a
9286 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
9287 previous frame.
9289 .PD 1
9292 .B preme=<0\-2>
9293 motion estimation pre-pass
9294 .PD 0
9295 .RSs
9296 .IPs 0
9297 disabled
9298 .IPs 1
9299 only after I-frames (default)
9300 .IPs 2
9301 always
9303 .PD 1
9306 .B subq=<1\-8>
9307 subpel refinement quality (for qpel) (default: 8 (high quality))
9309 .I NOTE:
9310 This has a significant effect on speed.
9313 .B refs=<1\-8>
9314 number of reference frames to consider for motion compensation
9315 (Snow only) (default: 1)
9318 .B "psnr\ \ \ "
9319 print the PSNR (peak signal to noise ratio) for the whole video after encoding
9320 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
9321 Returned values are in dB (decibel), the higher the better.
9324 .B mpeg_quant
9325 Use MPEG quantizers instead of H.263.
9328 .B "aic\ \ \ \ "
9329 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
9330 This will improve quality very slightly (around 0.02 dB PSNR) and slow
9331 down encoding very slightly (about 1%).
9333 .I NOTE:
9334 vqmin should be 8 or larger for H.263+ AIC.
9337 .B "aiv\ \ \ \ "
9338 alternative inter vlc for H.263+
9341 .B "umv\ \ \ \ "
9342 unlimited MVs (H.263+ only)
9343 Allows encoding of arbitrarily long MVs.
9346 .B ibias=<\-256\-256>
9347 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
9348 H.263 style quantizer default: 0)
9350 .I NOTE:
9351 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9352 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9355 .B pbias=<\-256\-256>
9356 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
9357 H.263 style quantizer default: \-64)
9359 .I NOTE:
9360 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9361 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9363 .I HINT:
9364 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
9367 .B nr=<0\-100000>
9368 Noise reduction, 0 means disabled.
9369 0\-600 is a useful range for typical content, but you may want to turn it
9370 up a bit more for very noisy content (default: 0).
9371 Given its small impact on speed, you might want to prefer to use this over
9372 filtering noise away with video filters like denoise3d or hqdn3d.
9375 .B qns=<0\-3>
9376 Quantizer noise shaping.
9377 Rather than choosing quantization to most closely match the source video
9378 in the PSNR sense, it chooses quantization such that noise (usually ringing)
9379 will be masked by similar-frequency content in the image.
9380 Larger values are slower but may not result in better quality.
9381 This can and should be used together with trellis quantization, in which case
9382 the trellis quantization (optimal for constant weight) will be used as
9383 startpoint for the iterative search.
9384 .PD 0
9385 .RSs
9386 .IPs 0
9387 disabled (default)
9388 .IPs 1
9389 Only lower the absolute value of coefficients.
9390 .IPs 2
9391 Only change coefficients before the last non-zero coefficient + 1.
9392 .IPs 3
9393 Try all.
9395 .PD 1
9398 .B inter_matrix=<comma separated matrix>
9399 Use custom inter matrix.
9400 It needs a comma separated string of 64 integers.
9403 .B intra_matrix=<comma separated matrix>
9404 Use custom intra matrix.
9405 It needs a comma separated string of 64 integers.
9408 .B vqmod_amp
9409 experimental quantizer modulation
9412 .B vqmod_freq
9413 experimental quantizer modulation
9416 .B "dc\ \ \ \ \ "
9417 intra DC precision in bits (default: 8).
9418 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
9421 .B cgop (also see sc_threshold)
9422 Close all GOPs.
9423 Currently it only works if scene change detection is disabled
9424 (sc_threshold=1000000000).
9427 .B "gmc\ \ \ \ "
9428 Enable Global Motion Compensation.
9431 .B (no)lowdelay
9432 Sets the low delay flag for MPEG-1/2 (disables B-frames).
9435 .B vglobal=<0\-3>
9436 Control writing global video headers.
9437 .PD 0
9438 .RSs
9439 .IPs 0
9440 Codec decides where to write global headers (default).
9441 .IPs 1
9442 Write global headers only in extradata (needed for .mp4/MOV/NUT).
9443 .IPs 2
9444 Write global headers only in front of keyframes.
9445 .IPs 3
9446 Combine 1 and 2.
9448 .PD 1
9451 .B aglobal=<0\-3>
9452 Same as vglobal for audio headers.
9455 .B level=<value>
9456 Set CodecContext Level.
9457 Use 31 or 41 to play video on a Playstation 3.
9460 .B skip_exp=<0\-1000000>
9461 FIXME: Document this.
9464 .B skip_factor=<0\-1000000>
9465 FIXME: Document this.
9468 .B skip_threshold=<0\-1000000>
9469 FIXME: Document this.
9472 .SS nuv (\-nuvopts)
9474 Nuppel video is based on RTJPEG and LZO.
9475 By default frames are first encoded with RTJPEG and then compressed with LZO,
9476 but it is possible to disable either or both of the two passes.
9477 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
9478 or the default LZO compressed RTJPEG.
9480 .I NOTE:
9481 The nuvrec documentation contains some advice and examples about the
9482 settings to use for the most common TV encodings.
9485 .B c=<0\-20>
9486 chrominance threshold (default: 1)
9489 .B l=<0\-20>
9490 luminance threshold (default: 1)
9493 .B "lzo\ \ \ \ "
9494 Enable LZO compression (default).
9497 .B "nolzo\ \ "
9498 Disable LZO compression.
9501 .B q=<3\-255>
9502 quality level (default: 255)
9505 .B "raw \ \ \ "
9506 Disable RTJPEG encoding.
9509 .B "rtjpeg\ "
9510 Enable RTJPEG encoding (default).
9513 .SS xvidenc (\-xvidencopts)
9515 There are three modes available: constant bitrate (CBR), fixed quantizer and
9516 two pass.
9519 .B pass=<1|2>
9520 Specify the pass in two pass mode.
9523 .B turbo (two pass only)
9524 Dramatically speeds up pass one using faster algorithms and disabling
9525 CPU-intensive options.
9526 This will probably reduce global PSNR a little bit and change individual
9527 frame type and PSNR a little bit more.
9530 .B bitrate=<value> (CBR or two pass mode)
9531 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
9532 if >16000.
9533 If <value> is negative, Xvid will use its absolute value as the target size
9534 (in kBytes) of the video and compute the associated bitrate automagically
9535 (default: 687 kbits/s).
9538 .B fixed_quant=<1\-31>
9539 Switch to fixed quantizer mode and specify the quantizer to be used.
9542 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
9543 User specified quality for specific parts (ending, credits, ...).
9544 Each zone is <start-frame>,<mode>,<value> where <mode> may be
9545 .PD 0
9546 .RSs
9547 .IPs "q"
9548 Constant quantizer override, where value=<2.0\-31.0>
9549 represents the quantizer value.
9550 .IPs "w"
9551 Ratecontrol weight override, where value=<0.01\-2.00>
9552 represents the quality correction in %.
9554 .PD 1
9555 .sp 1
9557 .I EXAMPLE:
9559 .PD 0
9560 .RSs
9561 .IPs zones=90000,q,20
9562 Encodes all frames starting with frame 90000 at constant quantizer 20.
9563 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9564 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9565 up to the end at constant quantizer 20.
9566 Note that the second zone is needed to delimit the first zone, as
9567 without it everything up until frame 89999 would be encoded at 10%
9568 bitrate.
9570 .PD 1
9573 .B me_quality=<0\-6>
9574 This option controls the motion estimation subsystem.
9575 The higher the value, the more precise the estimation should be (default: 6).
9576 The more precise the motion estimation is, the more bits can be saved.
9577 Precision is gained at the expense of CPU time so decrease this setting if
9578 you need realtime encoding.
9581 .B (no)qpel
9582 MPEG-4 uses a half pixel precision for its motion search by default.
9583 The standard proposes a mode where encoders are allowed to use quarter
9584 pixel precision.
9585 This option usually results in a sharper image.
9586 Unfortunately it has a great impact on bitrate and sometimes the
9587 higher bitrate use will prevent it from giving a better image
9588 quality at a fixed bitrate.
9589 It is better to test with and without this option and see whether it
9590 is worth activating.
9593 .B (no)gmc
9594 Enable Global Motion Compensation, which makes Xvid generate special
9595 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9596 Whether or not the use of this option will save bits is highly
9597 dependent on the source material.
9600 .B (no)trellis
9601 Trellis Quantization is a kind of adaptive quantization method that
9602 saves bits by modifying quantized coefficients to make them more
9603 compressible by the entropy encoder.
9604 Its impact on quality is good, and if VHQ uses too much CPU for you,
9605 this setting can be a good alternative to save a few bits (and gain
9606 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9609 .B (no)cartoon
9610 Activate this if your encoded sequence is an anime/\:cartoon.
9611 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9612 frame types and motion vectors for flat looking cartoons.
9615 .B (no)chroma_me
9616 The usual motion estimation algorithm uses only the luminance information to
9617 find the best motion vector.
9618 However for some video material, using the chroma planes can help find
9619 better vectors.
9620 This setting toggles the use of chroma planes for motion estimation
9621 (default: on).
9624 .B (no)chroma_opt
9625 Enable a chroma optimizer prefilter.
9626 It will do some extra magic on color information to minimize the
9627 stepped-stairs effect on edges.
9628 It will improve quality at the cost of encoding speed.
9629 It reduces PSNR by nature, as the mathematical deviation to the original
9630 picture will get bigger, but the subjective image quality will raise.
9631 Since it works with color information, you might want to turn it off when
9632 encoding in grayscale.
9635 .B (no)hq_ac
9636 Activates high-quality prediction of AC coefficients for intra frames from
9637 neighbor blocks (default: on).
9640 .B vhq=<0\-4>
9641 The motion search algorithm is based on a search in the usual color domain
9642 and tries to find a motion vector that minimizes the difference between the
9643 reference frame and the encoded frame.
9644 With this setting activated, Xvid will also use the frequency domain (DCT)
9645 to search for a motion vector that minimizes not only the spatial
9646 difference but also the encoding length of the block.
9647 Fastest to slowest:
9648 .PD 0
9649 .RSs
9650 .IPs 0
9652 .IPs 1
9653 mode decision (inter/\:intra MB) (default)
9654 .IPs 2
9655 limited search
9656 .IPs 3
9657 medium search
9658 .IPs 4
9659 wide search
9661 .PD 1
9664 .B (no)lumi_mask
9665 Adaptive quantization allows the macroblock quantizers to vary inside
9666 each frame.
9667 This is a 'psychosensory' setting that is supposed to make use of the
9668 fact that the human eye tends to notice fewer details in very bright
9669 and very dark parts of the picture.
9670 It compresses those areas more strongly than medium ones, which will
9671 save bits that can be spent again on other frames, raising overall
9672 subjective quality and possibly reducing PSNR.
9675 .B (no)grayscale
9676 Make Xvid discard chroma planes so the encoded video is grayscale only.
9677 Note that this does not speed up encoding, it just prevents chroma data
9678 from being written in the last stage of encoding.
9681 .B (no)interlacing
9682 Encode the fields of interlaced video material.
9683 Turn this option on for interlaced content.
9685 .I NOTE:
9686 Should you rescale the video, you would need an interlace-aware resizer,
9687 which you can activate with \-vf scale=<width>:<height>:1.
9690 .B min_iquant=<0\-31>
9691 minimum I-frame quantizer (default: 2)
9694 .B max_iquant=<0\-31>
9695 maximum I-frame quantizer (default: 31)
9698 .B min_pquant=<0\-31>
9699 minimum P-frame quantizer (default: 2)
9702 .B max_pquant=<0\-31>
9703 maximum P-frame quantizer (default: 31)
9706 .B min_bquant=<0\-31>
9707 minimum B-frame quantizer (default: 2)
9710 .B max_bquant=<0\-31>
9711 maximum B-frame quantizer (default: 31)
9714 .B min_key_interval=<value> (two pass only)
9715 minimum interval between keyframes (default: 0)
9718 .B max_key_interval=<value>
9719 maximum interval between keyframes (default: 10*fps)
9722 .B quant_type=<h263|mpeg>
9723 Sets the type of quantizer to use.
9724 For high bitrates, you will find that MPEG quantization preserves more detail.
9725 For low bitrates, the smoothing of H.263 will give you less block noise.
9726 When using custom matrices, MPEG quantization
9727 .B must
9728 be used.
9731 .B quant_intra_matrix=<filename>
9732 Load a custom intra matrix file.
9733 You can build such a file with xvid4conf's matrix editor.
9736 .B quant_inter_matrix=<filename>
9737 Load a custom inter matrix file.
9738 You can build such a file with xvid4conf's matrix editor.
9741 .B keyframe_boost=<0\-1000> (two pass mode only)
9742 Shift some bits from the pool for other frame types to intra frames,
9743 thus improving keyframe quality.
9744 This amount is an extra percentage, so a value of 10 will give
9745 your keyframes 10% more bits than normal
9746 (default: 0).
9749 .B kfthreshold=<value> (two pass mode only)
9750 Works together with kfreduction.
9751 Determines the minimum distance below which you consider that
9752 two frames are considered consecutive and treated differently
9753 according to kfreduction
9754 (default: 10).
9757 .B kfreduction=<0\-100> (two pass mode only)
9758 The above two settings can be used to adjust the size of keyframes that
9759 you consider too close to the first (in a row).
9760 kfthreshold sets the range in which keyframes are reduced, and
9761 kfreduction determines the bitrate reduction they get.
9762 The last I-frame will get treated normally
9763 (default: 30).
9766 .B max_bframes=<0\-4>
9767 Maximum number of B-frames to put between I/P-frames (default: 2).
9770 .B bquant_ratio=<0\-1000>
9771 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9774 .B bquant_offset=<\-1000\-1000>
9775 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9778 .B bf_threshold=<\-255\-255>
9779 This setting allows you to specify what priority to place on the use of
9780 B-frames.
9781 The higher the value, the higher the probability of B-frames being used
9782 (default: 0).
9783 Do not forget that B-frames usually have a higher quantizer, and therefore
9784 aggressive production of B-frames may cause worse visual quality.
9787 .B (no)closed_gop
9788 This option tells Xvid to close every GOP (Group Of Pictures bounded
9789 by two I-frames), which makes GOPs independent from each other.
9790 This just implies that the last frame of the GOP is either a P-frame or a
9791 N-frame but not a B-frame.
9792 It is usually a good idea to turn this option on (default: on).
9795 .B (no)packed
9796 This option is meant to solve frame-order issues when encoding to
9797 container formats like AVI that cannot cope with out-of-order frames.
9798 In practice, most decoders (both software and hardware) are able to deal
9799 with frame-order themselves, and may get confused when this option is
9800 turned on, so you can safely leave if off, unless you really know what
9801 you are doing.
9803 .I WARNING:
9804 This will generate an illegal bitstream, and will not be
9805 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
9807 .I WARNING:
9808 This will also store a fake DivX version in the file so the bug
9809 autodetection of some decoders might be confused.
9812 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
9813 This setting allows the creation of variable framerate video streams.
9814 The value of the setting specifies a threshold under which, if the
9815 difference of the following frame to the previous frame is below or equal
9816 to this threshold, a frame gets not coded (a so called n-vop is placed
9817 in the stream).
9818 On playback, when reaching an n-vop the previous frame will be displayed.
9820 .I WARNING:
9821 Playing with this setting may result in a jerky video, so use it at your
9822 own risks!
9825 .B rc_reaction_delay_factor=<value>
9826 This parameter controls the number of frames the CBR rate controller
9827 will wait before reacting to bitrate changes and compensating for them
9828 to obtain a constant bitrate over an averaging range of frames.
9831 .B rc_averaging_period=<value>
9832 Real CBR is hard to achieve.
9833 Depending on the video material, bitrate can be variable, and hard to predict.
9834 Therefore Xvid uses an averaging period for which it guarantees a given
9835 amount of bits (minus a small variation).
9836 This settings expresses the "number of frames" for which Xvid averages
9837 bitrate and tries to achieve CBR.
9840 .B rc_buffer=<value>
9841 size of the rate control buffer
9844 .B curve_compression_high=<0\-100>
9845 This setting allows Xvid to take a certain percentage of bits away from
9846 high bitrate scenes and give them back to the bit reservoir.
9847 You could also use this if you have a clip with so many bits allocated
9848 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
9849 (default: 0).
9852 .B curve_compression_low=<0\-100>
9853 This setting allows Xvid to give a certain percentage of extra bits to the
9854 low bitrate scenes, taking a few bits from the entire clip.
9855 This might come in handy if you have a few low-bitrate scenes that are
9856 still blocky (default: 0).
9859 .B overflow_control_strength=<0\-100>
9860 During pass one of two pass encoding, a scaled bitrate curve is computed.
9861 The difference between that expected curve and the result obtained during
9862 encoding is called overflow.
9863 Obviously, the two pass rate controller tries to compensate for that overflow,
9864 distributing it over the next frames.
9865 This setting controls how much of the overflow is distributed every time
9866 there is a new frame.
9867 Low values allow lazy overflow control, big rate bursts are compensated for
9868 more slowly (could lead to lack of precision for small clips).
9869 Higher values will make changes in bit redistribution more abrupt, possibly
9870 too abrupt if you set it too high, creating artifacts (default: 5).
9872 .I NOTE:
9873 This setting impacts quality a lot, play with it carefully!
9876 .B max_overflow_improvement=<0\-100>
9877 During the frame bit allocation, overflow control may increase the frame
9878 size.
9879 This parameter specifies the maximum percentage by which the overflow
9880 control is allowed to increase the frame size, compared to the ideal curve
9881 allocation
9882 (default: 5).
9885 .B max_overflow_degradation=<0\-100>
9886 During the frame bit allocation, overflow control may decrease the frame
9887 size.
9888 This parameter specifies the maximum percentage by which the overflow
9889 control is allowed to decrease the frame size, compared to the ideal curve
9890 allocation
9891 (default: 5).
9894 .B container_frame_overhead=<0...>
9895 Specifies a frame average overhead per frame, in bytes.
9896 Most of the time users express their target bitrate for video w/o taking
9897 care of the video container overhead.
9898 This small but (mostly) constant overhead can cause the target file size
9899 to be exceeded.
9900 Xvid allows users to set the amount of overhead per frame the
9901 container generates (give only an average per frame).
9902 0 has a special meaning, it lets Xvid use its own default values
9903 (default: 24 \- AVI average overhead).
9906 .B profile=<profile_name>
9907 Restricts options and VBV (peak bitrate over a short period) according to
9908 the Simple, Advanced Simple and DivX profiles.
9909 The resulting videos should be playable on standalone players adhering to these
9910 profile specifications.
9911 .PD 0
9912 .RSs
9913 .IPs unrestricted
9914 no restrictions (default)
9915 .IPs "sp0\ \ "
9916 simple profile at level 0
9917 .IPs "sp1\ \ "
9918 simple profile at level 1
9919 .IPs "sp2\ \ "
9920 simple profile at level 2
9921 .IPs "sp3\ \ "
9922 simple profile at level 3
9923 .IPs "asp0\ "
9924 advanced simple profile at level 0
9925 .IPs "asp1\ "
9926 advanced simple profile at level 1
9927 .IPs "asp2\ "
9928 advanced simple profile at level 2
9929 .IPs "asp3\ "
9930 advanced simple profile at level 3
9931 .IPs "asp4\ "
9932 advanced simple profile at level 4
9933 .IPs "asp5\ "
9934 advanced simple profile at level 5
9935 .IPs dxnhandheld
9936 DXN handheld profile
9937 .IPs dxnportntsc
9938 DXN portable NTSC profile
9939 .IPs dxnportpal
9940 DXN portable PAL profile
9941 .IPs dxnhtntsc
9942 DXN home theater NTSC profile
9943 .IPs dxnhtpal
9944 DXN home theater PAL profile
9945 .IPs dxnhdtv
9946 DXN HDTV profile
9948 .PD 1
9950 .I NOTE:
9951 These profiles should be used in conjunction with an appropriate \-ffourcc.
9952 Generally DX50 is applicable, as some players do not recognize Xvid but
9953 most recognize DivX.
9957 .B par=<mode>
9958 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
9959 the Display Aspect Ratio).
9960 PAR is the ratio of the width and height of a single pixel.
9961 So both are related like this: DAR = PAR * (width/height).
9963 MPEG-4 defines 5 pixel aspect ratios and one extended
9964 one, giving the opportunity to specify a specific pixel aspect
9965 ratio.
9966 5 standard modes can be specified:
9967 .PD 0
9968 .RSs
9969 .IPs vga11
9970 It is the usual PAR for PC content.
9971 Pixels are a square unit.
9972 .IPs pal43
9973 PAL standard 4:3 PAR.
9974 Pixels are rectangles.
9975 .IPs pal169
9976 same as above
9977 .IPs ntsc43
9978 same as above
9979 .IPs ntsc169
9980 same as above (Do not forget to give the exact ratio.)
9981 .IPs "ext\ \ "
9982 Allows you to specify your own pixel aspect ratio with par_width and
9983 par_height.
9985 .PD 1
9987 .I NOTE:
9988 In general, setting aspect and autoaspect options is enough.
9992 .B par_width=<1\-255> (par=ext only)
9993 Specifies the width of the custom pixel aspect ratio.
9996 .B par_height=<1\-255> (par=ext only)
9997 Specifies the height of the custom pixel aspect ratio.
10000 .B aspect=<x/y | f (float value)>
10001 Store movie aspect internally, just like MPEG files.
10002 Much nicer solution than rescaling, because quality is not decreased.
10003 MPlayer and a few others players will play these files correctly, others
10004 will display them with the wrong aspect.
10005 The aspect parameter can be given as a ratio or a floating point number.
10008 .B (no)autoaspect
10009 Same as the aspect option, but automatically computes aspect, taking
10010 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
10011 filter chain.
10014 .B "psnr\ \ \ "
10015 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
10016 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
10017 the current directory.
10018 Returned values are in dB (decibel), the higher the better.
10021 .B "debug\ \ "
10022 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
10023 file.)
10027 .sp 1
10028 The following option is only available in Xvid 1.1.x.
10031 .B bvhq=<0|1>
10032 This setting allows vector candidates for B-frames to be used for
10033 the encoding chosen using a rate distortion optimized operator,
10034 which is what is done for P-frames by the vhq option.
10035 This produces nicer-looking B-frames while incurring almost no
10036 performance penalty (default: 1).
10039 .sp 1
10040 The following option is only available in the 1.2.x version of Xvid.
10043 .B threads=<0\-n>
10044 Create n threads to run the motion estimation (default: 0).
10045 The maximum number of threads that can be used is the picture height
10046 divided by 16.
10049 .SS x264enc (\-x264encopts)
10052 .B bitrate=<value>
10053 Sets the average bitrate to be used in kbits/\:second (default: off).
10054 Since local bitrate may vary, this average may be inaccurate for
10055 very short videos (see ratetol).
10056 Constant bitrate can be achieved by combining this with vbv_maxrate,
10057 at significant reduction in quality.
10060 .B qp=<0\-51>
10061 This selects the quantizer to use for P-frames.
10062 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
10063 20\-40 is a useful range.
10064 Lower values result in better fidelity, but higher bitrates.
10065 0 is lossless.
10066 Note that quantization in H.264 works differently from MPEG-1/2/4:
10067 H.264's quantization parameter (QP) is on a logarithmic scale.
10068 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
10069 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
10072 .B crf=<1.0\-50.0>
10073 Enables constant quality mode, and selects the quality.
10074 The scale is similar to QP.
10075 Like the bitrate-based modes, this allows each frame to use a
10076 different QP based on the frame's complexity.
10079 .B pass=<1\-3>
10080 Enable 2 or 3-pass mode.
10081 It is recommended to always encode in 2 or 3-pass mode as it leads to a
10082 better bit distribution and improves overall quality.
10083 .PD 0
10084 .RSs
10085 .IPs 1
10086 first pass
10087 .IPs 2
10088 second pass (of two pass encoding)
10089 .IPs 3
10090 Nth pass (second and third passes of three pass encoding)
10093 Here is how it works, and how to use it:
10095 The first pass (pass=1) collects statistics on the video and writes them
10096 to a file.
10097 You might want to deactivate some CPU-hungry options, apart from the ones
10098 that are on by default.
10100 In two pass mode, the second pass (pass=2) reads the statistics file and
10101 bases ratecontrol decisions on it.
10103 In three pass mode, the second pass (pass=3, that is not a typo)
10104 does both: It first reads the statistics, then overwrites them.
10105 You can use all encoding options, except very CPU-hungry options.
10107 The third pass (pass=3) is the same as the second pass, except that it has
10108 the second pass' statistics to work from.
10109 You can use all encoding options, including CPU-hungry ones.
10111 The first pass may use either average bitrate or constant quantizer.
10112 ABR is recommended, since it does not require guessing a quantizer.
10113 Subsequent passes are ABR, and must specify bitrate.
10114 .REss
10117 .B turbo=<0\-2>
10118 Fast first pass mode.
10119 During the first pass of a two or more pass encode it is possible to gain
10120 speed by disabling some options with negligible or even no impact on the
10121 final pass output quality.
10122 .PD 0
10123 .RSs
10124 .IPs 0
10125 disabled (default)
10126 .IPs 1
10127 Reduce subq, frameref and disable some inter-macroblock partition analysis
10128 modes.
10129 .IPs 2
10130 Reduce subq and frameref to 1, use a diamond ME search and disable all
10131 partition analysis modes.
10134 Level 1 can increase first pass speed up to 2x with no change in the global
10135 PSNR of the final pass compared to a full quality first pass.
10137 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
10138 in the global PSNR of the final pass compared to a full quality first pass.
10139 .REss
10142 .B keyint=<value>
10143 Sets maximum interval between IDR-frames (default: 250).
10144 Larger values save bits, thus improve quality, at the cost of seeking
10145 precision.
10146 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
10147 values of keyint.
10150 .B keyint_min=<1\-keyint/2>
10151 Sets minimum interval between IDR-frames (default: 25).
10152 If scenecuts appear within this interval, they are still encoded as
10153 I-frames, but do not start a new GOP.
10154 In H.264, I-frames do not necessarily bound a closed GOP because it is
10155 allowable for a P-frame to be predicted from more frames than just the one
10156 frame before it (also see frameref).
10157 Therefore, I-frames are not necessarily seekable.
10158 IDR-frames restrict subsequent P-frames from referring to any frame
10159 prior to the IDR-frame.
10162 .B scenecut=<\-1\-100>
10163 Controls how aggressively to insert extra I-frames (default: 40).
10164 With small values of scenecut, the codec often has to force an I-frame
10165 when it would exceed keyint.
10166 Good values of scenecut may find a better location for the I-frame.
10167 Large values use more I-frames than necessary, thus wasting bits.
10168 \-1 disables scene-cut detection, so I-frames are inserted only once
10169 every other keyint frames, even if a scene-cut occurs earlier.
10170 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
10171 are just as big as I-frames, but do not reset the "keyint counter".
10174 .B (no)intra_refresh
10175 Periodic intra block refresh instead of keyframes (default: disabled).
10176 This option disables IDR-frames, and, instead, uses a moving vertical bar
10177 of intra-coded blocks. This reduces compression efficiency but benefits
10178 low-latency streaming and resilience to packet loss.
10181 .B frameref=<1\-16>
10182 Number of previous frames used as predictors in B- and P-frames (default: 3).
10183 This is effective in anime, but in live-action material the improvements
10184 usually drop off very rapidly above 6 or so reference frames.
10185 This has no effect on decoding speed, but does increase the memory needed for
10186 decoding.
10187 Some decoders can only handle a maximum of 15 reference frames.
10190 .B bframes=<0\-16>
10191 maximum number of consecutive B-frames between I- and P-frames (default: 3)
10194 .B (no)b_adapt
10195 Automatically decides when to use B-frames and how many, up to the maximum
10196 specified above (default: on).
10197 If this option is disabled, then the maximum number of B-frames is used.
10200 .B b_bias=<\-100\-100>
10201 Controls the decision performed by b_adapt.
10202 A higher b_bias produces more B-frames (default: 0).
10205 .B (no)b_pyramid
10206 Allows B-frames to be used as references for predicting other frames.
10207 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
10208 Without this option, B-frames follow the same pattern as MPEG-[124].
10209 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
10210 are predicted from I0 and P4.
10211 With this option, they are coded as I0 P4 B2 B1 B3.
10212 B2 is the same as above, but B1 is predicted from I0 and B2, and
10213 B3 is predicted from B2 and P4.
10214 This usually results in slightly improved compression, at almost no
10215 speed cost.
10216 However, this is an experimental option: it is not fully tuned and
10217 may not always help.
10218 Requires bframes >= 2.
10219 Disadvantage: increases decoding delay to 2 frames.
10222 .B (no)deblock
10223 Use deblocking filter (default: on).
10224 As it takes very little time compared to its quality gain, it is not
10225 recommended to disable it.
10228 .B deblock=<\-6\-6>,<\-6\-6>
10229 The first parameter is AlphaC0 (default: 0).
10230 This adjusts thresholds for the H.264 in-loop deblocking filter.
10231 First, this parameter adjusts the maximum amount of change that the filter is
10232 allowed to cause on any one pixel.
10233 Secondly, this parameter affects the threshold for difference across the
10234 edge being filtered.
10235 A positive value reduces blocking artifacts more, but will also smear details.
10237 The second parameter is Beta (default: 0).
10238 This affects the detail threshold.
10239 Very detailed blocks are not filtered, since the smoothing caused by the
10240 filter would be more noticeable than the original blocking.
10242 The default behavior of the filter almost always achieves optimal quality,
10243 so it is best to either leave it alone, or make only small adjustments.
10244 However, if your source material already has some blocking or noise which
10245 you would like to remove, it may be a good idea to turn it up a little bit.
10248 .B (no)cabac
10249 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
10250 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
10251 Unless you are looking for decoding speed, you should not disable it.
10254 .B qp_min=<1\-51> (ABR or two pass)
10255 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
10258 .B qp_max=<1\-51> (ABR or two pass)
10259 maximum quantizer (default: 51)
10262 .B qp_step=<1\-50> (ABR or two pass)
10263 maximum value by which the quantizer may be incremented/decremented between
10264 frames (default: 4)
10267 .B (no)mbtree
10268 Enable macroblock tree ratecontrol (default: enabled).
10269 Use a large lookahead to track temporal propagation of data and weight quality
10270 accordingly.
10271 In multi-pass mode, this writes to a separate stats file named
10272 <passlogfile>.mbtree.
10275 .B rc_lookahead=<0\-250>
10276 Adjust the mbtree lookahead distance (default: 40).
10277 Larger values will be slower and cause x264 to consume more memory, but can
10278 yield higher quality.
10281 .B ratetol=<0.1\-100.0> (ABR or two pass)
10282 allowed variance in average bitrate (no particular units) (default: 1.0)
10285 .B vbv_maxrate=<value> (ABR or two pass)
10286 maximum local bitrate, in kbits/\:second (default: disabled)
10289 .B vbv_bufsize=<value> (ABR or two pass)
10290 averaging period for vbv_maxrate, in kbits
10291 (default: none, must be specified if vbv_maxrate is enabled)
10294 .B vbv_init=<0.0\-1.0> (ABR or two pass)
10295 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
10298 .B ip_factor=<value>
10299 quantizer factor between I- and P-frames (default: 1.4)
10302 .B pb_factor=<value>
10303 quantizer factor between P- and B-frames (default: 1.3)
10306 .B qcomp=<0\-1> (ABR or two pass)
10307 quantizer compression (default: 0.6).
10308 A lower value makes the bitrate more constant,
10309 while a higher value makes the quantization parameter more constant.
10312 .B cplx_blur=<0\-999> (two pass only)
10313 Temporal blur of the estimated frame complexity, before curve compression
10314 (default: 20).
10315 Lower values allow the quantizer value to jump around more,
10316 higher values force it to vary more smoothly.
10317 cplx_blur ensures that each I-frame has quality comparable to the following
10318 P-frames, and ensures that alternating high and low complexity frames
10319 (e.g.\& low fps animation) do not waste bits on fluctuating quantizer.
10322 .B qblur=<0\-99> (two pass only)
10323 Temporal blur of the quantization parameter, after curve compression
10324 (default: 0.5).
10325 Lower values allow the quantizer value to jump around more,
10326 higher values force it to vary more smoothly.
10329 .B zones=<zone0>[/<zone1>[/...]]
10330 User specified quality for specific parts (ending, credits, ...).
10331 Each zone is <start-frame>,<end-frame>,<option> where option may be
10332 .PD 0
10333 .RSs
10334 .IPs "q=<0\-51>"
10335 quantizer
10336 .IPs "b=<0.01\-100.0>"
10337 bitrate multiplier
10339 .PD 1
10341 .I NOTE:
10342 The quantizer option is not strictly enforced.
10343 It affects only the planning stage of ratecontrol, and is still subject
10344 to overflow compensation and qp_min/qp_max.
10348 .B direct_pred=<name>
10349 Determines the type of motion prediction used for direct macroblocks
10350 in B-frames.
10351 .PD 0
10352 .RSs
10353 .IPs none
10354 Direct macroblocks are not used.
10355 .IPs spatial
10356 Motion vectors are extrapolated from neighboring blocks.
10357 (default)
10358 .IPs temporal
10359 Motion vectors are extrapolated from the following P-frame.
10360 .IPs auto
10361 The codec selects between spatial and temporal for each frame.
10363 .PD 1
10365 Spatial and temporal are approximately the same speed and PSNR,
10366 the choice between them depends on the video content.
10367 Auto is slightly better, but slower.
10368 Auto is most effective when combined with multipass.
10369 direct_pred=none is both slower and lower quality.
10373 .B weightp
10374 Weighted P-frame prediction mode (default: 2).
10375 .PD 0
10376 .RSs
10377 .IPs 0
10378 disabled (fastest)
10379 .IPs 1
10380 blind mode (slightly better quality)
10381 .IPs 2
10382 smart mode (best)
10384 .PD 1
10387 .B (no)weight_b
10388 Use weighted prediction in B-frames.
10389 Without this option, bidirectionally predicted macroblocks give
10390 equal weight to each reference frame.
10391 With this option, the weights are determined by the temporal position
10392 of the B-frame relative to the references.
10393 Requires bframes > 1.
10396 .B partitions=<list>
10397 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
10398 .PD 0
10399 .RSs
10400 .IPs p8x8
10401 Enable types p16x8, p8x16, p8x8.
10402 .IPs p4x4
10403 Enable types p8x4, p4x8, p4x4.
10404 p4x4 is recommended only with subq >= 5, and only at low resolutions.
10405 .IPs b8x8
10406 Enable types b16x8, b8x16, b8x8.
10407 .IPs i8x8
10408 Enable type i8x8.
10409 i8x8 has no effect unless 8x8dct is enabled.
10410 .IPs i4x4
10411 Enable type i4x4.
10412 .IPs all
10413 Enable all of the above types.
10414 .IPs none
10415 Disable all of the above types.
10417 .PD 1
10419 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
10420 are always enabled.
10422 The idea is to find the type and size that best describe a certain area
10423 of the picture.
10424 For example, a global pan is better represented by 16x16 blocks, while
10425 small moving objects are better represented by smaller blocks.
10429 .B (no)8x8dct
10430 Adaptive spatial transform size: allows macroblocks to choose between
10431 4x4 and 8x8 DCT.
10432 Also allows the i8x8 macroblock type.
10433 Without this option, only 4x4 DCT is used.
10436 .B me=<name>
10437 Select fullpixel motion estimation algorithm.
10438 .PD 0
10439 .RSs
10440 .IPs dia
10441 diamond search, radius 1 (fast)
10442 .IPs hex
10443 hexagon search, radius 2 (default)
10444 .IPs umh
10445 uneven multi-hexagon search (slow)
10446 .IPs esa
10447 exhaustive search (very slow, and no better than umh)
10449 .PD 1
10452 .B me_range=<4\-64>
10453 radius of exhaustive or multi-hexagon motion search (default: 16)
10456 .B subq=<0\-9>
10457 Adjust subpel refinement quality.
10458 This parameter controls quality versus speed tradeoffs involved in the motion
10459 estimation decision process.
10460 subq=5 can compress up to 10% better than subq=1.
10461 .PD 0
10462 .RSs
10463 .IPs 0
10464 Runs fullpixel precision motion estimation on all candidate
10465 macroblock types.
10466 Then selects the best type with SAD metric (faster than subq=1, not recommended
10467 unless you're looking for ultra-fast encoding).
10468 .IPs 1
10469 Does as 0, then refines the motion of that type to fast quarterpixel precision
10470 (fast).
10471 .IPs 2
10472 Runs halfpixel precision motion estimation on all candidate macroblock types.
10473 Then selects the best type with SATD metric.
10474 Then refines the motion of that type to fast quarterpixel precision.
10475 .IPs 3
10476 As 2, but uses a slower quarterpixel refinement.
10477 .IPs 4
10478 Runs fast quarterpixel precision motion estimation on all candidate
10479 macroblock types.
10480 Then selects the best type with SATD metric.
10481 Then finishes the quarterpixel refinement for that type.
10482 .IPs 5
10483 Runs best quality quarterpixel precision motion estimation on all
10484 candidate macroblock types, before selecting the best type.
10485 Also refines the two motion vectors used in bidirectional macroblocks with
10486 SATD metric, rather than reusing vectors from the forward and backward
10487 searches.
10488 .IPs 6
10489 Enables rate-distortion optimization of macroblock types in
10490 I- and P-frames.
10491 .IPs 7
10492 Enables rate-distortion optimization of macroblock types in all frames (default).
10493 .IPs 8
10494 Enables rate-distortion optimization of motion vectors and intra prediction modes in I- and P-frames.
10495 .IPs 9
10496 Enables rate-distortion optimization of motion vectors and intra prediction modes in all frames (best).
10498 .PD 1
10500 In the above, "all candidates" does not exactly mean all enabled types:
10501 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
10505 .B (no)chroma_me
10506 Takes into account chroma information during subpixel motion search
10507 (default: enabled).
10508 Requires subq>=5.
10511 .B (no)mixed_refs
10512 Allows each 8x8 or 16x8 motion partition to independently select a
10513 reference frame.
10514 Without this option, a whole macroblock must use the same reference.
10515 Requires frameref>1.
10518 .B trellis=<0\-2> (cabac only)
10519 rate-distortion optimal quantization
10520 .PD 0
10521 .RSs
10522 .IPs 0
10523 disabled
10524 .IPs 1
10525 enabled only for the final encode (default)
10526 .IPs 2
10527 enabled during all mode decisions (slow, requires subq>=6)
10529 .PD 1
10532 .B psy-rd=rd[,trell]
10533 Sets the strength of the psychovisual optimization.
10534 .PD 0
10535 .RSs
10536 .IPs rd=<0.0\-10.0>
10537 psy optimization strength (requires subq>=6) (default: 1.0)
10538 .IPs trell=<0.0\-10.0>
10539 trellis (requires trellis, experimental) (default: 0.0)
10541 .PD 1
10544 .B (no)psy
10545 Enable psychovisual optimizations that hurt PSNR and SSIM but ought to look
10546 better (default: enabled).
10549 .B deadzone_inter=<0\-32>
10550 Set the size of the inter luma quantization deadzone for non-trellis
10551 quantization (default: 21).
10552 Lower values help to preserve fine details and film grain (typically useful
10553 for high bitrate/quality encode), while higher values help filter out
10554 these details to save bits that can be spent again on other macroblocks
10555 and frames (typically useful for bitrate-starved encodes).
10556 It is recommended that you start by tweaking deadzone_intra before changing
10557 this parameter.
10560 .B deadzone_intra=<0\-32>
10561 Set the size of the intra luma quantization deadzone for non-trellis
10562 quantization (default: 11).
10563 This option has the same effect as deadzone_inter except that it affects
10564 intra frames.
10565 It is recommended that you start by tweaking this parameter before changing
10566 deadzone_inter.
10569 .B (no)fast_pskip
10570 Performs early skip detection in P-frames (default: enabled).
10571 This usually improves speed at no cost, but it can sometimes produce
10572 artifacts in areas with no details, like sky.
10575 .B (no)dct_decimate
10576 Eliminate dct blocks in P-frames containing only a small single coefficient
10577 (default: enabled).
10578 This will remove some details, so it will save bits that can be spent
10579 again on other frames, hopefully raising overall subjective quality.
10580 If you are compressing non-anime content with a high target bitrate, you
10581 may want to disable this to preserve as much detail as possible.
10584 .B nr=<0\-100000>
10585 Noise reduction, 0 means disabled.
10586 100\-1000 is a useful range for typical content, but you may want to turn it
10587 up a bit more for very noisy content (default: 0).
10588 Given its small impact on speed, you might want to prefer to use this over
10589 filtering noise away with video filters like denoise3d or hqdn3d.
10592 .B chroma_qp_offset=<\-12\-12>
10593 Use a different quantizer for chroma as compared to luma.
10594 Useful values are in the range <\-2\-2> (default: 0).
10597 .B aq_mode=<0\-2>
10598 Defines how adaptive quantization (AQ) distributes bits:
10599 .PD 0
10600 .RSs
10601 .IPs 0
10602 disabled
10603 .IPs 1
10604 Avoid moving bits between frames.
10605 .IPs 2
10606 Move bits between frames (by default).
10608 .PD 1
10611 .B aq_strength=<positive float value>
10612 Controls how much adaptive quantization (AQ) reduces blocking and blurring
10613 in flat and textured areas (default: 1.0).
10614 A value of 0.5 will lead to weak AQ and less details, when a value of 1.5
10615 will lead to strong AQ and more details.
10618 .B cqm=<flat|jvt|<filename>>
10619 Either uses a predefined custom quantization matrix or loads a JM format
10620 matrix file.
10621 .PD 0
10622 .RSs
10623 .IPs "flat\ "
10624 Use the predefined flat 16 matrix (default).
10625 .IPs "jvt\ \ "
10626 Use the predefined JVT matrix.
10627 .IPs <filename>
10628 Use the provided JM format matrix file.
10629 .PD 1
10632 .I NOTE:
10633 Windows CMD.EXE users may experience problems with parsing the command line
10634 if they attempt to use all the CQM lists.
10635 This is due to a command line length limitation.
10636 In this case it is recommended the lists be put into a JM format CQM
10637 file and loaded as specified above.
10641 .B cqm4iy=<list> (also see cqm)
10642 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10643 values in the 1\-255 range.
10646 .B cqm4ic=<list> (also see cqm)
10647 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10648 separated values in the 1\-255 range.
10651 .B cqm4py=<list> (also see cqm)
10652 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10653 values in the 1\-255 range.
10656 .B cqm4pc=<list> (also see cqm)
10657 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10658 separated values in the 1\-255 range.
10661 .B cqm8iy=<list> (also see cqm)
10662 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10663 values in the 1\-255 range.
10666 .B cqm8py=<list> (also see cqm)
10667 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10668 values in the 1\-255 range.
10671 .B level_idc=<10\-51>
10672 Set the bitstream's level as defined by annex A of the H.264 standard
10673 (default: 51 \- level 5.1).
10674 This is used for telling the decoder what capabilities it needs to support.
10675 Use this parameter only if you know what it means,
10676 and you have a need to set it.
10679 .B threads=<0\-16>
10680 Spawn threads to encode in parallel on multiple CPUs (default: 0).
10681 This has a slight penalty to compression quality.
10682 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10683 appropriate number of threads.
10686 .B (no)sliced_threads
10687 Use slice-based threading (default: disabled).
10688 Unlike normal threading, this option adds no encoding latency, but is slightly
10689 slower and less effective at compression.
10692 .B slice_max_size=<0 or positive integer>
10693 Maximum slice size in bytes (default:0).
10694 A value of zero disables the maximum.
10697 .B slice_max_mbs=<0 or positive integer>
10698 Maximum slice size in number of macroblocks (default:0).
10699 A value of zero disables the maximum.
10702 .B slices=<0 or positive integer>
10703 Maximum number of slices per frame (default:0).
10704 A value of zero disables the maximum.
10707 .B sync_lookahead=<0\-250>
10708 Adjusts the size of the threaded lookahead buffer (default: 0).
10709 0 or 'auto' tells x264 to automatically determine buffer size.
10712 .B (no)deterministic
10713 Use only deterministic optimizations with multithreaded encoding (default:
10714 enabled).
10717 .B (no)global_header
10718 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10719 (default: disabled).
10720 Some players, such as the Sony PSP, require the use of this option.
10721 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10724 .B (no)interlaced
10725 Treat the video content as interlaced.
10728 .B (no)constrained_intra
10729 Enable constrained intra prediction (default: disabled).
10730 This significantly reduces compression, but is required for the base layer of
10731 SVC encodes.
10734 .B (no)aud
10735 Write access unit delimeters to the stream (default: disabled).
10736 Enable this only if your target container format requires access unit
10737 delimiters.
10740 .B overscan=<undef|show|crop>
10741 Include VUI overscan information in the stream (default: disabled).
10742 See doc/vui.txt in the x264 source code for more information.
10745 .B videoformat=<component|pal|ntsc|secam|mac|undef>
10746 Include VUI video format information in the stream (default: disabled).
10747 This is a purely informative setting for describing the original source.
10748 See doc/vui.txt in the x264 source code for more information.
10751 .B (no)fullrange
10752 Include VUI full range information in the stream (default: disabled).
10753 Use this option if your source video is not range limited.
10754 See doc/vui.txt in the x264 source code for more information.
10757 .B colorprim=<bt709|bt470m|bt470bg|smpte170m|smpte240m|film|undef>
10758 Include color primaries information (default: disabled).
10759 This can be used for color correction.
10760 See doc/vui.txt in the x264 source code for more information.
10763 .B transfer=<bt709|bt470m|bt470bg|linear|log100|log316|smpte170m|smpte240m>
10764 Include VUI transfer characteristics information in the stream
10765 (default: disabled).
10766 This can be used for color correction.
10767 See doc/vui.txt in the x264 source code for more information.
10770 .B colormatrix=<bt709|fcc|bt470bg|smpte170m|smpte240m|GBR|YCgCo>
10771 Include VUI matrix coefficients in the stream (default: disabled).
10772 This can be used for color correction.
10773 See doc/vui.txt in the x264 source code for more information.
10776 .B chromaloc=<0-5>
10777 Include VUI chroma sample location information in the stream (default:
10778 disabled).
10779 Use this option to ensure alignment of the chroma and luma planes after
10780 color space conversions.
10781 See doc/vui.txt in the x264 source code for more information.
10784 .B log=<\-1\-3>
10785 Adjust the amount of logging info printed to the screen.
10786 .PD 0
10787 .RSs
10788 .IPs "\-1"
10789 none
10790 .IPs " 0"
10791 Print errors only.
10792 .IPs " 1"
10793 warnings
10794 .IPs " 2"
10795 PSNR and other analysis statistics when the encode finishes (default)
10796 .IPs " 3"
10797 PSNR, QP, frametype, size, and other statistics for every frame
10799 .PD 1
10802 .B (no)psnr
10803 Print signal-to-noise ratio statistics.
10805 .I NOTE:
10806 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
10807 mathematically sound (they are simply the average of per-frame PSNRs).
10808 They are kept only for comparison to the JM reference codec.
10809 For all other purposes, please use either the 'Global' PSNR, or the per-frame
10810 PSNRs printed by log=3.
10813 .B (no)ssim
10814 Print the Structural Similarity Metric results.
10815 This is an alternative to PSNR, and may be better correlated with the
10816 perceived quality of the compressed video.
10819 .B (no)visualize
10820 Enable x264 visualizations during encoding.
10821 If the x264 on your system supports it, a new window will be opened during
10822 the encoding process, in which x264 will attempt to present an overview of
10823 how each frame gets encoded.
10824 Each block type on the visualized movie will be colored as follows:
10827 .B dump_yuv=<file name>
10828 Dump YUV frames to the specified file.
10829 For debugging use.
10830 .PD 0
10831 .RSs
10832 .IPs red/pink
10833 intra block
10834 .IPs "blue\ "
10835 inter block
10836 .IPs green
10837 skip block
10838 .IPs yellow
10839 B-block
10841 .PD 1
10843 This feature can be considered experimental and subject to change.
10844 In particular, it depends on x264 being compiled with visualizations enabled.
10845 Note that as of writing this, x264 pauses after encoding and visualizing
10846 each frame, waiting for the user to press a key, at which point the next
10847 frame will be encoded.
10851 .SS xvfw (\-xvfwopts)
10853 Encoding with Video for Windows codecs is mostly obsolete unless you wish
10854 to encode to some obscure fringe codec.
10857 .B codec=<name>
10858 The name of the binary codec file with which to encode.
10861 .B compdata=<file>
10862 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
10865 .SS MPEG muxer (\-mpegopts)
10867 The MPEG muxer can generate 5 types of streams, each of which has reasonable
10868 default parameters that the user can override.
10869 Generally, when generating MPEG files, it is advisable to disable
10870 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
10871 harddup and softskip video filters).
10873 .I EXAMPLE:
10874 .PD 0
10875 .RSs
10876 .IPs format=mpeg2:tsaf:vbitrate=8000
10878 .PD 1
10881 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
10882 stream format (default: mpeg2).
10883 pes1 and pes2 are very broken formats (no pack header and no padding),
10884 but VDR uses them; do not choose them unless you know exactly what you
10885 are doing.
10888 .B size=<up to 65535>
10889 Pack size in bytes, do not change unless you know exactly what
10890 you are doing (default: 2048).
10893 .B muxrate=<int>
10894 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
10895 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
10898 .B "tsaf\ \ \ "
10899 Sets timestamps on all frames, if possible; recommended when format=dvd.
10900 If dvdauthor complains with a message like "..audio sector out of range...",
10901 you probably did not enable this option.
10904 .B interleaving2
10905 Uses a better algorithm to interleave audio and video packets, based on the
10906 principle that the muxer will always try to fill the stream with the largest
10907 percentage of free space.
10910 .B vdelay=<1\-32760>
10911 Initial video delay time, in milliseconds (default: 0),
10912 use it if you want to delay video with respect to audio.
10913 It doesn't work with :drop.
10916 .B adelay=<1\-32760>
10917 Initial audio delay time, in milliseconds (default: 0),
10918 use it if you want to delay audio with respect to video.
10921 .B "drop\ \ \ "
10922 When used with vdelay the muxer drops the part of audio that was
10923 anticipated.
10926 .B vwidth, vheight=<1\-4095>
10927 Set the video width and height when video is MPEG-1/2.
10930 .B vpswidth, vpsheight=<1\-4095>
10931 Set pan and scan video width and height when video is MPEG-2.
10934 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
10935 Sets the display aspect ratio for MPEG-2 video.
10936 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
10939 .B vbitrate=<int>
10940 Sets the video bitrate in kbit/s for MPEG-1/2 video.
10943 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
10944 Sets the framerate for MPEG-1/2 video.
10945 This option will be ignored if used with the telecine option.
10948 .B telecine
10949 Enables 3:2 pulldown soft telecine mode: The muxer will make the
10950 video stream look like it was encoded at 30000/1001 fps.
10951 It only works with MPEG-2 video when the output framerate is
10952 24000/1001 fps, convert it with \-ofps if necessary.
10953 Any other framerate is incompatible with this option.
10956 .B film2pal
10957 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
10958 will make the video stream look like it was encoded at 25 fps.
10959 It only works with MPEG-2 video when the output framerate is
10960 24000/1001 fps, convert it with \-ofps if necessary.
10961 Any other framerate is incompatible with this option.
10964 .B tele_src and tele_dest
10965 Enables arbitrary telecining using Donand Graft's DGPulldown code.
10966 You need to specify the original and the desired framerate; the
10967 muxer will make the video stream look like it was encoded at
10968 the desired framerate.
10969 It only works with MPEG-2 video when the input framerate is smaller
10970 than the output framerate and the framerate increase is <= 1.5.
10971 .sp 1
10973 .I EXAMPLE:
10975 .PD 0
10976 .RSs
10977 .IPs tele_src=25,tele_dest=30000/1001
10978 PAL to NTSC telecining
10980 .PD 1
10983 .B vbuf_size=<40\-1194>
10984 Sets the size of the video decoder's buffer, expressed in kilobytes.
10985 Specify it only if the bitrate of the video stream is too high for
10986 the chosen format and if you know perfectly well what you are doing.
10987 A too high value may lead to an unplayable movie, depending on the player's
10988 capabilities.
10989 When muxing HDTV video a value of 400 should suffice.
10992 .B abuf_size=<4\-64>
10993 Sets the size of the audio decoder's buffer, expressed in kilobytes.
10994 The same principle as for vbuf_size applies.
10997 .SS FFmpeg libavformat demuxers (\-lavfdopts)
11000 .B analyzeduration=<value>
11001 Maximum length in seconds to analyze the stream properties.
11004 .B format=<value>
11005 Force a specific libavformat demuxer.
11008 .B o=<key>=<value>[,<key>=<value>[,...]]
11009 Pass AVOptions to libavformat demuxer.
11010 Note, a patch to make the o= unneeded and pass all unknown options through
11011 the AVOption system is welcome.
11012 A full list of AVOptions can be found in the FFmpeg manual.
11013 Note that some options may conflict with MPlayer/MEncoder options.
11014 .sp 1
11016 .I EXAMPLE:
11018 .RSs
11019 .PD 0
11020 .IPs o=ignidx
11021 .PD 1
11025 .B probesize=<value>
11026 Maximum amount of data to probe during the detection phase.
11027 In the case of MPEG-TS this value identifies the maximum number
11028 of TS packets to scan.
11031 .B cryptokey=<hexstring>
11032 Encryption key the demuxer should use.
11033 This is the raw binary data of the key converted to a hexadecimal string.
11036 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
11039 .B delay=<value>
11040 Currently only meaningful for MPEG[12]: Maximum allowed distance,
11041 in seconds, between the reference timer of the output stream (SCR)
11042 and the decoding timestamp (DTS) for any stream present
11043 (demux to decode delay).
11044 Default is 0.7 (as mandated by the standards defined by MPEG).
11045 Higher values require larger buffers and must not be used.
11048 .B format=<container_format>
11049 Override which container format to mux into
11050 (default: autodetect from output file extension).
11051 .PD 0
11052 .RSs
11053 .IPs "mpg\ \ "
11054 MPEG-1 systems and MPEG-2 PS
11055 .IPs "asf\ \ "
11056 Advanced Streaming Format
11057 .IPs "avi\ \ "
11058 Audio Video Interleave file
11059 .IPs "wav\ \ "
11060 Waveform Audio
11061 .IPs "swf\ \ "
11062 Macromedia Flash
11063 .IPs "flv\ \ "
11064 Macromedia Flash video files
11065 .IPs "rm\ \ \ "
11066 RealAudio and RealVideo
11067 .IPs "au\ \ \ "
11068 SUN AU format
11069 .IPs "nut\ \ "
11070 NUT open container format (experimental)
11071 .IPs "mov\ \ "
11072 QuickTime
11073 .IPs "mp4\ \ "
11074 MPEG-4 format
11075 .IPs "ipod\ "
11076 MPEG-4 format with extra header flags required by Apple iPod firmware
11077 .IPs "dv\ \ \ "
11078 Sony Digital Video container
11079 .IPs "matroska\ \ \ "
11080 Matroska
11082 .PD 1
11084 .B muxrate=<rate>
11085 Nominal bitrate of the multiplex, in bits per second;
11086 currently it is meaningful only for MPEG[12].
11087 Sometimes raising it is necessary in order to avoid "buffer underflows".
11090 .B o=<key>=<value>[,<key>=<value>[,...]]
11091 Pass AVOptions to libavformat muxer.
11092 Note, a patch to make the o= unneeded and pass all unknown options through
11093 the AVOption system is welcome.
11094 A full list of AVOptions can be found in the FFmpeg manual.
11095 Note that some options may conflict with MEncoder options.
11096 .sp 1
11098 .I EXAMPLE:
11100 .RSs
11101 .PD 0
11102 .IPs o=packetsize=100
11103 .PD 1
11107 .B packetsize=<size>
11108 Size, expressed in bytes, of the unitary packet for the chosen format.
11109 When muxing to MPEG[12] implementations the default values are:
11110 2324 for [S]VCD, 2048 for all others formats.
11113 .B preload=<distance>
11114 Currently only meaningful for MPEG[12]: Initial distance,
11115 in seconds, between the reference timer of the output stream (SCR)
11116 and the decoding timestamp (DTS) for any stream present
11117 (demux to decode delay).
11121 .\" --------------------------------------------------------------------------
11122 .\" environment variables
11123 .\" --------------------------------------------------------------------------
11125 .SH ENVIRONMENT VARIABLES
11127 There are a number of environment variables that can be used to
11128 control the behavior of MPlayer and MEncoder.
11131 .B MPLAYER_CHARSET (also see \-msgcharset)
11132 Convert console messages to the specified charset (default: autodetect).
11133 A value of "noconv" means no conversion.
11136 .B MPLAYER_HOME
11137 Directory where MPlayer looks for user settings.
11140 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
11141 Set the initial verbosity level across all message modules (default: 0).
11142 The resulting verbosity corresponds to that of \-msglevel 5 plus the
11143 value of MPLAYER_VERBOSE.
11145 .SS libaf:
11148 .B LADSPA_PATH
11149 If LADSPA_PATH is set, it searches for the specified file.
11150 If it is not set, you must supply a fully specified pathname.
11151 FIXME: This is also mentioned in the ladspa section.
11153 .SS libdvdcss:
11156 .B DVDCSS_CACHE
11157 Specify a directory in which to store title key values.
11158 This will speed up descrambling of DVDs which are in the cache.
11159 The DVDCSS_CACHE directory is created if it does not exist,
11160 and a subdirectory is created named after the DVD's title
11161 or manufacturing date.
11162 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
11163 the default value which is "${HOME}/.dvdcss/" under Unix and
11164 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
11165 The special value "off" disables caching.
11168 .B DVDCSS_METHOD
11169 Sets the authentication and decryption method that
11170 libdvdcss will use to read scrambled discs.
11171 Can be one of title, key or disc.
11172 .PD 0
11173 .RSs
11174 .IPs "key\ \ "
11175 is the default method.
11176 libdvdcss will use a set of calculated player keys to try and get the disc key.
11177 This can fail if the drive does not recognize any of the player keys.
11178 .IPs "disc\ "
11179 is a fallback method when key has failed.
11180 Instead of using player keys, libdvdcss will crack the disc key using
11181 a brute force algorithm.
11182 This process is CPU intensive and requires 64 MB of memory to store
11183 temporary data.
11184 .IPs title
11185 is the fallback when all other methods have failed.
11186 It does not rely on a key exchange with the DVD drive, but rather uses
11187 a crypto attack to guess the title key.
11188 On rare cases this may fail because there is not enough encrypted data
11189 on the disc to perform a statistical attack, but in the other hand it
11190 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
11191 the wrong region on an RPC2 drive.
11193 .PD 1
11196 .B DVDCSS_RAW_DEVICE
11197 Specify the raw device to use.
11198 Exact usage will depend on your operating system, the Linux
11199 utility to set up raw devices is raw(8) for instance.
11200 Please note that on most operating systems, using a raw device
11201 requires highly aligned buffers: Linux requires a 2048 bytes
11202 alignment (which is the size of a DVD sector).
11205 .B DVDCSS_VERBOSE
11206 Sets the libdvdcss verbosity level.
11207 .PD 0
11208 .RSs
11209 .IPs 0
11210 Outputs no messages at all.
11211 .IPs 1
11212 Outputs error messages to stderr.
11213 .IPs 2
11214 Outputs error messages and debug messages to stderr.
11216 .PD 1
11219 .B DVDREAD_NOKEYS
11220 Skip retrieving all keys on startup.
11221 Currently disabled.
11224 .B HOME
11225 FIXME: Document this.
11227 .SS libao2:
11230 .B AO_SUN_DISABLE_SAMPLE_TIMING
11231 FIXME: Document this.
11234 .B AUDIODEV
11235 FIXME: Document this.
11238 .B AUDIOSERVER
11239 Specifies the Network Audio System server to which the
11240 nas audio output driver should connect and the transport
11241 that should be used.
11242 If unset DISPLAY is used instead.
11243 The transport can be one of tcp and unix.
11244 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
11245 or [unix]:<instancenumber>.
11246 The NAS base port is 8000 and <instancenumber> is added to that.
11247 .sp 1
11249 .I EXAMPLES:
11251 .PD 0
11252 .RSs
11253 .IPs AUDIOSERVER=somehost:0
11254 Connect to NAS server on somehost using default port and transport.
11255 .IPs AUDIOSERVER=tcp/somehost:8000
11256 Connect to NAS server on somehost listening on TCP port 8000.
11257 .IPs AUDIOSERVER=(unix)?:0
11258 Connect to NAS server instance 0 on localhost using unix domain sockets.
11260 .PD 1
11263 .B DISPLAY
11264 FIXME: Document this.
11266 .SS vidix:
11269 .B VIDIX_CRT
11270 FIXME: Document this.
11273 .B VIDIXIVTVALPHA
11274 Set this to 'disable' in order to stop the VIDIX driver from controlling
11275 alphablending settings.
11276 You can then manipulate it yourself with 'ivtvfbctl'.
11278 .SS osdep:
11281 .B TERM
11282 FIXME: Document this.
11284 .SS libvo:
11287 .B DISPLAY
11288 FIXME: Document this.
11291 .B FRAMEBUFFER
11292 FIXME: Document this.
11295 .B HOME
11296 FIXME: Document this.
11298 .SS libmpdemux:
11301 .B HOME
11302 FIXME: Document this.
11305 .B HOMEPATH
11306 FIXME: Document this.
11309 .B http_proxy
11310 FIXME: Document this.
11313 .B LOGNAME
11314 FIXME: Document this.
11317 .B USERPROFILE
11318 FIXME: Document this.
11320 .SS libmpcodecs:
11323 .B XANIM_MOD_DIR
11324 FIXME: Document this.
11326 .SS GUI:
11329 .B CHARSET
11330 FIXME: Document this.
11333 .B DISPLAY
11334 FIXME: Document this.
11337 .B HOME
11338 FIXME: Document this.
11340 .SS libavformat:
11343 .B AUDIO_FLIP_LEFT
11344 FIXME: Document this.
11347 .B BKTR_DEV
11348 FIXME: Document this.
11351 .B BKTR_FORMAT
11352 FIXME: Document this.
11355 .B BKTR_FREQUENCY
11356 FIXME: Document this.
11359 .B http_proxy
11360 FIXME: Document this.
11363 .B no_proxy
11364 FIXME: Document this.
11368 .\" --------------------------------------------------------------------------
11369 .\" Files
11370 .\" --------------------------------------------------------------------------
11372 .SH FILES
11375 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
11376 MPlayer system-wide settings
11379 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
11380 MEncoder system-wide settings
11383 ~/.mplayer/\:config
11384 MPlayer user settings
11387 ~/.mplayer/\:mencoder.conf
11388 MEncoder user settings
11391 ~/.mplayer/\:input.conf
11392 input bindings (see '\-input keylist' for the full list)
11395 ~/.mplayer/\:gui.conf
11396 GUI configuration file
11399 ~/.mplayer/\:gui.pl
11400 GUI playlist
11403 ~/.mplayer/\:font/
11404 font directory (There must be a font.desc file and files with .RAW extension.)
11407 ~/.mplayer/\:DVDkeys/
11408 cached CSS keys
11411 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
11412 in this order:
11414 /path/\:to/\:movie.sub
11416 ~/.mplayer/\:sub/\:movie.sub
11418 .PD 1
11421 .\" --------------------------------------------------------------------------
11422 .\" Examples
11423 .\" --------------------------------------------------------------------------
11425 .SH EXAMPLES OF MPLAYER USAGE
11428 .B Quickstart DVD playing:
11430 mplayer dvd://1
11434 .B Play in Japanese with English subtitles:
11436 mplayer dvd://1 \-alang ja \-slang en
11440 .B Play only chapters 5, 6, 7:
11442 mplayer dvd://1 \-chapter 5\-7
11446 .B Play only titles 5, 6, 7:
11448 mplayer dvd://5\-7
11452 .B Play a multiangle DVD:
11454 mplayer dvd://1 \-dvdangle 2
11458 .B Play from a different DVD device:
11460 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
11464 .B Play DVD video from a directory with VOB files:
11466 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
11470 .B Copy a DVD title to hard disk, saving to file "title1.vob":
11472 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
11476 .B Play a DVD with dvdnav from path /dev/sr1:
11478 mplayer dvdnav:////dev/sr1
11482 .B Stream from HTTP:
11484 mplayer http://mplayer.hq/example.avi
11488 .B Stream using RTSP:
11490 mplayer rtsp://server.example.com/streamName
11494 .B Convert subtitles to MPsub format:
11496 mplayer dummy.avi \-sub source.sub \-dumpmpsub
11500 .B Convert subtitles to MPsub format without watching the movie:
11502 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
11506 .B input from standard V4L:
11508 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
11512 .B Playback on Zoran cards (old style, deprecated):
11514 mplayer \-vo zr \-vf scale=352:288 file.avi
11518 .B Playback on Zoran cards (new style):
11520 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
11524 .B Play DTS-CD with passthrough:
11526 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
11529 You can also use \-afm hwac3 instead of \-ac hwdts.
11530 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
11531 If your external receiver supports decoding raw DTS streams,
11532 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
11535 .B Play a 6-channel AAC file with only two speakers:
11537 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
11540 You might want to play a bit with the pan values (e.g multiply with a value) to
11541 increase volume or avoid clipping.
11544 .B checkerboard invert with geq filter:
11546 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'
11550 .SH EXAMPLES OF MENCODER USAGE
11553 .B Encode DVD title #2, only selected chapters:
11555 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11559 .B Encode DVD title #2, resizing to 640x480:
11561 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11565 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
11567 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11571 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
11573 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
11577 .B The same, but with MJPEG compression:
11579 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
11583 .B Encode all *.jpg files in the current directory:
11585 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
11589 .B Encode from a tuner (specify a format with \-vf format):
11591 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
11595 .B Encode from a pipe:
11597 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
11601 .\" --------------------------------------------------------------------------
11602 .\" Bugs, authors, standard disclaimer
11603 .\" --------------------------------------------------------------------------
11605 .SH BUGS
11606 Don't panic.
11607 If you find one, report it to us, but please make sure you have read all
11608 of the documentation first.
11609 Also look out for smileys. :)
11610 Many bugs are the result of incorrect setup or parameter usage.
11611 The bug reporting section of the documentation
11612 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
11613 explains how to create useful bug reports.
11617 .SH AUTHORS
11618 MPlayer was initially written by Arpad Gereoffy.
11619 See the AUTHORS file for a list of some of the many other contributors.
11621 MPlayer is (C) 2000\-2009 The MPlayer Team
11623 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
11624 It is maintained by Diego Biurrun.
11625 Please send mails about it to the MPlayer-DOCS mailing list.
11626 Translation specific mails belong on the MPlayer-translations mailing list.
11627 .\" end of file