core: add support for precise non-keyframe-limited seeks
[mplayer/glamo.git] / DOCS / man / en / mplayer.1
blob95ef58de813ca4588a39e44bb8dbedc92386fd1e
1 .\" $Revision$
2 .\" MPlayer (C) 2000-2010 MPlayer Team
3 .\" This man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
5 .\" --------------------------------------------------------------------------
6 .\" Macro definitions
7 .\" --------------------------------------------------------------------------
9 .\" define indentation for suboptions
10 .nr SS 5
11 .\" add new suboption
12 .de IPs
13 .IP "\\$1" \n(SS
15 .\" begin of first level suboptions, end with .RE
16 .de RSs
17 .RS 10
19 .\" begin of 2nd level suboptions
20 .de RSss
21 .PD 0
22 .RS \n(SS+3
24 .\" end of 2nd level suboptions
25 .de REss
26 .RE
27 .PD 1
30 .\" --------------------------------------------------------------------------
31 .\" Title
32 .\" --------------------------------------------------------------------------
34 .TH MPlayer 1 "2009-03-25" "The MPlayer Project" "The Movie Player"
36 .SH NAME
37 mplayer  \- movie player
38 .br
39 mencoder \- movie encoder
41 .\" --------------------------------------------------------------------------
42 .\" Synopsis
43 .\" --------------------------------------------------------------------------
45 .SH SYNOPSIS
46 .na
47 .nh
48 .B mplayer
49 [options] [file|URL|playlist|\-]
51 .br
52 .B mplayer
53 [options] file1
54 [specific options] [file2] [specific options]
56 .br
57 .B mplayer
58 [options]
59 {group of files and options}
60 [group-specific options]
62 .br
63 .B mplayer
64 [br]://[title][/device]
65 [options]
67 .br
68 .B mplayer
69 [dvd|dvdnav]://[title|[start_title]\-end_title][/device]
70 [options]
72 .br
73 .B mplayer
74 vcd://track[/device]
76 .br
77 .B mplayer
78 tv://[channel][/input_id]
79 [options]
81 .br
82 .B mplayer
83 radio://[channel|frequency][/capture]
84 [options]
86 .br
87 .B mplayer
88 pvr://
89 [options]
91 .br
92 .B mplayer
93 dvb://[card_number@]channel
94 [options]
96 .br
97 .B mplayer
98 mf://[filemask|@listfile]
99 [\-mf options] [options]
102 .B mplayer
103 [cdda|cddb]://track[\-endtrack][:speed][/device]
104 [options]
107 .B mplayer
108 cue://file[:track]
109 [options]
112 .B mplayer
113 [file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|icyx|noicyx|smb]://
114 [user:pass@]URL[:port] [options]
117 .B mplayer
118 sdp://file
119 [options]
122 .B mplayer
123 mpst://host[:port]/URL
124 [options]
127 .B mplayer
128 tivo://host/[list|llist|fsid]
129 [options]
132 .B mencoder
133 [options] file
134 [file|URL|\-] [\-o file | file://file | smb://[user:pass@]host/filepath]
137 .B mencoder
138 [options] file1
139 [specific options] [file2] [specific options]
143 .\" --------------------------------------------------------------------------
144 .\" Description
145 .\" --------------------------------------------------------------------------
147 .SH DESCRIPTION
148 .B mplayer
149 is a movie player for Linux (runs on many other platforms and CPU
150 architectures, see the documentation).
151 It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM,
152 MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
153 native and binary codecs.
154 You can watch VCD, SVCD, DVD, Blu\-ray, 3ivx, DivX 3/4/5, WMV and even H.264 movies,
155 too.
157 MPlayer supports a wide range of video and audio output drivers.
158 It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
159 Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers),
160 VESA (on every VESA-compatible card, even without X11), some low-level
161 card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder
162 boards, such as the Siemens DVB, Hauppauge PVR (IVTV), DXR2 and DXR3/\:Hollywood+.
163 Most of them support software or hardware scaling, so you can enjoy movies in
164 fullscreen mode.
166 MPlayer has an onscreen display (OSD) for status information, nice big
167 antialiased shaded subtitles and visual feedback for keyboard controls.
168 European/\:ISO8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean
169 fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM,
170 SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and
171 DVD subtitles (SPU streams, VOBsub and Closed Captions).
173 .B mencoder
174 (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode
175 MPlayer-playable movies (see above) to other MPlayer-playable formats (see
176 below).
177 It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and
178 PCM/\:MP3/\:VBRMP3 audio in 1, 2 or 3 passes.
179 Furthermore it has stream copying abilities, a powerful filter system (crop,
180 expand, flip, postprocess, rotate, scale, noise, RGB/\:YUV conversion) and
181 more.
183 .B gmplayer
184 is MPlayer with a graphical user interface.
185 It has the same options as MPlayer.
187 Usage examples to get you started quickly can be found at the end
188 of this man page.
190 .B Also see the HTML documentation!
193 .\" --------------------------------------------------------------------------
194 .\" interactive control
195 .\" --------------------------------------------------------------------------
197 .SH "INTERACTIVE CONTROL"
198 MPlayer has a fully configurable, command-driven control layer
199 which allows you to control MPlayer using keyboard, mouse, joystick
200 or remote control (with LIRC).
201 See the \-input option for ways to customize it.
204 .B keyboard control
205 .PD 0
207 .IPs "<\- and \->"
208 Seek backward/\:forward 10 seconds.
209 .IPs "up and down"
210 Seek forward/\:backward 1 minute.
211 .IPs "pgup and pgdown"
212 Seek forward/\:backward 10 minutes.
213 .IPs "[ and ]"
214 Decrease/increase current playback speed by 10%.
215 .IPs "{ and }"
216 Halve/double current playback speed.
217 .IPs "backspace"
218 Reset playback speed to normal.
219 .IPs "< and >"
220 Go backward/\:forward in the playlist.
221 .IPs "ENTER"
222 Go forward in the playlist, even over the end.
223 .IPs "HOME and END"
224 next/\:previous playtree entry in the parent list
225 .IPs "INS and DEL (ASX playlist only)"
226 next/\:previous alternative source.
227 .IPs "p / SPACE"
228 Pause (pressing again unpauses).
229 .IPs ".\ \ \ \ "
230 Step forward.
231 Pressing once will pause movie, every consecutive press will play one frame
232 and then go into pause mode again (any other key unpauses).
233 .IPs "q / ESC"
234 Stop playing and quit.
235 .IPs "U\ \ \ \ "
236 Stop playing (and quit if \-idle is not used).
237 .IPs "+ and \-"
238 Adjust audio delay by +/\- 0.1 seconds.
239 .IPs "/ and *"
240 Decrease/\:increase volume.
241 .IPs "9 and 0"
242 Decrease/\:increase volume.
243 .IPs "( and )"
244 Adjust audio balance in favor of left/\:right channel.
245 .IPs "m\ \ \ \ "
246 Mute sound.
247 .IPs "_ (MPEG-TS, AVI and libavformat only)"
248 Cycle through the available video tracks.
249 .IPs "# (DVD, Blu-ray, MPEG, Matroska, AVI and libavformat only)"
250 Cycle through the available audio tracks.
251 .IPs "TAB (MPEG-TS and libavformat only)"
252 Cycle through the available programs.
253 .IPs "f\ \ \ \ "
254 Toggle fullscreen (also see \-fs).
255 .IPs "T\ \ \ \ "
256 Toggle stay-on-top (also see \-ontop).
257 .IPs "w and e"
258 Decrease/\:increase pan-and-scan range.
259 .IPs "o\ \ \ \ "
260 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
261 .IPs "d\ \ \ \ "
262 Toggle frame dropping states: none / skip display / skip decoding
263 (see \-framedrop and \-hardframedrop).
264 .IPs "v\ \ \ \ "
265 Toggle subtitle visibility.
266 .IPs "j\ \ \ \ "
267 Cycle through the available subtitles.
268 .IPs "y and g"
269 Step forward/backward in the subtitle list.
270 .IPs "F\ \ \ \ "
271 Toggle displaying "forced subtitles".
272 .IPs "a\ \ \ \ "
273 Toggle subtitle alignment: top / middle / bottom.
274 .IPs "x and z"
275 Adjust subtitle delay by +/\- 0.1 seconds.
276 .IPs "C (\-capture only)"
277 Start/stop capturing the primary stream.
278 .IPs "r and t"
279 Move subtitles up/down.
280 .IPs "i (\-edlout mode only)"
281 Set start or end of an EDL skip and write it out to the given file.
282 .IPs "s (\-vf screenshot only)"
283 Take a screenshot.
284 .IPs "S (\-vf screenshot only)"
285 Start/stop taking screenshots.
286 .IPs "I\ \ \ \ "
287 Show filename on the OSD.
288 .IPs "P\ \ \ \ "
289 Show progression bar, elapsed time and total duration on the OSD.
290 .IPs "! and @"
291 Seek to the beginning of the previous/next chapter.
292 .IPs "D (\-vo xvmc, \-vo vdpau, \-vf yadif, \-vf kerndeint only)"
293 Activate/deactivate deinterlacer.
294 .IPs "A\ \ \ \ "
295 Cycle through the available DVD angles.
296 .IPs "c (currently -vo vdpau and -vo xv only)"
297 Change YUV colorspace.
299 .PD 1
302 (The following keys are valid only when using a hardware accelerated video
303 output (xv, (x)vidix, (x)mga, etc), the software equalizer
304 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
307 .PD 0
309 .IPs "1 and 2"
310 Adjust contrast.
311 .IPs "3 and 4"
312 Adjust brightness.
313 .IPs "5 and 6"
314 Adjust hue.
315 .IPs "7 and 8"
316 Adjust saturation.
318 .PD 1
321 (The following keys are valid only when using the quartz or corevideo
322 video output driver.)
325 .PD 0
327 .IPs "command + 0"
328 Resize movie window to half its original size.
329 .IPs "command + 1"
330 Resize movie window to its original size.
331 .IPs "command + 2"
332 Resize movie window to double its original size.
333 .IPs "command + f"
334 Toggle fullscreen (also see \-fs).
335 .IPs "command + [ and command + ]"
336 Set movie window alpha.
338 .PD 1
341 (The following keys are valid only when using the sdl
342 video output driver.)
345 .PD 0
347 .IPs "c\ \ \ \ "
348 Cycle through available fullscreen modes.
349 .IPs "n\ \ \ \ "
350 Restore original mode.
352 .PD 1
355 (The following keys are valid if you have a keyboard
356 with multimedia keys.)
359 .PD 0
361 .IPs PAUSE
362 Pause.
363 .IPs "STOP\ "
364 Stop playing and quit.
365 .IPs "PREVIOUS and NEXT"
366 Seek backward/\:forward 1 minute.
368 .PD 1
371 (The following keys are only valid if you compiled with TV or DVB input
372 support and will take precedence over the keys defined above.)
375 .PD 0
377 .IPs "h and k"
378 Select previous/\:next channel.
379 .IPs "n\ \ \ \ "
380 Change norm.
381 .IPs "u\ \ \ \ "
382 Change channel list.
384 .PD 1
387 (The following keys are only valid if you compiled with dvdnav
388 support: They are used to navigate the menus.)
391 .PD 0
393 .IPs "keypad 8"
394 Select button up.
395 .IPs "keypad 2"
396 Select button down.
397 .IPs "keypad 4"
398 Select button left.
399 .IPs "keypad 6"
400 Select button right.
401 .IPs "keypad 5"
402 Return to main menu.
403 .IPs "keypad 7"
404 Return to nearest menu (the order of preference is: chapter->title->root).
405 .IPs "keypad ENTER"
406 Confirm choice.
408 .PD 1
412 (The following keys are used for controlling TV teletext. The data may
413 come from either an analog TV source or an MPEG transport stream.)
416 .PD 0
418 .IPs "X\ \ \ \ "
419 Switch teletext on/\:off.
420 .IPs "Q and W"
421 Go to next/\:prev teletext page.
423 .PD 1
426 .B mouse control
427 .PD 0
429 .IPs "button 3 and button 4"
430 Seek backward/\:forward 1 minute.
431 .IPs "button 5 and button 6"
432 Decrease/\:increase volume.
434 .PD 1
437 .B joystick control
438 .PD 0
440 .IPs "left and right"
441 Seek backward/\:forward 10 seconds.
442 .IPs "up and down"
443 Seek forward/\:backward 1 minute.
444 .IPs "button 1"
445 Pause.
446 .IPs "button 2"
447 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
448 .IPs "button 3 and button 4"
449 Decrease/\:increase volume.
451 .PD 1
454 .\" --------------------------------------------------------------------------
455 .\" Usage
456 .\" --------------------------------------------------------------------------
458 .SH "USAGE"
459 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
460 \-fs option is \-nofs.
462 If an option is marked as (XXX only), it will only work in combination with
463 the XXX option or if XXX is compiled in.
465 .I NOTE:
466 The suboption parser (used for example for \-ao pcm suboptions) supports
467 a special kind of string-escaping intended for use with external GUIs.
469 It has the following format:
471 %n%string_of_length_n
473 .I EXAMPLES:
475 mplayer \-ao pcm:file=%10%C:test.wav test.avi
477 Or in a script:
479 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
482 .\" --------------------------------------------------------------------------
483 .\" Configuration files
484 .\" --------------------------------------------------------------------------
486 .SH "CONFIGURATION FILES"
487 You can put all of the options in configuration files which will be read
488 every time MPlayer/MEncoder is run.
489 The system-wide configuration file 'mplayer.conf' is in your configuration
490 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
491 specific one is '~/\:.mplayer/\:config'.
492 The configuration file for MEncoder is 'mencoder.conf' in your configuration
493 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
494 user specific one is '~/\:.mplayer/\:mencoder.conf'.
495 User specific options override system-wide options and options given on the
496 command line override either.
497 The syntax of the configuration files is 'option=<value>', everything after
498 a '#' is considered a comment.
499 Options that work without values can be enabled by setting them to 'yes'
500 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
501 Even suboptions can be specified in this way.
503 You can also write file-specific configuration files.
504 If you wish to have a configuration file for a file called 'movie.avi', create a file
505 named 'movie.avi.conf' with the file-specific options in it and put it in
506 ~/.mplayer/.
507 You can also put the configuration file in the same directory as the file to
508 be played, as long as you give the \-use\-filedir\-conf option (either on the
509 command line or in your global config file).
510 If a file-specific configuration file is found in the same directory, no
511 file-specific configuration is loaded from ~/.mplayer.
512 In addition, the \-use\-filedir\-conf option enables directory-specific
513 configuration files.
514 For this, MPlayer first tries to load a mplayer.conf from the same directory as
515 the file played and then tries to load any file-specific configuration.
517 .I EXAMPLE MPLAYER CONFIGURATION FILE:
518 .sp 1
520 # Use Matrox driver by default.
521 vo=xmga
522 # I love practicing handstands while watching videos.
523 flip=yes
524 # Decode/encode multiple files from PNG,
525 # start with mf://filemask
526 mf=type=png:fps=25
527 # Eerie negative images are cool.
528 vf=eq2=1.0:\-0.8
531 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
532 .sp 1
534 # Make MEncoder output to a default filename.
535 o=encoded.avi
536 # The next 4 lines allow mencoder tv:// to start capturing immediately.
537 oac=pcm=yes
538 ovc=lavc=yes
539 lavcopts=vcodec=mjpeg
540 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
541 # more complex default encoding option set
542 lavcopts=vcodec=mpeg4:autoaspect=1
543 lameopts=aq=2:vbr=4
544 ovc=lavc=1
545 oac=lavc=1
546 passlogfile=pass1stats.log
547 noautoexpand=1
548 subfont-autoscale=3
549 subfont-osd-scale=6
550 subfont-text-scale=4
551 subalign=2
552 subpos=96
553 spuaa=20
556 .\" --------------------------------------------------------------------------
557 .\" Profiles
558 .\" --------------------------------------------------------------------------
560 .SH "PROFILES"
561 To ease working with different configurations profiles can be defined in the
562 configuration files.
563 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
564 All following options will be part of the profile.
565 A description (shown by \-profile help) can be defined with the profile-desc
566 option.
567 To end the profile, start another one or use the profile name 'default'
568 to continue with normal options.
571 .I "EXAMPLE MPLAYER PROFILE:"
572 .sp 1
575 [protocol.dvd]
576 profile-desc="profile for dvd:// streams"
577 vf=pp=hb/vb/dr/al/fd
578 alang=en
580 [protocol.dvdnav]
581 profile-desc="profile for dvdnav:// streams"
582 profile=protocol.dvd
583 mouse-movements=yes
584 nocache=yes
586 [extension.flv]
587 profile-desc="profile for .flv files"
588 flip=yes
590 [vo.pnm]
591 outdir=/tmp
593 [ao.alsa]
594 device=spdif
597 .I "EXAMPLE MENCODER PROFILE:"
598 .sp 1
601 [mpeg4]
602 profile-desc="MPEG4 encoding"
603 ovc=lacv=yes
604 lavcopts=vcodec=mpeg4:vbitrate=1200
606 [mpeg4\-hq]
607 profile-desc="HQ MPEG4 encoding"
608 profile=mpeg4
609 lavcopts=mbd=2:trell=yes:v4mv=yes
612 .\" --------------------------------------------------------------------------
613 .\" Options
614 .\" --------------------------------------------------------------------------
616 .SH "GENERAL OPTIONS"
619 .B \-codecpath <dir>
620 Specify a directory for binary codecs.
623 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
624 Override the standard search path and use the specified file
625 instead of the builtin codecs.conf.
628 .B \-include <configuration file>
629 Specify configuration file to be parsed after the default ones.
632 .B \-list\-options
633 Prints all available options.
636 .B \-msgcharset <charset>
637 Convert console messages to the specified character set (default: autodetect).
638 Text will be in the encoding specified with the \-\-charset configure option.
639 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
641 .I NOTE:
642 The option takes effect after command line parsing has finished.
643 The MPLAYER_CHARSET environment variable can help you get rid of
644 the first lines of garbled output.
647 .B \-msgcolor
648 Enable colorful console output on terminals that support ANSI color.
651 .B \-msglevel <all=<level>:<module>=<level>:...>
652 Control verbosity directly for each module.
653 The 'all' module changes the verbosity of all the modules not
654 explicitly specified on the command line.
655 See '\-msglevel help' for a list of all modules.
657 .I NOTE:
658 Some messages are printed before the command line is parsed and are
659 therefore not affected by \-msglevel.
660 To control these messages you have to use the MPLAYER_VERBOSE environment
661 variable, see its description below for details.
663 Available levels:
664 .PD 0
665 .RSs
666 .IPs "\-1"
667 complete silence
668 .IPs " 0"
669 fatal messages only
670 .IPs " 1"
671 error messages
672 .IPs " 2"
673 warning messages
674 .IPs " 3"
675 short hints
676 .IPs " 4"
677 informational messages
678 .IPs " 5"
679 status messages (default)
680 .IPs " 6"
681 verbose messages
682 .IPs " 7"
683 debug level 2
684 .IPs " 8"
685 debug level 3
686 .IPs " 9"
687 debug level 4
689 .PD 1
692 .B \-msgmodule
693 Prepend module name in front of each console message.
696 .B \-noconfig <options>
697 Do not parse selected configuration files.
699 .I NOTE:
700 If \-include or \-use\-filedir\-conf options are
701 specified at the command line, they will be honoured.
702 .sp 1
703 Available options are:
704 .PD 0
705 .RSs
706 .IPs "all\ \ "
707 all configuration files
708 .IPs system
709 system configuration file
710 .IPs "user\ "
711 user configuration file
713 .PD 1
716 .B "\-quiet\ "
717 Make console output less verbose; in particular, prevents the status line
718 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
719 Particularly useful on slow terminals or broken ones which do not properly
720 handle carriage return (i.e.\& \\r).
723 .B \-priority <prio> (Windows and OS/2 only)
724 Set process priority for MPlayer according to the predefined
725 priorities available under Windows and OS/2.
726 Possible values of <prio>:
727 .RSs
728 idle|belownormal|normal|abovenormal|high|realtime
730 .sp 1
732 .I WARNING:
733 Using realtime priority can cause system lockup.
737 .B \-profile <profile1,profile2,...>
738 Use the given profile(s), \-profile help displays a list of the defined profiles.
741 .B \-really\-quiet (also see \-quiet)
742 Display even less output and status messages than with \-quiet.
745 .B \-show\-profile <profile>
746 Show the description and content of a profile.
749 .B \-use\-filedir\-conf
750 Look for a file-specific configuration file in the same directory as
751 the file that is being played.
753 .I WARNING:
754 May be dangerous if playing from untrusted media.
757 .B "\-v\ \ \ \ \ "
758 Increment verbosity level, one level for each \-v
759 found on the command line.
763 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
766 .B \-autoq <quality> (use with \-vf [s]pp)
767 Dynamically changes the level of postprocessing depending on the available spare
768 CPU time.
769 The number you specify will be the maximum level used.
770 Usually you can use some big number.
771 You have to use \-vf [s]pp without parameters in order for this to work.
774 .B \-autosync <factor>
775 Gradually adjusts the A/V sync based on audio delay measurements.
776 Specifying \-autosync 0, the default, will cause frame timing to be based
777 entirely on audio delay measurements.
778 Specifying \-autosync 1 will do the same, but will subtly change the A/V
779 correction algorithm.
780 An uneven video framerate in a movie which plays fine with \-nosound can
781 often be helped by setting this to an integer value greater than 1.
782 The higher the value, the closer the timing will be to \-nosound.
783 Try \-autosync 30 to smooth out problems with sound drivers which do
784 not implement a perfect audio delay measurement.
785 With this value, if large A/V sync offsets occur, they will only take about
786 1 or 2 seconds to settle out.
787 This delay in reaction time to sudden A/V offsets should be the only
788 side-effect of turning this option on, for all sound drivers.
791 .B \-benchmark
792 Prints some statistics on CPU usage and dropped frames at the end of playback.
793 Use in combination with \-nosound and \-vo null for benchmarking only the
794 video codec.
796 .I NOTE:
797 With this option MPlayer will also ignore frame duration when playing
798 only video (you can think of that as infinite fps).
801 .B \-chapter\-merge\-threshold <number>
802 Threshold for merging almost consecutive ordered chapter parts
803 in milliseconds (default: 100).
804 Some Matroska files with ordered chapters have inaccurate chapter
805 end timestamps, causing a small gap between the end of one chapter and
806 the start of the next one when they should match.
807 If the end of one playback part is less than the given threshold away
808 from the start of the next one then keep playing video normally over the
809 chapter change instead of doing a seek.
812 .B \-colorkey <number>
813 Changes the colorkey to an RGB value of your choice.
814 0x000000 is black and 0xffffff is white.
815 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
816 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
817 drivers.
820 .B \-nocolorkey
821 Disables colorkeying.
822 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
823 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
824 drivers.
827 .B \-correct\-pts
828 Switches MPlayer to a mode where timestamps for video frames
829 are calculated differently and video filters which add new frames or
830 modify timestamps of existing ones are supported.
831 The more accurate timestamps can be visible for example when playing
832 subtitles timed to scene changes with the \-ass option.
833 Without \-correct\-pts the subtitle timing will typically be off by some frames.
834 This option does not work correctly with some demuxers and codecs.
837 .B \-crash\-debug (DEBUG CODE)
838 Automatically attaches gdb upon crash or SIGTRAP.
839 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
842 .B \-doubleclick\-time
843 Time in milliseconds to recognize two consecutive button presses as
844 a double-click (default: 300).
845 Set to 0 to let your windowing system decide what a double-click is
846 (\-vo directx only).
848 .I NOTE:
849 You will get slightly different behaviour depending on whether you bind
850 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
853 .B \-edlout <filename>
854 Creates a new file and writes edit decision list (EDL) records to it.
855 During playback, the user hits 'i' to mark the start or end of a skip block.
856 This provides a starting point from which the user can fine-tune EDL entries
857 later.
858 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
861 .B \-nofixed\-vo
862 \-fixed\-vo enforces a fixed video system for multiple files (one
863 (un)initialization for all files).
864 Therefore only one window will be opened for all files.
865 Now enabled by default, use \-nofixed\-vo to disable and create a new window
866 whenever the video stream changes.
867 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
868 xmga, xv, xvidix and dfbmga.
871 .B \-framedrop (also see \-hardframedrop, experimental without \-nocorrect\-pts)
872 Skip displaying some frames to maintain A/V sync on slow systems.
873 Video filters are not applied to such frames.
874 For B-frames even decoding is skipped completely.
877 .B \-h, \-help, \-\-help
878 Show short summary of options.
881 .B \-hardframedrop (experimental without \-nocorrect\-pts)
882 More intense frame dropping (breaks decoding).
883 Leads to image distortion!
884 Note that especially the libmpeg2 decoder may crash with this,
885 so consider using "\-vc ffmpeg12,".
888 .B \-heartbeat\-cmd
889 Command that is executed every 30 seconds during playback via system() -
890 i.e.\& using the shell.
891 .sp 1
892 .I NOTE:
893 MPlayer uses this command without any checking, it is your responsibility
894 to ensure it does not cause security problems (e.g.\& make sure to use full
895 paths if "." is in your path like on Windows).
896 It also only works when playing video (i.e.\& not with \-novideo but works with \-vo null).
897 .sp 1
898 This can be "misused" to disable screensavers that do not support the proper
899 X API (also see \-stop\-xscreensaver).
900 If you think this is too complicated, ask the author of the screensaver
901 program to support the proper X APIs.
902 .sp 1
903 .I EXAMPLE for xscreensaver:
904 mplayer \-heartbeat\-cmd "xscreensaver\-command \-deactivate" file
905 .sp 1
906 .I EXAMPLE for GNOME screensaver:
907 mplayer \-heartbeat\-cmd "gnome\-screensaver\-command \-p" file
909 .PD 1
912 .B \-hr\-seek off|absolute|always
913 Select when to use precise seeks that are not limited to keyframes.
914 Such seeks require decoding video from the previous keyframe up to the target
915 position and so can take some time depending on decoding performance.
916 For some video formats precise seeks are disabled. This option selects the
917 default choice to use for seeks; it's possible to explicitly override that
918 default in the definition of key bindings and in slave mode commands.
919 .PD 0
920 .RSs
921 .IPs off
922 Never use precise seeks.
923 .IPs absolute
924 Use precise seeks if the seek is to an absolute position in the file,
925 such as a chapter seek, but not for relative seeks like the default
926 behavior of arrow keys (default).
927 .IPs always
928 Use precise seeks whenever possible.
930 .PD 1
933 .B \-identify
934 Shorthand for \-msglevel identify=4.
935 Show file parameters in an easily parseable format.
936 Also prints more detailed information about subtitle and audio
937 track languages and IDs.
938 In some cases you can get more information by using \-msglevel identify=6.
939 For example, for a DVD or Blu\-ray it will list the chapters and time length
940 of each title, as well as a disk ID.
941 Combine this with \-frames 0 to suppress all video output.
942 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
943 (hopefully) shellescapes the filenames.
946 .B \-idle (also see \-slave)
947 Makes MPlayer wait idly instead of quitting when there is no file to play.
948 Mostly useful in slave mode where MPlayer can be controlled
949 through input commands.
952 .B \-input <commands>
953 This option can be used to configure certain parts of the input system.
954 Paths are relative to ~/.mplayer/.
956 .I NOTE:
957 Autorepeat is currently only supported by joysticks.
958 .sp 1
959 Available commands are:
960 .sp 1
961 .PD 0
962 .RSs
963 .IPs conf=<filename>
964 Specify input configuration file other than the default
965 ~/\:.mplayer/\:input.conf.
966 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
967 .IPs ar-dev=<device>
968 Device to be used for Apple IR Remote (default is autodetected, Linux only).
969 .IPs ar-delay
970 Delay in milliseconds before we start to autorepeat a key (0 to disable).
971 .IPs ar-rate
972 Number of key presses to generate per second on autorepeat.
973 .IPs (no)default-bindings
974 Use the key bindings that MPlayer ships with by default.
975 .IPs keylist
976 Prints all keys that can be bound to commands.
977 .IPs cmdlist
978 Prints all commands that can be bound to keys.
979 .IPs js-dev
980 Specifies the joystick device to use (default: /dev/\:input/\:js0).
981 .IPs file=<filename>
982 Read commands from the given file.
983 Mostly useful with a FIFO.
985 .I NOTE:
986 When the given file is a FIFO MPlayer opens both ends so you can do
987 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
989 .PD 1
992 .B \-key\-fifo\-size <2\-65000>
993 Specify the size of the FIFO that buffers key events (default: 7).
994 A FIFO of size n can buffer (n\-1) events.
995 If it is too small some events may be lost
996 (leading to "stuck mouse buttons" and similar effects).
997 If it is too big, MPlayer may seem to hang while it
998 processes the buffered events.
999 To get the same behavior as before this option was introduced,
1000 set it to 2 for Linux or 1024 for Windows.
1003 .B \-lircconf <filename> (LIRC only)
1004 Specifies a configuration file for LIRC (default: ~/.lircrc).
1007 .B \-list\-properties
1008 Print a list of the available properties.
1011 .B \-loop <number>
1012 Loops movie playback <number> times.
1013 0 means forever.
1016 .B \-menu (OSD menu only)
1017 Turn on OSD menu support.
1020 .B \-menu\-cfg <filename> (OSD menu only)
1021 Use an alternative menu.conf.
1024 .B \-menu\-chroot <path> (OSD menu only)
1025 Chroot the file selection menu to a specific location.
1026 .sp 1
1027 .I EXAMPLE:
1028 .PD 0
1029 .RSs
1030 .IPs "\-menu\-chroot /home"
1031 Will restrict the file selection menu to /\:home and downward (i.e.\& no
1032 access to / will be possible, but /home/user_name will).
1034 .PD 1
1037 .B \-menu\-keepdir (OSD menu only)
1038 File browser starts from the last known location instead of current directory.
1041 .B \-menu\-root <value> (OSD menu only)
1042 Specify the main menu.
1045 .B \-menu\-startup (OSD menu only)
1046 Display the main menu at MPlayer startup.
1049 .B \-mouse\-movements
1050 Permit MPlayer to receive pointer events reported by the video
1051 output driver.
1052 Necessary to select the buttons in DVD menus.
1053 Supported for X11-based VOs (x11, xv, xvmc, etc) and the gl, gl2, direct3d and
1054 corevideo VOs.
1057 .B \-noar
1058 Turns off AppleIR remote support.
1061 .B \-noconsolecontrols
1062 Prevent MPlayer from reading key events from standard input.
1063 Useful when reading data from standard input.
1064 This is automatically enabled when \- is found on the command line.
1065 There are situations where you have to set it manually, e.g.\&
1066 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1067 in a playlist or intend to read from stdin later on via the loadfile or
1068 loadlist slave commands.
1071 .B \-noinitial-audio-sync
1072 When starting a video file or after events such as seeking MPlayer will by
1073 default modify the audio stream to make it start from the same timestamp as
1074 video, by either inserting silence at the start or cutting away the first
1075 samples.
1076 This option disables that functionality and makes the player behave like
1077 older MPlayer versions did: video and audio are both started immediately
1078 even if their start timestamps differ, and then video timing is gradually
1079 adjusted if necessary to reach correct synchronization later.
1082 .B \-nojoystick
1083 Turns off joystick support.
1086 .B \-nolirc
1087 Turns off LIRC support.
1090 .B \-nomouseinput
1091 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1092 on this option).
1094 .B \-noordered\-chapters
1095 Disable support for Matroska ordered chapters.
1096 MPlayer will not load or search for video segments from other files,
1097 and will also ignore any chapter order specified for the main file.
1100 .B \-pts\-association\-mode auto|decode|sort
1101 Select the method used to determine which container packet timestamp
1102 corresponds to a particular output frame from the video decoder.
1103 Normally you shouldn't need to change this option.
1104 .PD 0
1105 .RSs
1106 .IPs auto
1107 Try to pick a working mode from the ones below automatically (default)
1108 .IPs decoder
1109 Use decoder reordering functionality.
1110 .IPs sort
1111 Maintain a buffer of unused pts values and use the lowest value for the frame.
1113 .PD 1
1116 .B \-rtc (RTC only)
1117 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1118 mechanism.
1119 This wakes up the process every 1/1024 seconds to check the current time.
1120 Useless with modern Linux kernels configured for desktop use as they already
1121 wake up the process with similar accuracy when using normal timed sleep.
1124 .B \-playing\-msg <string>
1125 Print out a string before starting playback.
1126 The following expansions are supported:
1127 .RSs
1128 .IPs ${NAME}
1129 Expand to the value of the property NAME.
1130 .IPs ?(NAME:TEXT)
1131 Expand TEXT only if the property NAME is available.
1132 .IPs ?(!NAME:TEXT)
1133 Expand TEXT only if the property NAME is not available.
1137 .B \-playlist <filename>
1138 Play files according to a playlist file (ASX, Winamp, SMIL, or
1139 one-file-per-line format).
1141 .I NOTE:
1142 This option is considered an entry so options found after it will apply
1143 only to the elements of this playlist.
1145 FIXME: This needs to be clarified and documented thoroughly.
1148 .B \-rtc\-device <device>
1149 Use the specified device for RTC timing.
1152 .B \-shuffle
1153 Play files in random order.
1156 .B \-slave (also see \-input)
1157 Switches on slave mode, in which MPlayer works as a backend for other programs.
1158 Instead of intercepting keyboard events, MPlayer will read commands separated
1159 by a newline (\\n) from stdin.
1161 .I NOTE:
1162 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1163 for their description.
1164 Also, this is not intended to disable other inputs, e.g.\& via the video window,
1165 use some other method like \-input nodefault\-bindings:conf=/dev/null for that.
1168 .B \-softsleep
1169 Time frames by repeatedly checking the current time instead of asking the
1170 kernel to wake up MPlayer at the correct time.
1171 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1172 Comes at the price of higher CPU consumption.
1175 .B \-sstep <sec>
1176 Skip <sec> seconds after every frame.
1177 The normal framerate of the movie is kept, so playback is accelerated.
1178 Since MPlayer can only seek to the next keyframe this may be inexact.
1182 .SH "DEMUXER/STREAM OPTIONS"
1185 .B \-a52drc <level>
1186 Select the Dynamic Range Compression level for AC-3 audio streams.
1187 <level> is a float value ranging from 0 to 1, where 0 means no compression
1188 and 1 (which is the default) means full compression (make loud passages more
1189 silent and vice versa).
1190 Values up to 2 are also accepted, but are purely experimental.
1191 This option only shows an effect if the AC-3 stream contains the required range
1192 compression information.
1195 .B \-aid <ID> (also see \-alang)
1196 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1197 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1198 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1199 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1200 (if present) with the chosen audio stream.
1203 .B \-ausid <ID> (also see \-alang)
1204 Select audio substream channel.
1205 Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled
1206 by the native demuxer (not by libavformat).
1207 The format type may not be correctly identified because of how this information
1208 (or lack thereof) is embedded in the stream, but it will demux correctly the
1209 audio streams when multiple substreams are present.
1210 MPlayer prints the available substream IDs when run with \-identify.
1213 .B \-alang <language code[,language code,...]> (also see \-aid)
1214 Specify a priority list of audio languages to use.
1215 Different container formats employ different language codes.
1216 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1217 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1218 MPlayer prints the available languages when run in verbose (\-v) mode.
1219 .sp 1
1220 .I EXAMPLE:
1221 .PD 0
1222 .RSs
1223 .IPs "mplayer dvd://1 \-alang hu,en"
1224 Chooses the Hungarian language track on a DVD and falls back on English if
1225 Hungarian is not available.
1226 .IPs "mplayer \-alang jpn example.mkv"
1227 Plays a Matroska file in Japanese.
1229 .PD 1
1232 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1233 Force audio demuxer type for \-audiofile.
1234 Use a '+' before the name to force it, this will skip some checks!
1235 Give the demuxer name as printed by \-audio\-demuxer help.
1236 For backward compatibility it also accepts the demuxer ID as defined in
1237 libmpdemux/\:demuxer.h.
1238 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1241 .B \-audiofile <filename>
1242 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1243 movie.
1246 .B \-audiofile\-cache <kBytes>
1247 Enables caching for the stream used by \-audiofile, using the specified
1248 amount of memory.
1251 .B \-reuse\-socket (udp:// only)
1252 Allows a socket to be reused by other processes as soon as it is closed.
1255 .B \-bandwidth <Bytes> (network only)
1256 Specify the maximum bandwidth for network streaming (for servers that are
1257 able to send content in different bitrates).
1258 Useful if you want to watch live streamed media behind a slow connection.
1259 With Real RTSP streaming, it is also used to set the maximum delivery
1260 bandwidth allowing faster cache filling and stream dumping.
1263 .B \-bluray\-angle <angle ID> (Blu\-ray only)
1264 Some Blu\-ray discs contain scenes that can be viewed from multiple angles.
1265 Here you can tell MPlayer which angles to use (default: 1).
1268 .B \-bluray\-chapter <chapter ID> (Blu\-ray only)
1269 Tells MPlayer which Blu\-ray chapter to start the current title from (default: 1).
1272 .B \-bluray\-device <path to disc> (Blu\-ray only)
1273 Specify the Blu\-ray disc location. Must be a directory with Blu\-ray structure.
1276 .B \-cache <kBytes>
1277 This option specifies how much memory (in kBytes) to use when precaching a
1278 file or URL.
1279 Especially useful on slow media.
1282 .B \-nocache
1283 Turns off caching.
1286 .B \-cache\-min <percentage>
1287 Playback will start when the cache has been filled up to <percentage>
1288 of the total.
1291 .B \-cache\-seek\-min <percentage>
1292 If a seek is to be made to a position within <percentage> of the cache size
1293 from the current position, MPlayer will wait for the cache to be filled to
1294 this position rather than performing a stream seek (default: 50).
1297 .B \-capture (MPlayer only)
1298 Allows capturing the primary stream (not additional audio tracks or other
1299 kind of streams) into the file specified by \-dumpfile or \"stream.dump\"
1300 by default.
1301 If this option is given, capturing can be started and stopped by pressing
1302 the key bound to this function (see section INTERACTIVE CONTROL).
1303 Same as for \-dumpstream, this will likely not produce usable results for
1304 anything else than MPEG streams.
1305 Note that, due to cache latencies, captured data may begin and end
1306 somewhat delayed compared to what you see displayed.
1309 .B \-cdda <option1:option2> (CDDA only)
1310 This option can be used to tune the CD Audio reading feature of MPlayer.
1311 .sp 1
1312 Available options are:
1313 .RSs
1314 .IPs speed=<value>
1315 Set CD spin speed.
1316 .IPs paranoia=<0\-2>
1317 Set paranoia level.
1318 Values other than 0 seem to break playback of anything but the first track.
1319 .RSss
1320 0: disable checking (default)
1322 1: overlap checking only
1324 2: full data correction and verification
1325 .REss
1326 .IPs generic-dev=<value>
1327 Use specified generic SCSI device.
1328 .IPs sector-size=<value>
1329 Set atomic read size.
1330 .IPs overlap=<value>
1331 Force minimum overlap search during verification to <value> sectors.
1332 .IPs toc-bias
1333 Assume that the beginning offset of track 1 as reported in the TOC will be
1334 addressed as LBA 0.
1335 Some Toshiba drives need this for getting track boundaries correct.
1336 .IPs toc-offset=<value>
1337 Add <value> sectors to the values reported when addressing tracks.
1338 May be negative.
1339 .IPs (no)skip
1340 (Never) accept imperfect data reconstruction.
1344 .B \-cdrom\-device <path to device>
1345 Specify the CD-ROM device (default: /dev/\:cdrom).
1348 .B \-channels <number> (also see \-af channels)
1349 Request the number of playback channels (default: 2).
1350 MPlayer asks the decoder to decode the audio into as many channels as
1351 specified.
1352 Then it is up to the decoder to fulfill the requirement.
1353 This is usually only important when playing videos with AC-3 audio (like DVDs).
1354 In that case liba52 does the decoding by default and correctly downmixes the
1355 audio into the requested number of channels.
1356 To directly control the number of output channels independently of how many
1357 channels are decoded, use the channels filter.
1359 .I NOTE:
1360 This option is honored by codecs (AC-3 only), filters (surround) and audio
1361 output drivers (OSS at least).
1362 .sp 1
1363 Available options are:
1364 .sp 1
1365 .PD 0
1366 .RSs
1367 .IPs 2
1368 stereo
1369 .IPs 4
1370 surround
1371 .IPs 6
1372 full 5.1
1373 .IPs 8
1374 full 7.1
1376 .PD 1
1379 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1380 Specify which chapter to start playing at.
1381 Optionally specify which chapter to end playing at (default: 1).
1384 .B \-edition <edition ID> (Matroska, MPlayer only)
1385 Specify the edition (set of chapters) to use, where 0 is the first. If set to
1386 -1 (the default), MPlayer will choose the first edition declared as a default,
1387 or if there is no default, the first edition defined.
1390 .B \-cookies (network only)
1391 Send cookies when making HTTP requests.
1394 .B \-cookies\-file <filename> (network only)
1395 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1396 and skip reading from default locations.
1397 The file is assumed to be in Netscape format.
1400 .B \-delay <sec>
1401 audio delay in seconds (positive or negative float value)
1403 Negative values delay the audio, and positive values delay the video.
1404 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1406 .I NOTE:
1407 When used with MEncoder, this is not guaranteed to work correctly
1408 with \-ovc copy; use \-audio\-delay instead.
1411 .B \-ignore\-start
1412 Ignore the specified starting time for streams in AVI files.
1413 In MPlayer, this nullifies stream delays in files encoded with
1414 the \-audio\-delay option.
1415 During encoding, this option prevents MEncoder from transferring
1416 original stream start times to the new file; the \-audio\-delay option is
1417 not affected.
1418 Note that MEncoder sometimes adjusts stream starting times
1419 automatically to compensate for anticipated decoding delays, so do not
1420 use this option for encoding without testing it first.
1423 .B \-demuxer <[+]name>
1424 Force demuxer type.
1425 Use a '+' before the name to force it, this will skip some checks!
1426 Give the demuxer name as printed by \-demuxer help.
1427 For backward compatibility it also accepts the demuxer ID as defined in
1428 libmpdemux/\:demuxer.h.
1431 .B \-dumpaudio (MPlayer only)
1432 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1433 in most other cases the resulting file will not be playable).
1434 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1435 on the command line only the last one will work.
1438 .B \-dumpfile <filename> (MPlayer only)
1439 Specify which file MPlayer should dump to.
1440 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream /
1441 \-capture.
1444 .B \-dumpstream (MPlayer only)
1445 Dumps the raw stream to ./stream.dump.
1446 Useful when ripping from DVD or network.
1447 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1448 on the command line only the last one will work.
1451 .B \-dumpvideo (MPlayer only)
1452 Dump raw compressed video stream to ./stream.dump (not very usable).
1453 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1454 on the command line only the last one will work.
1457 .B \-dvbin <options> (DVB only)
1458 Pass the following parameters to the DVB input module, in order to override
1459 the default ones:
1460 .sp 1
1461 .PD 0
1462 .RSs
1463 .IPs card=<1\-4>
1464 Specifies using card number 1\-4 (default: 1).
1465 .IPs file=<filename>
1466 Instructs MPlayer to read the channels list from <filename>.
1467 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1468 or ~/.mplayer/\:channels.conf as a last resort.
1469 .IPs timeout=<1\-30>
1470 Maximum number of seconds to wait when trying to tune a
1471 frequency before giving up (default: 30).
1473 .PD 1
1476 .B \-dvd\-device <path to device> (DVD only)
1477 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1478 You can also specify a directory that contains files previously copied directly
1479 from a DVD (with e.g.\& vobcopy).
1482 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1483 Try to limit DVD speed (default: 0, no change).
1484 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1485 10800KB/s.
1486 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1487 quiet and fast enough.
1488 MPlayer resets the speed to the drive default value on close.
1489 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1490 10800KB/s.
1492 .I NOTE:
1493 You need write access to the DVD device to change the speed.
1496 .B \-dvdangle <angle ID> (DVD only)
1497 Some DVD discs contain scenes that can be viewed from multiple angles.
1498 Here you can tell MPlayer which angles to use (default: 1).
1501 .B \-edl <filename>
1502 Enables edit decision list (EDL) actions during playback.
1503 Video will be skipped over and audio will be muted and unmuted according to
1504 the entries in the given file.
1505 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1506 on how to use this.
1509 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1510 Stop at given time or byte position.
1512 .I NOTE:
1513 Byte position is enabled only for MEncoder and will not be accurate, as it can
1514 only stop at a frame boundary.
1515 When used in conjunction with \-ss option, \-endpos time will shift forward by
1516 seconds specified with \-ss.
1517 .sp 1
1518 .I EXAMPLE:
1519 .PD 0
1520 .RSs
1521 .IPs "\-endpos 56"
1522 Stop at 56 seconds.
1523 .IPs "\-endpos 01:10:00"
1524 Stop at 1 hour 10 minutes.
1525 .IPs "\-ss 10 \-endpos 56"
1526 Stop at 1 minute 6 seconds.
1527 .IPs "\-endpos 100mb"
1528 Encode only 100 MB.
1530 .PD 1
1533 .B \-forceidx
1534 Force index rebuilding.
1535 Useful for files with broken index (A/V desync, etc).
1536 This will enable seeking in files where seeking was not possible.
1537 You can fix the index permanently with MEncoder (see the documentation).
1539 .I NOTE:
1540 This option only works if the underlying media supports seeking
1541 (i.e.\& not with stdin, pipe, etc).
1544 .B \-fps <float value>
1545 Override video framerate.
1546 Useful if the original value is wrong or missing.
1549 .B \-frames <number>
1550 Play/\:convert only first <number> frames, then quit.
1553 .B \-hr\-mp3\-seek (MP3 only)
1554 Hi-res MP3 seeking.
1555 Enabled when playing from an external MP3 file, as we need to seek
1556 to the very exact position to keep A/V sync.
1557 Can be slow especially when seeking backwards since it has to rewind
1558 to the beginning to find an exact frame position.
1561 .B \-idx (also see \-forceidx)
1562 Rebuilds index of files if no index was found, allowing seeking.
1563 Useful with broken/\:incomplete downloads, or badly created files.
1565 .I NOTE:
1566 This option only works if the underlying media supports seeking
1567 (i.e.\& not with stdin, pipe, etc).
1570 .B \-noidx
1571 Skip rebuilding index file.
1572 MEncoder skips writing the index with this option.
1575 .B \-ipv4\-only\-proxy (network only)
1576 Skip the proxy for IPv6 addresses.
1577 It will still be used for IPv4 connections.
1580 .B \-loadidx <index file>
1581 The file from which to read the video index data saved by \-saveidx.
1582 This index will be used for seeking, overriding any index data
1583 contained in the AVI itself.
1584 MPlayer will not prevent you from loading an index file generated
1585 from a different AVI, but this is sure to cause unfavorable results.
1587 .I NOTE:
1588 This option is obsolete now that MPlayer has OpenDML support.
1591 .B \-mc <seconds/frame>
1592 maximum A-V sync correction per frame (in seconds)
1594 \-mc 0 should always be combined with \-noskip for mencoder, otherwise
1595 it will almost certainly cause A-V desync.
1598 .B \-mf <option1:option2:...>
1599 Used when decoding from multiple PNG or JPEG files.
1600 .sp 1
1601 Available options are:
1602 .sp 1
1603 .PD 0
1604 .RSs
1605 .IPs w=<value>
1606 input file width (default: autodetect)
1607 .IPs h=<value>
1608 input file height (default: autodetect)
1609 .IPs fps=<value>
1610 output fps (default: 25)
1611 .IPs type=<value>
1612 input file type (available: jpeg, png, tga, sgi)
1614 .PD 1
1617 .B \-ni (AVI only)
1618 Force usage of non-interleaved AVI parser (fixes playback
1619 of some bad AVI files).
1622 .B \-nobps (AVI only)
1623 Do not use average byte/\:second value for A-V sync.
1624 Helps with some AVI files with broken header.
1627 .B \-noextbased
1628 Disables extension-based demuxer selection.
1629 By default, when the file type (demuxer) cannot be detected reliably
1630 (the file has no header or it is not reliable enough), the filename
1631 extension is used to select the demuxer.
1632 Always falls back on content-based demuxer selection.
1635 .B \-passwd <password> (also see \-user) (network only)
1636 Specify password for HTTP authentication.
1639 .B \-prefer\-ipv4 (network only)
1640 Use IPv4 on network connections.
1641 Falls back on IPv6 automatically.
1644 .B \-prefer\-ipv6 (IPv6 network only)
1645 Use IPv6 on network connections.
1646 Falls back on IPv4 automatically.
1649 .B \-psprobe <byte position>
1650 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1651 how many bytes in the stream you want MPlayer to scan in order to identify
1652 the video codec used.
1653 This option is needed to play EVO or VDR files containing H.264 streams.
1656 .B \-pvr <option1:option2:...> (PVR only)
1657 This option tunes various encoding properties of the PVR capture module.
1658 It has to be used with any hardware MPEG encoder based card supported by the
1659 V4L2 driver.
1660 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1661 cards are known as PVR capture cards.
1662 Be aware that only Linux 2.6.18 kernel
1663 and above is able to handle MPEG stream through V4L2 layer.
1664 For hardware capture of an MPEG stream and watching it with
1665 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1666 .sp 1
1667 Available options are:
1668 .RSs
1669 .IPs aspect=<0\-3>
1670 Specify input aspect ratio:
1671 .RSss
1672 0: 1:1
1674 1: 4:3 (default)
1676 2: 16:9
1678 3: 2.21:1
1679 .REss
1680 .IPs arate=<32000\-48000>
1681 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1682 and 48000 Hz).
1683 .IPs alayer=<1\-3>
1684 Specify MPEG audio layer encoding (default: 2).
1685 .IPs abitrate=<32\-448>
1686 Specify audio encoding bitrate in kbps (default: 384).
1687 .IPs amode=<value>
1688 Specify audio encoding mode.
1689 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1690 .IPs vbitrate=<value>
1691 Specify average video bitrate encoding in Mbps (default: 6).
1692 .IPs vmode=<value>
1693 Specify video encoding mode:
1694 .RSss
1695 vbr: Variable BitRate (default)
1697 cbr: Constant BitRate
1698 .REss
1699 .IPs vpeak=<value>
1700 Specify peak video bitrate encoding in Mbps
1701 (only useful for VBR encoding, default: 9.6).
1702 .IPs fmt=<value>
1703 Choose an MPEG format for encoding:
1704 .RSss
1705 ps:    MPEG-2 Program Stream (default)
1707 ts:    MPEG-2 Transport Stream
1709 mpeg1: MPEG-1 System Stream
1711 vcd:   Video CD compatible stream
1713 svcd:  Super Video CD compatible stream
1715 dvd:   DVD compatible stream
1716 .REss
1718 .PD 1
1721 .B \-radio <option1:option2:...> (radio only)
1722 These options set various parameters of the radio capture module.
1723 For listening to radio with MPlayer use 'radio://<frequency>'
1724 (if channels option is not given) or 'radio://<channel_number>'
1725 (if channels option is given) as a movie URL.
1726 You can see allowed frequency range by running MPlayer with '\-v'.
1727 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1728 If the capture keyword is not given you can listen to radio
1729 using the line-in cable only.
1730 Using capture to listen is not recommended due to synchronization
1731 problems, which makes this process uncomfortable.
1732 .sp 1
1733 Available options are:
1734 .RSs
1735 .IPs device=<value>
1736 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1737 .IPs driver=<value>
1738 Radio driver to use (default: v4l2 if available, otherwise v4l).
1739 Currently, v4l and v4l2 drivers are supported.
1740 .IPs volume=<0..100>
1741 sound volume for radio device (default 100)
1742 .IPs "freq_min=<value> (*BSD BT848 only)"
1743 minimum allowed frequency (default: 87.50)
1744 .IPs "freq_max=<value> (*BSD BT848 only)"
1745 maximum allowed frequency (default: 108.00)
1746 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1747 Set channel list.
1748 Use _ for spaces in names (or play with quoting ;-).
1749 The channel names will then be written using OSD and the slave commands
1750 radio_step_channel and radio_set_channel will be usable for
1751 a remote control (see LIRC).
1752 If given, number in movie URL will be treated as channel position in
1753 channel list.
1755 .I EXAMPLE:
1756 radio://1, radio://104.4, radio_set_channel 1
1757 .IPs "adevice=<value> (radio capture only)"
1758 Name of device to capture sound from.
1759 Without such a name capture will be disabled,
1760 even if the capture keyword appears in the URL.
1761 For ALSA devices use it in the form hw=<card>.<device>.
1762 If the device name contains a '=', the module will use
1763 ALSA to capture, otherwise OSS.
1764 .IPs "arate=<value> (radio capture only)"
1765 Rate in samples per second (default: 44100).
1767 .I NOTE:
1768 When using audio capture set also \-rawaudio rate=<value> option
1769 with the same value as arate.
1770 If you have problems with sound speed (runs too quickly), try to play
1771 with different rate values (e.g.\& 48000,44100,32000,...).
1772 .IPs "achannels=<value> (radio capture only)"
1773 Number of audio channels to capture.
1777 .B \-rawaudio <option1:option2:...>
1778 This option lets you play raw audio files.
1779 You have to use \-demuxer rawaudio as well.
1780 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1781 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1782 .sp 1
1783 Available options are:
1784 .sp 1
1785 .PD 0
1786 .RSs
1787 .IPs channels=<value>
1788 number of channels
1789 .IPs rate=<value>
1790 rate in samples per second
1791 .IPs samplesize=<value>
1792 sample size in bytes
1793 .IPs bitrate=<value>
1794 bitrate for rawaudio files
1795 .IPs format=<value>
1796 fourcc in hex
1798 .PD 1
1801 .B \-rawvideo <option1:option2:...>
1802 This option lets you play raw video files.
1803 You have to use \-demuxer rawvideo as well.
1804 .sp 1
1805 Available options are:
1806 .sp 1
1807 .PD 0
1808 .RSs
1809 .IPs fps=<value>
1810 rate in frames per second (default: 25.0)
1811 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1812 set standard image size
1813 .IPs w=<value>
1814 image width in pixels
1815 .IPs h=<value>
1816 image height in pixels
1817 .IPs i420|yv12|yuy2|y8
1818 set colorspace
1819 .IPs format=<value>
1820 colorspace (fourcc) in hex or string constant.
1821 Use \-rawvideo format=help for a list of possible strings.
1822 .IPs size=<value>
1823 frame size in Bytes
1824 .REss
1825 .sp 1
1827 .I EXAMPLE:
1829 .PD 0
1830 .RSs
1831 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1832 Play the famous "foreman" sample video.
1833 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1834 Play a raw YUV sample.
1836 .PD 1
1839 .B \-referrer <string> (network only)
1840 Specify a referrer path or URL for HTTP requests.
1843 .B \-rtsp\-port
1844 Used with 'rtsp://' URLs to force the client's port number.
1845 This option may be useful if you are behind a router and want to forward
1846 the RTSP stream from the server to a specific client.
1849 .B \-rtsp\-destination
1850 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1851 This option may be useful with some RTSP server which do not
1852 send RTP packets to the right interface.
1853 If the connection to the RTSP server fails, use \-v to see
1854 which IP address MPlayer tries to bind to and try to force
1855 it to one assigned to your computer instead.
1858 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1859 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1860 packets be streamed over TCP (using the same TCP connection as RTSP).
1861 This option may be useful if you have a broken internet connection that does
1862 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1865 .B \-rtsp\-stream\-over\-http (LIVE555 only)
1866 Used with 'http://' URLs to specify that the resulting incoming RTP and RTCP
1867 packets be streamed over HTTP.
1870 .B \-saveidx <filename>
1871 Force index rebuilding and dump the index to <filename>.
1872 Currently this only works with AVI files.
1874 .I NOTE:
1875 This option is obsolete now that MPlayer has OpenDML support.
1878 .B \-sb <byte position> (also see \-ss)
1879 Seek to byte position.
1880 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1883 .B \-speed <0.01\-100>
1884 Slow down or speed up playback by the factor given as parameter.
1885 Not guaranteed to work correctly with \-oac copy.
1888 .B \-srate <Hz>
1889 Select the output sample rate to be used
1890 (of course sound cards have limits on this).
1891 If the sample frequency selected is different from that
1892 of the current media, the resample or lavcresample audio filter will be inserted
1893 into the audio filter layer to compensate for the difference.
1894 The type of resampling can be controlled by the \-af\-adv option.
1895 The default is fast resampling that may cause distortion.
1898 .B \-ss <time> (also see \-sb)
1899 Seek to given time position.
1900 .sp 1
1901 .I EXAMPLE:
1902 .PD 0
1903 .RSs
1904 .IPs "\-ss 56"
1905 Seeks to 56 seconds.
1906 .IPs "\-ss 01:10:00"
1907 Seeks to 1 hour 10 min.
1909 .PD 1
1912 .B \-tskeepbroken
1913 Tells MPlayer not to discard TS packets reported as broken in the stream.
1914 Sometimes needed to play corrupted MPEG-TS files.
1917 .B \-tsprobe <byte position>
1918 When playing an MPEG-TS stream, this option lets you specify how many
1919 bytes in the stream you want MPlayer to search for the desired
1920 audio and video IDs.
1923 .B \-tsprog <1\-65534>
1924 When playing an MPEG-TS stream, you can specify with this option which
1925 program (if present) you want to play.
1926 Can be used with \-vid and \-aid.
1929 .B \-tv <option1:option2:...> (TV/\:PVR only)
1930 This option tunes various properties of the TV capture module.
1931 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1932 or even 'tv://<channel_name> (see option channels for channel_name below)
1933 as a movie URL.
1934 You can also use 'tv:///<input_id>' to start watching a
1935 movie from a composite or S-Video input (see option input for details).
1936 .sp 1
1937 Available options are:
1938 .RSs
1939 .IPs noaudio
1940 no sound
1941 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1942 If signal strength reported by device is less than this value,
1943 audio and video will be muted.
1944 In most cases automute=100 will be enough.
1945 Default is 0 (automute disabled).
1946 .IPs driver=<value>
1947 See \-tv driver=help for a list of compiled-in TV input drivers.
1948 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1949 .IPs device=<value>
1950 Specify TV device (default: /dev/\:video0).
1951 .I NOTE:
1952 For the bsdbt848 driver you can provide both bktr and tuner device
1953 names separating them with a comma, tuner after
1954 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1955 .IPs input=<value>
1956 Specify input (default: 0 (TV), see console output for available inputs).
1957 .IPs freq=<value>
1958 Specify the frequency to set the tuner to (e.g.\& 511.250).
1959 Not compatible with the channels parameter.
1960 .IPs outfmt=<value>
1961 Specify the output format of the tuner with a preset value supported by the
1962 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1963 arbitrary format given as hex value.
1964 Try outfmt=help for a list of all available formats.
1965 .IPs width=<value>
1966 output window width
1967 .IPs height=<value>
1968 output window height
1969 .IPs fps=<value>
1970 framerate at which to capture video (frames per second)
1971 .IPs buffersize=<value>
1972 maximum size of the capture buffer in megabytes (default: dynamical)
1973 .IPs norm=<value>
1974 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1975 For v4l2, see the console output for a list of all available norms,
1976 also see the normid option below.
1977 .IPs "normid=<value> (v4l2 only)"
1978 Sets the TV norm to the given numeric ID.
1979 The TV norm depends on the capture card.
1980 See the console output for a list of available TV norms.
1981 .IPs channel=<value>
1982 Set tuner to <value> channel.
1983 .IPs chanlist=<value>
1984 available: argentina, australia, china-bcast, europe-east, europe-west, france,
1985 ireland, italy, japan-bcast, japan-cable, newzealand, russia, southafrica,
1986 us-bcast, us-cable, us-cable-hrc
1987 .IPs channels=<chan>\-<name>[=<norm>],<chan>\-<name>[=<norm>],...
1988 Set names for channels.
1989 .I NOTE:
1990 If <chan> is an integer greater than 1000, it will be treated as frequency (in kHz)
1991 rather than channel name from frequency table.
1993 Use _ for spaces in names (or play with quoting ;-).
1994 The channel names will then be written using OSD, and the slave commands
1995 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1996 a remote control (see LIRC).
1997 Not compatible with the frequency parameter.
1999 .I NOTE:
2000 The channel number will then be the position in the 'channels' list,
2001 beginning with 1.
2003 .I EXAMPLE:
2004 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
2005 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
2006 Set the image equalizer on the card.
2007 .IPs audiorate=<value>
2008 Set audio capture bitrate.
2009 .IPs forceaudio
2010 Capture audio even if there are no audio sources reported by v4l.
2011 .IPs "alsa\ "
2012 Capture from ALSA.
2013 .IPs amode=<0\-3>
2014 Choose an audio mode:
2015 .RSss
2016 0: mono
2018 1: stereo
2020 2: language 1
2022 3: language 2
2023 .REss
2024 .IPs forcechan=<1\-2>
2025 By default, the count of recorded audio channels is determined automatically
2026 by querying the audio mode from the TV card.
2027 This option allows forcing stereo/\:mono recording regardless of the amode
2028 option and the values returned by v4l.
2029 This can be used for troubleshooting when the TV card is unable to report the
2030 current audio mode.
2031 .IPs adevice=<value>
2032 Set an audio device.
2033 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
2034 You must replace any ':' by a '.' in the hardware ID for ALSA.
2035 .IPs audioid=<value>
2036 Choose an audio output of the capture card, if it has more than one.
2037 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
2038 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
2039 These options set parameters of the mixer on the video capture card.
2040 They will have no effect, if your card does not have one.
2041 For v4l2 50 maps to the default value of the
2042 control, as reported by the driver.
2043 .IPs "gain=<0\-100> (v4l2)"
2044 Set gain control for video devices (usually webcams) to the desired
2045 value and switch off automatic control.
2046 A value of 0 enables automatic control.
2047 If this option is omitted, gain control will not be modified.
2048 .IPs immediatemode=<bool>
2049 A value of 0 means capture and buffer audio and video together
2050 (default for MEncoder).
2051 A value of 1 (default for MPlayer) means to do video capture only and let the
2052 audio go through a loopback cable from the TV card to the sound card.
2053 .IPs mjpeg
2054 Use hardware MJPEG compression (if the card supports it).
2055 When using this option, you do not need to specify the width and height
2056 of the output window, because MPlayer will determine it automatically
2057 from the decimation value (see below).
2058 .IPs decimation=<1|2|4>
2059 choose the size of the picture that will be compressed by hardware
2060 MJPEG compression:
2061 .RSss
2062 1: full size
2063     704x576    PAL
2064     704x480    NTSC
2066 2: medium size
2067     352x288    PAL
2068     352x240    NTSC
2070 4: small size
2071     176x144    PAL
2072     176x120    NTSC
2073 .REss
2074 .IPs quality=<0\-100>
2075 Choose the quality of the JPEG compression
2076 (< 60 recommended for full size).
2077 .IPs tdevice=<value>
2078 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
2079 .IPs tformat=<format>
2080 Specify TV teletext display format (default: 0):
2081 .RSss
2082 0: opaque
2084 1: transparent
2086 2: opaque with inverted colors
2088 3: transparent with inverted colors
2089 .REss
2090 .IPs tpage=<100\-899>
2091 Specify initial TV teletext page number (default: 100).
2092 .IPs tlang=<\-1\-127>
2093 Specify default teletext language code (default: 0), which will be used
2094 as primary language until a type 28 packet is received.
2095 Useful when the teletext system uses a non-latin character set, but language
2096 codes are not transmitted via teletext type 28 packets for some reason.
2097 To see a list of supported language codes set this option to \-1.
2098 .IPs "hidden_video_renderer (dshow only)"
2099 Terminate stream with video renderer instead of Null renderer (default: off).
2100 Will help if video freezes but audio does not.
2101 .I NOTE:
2102 May not work with \-vo directx and \-vf crop combination.
2103 .IPs "hidden_vp_renderer (dshow only)"
2104 Terminate VideoPort pin stream with video renderer
2105 instead of removing it from the graph (default: off).
2106 Useful if your card has a VideoPort pin and video is choppy.
2107 .I NOTE:
2108 May not work with \-vo directx and \-vf crop combination.
2109 .IPs "system_clock (dshow only)"
2110 Use the system clock as sync source instead of the default graph clock
2111 (usually the clock from one of the live sources in graph).
2112 .IPs "normalize_audio_chunks (dshow only)"
2113 Create audio chunks with a time length equal to
2114 video frame time length (default: off).
2115 Some audio cards create audio chunks about 0.5s in size, resulting in
2116 choppy video when using immediatemode=0.
2120 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
2121 Tune the TV channel scanner.
2122 MPlayer will also print value for "-tv channels=" option,
2123 including existing and just found channels.
2124 .sp 1
2125 Available suboptions are:
2126 .RSs
2127 .IPs autostart
2128 Begin channel scanning immediately after startup (default: disabled).
2129 .IPs period=<0.1\-2.0>
2130 Specify delay in seconds before switching to next channel (default: 0.5).
2131 Lower values will cause faster scanning, but can detect
2132 inactive TV channels as active.
2133 .IPs threshold=<1\-100>
2134 Threshold value for the signal strength (in percent), as reported
2135 by the device (default: 50).
2136 A signal strength higher than this value will indicate that the
2137 currently scanning channel is active.
2141 .B \-user <username> (also see \-passwd) (network only)
2142 Specify username for HTTP authentication.
2145 .B \-user\-agent <string>
2146 Use <string> as user agent for HTTP streaming.
2149 .B \-vid <ID>
2150 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2151 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
2152 (if present) with the chosen video stream.
2155 .B \-vivo <suboption> (DEBUG CODE)
2156 Force audio parameters for the VIVO demuxer (for debugging purposes).
2157 FIXME: Document this.
2161 .SH "OSD/SUBTITLE OPTIONS"
2162 .I NOTE:
2163 Also see \-vf expand.
2166 .B \-ass (FreeType only)
2167 Turn on SSA/ASS subtitle rendering.
2168 With this option, libass will be used for SSA/ASS
2169 external subtitles and Matroska tracks.
2171 .I NOTE:
2172 Unlike normal OSD, libass uses fontconfig by default. To disable it, use
2173 \-nofontconfig.
2176 .B \-ass\-border\-color <value>
2177 Sets the border (outline) color for text subtitles.
2178 The color format is RRGGBBAA.
2181 .B \-ass\-bottom\-margin <value>
2182 Adds a black band at the bottom of the frame.
2183 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2186 .B \-ass\-color <value>
2187 Sets the color for text subtitles.
2188 The color format is RRGGBBAA.
2191 .B \-ass\-font\-scale <value>
2192 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2195 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2196 Override some style or script info parameters.
2198 .I EXAMPLE:
2199 .PD 0
2200 .RSs
2201 \-ass\-force\-style FontName=Arial,Default.Bold=1
2203 \-ass\-force\-style PlayResY=768
2205 .PD 1
2208 .B \-ass\-hinting <type>
2209 Set hinting type.
2210 <type> can be:
2211 .PD 0
2212 .RSs
2213 .IPs 0
2214 no hinting
2215 .IPs 1
2216 FreeType autohinter, light mode
2217 .IPs 2
2218 FreeType autohinter, normal mode
2219 .IPs 3
2220 font native hinter
2221 .IPs "0-3 + 4"
2222 The same, but hinting will only be performed if the OSD is rendered at
2223 screen resolution and will therefore not be scaled.
2225 .RSs
2226 The default value is 5 (use light hinter for unscaled OSD and no hinting otherwise).
2228 .PD 1
2231 .B \-ass\-line\-spacing <value>
2232 Set line spacing value for SSA/ASS renderer.
2235 .B \-ass\-styles <filename>
2236 Load all SSA/ASS styles found in the specified file and use them for
2237 rendering text subtitles.
2238 The syntax of the file is exactly like the
2239 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2242 .B \-ass\-top\-margin <value>
2243 Adds a black band at the top of the frame.
2244 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2247 .B \-ass\-use\-margins
2248 Enables placing toptitles and subtitles in black borders when they
2249 are available.
2252 .B \-dumpjacosub (MPlayer only)
2253 Convert the given subtitle (specified with the \-sub option) to the time-based
2254 JACOsub subtitle format.
2255 Creates a dumpsub.js file in the current directory.
2258 .B \-dumpmicrodvdsub (MPlayer only)
2259 Convert the given subtitle (specified with the \-sub option) to the
2260 MicroDVD subtitle format.
2261 Creates a dumpsub.sub file in the current directory.
2264 .B \-dumpmpsub (MPlayer only)
2265 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2266 subtitle format, MPsub.
2267 Creates a dump.mpsub file in the current directory.
2270 .B \-dumpsami (MPlayer only)
2271 Convert the given subtitle (specified with the \-sub option) to the time-based
2272 SAMI subtitle format.
2273 Creates a dumpsub.smi file in the current directory.
2276 .B \-dumpsrtsub (MPlayer only)
2277 Convert the given subtitle (specified with the \-sub option) to the time-based
2278 SubViewer (SRT) subtitle format.
2279 Creates a dumpsub.srt file in the current directory.
2281 .I NOTE:
2282 Some broken hardware players choke on SRT subtitle files with Unix
2283 line endings.
2284 If you are unlucky enough to have such a box, pass your subtitle
2285 files through unix2dos or a similar program to replace Unix line
2286 endings with DOS/Windows line endings.
2289 .B \-dumpsub (MPlayer only) (BETA CODE)
2290 Dumps the subtitle substream from VOB streams.
2291 Also see the \-dump*sub and \-vobsubout* options.
2294 .B \-noembeddedfonts
2295 Disables use of fonts embedded in Matroska containers and ASS scripts (default: enabled).
2296 These fonts can be used for SSA/ASS subtitle
2297 rendering (\-ass option).
2300 .B \-ffactor <number>
2301 Resample the font alphamap.
2302 Can be:
2303 .PD 0
2304 .RSs
2305 .IPs 0
2306 plain white fonts
2307 .IPs 0.75
2308 very narrow black outline (default)
2309 .IPs 1
2310 narrow black outline
2311 .IPs 10
2312 bold black outline
2314 .PD 1
2317 .B \-flip\-hebrew (FriBiDi only)
2318 Turns on flipping subtitles using FriBiDi.
2321 .B \-noflip\-hebrew\-commas
2322 Change FriBiDi's assumptions about the placements of commas in subtitles.
2323 Use this if commas in subtitles are shown at the start of a sentence
2324 instead of at the end.
2327 .B \-font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
2328 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2329 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2330 ~/.mplayer/\:subfont.ttf).
2332 .I NOTE:
2333 With FreeType, this option determines the path to the text font file.
2334 With Fontconfig, this option determines the Fontconfig font pattern.
2335 .sp 1
2336 .I EXAMPLE:
2337 .PD 0
2338 .RSs
2339 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2341 \-font ~/\:.mplayer/\:arialuni.ttf
2343 \-font 'Bitstream Vera Sans'
2345 \-font 'Bitstream Vera Sans:style=Bold'
2347 .PD 1
2350 .B \-fontconfig (fontconfig only)
2351 Enables the usage of fontconfig managed fonts.
2353 .I NOTE:
2354 By default fontconfig is used for libass-rendered subtitles and not used for
2355 OSD. With \-fontconfig it is used for both libass and OSD, with \-nofontconfig
2356 it is not used at all.
2359 .B \-forcedsubsonly
2360 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2361 \-slang.
2364 .B \-fribidi\-charset <charset name> (FriBiDi only)
2365 Specifies the character set that will be passed to FriBiDi when
2366 decoding non-UTF-8 subtitles (default: ISO8859-8).
2369 .B \-ifo <VOBsub IFO file>
2370 Indicate the file that will be used to load palette and frame size for VOBsub
2371 subtitles.
2374 .B \-noautosub
2375 Turns off automatic subtitle file loading.
2378 .B \-osd\-duration <time>
2379 Set the duration of the OSD messages in ms (default: 1000).
2382 .B \-osdlevel <0\-3> (MPlayer only)
2383 Specifies which mode the OSD should start in.
2384 .PD 0
2385 .RSs
2386 .IPs 0
2387 subtitles only
2388 .IPs 1
2389 volume + seek (default)
2390 .IPs 2
2391 volume + seek + timer + percentage
2392 .IPs 3
2393 volume + seek + timer + percentage + total time
2395 .PD 1
2398 .B \-overlapsub
2399 Allows the next subtitle to be displayed while the current one is
2400 still visible (default is to enable the support only for specific
2401 formats).
2404 .B \-sid <ID> (also see \-slang, \-vobsubid)
2405 Display the subtitle stream specified by <ID> (0\-31).
2406 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2407 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2410 .B \-nosub
2411 Disables any otherwise auto-selected internal subtitles (as e.g.\& the Matroska/mkv
2412 demuxer supports).
2413 Use \-noautosub to disable the loading of external subtitle files.
2416 .B \-slang <language code[,language code,...]> (also see \-sid)
2417 Specify a priority list of subtitle languages to use.
2418 Different container formats employ different language codes.
2419 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2420 three letter language codes while OGM uses a free-form identifier.
2421 MPlayer prints the available languages when run in verbose (\-v) mode.
2422 .sp 1
2423 .I EXAMPLE:
2424 .PD 0
2425 .RSs
2426 .IPs "mplayer dvd://1 \-slang hu,en"
2427 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2428 Hungarian is not available.
2429 .IPs "mplayer \-slang jpn example.mkv"
2430 Plays a Matroska file with Japanese subtitles.
2432 .PD 1
2435 .B \-spuaa <mode>
2436 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2437 A value of 16 may be added to <mode> in order to force scaling even
2438 when original and scaled frame size already match.
2439 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2440 Available modes are:
2441 .PD 0
2442 .RSs
2443 .IPs 0
2444 none (fastest, very ugly)
2445 .IPs 1
2446 approximate (broken?)
2447 .IPs 2
2448 full (slow)
2449 .IPs 3
2450 bilinear (default, fast and not too bad)
2451 .IPs 4
2452 uses swscaler gaussian blur (looks very good)
2454 .PD 1
2457 .B \-spualign <\-1\-2>
2458 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2459 .PD 0
2460 .RSs
2461 .IPs "\-1"
2462 original position
2463 .IPs " 0"
2464 Align at top (original behavior, default).
2465 .IPs " 1"
2466 Align at center.
2467 .IPs " 2"
2468 Align at bottom.
2470 .PD 1
2473 .B \-spugauss <0.0\-3.0>
2474 Variance parameter of gaussian used by \-spuaa 4.
2475 Higher means more blur (default: 1.0).
2478 .B \-sub <subtitlefile1,subtitlefile2,...>
2479 Use/\:display these subtitle files.
2480 Only one file can be displayed at the same time.
2483 .B \-sub\-bg\-alpha <0\-255>
2484 Specify the alpha channel value for subtitles and OSD backgrounds.
2485 Big values mean more transparency.
2486 0 means completely transparent.
2489 .B \-sub\-bg\-color <0\-255>
2490 Specify the color value for subtitles and OSD backgrounds.
2491 Currently subtitles are grayscale so this value is equivalent to the
2492 intensity of the color.
2493 255 means white and 0 black.
2496 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2497 Force subtitle demuxer type for \-subfile.
2498 Use a '+' before the name to force it, this will skip some checks!
2499 Give the demuxer name as printed by \-sub\-demuxer help.
2500 For backward compatibility it also accepts the demuxer ID as defined in
2501 subreader.h.
2504 .B \-sub\-fuzziness <mode>
2505 Adjust matching fuzziness when searching for subtitles:
2506 .PD 0
2507 .RSs
2508 .IPs 0
2509 exact match
2510 .IPs 1
2511 Load all subs containing movie name.
2512 .IPs 2
2513 Load all subs in the current directory.
2515 .PD 1
2518 .B \-sub\-no\-text\-pp
2519 Disables any kind of text post processing done after loading the subtitles.
2520 Used for debug purposes.
2523 .B \-subalign <0\-2>
2524 Specify which edge of the subtitles should be aligned at the height
2525 given by \-subpos.
2526 .PD 0
2527 .RSs
2528 .IPs 0
2529 Align subtitle top edge (original behavior).
2530 .IPs 1
2531 Align subtitle center.
2532 .IPs 2
2533 Align subtitle bottom edge (default).
2535 .PD 1
2538 .B "\-subcc <1\-4>\ "
2539 Display DVD Closed Caption (CC) subtitles from the specified channel.
2540 These are
2541 .B not
2542 the VOB subtitles, these are special ASCII subtitles for the
2543 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2544 CC subtitles have not been spotted on DVDs from other regions so far.
2547 .B \-subcp <codepage> (iconv only)
2548 If your system supports iconv(3), you can use this option to
2549 specify the subtitle codepage.
2550 .sp 1
2551 .I EXAMPLE:
2552 .PD 0
2553 .RSs
2554 \-subcp latin2
2556 \-subcp cp1250
2558 .PD 1
2561 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2562 You can specify your language using a two letter language code to
2563 make ENCA detect the codepage automatically.
2564 If unsure, enter anything and watch mplayer \-v output for available
2565 languages.
2566 Fallback codepage specifies the codepage to use, when autodetection fails.
2567 .sp 1
2568 .I EXAMPLE:
2569 .PD 0
2570 .RSs
2571 .IPs "\-subcp enca:cs:latin2"
2572 Guess the encoding, assuming the subtitles are Czech, fall back on
2573 latin 2, if the detection fails.
2574 .IPs "\-subcp enca:pl:cp1250"
2575 Guess the encoding for Polish, fall back on cp1250.
2577 .PD 1
2580 .B \-subdelay <sec>
2581 Delays subtitles by <sec> seconds.
2582 Can be negative.
2585 .B \-subfile <filename> (BETA CODE)
2586 Currently useless.
2587 Same as \-audiofile, but for subtitle streams (OggDS?).
2590 .B \-subfont <path to font (FreeType), font pattern (Fontconfig)> (FreeType only)
2591 Sets the subtitle font (see \-font).
2592 If no \-subfont is given, \-font is used.
2595 .B \-subfont\-autoscale <0\-3> (FreeType only)
2596 Sets the autoscale mode.
2598 .I NOTE:
2599 0 means that text scale and OSD scale are font heights in points.
2600 .sp 1
2601 The mode can be:
2602 .sp 1
2603 .PD 0
2604 .RSs
2605 .IPs 0
2606 no autoscale
2607 .IPs 1
2608 proportional to movie height
2609 .IPs 2
2610 proportional to movie width
2611 .IPs 3
2612 proportional to movie diagonal (default)
2614 .PD 1
2617 .B \-subfont\-blur <0\-8> (FreeType only)
2618 Sets the font blur radius (default: 2).
2621 .B \-subfont\-encoding <value> (FreeType only)
2622 Sets the font encoding.
2623 When set to 'unicode', all the glyphs from the font file will be rendered and
2624 unicode will be used (default: unicode).
2627 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2628 Sets the autoscale coefficient of the OSD elements (default: 6).
2631 .B \-subfont\-outline <0\-8> (FreeType only)
2632 Sets the font outline thickness (default: 2).
2635 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2636 Sets the subtitle text autoscale coefficient as percentage of the
2637 screen size (default: 5).
2640 .B \-subfps <rate>
2641 Specify the framerate of the subtitle file (default: movie fps).
2643 .I NOTE:
2644 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2645 slows them down for time-based ones.
2648 .B \-subpos <0\-100> (useful with \-vf expand)
2649 Specify the position of subtitles on the screen.
2650 The value is the vertical position of the subtitle in % of the screen height.
2653 .B \-subwidth <10\-100>
2654 Specify the maximum width of subtitles on the screen.
2655 Useful for TV-out.
2656 The value is the width of the subtitle in % of the screen width.
2659 .B \-noterm\-osd
2660 Disable the display of OSD messages on the console when no video output is
2661 available.
2664 .B \-term\-osd\-esc <escape sequence>
2665 Specify the escape sequence to use before writing an OSD message on the
2666 console.
2667 The escape sequence should move the pointer to the beginning of the line
2668 used for the OSD and clear it (default: ^[[A\\r^[[K).
2671 .B \-unicode
2672 Tells MPlayer to handle the subtitle file as unicode.
2675 .B \-unrarexec <path to unrar executable> (not supported on MingW)
2676 Specify the path to the unrar executable so MPlayer can use it to access
2677 rar-compressed VOBsub files (default: not set, so the feature is off).
2678 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2681 .B "\-utf8 \ \ "
2682 Tells MPlayer to handle the subtitle file as UTF-8.
2685 .B \-vobsub <VOBsub file without extension>
2686 Specify a VOBsub file to use for subtitles.
2687 Has to be the full pathname without extension, i.e.\& without
2688 the '.idx', '.ifo' or '.sub'.
2691 .B \-vobsubid <0\-31>
2692 Specify the VOBsub subtitle ID.
2696 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2699 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2700 Override audio driver/\:card buffer size detection.
2703 .B \-format <format> (also see the format audio filter)
2704 Select the sample format used for output from the audio filter
2705 layer to the sound card.
2706 The values that <format> can adopt are listed below in the
2707 description of the format audio filter.
2710 .B \-gapless\-audio
2711 Try to play consecutive audio files with no silence or disruption
2712 at the point of file change.
2713 This feature is implemented in a simple manner and relies on audio output
2714 device buffering to continue playback while moving from one file to another.
2715 If playback of the new file starts slowly, for example because it's played from
2716 a remote network location or because you have specified cache settings that
2717 require time for the initial cache fill, then the buffered audio may run out
2718 before playback of the new file can start.
2721 .B \-mixer <device>
2722 Use a mixer device different from the default /dev/\:mixer.
2723 For ALSA this is the mixer name.
2726 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2727 This option will tell MPlayer to use a different channel for controlling
2728 volume than the default PCM.
2729 Options for OSS include
2730 .B vol, pcm, line.
2731 For a complete list of options look for SOUND_DEVICE_NAMES in
2732 /usr/\:include/\:linux/\:soundcard.h.
2733 For ALSA you can use the names e.g.\& alsamixer displays, like
2734 .B Master, Line, PCM.
2736 .I NOTE:
2737 ALSA mixer channel names followed by a number must be specified in the
2738 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2739 be converted to
2740 .BR PCM,1 .
2743 .B \-softvol
2744 Force the use of the software mixer, instead of using the sound card
2745 mixer.
2748 .B \-softvol\-max <10.0\-10000.0>
2749 Set the maximum amplification level in percent (default: 110).
2750 A value of 200 will allow you to adjust the volume up to a maximum of
2751 double the current level.
2752 With values below 100 the initial volume (which is 100%) will be above
2753 the maximum, which e.g.\& the OSD cannot display correctly.
2756 .B \-volstep <0\-100>
2757 Set the step size of mixer volume changes in percent of the whole range
2758 (default: 3).
2761 .B \-volume <-1\-100> (also see \-af volume)
2762 Set the startup volume in the mixer, either hardware or software (if
2763 used with \-softvol).
2764 A value of -1 (the default) will not change the volume.
2768 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2769 Audio output drivers are interfaces to different audio output facilities.
2770 The syntax is:
2773 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2774 Specify a priority list of audio output drivers to be used.
2776 If the list has a trailing ',' MPlayer will fall back on drivers not
2777 contained in the list.
2778 Suboptions are optional and can mostly be omitted.
2780 .I NOTE:
2781 See \-ao help for a list of compiled-in audio output drivers.
2782 .sp 1
2783 .I EXAMPLE:
2784 .PD 0
2785 .RSs
2786 .IPs "\-ao alsa,oss,"
2787 Try the ALSA driver, then the OSS driver, then others.
2788 .IPs "\-ao alsa:noblock:device=hw=0.3"
2789 Sets noblock-mode and the device-name as first card, fourth device.
2791 .PD 1
2792 .sp 1
2793 Available audio output drivers are:
2796 .B "alsa\ \ \ "
2797 ALSA 0.9/1.x audio output driver
2798 .PD 0
2799 .RSs
2800 .IPs noblock
2801 Sets noblock-mode.
2802 .IPs device=<device>
2803 Sets the device name.
2804 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2805 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2806 you really know how to set it correctly.
2808 .PD 1
2811 .B "alsa5\ \ "
2812 ALSA 0.5 audio output driver
2815 .B "oss\ \ \ \ "
2816 OSS audio output driver
2817 .PD 0
2818 .RSs
2819 .IPs <dsp-device>
2820 Sets the audio output device (default: /dev/\:dsp).
2821 .IPs <mixer-device>
2822 Sets the audio mixer device (default: /dev/\:mixer).
2823 .IPs <mixer-channel>
2824 Sets the audio mixer channel (default: pcm).
2826 .PD 1
2829 .B sdl (SDL only)
2830 highly platform independent SDL (Simple Directmedia Layer) library
2831 audio output driver
2832 .PD 0
2833 .RSs
2834 .IPs <driver>
2835 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2837 .PD 1
2840 .B "arts\ \ \ "
2841 audio output through the aRts daemon
2844 .B "esd\ \ \ \ "
2845 audio output through the ESD daemon
2846 .PD 0
2847 .RSs
2848 .IPs <server>
2849 Explicitly choose the ESD server to use (default: localhost).
2851 .PD 1
2854 .B "jack\ \ \ \ "
2855 audio output through JACK (Jack Audio Connection Kit)
2856 .PD 0
2857 .RSs
2858 .IPs port=<name>
2859 Connects to the ports with the given name (default: physical ports).
2860 .IPs name=<client name>
2861 Client name that is passed to JACK (default: MPlayer [<PID>]).
2862 Useful if you want to have certain connections established automatically.
2863 .IPs (no)estimate
2864 Estimate the audio delay, supposed to make the video playback smoother
2865 (default: enabled).
2866 .IPs (no)autostart
2867 Automatically start jackd if necessary (default: disabled).
2868 Note that this seems unreliable and will spam stdout with server messages.
2870 .PD 1
2873 .B "nas\ \ \ \ "
2874 audio output through NAS
2877 .B coreaudio (Mac OS X only)
2878 native Mac OS X audio output driver
2879 .PD 0
2880 .RSs
2881 .IPs device_id=<id>
2882 ID of output device to use (0 = default device)
2883 .IPs help
2884 List all available output devices with their IDs.
2886 .PD 1
2889 .B "openal\ "
2890 Experimental OpenAL audio output driver
2893 .B "pulse\ \ "
2894 PulseAudio audio output driver
2895 .PD 0
2896 .RSs
2897 .IPs "[<host>][:<output sink>]"
2898 Specify the host and optionally output sink to use.
2899 An empty <host> string uses a local connection, "localhost"
2900 uses network transfer (most likely not what you want).
2902 .PD 1
2905 .B sgi (SGI only)
2906 native SGI audio output driver
2907 .PD 0
2908 .RSs
2909 .IPs "<output device name>"
2910 Explicitly choose the output device/\:interface to use
2911 (default: system-wide default).
2912 For example, 'Analog Out' or 'Digital Out'.
2914 .PD 1
2917 .B sun (Sun only)
2918 native Sun audio output driver
2919 .PD 0
2920 .RSs
2921 .IPs <device>
2922 Explicitly choose the audio device to use (default: /dev/\:audio).
2924 .PD 1
2927 .B win32 (Windows only)
2928 native Windows waveout audio output driver
2931 .B dsound (Windows only)
2932 DirectX DirectSound audio output driver
2933 .PD 0
2934 .RSs
2935 .IPs device=<devicenum>
2936 Sets the device number to use.
2937 Playing a file with \-v will show a list of available devices.
2939 .PD 1
2942 .B kai (OS/2 only)
2943 OS/2 KAI audio output driver
2944 .PD 0
2945 .RSs
2946 .IPs uniaud
2947 Force UNIAUD mode.
2948 .IPs dart
2949 Force DART mode.
2950 .IPs (no)share
2951 Open audio in shareable or exclusive mode.
2952 .IPs bufsize=<size>
2953 Set buffer size to <size> in samples (default: 2048).
2955 .PD 1
2958 .B dart (OS/2 only)
2959 OS/2 DART audio output driver
2960 .PD 0
2961 .RSs
2962 .IPs (no)share
2963 Open DART in shareable or exclusive mode.
2964 .IPs bufsize=<size>
2965 Set buffer size to <size> in samples (default: 2048).
2967 .PD 1
2970 .B dxr2 (also see \-dxr2) (DXR2 only)
2971 Creative DXR2 specific output driver
2974 .B ivtv (IVTV only)
2975 IVTV specific MPEG audio output driver.
2976 Works with \-ac hwmpa only.
2979 .B v4l2 (requires Linux 2.6.22+ kernel)
2980 Audio output driver for V4L2 cards with hardware MPEG decoder.
2983 .B mpegpes (DVB only)
2984 Audio output driver for DVB cards that writes the output to an MPEG-PES
2985 file if no DVB card is installed.
2986 .PD 0
2987 .RSs
2988 .IPs card=<1\-4>
2989 DVB card to use if more than one card is present.
2990 If not specified MPlayer will search the first usable card.
2991 .IPs file=<filename>
2992 output filename
2994 .PD 1
2997 .B "null\ \ \ "
2998 Produces no audio output but maintains video playback speed.
2999 Use \-nosound for benchmarking.
3002 .B "pcm\ \ \ \ "
3003 raw PCM/wave file writer audio output
3004 .PD 0
3005 .RSs
3006 .IPs (no)waveheader
3007 Include or do not include the wave header (default: included).
3008 When not included, raw PCM will be generated.
3009 .IPs file=<filename>
3010 Write the sound to <filename> instead of the default
3011 audiodump.wav.
3012 If nowaveheader is specified, the default is audiodump.pcm.
3013 .IPs "fast\ "
3014 Try to dump faster than realtime.
3015 Make sure the output does not get truncated (usually with
3016 "Too many video packets in buffer" message).
3017 It is normal that you get a "Your system is too SLOW to play this!" message.
3019 .PD 1
3022 .B "plugin\ \ "
3023 plugin audio output driver
3027 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
3030 .B \-adapter <value>
3031 Set the graphics card that will receive the image.
3032 You can get a list of available cards when you run this option with \-v.
3033 Currently only works with the directx video output driver.
3036 .B \-bpp <depth>
3037 Override the autodetected color depth.
3038 Only supported by the fbdev, dga, svga, vesa video output drivers.
3041 .B \-border
3042 Play movie with window border and decorations.
3043 Since this is on by default, use \-noborder to disable the standard window
3044 decorations.
3047 .B \-brightness <\-100\-100>
3048 Adjust the brightness of the video signal (default: 0).
3049 Not supported by all video output drivers.
3052 .B \-contrast <\-100\-100>
3053 Adjust the contrast of the video signal (default: 0).
3054 Not supported by all video output drivers.
3057 .B \-display <name> (X11 only)
3058 Specify the hostname and display number of the X server you want to display
3060 .sp 1
3061 .I EXAMPLE:
3062 .PD 0
3063 .RSs
3064 \-display xtest.localdomain:0
3066 .PD 1
3069 .B "\-dr \ \ \ "
3070 Turns on direct rendering (not supported by all codecs and video outputs)
3072 .I WARNING:
3073 May cause OSD/SUB corruption!
3076 .B \-dxr2 <option1:option2:...>
3077 This option is used to control the dxr2 video output driver.
3078 .RSs
3079 .IPs ar-mode=<value>
3080 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
3081 .IPs iec958-encoded
3082 Set iec958 output mode to encoded.
3083 .IPs iec958-decoded
3084 Set iec958 output mode to decoded (default).
3085 .IPs macrovision=<value>
3086 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
3087 3 = agc 4 colorstripe)
3088 .IPs "mute\ "
3089 mute sound output
3090 .IPs unmute
3091 unmute sound output
3092 .IPs ucode=<value>
3093 path to the microcode
3096 .sp 1
3097 .I TV output
3099 .RSs
3100 .IPs 75ire
3101 enable 7.5 IRE output mode
3102 .IPs no75ire
3103 disable 7.5 IRE output mode (default)
3104 .IPs "bw\ \ \ "
3105 b/w TV output
3106 .IPs color
3107 color TV output (default)
3108 .IPs interlaced
3109 interlaced TV output (default)
3110 .IPs nointerlaced
3111 disable interlaced TV output
3112 .IPs norm=<value>
3113 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
3114 .IPs square-pixel
3115 set pixel mode to square
3116 .IPs ccir601-pixel
3117 set pixel mode to ccir601
3120 .sp 1
3121 .I overlay
3123 .RSs
3124 .IPs cr-left=<0\-500>
3125 Set the left cropping value (default: 50).
3126 .IPs cr-right=<0\-500>
3127 Set the right cropping value (default: 300).
3128 .IPs cr-top=<0\-500>
3129 Set the top cropping value (default: 0).
3130 .IPs cr-bottom=<0\-500>
3131 Set the bottom cropping value (default: 0).
3132 .IPs ck-[r|g|b]=<0\-255>
3133 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
3134 .IPs ck-[r|g|b]min=<0\-255>
3135 minimum value for the respective color key
3136 .IPs ck-[r|g|b]max=<0\-255>
3137 maximum value for the respective color key
3138 .IPs ignore-cache
3139 Ignore cached overlay settings.
3140 .IPs update-cache
3141 Update cached overlay settings.
3142 .IPs ol-osd
3143 Enable overlay onscreen display.
3144 .IPs nool-osd
3145 Disable overlay onscreen display (default).
3146 .IPs ol[h|w|x|y]-cor=<\-20\-20>
3147 Adjust the overlay size (h,w) and position (x,y) in case it does not
3148 match the window perfectly (default: 0).
3149 .IPs overlay
3150 Activate overlay (default).
3151 .IPs nooverlay
3152 Activate TV-out.
3153 .IPs overlay-ratio=<1\-2500>
3154 Tune the overlay (default: 1000).
3158 .B \-fbmode <modename> (\-vo fbdev only)
3159 Change video mode to the one that is labeled as <modename> in
3160 /etc/\:fb.modes.
3162 .I NOTE:
3163 VESA framebuffer does not support mode changing.
3166 .B \-fbmodeconfig <filename> (\-vo fbdev only)
3167 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
3170 .B \-force\-window\-position
3171 Forcefully move MPlayer's video output window to default location whenever
3172 there is a change in video parameters, video stream or file.
3173 This used to be the default behavior.
3174 Currently only affects X11 VOs.
3177 .B \-fs (also see \-zoom)
3178 Fullscreen playback (centers movie, and paints black bands around it).
3179 Not supported by all video output drivers.
3182 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3183 Try this option if you still experience fullscreen problems.
3186 .B \-fstype <type1,type2,...> (X11 only)
3187 Specify a priority list of fullscreen modes to be used.
3188 You can negate the modes by prefixing them with '\-'.
3189 If you experience problems like the fullscreen window being covered
3190 by other windows try using a different order.
3192 .I NOTE:
3193 See \-fstype help for a full list of available modes.
3194 .sp 1
3195 The available types are:
3196 .sp 1
3197 .PD 0
3198 .RSs
3199 .IPs above
3200 Use the _NETWM_STATE_ABOVE hint if available.
3201 .IPs below
3202 Use the _NETWM_STATE_BELOW hint if available.
3203 .IPs fullscreen
3204 Use the _NETWM_STATE_FULLSCREEN hint if available.
3205 .IPs layer
3206 Use the _WIN_LAYER hint with the default layer.
3207 .IPs layer=<0...15>
3208 Use the _WIN_LAYER hint with the given layer number.
3209 .IPs netwm
3210 Force NETWM style.
3211 .IPs "none\ "
3212 Clear the list of modes; you can add modes to enable afterward.
3213 .IPs stays_on_top
3214 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3215 .REss
3216 .sp 1
3218 .I EXAMPLE:
3220 .PD 0
3221 .RSs
3222 .IPs layer,stays_on_top,above,fullscreen
3223 Default order, will be used as a fallback if incorrect or
3224 unsupported modes are specified.
3225 .IPs \-fullscreen
3226 Fixes fullscreen switching on OpenBox 1.x.
3228 .PD 1
3231 .B \-geometry x[%][:y[%]] or [WxH][+-x+-y]
3232 Adjust where the output is on the screen initially.
3233 The x and y specifications are in pixels measured from the top-left of the
3234 screen to the top-left of the image being displayed, however if a percentage
3235 sign is given after the argument it turns the value into a percentage of the
3236 screen size in that direction.
3237 It also supports the standard X11 \-geometry option format, in which e.g.
3238 +10-50 means "place 10 pixels from the left border and 50 pixels from the lower
3239 border" and "--20+-10" means "place 20 pixels beyond the right and 10 pixels
3240 beyond the top border".
3241 If an external window is specified using the \-wid option, then the x and
3242 y coordinates are relative to the top-left corner of the window rather
3243 than the screen.
3244 The coordinates are relative to the screen given with \-xineramascreen for
3245 the video output drivers that fully support \-xineramascreen (direct3d, gl, gl2,
3246 vdpau, x11, xv, xvmc, corevideo).
3248 .I NOTE:
3249 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
3250 gl, gl2, directx, fbdev, tdfxfb and corevideo video output drivers.
3251 .sp 1
3252 .I EXAMPLE:
3253 .PD 0
3254 .RSs
3255 .IPs 50:40
3256 Places the window at x=50, y=40.
3257 .IPs 50%:50%
3258 Places the window in the middle of the screen.
3259 .IPs "100%\ "
3260 Places the window at the middle of the right edge of the screen.
3261 .IPs 100%:100%
3262 Places the window at the bottom right corner of the screen.
3264 .PD 1
3267 .B \-hue <\-100\-100>
3268 Adjust the hue of the video signal (default: 0).
3269 You can get a colored negative of the image with this option.
3270 Not supported by all video output drivers.
3273 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3274 Specify the dotclock or pixelclock range of the monitor.
3277 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3278 Specify the horizontal frequency range of the monitor.
3281 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3282 Specify the vertical frequency range of the monitor.
3285 .B \-monitoraspect <ratio> (also see \-aspect)
3286 Set the aspect ratio of your monitor or TV screen.
3287 A value of 0 disables a previous setting (e.g.\& in the config file).
3288 Overrides the \-monitorpixelaspect setting if enabled.
3289 .sp 1
3290 .I EXAMPLE:
3291 .PD 0
3292 .RSs
3293 \-monitoraspect 4:3  or 1.3333
3295 \-monitoraspect 16:9 or 1.7777
3297 .PD 1
3300 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3301 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3302 A value of 1 means square pixels
3303 (correct for (almost?) all LCDs).
3306 .B \-name (X11 only)
3307 Set the window class name.
3310 .B \-nodouble
3311 Disables double buffering, mostly for debugging purposes.
3312 Double buffering fixes flicker by storing two frames in memory, and
3313 displaying one while decoding another.
3314 It can affect OSD negatively, but often removes OSD flickering.
3317 .B \-nograbpointer
3318 Do not grab the mouse pointer after a video mode change (\-vm).
3319 Useful for multihead setups.
3322 .B \-nokeepaspect
3323 Do not keep window aspect ratio when resizing windows.
3324 By default MPlayer tries to keep the correct video aspect ratio by
3325 instructing the window manager to maintain window aspect when resizing,
3326 and by adding black bars if the window manager nevertheless allows
3327 window shape to change.
3328 This option disables window manager aspect hints and scales the video
3329 to completely fill the window without regard for aspect ratio.
3332 .B "\-ontop\ "
3333 Makes the player window stay on top of other windows.
3334 Supported by video output drivers which use X11, except SDL,
3335 as well as directx, corevideo, quartz, ggi and gl2.
3338 .B \-panscan <0.0\-1.0>
3339 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3340 movie to make it fit a 4:3 display without black bands).
3341 The range controls how much of the image is cropped.
3342 Only works with the xv, xmga, mga, gl, gl2, quartz, corevideo and xvidix
3343 video output drivers.
3345 .I NOTE:
3346 Values between \-1 and 0 are allowed as well, but highly experimental
3347 and may crash or worse.
3348 Use at your own risk!
3351 .B \-panscanrange <\-19.0\-99.0> (experimental)
3352 Change the range of the pan-and-scan functionality (default: 1).
3353 Positive values mean multiples of the default range.
3354 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3355 E.g.\& \-panscanrange \-3 allows a zoom factor of up to 4.
3356 This feature is experimental.
3357 Do not report bugs unless you are using \-vo gl.
3360 .B \-refreshrate <Hz>
3361 Set the monitor refreshrate in Hz.
3362 Currently only supported by \-vo directx combined with the \-vm option.
3365 .B \-rootwin
3366 Play movie in the root window (desktop background).
3367 Desktop background images may cover the movie window, though.
3368 Only works with the x11, xv, xmga, xvidix, quartz, corevideo and directx video output drivers.
3371 .B \-saturation <\-100\-100>
3372 Adjust the saturation of the video signal (default: 0).
3373 You can get grayscale output with this option.
3374 Not supported by all video output drivers.
3377 .B \-screenh <pixels>
3378 Specify the screen height for video output drivers which
3379 do not know the screen resolution like fbdev, x11 and TV-out.
3382 .B \-screenw <pixels>
3383 Specify the screen width for video output drivers which
3384 do not know the screen resolution like fbdev, x11 and TV-out.
3387 .B \-stop\-xscreensaver (X11 only)
3388 Turns off xscreensaver at startup and turns it on again on exit.
3389 If your screensaver supports neither the XSS nor XResetScreenSaver
3390 API please use \-heartbeat\-cmd instead.
3393 .B \-title (also see \-use\-filename\-title)
3394 Set the window title.
3395 Supported by X11-based video output drivers.
3398 .B \-use\-filename\-title (also see \-title)
3399 Set the window title using the media filename, when not set with \-title.
3400 Supported by X11-based video output drivers.
3403 .B "\-vm \ \ \ "
3404 Try to change to a different video mode.
3405 Supported by the dga, x11, xv, sdl and directx video output drivers.
3406 If used with the directx video output driver the \-screenw,
3407 \-screenh, \-bpp and \-refreshrate options can be used to set
3408 the new display mode.
3411 .B "\-vsync \ \ "
3412 Enables VBI for the vesa, dfbmga and svga video output drivers.
3415 .B \-wid <window ID> (X11, OpenGL and DirectX only)
3416 This tells MPlayer to attach to an existing window.
3417 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3418 This option fills the given window completely, thus aspect scaling,
3419 panscan, etc are no longer handled by MPlayer but must be managed by the
3420 application that created the window.
3423 .B \-xineramascreen <\-2\-...>
3424 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3425 displays) this option tells MPlayer which screen to display the movie on.
3426 A value of \-2 means fullscreen across the whole virtual display (in this case
3427 Xinerama information is completely ignored), \-1 means
3428 fullscreen on the display the window currently is on.
3429 The initial position set via the \-geometry option is relative to the
3430 specified screen.
3431 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3432 This option is not suitable to only set the startup screen (because
3433 it will always display on the given screen in fullscreen mode),
3434 \-geometry is the best that is available for that purpose
3435 currently.
3436 Supported by at least the direct3d, gl, gl2, x11, xv and corevideo video output
3437 drivers.
3440 .B \-zrbw (\-vo zr only)
3441 Display in black and white.
3442 For optimal performance, this can be combined with '\-lavdopts gray'.
3445 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3446 Select a part of the input image to display, multiple occurrences
3447 of this option switch on cinerama mode.
3448 In cinerama mode the movie is distributed over more than one TV
3449 (or beamer) to create a larger image.
3450 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3451 card should at least have a \-zrdev in addition to the \-zrcrop.
3452 For examples, see the output of \-zrhelp and the Zr section of the
3453 documentation.
3456 .B \-zrdev <device> (\-vo zr only)
3457 Specify the device special file that belongs to your MJPEG card, by default
3458 the zr video output driver takes the first v4l device it can find.
3461 .B \-zrfd (\-vo zr only)
3462 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3463 happens if the hardware scaler can stretch the image to its original size.
3464 Use this option to force decimation.
3467 .B \-zrhdec <1|2|4> (\-vo zr only)
3468 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3469 line/\:pixel of the input image to the MJPEG card and use the scaler
3470 of the MJPEG card to stretch the image to its original size.
3473 .B \-zrhelp (\-vo zr only)
3474 Display a list of all \-zr* options, their default values and a
3475 cinerama mode example.
3478 .B \-zrnorm <norm> (\-vo zr only)
3479 Specify the TV norm as PAL or NTSC (default: no change).
3482 .B \-zrquality <1\-20> (\-vo zr only)
3483 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3486 .B \-zrvdec <1|2|4> (\-vo zr only)
3487 Vertical decimation: Ask the driver to send only every 2nd or 4th
3488 line/\:pixel of the input image to the MJPEG card and use the scaler
3489 of the MJPEG card to stretch the image to its original size.
3492 .B \-zrxdoff <x display offset> (\-vo zr only)
3493 If the movie is smaller than the TV screen, this option specifies the x
3494 offset from the upper-left corner of the TV screen (default: centered).
3497 .B \-zrydoff <y display offset> (\-vo zr only)
3498 If the movie is smaller than the TV screen, this option specifies the y
3499 offset from the upper-left corner of the TV screen (default: centered).
3503 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3504 Video output drivers are interfaces to different video output facilities.
3505 The syntax is:
3508 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3509 Specify a priority list of video output drivers to be used.
3511 If the list has a trailing ',' MPlayer will fall back on drivers not
3512 contained in the list.
3513 Suboptions are optional and can mostly be omitted.
3515 .I NOTE:
3516 See \-vo help for a list of compiled-in video output drivers.
3517 .sp 1
3518 .I EXAMPLE:
3519 .PD 0
3520 .RSs
3521 .IPs "\-vo xmga,xv,"
3522 Try the Matrox X11 driver, then the Xv driver, then others.
3523 .IPs "\-vo directx:noaccel"
3524 Uses the DirectX driver with acceleration features turned off.
3526 .PD 1
3527 .sp 1
3528 Available video output drivers are:
3531 .B xv (X11 only)
3532 Uses the XVideo extension of XFree86 4.x to enable hardware
3533 accelerated playback.
3534 If you cannot use a hardware specific driver, this is probably
3535 the best option.
3536 For information about what colorkey is used and how it is drawn run MPlayer
3537 with \-v option and look out for the lines tagged with [xv common] at the
3538 beginning.
3539 .PD 0
3540 .RSs
3541 .IPs adaptor=<number>
3542 Select a specific XVideo adaptor (check xvinfo results).
3543 .IPs port=<number>
3544 Select a specific XVideo port.
3545 .IPs ck=<cur|use|set>
3546 Select the source from which the colorkey is taken (default: cur).
3547 .RSss
3548 .IPs cur
3549 The default takes the colorkey currently set in Xv.
3550 .IPs use
3551 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3552 it).
3553 .IPs set
3554 Same as use but also sets the supplied colorkey.
3556 .IPs ck-method=<man|bg|auto>
3557 Sets the colorkey drawing method (default: man).
3558 .RSss
3559 .IPs man
3560 Draw the colorkey manually (reduces flicker in some cases).
3561 .IPs bg
3562 Set the colorkey as window background.
3563 .IPs auto
3564 Let Xv draw the colorkey.
3567 .PD 1
3570 .B x11 (X11 only)
3571 Shared memory video output driver without hardware acceleration that
3572 works whenever X11 is present.
3575 .B xover (X11 only)
3576 Adds X11 support to all overlay based video output drivers.
3577 Currently only supported by tdfx_vid.
3578 .PD 0
3579 .RSs
3580 .IPs <vo_driver>
3581 Select the driver to use as source to overlay on top of X11.
3583 .PD 1
3586 .B vdpau (with \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau, ffh264vdpau or ffodivxvdpau)
3587 Video output that uses VDPAU to decode video via hardware.
3588 Also supports displaying of software-decoded video.
3589 .PD 0
3590 .RSs
3591 .IPs sharpen=<\-1\-1>
3592 For positive values, apply a sharpening algorithm to the video,
3593 for negative values a blurring algorithm (default: 0).
3594 .IPs denoise=<0\-1>
3595 Apply a noise reduction algorithm to the video (default: 0, no noise reduction).
3596 .IPs deint=<0\-4>
3597 Select the deinterlacer (default: 0).
3598 All modes > 0 respect \-field\-dominance.
3599 .RSss
3600 .IPs 0
3601 no deinterlacing
3602 .IPs 1
3603 Show only first field, similar to \-vf field.
3604 .IPs 2
3605 Bob deinterlacing, similar to \-vf tfields=1.
3606 .IPs 3
3607 motion adaptive temporal deinterlacing
3608 May lead to A/V desync with slow video hardware and/or high resolution.
3609 This is the default if "D" is used to enable deinterlacing.
3610 .IPs 4
3611 motion adaptive temporal deinterlacing with edge-guided spatial interpolation
3612 Needs fast video hardware.
3614 .IPs chroma\-deint
3615 Makes temporal deinterlacers operate both on luma and chroma (default).
3616 Use nochroma\-deint to solely use luma and speed up advanced deinterlacing.
3617 Useful with slow video memory.
3618 .IPs pullup
3619 Try to apply inverse telecine, needs motion adaptive temporal deinterlacing.
3620 .IPs colorspace=<0-3>
3621 Select the color space for YUV to RGB conversion.
3622 In general BT.601 should be used for standard definition (SD) content and
3623 BT.709 for high definition (HD) content.
3624 Using incorrect color space results in slightly under or over saturated and
3625 shifted colors.
3626 .RSss
3627 .IPs 0
3628 Guess the color space based on video resolution.
3629 Video with width >= 1280 or height > 576 is assumed to be HD and BT.709 color
3630 space will be used.
3631 .IPs 1
3632 Use ITU-R BT.601 color space (default).
3633 .IPs 2
3634 Use ITU-R BT.709 color space.
3635 .IPs 3
3636 Use SMPTE-240M color space.
3638 .IPs hqscaling=<0-9>
3639 .RSss
3640 .IPs 0
3641 Use default VDPAU scaling (default).
3642 .IPs 1\-9
3643 Apply high quality VDPAU scaling (needs capable hardware).
3645 .IPs studio
3646 Output video in studio level RGB (16-235).
3647 This is what TVs and video monitors generally expect.
3648 By default PC level RGB (0-255) suitable for PC monitors is used.
3649 Providing studio level output to a device expecting PC level input results in
3650 grey blacks and dim whites, the reverse in crushed blacks and whites.
3651 .IPs fps=<number>
3652 Override autodetected display refresh rate value (the value is needed for framedrop to allow video playback rates higher than display refresh rate, and for vsync-aware frame timing adjustments).
3653 Default 0 means use autodetected value.
3654 A positive value is interpreted as a refresh rate in Hz and overrides the autodetected value.
3655 A negative value disables all timing adjustment and framedrop logic.
3656 .IPs queuetime_windowed=<number>
3657 .IPs queuetime_fs=<number>
3658 Use VDPAU's presentation queue functionality to queue future video frame
3659 changes at most this many milliseconds in advance (default: 50).
3660 See below for additional information.
3661 .IPs output_surfaces=<2-15>
3662 Allocate this many output surfaces to display video frames (default: 3).
3663 See below for additional information.
3666 .sp 1
3667 Using the VDPAU frame queueing functionality controlled by the queuetime
3668 options makes MPlayer's frame flip timing less sensitive to system CPU load
3669 and allows MPlayer to start decoding the next frame(s) slightly earlier
3670 which can reduce jitter caused by individual slow-to-decode frames.
3671 However the NVIDIA graphics drivers can make other window behavior such as
3672 window moves choppy if VDPAU is using the blit queue (mainly happens
3673 if you have the composite extension enabled) and this feature is active.
3674 If this happens on your system and it bothers you then you can set the
3675 queuetime value to 0 to disable this feature.
3676 The settings to use in windowed and fullscreen mode are separate because there
3677 should be less reason to disable this for fullscreen mode (as the driver issue
3678 shouldn't affect the video itself).
3679 .sp 1
3680 You can queue more frames ahead by increasing the queuetime values and the
3681 output_surfaces count (to ensure enough surfaces to buffer video for a
3682 certain time ahead you need at least as many surfaces as the video has
3683 frames during that time, plus two).
3684 This could help make video smoother in some cases.
3685 The main downsides are increased video RAM requirements for the surfaces
3686 and laggier display response to user commands (display changes only become
3687 visible some time after they're queued). The graphics driver implementation may
3688 also have limits on the length of maximum queuing time or number of queued
3689 surfaces that work well or at all.
3691 .PD 1
3694 .B xvmc (X11 with \-vc ffmpeg12mc only)
3695 Video output driver that uses the XvMC (X Video Motion Compensation)
3696 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3697 .PD 0
3698 .RSs
3699 .IPs adaptor=<number>
3700 Select a specific XVideo adaptor (check xvinfo results).
3701 .IPs port=<number>
3702 Select a specific XVideo port.
3703 .IPs (no)benchmark
3704 Disables image display.
3705 Necessary for proper benchmarking of drivers that change
3706 image buffers on monitor retrace only (nVidia).
3707 Default is not to disable image display (nobenchmark).
3708 .IPs (no)bobdeint
3709 Very simple deinterlacer.
3710 Might not look better than \-vf tfields=1,
3711 but it is the only deinterlacer for xvmc (default: nobobdeint).
3712 .IPs (no)queue
3713 Queue frames for display to allow more parallel work of the video hardware.
3714 May add a small (not noticeable) constant A/V desync (default: noqueue).
3715 .IPs (no)sleep
3716 Use sleep function while waiting for rendering to finish
3717 (not recommended on Linux) (default: nosleep).
3718 .IPs ck=cur|use|set
3719 Same as \-vo xv:ck (see \-vo xv).
3720 .IPs ck-method=man|bg|auto
3721 Same as \-vo xv:ck-method (see \-vo xv).
3723 .PD 1
3726 .B dga (X11 only)
3727 Play video through the XFree86 Direct Graphics Access extension.
3728 Considered obsolete.
3731 .B sdl (SDL only, buggy/outdated)
3732 Highly platform independent SDL (Simple Directmedia Layer) library
3733 video output driver.
3734 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3735 any effect on SDL.
3736 Note that it has several minor bugs (\-vm/\-novm is mostly ignored,
3737 \-fs behaves like \-novm should, window is in top-left corner when
3738 returning from fullscreen, panscan is not supported, ...).
3739 .PD 0
3740 .RSs
3741 .IPs driver=<driver>
3742 Explicitly choose the SDL driver to use.
3743 .IPs (no)forcexv
3744 Use XVideo through the sdl video output driver (default: forcexv).
3745 .IPs (no)hwaccel
3746 Use hardware accelerated scaler (default: hwaccel).
3748 .PD 1
3751 .B "vidix\ \ "
3752 VIDIX (VIDeo Interface for *niX) is an interface to the
3753 video acceleration features of different graphics cards.
3754 Very fast video output driver on cards that support it.
3755 .PD 0
3756 .RSs
3757 .IPs <subdevice>
3758 Explicitly choose the VIDIX subdevice driver to use.
3759 Available subdevice drivers are cyberblade, ivtv, mach64,
3760 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, s3, sh_veu,
3761 sis_vid and unichrome.
3763 .PD 1
3766 .B xvidix (X11 only)
3767 X11 frontend for VIDIX
3768 .PD 0
3769 .RSs
3770 .IPs <subdevice>
3771 same as vidix
3773 .PD 1
3776 .B "cvidix\ "
3777 Generic and platform independent VIDIX frontend, can even run in a
3778 text console with nVidia cards.
3779 .PD 0
3780 .RSs
3781 .IPs <subdevice>
3782 same as vidix
3784 .PD 1
3787 .B winvidix (Windows only)
3788 Windows frontend for VIDIX
3789 .PD 0
3790 .RSs
3791 .IPs <subdevice>
3792 same as vidix
3794 .PD 1
3797 .B direct3d (Windows only) (BETA CODE!)
3798 Video output driver that uses the Direct3D interface (useful for Vista).
3801 .B directx (Windows only)
3802 Video output driver that uses the DirectX interface.
3803 .PD 0
3804 .RSs
3805 .IPs noaccel
3806 Turns off hardware acceleration.
3807 Try this option if you have display problems.
3809 .PD 1
3812 .B kva (OS/2 only)
3813 Video output driver that uses the libkva interface.
3814 .PD 0
3815 .RSs
3816 .IPs snap
3817 Force SNAP mode.
3818 .IPs wo
3819 Force WarpOverlay! mode.
3820 .IPs dive
3821 Force DIVE mode.
3822 .IPs (no)t23
3823 Enable or disable workaround for T23 laptop (default: disabled).
3824 Try to enable this option if your video card supports upscaling only.
3826 .PD 1
3829 .B quartz (Mac OS X only)
3830 Mac OS X Quartz video output driver.
3831 Under some circumstances, it might be more efficient to force a
3832 packed YUV output format, with e.g.\& \-vf format=yuy2.
3833 .PD 0
3834 .RSs
3835 .IPs device_id=<number>
3836 Choose the display device to use in fullscreen.
3837 .IPs fs_res=<width>:<height>
3838 Specify the fullscreen resolution (useful on slow systems).
3840 .PD 1
3843 .B corevideo (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3844 Mac OS X CoreVideo video output driver
3845 .PD 0
3846 .RSs
3847 .IPs device_id=<number>
3848 Choose the display device to use for fullscreen or set it to \-1 to
3849 always use the same screen the video window is on (default: \-1 \- auto).
3850 .IPs shared_buffer
3851 Write output to a shared memory buffer instead of displaying it and
3852 try to open an existing NSConnection for communication with a GUI.
3853 .IPs buffer_name=<name>
3854 Name of the shared buffer created with shm_open as well as the name of
3855 the NSConnection MPlayer will try to open (default: "mplayerosx").
3856 Setting buffer_name implicitly enables shared_buffer.
3858 .PD 1
3861 .B fbdev (Linux only)
3862 Uses the kernel framebuffer to play video.
3863 .PD 0
3864 .RSs
3865 .IPs <device>
3866 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3867 name of the VIDIX subdevice if the device name starts with 'vidix'
3868 (e.g.\& 'vidixsis_vid' for the sis driver).
3870 .PD 1
3873 .B fbdev2 (Linux only)
3874 Uses the kernel framebuffer to play video,
3875 alternative implementation.
3876 .PD 0
3877 .RSs
3878 .IPs <device>
3879 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3881 .PD 1
3884 .B "vesa\ \ \ "
3885 Very general video output driver that should work on any VESA VBE 2.0
3886 compatible card.
3887 .PD 0
3888 .RSs
3889 .IPs (no)dga
3890 Turns DGA mode on or off (default: on).
3891 .IPs neotv_pal
3892 Activate the NeoMagic TV out and set it to PAL norm.
3893 .IPs neotv_ntsc
3894 Activate the NeoMagic TV out and set it to NTSC norm.
3895 .IPs vidix
3896 Use the VIDIX driver.
3897 .IPs "lvo:\ \ \ "
3898 Activate the Linux Video Overlay on top of VESA mode.
3900 .PD 1
3903 .B "svga\ \ \ "
3904 Play video using the SVGA library.
3905 .PD 0
3906 .RSs
3907 .IPs "<video mode>"
3908 Specify video mode to use.
3909 The mode can be given in a <width>x<height>x<colors> format,
3910 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3911 .IPs bbosd
3912 Draw OSD into black bands below the movie (slower).
3913 .IPs native
3914 Use only native drawing functions.
3915 This avoids direct rendering, OSD and hardware acceleration.
3916 .IPs retrace
3917 Force frame switch on vertical retrace.
3918 Usable only with \-double.
3919 It has the same effect as the \-vsync option.
3920 .IPs "sq\ \ \ "
3921 Try to select a video mode with square pixels.
3922 .IPs vidix
3923 Use svga with VIDIX.
3925 .PD 1
3928 .B "gl\ \ \ \ \ "
3929 OpenGL video output driver, simple version.
3930 Video size must be smaller than
3931 the maximum texture size of your OpenGL implementation.
3932 Intended to work even with the most basic OpenGL implementations,
3933 but also makes use of newer extensions, which allow support for more
3934 colorspaces and direct rendering.
3935 For optimal speed try adding the options
3937 \-dr \-noslices
3939 The code performs very few checks, so if a feature does not work, this
3940 might be because it is not supported by your card/OpenGL implementation
3941 even if you do not get any error message.
3942 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3943 .PD 0
3944 .RSs
3945 .IPs (no)ati\-hack
3946 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3947 or force\-pbo).
3948 This option fixes this, at the expense of using a bit more memory.
3949 .IPs (no)force\-pbo
3950 Always uses PBOs to transfer textures even if this involves an extra copy.
3951 Currently this gives a little extra speed with NVidia drivers and a lot more
3952 speed with ATI drivers.
3953 May need \-noslices and the ati\-hack suboption to work correctly.
3954 .IPs (no)scaled-osd
3955 Changes the way the OSD behaves when the size of the
3956 window changes (default: disabled).
3957 When enabled behaves more like the other video output drivers,
3958 which is better for fixed-size fonts.
3959 Disabled looks much better with FreeType fonts and uses the
3960 borders in fullscreen mode.
3961 Does not work correctly with ass subtitles (see \-ass), you can instead
3962 render them without OpenGL support via \-vf ass.
3963 .IPs osdcolor=<0xAARRGGBB>
3964 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3965 .IPs rectangle=<0,1,2>
3966 Select usage of rectangular textures which saves video RAM, but often is
3967 slower (default: 0).
3968 .RSss
3969 0: Use power-of-two textures (default).
3971 1: Use the GL_ARB_texture_rectangle extension.
3973 2: Use the GL_ARB_texture_non_power_of_two extension.
3974 In some cases only supported in software and thus very slow.
3976 .IPs swapinterval=<n>
3977 Minimum interval between two buffer swaps, counted in
3978 displayed frames (default: 1).
3979 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3980 Values below 0 will leave it at the system default.
3981 This limits the framerate to (horizontal refresh rate / n).
3982 Requires GLX_SGI_swap_control support to work.
3983 With some (most/all?) implementations this only works in fullscreen mode.
3984 .IPs ycbcr
3985 Use the GL_MESA_ycbcr_texture extension to convert YUV to RGB.
3986 In most cases this is probably slower than doing software conversion to RGB.
3987 .IPs yuv=<n>
3988 Select the type of YUV to RGB conversion.
3989 The default is auto-detection deciding between values 0 and 2.
3990 .RSss
3991 0: Use software conversion.
3992 Compatible with all OpenGL versions.
3993 Provides brightness, contrast and saturation control.
3995 1: Use register combiners.
3996 This uses an nVidia-specific extension (GL_NV_register_combiners).
3997 At least three texture units are needed.
3998 Provides saturation and hue control.
3999 This method is fast but inexact.
4001 2: Use a fragment program.
4002 Needs the GL_ARB_fragment_program extension and at least three texture units.
4003 Provides brightness, contrast, saturation and hue control.
4005 3: Use a fragment program using the POW instruction.
4006 Needs the GL_ARB_fragment_program extension and at least three texture units.
4007 Provides brightness, contrast, saturation, hue and gamma control.
4008 Gamma can also be set independently for red, green and blue.
4009 Method 4 is usually faster.
4011 4: Use a fragment program with additional lookup.
4012 Needs the GL_ARB_fragment_program extension and at least four texture units.
4013 Provides brightness, contrast, saturation, hue and gamma control.
4014 Gamma can also be set independently for red, green and blue.
4016 5: Use ATI-specific method (for older cards).
4017 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
4018 GL_ARB_fragment_shader!).
4019 At least three texture units are needed.
4020 Provides saturation and hue control.
4021 This method is fast but inexact.
4023 6: Use a 3D texture to do conversion via lookup.
4024 Needs the GL_ARB_fragment_program extension and at least four texture units.
4025 Extremely slow (software emulation) on some (all?) ATI cards since it uses
4026 a texture with border pixels.
4027 Provides brightness, contrast, saturation, hue and gamma control.
4028 Gamma can also be set independently for red, green and blue.
4029 Speed depends more on GPU memory bandwidth than other methods.
4031 .IPs colorspace
4032 Select the color space for YUV to RGB conversion.
4033 .RSss
4034 .IPs 0
4035 Use the formula used normally by MPlayer (default).
4036 .IPs 1
4037 Use ITU-R BT.601 color space.
4038 .IPs 2
4039 Use ITU-R BT.709 color space.
4040 .IPs 3
4041 Use SMPTE-240M color space.
4043 .IPs levelconv=<n>
4044 Select the brightness level conversion to use for the YUV to RGB conversion
4045 .RSss
4046 .IPs 0
4047 Convert TV to PC levels (default).
4048 .IPs 1
4049 Convert PC to TV levels.
4050 .IPs 2
4051 Do not do any conversion.
4053 .IPs lscale=<n>
4054 Select the scaling function to use for luminance scaling.
4055 Only valid for yuv modes 2, 3, 4 and 6.
4056 .RSss
4057 0: Use simple linear filtering (default).
4059 1: Use bicubic B-spline filtering (better quality).
4060 Needs one additional texture unit.
4061 Older cards will not be able to handle this for chroma at least in fullscreen mode.
4063 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
4064 Works on a few more cards than method 1.
4066 3: Same as 1 but does not use a lookup texture.
4067 Might be faster on some cards.
4069 4: Use experimental unsharp masking with 3x3 support and a default strength of 0.5 (see filter-strength).
4071 5: Use experimental unsharp masking with 5x5 support and a default strength of 0.5 (see filter-strength).
4073 .IPs cscale=<n>
4074 Select the scaling function to use for chrominance scaling.
4075 For details see lscale.
4076 .IPs filter-strength=<value>
4077 Set the effect strength for the lscale/cscale filters that support it.
4078 .IPs stereo=<value>
4079 Select a method for stereo display.
4080 You may have to use -aspect to fix the aspect value.
4081 Experimental, do not expect too much from it.
4082 .RSss
4083 0: Normal 2D display
4085 1: left-right split input to full-color red-cyan stereo.
4087 2: left-right split input to full-color red-cyan stereo.
4089 3: left-right split input to quadbuffered stereo.
4090 Only supported by very few OpenGL cards.
4093 .sp 1
4095 The following options are only useful if writing your own fragment programs.
4097 .sp 1
4098 .RSs
4099 .IPs customprog=<filename>
4100 Load a custom fragment program from <filename>.
4101 See TOOLS/edgedect.fp for an example.
4102 .IPs customtex=<filename>
4103 Load a custom "gamma ramp" texture from <filename>.
4104 This can be used in combination with yuv=4 or with the customprog option.
4105 .IPs (no)customtlin
4106 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
4107 for customtex texture.
4108 .IPs (no)customtrect
4109 If enabled, use texture_rectangle for customtex texture.
4110 Default is disabled.
4111 .IPs (no)mipmapgen
4112 If enabled, mipmaps for the video are automatically generated.
4113 This should be useful together with the customprog and the TXB
4114 instruction to implement blur filters with a large radius.
4115 For most OpenGL implementations this is very slow for any non-RGB
4116 formats.
4117 Default is disabled.
4119 .sp 1
4121 Normally there is no reason to use the following options, they mostly
4122 exist for testing purposes.
4124 .sp 1
4125 .RSs
4126 .IPs (no)glfinish
4127 Call glFinish() before swapping buffers.
4128 Slower but in some cases more correct output (default: disabled).
4129 .IPs (no)manyfmts
4130 Enables support for more (RGB and BGR) color formats (default: enabled).
4131 Needs OpenGL version >= 1.2.
4132 .IPs slice-height=<0\-...>
4133 Number of lines copied to texture in one piece (default: 0).
4134 0 for whole image.
4136 .I NOTE:
4137 If YUV colorspace is used (see yuv suboption), special rules apply:
4138 .RSss
4139 If the decoder uses slice rendering (see \-noslices), this setting
4140 has no effect, the size of the slices as provided by the decoder is used.
4142 If the decoder does not use slice rendering, the default is 16.
4144 .IPs (no)osd
4145 Enable or disable support for OSD rendering via OpenGL (default: enabled).
4146 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
4147 .IPs (no)aspect
4148 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
4149 Disabling might increase speed.
4150 .REss
4152 .PD 1
4155 .B "gl2\ \ \ \ "
4156 Variant of the OpenGL video output driver.
4157 Supports videos larger than the maximum texture size but lacks many of the
4158 advanced features and optimizations of the gl driver and is unlikely to be
4159 extended further.
4160 .PD 0
4161 .RSs
4162 .IPs (no)glfinish
4163 same as gl (default: enabled)
4164 .IPs yuv=<n>
4165 Select the type of YUV to RGB conversion.
4166 If set to anything except 0 OSD will be disabled and brightness, contrast and
4167 gamma setting is only available via the global X server settings.
4168 Apart from this the values have the same meaning as for \-vo gl.
4169 .REss
4172 .B matrixview
4173 OpenGL-based renderer creating a Matrix-like running-text effect.
4174 .PD 0
4175 .RSs
4176 .IPs cols=<n>
4177 Number of text columns to display.
4178 Very low values (< 16) will probably fail due to scaler limitations.
4179 Values not divisible by 16 may cause issues as well.
4180 .IPs rows=<n>
4181 Number of text rows to display.
4182 Very low values (< 16) will probably fail due to scaler limitations.
4183 Values not divisible by 16 may cause issues as well.
4184 .REss
4187 .B "null\ \ \ "
4188 Produces no video output.
4189 Useful for benchmarking.
4192 .B "aa\ \ \ \ \ "
4193 ASCII art video output driver that works on a text console.
4194 You can get a list and an explanation of available suboptions
4195 by executing 'mplayer \-vo aa:help'.
4197 .I NOTE:
4198 The driver does not handle \-aspect correctly.
4200 .I HINT:
4201 You probably have to specify \-monitorpixelaspect.
4202 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
4205 .B "caca\ \ \ "
4206 Color ASCII art video output driver that works on a text console.
4209 .B "bl\ \ \ \ \ "
4210 Video playback using the Blinkenlights UDP protocol.
4211 This driver is highly hardware specific.
4212 .PD 0
4213 .RSs
4214 .IPs <subdevice>
4215 Explicitly choose the Blinkenlights subdevice driver to use.
4216 It is something like arcade:host=localhost:2323 or
4217 hdl:file=name1,file=name2.
4218 You must specify a subdevice.
4220 .PD 1
4223 .B "ggi\ \ \ \ "
4224 GGI graphics system video output driver
4225 .PD 0
4226 .RSs
4227 .IPs <driver>
4228 Explicitly choose the GGI driver to use.
4229 Replace any ',' that would appear in the driver string by a '.'.
4231 .PD 1
4234 .B directfb
4235 Play video using the DirectFB library.
4236 .PD 0
4237 .RSs
4238 .IPs (no)input
4239 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
4240 .IPs buffermode=single|double|triple
4241 Double and triple buffering give best results if you want to avoid tearing issues.
4242 Triple buffering is more efficient than double buffering as it does
4243 not block MPlayer while waiting for the vertical retrace.
4244 Single buffering should be avoided (default: single).
4245 .IPs fieldparity=top|bottom
4246 Control the output order for interlaced frames (default: disabled).
4247 Valid values are top = top fields first, bottom = bottom fields first.
4248 This option does not have any effect on progressive film material
4249 like most MPEG movies are.
4250 You need to enable this option if you have tearing issues or unsmooth
4251 motions watching interlaced film material.
4252 .IPs layer=N
4253 Will force layer with ID N for playback (default: \-1 \- auto).
4254 .IPs dfbopts=<list>
4255 Specify a parameter list for DirectFB.
4257 .PD 1
4260 .B "dfbmga\ "
4261 Matrox G400/\:G450/\:G550 specific video output driver that uses the
4262 DirectFB library to make use of special hardware features.
4263 Enables CRTC2 (second head), displaying video independently of the first head.
4264 .PD 0
4265 .RSs
4266 .IPs (no)input
4267 same as directfb (default: disabled)
4268 .IPs buffermode=single|double|triple
4269 same as directfb (default: triple)
4270 .IPs fieldparity=top|bottom
4271 same as directfb
4272 .IPs (no)bes
4273 Enable the use of the Matrox BES (backend scaler) (default: disabled).
4274 Gives very good results concerning speed and output quality as interpolated
4275 picture processing is done in hardware.
4276 Works only on the primary head.
4277 .IPs (no)spic
4278 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
4279 .IPs (no)crtc2
4280 Turn on TV-out on the second head (default: enabled).
4281 The output quality is amazing as it is a full interlaced picture
4282 with proper sync to every odd/\:even field.
4283 .IPs tvnorm=pal|ntsc|auto
4284 Will set the TV norm of the Matrox card without the need
4285 for modifying /etc/\:directfbrc (default: disabled).
4286 Valid norms are pal = PAL, ntsc = NTSC.
4287 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
4288 which norm to use by looking at the framerate of the movie.
4290 .PD 1
4293 .B mga (Linux only)
4294 Matrox specific video output driver that makes use of the YUV back
4295 end scaler on Gxxx cards through a kernel module.
4296 If you have a Matrox card, this is the fastest option.
4297 .PD 0
4298 .RSs
4299 .IPs <device>
4300 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4302 .PD 1
4305 .B xmga (Linux, X11 only)
4306 The mga video output driver, running in an X11 window.
4307 .PD 0
4308 .RSs
4309 .IPs <device>
4310 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4312 .PD 1
4315 .B s3fb (Linux only) (also see \-dr)
4316 S3 Virge specific video output driver.
4317 This driver supports the card's YUV conversion and scaling, double
4318 buffering and direct rendering features.
4319 Use \-vf format=yuy2 to get hardware-accelerated YUY2 rendering, which is
4320 much faster than YV12 on this card.
4321 .PD 0
4322 .RSs
4323 .IPs <device>
4324 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4326 .PD 1
4329 .B wii (Linux only)
4330 Nintendo Wii/GameCube specific video output driver.
4333 .B 3dfx (Linux only)
4334 3dfx-specific video output driver that directly uses
4335 the hardware on top of X11.
4336 Only 16 bpp are supported.
4339 .B tdfxfb (Linux only)
4340 This driver employs the tdfxfb framebuffer driver to play movies with
4341 YUV acceleration on 3dfx cards.
4342 .PD 0
4343 .RSs
4344 .IPs <device>
4345 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4347 .PD 1
4350 .B tdfx_vid (Linux only)
4351 3dfx-specific video output driver that works in combination with
4352 the tdfx_vid kernel module.
4353 .PD 0
4354 .RSs
4355 .IPs <device>
4356 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
4358 .PD 1
4361 .B dxr2 (also see \-dxr2) (DXR2 only)
4362 Creative DXR2 specific video output driver.
4363 .PD 0
4364 .RSs
4365 .IPs <vo_driver>
4366 Output video subdriver to use as overlay (x11, xv).
4368 .PD 1
4371 .B dxr3 (DXR3 only)
4372 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
4373 Hollywood Plus) specific video output driver.
4374 Also see the lavc video filter.
4375 .PD 0
4376 .RSs
4377 .IPs overlay
4378 Activates the overlay instead of TV-out.
4379 .IPs prebuf
4380 Turns on prebuffering.
4381 .IPs "sync\ "
4382 Will turn on the new sync-engine.
4383 .IPs norm=<norm>
4384 Specifies the TV norm.
4385 .RSss
4386 0: Does not change current norm (default).
4388 1: Auto-adjust using PAL/\:NTSC.
4390 2: Auto-adjust using PAL/\:PAL-60.
4392 3: PAL
4394 4: PAL-60
4396 5: NTSC
4398 .IPs <0\-3>
4399 Specifies the device number to use if you have more than one em8300 card.
4401 .PD 1
4404 .B ivtv (IVTV only)
4405 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4406 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4407 specific video output driver for TV-out.
4408 Also see the lavc video filter.
4409 .PD 0
4410 .RSs
4411 .IPs <device>
4412 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4413 .IPs <output>
4414 Explicitly choose the TV-out output to be used for the video signal.
4416 .PD 1
4419 .B v4l2 (requires Linux 2.6.22+ kernel)
4420 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4421 Also see the lavc video filter.
4422 .PD 0
4423 .RSs
4424 .IPs <device>
4425 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4426 .IPs <output>
4427 Explicitly choose the TV-out output to be used for the video signal.
4429 .PD 1
4432 .B mpegpes (DVB only)
4433 Video output driver for DVB cards that writes the output to an MPEG-PES file
4434 if no DVB card is installed.
4435 .PD 0
4436 .RSs
4437 .IPs card=<1\-4>
4438 Specifies the device number to use if you have more than one DVB output card
4439 (V3 API only, such as 1.x.y series drivers).
4440 If not specified MPlayer will search the first usable card.
4441 .IPs <filename>
4442 output filename (default: ./grab.mpg)
4444 .PD 1
4447 .B zr (also see \-zr* and \-zrhelp)
4448 Video output driver for a number of MJPEG capture/\:playback cards.
4451 .B zr2 (also see the zrmjpeg video filter)
4452 Video output driver for a number of MJPEG capture/\:playback cards,
4453 second generation.
4454 .PD 0
4455 .RSs
4456 .IPs dev=<device>
4457 Specifies the video device to use.
4458 .IPs norm=<PAL|NTSC|SECAM|auto>
4459 Specifies the video norm to use (default: auto).
4460 .IPs (no)prebuf
4461 (De)Activate prebuffering, not yet supported.
4463 .PD 1
4466 .B "md5sum\ "
4467 Calculate MD5 sums of each frame and write them to a file.
4468 Supports RGB24 and YV12 colorspaces.
4469 Useful for debugging.
4470 .PD 0
4471 .RSs
4472 .IPs outfile=<value>
4473 Specify the output filename (default: ./md5sums).
4475 .PD 1
4478 .B yuv4mpeg
4479 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4480 images and stores it in a file (default: ./stream.yuv).
4481 The format is the same as the one employed by mjpegtools, so this is
4482 useful if you want to process the video with the mjpegtools suite.
4483 It supports the YV12 format.
4484 If your source file has a different format and is interlaced, make sure
4485 to use -vf scale=::1 to ensure the conversion uses interlaced mode.
4486 You can combine it with the \-fixed\-vo option to concatenate files
4487 with the same dimensions and fps value.
4488 .PD 0
4489 .RSs
4490 .IPs interlaced
4491 Write the output as interlaced frames, top field first.
4492 .IPs interlaced_bf
4493 Write the output as interlaced frames, bottom field first.
4494 .IPs file=<filename>
4495 Write the output to <filename> instead of the default stream.yuv.
4496 .REss
4497 .PD 1
4499 .sp 1
4500 .I NOTE:
4501 If you do not specify any option the output is progressive
4502 (i.e.\& not interlaced).
4506 .B "gif89a\ "
4507 Output each frame into a single animated GIF file in the current directory.
4508 It supports only RGB format with 24 bpp and the output is converted to 256
4509 colors.
4510 .PD 0
4511 .RSs
4512 .IPs <fps>
4513 Float value to specify framerate (default: 5.0).
4514 .IPs <output>
4515 Specify the output filename (default: ./out.gif).
4516 .REss
4517 .PD 1
4519 .sp 1
4520 .I NOTE:
4521 You must specify the framerate before the filename or the framerate will
4522 be part of the filename.
4523 .sp 1
4524 .I EXAMPLE:
4526 .PD 0
4527 .RSs
4528 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4530 .PD 1
4533 .B "jpeg\ \ \ "
4534 Output each frame into a JPEG file in the current directory.
4535 Each file takes the frame number padded with leading zeros as name.
4536 .PD 0
4537 .RSs
4538 .IPs [no]progressive
4539 Specify standard or progressive JPEG (default: noprogressive).
4540 .IPs [no]baseline
4541 Specify use of baseline or not (default: baseline).
4542 .IPs optimize=<0\-100>
4543 optimization factor (default: 100)
4544 .IPs smooth=<0\-100>
4545 smooth factor (default: 0)
4546 .IPs quality=<0\-100>
4547 quality factor (default: 75)
4548 .IPs outdir=<dirname>
4549 Specify the directory to save the JPEG files to (default: ./).
4550 .IPs subdirs=<prefix>
4551 Create numbered subdirectories with the specified prefix to
4552 save the files in instead of the current directory.
4553 .IPs "maxfiles=<value> (subdirs only)"
4554 Maximum number of files to be saved per subdirectory.
4555 Must be equal to or larger than 1 (default: 1000).
4557 .PD 1
4560 .B "pnm\ \ \ \ "
4561 Output each frame into a PNM file in the current directory.
4562 Each file takes the frame number padded with leading zeros as name.
4563 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4564 Also see pnm(5), ppm(5) and pgm(5).
4565 .PD 0
4566 .RSs
4567 .IPs "ppm\ \ "
4568 Write PPM files (default).
4569 .IPs "pgm\ \ "
4570 Write PGM files.
4571 .IPs pgmyuv
4572 Write PGMYUV files.
4573 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4574 bottom of the picture.
4575 .IPs "raw\ \ "
4576 Write PNM files in raw mode (default).
4577 .IPs ascii
4578 Write PNM files in ASCII mode.
4579 .IPs outdir=<dirname>
4580 Specify the directory to save the PNM files to (default: ./).
4581 .IPs subdirs=<prefix>
4582 Create numbered subdirectories with the specified prefix to
4583 save the files in instead of the current directory.
4584 .IPs "maxfiles=<value> (subdirs only)"
4585 Maximum number of files to be saved per subdirectory.
4586 Must be equal to or larger than 1 (default: 1000).
4588 .PD 1
4591 .B "png\ \ \ \ "
4592 Output each frame into a PNG file in the current directory.
4593 Each file takes the frame number padded with leading zeros as name.
4594 24bpp RGB and BGR formats are supported.
4595 .PD 0
4596 .RSs
4597 .IPs z=<0\-9>
4598 Specifies the compression level.
4599 0 is no compression, 9 is maximum compression.
4600 .IPs alpha (default: noalpha)
4601 Create PNG files with an alpha channel.
4602 Note that MPlayer in general does not support alpha, so this will only
4603 be useful in some rare cases.
4605 .PD 1
4608 .B "tga\ \ \ \ "
4609 Output each frame into a Targa file in the current directory.
4610 Each file takes the frame number padded with leading zeros as name.
4611 The purpose of this video output driver is to have a simple lossless
4612 image writer to use without any external library.
4613 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4614 You can force a particular format with the format video filter.
4615 .sp 1
4616 .I EXAMPLE:
4618 .PD 0
4619 .RSs
4620 mplayer video.nut \-vf format=bgr15 \-vo tga
4622 .PD 1
4626 .SH "DECODING/FILTERING OPTIONS"
4629 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4630 Specify a priority list of audio codecs to be used, according to their codec
4631 name in codecs.conf.
4632 Use a '\-' before the codec name to omit it.
4633 Use a '+' before the codec name to force it, this will likely crash!
4634 If the list has a trailing ',' MPlayer will fall back on codecs not
4635 contained in the list.
4637 .I NOTE:
4638 See \-ac help for a full list of available codecs.
4639 .sp 1
4640 .I EXAMPLE:
4641 .PD 0
4642 .RSs
4643 .IPs "\-ac mp3acm"
4644 Force the l3codeca.acm MP3 codec.
4645 .IPs "\-ac mad,"
4646 Try libmad first, then fall back on others.
4647 .IPs "\-ac hwac3,a52,"
4648 Try hardware AC-3 passthrough, software AC-3, then others.
4649 .IPs "\-ac hwdts,"
4650 Try hardware DTS passthrough, then fall back on others.
4651 .IPs "\-ac \-ffmp3,"
4652 Skip FFmpeg's MP3 decoder.
4654 .PD 1
4657 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4658 Specify advanced audio filter options:
4659 .RSs
4660 .IPs force=<0\-7>
4661 Forces the insertion of audio filters to one of the following:
4662 .RSss
4663 0: Use completely automatic filter insertion (currently identical to 1).
4665 1: Optimize for accuracy (default).
4667 2: Optimize for speed.
4668 .I Warning:
4669 Some features in the audio filters may silently fail,
4670 and the sound quality may drop.
4672 3: Use no automatic insertion of filters and no optimization.
4673 .I Warning:
4674 It may be possible to crash MPlayer using this setting.
4676 4: Use automatic insertion of filters according to 0 above,
4677 but use floating point processing when possible.
4679 5: Use automatic insertion of filters according to 1 above,
4680 but use floating point processing when possible.
4682 6: Use automatic insertion of filters according to 2 above,
4683 but use floating point processing when possible.
4685 7: Use no automatic insertion of filters according to 3 above,
4686 and use floating point processing when possible.
4687 .REss
4688 .IPs list=<filters>
4689 Same as \-af.
4693 .B \-afm <driver1,driver2,...>
4694 Specify a priority list of audio codec families to be used, according
4695 to their codec name in codecs.conf.
4696 Falls back on the default codecs if none of the given codec families work.
4698 .I NOTE:
4699 See \-afm help for a full list of available codec families.
4700 .sp 1
4701 .I EXAMPLE:
4702 .PD 0
4703 .RSs
4704 .IPs "\-afm ffmpeg"
4705 Try FFmpeg's libavcodec codecs first.
4706 .IPs "\-afm acm,dshow"
4707 Try Win32 codecs first.
4709 .PD 1
4712 .B \-aspect <ratio> (also see \-zoom)
4713 Override movie aspect ratio, in case aspect information is
4714 incorrect or missing in the file being played.
4715 .sp 1
4716 .I EXAMPLE:
4717 .PD 0
4718 .RSs
4719 \-aspect 4:3  or \-aspect 1.3333
4721 \-aspect 16:9 or \-aspect 1.7777
4723 .PD 1
4726 .B \-noaspect
4727 Disable automatic movie aspect ratio compensation.
4730 .B "\-field\-dominance <\-1\-1>"
4731 Set first field for interlaced content.
4732 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4733 \-vf yadif=1, \-vo vdpau:deint and \-vo xvmc:bobdeint.
4734 .PD 0
4735 .RSs
4736 .IPs \-1
4737 auto (default): If the decoder does not export the appropriate information,
4738 it falls back to 0 (top field first).
4739 .IPs 0
4740 top field first
4741 .IPs 1
4742 bottom field first
4744 .PD 1
4747 .B "\-flip \ "
4748 Flip image upside-down.
4751 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4752 Specify libavcodec decoding parameters.
4753 Separate multiple options with a colon.
4754 .sp 1
4755 .I EXAMPLE:
4756 .PD 0
4757 .RSs
4758 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4760 .PD 1
4761 .sp 1
4763 Available options are:
4765 .RSs
4766 .IPs bitexact
4767 Only use bit-exact algorithms in all decoding steps (for codec testing).
4768 .IPs bug=<value>
4769 Manually work around encoder bugs.
4770 .RSss
4771 0: nothing
4773 1: autodetect bugs (default)
4775 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4777 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4779 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4781 16 (mpeg4): padding bug (autodetected)
4783 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4785 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4787 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4789 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4791 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4793 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4794 .REss
4795 .IPs debug=<value>
4796 Display debugging information.
4797 .RSss
4799 0: disabled
4801 1: picture info
4803 2: rate control
4805 4: bitstream
4807 8: macroblock (MB) type
4809 16: per-block quantization parameter (QP)
4811 32: motion vector
4813 0x0040: motion vector visualization (use \-noslices)
4815 0x0080: macroblock (MB) skip
4817 0x0100: startcode
4819 0x0200: PTS
4821 0x0400: error resilience
4823 0x0800: memory management control operations (H.264)
4825 0x1000: bugs
4827 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4829 0x4000: Visualize block types.
4830 .REss
4831 .IPs ec=<value>
4832 Set error concealment strategy.
4833 .RSss
4834 1: Use strong deblock filter for damaged MBs.
4836 2: iterative motion vector (MV) search (slow)
4838 3: all (default)
4839 .REss
4840 .IPs er=<value>
4841 Set error resilience strategy.
4842 .RSss
4844 0: disabled
4846 1: careful (Should work with broken encoders.)
4848 2: normal (default) (Works with compliant encoders.)
4850 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4852 4: very aggressive
4853 .REss
4854 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4855 Enable optimizations which do not comply to the specification and might
4856 potentially cause problems, like simpler dequantization, simpler motion
4857 compensation, assuming use of the default quantization matrix, assuming
4858 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4859 .IPs "gray\ "
4860 grayscale only decoding (a bit faster than with color)
4861 .IPs "idct=<0\-99> (see \-lavcopts)"
4862 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4863 This may come at a price in accuracy, though.
4864 .IPs lowres=<number>[,<w>]
4865 Decode at lower resolutions.
4866 Low resolution decoding is not supported by all codecs, and it will
4867 often result in ugly artifacts.
4868 This is not a bug, but a side effect of not decoding at full resolution.
4869 .RSss
4871 0: disabled
4873 1: 1/2 resolution
4875 2: 1/4 resolution
4877 3: 1/8 resolution
4878 .REss
4880 If <w> is specified lowres decoding will be used only if the width of the
4881 video is major than or equal to <w>.
4883 .B o=<key>=<value>[,<key>=<value>[,...]]
4884 Pass AVOptions to libavcodec decoder.
4885 Note, a patch to make the o= unneeded and pass all unknown options through
4886 the AVOption system is welcome.
4887 A full list of AVOptions can be found in the FFmpeg manual.
4888 Note that some options may conflict with MEncoder options.
4889 .sp 1
4891 .I EXAMPLE:
4893 .RSs
4894 .PD 0
4895 .IPs o=debug=pict
4896 .PD 1
4898 .IPs "sb=<number> (MPEG-2 only)"
4899 Skip the given number of macroblock rows at the bottom.
4900 .IPs "st=<number> (MPEG-2 only)"
4901 Skip the given number of macroblock rows at the top.
4902 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4903 Skips the loop filter (AKA deblocking) during H.264 decoding.
4904 Since the filtered frame is supposed to be used as reference
4905 for decoding dependent frames this has a worse effect on quality
4906 than not doing deblocking on e.g.\& MPEG-2 video.
4907 But at least for high bitrate HDTV this provides a big speedup with
4908 no visible quality loss.
4909 .sp 1
4910 <skipvalue> can be either one of the following:
4911 .RSss
4913 none: Never skip.
4915 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4917 nonref: Skip frames that are not referenced (i.e.\& not used for
4918 decoding other frames, the error cannot "build up").
4920 bidir: Skip B-Frames.
4922 nonkey: Skip all frames except keyframes.
4924 all: Skip all frames.
4925 .REss
4926 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4927 Skips the IDCT step.
4928 This degrades quality a lot of in almost all cases
4929 (see skiploopfilter for available skip values).
4930 .IPs skipframe=<skipvalue>
4931 Skips decoding of frames completely.
4932 Big speedup, but jerky motion and sometimes bad artifacts
4933 (see skiploopfilter for available skip values).
4934 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4935 number of threads to use for decoding (default: 1)
4936 .IPs vismv=<value>
4937 Visualize motion vectors.
4938 .RSss
4940 0: disabled
4942 1: Visualize forward predicted MVs of P-frames.
4944 2: Visualize forward predicted MVs of B-frames.
4946 4: Visualize backward predicted MVs of B-frames.
4947 .REss
4948 .IPs vstats
4949 Prints some statistics and stores them in ./vstats_*.log.
4953 .B \-noslices
4954 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4955 whole frame in a single run.
4956 May be faster or slower, depending on video card and available cache.
4957 It has effect only with libmpeg2 and libavcodec codecs.
4960 .B \-nosound
4961 Do not play/\:encode sound.
4962 Useful for benchmarking.
4965 .B \-novideo
4966 Do not play/\:encode video.
4967 With some demuxers this may not work. In those cases you can try \-vc null \-vo null instead; but "\-vc null" is always unreliable.
4970 .B \-pp <quality> (also see \-vf pp)
4971 Set the DLL postprocess level.
4972 This option is no longer usable with \-vf pp.
4973 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4974 The valid range of \-pp values varies by codec, it is mostly
4975 0\-6, where 0=disable, 6=slowest/\:best.
4978 .B \-pphelp (also see \-vf pp)
4979 Show a summary about the available postprocess filters and their usage.
4982 .B \-ssf <mode>
4983 Specifies software scaler parameters.
4984 .sp 1
4985 .I EXAMPLE:
4986 .PD 0
4987 .RSs
4988 \-vf scale \-ssf lgb=3.0
4990 .PD 1
4991 .PD 0
4992 .RSs
4993 .IPs lgb=<0\-100>
4994 gaussian blur filter (luma)
4995 .IPs cgb=<0\-100>
4996 gaussian blur filter (chroma)
4997 .IPs ls=<\-100\-100>
4998 sharpen filter (luma)
4999 .IPs cs=<\-100\-100>
5000 sharpen filter (chroma)
5001 .IPs chs=<h>
5002 chroma horizontal shifting
5003 .IPs cvs=<v>
5004 chroma vertical shifting
5006 .PD 1
5009 .B \-stereo <mode>
5010 Select type of MP2/\:MP3 stereo output.
5011 .PD 0
5012 .RSs
5013 .IPs 0
5014 stereo
5015 .IPs 1
5016 left channel
5017 .IPs 2
5018 right channel
5020 .PD 1
5023 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
5024 Specify the software scaler algorithm to be used with the \-zoom option.
5025 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
5026 .sp 1
5027 Available types are:
5028 .sp 1
5029 .PD 0
5030 .RSs
5031 .IPs 0
5032 fast bilinear
5033 .IPs 1
5034 bilinear
5035 .IPs 2
5036 bicubic (good quality) (default)
5037 .IPs 3
5038 experimental
5039 .IPs 4
5040 nearest neighbor (bad quality)
5041 .IPs 5
5042 area
5043 .IPs 6
5044 luma bicubic / chroma bilinear
5045 .IPs 7
5046 gauss
5047 .IPs 8
5048 sincR
5049 .IPs 9
5050 lanczos
5051 .IPs 10
5052 natural bicubic spline
5054 .PD 1
5055 .sp 1
5057 .I NOTE:
5058 Some \-sws options are tunable.
5059 The description of the scale video filter has further information.
5063 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
5064 Specify a priority list of video codecs to be used, according to their codec
5065 name in codecs.conf.
5066 Use a '\-' before the codec name to omit it.
5067 Use a '+' before the codec name to force it, this will likely crash!
5068 If the list has a trailing ',' MPlayer will fall back on codecs not
5069 contained in the list.
5071 .I NOTE:
5072 See \-vc help for a full list of available codecs.
5073 .sp 1
5074 .I EXAMPLE:
5075 .PD 0
5076 .RSs
5077 .IPs "\-vc divx"
5078 Force Win32/\:VfW DivX codec, no fallback.
5079 .IPs "\-vc \-divxds,\-divx,"
5080 Skip Win32 DivX codecs.
5081 .IPs "\-vc ffmpeg12,mpeg12,"
5082 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
5084 .PD 1
5087 .B \-vfm <driver1,driver2,...>
5088 Specify a priority list of video codec families to be used, according
5089 to their names in codecs.conf.
5090 Falls back on the default codecs if none of the given codec families work.
5092 .I NOTE:
5093 See \-vfm help for a full list of available codec families.
5094 .sp 1
5095 .I EXAMPLE:
5096 .PD 0
5097 .RSs
5098 .IPs "\-vfm ffmpeg,dshow,vfw"
5099 Try the libavcodec, then Directshow, then VfW codecs and fall back
5100 on others, if they do not work.
5101 .IPs "\-vfm xanim"
5102 Try XAnim codecs first.
5104 .PD 1
5107 .B \-x <x> (also see \-zoom) (MPlayer only)
5108 Scale image to width <x> (if software/\:hardware scaling is available).
5109 Disables aspect calculations.
5112 .B \-xvidopts <option1:option2:...>
5113 Specify additional parameters when decoding with Xvid.
5115 .I NOTE:
5116 Since libavcodec is faster than Xvid you might want to use the libavcodec
5117 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
5118 .sp 1
5119 Xvid's internal postprocessing filters:
5120 .PD 0
5121 .RSs
5122 .IPs "deblock-chroma (also see \-vf pp)"
5123 chroma deblock filter
5124 .IPs "deblock-luma (also see \-vf pp)"
5125 luma deblock filter
5126 .IPs "dering-luma (also see \-vf pp)"
5127 luma deringing filter
5128 .IPs "dering-chroma (also see \-vf pp)"
5129 chroma deringing filter
5130 .IPs "filmeffect (also see \-vf noise)"
5131 Adds artificial film grain to the video.
5132 May increase perceived quality, while lowering true quality.
5134 .sp 1
5136 rendering methods:
5138 .PD 0
5139 .RSs
5140 .IPs "dr2\ \ "
5141 Activate direct rendering method 2.
5142 .IPs nodr2
5143 Deactivate direct rendering method 2.
5145 .PD 1
5148 .B \-xy <value> (also see \-zoom)
5149 .PD 0
5150 .RSs
5151 .IPs value<=8
5152 Scale image by factor <value>.
5153 .IPs value>8
5154 Set width to value and calculate height to keep correct aspect ratio.
5156 .PD 1
5159 .B \-y <y> (also see \-zoom) (MPlayer only)
5160 Scale image to height <y> (if software/\:hardware scaling is available).
5161 Disables aspect calculations.
5164 .B "\-zoom\ \ "
5165 Allow software scaling, where available.
5166 This will allow scaling with output drivers (like x11, fbdev) that
5167 do not support hardware scaling where MPlayer disables scaling by
5168 default for performance reasons.
5172 .SH "AUDIO FILTERS"
5173 Audio filters allow you to modify the audio stream and its properties.
5174 The syntax is:
5177 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
5178 Setup a chain of audio filters.
5180 .I NOTE:
5181 To get a full list of available audio filters, see \-af help.
5182 .sp 1
5183 Audio filters are managed in lists.
5184 There are a few commands to manage the filter list.
5187 .B \-af\-add <filter1[,filter2,...]>
5188 Appends the filters given as arguments to the filter list.
5191 .B \-af\-pre <filter1[,filter2,...]>
5192 Prepends the filters given as arguments to the filter list.
5195 .B \-af\-del <index1[,index2,...]>
5196 Deletes the filters at the given indexes.
5197 Index numbers start at 0, negative numbers address the end of the
5198 list (\-1 is the last).
5201 .B \-af\-clr
5202 Completely empties the filter list.
5204 Available filters are:
5207 .B resample[=srate[:sloppy[:type]]]
5208 Changes the sample rate of the audio stream.
5209 Can be used if you have a fixed frequency sound card or if you are
5210 stuck with an old sound card that is only capable of max 44.1kHz.
5211 This filter is automatically enabled if necessary.
5212 It only supports 16-bit integer and float in native-endian format as input.
5214 .I NOTE:
5215 With MEncoder, you need to also use \-srate <srate>.
5216 .PD 0
5217 .RSs
5218 .IPs <srate>
5219 output sample frequency in Hz.
5220 The valid range for this parameter is 8000 to 192000.
5221 If the input and output sample frequency are the same or if this
5222 parameter is omitted the filter is automatically unloaded.
5223 A high sample frequency normally improves the audio quality,
5224 especially when used in combination with other filters.
5225 .IPs <sloppy>
5226 Allow (1) or disallow (0) the output frequency to differ slightly
5227 from the frequency given by <srate> (default: 1).
5228 Can be used if the startup of the playback is extremely slow.
5229 .IPs <type>
5230 Select which resampling method to use.
5231 .RSss
5232 0: linear interpolation (fast, poor quality especially when upsampling)
5234 1: polyphase filterbank and integer processing
5236 2: polyphase filterbank and floating point processing (slow, best quality)
5237 .REss
5238 .PD 1
5240 .sp 1
5242 .I EXAMPLE:
5244 .PD 0
5245 .RSs
5246 .IPs "mplayer \-af resample=44100:0:0"
5247 would set the output frequency of the resample filter to 44100Hz using
5248 exact output frequency scaling and linear interpolation.
5250 .PD 1
5253 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
5254 Changes the sample rate of the audio stream to an integer <srate> in Hz.
5255 It only supports the 16-bit native-endian format.
5257 .I NOTE:
5258 With MEncoder, you need to also use \-srate <srate>.
5259 .PD 0
5260 .RSs
5261 .IPs <srate>
5262 the output sample rate
5263 .IPs <length>
5264 length of the filter with respect to the lower sampling rate (default: 16)
5265 .IPs <linear>
5266 if 1 then filters will be linearly interpolated between polyphase entries
5267 .IPs <count>
5268 log2 of the number of polyphase entries
5269 (..., 10->1024, 11->2048, 12->4096, ...)
5270 (default: 10->1024)
5271 .IPs <cutoff>
5272 cutoff frequency (0.0\-1.0), default set depending upon filter length
5274 .PD 1
5277 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
5278 Encode multi-channel audio to AC-3 at runtime using libavcodec.
5279 Supports 16-bit native-endian input format, maximum 6 channels.
5280 The output is big-endian when outputting a raw AC-3 stream,
5281 native-endian when outputting to S/PDIF.
5282 The output sample rate of this filter is same with the input sample rate.
5283 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
5284 Otherwise a resampling filter is auto-inserted before this filter to make
5285 the input and output sample rate be 48kHz.
5286 You need to specify '\-channels N' to make the decoder decode audio into
5287 N-channel, then the filter can encode the N-channel input to AC-3.
5289 .PD 0
5290 .RSs
5291 .IPs <tospdif>
5292 Output raw AC-3 stream if zero or not set,
5293 output to S/PDIF for passthrough when <tospdif> is set non-zero.
5294 .IPs <bitrate>
5295 The bitrate to encode the AC-3 stream.
5296 Set it to either 384 or 384000 to get 384kbits.
5297 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
5298               320, 384, 448, 512, 576, 640
5299 Default bitrate is based on the input channel number:
5300 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
5301 .IPs <minchn>
5302 If the input channel number is less than <minchn>, the filter will
5303 detach itself (default: 5).
5305 .PD 1
5308 .B sweep[=speed]
5309 Produces a sine sweep.
5310 .PD 0
5311 .RSs
5312 .IPs <0.0\-1.0>
5313 Sine function delta, use very low values to hear the sweep.
5315 .PD 1
5318 .B sinesuppress[=freq:decay]
5319 Remove a sine at the specified frequency.
5320 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
5321 It probably only works on mono input.
5322 .PD 0
5323 .RSs
5324 .IPs <freq>
5325 The frequency of the sine which should be removed (in Hz) (default: 50)
5326 .IPs <decay>
5327 Controls the adaptivity (a larger value will make the filter adapt to
5328 amplitude and phase changes quicker, a smaller value will make the
5329 adaptation slower) (default: 0.0001).
5330 Reasonable values are around 0.001.
5332 .PD 1
5335 .B bs2b[=option1:option2:...]
5336 Bauer stereophonic to binaural transformation using libbs2b.
5337 Improves the headphone listening experience by making the sound
5338 similar to that from loudspeakers, allowing each ear to hear both
5339 channels and taking into account the distance difference and the
5340 head shadowing effect.
5341 It is applicable only to 2 channel audio.
5342 .PD 0
5343 .RSs
5344 .IPs fcut=<300\-1000>
5345 Set cut frequency in Hz.
5346 .IPs feed=<10\-150>
5347 Set feed level for low frequencies in 0.1*dB.
5348 .IPs profile=<value>
5349 Several profiles are available for convenience:
5350 .PD 0
5351 .RSs
5352 .IPs default
5353 will be used if nothing else was specified (fcut=700, feed=45)
5354 .IPs "cmoy\ "
5355 Chu Moy circuit implementation (fcut=700, feed=60)
5356 .IPs jmeier
5357 Jan Meier circuit implementation (fcut=650, feed=95)
5360 .sp 1
5362 If fcut or feed options are specified together with a profile, they
5363 will be applied on top of the selected profile.
5365 .PD 1
5368 .B hrtf[=flag]
5369 Head-related transfer function: Converts multichannel audio to
5370 2 channel output for headphones, preserving the spatiality of the sound.
5371 .sp 1
5372 .PD 0
5374 .IPs "Flag  Meaning"
5375 .IPs "m     matrix decoding of the rear channel"
5376 .IPs "s     2-channel matrix decoding"
5377 .IPs "0     no matrix decoding (default)"
5379 .PD 1
5382 .B equalizer=[g1:g2:g3:...:g10]
5383 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
5384 This means that it works regardless of what type of audio is being played back.
5385 The center frequencies for the 10 bands are:
5386 .sp 1
5387 .PD 0
5389 .IPs "No. frequency"
5390 .IPs "0    31.25 Hz"
5391 .IPs "1    62.50 Hz"
5392 .IPs "2   125.00 Hz"
5393 .IPs "3   250.00 Hz"
5394 .IPs "4   500.00 Hz"
5395 .IPs "5    1.00 kHz"
5396 .IPs "6    2.00 kHz"
5397 .IPs "7    4.00 kHz"
5398 .IPs "8    8.00 kHz"
5399 .IPs "9   16.00 kHz"
5401 .PD 1
5402 .sp 1
5404 If the sample rate of the sound being played is lower than the center
5405 frequency for a frequency band, then that band will be disabled.
5406 A known bug with this filter is that the characteristics for the
5407 uppermost band are not completely symmetric if the sample
5408 rate is close to the center frequency of that band.
5409 This problem can be worked around by upsampling the sound
5410 using the resample filter before it reaches this filter.
5412 .PD 0
5413 .RSs
5414 .IPs <g1>:<g2>:<g3>:...:<g10>
5415 floating point numbers representing the gain in dB
5416 for each frequency band (\-12\-12)
5418 .sp 1
5420 .I EXAMPLE:
5422 .RSs
5423 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
5424 Would amplify the sound in the upper and lower frequency region
5425 while canceling it almost completely around 1kHz.
5427 .PD 1
5430 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
5431 Can be used for adding, removing, routing and copying audio channels.
5432 If only <nch> is given the default routing is used, it works as
5433 follows: If the number of output channels is bigger than the number of
5434 input channels empty channels are inserted (except mixing from mono to
5435 stereo, then the mono channel is repeated in both of the output
5436 channels).
5437 If the number of output channels is smaller than the number
5438 of input channels the exceeding channels are truncated.
5439 .PD 0
5440 .RSs
5441 .IPs <nch>
5442 number of output channels (1\-8)
5443 .IPs "<nr>\ "
5444 number of routes (1\-8)
5445 .IPs <from1:to1:from2:to2:from3:to3:...>
5446 Pairs of numbers between 0 and 7 that define where to route each channel.
5448 .sp 1
5450 .I EXAMPLE:
5452 .RSs
5453 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5454 Would change the number of channels to 4 and set up 4 routes that
5455 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5456 Observe that if media containing two channels was played back, channels
5457 2 and 3 would contain silence but 0 and 1 would still be swapped.
5458 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5459 Would change the number of channels to 6 and set up 4 routes
5460 that copy channel 0 to channels 0 to 3.
5461 Channel 4 and 5 will contain silence.
5463 .PD 1
5466 .B format[=format] (also see \-format)
5467 Convert between different sample formats.
5468 Automatically enabled when needed by the sound card or another filter.
5469 .PD 0
5470 .RSs
5471 .IPs <format>
5472 Sets the desired format.
5473 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5474 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5475 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5476 and 'ne' the endianness of the computer MPlayer is running on).
5477 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5478 Exceptions to this rule that are also valid format specifiers: u8, s8,
5479 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5481 .PD 1
5484 .B volume[=v[:sc]]
5485 Implements software volume control.
5486 Use this filter with caution since it can reduce the signal
5487 to noise ratio of the sound.
5488 In most cases it is best to set the level for the PCM sound to max,
5489 leave this filter out and control the output level to your
5490 speakers with the master volume control of the mixer.
5491 In case your sound card has a digital PCM mixer instead of an analog
5492 one, and you hear distortion, use the MASTER mixer instead.
5493 If there is an external amplifier connected to the computer (this
5494 is almost always the case), the noise level can be minimized by
5495 adjusting the master level and the volume knob on the amplifier
5496 until the hissing noise in the background is gone.
5498 This filter has a second feature: It measures the overall maximum
5499 sound level and prints out that level when MPlayer exits.
5500 This volume estimate can be used for setting the sound level in
5501 MEncoder such that the maximum dynamic range is utilized.
5502 This feature currently only works with floating-point data,
5503 use e.g. \-af\-adv force=5, or use \-af stats.
5505 .I NOTE:
5506 This filter is not reentrant and can therefore only be enabled
5507 once for every audio stream.
5508 .PD 0
5509 .RSs
5510 .IPs "<v>\ \ "
5511 Sets the desired gain in dB for all channels in the stream
5512 from \-200dB to +60dB, where \-200dB mutes the sound
5513 completely and +60dB equals a gain of 1000 (default: 0).
5514 .IPs "<sc>\ "
5515 Turns soft clipping on (1) or off (0).
5516 Soft-clipping can make the sound more smooth if very
5517 high volume levels are used.
5518 Enable this option if the dynamic range of the
5519 loudspeakers is very low.
5521 .I WARNING:
5522 This feature creates distortion and should be considered a last resort.
5524 .sp 1
5526 .I EXAMPLE:
5528 .RSs
5529 .IPs "mplayer \-af volume=10.1:0 media.avi"
5530 Would amplify the sound by 10.1dB and hard-clip if the
5531 sound level is too high.
5533 .PD 1
5536 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5537 Mixes channels arbitrarily.
5538 Basically a combination of the volume and the channels filter
5539 that can be used to down-mix many channels to only a few,
5540 e.g.\& stereo to mono or vary the "width" of the center
5541 speaker in a surround sound system.
5542 This filter is hard to use, and will require some tinkering
5543 before the desired result is obtained.
5544 The number of options for this filter depends on
5545 the number of output channels.
5546 An example how to downmix a six-channel file to two channels with
5547 this filter can be found in the examples section near the end.
5548 .PD 0
5549 .RSs
5550 .IPs "<n>\ \ "
5551 number of output channels (1\-8)
5552 .IPs <Lij>
5553 How much of input channel i is mixed into output channel j (0\-1).
5554 So in principle you first have n numbers saying what to do with the
5555 first input channel, then n numbers that act on the second input channel
5556 etc.
5557 If you do not specify any numbers for some input channels, 0 is assumed.
5559 .sp 1
5561 .I EXAMPLE:
5563 .RSs
5564 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5565 Would down-mix from stereo to mono.
5566 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5567 Would give 3 channel output leaving channels 0 and 1 intact,
5568 and mix channels 0 and 1 into output channel 2 (which could
5569 be sent to a subwoofer for example).
5571 .PD 1
5574 .B sub[=fc:ch]
5575 Adds a subwoofer channel to the audio stream.
5576 The audio data used for creating the subwoofer channel is
5577 an average of the sound in channel 0 and channel 1.
5578 The resulting sound is then low-pass filtered by a 4th order
5579 Butterworth filter with a default cutoff frequency of 60Hz
5580 and added to a separate channel in the audio stream.
5582 .I Warning:
5583 Disable this filter when you are playing DVDs with Dolby
5584 Digital 5.1 sound, otherwise this filter will disrupt
5585 the sound to the subwoofer.
5586 .PD 0
5587 .RSs
5588 .IPs "<fc>\ "
5589 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5590 For the best result try setting the cutoff frequency as low as possible.
5591 This will improve the stereo or surround sound experience.
5592 .IPs "<ch>\ "
5593 Determines the channel number in which to insert the sub-channel audio.
5594 Channel number can be between 0 and 7 (default: 5).
5595 Observe that the number of channels will automatically
5596 be increased to <ch> if necessary.
5598 .sp 1
5600 .I EXAMPLE:
5602 .RSs
5603 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5604 Would add a sub-woofer channel with a cutoff frequency of
5605 100Hz to output channel 4.
5607 .PD 1
5610 .B "center\ "
5611 Creates a center channel from the front channels.
5612 May currently be low quality as it does not implement a
5613 high-pass filter for proper extraction yet, but averages and
5614 halves the channels instead.
5615 .PD 0
5616 .RSs
5617 .IPs "<ch>\ "
5618 Determines the channel number in which to insert the center channel.
5619 Channel number can be between 0 and 7 (default: 5).
5620 Observe that the number of channels will automatically
5621 be increased to <ch> if necessary.
5623 .PD 1
5626 .B surround[=delay]
5627 Decoder for matrix encoded surround sound like Dolby Surround.
5628 Many files with 2 channel audio actually contain matrixed surround sound.
5629 Requires a sound card supporting at least 4 channels.
5630 .PD 0
5631 .RSs
5632 .IPs <delay>
5633 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5634 This delay should be set as follows: If d1 is the distance
5635 from the listening position to the front speakers and d2 is the distance
5636 from the listening position to the rear speakers, then the delay should
5637 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5639 .sp 1
5641 .I EXAMPLE:
5643 .RSs
5644 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5645 Would add surround sound decoding with 15ms delay for the sound to the
5646 rear speakers.
5648 .PD 1
5651 .B delay[=ch1:ch2:...]
5652 Delays the sound to the loudspeakers such that the sound from the
5653 different channels arrives at the listening position simultaneously.
5654 It is only useful if you have more than 2 loudspeakers.
5655 .PD 0
5656 .RSs
5657 .IPs ch1,ch2,...
5658 The delay in ms that should be imposed on each channel
5659 (floating point number between 0 and 1000).
5661 .PD 1
5662 .sp 1
5664 To calculate the required delay for the different channels do as follows:
5665 .IP 1. 3
5666 Measure the distance to the loudspeakers in meters in relation
5667 to your listening position, giving you the distances s1 to s5
5668 (for a 5.1 system).
5669 There is no point in compensating for the subwoofer (you will not hear the
5670 difference anyway).
5671 .IP 2. 3
5672 Subtract the distances s1 to s5 from the maximum distance,
5673 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5674 .IP 3.
5675 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5677 .PD 0
5678 .sp 1
5680 .I EXAMPLE:
5682 .RSs
5683 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5684 Would delay front left and right by 10.5ms, the two rear channels
5685 and the sub by 0ms and the center channel by 7ms.
5687 .PD 1
5690 .B export[=mmapped_file[:nsamples]]
5691 Exports the incoming signal to other processes using memory mapping (mmap()).
5692 Memory mapped areas contain a header:
5693 .sp 1
5695 int nch                      /*number of channels*/
5696 int size                     /*buffer size*/
5697 unsigned long long counter   /*Used to keep sync, updated every
5698                                time new data is exported.*/
5700 .sp 1
5701 The rest is payload (non-interleaved) 16 bit data.
5702 .PD 0
5703 .RSs
5704 .IPs <mmapped_file>
5705 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5706 .IPs <nsamples>
5707 number of samples per channel (default: 512)
5709 .sp 1
5711 .I EXAMPLE:
5713 .RSs
5714 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5715 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5717 .PD 1
5720 .B extrastereo[=mul]
5721 (Linearly) increases the difference between left and right channels
5722 which adds some sort of "live" effect to playback.
5723 .PD 0
5724 .RSs
5725 .IPs <mul>
5726 Sets the difference coefficient (default: 2.5).
5727 0.0 means mono sound (average of both channels), with 1.0 sound will be
5728 unchanged, with \-1.0 left and right channels will be swapped.
5730 .PD 1
5733 .B volnorm[=method:target]
5734 Maximizes the volume without distorting the sound.
5735 .PD 0
5736 .RSs
5737 .IPs <method>
5738 Sets the used method.
5739 .RSss
5740 1: Use a single sample to smooth the variations via the standard
5741 weighted mean over past samples (default).
5743 2: Use several samples to smooth the variations via the standard
5744 weighted mean over past samples.
5745 .REss
5746 .IPs <target>
5747 Sets the target amplitude as a fraction of the maximum for the
5748 sample type (default: 0.25).
5750 .PD 1
5753 .B ladspa=file:label[:controls...]
5754 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5755 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5756 .PD 0
5757 .RSs
5758 .IPs <file>
5759 Specifies the LADSPA plugin library file.
5760 If LADSPA_PATH is set, it searches for the specified file.
5761 If it is not set, you must supply a fully specified pathname.
5762 .IPs <label>
5763 Specifies the filter within the library.
5764 Some libraries contain only one filter, but others contain many of them.
5765 Entering 'help' here, will list all available filters within the specified
5766 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5767 .IPs <controls>
5768 Controls are zero or more floating point values that determine the
5769 behavior of the loaded plugin (for example delay, threshold or gain).
5770 In verbose mode (add \-v to the MPlayer command line), all available controls
5771 and their valid ranges are printed.
5772 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5774 .PD 1
5777 .B "comp\ \ \ "
5778 Compressor/expander filter usable for microphone input.
5779 Prevents artifacts on very loud sound and raises the volume on
5780 very low sound.
5781 This filter is untested, maybe even unusable.
5784 .B "gate\ \ \ "
5785 Noise gate filter similar to the comp audio filter.
5786 This filter is untested, maybe even unusable.
5789 .B karaoke
5790 Simple voice removal filter exploiting the fact that voice is
5791 usually recorded with mono gear and later 'center' mixed onto
5792 the final audio stream.
5793 Beware that this filter will turn your signal into mono.
5794 Works well for 2 channel tracks; do not bother trying it
5795 on anything but 2 channel stereo.
5798 .B scaletempo[=option1:option2:...]
5799 Scales audio tempo without altering pitch, optionally synced to playback
5800 speed (default).
5802 This works by playing \'stride\' ms of audio at normal speed then
5803 consuming \'stride*scale\' ms of input audio.
5804 It pieces the strides together by blending \'overlap\'% of stride with
5805 audio following the previous stride.
5806 It optionally performs a short statistical analysis on the next \'search\'
5807 ms of audio to determine the best overlap position.
5808 .PD 0
5809 .RSs
5810 .IPs scale=<amount>
5811 Nominal amount to scale tempo.
5812 Scales this amount in addition to speed.
5813 (default: 1.0)
5814 .IPs stride=<amount>
5815 Length in milliseconds to output each stride.
5816 Too high of value will cause noticable skips at high scale amounts and
5817 an echo at low scale amounts.
5818 Very low values will alter pitch.
5819 Increasing improves performance.
5820 (default: 60)
5821 .IPs overlap=<percent>
5822 Percentage of stride to overlap.
5823 Decreasing improves performance.
5824 (default: .20)
5825 .IPs search=<amount>
5826 Length in milliseconds to search for best overlap position.
5827 Decreasing improves performance greatly.
5828 On slow systems, you will probably want to set this very low.
5829 (default: 14)
5830 .IPs speed=<tempo|pitch|both|none>
5831 Set response to speed change.
5832 .RSss
5833 .IPs tempo
5834 Scale tempo in sync with speed (default).
5835 .IPs pitch
5836 Reverses effect of filter.
5837 Scales pitch without altering tempo.
5838 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5839 to your input.conf to step by musical semi-tones.
5840 .I WARNING:
5841 Loses sync with video.
5842 .IPs both
5843 Scale both tempo and pitch.
5844 .IPs none
5845 Ignore speed changes.
5848 .sp 1
5850 .I EXAMPLE:
5852 .RSs
5853 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5854 Would playback media at 1.2x normal speed, with audio at normal pitch.
5855 Changing playback speed, would change audio tempo to match.
5856 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5857 Would playback media at 1.2x normal speed, with audio at normal pitch,
5858 but changing playback speed has no effect on audio tempo.
5859 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5860 Would tweak the quality and performace parameters.
5861 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5862 Would make scaletempo use float code.
5863 Maybe faster on some platforms.
5864 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5865 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5866 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5868 .PD 1
5871 .B "stats\ \ "
5872 Collects and prints statistics about the audio stream, especially the volume.
5873 These statistics are especially intended to help adjusting the volume while
5874 avoiding clipping.
5875 The volumes are printed in dB and compatible with the volume audio filter.
5879 .SH "VIDEO FILTERS"
5880 Video filters allow you to modify the video stream and its properties.
5881 The syntax is:
5884 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5885 Setup a chain of video filters.
5887 Many parameters are optional and set to default values if omitted.
5888 To explicitly use a default value set a parameter to '\-1'.
5889 Parameters w:h means width x height in pixels, x:y means x;y position counted
5890 from the upper left corner of the bigger image.
5892 .I NOTE:
5893 To get a full list of available video filters, see \-vf help.
5894 .sp 1
5895 Video filters are managed in lists.
5896 There are a few commands to manage the filter list.
5899 .B \-vf\-add <filter1[,filter2,...]>
5900 Appends the filters given as arguments to the filter list.
5903 .B \-vf\-pre <filter1[,filter2,...]>
5904 Prepends the filters given as arguments to the filter list.
5907 .B \-vf\-del <index1[,index2,...]>
5908 Deletes the filters at the given indexes.
5909 Index numbers start at 0, negative numbers address the end of the
5910 list (\-1 is the last).
5913 .B \-vf\-clr
5914 Completely empties the filter list.
5916 With filters that support it, you can access parameters by their name.
5919 .B \-vf <filter>=help
5920 Prints the parameter names and parameter value ranges for a particular
5921 filter.
5924 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5925 Sets a named parameter to the given value.
5926 Use on and off or yes and no to set flag parameters.
5928 Available filters are:
5931 .B crop[=w:h:x:y]
5932 Crops the given part of the image and discards the rest.
5933 Useful to remove black bands from widescreen movies.
5934 .PD 0
5935 .RSs
5936 .IPs <w>,<h>
5937 Cropped width and height, defaults to original width and height.
5938 .IPs <x>,<y>
5939 Position of the cropped picture, defaults to center.
5941 .PD 1
5944 .B cropdetect[=limit:round[:reset]]
5945 Calculates necessary cropping parameters and prints the recommended parameters
5946 to stdout.
5947 .PD 0
5948 .RSs
5949 .IPs <limit>
5950 Threshold, which can be optionally specified from nothing (0) to
5951 everything (255) (default: 24).
5953 .IPs <round>
5954 Value which the width/\:height should be divisible by (default: 16).
5955 The offset is automatically adjusted to center the video.
5956 Use 2 to get only even dimensions (needed for 4:2:2 video).
5957 16 is best when encoding to most video codecs.
5959 .IPs <reset>
5960 Counter that determines after how many frames cropdetect will reset the
5961 previously detected largest video area and start over to detect the current
5962 optimal crop area (default: 0).
5963 This can be useful when channel logos distort the video area.
5964 0 indicates never reset and return the largest area encountered during playback.
5966 .PD 1
5969 .B rectangle[=w:h:x:y]
5970 Draws a rectangle of the requested width and height at the specified
5971 coordinates over the image and prints current rectangle parameters
5972 to the console.
5973 This can be used to find optimal cropping parameters.
5974 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5975 you can move and resize the rectangle on the fly.
5976 .PD 0
5977 .RSs
5978 .IPs <w>,<h>
5979 width and height (default: \-1, maximum possible width where boundaries
5980 are still visible.)
5981 .IPs <x>,<y>
5982 top left corner position (default: \-1, uppermost leftmost)
5984 .PD 1
5987 .B expand[=w:h:x:y:o:a:r]
5988 Expands (not scales) movie resolution to the given value and places the
5989 unscaled original at coordinates x, y.
5990 Can be used for placing subtitles/\:OSD in the resulting black bands.
5991 .RSs
5992 .IPs <w>,<h>
5993 Expanded width,height (default: original width,height).
5994 Negative values for w and h are treated as offsets to the original size.
5995 .sp 1
5996 .I EXAMPLE:
5997 .PD 0
5998 .RSs
5999 .IP expand=0:\-50:0:0
6000 Adds a 50 pixel border to the bottom of the picture.
6002 .PD 1
6003 .IPs <x>,<y>
6004 position of original image on the expanded image (default: center)
6005 .IPs "<o>\ \ "
6006 OSD/\:subtitle rendering
6007 .RSss
6008 0: disable (default)
6010 1: enable
6011 .REss
6012 .IPs "<a>\ \ "
6013 Expands to fit an aspect instead of a resolution (default: 0).
6014 .sp 1
6015 .I EXAMPLE:
6016 .PD 0
6017 .RSs
6018 .IP expand=800:::::4/3
6019 Expands to 800x600, unless the source is higher resolution, in which
6020 case it expands to fill a 4/3 aspect.
6022 .PD 1
6023 .IPs "<r>\ \ "
6024 Rounds up to make both width and height divisible by <r> (default: 1).
6028 .B flip (also see \-flip)
6029 Flips the image upside down.
6032 .B "mirror\ "
6033 Mirrors the image on the Y axis.
6036 .B rotate[=<0\-7>]
6037 Rotates the image by 90 degrees and optionally flips it.
6038 For values between 4\-7 rotation is only done if the movie geometry is
6039 portrait and not landscape.
6040 .RSs
6041 .IPs 0
6042 Rotate by 90 degrees clockwise and flip (default).
6043 .IPs 1
6044 Rotate by 90 degrees clockwise.
6045 .IPs 2
6046 Rotate by 90 degrees counterclockwise.
6047 .IPs 3
6048 Rotate by 90 degrees counterclockwise and flip.
6052 .B scale[=w:h[:interlaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
6053 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
6054 colorspace conversion (also see \-sws).
6055 .RSs
6056 .IPs <w>,<h>
6057 scaled width/\:height (default: original width/\:height)
6059 .I NOTE:
6060 If \-zoom is used, and underlying filters (including libvo) are
6061 incapable of scaling, it defaults to d_width/\:d_height!
6062 .RSss
6063  0:   scaled d_width/\:d_height
6065 \-1:   original width/\:height
6067 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
6069 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
6071 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
6072 .REss
6073 .IPs <interlaced>
6074 Toggle interlaced scaling.
6075 .RSss
6076 0: off (default)
6078 1: on
6079 .REss
6080 .IPs <chr_drop>
6081 chroma skipping
6082 .RSss
6083 0: Use all available input lines for chroma.
6085 1: Use only every 2. input line for chroma.
6087 2: Use only every 4. input line for chroma.
6089 3: Use only every 8. input line for chroma.
6090 .REss
6091 .IPs "<par>[:<par2>] (also see \-sws)"
6092 Set some scaling parameters depending on the type of scaler selected
6093 with \-sws.
6094 .RSss
6095 \-sws 2 (bicubic):  B (blurring) and C (ringing)
6097 0.00:0.60 default
6099 0.00:0.75 VirtualDub's "precise bicubic"
6101 0.00:0.50 Catmull-Rom spline
6103 0.33:0.33 Mitchell-Netravali spline
6105 1.00:0.00 cubic B-spline
6107 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
6109 \-sws 9 (lanczos):  filter length (1\-10)
6110 .REss
6111 .IPs <presize>
6112 Scale to preset sizes.
6113 .RSss
6114 qntsc:   352x240 (NTSC quarter screen)
6116 qpal:    352x288 (PAL quarter screen)
6118 ntsc:    720x480 (standard NTSC)
6120 pal:     720x576 (standard PAL)
6122 sntsc:   640x480 (square pixel NTSC)
6124 spal:    768x576 (square pixel PAL)
6125 .REss
6126 .IPs <noup>
6127 Disallow upscaling past the original dimensions.
6128 .RSss
6129 0: Allow upscaling (default).
6131 1: Disallow upscaling if one dimension exceeds its original value.
6133 2: Disallow upscaling if both dimensions exceed their original values.
6134 .REss
6135 .IPs <arnd>
6136 Accurate rounding for the vertical scaler, which may be faster
6137 or slower than the default rounding.
6138 .RSss
6139 0: Disable accurate rounding (default).
6141 1: Enable accurate rounding.
6142 .REss
6146 .B dsize[=aspect|w:h:aspect-method:r]
6147 Changes the intended display size/\:aspect at an arbitrary point in the
6148 filter chain.
6149 Aspect can be given as a fraction (4/3) or floating point number
6150 (1.33).
6151 Alternatively, you may specify the exact display width and height
6152 desired.
6153 Note that this filter does
6154 .B not
6155 do any scaling itself; it just affects
6156 what later scalers (software or hardware) will do when auto-scaling to
6157 correct aspect.
6158 .RSs
6159 .IPs <w>,<h>
6160 New display width and height.
6161 Can also be these special values:
6162 .RSss
6163  0:   original display width and height
6165 \-1:   original video width and height (default)
6167 \-2:   Calculate w/h using the other dimension and the original display
6168 aspect ratio.
6170 \-3:   Calculate w/h using the other dimension and the original video
6171 aspect ratio.
6172 .REss
6173 .sp 1
6174 .I EXAMPLE:
6175 .PD 0
6176 .RSs
6177 .IP dsize=800:\-2
6178 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
6179 800x450 for a 16/9 aspect video.
6181 .IPs <aspect-method>
6182 Modifies width and height according to original aspect ratios.
6183 .RSss
6184 \-1: Ignore original aspect ratio (default).
6186  0: Keep display aspect ratio by using <w> and <h> as maximum
6187 resolution.
6189  1: Keep display aspect ratio by using <w> and <h> as minimum
6190 resolution.
6192  2: Keep video aspect ratio by using <w> and <h> as maximum
6193 resolution.
6195  3: Keep video aspect ratio by using <w> and <h> as minimum
6196 resolution.
6197 .REss
6198 .sp 1
6199 .I EXAMPLE:
6200 .PD 0
6201 .RSs
6202 .IP dsize=800:600:0
6203 Specifies a display resolution of at most 800x600, or smaller, in order
6204 to keep aspect.
6206 .PD 1
6207 .IPs "<r>\ \ "
6208 Rounds up to make both width and height divisible by <r> (default: 1).
6212 .B "yvu9\ \ \ "
6213 Forces software YVU9 to YV12 colorspace conversion.
6214 Deprecated in favor of the software scaler.
6217 .B "yuvcsp\ "
6218 Clamps YUV color values to the CCIR 601 range without doing real conversion.
6221 .B palette
6222 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
6225 .B format[=fourcc[:outfourcc]]
6226 Restricts the colorspace for the next filter without doing any conversion.
6227 Use together with the scale filter for a real conversion.
6229 .I NOTE:
6230 For a list of available formats see format=fmt=help.
6231 .PD 0
6232 .RSs
6233 .IPs <fourcc>
6234 format name like rgb15, bgr24, yv12, etc (default: yuy2)
6235 .IPs <outfourcc>
6236 Format name that should be substituted for the output.
6237 If this is not 100% compatible with the <fourcc> value it will crash.
6239 Valid examples:
6241 format=rgb24:bgr24 format=yuyv:yuy2
6243 Invalid examples (will crash):
6245 format=rgb24:yv12
6247 .PD 1
6250 .B noformat[=fourcc]
6251 Restricts the colorspace for the next filter without doing any conversion.
6252 Unlike the format filter, this will allow any colorspace
6253 .B except
6254 the one you specify.
6256 .I NOTE:
6257 For a list of available formats see noformat=fmt=help.
6258 .PD 0
6259 .RSs
6260 .IPs <fourcc>
6261 format name like rgb15, bgr24, yv12, etc (default: yv12)
6263 .PD 1
6266 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
6267 Enables the specified chain of postprocessing subfilters.
6268 Subfilters must be separated by '/' and can be disabled by
6269 prepending a '\-'.
6270 Each subfilter and some options have a short and a long name that can be
6271 used interchangeably, i.e.\& dr/dering are the same.
6272 All subfilters share common options to determine their scope:
6273 .PD 0
6274 .RSs
6275 .IPs a/autoq
6276 Automatically switch the subfilter off if the CPU is too slow.
6277 .IPs c/chrom
6278 Do chrominance filtering, too (default).
6279 .IPs y/nochrom
6280 Do luminance filtering only (no chrominance).
6281 .IPs n/noluma
6282 Do chrominance filtering only (no luminance).
6284 .PD 1
6285 .sp 1
6288 .I NOTE:
6289 \-pphelp shows a list of available subfilters.
6290 .sp 1
6291 Available subfilters are
6293 .RSs
6294 .IPs hb/hdeblock[:difference[:flatness]]
6295 horizontal deblocking filter
6296 .RSss
6297 <difference>: Difference factor where higher values mean
6298 more deblocking (default: 32).
6300 <flatness>: Flatness threshold where lower values mean
6301 more deblocking (default: 39).
6302 .REss
6303 .IPs vb/vdeblock[:difference[:flatness]]
6304 vertical deblocking filter
6305 .RSss
6306 <difference>: Difference factor where higher values mean
6307 more deblocking (default: 32).
6309 <flatness>: Flatness threshold where lower values mean
6310 more deblocking (default: 39).
6311 .REss
6312 .IPs ha/hadeblock[:difference[:flatness]]
6313 accurate horizontal deblocking filter
6314 .RSss
6315 <difference>: Difference factor where higher values mean
6316 more deblocking (default: 32).
6318 <flatness>: Flatness threshold where lower values mean
6319 more deblocking (default: 39).
6320 .REss
6321 .IPs va/vadeblock[:difference[:flatness]]
6322 accurate vertical deblocking filter
6323 .RSss
6324 <difference>: Difference factor where higher values mean
6325 more deblocking (default: 32).
6327 <flatness>: Flatness threshold where lower values mean
6328 more deblocking (default: 39).
6329 .REss
6330 .sp 1
6331 The horizontal and vertical deblocking filters share the
6332 difference and flatness values so you cannot set
6333 different horizontal and vertical thresholds.
6334 .sp 1
6335 .IPs h1/x1hdeblock
6336 experimental horizontal deblocking filter
6337 .IPs v1/x1vdeblock
6338 experimental vertical deblocking filter
6339 .IPs dr/dering
6340 deringing filter
6341 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
6342 temporal noise reducer
6343 .RSss
6344 <threshold1>: larger -> stronger filtering
6346 <threshold2>: larger -> stronger filtering
6348 <threshold3>: larger -> stronger filtering
6349 .REss
6350 .IPs al/autolevels[:f/fullyrange]
6351 automatic brightness / contrast correction
6352 .RSss
6353 f/fullyrange: Stretch luminance to (0\-255).
6354 .REss
6355 .IPs lb/linblenddeint
6356 Linear blend deinterlacing filter that deinterlaces the given block
6357 by filtering all lines with a (1 2 1) filter.
6358 .IPs li/linipoldeint
6359 Linear interpolating deinterlacing filter that deinterlaces the given block
6360 by linearly interpolating every second line.
6361 .IPs ci/cubicipoldeint
6362 Cubic interpolating deinterlacing filter deinterlaces the given block
6363 by cubically interpolating every second line.
6364 .IPs md/mediandeint
6365 Median deinterlacing filter that deinterlaces the given block
6366 by applying a median filter to every second line.
6367 .IPs fd/ffmpegdeint
6368 FFmpeg deinterlacing filter that deinterlaces the given block
6369 by filtering every second line with a (\-1 4 2 4 \-1) filter.
6370 .IPs l5/lowpass5
6371 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
6372 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
6373 .IPs fq/forceQuant[:quantizer]
6374 Overrides the quantizer table from the input with the constant
6375 quantizer you specify.
6376 .RSss
6377 <quantizer>: quantizer to use
6378 .REss
6379 .IPs de/default
6380 default pp filter combination (hb:a,vb:a,dr:a)
6381 .IPs fa/fast
6382 fast pp filter combination (h1:a,v1:a,dr:a)
6383 .IPs "ac\ \ \ "
6384 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
6387 .sp 1
6388 .I EXAMPLE:
6390 .PD 0
6391 .RSs
6392 .IPs "\-vf pp=hb/vb/dr/al"
6393 horizontal and vertical deblocking, deringing and automatic
6394 brightness/\:contrast
6395 .IPs "\-vf pp=de/\-al"
6396 default filters without brightness/\:contrast correction
6397 .IPs "\-vf pp=default/tmpnoise:1:2:3"
6398 Enable default filters & temporal denoiser.
6399 .IPs "\-vf pp=hb:y/vb:a"
6400 Horizontal deblocking on luminance only, and switch vertical deblocking
6401 on or off automatically depending on available CPU time.
6403 .PD 1
6406 .B spp[=quality[:qp[:mode]]]
6407 Simple postprocessing filter that compresses and decompresses the
6408 image at several (or \- in the case of quality level 6 \- all)
6409 shifts and averages the results.
6410 .RSs
6411 .IPs <quality>
6412 0\-6 (default: 3)
6413 .IPs "<qp>\ "
6414 Force quantization parameter (default: 0, use QP from video).
6415 .IPs <mode>
6416 0: hard thresholding (default)
6418 1: soft thresholding (better deringing, but blurrier)
6420 4: like 0, but also use B-frames' QP (may cause flicker)
6422 5: like 1, but also use B-frames' QP (may cause flicker)
6426 .B uspp[=quality[:qp]]
6427 Ultra simple & slow postprocessing filter that compresses and
6428 decompresses the image at several (or \- in the case of quality
6429 level 8 \- all) shifts and averages the results.
6430 The way this differs from the behavior of spp is that uspp actually
6431 encodes & decodes each case with libavcodec Snow, whereas spp uses
6432 a simplified intra only 8x8 DCT similar to MJPEG.
6433 .RSs
6434 .IPs <quality>
6435 0\-8 (default: 3)
6436 .IPs "<qp>\ "
6437 Force quantization parameter (default: 0, use QP from video).
6441 .B fspp[=quality[:qp[:strength[:bframes]]]]
6442 faster version of the simple postprocessing filter
6443 .RSs
6444 .IPs <quality>
6445 4\-5 (equivalent to spp; default: 4)
6446 .IPs "<qp>\ "
6447 Force quantization parameter (default: 0, use QP from video).
6448 .IPs <\-15\-32>
6449 Filter strength, lower values mean more details but also more artifacts,
6450 while higher values make the image smoother but also blurrier (default:
6451 0 \- PSNR optimal).
6452 .IPs <bframes>
6453 0: do not use QP from B-frames (default)
6455 1: use QP from B-frames too (may cause flicker)
6459 .B pp7[=qp[:mode]]
6460 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6461 only the center sample is used after IDCT.
6462 .RSs
6463 .IPs "<qp>\ "
6464 Force quantization parameter (default: 0, use QP from video).
6465 .IPs <mode>
6466 0: hard thresholding
6468 1: soft thresholding (better deringing, but blurrier)
6470 2: medium thresholding (default, good results)
6474 .B qp=equation
6475 quantization parameter (QP) change filter
6476 .RSs
6477 .IPs <equation>
6478 some equation like "2+2*sin(PI*qp)"
6482 .B geq=equation
6483 generic equation change filter
6484 .RSs
6485 .IPs <equation>
6486 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6487 You can use whitespace to make the equation more readable.
6488 There are a couple of constants that can be used in the equation:
6489 .RSss
6490 PI: the number pi
6492 E: the number e
6494 X / Y: the coordinates of the current sample
6496 W / H: width and height of the image
6498 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6499 1,1 and 0.5,0.5 for YUV 4:2:0.
6501 p(x,y): returns the value of the pixel at location x/y of the current plane.
6502 .REss
6506 .B "test\ \ \ "
6507 Generate various test patterns.
6510 .B rgbtest[=width:height]
6511 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6512 You should see a red, green and blue stripe from top to bottom.
6513 .RSs
6514 .IPs <width>
6515 Desired width of generated image (default: 0).
6516 0 means width of input image.
6518 .IPs <height>
6519 Desired height of generated image (default: 0).
6520 0 means height of input image.
6524 .B lavc[=quality:fps]
6525 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6526 .RSs
6527 .IPs <quality>
6528 1\-31: fixed qscale
6530 32\-:  fixed bitrate in kbits
6531 .IPs <fps>
6532 force output fps (float value) (default: 0, autodetect based on height)
6536 .B dvbscale[=aspect]
6537 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6538 calculating the y axis scaling in software to keep aspect.
6539 Only useful together with expand and scale.
6540 .RSs
6541 .IPs <aspect>
6542 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6543 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6545 .sp 1
6547 .I EXAMPLE:
6549 .PD 0
6550 .RSs
6551 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6552 FIXME: Explain what this does.
6554 .PD 1
6557 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6558 Adds noise.
6559 .PD 0
6560 .RSs
6561 .IPs <0\-100>
6562 luma noise
6563 .IPs <0\-100>
6564 chroma noise
6565 .IPs u
6566 uniform noise (gaussian otherwise)
6567 .IPs t
6568 temporal noise (noise pattern changes between frames)
6569 .IPs a
6570 averaged temporal noise (smoother, but a lot slower)
6571 .IPs h
6572 high quality (slightly better looking, slightly slower)
6573 .IPs p
6574 mix random noise with a (semi)regular pattern
6576 .PD 1
6579 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6580 This filter aims to reduce image noise producing smooth images and making still
6581 images really still (This should enhance compressibility.).
6582 .PD 0
6583 .RSs
6584 .IPs <luma_spatial>
6585 spatial luma strength (default: 4)
6586 .IPs <chroma_spatial>
6587 spatial chroma strength (default: 3)
6588 .IPs <luma_tmp>
6589 luma temporal strength (default: 6)
6590 .IPs <chroma_tmp>
6591 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6593 .PD 1
6596 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6597 High precision/\:quality version of the denoise3d filter.
6598 Parameters and usage are the same.
6601 .B ow[=depth[:luma_strength[:chroma_strength]]]
6602 Overcomplete Wavelet denoiser.
6603 .PD 0
6604 .RSs
6605 .IPs <depth>
6606 Larger depth values will denoise lower frequency components more, but
6607 slow down filtering (default: 8).
6608 .IPs <luma_strength>
6609 luma strength (default: 1.0)
6610 .IPs <chroma_strength>
6611 chroma strength (default: 1.0)
6613 .PD 1
6616 .B eq[=brightness:contrast] (OBSOLETE)
6617 Software equalizer with interactive controls just like the hardware
6618 equalizer, for cards/\:drivers that do not support brightness and
6619 contrast controls in hardware.
6620 Might also be useful with MEncoder, either for fixing poorly captured
6621 movies, or for slightly reducing contrast to mask artifacts and get by
6622 with lower bitrates.
6623 .PD 0
6624 .RSs
6625 .IPs <\-100\-100>
6626 initial brightness
6627 .IPs <\-100\-100>
6628 initial contrast
6630 .PD 1
6633 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6634 Alternative software equalizer that uses lookup tables (very slow),
6635 allowing gamma correction in addition to simple brightness
6636 and contrast adjustment.
6637 Note that it uses the same MMX optimized code as \-vf eq if all
6638 gamma values are 1.0.
6639 The parameters are given as floating point values.
6640 .PD 0
6641 .RSs
6642 .IPs <0.1\-10>
6643 initial gamma value (default: 1.0)
6644 .IPs <\-2\-2>
6645 initial contrast, where negative values result in a
6646 negative image (default: 1.0)
6647 .IPs <\-1\-1>
6648 initial brightness (default: 0.0)
6649 .IPs <0\-3>
6650 initial saturation (default: 1.0)
6651 .IPs <0.1\-10>
6652 gamma value for the red component (default: 1.0)
6653 .IPs <0.1\-10>
6654 gamma value for the green component (default: 1.0)
6655 .IPs <0.1\-10>
6656 gamma value for the blue component (default: 1.0)
6657 .IPs <0\-1>
6658 The weight parameter can be used to reduce the effect of a high gamma value on
6659 bright image areas, e.g.\& keep them from getting overamplified and just plain
6660 white.
6661 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6662 at its full strength (default: 1.0).
6664 .PD 1
6667 .B hue[=hue:saturation]
6668 Software equalizer with interactive controls just like the hardware
6669 equalizer, for cards/\:drivers that do not support hue and
6670 saturation controls in hardware.
6671 .PD 0
6672 .RSs
6673 .IPs <\-180\-180>
6674 initial hue (default: 0.0)
6675 .IPs <\-100\-100>
6676 initial saturation, where negative values result
6677 in a negative chroma (default: 1.0)
6679 .PD 1
6682 .B halfpack[=f]
6683 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6684 keeping all chroma samples.
6685 Useful for output to low-resolution display devices when hardware downscaling
6686 is poor quality or is not available.
6687 Can also be used as a primitive luma-only deinterlacer with very low CPU
6688 usage.
6689 .PD 0
6690 .RSs
6691 .IPs "<f>\ \ "
6692 By default, halfpack averages pairs of lines when downsampling.
6693 Any value different from 0 or 1 gives the default (averaging) behavior.
6694 .RSss
6695 0: Only use even lines when downsampling.
6697 1: Only use odd lines when downsampling.
6698 .REss
6700 .PD 1
6703 .B ilpack[=mode]
6704 When interlaced video is stored in YUV 4:2:0 formats, chroma
6705 interlacing does not line up properly due to vertical downsampling of
6706 the chroma channels.
6707 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6708 the chroma lines in their proper locations, so that in any given
6709 scanline, the luma and chroma data both come from the same field.
6710 .PD 0
6711 .RSs
6712 .IPs <mode>
6713 Select the sampling mode.
6714 .RSss
6715 0: nearest-neighbor sampling, fast but incorrect
6717 1: linear interpolation (default)
6718 .REss
6720 .PD 1
6723 .B harddup
6724 Only useful with MEncoder.
6725 If harddup is used when encoding, it will force duplicate frames to be
6726 encoded in the output.
6727 This uses slightly more space, but is necessary for output to MPEG
6728 files or if you plan to demux and remux the video stream after
6729 encoding.
6730 Should be placed at or near the end of the filter chain unless you
6731 have a good reason to do otherwise.
6734 .B softskip
6735 Only useful with MEncoder.
6736 Softskip moves the frame skipping (dropping) step of encoding from
6737 before the filter chain to some point during the filter chain.
6738 This allows filters which need to see all frames (inverse telecine,
6739 temporal denoising, etc.) to function properly.
6740 Should be placed after the filters which need to see all frames and
6741 before any subsequent filters that are CPU-intensive.
6744 .B decimate[=max:hi:lo:frac]
6745 Drops frames that do not differ greatly from the previous frame in
6746 order to reduce framerate.
6747 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6748 streaming over dialup modem), but it could in theory be used for
6749 fixing movies that were inverse-telecined incorrectly.
6750 .PD 0
6751 .RSs
6752 .IPs <max>
6753 Sets the maximum number of consecutive frames which can be
6754 dropped (if positive), or the minimum interval between
6755 dropped frames (if negative).
6756 .IPs <hi>,<lo>,<frac>
6757 A frame is a candidate for dropping if no 8x8 region differs by more
6758 than a threshold of <hi>, and if not more than <frac> portion (1
6759 meaning the whole image) differs by more than a threshold of <lo>.
6760 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6761 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6762 difference for each pixel, or the same spread out differently over the
6763 block.
6765 .PD 1
6768 .B dint[=sense:level]
6769 The drop-deinterlace (dint) filter detects and drops the first from a set
6770 of interlaced video frames.
6771 .PD 0
6772 .RSs
6773 .IPs <0.0\-1.0>
6774 relative difference between neighboring pixels (default: 0.1)
6775 .IPs <0.0\-1.0>
6776 What part of the image has to be detected as interlaced to
6777 drop the frame (default: 0.15).
6779 .PD 1
6782 .B lavcdeint (OBSOLETE)
6783 FFmpeg deinterlacing filter, same as \-vf pp=fd
6786 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6787 Donald Graft's adaptive kernel deinterlacer.
6788 Deinterlaces parts of a video if a configurable threshold is exceeded.
6789 .PD 0
6790 .RSs
6791 .IPs <0\-255>
6792 threshold (default: 10)
6793 .IPs <map>
6794 .RSss
6795 0: Ignore pixels exceeding the threshold (default).
6797 1: Paint pixels exceeding the threshold white.
6798 .REss
6799 .IPs <order>
6800 .RSss
6801 0: Leave fields alone (default).
6803 1: Swap fields.
6804 .REss
6805 .IPs <sharp>
6806 .RSss
6807 0: Disable additional sharpening (default).
6809 1: Enable additional sharpening.
6810 .REss
6811 .IPs <twoway>
6812 .RSss
6813 0: Disable twoway sharpening (default).
6815 1: Enable twoway sharpening.
6816 .REss
6818 .PD 1
6821 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6822 unsharp mask / gaussian blur
6823 .RSs
6824 .IPs "l\ \ \ \ "
6825 Apply effect on luma component.
6826 .IPs "c\ \ \ \ "
6827 Apply effect on chroma components.
6828 .IPs <width>x<height>
6829 width and height of the matrix, odd sized in both directions
6830 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6831 .IPs amount
6832 Relative amount of sharpness/\:blur to add to the image
6833 (a sane range should be \-1.5\-1.5).
6834 .RSss
6835 <0: blur
6837 >0: sharpen
6838 .REss
6842 .B "swapuv\ "
6843 Swap U & V plane.
6846 .B il[=d|i][s][:[d|i][s]]
6847 (De)interleaves lines.
6848 The goal of this filter is to add the ability to process interlaced images
6849 pre-field without deinterlacing them.
6850 You can filter your interlaced DVD and play it on a TV without breaking the
6851 interlacing.
6852 While deinterlacing (with the postprocessing filter) removes interlacing
6853 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6854 2 fields (so called half pictures), so you can process (filter) them
6855 independently and then re-interleave them.
6856 .PD 0
6857 .RSs
6858 .IPs d
6859 deinterleave (placing one above the other)
6860 .IPs i
6861 interleave
6862 .IPs s
6863 swap fields (exchange even & odd lines)
6865 .PD 1
6868 .B fil[=i|d]
6869 (De)interleaves lines.
6870 This filter is very similar to the il filter but much faster, the main
6871 disadvantage is that it does not always work.
6872 Especially if combined with other filters it may produce randomly messed
6873 up images, so be happy if it works but do not complain if it does not for
6874 your combination of filters.
6875 .PD 0
6876 .RSs
6877 .IPs d
6878 Deinterleave fields, placing them side by side.
6879 .IPs i
6880 Interleave fields again (reversing the effect of fil=d).
6882 .PD 1
6885 .B field[=n]
6886 Extracts a single field from an interlaced image using stride arithmetic
6887 to avoid wasting CPU time.
6888 The optional argument n specifies whether to extract the even or the odd
6889 field (depending on whether n is even or odd).
6892 .B detc[=var1=value1:var2=value2:...]
6893 Attempts to reverse the 'telecine' process to recover a clean,
6894 non-interlaced stream at film framerate.
6895 This was the first and most primitive inverse telecine filter to be
6896 added to MPlayer/\:MEncoder.
6897 It works by latching onto the telecine 3:2 pattern and following it as
6898 long as possible.
6899 This makes it suitable for perfectly-telecined material, even in the
6900 presence of a fair degree of noise, but it will fail in the presence
6901 of complex post-telecine edits.
6902 Development on this filter is no longer taking place, as ivtc, pullup,
6903 and filmdint are better for most applications.
6904 The following arguments (see syntax above) may be used to control
6905 detc's behavior:
6906 .RSs
6907 .IPs "<dr>\ "
6908 Set the frame dropping mode.
6909 .RSss
6910 0: Do not drop frames to maintain fixed output framerate (default).
6912 1: Always drop a frame when there have been no drops or telecine
6913 merges in the past 5 frames.
6915 2: Always maintain exact 5:4 input to output frame ratio.
6917 .I NOTE:
6918 Use mode 1 or 2 with MEncoder.
6919 .REss
6920 .IPs "<am>\ "
6921 Analysis mode.
6922 .RSss
6923 0: Fixed pattern with initial frame number specified by <fr>.
6925 1: aggressive search for telecine pattern (default)
6926 .REss
6927 .IPs "<fr>\ "
6928 Set initial frame number in sequence.
6929 0\-2 are the three clean progressive frames; 3 and 4 are the two
6930 interlaced frames.
6931 The default, \-1, means 'not in telecine sequence'.
6932 The number specified here is the type for the imaginary previous
6933 frame before the movie starts.
6934 .IPs "<t0>, <t1>, <t2>, <t3>"
6935 Threshold values to be used in certain modes.
6939 .B ivtc[=1]
6940 Experimental 'stateless' inverse telecine filter.
6941 Rather than trying to lock on to a pattern like the detc filter does,
6942 ivtc makes its decisions independently for each frame.
6943 This will give much better results for material that has undergone
6944 heavy editing after telecine was applied, but as a result it is not as
6945 forgiving of noisy input, for example TV capture.
6946 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6947 detc filter, and should be used with MEncoder but not with MPlayer.
6948 As with detc, you must specify the correct output framerate (\-ofps
6949 24000/1001) when using MEncoder.
6950 Further development on ivtc has stopped, as the pullup and filmdint
6951 filters appear to be much more accurate.
6954 .B pullup[=jl:jr:jt:jb:sb:mp]
6955 Third-generation pulldown reversal (inverse telecine) filter,
6956 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6957 fps progressive content.
6958 The pullup filter is designed to be much more robust than detc or
6959 ivtc, by taking advantage of future context in making its decisions.
6960 Like ivtc, pullup is stateless in the sense that it does not lock onto
6961 a pattern to follow, but it instead looks forward to the following
6962 fields in order to identify matches and rebuild progressive frames.
6963 It is still under development, but believed to be quite accurate.
6964 .RSs
6965 .IPs "jl, jr, jt, and jb"
6966 These options set the amount of "junk" to ignore at
6967 the left, right, top, and bottom of the image, respectively.
6968 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6969 2 lines.
6970 The default is 8 pixels on each side.
6972 .IPs "sb (strict breaks)"
6973 Setting this option to 1 will reduce the chances of
6974 pullup generating an occasional mismatched frame, but it may also
6975 cause an excessive number of frames to be dropped during high motion
6976 sequences.
6977 Conversely, setting it to \-1 will make pullup match fields more
6978 easily.
6979 This may help processing of video where there is slight blurring
6980 between the fields, but may also cause there to be interlaced frames
6981 in the output.
6983 .IPs "mp (metric plane)"
6984 This option may be set to 1 or 2 to use a chroma
6985 plane instead of the luma plane for doing pullup's computations.
6986 This may improve accuracy on very clean source material, but more
6987 likely will decrease accuracy, especially if there is chroma noise
6988 (rainbow effect) or any grayscale video.
6989 The main purpose of setting mp to a chroma plane is to reduce CPU load
6990 and make pullup usable in realtime on slow machines.
6991 .REss
6993 .sp 1
6994 .I NOTE:
6995 Always follow pullup with the softskip filter when encoding to ensure
6996 that pullup is able to see each frame.
6997 Failure to do so will lead to incorrect output and will usually crash,
6998 due to design limitations in the codec/\:filter layer.
6999 .REss
7002 .B filmdint[=options]
7003 Inverse telecine filter, similar to the pullup filter above.
7004 It is designed to handle any pulldown pattern, including mixed soft and
7005 hard telecine and limited support for movies that are slowed down or sped
7006 up from their original framerate for TV.
7007 Only the luma plane is used to find the frame breaks.
7008 If a field has no match, it is deinterlaced with simple linear
7009 approximation.
7010 If the source is MPEG-2, this must be the first filter to allow
7011 access to the field-flags set by the MPEG-2 decoder.
7012 Depending on the source MPEG, you may be fine ignoring this advice, as
7013 long as you do not see lots of "Bottom-first field" warnings.
7014 With no options it does normal inverse telecine, and should be used
7015 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
7016 When this filter is used with MPlayer, it will result in an uneven
7017 framerate during playback, but it is still generally better than using
7018 pp=lb or no deinterlacing at all.
7019 Multiple options can be specified separated by /.
7020 .RSs
7021 .IPs crop=<w>:<h>:<x>:<y>
7022 Just like the crop filter, but faster, and works on mixed hard and soft
7023 telecined content as well as when y is not a multiple of 4.
7024 If x or y would require cropping fractional pixels from the chroma
7025 planes, the crop area is extended.
7026 This usually means that x and y must be even.
7027 .IPs io=<ifps>:<ofps>
7028 For each ifps input frames the filter will output ofps frames.
7029 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
7030 This could be used to filter movies that are broadcast on TV at a frame
7031 rate different from their original framerate.
7032 .IPs luma_only=<n>
7033 If n is nonzero, the chroma plane is copied unchanged.
7034 This is useful for YV12 sampled TV, which discards one of the chroma
7035 fields.
7036 .IPs mmx2=<n>
7037 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
7038 optimized functions, otherwise, use plain C.
7039 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
7040 this option to override auto-detection.
7041 .IPs fast=<n>
7042 The larger n will speed up the filter at the expense of accuracy.
7043 The default value is n=3.
7044 If n is odd, a frame immediately following a frame marked with the
7045 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
7046 will not spend any time on soft-telecined MPEG-2 content.
7047 This is the only effect of this flag if MMX2 or 3DNow! is available.
7048 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
7049 as with n=2 or 3.
7050 If n=2 or 3, the number of luma levels used to find the frame breaks is
7051 reduced from 256 to 128, which results in a faster filter without losing
7052 much accuracy.
7053 If n=4 or 5, a faster, but much less accurate metric will be used to
7054 find the frame breaks, which is more likely to misdetect high vertical
7055 detail as interlaced content.
7056 .IPs verbose=<n>
7057 If n is nonzero, print the detailed metrics for each frame.
7058 Useful for debugging.
7059 .IPs dint_thres=<n>
7060 Deinterlace threshold.
7061 Used during de-interlacing of unmatched frames.
7062 Larger value means less deinterlacing, use n=256 to completely turn off
7063 deinterlacing.
7064 Default is n=8.
7065 .IPs comb_thres=<n>
7066 Threshold for comparing a top and bottom fields.
7067 Defaults to 128.
7068 .IPs diff_thres=<n>
7069 Threshold to detect temporal change of a field.
7070 Default is 128.
7071 .IPs sad_thres=<n>
7072 Sum of Absolute Difference threshold, default is 64.
7076 .B softpulldown
7077 This filter works only correct with MEncoder and acts on the MPEG-2 flags
7078 used for soft 3:2 pulldown (soft telecine).
7079 If you want to use the ivtc or detc filter on movies that are partly soft
7080 telecined, inserting this filter before them should make them more reliable.
7083 .B divtc[=options]
7084 Inverse telecine for deinterlaced video.
7085 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
7086 using a method that keeps one field and interpolates the other, the result is
7087 a juddering video that has every fourth frame duplicated.
7088 This filter is intended to find and drop those duplicates and restore the
7089 original film framerate.
7090 When using this filter, you must specify \-ofps that is 4/5 of
7091 the fps of the input file and place the softskip later in the
7092 filter chain to make sure that divtc sees all the frames.
7093 Two different modes are available:
7094 One pass mode is the default and is straightforward to use,
7095 but has the disadvantage that any changes in the telecine
7096 phase (lost frames or bad edits) cause momentary judder
7097 until the filter can resync again.
7098 Two pass mode avoids this by analyzing the whole video
7099 beforehand so it will have forward knowledge about the
7100 phase changes and can resync at the exact spot.
7101 These passes do
7102 .B not
7103 correspond to pass one and two of the encoding process.
7104 You must run an extra pass using divtc pass one before the
7105 actual encoding throwing the resulting video away.
7106 Use \-nosound \-ovc raw \-o /dev/null to avoid
7107 wasting CPU power for this pass.
7108 You may add something like crop=2:2:0:0 after divtc
7109 to speed things up even more.
7110 Then use divtc pass two for the actual encoding.
7111 If you use multiple encoder passes, use divtc
7112 pass two for all of them.
7113 The options are:
7114 .RSs
7115 .IPs pass=1|2
7116 Use two pass mode.
7117 .IPs file=<filename>
7118 Set the two pass log filename (default: "framediff.log").
7119 .IPs threshold=<value>
7120 Set the minimum strength the telecine pattern must have for the filter to
7121 believe in it (default: 0.5).
7122 This is used to avoid recognizing false pattern from the parts of the video
7123 that are very dark or very still.
7124 .IPs window=<numframes>
7125 Set the number of past frames to look at when searching for pattern
7126 (default: 30).
7127 Longer window improves the reliability of the pattern search, but shorter
7128 window improves the reaction time to the changes in the telecine phase.
7129 This only affects the one pass mode.
7130 The two pass mode currently uses fixed window that extends to both future
7131 and past.
7132 .IPs phase=0|1|2|3|4
7133 Sets the initial telecine phase for one pass mode (default: 0).
7134 The two pass mode can see the future, so it is able to use the correct
7135 phase from the beginning, but one pass mode can only guess.
7136 It catches the correct phase when it finds it, but this option can be used
7137 to fix the possible juddering at the beginning.
7138 The first pass of the two pass mode also uses this, so if you save the output
7139 from the first pass, you get constant phase result.
7140 .IPs deghost=<value>
7141 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
7142 mode, default 0).
7143 If nonzero, deghosting mode is used.
7144 This is for video that has been deinterlaced by blending the fields
7145 together instead of dropping one of the fields.
7146 Deghosting amplifies any compression artifacts in the blended frames, so the
7147 parameter value is used as a threshold to exclude those pixels from
7148 deghosting that differ from the previous frame less than specified value.
7149 If two pass mode is used, then negative value can be used to make the
7150 filter analyze the whole video in the beginning of pass-2 to determine
7151 whether it needs deghosting or not and then select either zero or the
7152 absolute value of the parameter.
7153 Specify this option for pass-2, it makes no difference on pass-1.
7157 .B phase[=t|b|p|a|u|T|B|A|U][:v]
7158 Delay interlaced video by one field time so that the field order
7159 changes.
7160 The intended use is to fix PAL movies that have been captured with the
7161 opposite field order to the film-to-video transfer.
7162 The options are:
7163 .RSs
7164 .IPs t
7165 Capture field order top-first, transfer bottom-first.
7166 Filter will delay the bottom field.
7167 .IPs b
7168 Capture bottom-first, transfer top-first.
7169 Filter will delay the top field.
7170 .IPs p
7171 Capture and transfer with the same field order.
7172 This mode only exists for the documentation of the other options to refer to,
7173 but if you actually select it, the filter will faithfully do nothing ;-)
7174 .IPs a
7175 Capture field order determined automatically by field flags, transfer opposite.
7176 Filter selects among t and b modes on a frame by frame basis using field flags.
7177 If no field information is available, then this works just like u.
7178 .IPs u
7179 Capture unknown or varying, transfer opposite.
7180 Filter selects among t and b on a frame by frame basis by analyzing the
7181 images and selecting the alternative that produces best match between the
7182 fields.
7183 .IPs T
7184 Capture top-first, transfer unknown or varying.
7185 Filter selects among t and p using image analysis.
7186 .IPs B
7187 Capture bottom-first, transfer unknown or varying.
7188 Filter selects among b and p using image analysis.
7189 .IPs A
7190 Capture determined by field flags, transfer unknown or varying.
7191 Filter selects among t, b and p using field flags and image analysis.
7192 If no field information is available, then this works just like U.
7193 This is the default mode.
7194 .IPs U
7195 Both capture and transfer unknown or varying.
7196 Filter selects among t, b and p using image analysis only.
7197 .IPs v
7198 Verbose operation.
7199 Prints the selected mode for each frame and the average squared difference
7200 between fields for t, b, and p alternatives.
7204 .B telecine[=start]
7205 Apply 3:2 'telecine' process to increase framerate by 20%.
7206 This most likely will not work correctly with MPlayer, but it can
7207 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
7208 Both fps options are essential!
7209 (A/V sync will break if they are wrong.)
7210 The optional start parameter tells the filter where in the telecine
7211 pattern to start (0\-3).
7214 .B tinterlace[=mode]
7215 Temporal field interlacing \- merge pairs of frames into an interlaced
7216 frame, halving the framerate.
7217 Even frames are moved into the upper field, odd frames to the lower field.
7218 This can be used to fully reverse the effect of the tfields filter (in mode 0).
7219 Available modes are:
7220 .PD 0
7221 .RSs
7222 .IPs 0
7223 Move odd frames into the upper field, even into the lower field, generating
7224 a full-height frame at half framerate.
7225 .IPs 1
7226 Only output odd frames, even frames are dropped; height unchanged.
7227 .IPs 2
7228 Only output even frames, odd frames are dropped; height unchanged.
7229 .IPs 3
7230 Expand each frame to full height, but pad alternate lines with black;
7231 framerate unchanged.
7232 .IPs 4
7233 Interleave even lines from even frames with odd lines from odd frames.
7234 Height unchanged at half framerate.
7236 .PD 1
7239 .B tfields[=mode[:field_dominance]]
7240 Temporal field separation \- split fields into frames, doubling the
7241 output framerate.
7242 Like the telecine filter, tfields might not work completely right unless
7243 used with MEncoder and both \-fps and \-ofps set to the
7244 desired (double) framerate!
7245 .PD 0
7246 .RSs
7247 .IPs <mode>
7248 0: Leave fields unchanged (will jump/\:flicker).
7250 1: Interpolate missing lines. (The algorithm used might not be so good.)
7252 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
7254 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
7255 .IPs <field_dominance>\ (DEPRECATED)
7256 \-1: auto (default)
7257 Only works if the decoder exports the appropriate information and
7258 no other filters which discard that information come before tfields
7259 in the filter chain, otherwise it falls back to 0 (top field first).
7261 0: top field first
7263 1: bottom field first
7265 .I NOTE:
7266 This option will possibly be removed in a future version.
7267 Use \-field\-dominance instead.
7269 .PD 1
7272 .B yadif=[mode[:field_dominance]]
7273 Yet another deinterlacing filter
7274 .PD 0
7275 .RSs
7276 .IPs <mode>
7277 0: Output 1 frame for each frame.
7279 1: Output 1 frame for each field.
7281 2: Like 0 but skips spatial interlacing check.
7283 3: Like 1 but skips spatial interlacing check.
7284 .IPs <field_dominance>\ (DEPRECATED)
7285 Operates like tfields.
7287 .I NOTE:
7288 This option will possibly be removed in a future version.
7289 Use \-field\-dominance instead.
7291 .PD 1
7294 .B mcdeint=[mode[:parity[:qp]]]
7295 Motion compensating deinterlacer.
7296 It needs one field per frame as input and must thus be used together
7297 with tfields=1 or yadif=1/3 or equivalent.
7298 .PD 0
7299 .RSs
7300 .IPs <mode>
7301 0: fast
7303 1: medium
7305 2: slow, iterative motion estimation
7307 3: extra slow, like 2 plus multiple reference frames
7308 .IPs <parity>
7309 0 or 1 selects which field to use (note: no autodetection yet!).
7310 .IPs "<qp>\ "
7311 Higher values should result in a smoother motion vector
7312 field but less optimal individual vectors.
7314 .PD 1
7317 .B boxblur=radius:power[:radius:power]
7318 box blur
7319 .PD 0
7320 .RSs
7321 .IPs <radius>
7322 blur filter strength
7323 .IPs <power>
7324 number of filter applications
7326 .PD 1
7329 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
7330 shape adaptive blur
7331 .PD 0
7332 .RSs
7333 .IPs <radius>
7334 blur filter strength (~0.1\-4.0) (slower if larger)
7335 .IPs "<pf>\ "
7336 prefilter strength (~0.1\-2.0)
7337 .IPs <colorDiff>
7338 maximum difference between pixels to still be considered (~0.1\-100.0)
7340 .PD 1
7343 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
7344 smart blur
7345 .PD 0
7346 .RSs
7347 .IPs <radius>
7348 blur filter strength (~0.1\-5.0) (slower if larger)
7349 .IPs <strength>
7350 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
7351 .IPs <threshold>
7352 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
7354 .PD 1
7357 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
7358 Correct the perspective of movies not filmed perpendicular to the screen.
7359 .PD 0
7360 .RSs
7361 .IPs <x0>,<y0>,...
7362 coordinates of the top left, top right, bottom left, bottom right corners
7363 .IPs "<t>\ \ "
7364 linear (0) or cubic resampling (1)
7366 .PD 1
7369 .B "2xsai\ \ "
7370 Scale and smooth the image with the 2x scale and interpolate algorithm.
7373 .B "1bpp\ \ \ "
7374 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
7377 .B down3dright[=lines]
7378 Reposition and resize stereoscopic images.
7379 Extracts both stereo fields and places them side by side, resizing
7380 them to maintain the original movie aspect.
7381 .PD 0
7382 .RSs
7383 .IPs <lines>
7384 number of lines to select from the middle of the image (default: 12)
7386 .PD 1
7389 .B bmovl=hidden:opaque:fifo
7390 The bitmap overlay filter reads bitmaps from a FIFO and displays them
7391 on top of the movie, allowing some transformations on the image.
7392 Also see TOOLS/bmovl-test.c for a small bmovl test program.
7393 .PD 0
7394 .RSs
7395 .IPs <hidden>
7396 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
7397 .IPs <opaque>
7398 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
7399 .IPs <fifo>
7400 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
7401 controlling application)
7403 .PD 1
7404 .sp 1
7406 FIFO commands are:
7408 .PD 0
7409 .RSs
7410 .IPs "RGBA32 width height xpos ypos alpha clear"
7411 followed by width*height*4 Bytes of raw RGBA32 data.
7412 .IPs "ABGR32 width height xpos ypos alpha clear"
7413 followed by width*height*4 Bytes of raw ABGR32 data.
7414 .IPs "RGB24 width height xpos ypos alpha clear"
7415 followed by width*height*3 Bytes of raw RGB24 data.
7416 .IPs "BGR24 width height xpos ypos alpha clear"
7417 followed by width*height*3 Bytes of raw BGR24 data.
7418 .IPs "ALPHA width height xpos ypos alpha"
7419 Change alpha transparency of the specified area.
7420 .IPs "CLEAR width height xpos ypos"
7421 Clear area.
7422 .IPs OPAQUE
7423 Disable all alpha transparency.
7424 Send "ALPHA 0 0 0 0 0" to enable it again.
7425 .IPs "HIDE\ "
7426 Hide bitmap.
7427 .IPs "SHOW\ "
7428 Show bitmap.
7430 .PD 1
7431 .sp 1
7433 Arguments are:
7435 .PD 0
7436 .RSs
7437 .IPs "<width>, <height>"
7438 image/area size
7439 .IPs "<xpos>, <ypos>"
7440 Start blitting at position x/y.
7441 .IPs <alpha>
7442 Set alpha difference.
7443 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
7444 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
7445 .RSss
7446 0:    same as original
7448 255:  Make everything opaque.
7450 \-255: Make everything transparent.
7451 .REss
7452 .IPs <clear>
7453 Clear the framebuffer before blitting.
7454 .RSss
7455 0: The image will just be blitted on top of the old one, so you do not need to
7456 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7458 1: clear
7459 .REss
7461 .PD 1
7464 .B framestep=I|[i]step
7465 Renders only every nth frame or every intra frame (keyframe).
7466 .sp 1
7467 If you call the filter with I (uppercase) as the parameter, then
7468 .B only
7469 keyframes are rendered.
7470 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7471 for AVI it means every scene change or every keyint value (see \-lavcopts
7472 keyint= value if you use MEncoder to encode the video).
7473 .sp 1
7474 When a keyframe is found, an 'I!' string followed by a newline character is
7475 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
7476 because it contains the time (in seconds) and frame number of the keyframe
7477 (You can use this information to split the AVI.).
7478 .sp 1
7479 If you call the filter with a numeric parameter 'step' then only one in
7480 every 'step' frames is rendered.
7481 .sp 1
7482 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7483 (like the I parameter).
7484 .sp 1
7485 If you give only the i then nothing is done to the frames, only I! is
7486 printed.
7489 .B tile=xtiles:ytiles:output:start:delta
7490 Tile a series of images into a single, bigger image.
7491 If you omit a parameter or use a value less than 0, then the default
7492 value is used.
7493 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7494 It is probably a good idea to put the scale filter before the tile :-)
7495 .sp 1
7496 The parameters are:
7497 .sp 1
7498 .PD 0
7499 .RSs
7500 .IPs <xtiles>
7501 number of tiles on the x axis (default: 5)
7502 .IPs <ytiles>
7503 number of tiles on the y axis (default: 5)
7504 .IPs <output>
7505 Render the tile when 'output' number of frames are reached, where 'output'
7506 should be a number less than xtile * ytile.
7507 Missing tiles are left blank.
7508 You could, for example, write an 8 * 7 tile every 50 frames to have one
7509 image every 2 seconds @ 25 fps.
7510 .IPs <start>
7511 outer border thickness in pixels (default: 2)
7512 .IPs <delta>
7513 inner border thickness in pixels (default: 4)
7515 .PD 1
7518 .B delogo[=x:y:w:h:t]
7519 Suppresses a TV station logo by a simple interpolation of the
7520 surrounding pixels.
7521 Just set a rectangle covering the logo and watch it disappear (and
7522 sometimes something even uglier appear \- your mileage may vary).
7523 .PD 0
7524 .RSs
7525 .IPs <x>,<y>
7526 top left corner of the logo
7527 .IPs <w>,<h>
7528 width and height of the cleared rectangle
7529 .IPs <t>
7530 Thickness of the fuzzy edge of the rectangle (added to w and h).
7531 When set to \-1, a green rectangle is drawn on the screen to
7532 simplify finding the right x,y,w,h parameters.
7534 .PD 1
7537 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7538 Suppresses a TV station logo, using a PGM or PPM image
7539 file to determine which pixels comprise the logo.
7540 The width and height of the image file must match
7541 those of the video stream being processed.
7542 Uses the filter image and a circular blur
7543 algorithm to remove the logo.
7544 .RSs
7545 .IPs /path/to/logo_bitmap_file_name.pgm
7546 [path] + filename of the filter image.
7550 .B zrmjpeg[=options]
7551 Software YV12 to MJPEG encoder for use with the zr2 video
7552 output device.
7553 .RSs
7554 .IPs maxheight=<h>|maxwidth=<w>
7555 These options set the maximum width and height the zr card
7556 can handle (the MPlayer filter layer currently cannot query those).
7557 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
7558 Use these options to set maxwidth and maxheight automatically to the
7559 values known for card/\:mode combo.
7560 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
7561 .IPs color|bw
7562 Select color or black and white encoding.
7563 Black and white encoding is faster.
7564 Color is the default.
7565 .IPs hdec={1,2,4}
7566 Horizontal decimation 1, 2 or 4.
7567 .IPs vdec={1,2,4}
7568 Vertical decimation 1, 2 or 4.
7569 .IPs quality=1\-20
7570 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
7571 .IPs fd|nofd
7572 By default, decimation is only performed if the Zoran hardware
7573 can upscale the resulting MJPEG images to the original size.
7574 The option fd instructs the filter to always perform the requested
7575 decimation (ugly).
7579 .B screenshot
7580 Allows acquiring screenshots of the movie using slave mode
7581 commands that can be bound to keypresses.
7582 See the slave mode documentation and the INTERACTIVE CONTROL
7583 section for details.
7584 Files named 'shotNNNN.png' will be saved in the working directory,
7585 using the first available number \- no files will be overwritten.
7586 The filter has no overhead when not used and accepts an arbitrary
7587 colorspace, so it is safe to add it to the configuration file.
7588 Make sure that the screenshot filter is added after all other filters
7589 whose effect you want to record on the saved image.
7590 E.g.\& it should be the last filter if you want to have an exact
7591 screenshot of what you see on the monitor.
7595 .B "ass\ \ \ \ "
7596 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7597 Only useful with the \-ass option.
7598 .sp 1
7599 .I EXAMPLE:
7600 .PD 0
7601 .RSs
7602 .IPs "\-vf ass,screenshot"
7603 Moves SSA/ASS rendering before the screenshot filter.
7604 Screenshots taken this way will contain subtitles.
7606 .PD 1
7609 .B blackframe[=amount:threshold]
7610 Detect frames that are (almost) completely black.
7611 Can be useful to detect chapter transitions or commercials.
7612 Output lines consist of the frame number of the detected frame, the
7613 percentage of blackness, the frame type and the frame number of the last
7614 encountered keyframe.
7615 .RSs
7616 .IPs <amount>
7617 Percentage of the pixels that have to be below the threshold (default: 98).
7618 .IPs <threshold>
7619 Threshold below which a pixel value is considered black (default: 32).
7621 .PD 1
7624 .B stereo3d[=in:out]
7625 Stereo3d converts between different stereoscopic image formats.
7626 .RSs
7627 .IPs <in>
7628 Stereoscopic image format of input. Possible values:
7630 .B sbsl or side_by_side_left_first
7632 side by side parallel (left eye left, right eye right)
7634 .B sbsr or side_by_side_right_first
7636 side by side crosseye (right eye left, left eye right)
7638 .B abl or above_below_left_first
7640 above-below (left eye above, right eye below)
7642 .B abl or above_below_right_first
7644 above-below (right eye above, left eye below)
7646 .B ab2l or above_below_half_height_left_first
7648 above-below with half height resolution (left eye above, right eye below)
7650 .B ab2r or above_below_half_height_right_first
7652 above-below with half height resolution (right eye above, left eye below)
7655 .IPs <out>
7656 Stereoscopic image format of output. Possible values are all the input formats
7657 as well as:
7659 .B arcg or anaglyph_red_cyan_gray
7661 anaglyph red/cyan gray (red filter on left eye, cyan filter on right eye)
7663 .B arch or anaglyph_red_cyan_half_color
7665 anaglyph red/cyan half colored (red filter on left eye, cyan filter on right
7666 eye)
7668 .B arcc or anaglyph_red_cyan_color
7670 anaglyph red/cyan color (red filter on left eye, cyan filter on right eye)
7672 .B arcd or anaglyph_red_cyan_dubois
7674 anaglyph red/cyan color optimized with the least squares projection of dubois
7675 (red filter on left eye, cyan filter on right eye)
7677 .B agmg or anaglyph_green_magenta_gray
7679 anaglyph green/magenta gray (green filter on left eye, magenta filter on right
7680 eye)
7682 .B agmh or anaglyph_green_magenta_half_color
7684 anaglyph green/magenta half colored (green filter on left eye, magenta filter on
7685 right eye)
7687 .B agmc or anaglyph_green_magenta_color
7689 anaglyph green/magenta colored (green filter on left eye, magenta filter on
7690 right eye)
7692 .B aybg or anaglyph_yellow_blue_gray
7694 anaglyph yellow/blue gray (yellow filter on left eye, blue filter on right eye)
7696 .B aybh or anaglyph_yellow_blue_half_color
7698 anaglyph yellow/blue half colored (yellow filter on left eye, blue filter on
7699 right eye)
7701 .B aybc or anaglyph_yellow_blue_color
7703 anaglyph yellow/blue colored (yellow filter on left eye, blue filter on right
7704 eye)
7706 .B ml or mono_left
7708 mono output (left eye only)
7710 .B mr or mono_right
7712 mono output (right eye only)
7716 .PD 1
7719 .B gradfun[=strength[:radius]]
7720 Fix the banding artifacts that are sometimes introduced into nearly flat
7721 regions by truncation to 8bit colordepth.
7722 Interpolates the gradients that should go where the bands are, and
7723 dithers them.
7724 .sp 1
7725 This filter is designed for playback only.
7726 Do not use it prior to lossy compression, because compression tends
7727 to lose the dither and bring back the bands.
7728 .RSs
7729 .IPs <strength>
7730 Maximum amount by which the filter will change any one pixel.
7731 Also the threshold for detecting nearly flat regions (default: 1.2).
7732 .IPs <radius>
7733 Neighborhood to fit the gradient to.
7734 Larger radius makes for smoother gradients, but also prevents the filter
7735 from modifying pixels near detailed regions (default: 16).
7739 .B fixpts[=options]
7740 Fixes the presentation timestamps (PTS) of the frames.
7741 By default, the PTS passed to the next filter is dropped, but the following
7742 options can change that:
7743 .RSs
7744 .IPs print
7745 Print the incoming PTS.
7746 .IPs fps=<fps>
7747 Specify a frame per second value.
7748 .IPs start=<pts>
7749 Specify an initial value for the PTS.
7750 .IPs autostart=<n>
7751 Uses the
7752 .IR n th
7753 incoming PTS as the initial PTS.
7754 All previous PTS are kept, so setting a huge value or \-1 keeps the PTS
7755 intact.
7756 .IPs autofps=<n>
7757 Uses the
7758 .IR n th
7759 incoming PTS after the end of autostart to determine the framerate.
7761 .sp 1
7763 .I EXAMPLE:
7765 .PD 0
7766 .RSs
7767 .IPs "\-vf fixpts=fps=24000/1001,ass,fixpts"
7768 Generates a new sequence of PTS, uses it for ASS subtitles, then drops it.
7769 Generating a new sequence is useful when the timestamps are reset during the
7770 program; this is frequent on DVDs.
7771 Dropping it may be necessary to avoid confusing encoders.
7773 .PD 1
7774 .sp 1
7776 .I NOTE:
7777 Using this filter together with any sort of seeking (including -ss and EDLs)
7778 may make demons fly out of your nose.
7782 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7785 .B \-audio\-delay <any floating-point number>
7786 Delays either audio or video by setting a delay field in the header
7787 (default: 0.0).
7788 This does not delay either stream while encoding, but the player will
7789 see the delay field and compensate accordingly.
7790 Positive values delay the audio, and negative values delay the video.
7791 Note that this is the exact opposite of the \-delay option.
7792 For example, if a video plays correctly with \-delay 0.2, you can
7793 fix the video with MEncoder by using \-audio\-delay \-0.2.
7794 .sp 1
7795 Currently, this option only works with the default muxer (\-of avi).
7796 If you are using a different muxer, then you must use \-delay instead.
7799 .B \-audio\-density <1\-50>
7800 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7802 .I NOTE:
7803 CBR only, VBR ignores this as it puts each packet in a new chunk.
7806 .B \-audio\-preload <0.0\-2.0>
7807 Sets up the audio buffering time interval (default: 0.5s).
7810 .B \-fafmttag <format>
7811 Can be used to override the audio format tag of the output file.
7812 .sp 1
7813 .I EXAMPLE:
7814 .PD 0
7815 .RSs
7816 .IPs "\-fafmttag 0x55"
7817 Will have the output file contain 0x55 (mp3) as audio format tag.
7819 .PD 1
7822 .B \-ffourcc <fourcc>
7823 Can be used to override the video fourcc of the output file.
7824 .sp 1
7825 .I EXAMPLE:
7826 .PD 0
7827 .RSs
7828 .IPs "\-ffourcc div3"
7829 Will have the output file contain 'div3' as video fourcc.
7831 .PD 1
7834 .B \-force\-avi\-aspect <0.2\-3.0>
7835 Override the aspect stored in the AVI OpenDML vprp header.
7836 This can be used to change the aspect ratio with '\-ovc copy'.
7839 .B \-frameno\-file <filename> (DEPRECATED)
7840 Specify the name of the audio file with framenumber mappings created in
7841 the first (audio only) pass of a special three pass encoding mode.
7843 .I NOTE:
7844 Using this mode will most likely give you A-V desync.
7845 Do not use it.
7846 It is kept for backwards compatibility only and will possibly
7847 be removed in a future version.
7850 .B \-hr\-edl\-seek
7851 Use a more precise, but much slower method for skipping areas.
7852 Areas marked for skipping are not seeked over, instead all
7853 frames are decoded, but only the necessary frames are encoded.
7854 This allows starting at non-keyframe boundaries.
7856 .I NOTE:
7857 Not guaranteed to work right with '\-ovc copy'.
7860 .B \-info <option1:option2:...> (AVI only)
7861 Specify the info header of the resulting AVI file.
7862 .sp 1
7863 Available options are:
7864 .RSs
7865 .IPs "help\ "
7866 Show this description.
7867 .IPs name=<value>
7868 title of the work
7869 .IPs artist=<value>
7870 artist or author of the work
7871 .IPs genre=<value>
7872 original work category
7873 .IPs subject=<value>
7874 contents of the work
7875 .IPs copyright=<value>
7876 copyright information
7877 .IPs srcform=<value>
7878 original format of the digitized material
7879 .IPs comment=<value>
7880 general comments about the work
7884 .B \-noautoexpand
7885 Do not automatically insert the expand filter into the MEncoder filter chain.
7886 Useful to control at which point of the filter chain subtitles are rendered
7887 when hardcoding subtitles onto a movie.
7890 .B \-noencodedups
7891 Do not attempt to encode duplicate frames in duplicate; always output
7892 zero-byte frames to indicate duplicates.
7893 Zero-byte frames will be written anyway unless a filter or encoder
7894 capable of doing duplicate encoding is loaded.
7895 Currently the only such filter is harddup.
7898 .B \-noodml (\-of avi only)
7899 Do not write OpenDML index for AVI files >1GB.
7902 .B \-noskip
7903 Do not skip frames.
7906 .B \-o <filename>
7907 Outputs to the given filename.
7909 If you want a default output filename, you can put this option in the
7910 MEncoder config file.
7913 .B \-oac <codec name>
7914 Encode with the given audio codec (no default set).
7916 .I NOTE:
7917 Use \-oac help to get a list of available audio codecs.
7918 .sp 1
7919 .I EXAMPLE:
7920 .PD 0
7921 .RSs
7922 .IPs "\-oac copy"
7923 no encoding, just streamcopy
7924 .IPs "\-oac pcm"
7925 Encode to uncompressed PCM.
7926 .IPs "\-oac mp3lame"
7927 Encode to MP3 (using LAME).
7928 .IPs "\-oac lavc"
7929 Encode with a libavcodec codec.
7931 .PD 1
7934 .B \-of <format> (BETA CODE!)
7935 Encode to the specified container format (default: AVI).
7937 .I NOTE:
7938 Use \-of help to get a list of available container formats.
7939 .sp 1
7940 .I EXAMPLE:
7941 .PD 0
7942 .RSs
7943 .IPs "\-of avi"
7944 Encode to AVI.
7945 .IPs "\-of mpeg"
7946 Encode to MPEG (also see \-mpegopts).
7947 .IPs "\-of lavf"
7948 Encode with libavformat muxers (also see \-lavfopts).
7949 .IPs "\-of rawvideo"
7950 raw video stream (no muxing \- one video stream only)
7951 .IPs "\-of rawaudio"
7952 raw audio stream (no muxing \- one audio stream only)
7954 .PD 1
7957 .B \-ofps <fps>
7958 Specify a frames per second (fps) value for the output file,
7959 which can be different from that of the source material.
7960 Must be set for variable fps (ASF, some MOV) and progressive
7961 (30000/1001 fps telecined MPEG) files.
7964 .B \-ovc <codec name>
7965 Encode with the given video codec (no default set).
7967 .I NOTE:
7968 Use \-ovc help to get a list of available video codecs.
7969 .sp 1
7970 .I EXAMPLE:
7971 .PD 0
7972 .RSs
7973 .IPs "\-ovc copy"
7974 no encoding, just streamcopy
7975 .IPs "\-ovc raw"
7976 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7977 .IPs "\-ovc lavc"
7978 Encode with a libavcodec codec.
7980 .PD 1
7983 .B \-passlogfile <filename>
7984 Dump first pass information to <filename> instead of the default divx2pass.log
7985 in two pass encoding mode.
7988 .B \-skiplimit <value>
7989 Specify the maximum number of frames that may be skipped after
7990 encoding one frame (\-noskiplimit for unlimited).
7993 .B \-vobsubout <basename>
7994 Specify the basename for the output .idx and .sub files.
7995 This turns off subtitle rendering in the encoded movie and diverts it to
7996 VOBsub subtitle files.
7999 .B \-vobsuboutid <langid>
8000 Specify the language two letter code for the subtitles.
8001 This overrides what is read from the DVD or the .ifo file.
8004 .B \-vobsuboutindex <index>
8005 Specify the index of the subtitles in the output files (default: 0).
8009 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
8010 You can specify codec specific encoding parameters using the following
8011 syntax:
8014 .B \-<codec>opts <option1[=value1]:option2[=value2]:...>
8017 Where <codec> may be: lavc, xvidenc, mp3lame, toolame, twolame,
8018 nuv, xvfw, faac, x264enc, mpeg, lavf.
8021 .SS mp3lame (\-lameopts)
8024 .B "help\ \ \ "
8025 get help
8028 .B vbr=<0\-4>
8029 variable bitrate method
8030 .PD 0
8031 .RSs
8032 .IPs 0
8034 .IPs 1
8036 .IPs 2
8037 rh (default)
8038 .IPs 3
8040 .IPs 4
8041 mtrh
8043 .PD 1
8046 .B "abr\ \ \ \ "
8047 average bitrate
8050 .B "cbr\ \ \ \ "
8051 constant bitrate
8052 Also forces CBR mode encoding on subsequent ABR presets modes.
8055 .B br=<0\-1024>
8056 bitrate in kbps (CBR and ABR only)
8059 .B q=<0\-9>
8060 quality (0 \- highest, 9 \- lowest) (VBR only)
8063 .B aq=<0\-9>
8064 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
8067 .B ratio=<1\-100>
8068 compression ratio
8071 .B vol=<0\-10>
8072 audio input gain
8075 .B mode=<0\-3>
8076 (default: auto)
8077 .PD 0
8078 .RSs
8079 .IPs 0
8080 stereo
8081 .IPs 1
8082 joint-stereo
8083 .IPs 2
8084 dualchannel
8085 .IPs 3
8086 mono
8088 .PD 1
8091 .B padding=<0\-2>
8092 .PD 0
8093 .RSs
8094 .IPs 0
8095 none
8096 .IPs 1
8098 .IPs 2
8099 adjust
8101 .PD 1
8104 .B "fast\ \ \ "
8105 Switch on faster encoding on subsequent VBR presets modes.
8106 This results in slightly lower quality and higher bitrates.
8109 .B highpassfreq=<freq>
8110 Set a highpass filtering frequency in Hz.
8111 Frequencies below the specified one will be cut off.
8112 A value of \-1 will disable filtering, a value of 0
8113 will let LAME choose values automatically.
8116 .B lowpassfreq=<freq>
8117 Set a lowpass filtering frequency in Hz.
8118 Frequencies above the specified one will be cut off.
8119 A value of \-1 will disable filtering, a value of 0
8120 will let LAME choose values automatically.
8123 .B preset=<value>
8124 preset values
8125 .RSs
8126 .IPs "help\ "
8127 Print additional options and information about presets settings.
8128 .IPs medium
8129 VBR encoding, good quality, 150\-180 kbps bitrate range
8130 .IPs standard
8131 VBR encoding, high quality, 170\-210 kbps bitrate range
8132 .IPs extreme
8133 VBR encoding, very high quality, 200\-240 kbps bitrate range
8134 .IPs insane
8135 CBR encoding, highest preset quality, 320 kbps bitrate
8136 .IPs <8\-320>
8137 ABR encoding at average given kbps bitrate
8139 .sp 1
8141 .I EXAMPLES:
8143 .PD 0
8144 .RSs
8145 .IPs fast:preset=standard
8146 suitable for most people and most music types and already quite high quality
8147 .IPs cbr:preset=192
8148 Encode with ABR presets at a 192 kbps forced constant bitrate.
8149 .IPs preset=172
8150 Encode with ABR presets at a 172 kbps average bitrate.
8151 .IPs preset=extreme
8152 for people with extremely good hearing and similar equipment
8154 .PD 1
8157 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
8160 .B br=<32\-384>
8161 In CBR mode this parameter indicates the bitrate in kbps,
8162 when in VBR mode it is the minimum bitrate allowed per frame.
8163 VBR mode will not work with a value below 112.
8166 .B vbr=<\-50\-50> (VBR only)
8167 variability range; if negative the encoder shifts the average bitrate
8168 towards the lower limit, if positive towards the higher.
8169 When set to 0 CBR is used (default).
8172 .B maxvbr=<32\-384> (VBR only)
8173 maximum bitrate allowed per frame, in kbps
8176 .B mode=<stereo  |  jstereo  |  mono  |  dual>
8177 (default: mono for 1-channel audio, stereo otherwise)
8180 .B psy=<\-1\-4>
8181 psychoacoustic model (default: 2)
8184 .B errprot=<0 | 1>
8185 Include error protection.
8188 .B debug=<0\-10>
8189 debug level
8191 .PD 1
8194 .SS faac (\-faacopts)
8197 .B br=<bitrate>
8198 average bitrate in kbps (mutually exclusive with quality)
8201 .B quality=<1\-1000>
8202 quality mode, the higher the better (mutually exclusive with br)
8205 .B object=<1\-4>
8206 object type complexity
8207 .PD 0
8208 .RSs
8209 .IPs 1
8210 MAIN (default)
8211 .IPs 2
8213 .IPs 3
8215 .IPs 4
8216 LTP (extremely slow)
8218 .PD 1
8221 .B mpeg=<2|4>
8222 MPEG version (default: 4)
8225 .B "tns\ \ \ \ "
8226 Enables temporal noise shaping.
8229 .B cutoff=<0\-sampling_rate/2>
8230 cutoff frequency (default: sampling_rate/2)
8233 .B "raw\ \ \ \ "
8234 Stores the bitstream as raw payload with extradata in the container header
8235 (default: 0, corresponds to ADTS).
8236 Do not set this flag if not explicitly required or you will not be able to
8237 remux the audio stream later on.
8239 .PD 1
8242 .SS lavc (\-lavcopts)
8244 Many libavcodec (lavc for short) options are tersely documented.
8245 Read the source for full details.
8247 .I EXAMPLE:
8248 .PD 0
8249 .RSs
8250 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
8252 .PD 1
8255 .B o=<key>=<value>[,<key>=<value>[,...]]
8256 Pass AVOptions to libavcodec encoder.
8257 Note, a patch to make the o= unneeded and pass all unknown options through
8258 the AVOption system is welcome.
8259 A full list of AVOptions can be found in the FFmpeg manual.
8260 Note that some AVOptions may conflict with MEncoder options.
8261 .sp 1
8263 .I EXAMPLE:
8265 .RSs
8266 .PD 0
8267 .IPs o=bt=100k
8268 .PD 1
8272 .B acodec=<value>
8273 audio codec (default: mp2)
8274 .PD 0
8275 .RSs
8276 .IPs "ac3\ \ "
8277 Dolby Digital (AC-3)
8278 .IPs adpcm_*
8279 Adaptive PCM formats \- see the HTML documentation for details.
8280 .IPs "flac\ "
8281 Free Lossless Audio Codec (FLAC)
8282 .IPs "g726\ "
8283 G.726 ADPCM
8284 .IPs libfaac
8285 Advanced Audio Coding (AAC) \- using FAAC
8286 .IPs libmp3lame
8287 MPEG-1 audio layer 3 (MP3) \- using LAME
8288 .IPs "mp2\ \ "
8289 MPEG-1 audio layer 2 (MP2)
8290 .IPs pcm_*
8291 PCM formats \- see the HTML documentation for details.
8292 .IPs roq_dpcm
8293 Id Software RoQ DPCM
8294 .IPs sonic
8295 experimental simple lossy codec
8296 .IPs sonicls
8297 experimental simple lossless codec
8298 .IPs vorbis
8299 Vorbis
8300 .IPs wmav1
8301 Windows Media Audio v1
8302 .IPs wmav2
8303 Windows Media Audio v2
8305 .PD 1
8308 .B abitrate=<value>
8309 audio bitrate in kbps (default: 224)
8312 .B atag=<value>
8313 Use the specified Windows audio format tag (e.g.\& atag=0x55).
8316 .B bit_exact
8317 Use only bit exact algorithms (except (I)DCT).
8318 Additionally bit_exact disables several optimizations and thus
8319 should only be used for regression tests, which need binary
8320 identical files even if the encoder version changes.
8321 This also suppresses the user_data header in MPEG-4 streams.
8322 Do not use this option unless you know exactly what you are doing.
8325 .B threads=<1\-8>
8326 Maximum number of threads to use (default: 1).
8327 May have a slight negative effect on motion estimation.
8331 .B vcodec=<value>
8332 Employ the specified codec (default: mpeg4).
8333 .PD 0
8334 .RSs
8335 .IPs "asv1\ "
8336 ASUS Video v1
8337 .IPs "asv2\ "
8338 ASUS Video v2
8339 .IPs dvvideo
8340 Sony Digital Video
8341 .IPs "ffv1\ "
8342 FFmpeg's lossless video codec
8343 .IPs ffvhuff
8344 nonstandard 20% smaller HuffYUV using YV12
8345 .IPs "flv\ \ "
8346 Sorenson H.263 used in Flash Video
8347 .IPs "h261\ "
8348 H.261
8349 .IPs "h263\ "
8350 H.263
8351 .IPs h263p
8352 H.263+
8353 .IPs huffyuv
8354 HuffYUV
8355 .IPs libtheora
8356 Theora
8357 .IPs libx264
8358 x264 H.264/AVC MPEG-4 Part 10
8359 .IPs libxvid
8360 Xvid MPEG-4 Part 2 (ASP)
8361 .IPs ljpeg
8362 Lossless JPEG
8363 .IPs mjpeg
8364 Motion JPEG
8365 .IPs mpeg1video
8366 MPEG-1 video
8367 .IPs mpeg2video
8368 MPEG-2 video
8369 .IPs mpeg4
8370 MPEG-4 (DivX 4/5)
8371 .IPs msmpeg4
8372 DivX 3
8373 .IPs msmpeg4v2
8374 MS MPEG4v2
8375 .IPs roqvideo
8376 ID Software RoQ Video
8377 .IPs "rv10\ "
8378 an old RealVideo codec
8379 .IPs "snow (also see: vstrict)"
8380 FFmpeg's experimental wavelet-based codec
8381 .IPs "svq1\ "
8382 Apple Sorenson Video 1
8383 .IPs "wmv1\ "
8384 Windows Media Video, version 1 (AKA WMV7)
8385 .IPs "wmv2\ "
8386 Windows Media Video, version 2 (AKA WMV8)
8388 .PD 1
8391 .B vqmin=<1\-31>
8392 minimum quantizer
8393 .RSs
8394 .IPs 1
8395 Not recommended (much larger file, little quality difference and weird side
8396 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
8397 resulting in lower quality and some decoders will not be able to decode it).
8398 .IPs 2
8399 Recommended for normal mpeg4/\:mpeg1video encoding (default).
8400 .IPs 3
8401 Recommended for h263(p)/\:msmpeg4.
8402 The reason for preferring 3 over 2 is that 2 could lead to overflows.
8403 (This will be fixed for h263(p) by changing the quantizer per MB in
8404 the future, msmpeg4 cannot be fixed as it does not support that.)
8408 .B lmin=<0.01\-255.0>
8409 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
8410 Lavc will rarely use quantizers below the value of lmin.
8411 Lowering lmin will make lavc more likely to choose lower quantizers for
8412 some frames, but not lower than the value of vqmin.
8413 Likewise, raising lmin will make lavc less likely to choose low
8414 quantizers, even if vqmin would have allowed them.
8415 You probably want to set lmin approximately equal to vqmin.
8416 When adaptive quantization is in use, changing lmin/lmax may have less
8417 of an effect; see mblmin/mblmax.
8421 .B lmax=<0.01\-255.0>
8422 maximum Lagrange multiplier for ratecontrol (default: 31.0)
8426 .B mblmin=<0.01\-255.0>
8427 Minimum macroblock-level Lagrange multiplier for ratecontrol
8428 (default:2.0).
8429 This parameter affects adaptive quantization options like qprd,
8430 lumi_mask, etc..
8434 .B mblmax=<0.01\-255.0>
8435 Maximum macroblock-level Lagrange multiplier for ratecontrol
8436 (default: 31.0).
8440 .B vqscale=<0\-31>
8441 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
8442 A lower value means better quality but larger files (default: \-1).
8443 In case of snow codec, value 0 means lossless encoding.
8444 Since the other codecs do not support this, vqscale=0 will have an undefined
8445 effect.
8446 1 is not recommended (see vqmin for details).
8449 .B vqmax=<1\-31>
8450 Maximum quantizer, 10\-31 should be a sane range (default: 31).
8453 .B mbqmin=<1\-31>
8454 obsolete, use vqmin
8457 .B mbqmax=<1\-31>
8458 obsolete, use vqmax
8461 .B vqdiff=<1\-31>
8462 maximum quantizer difference between consecutive I- or P-frames
8463 (default: 3)
8466 .B vmax_b_frames=<0\-4>
8467 maximum number of B-frames between non-B-frames:
8468 .PD 0
8469 .RSs
8470 .IPs 0
8471 no B-frames (default)
8472 .IPs 0\-2
8473 sane range for MPEG-4
8475 .PD 1
8478 .B vme=<0\-5>
8479 motion estimation method.
8480 Available methods are:
8481 .PD 0
8482 .RSs
8483 .IPs 0
8484 none (very low quality)
8485 .IPs 1
8486 full (slow, currently unmaintained and disabled)
8487 .IPs 2
8488 log (low quality, currently unmaintained and disabled)
8489 .IPs 3
8490 phods (low quality, currently unmaintained and disabled)
8491 .IPs 4
8492 EPZS: size=1 diamond, size can be adjusted with the *dia options
8493 (default)
8494 .IPs 5
8495 X1 (experimental, currently aliased to EPZS)
8496 .IPs 8
8497 iter (iterative overlapped block, only used in snow)
8499 .PD 1
8500 .sp 1
8503 .I NOTE:
8504 0\-3 currently ignores the amount of bits spent,
8505 so quality may be low.
8509 .B me_range=<0\-9999>
8510 motion estimation search range (default: 0 (unlimited))
8513 .B mbd=<0\-2> (also see *cmp, qpel)
8514 Macroblock decision algorithm (high quality mode), encode each macro
8515 block in all modes and choose the best.
8516 This is slow but results in better quality and file size.
8517 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
8518 macroblocks (the mbcmp value is still used in other places though, in particular
8519 the motion search algorithms).
8520 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
8521 however, a slower but better half-pel motion search will be used,
8522 regardless of what mbd is set to.
8523 If qpel is set, quarter-pel motion search will be used regardless.
8524 .PD 0
8525 .RSs
8526 .IPs 0
8527 Use comparison function given by mbcmp (default).
8528 .IPs 1
8529 Select the MB mode which needs the fewest bits (=vhq).
8530 .IPs 2
8531 Select the MB mode which has the best rate distortion.
8533 .PD 1
8536 .B "vhq\ \ \ \ "
8537 Same as mbd=1, kept for compatibility reasons.
8540 .B "v4mv\ \ \ "
8541 Allow 4 motion vectors per macroblock (slightly better quality).
8542 Works better if used with mbd>0.
8545 .B "obmc\ \ \ "
8546 overlapped block motion compensation (H.263+)
8549 .B "loop\ \ \ "
8550 loop filter (H.263+)
8551 note, this is broken
8554 .B inter_threshold <\-1000\-1000>
8555 Does absolutely nothing at the moment.
8558 .B keyint=<0\-300>
8559 maximum interval between keyframes in frames (default: 250 or one
8560 keyframe every ten seconds in a 25fps movie.
8561 This is the recommended default for MPEG-4).
8562 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
8563 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
8564 keyframes need more space than other frames, so larger numbers here mean
8565 slightly smaller files but less precise seeking.
8566 0 is equivalent to 1, which makes every frame a keyframe.
8567 Values >300 are not recommended as the quality might be bad depending upon
8568 decoder, encoder and luck.
8569 It is common for MPEG-1/2 to use values <=30.
8572 .B sc_threshold=<\-1000000000\-1000000000>
8573 Threshold for scene change detection.
8574 A keyframe is inserted by libavcodec when it detects a scene change.
8575 You can specify the sensitivity of the detection with this option.
8576 \-1000000000 means there is a scene change detected at every frame,
8577 1000000000 means no scene changes are detected (default: 0).
8580 .B sc_factor=<any positive integer>
8581 Causes frames with higher quantizers to be more likely to trigger a
8582 scene change detection and make libavcodec use an I-frame (default: 1).
8583 1\-16 is a sane range.
8584 Values between 2 and 6 may yield increasing PSNR (up to approximately
8585 0.04 dB) and better placement of I-frames in high-motion scenes.
8586 Higher values than 6 may give very slightly better PSNR (approximately
8587 0.01 dB more than sc_factor=6), but noticably worse visual quality.
8590 .B vb_strategy=<0\-2> (pass one only)
8591 strategy to choose between I/P/B-frames:
8592 .PD 0
8593 .RSs
8594 .IPs 0
8595 Always use the maximum number of B-frames (default).
8596 .IPs 1
8597 Avoid B-frames in high motion scenes.
8598 See the b_sensitivity option to tune this strategy.
8599 .IPs 2
8600 Places B-frames more or less optimally to yield maximum quality (slower).
8601 You may want to reduce the speed impact of this option by tuning the
8602 option brd_scale.
8604 .PD 1
8607 .B b_sensitivity=<any integer greater than 0>
8608 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
8609 B-frames (default: 40).
8610 Lower sensitivities will result in more B-frames.
8611 Using more B-frames usually improves PSNR, but too many B-frames can
8612 hurt quality in high-motion scenes.
8613 Unless there is an extremely high amount of motion, b_sensitivity can
8614 safely be lowered below the default; 10 is a reasonable value in most
8615 cases.
8618 .B brd_scale=<0\-10>
8619 Downscales frames for dynamic B-frame decision (default: 0).
8620 Each time brd_scale is increased by one, the frame dimensions are
8621 divided by two, which improves speed by a factor of four.
8622 Both dimensions of the fully downscaled frame must be even numbers, so
8623 brd_scale=1 requires the original dimensions to be multiples of four,
8624 brd_scale=2 requires multiples of eight, etc.
8625 In other words, the dimensions of the original frame must both be
8626 divisible by 2^(brd_scale+1) with no remainder.
8629 .B bidir_refine=<0\-4>
8630 Refine the two motion vectors used in bidirectional macroblocks,
8631 rather than re-using vectors from the forward and backward searches.
8632 This option has no effect without B-frames.
8633 .PD 0
8634 .RSs
8635 .IPs 0
8636 Disabled (default).
8637 .IPs 1\-4
8638 Use a wider search (larger values are slower).
8640 .PD 1
8643 .B vpass=<1\-3>
8644 Activates internal two (or more) pass mode, only specify if you wish to
8645 use two (or more) pass encoding.
8646 .PD 0
8647 .RSs
8648 .IPs 1
8649 first pass (also see turbo)
8650 .IPs 2
8651 second pass
8652 .IPs 3
8653 Nth pass (second and subsequent passes of N-pass encoding)
8656 Here is how it works, and how to use it:
8658 The first pass (vpass=1) writes the statistics file.
8659 You might want to deactivate some CPU-hungry options, like "turbo"
8660 mode does.
8662 In two pass mode, the second pass (vpass=2) reads the statistics file and
8663 bases ratecontrol decisions on it.
8665 In N-pass mode, the second pass (vpass=3, that is not a typo)
8666 does both: It first reads the statistics, then overwrites them.
8667 You might want to backup divx2pass.log before doing this if there is
8668 any possibility that you will have to cancel MEncoder.
8669 You can use all encoding options, except very CPU-hungry options like "qns".
8671 You can run this same pass over and over to refine the encode.
8672 Each subsequent pass will use the statistics from the previous pass to improve.
8673 The final pass can include any CPU-hungry encoding options.
8675 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
8677 If you want a 3 or more pass encode, use vpass=1 for the first pass
8678 and then vpass=3 and then vpass=3 again and again until you are
8679 satisfied with the encode.
8681 .PD 1
8682 .sp 1
8684 huffyuv:
8686 .PD 0
8687 .RSs
8688 .IPs "pass 1"
8689 Saves statistics.
8690 .IPs "pass 2"
8691 Encodes with an optimal Huffman table based upon statistics
8692 from the first pass.
8694 .PD 1
8697 .B turbo (two pass only)
8698 Dramatically speeds up pass one using faster algorithms and disabling
8699 CPU-intensive options.
8700 This will probably reduce global PSNR a little bit (around 0.01dB) and
8701 change individual frame type and PSNR a little bit more (up to 0.03dB).
8704 .B aspect=<x/y>
8705 Store movie aspect internally, just like with MPEG files.
8706 Much nicer than rescaling, because quality is not decreased.
8707 Only MPlayer will play these files correctly, other players will display
8708 them with wrong aspect.
8709 The aspect parameter can be given as a ratio or a floating point number.
8710 .sp 1
8712 .I EXAMPLE:
8714 .RSs
8715 .PD 0
8716 .IPs "aspect=16/9 or aspect=1.78"
8717 .PD 1
8721 .B autoaspect
8722 Same as the aspect option, but automatically computes aspect, taking
8723 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
8724 filter chain.
8725 Does not incur a performance penalty, so you can safely leave it
8726 always on.
8729 .B vbitrate=<value>
8730 Specify bitrate (default: 800).
8732 .I WARNING:
8733 1kbit = 1000 bits
8734 .PD 0
8735 .RSs
8736 .IPs 4\-16000
8737 (in kbit)
8738 .IPs 16001\-24000000
8739 (in bit)
8741 .PD 1
8744 .B vratetol=<value>
8745 approximated file size tolerance in kbit.
8746 1000\-100000 is a sane range.
8747 (warning: 1kbit = 1000 bits)
8748 (default: 8000)
8750 .I NOTE:
8751 vratetol should not be too large during the second pass or there might
8752 be problems if vrc_(min|max)rate is used.
8755 .B vrc_maxrate=<value>
8756 maximum bitrate in kbit/\:sec
8757 (default: 0, unlimited)
8760 .B vrc_minrate=<value>
8761 minimum bitrate in kbit/\:sec
8762 (default: 0, unlimited)
8765 .B vrc_buf_size=<value>
8766 buffer size in kbit
8767 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
8768 917 for SVCD and 1835 for DVD.
8771 .B vrc_buf_aggressivity
8772 currently useless
8775 .B vrc_strategy
8776 Ratecontrol method.
8777 Note that some of the ratecontrol-affecting options will have no effect
8778 if vrc_strategy is not set to 0.
8779 .PD 0
8780 .RSs
8781 .IPs 0
8782 Use internal lavc ratecontrol (default).
8783 .IPs 1
8784 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
8785 with support for Xvid 1.1 or higher).
8787 .PD 1
8790 .B vb_qfactor=<\-31.0\-31.0>
8791 quantizer factor between B- and non-B-frames (default: 1.25)
8794 .B vi_qfactor=<\-31.0\-31.0>
8795 quantizer factor between I- and non-I-frames (default: 0.8)
8798 .B vb_qoffset=<\-31.0\-31.0>
8799 quantizer offset between B- and non-B-frames (default: 1.25)
8802 .B vi_qoffset=<\-31.0\-31.0>
8803 (default: 0.0)
8805 if v{b|i}_qfactor > 0
8807 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8809 else
8811 do normal ratecontrol (do not lock to next P-frame quantizer) and
8812 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8814 .I HINT:
8815 To do constant quantizer encoding with different quantizers for
8816 I/P- and B-frames you can use:
8817 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8820 .B vqblur=<0.0\-1.0> (pass one)
8821 Quantizer blur (default: 0.5), larger values will average the
8822 quantizer more over time (slower change).
8823 .PD 0
8824 .RSs
8825 .IPs 0.0
8826 Quantizer blur disabled.
8827 .IPs 1.0
8828 Average the quantizer over all previous frames.
8830 .PD 1
8833 .B vqblur=<0.0\-99.0> (pass two)
8834 Quantizer gaussian blur (default: 0.5), larger values will average
8835 the quantizer more over time (slower change).
8838 .B vqcomp=<0.0\-1.0>
8839 Quantizer compression, vrc_eq depends upon this (default: 0.5).
8840 .I NOTE:
8841 Perceptual quality will be optimal somewhere in between the range's extremes.
8844 .B vrc_eq=<equation>
8845 main ratecontrol equation
8847 .RSs
8848 .IPs 1+(tex/\:avgTex-1)*qComp
8849 approximately the equation of the old ratecontrol code
8850 .IPs tex^qComp
8851 with qcomp 0.5 or something like that (default)
8855 infix operators:
8857 .RSs
8858 .IPs +,\-,*,/,^
8862 variables:
8864 .RSs
8865 .IPs "tex\ \ "
8866 texture complexity
8867 .IPs iTex,pTex
8868 intra, non-intra texture complexity
8869 .IPs avgTex
8870 average texture complexity
8871 .IPs avgIITex
8872 average intra texture complexity in I-frames
8873 .IPs avgPITex
8874 average intra texture complexity in P-frames
8875 .IPs avgPPTex
8876 average non-intra texture complexity in P-frames
8877 .IPs avgBPTex
8878 average non-intra texture complexity in B-frames
8879 .IPs "mv\ \ \ "
8880 bits used for motion vectors
8881 .IPs fCode
8882 maximum length of motion vector in log2 scale
8883 .IPs iCount
8884 number of intra macroblocks / number of macroblocks
8885 .IPs "var\ \ "
8886 spatial complexity
8887 .IPs mcVar
8888 temporal complexity
8889 .IPs qComp
8890 qcomp from the command line
8891 .IPs "isI, isP, isB"
8892 Is 1 if picture type is I/P/B else 0.
8893 .IPs "Pi,E\ "
8894 See your favorite math book.
8898 functions:
8900 .RSs
8901 .IPs max(a,b),min(a,b)
8902 maximum / minimum
8903 .IPs gt(a,b)
8904 is 1 if a>b, 0 otherwise
8905 .IPs lt(a,b)
8906 is 1 if a<b, 0 otherwise
8907 .IPs eq(a,b)
8908 is 1 if a==b, 0 otherwise
8909 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8913 .B vrc_override=<options>
8914 User specified quality for specific parts (ending, credits, ...).
8915 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8916 <end-frame>, <quality>[/...]]:
8917 .PD 0
8918 .RSs
8919 .IPs "quality (2\-31)"
8920 quantizer
8921 .IPs "quality (\-500\-0)"
8922 quality correction in %
8924 .PD 1
8927 .B vrc_init_cplx=<0\-1000>
8928 initial complexity (pass 1)
8931 .B vrc_init_occupancy=<0.0\-1.0>
8932 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8935 .B vqsquish=<0|1>
8936 Specify how to keep the quantizer between qmin and qmax.
8937 .PD 0
8938 .RSs
8939 .IPs 0
8940 Use clipping.
8941 .IPs 1
8942 Use a nice differentiable function (default).
8944 .PD 1
8947 .B vlelim=<\-1000\-1000>
8948 Sets single coefficient elimination threshold for luminance.
8949 Negative values will also consider the DC coefficient (should be at least \-4
8950 or lower for encoding at quant=1):
8951 .PD 0
8952 .RSs
8953 .IPs 0
8954 disabled (default)
8955 .IPs \-4
8956 JVT recommendation
8958 .PD 1
8961 .B vcelim=<\-1000\-1000>
8962 Sets single coefficient elimination threshold for chrominance.
8963 Negative values will also consider the DC coefficient (should be at least \-4
8964 or lower for encoding at quant=1):
8965 .PD 0
8966 .RSs
8967 .IPs 0
8968 disabled (default)
8969 .IPs 7
8970 JVT recommendation
8972 .PD 1
8975 .B vstrict=<\-2|\-1|0|1>
8976 strict standard compliance
8977 .PD 0
8978 .RSs
8979 .IPs 0
8980 disabled
8981 .IPs 1
8982 Only recommended if you want to feed the output into the
8983 MPEG-4 reference decoder.
8984 .IPs \-1
8985 Allow libavcodec specific extensions (default).
8986 .IPs \-2
8987 Enables experimental codecs and features which may not be playable
8988 with future MPlayer versions (snow).
8990 .PD 1
8993 .B "vdpart\ "
8994 Data partitioning.
8995 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8996 unreliable channels (e.g.\& streaming over the internet).
8997 Each video packet will be encoded in 3 separate partitions:
8998 .PD 0
8999 .RSs
9000 .IPs "1. MVs"
9001 movement
9002 .IPs "2. DC coefficients"
9003 low res picture
9004 .IPs "3. AC coefficients"
9005 details
9007 .PD 1
9009 MV & DC are most important, losing them looks far worse than losing
9010 the AC and the 1. & 2. partition.
9011 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
9012 will hit the AC partition much more often than the MV & DC partitions.
9013 Thus, the picture will look better with partitioning than without,
9014 as without partitioning an error will trash AC/\:DC/\:MV equally.
9018 .B vpsize=<0\-10000> (also see vdpart)
9019 Video packet size, improves error-resistance.
9020 .PD 0
9021 .RSs
9022 .IPs "0\ \ \ \ "
9023 disabled (default)
9024 .IPs 100\-1000
9025 good choice
9027 .PD 1
9030 .B "ss\ \ \ \ \ "
9031 slice structured mode for H.263+
9034 .B "gray\ \ \ "
9035 grayscale only encoding (faster)
9038 .B vfdct=<0\-10>
9039 DCT algorithm
9040 .PD 0
9041 .RSs
9042 .IPs 0
9043 Automatically select a good one (default).
9044 .IPs 1
9045 fast integer
9046 .IPs 2
9047 accurate integer
9048 .IPs 3
9050 .IPs 4
9051 mlib
9052 .IPs 5
9053 AltiVec
9054 .IPs 6
9055 floating point AAN
9057 .PD 1
9060 .B idct=<0\-99>
9061 IDCT algorithm
9063 .I NOTE:
9064 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
9065 .PD 0
9066 .RSs
9067 .IPs 0
9068 Automatically select a good one (default).
9069 .IPs 1
9070 JPEG reference integer
9071 .IPs 2
9072 simple
9073 .IPs 3
9074 simplemmx
9075 .IPs 4
9076 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
9077 .IPs 5
9079 .IPs 6
9080 mlib
9081 .IPs 7
9083 .IPs 8
9084 AltiVec
9085 .IPs 9
9087 .IPs 10
9088 simplearm
9089 .IPs 11
9090 H.264
9091 .IPs 12
9093 .IPs 13
9095 .IPs 14
9096 xvidmmx
9097 .IPs 15
9098 CAVS
9099 .IPs 16
9100 simplearmv5te
9101 .IPs 17
9102 simplearmv6
9104 .PD 1
9107 .B lumi_mask=<0.0\-1.0>
9108 Luminance masking is a 'psychosensory' setting that is supposed to
9109 make use of the fact that the human eye tends to notice fewer details
9110 in very bright parts of the picture.
9111 Luminance masking compresses bright areas stronger than medium ones,
9112 so it will save bits that can be spent again on other frames, raising
9113 overall subjective quality, while possibly reducing PSNR.
9115 .I WARNING:
9116 Be careful, overly large values can cause disastrous things.
9118 .I WARNING:
9119 Large values might look good on some monitors but may look horrible
9120 on other monitors.
9121 .PD 0
9122 .RSs
9123 .IPs "0.0\ \ "
9124 disabled (default)
9125 .IPs 0.0\-0.3
9126 sane range
9128 .PD 1
9131 .B dark_mask=<0.0\-1.0>
9132 Darkness masking is a 'psychosensory' setting that is supposed to
9133 make use of the fact that the human eye tends to notice fewer details
9134 in very dark parts of the picture.
9135 Darkness masking compresses dark areas stronger than medium ones,
9136 so it will save bits that can be spent again on other frames, raising
9137 overall subjective quality, while possibly reducing PSNR.
9139 .I WARNING:
9140 Be careful, overly large values can cause disastrous things.
9142 .I WARNING:
9143 Large values might look good on some monitors but may look horrible
9144 on other monitors / TV / TFT.
9145 .PD 0
9146 .RSs
9147 .IPs "0.0\ \ "
9148 disabled (default)
9149 .IPs 0.0\-0.3
9150 sane range
9152 .PD 1
9155 .B tcplx_mask=<0.0\-1.0>
9156 Temporal complexity masking (default: 0.0 (disabled)).
9157 Imagine a scene with a bird flying across the whole scene; tcplx_mask
9158 will raise the quantizers of the bird's macroblocks (thus decreasing their
9159 quality), as the human eye usually does not have time to see all the bird's
9160 details.
9161 Be warned that if the masked object stops (e.g.\& the bird lands) it is
9162 likely to look horrible for a short period of time, until the encoder
9163 figures out that the object is not moving and needs refined blocks.
9164 The saved bits will be spent on other parts of the video, which may increase
9165 subjective quality, provided that tcplx_mask is carefully chosen.
9168 .B scplx_mask=<0.0\-1.0>
9169 Spatial complexity masking.
9170 Larger values help against blockiness, if no deblocking filter is used for
9171 decoding, which is maybe not a good idea.
9173 Imagine a scene with grass (which usually has great spatial complexity),
9174 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
9175 macroblocks, thus decreasing its quality, in order to spend more bits on
9176 the sky and the house.
9178 .I HINT:
9179 Crop any black borders completely as they will reduce the quality
9180 of the macroblocks (also applies without scplx_mask).
9181 .PD 0
9182 .RSs
9183 .IPs "0.0\ \ "
9184 disabled (default)
9185 .IPs 0.0\-0.5
9186 sane range
9188 .PD 1
9189 .sp 1
9191 .I NOTE:
9192 This setting does not have the same effect as using a custom matrix that
9193 would compress high frequencies harder, as scplx_mask will reduce the
9194 quality of P blocks even if only DC is changing.
9195 The result of scplx_mask will probably not look as good.
9199 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
9200 Reduces the quality of inter blocks.
9201 This is equivalent to increasing the quality of intra blocks, because the
9202 same average bitrate will be distributed by the rate controller to the
9203 whole video sequence (default: 0.0 (disabled)).
9204 p_mask=1.0 doubles the bits allocated to each intra block.
9207 .B border_mask=<0.0\-1.0>
9208 border-processing for MPEG-style encoders.
9209 Border processing increases the quantizer for macroblocks which are less
9210 than 1/5th of the frame width/height away from the frame border,
9211 since they are often visually less important.
9214 .B "naq\ \ \ \ "
9215 Normalize adaptive quantization (experimental).
9216 When using adaptive quantization (*_mask), the average per-MB quantizer may no
9217 longer match the requested frame-level quantizer.
9218 Naq will attempt to adjust the per-MB quantizers to maintain the proper
9219 average.
9222 .B "ildct\ \ "
9223 Use interlaced DCT.
9226 .B "ilme\ \ \ "
9227 Use interlaced motion estimation (mutually exclusive with qpel).
9230 .B "alt\ \ \ \ "
9231 Use alternative scantable.
9234 .B "top=<\-1\-1>\ \ \ "
9235 .PD 0
9236 .RSs
9237 .IPs \-1
9238 automatic
9239 .IPs 0
9240 bottom field first
9241 .IPs 1
9242 top field first
9244 .PD 1
9247 .B format=<value>
9248 .PD 0
9249 .RSs
9250 .IPs "YV12\ "
9251 default
9252 .IPs "444P\ "
9253 for ffv1
9254 .IPs "422P\ "
9255 for HuffYUV, lossless JPEG, dv and ffv1
9256 .IPs "411P\ "
9257 for lossless JPEG, dv and ffv1
9258 .IPs "YVU9\ "
9259 for lossless JPEG, ffv1 and svq1
9260 .IPs "BGR32"
9261 for lossless JPEG and ffv1
9263 .PD 1
9266 .B "pred\ \ \ "
9267 (for HuffYUV)
9268 .PD 0
9269 .RSs
9270 .IPs 0
9271 left prediction
9272 .IPs 1
9273 plane/\:gradient prediction
9274 .IPs 2
9275 median prediction
9277 .PD 1
9280 .B "pred\ \ \ "
9281 (for lossless JPEG)
9282 .PD 0
9283 .RSs
9284 .IPs 0
9285 left prediction
9286 .IPs 1
9287 top prediction
9288 .IPs 2
9289 topleft prediction
9290 .IPs 3
9291 plane/\:gradient prediction
9292 .IPs 6
9293 mean prediction
9295 .PD 1
9298 .B "coder\ \ "
9299 (for ffv1)
9300 .PD 0
9301 .RSs
9302 .IPs 0
9303 vlc coding (Golomb-Rice)
9304 .IPs 1
9305 arithmetic coding (CABAC)
9307 .PD 1
9310 .B context
9311 (for ffv1)
9312 .PD 0
9313 .RSs
9314 .IPs 0
9315 small context model
9316 .IPs 1
9317 large context model
9319 .PD 1
9320 .sp 1
9322 (for ffvhuff)
9324 .PD 0
9325 .RSs
9326 .IPs 0
9327 predetermined Huffman tables (builtin or two pass)
9328 .IPs 1
9329 adaptive Huffman tables
9331 .PD 1
9334 .B "qpel\ \ \ "
9335 Use quarter pel motion compensation (mutually exclusive with ilme).
9337 .I HINT:
9338 This seems only useful for high bitrate encodings.
9341 .B mbcmp=<0\-2000>
9342 Sets the comparison function for the macroblock decision, has only
9343 an effect if mbd=0.
9344 This is also used for some motion search functions, in which case
9345 it has an effect regardless of mbd setting.
9346 .PD 0
9347 .RSs
9348 .IPs "0 (SAD)"
9349 sum of absolute differences, fast (default)
9350 .IPs "1 (SSE)"
9351 sum of squared errors
9352 .IPs "2 (SATD)"
9353 sum of absolute Hadamard transformed differences
9354 .IPs "3 (DCT)"
9355 sum of absolute DCT transformed differences
9356 .IPs "4 (PSNR)"
9357 sum of squared quantization errors (avoid, low quality)
9358 .IPs "5 (BIT)"
9359 number of bits needed for the block
9360 .IPs "6 (RD)"
9361 rate distortion optimal, slow
9362 .IPs "7 (ZERO)"
9364 .IPs "8 (VSAD)"
9365 sum of absolute vertical differences
9366 .IPs "9 (VSSE)"
9367 sum of squared vertical differences
9368 .IPs "10 (NSSE)"
9369 noise preserving sum of squared differences
9370 .IPs "11 (W53)"
9371 5/3 wavelet, only used in snow
9372 .IPs "12 (W97)"
9373 9/7 wavelet, only used in snow
9374 .IPs "+256\ "
9375 Also use chroma, currently does not work (correctly) with B-frames.
9377 .PD 1
9380 .B ildctcmp=<0\-2000>
9381 Sets the comparison function for interlaced DCT decision
9382 (see mbcmp for available comparison functions).
9385 .B precmp=<0\-2000>
9386 Sets the comparison function for motion estimation pre pass
9387 (see mbcmp for available comparison functions) (default: 0).
9390 .B cmp=<0\-2000>
9391 Sets the comparison function for full pel motion estimation
9392 (see mbcmp for available comparison functions) (default: 0).
9395 .B subcmp=<0\-2000>
9396 Sets the comparison function for sub pel motion estimation
9397 (see mbcmp for available comparison functions) (default: 0).
9400 .B skipcmp=<0\-2000>
9401 FIXME: Document this.
9404 .B nssew=<0\-1000000>
9405 This setting controls NSSE weight, where larger weights will result in
9406 more noise.
9407 0 NSSE is identical to SSE
9408 You may find this useful if you prefer to keep some noise in your encoded
9409 video rather than filtering it away before encoding (default: 8).
9412 .B predia=<\-99\-6>
9413 diamond type and size for motion estimation pre-pass
9416 .B dia=<\-99\-6>
9417 Diamond type & size for motion estimation.
9418 Motion search is an iterative process.
9419 Using a small diamond does not limit the search to finding only small
9420 motion vectors.
9421 It is just somewhat more likely to stop before finding the very best motion
9422 vector, especially when noise is involved.
9423 Bigger diamonds allow a wider search for the best motion vector, thus are
9424 slower but result in better quality.
9426 Big normal diamonds are better quality than shape-adaptive diamonds.
9428 Shape-adaptive diamonds are a good tradeoff between speed and quality.
9430 .I NOTE:
9431 The sizes of the normal diamonds and shape adaptive ones do not have
9432 the same meaning.
9433 .RSs
9434 .IPs \-3
9435 shape adaptive (fast) diamond with size 3
9436 .IPs \-2
9437 shape adaptive (fast) diamond with size 2
9438 .IPs \-1
9439 uneven multi-hexagon search (slow)
9440 .IPs  1
9441 normal size=1 diamond (default) =EPZS type diamond
9444       0
9445      000
9446       0
9448 .IPs 2
9449 normal size=2 diamond
9452       0
9453      000
9454     00000
9455      000
9456       0
9461 .B "trell\ \ "
9462 Trellis searched quantization.
9463 This will find the optimal encoding for each 8x8 block.
9464 Trellis searched quantization is quite simply an optimal quantization in
9465 the PSNR versus bitrate sense (Assuming that there would be no rounding
9466 errors introduced by the IDCT, which is obviously not the case.).
9467 It simply finds a block for the minimum of error and lambda*bits.
9468 .PD 0
9469 .RSs
9470 .IPs lambda
9471 quantization parameter (QP) dependent constant
9472 .IPs "bits\ "
9473 amount of bits needed to encode the block
9474 .IPs error
9475 sum of squared errors of the quantization
9477 .PD 1
9480 .B "cbp\ \ \ \ "
9481 Rate distorted optimal coded block pattern.
9482 Will select the coded block pattern which minimizes distortion + lambda*rate.
9483 This can only be used together with trellis quantization.
9486 .B "mv0\ \ \ \ "
9487 Try to encode each MB with MV=<0,0> and choose the better one.
9488 This has no effect if mbd=0.
9491 .B mv0_threshold=<any non-negative integer>
9492 When surrounding motion vectors are <0,0> and the motion estimation
9493 score of the current block is less than mv0_threshold, <0,0> is used for
9494 the motion vector and further motion estimation is skipped (default:
9495 256).
9496 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
9497 possibly make the encoded video look slightly better; raising
9498 mv0_threshold past 320 results in diminished PSNR and visual quality.
9499 Higher values speed up encoding very slightly (usually less than 1%,
9500 depending on the other options used).
9502 .I NOTE:
9503 This option does not require mv0 to be enabled.
9506 .B qprd (mbd=2 only)
9507 rate distorted optimal quantization parameter (QP) for the given
9508 lambda of each macroblock
9511 .B last_pred=<0\-99>
9512 amount of motion predictors from the previous frame
9513 .PD 0
9514 .RSs
9515 .IPs 0
9516 (default)
9517 .IPs a
9518 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
9519 previous frame.
9521 .PD 1
9524 .B preme=<0\-2>
9525 motion estimation pre-pass
9526 .PD 0
9527 .RSs
9528 .IPs 0
9529 disabled
9530 .IPs 1
9531 only after I-frames (default)
9532 .IPs 2
9533 always
9535 .PD 1
9538 .B subq=<1\-8>
9539 subpel refinement quality (for qpel) (default: 8 (high quality))
9541 .I NOTE:
9542 This has a significant effect on speed.
9545 .B refs=<1\-8>
9546 number of reference frames to consider for motion compensation
9547 (Snow only) (default: 1)
9550 .B "psnr\ \ \ "
9551 print the PSNR (peak signal to noise ratio) for the whole video after encoding
9552 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
9553 Returned values are in dB (decibel), the higher the better.
9556 .B mpeg_quant
9557 Use MPEG quantizers instead of H.263.
9560 .B "aic\ \ \ \ "
9561 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
9562 This will improve quality very slightly (around 0.02 dB PSNR) and slow
9563 down encoding very slightly (about 1%).
9565 .I NOTE:
9566 vqmin should be 8 or larger for H.263+ AIC.
9569 .B "aiv\ \ \ \ "
9570 alternative inter vlc for H.263+
9573 .B "umv\ \ \ \ "
9574 unlimited MVs (H.263+ only)
9575 Allows encoding of arbitrarily long MVs.
9578 .B ibias=<\-256\-256>
9579 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
9580 H.263 style quantizer default: 0)
9582 .I NOTE:
9583 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9584 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9587 .B pbias=<\-256\-256>
9588 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
9589 H.263 style quantizer default: \-64)
9591 .I NOTE:
9592 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9593 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9595 .I HINT:
9596 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
9599 .B nr=<0\-100000>
9600 Noise reduction, 0 means disabled.
9601 0\-600 is a useful range for typical content, but you may want to turn it
9602 up a bit more for very noisy content (default: 0).
9603 Given its small impact on speed, you might want to prefer to use this over
9604 filtering noise away with video filters like denoise3d or hqdn3d.
9607 .B qns=<0\-3>
9608 Quantizer noise shaping.
9609 Rather than choosing quantization to most closely match the source video
9610 in the PSNR sense, it chooses quantization such that noise (usually ringing)
9611 will be masked by similar-frequency content in the image.
9612 Larger values are slower but may not result in better quality.
9613 This can and should be used together with trellis quantization, in which case
9614 the trellis quantization (optimal for constant weight) will be used as
9615 startpoint for the iterative search.
9616 .PD 0
9617 .RSs
9618 .IPs 0
9619 disabled (default)
9620 .IPs 1
9621 Only lower the absolute value of coefficients.
9622 .IPs 2
9623 Only change coefficients before the last non-zero coefficient + 1.
9624 .IPs 3
9625 Try all.
9627 .PD 1
9630 .B inter_matrix=<comma separated matrix>
9631 Use custom inter matrix.
9632 It needs a comma separated string of 64 integers.
9635 .B intra_matrix=<comma separated matrix>
9636 Use custom intra matrix.
9637 It needs a comma separated string of 64 integers.
9640 .B vqmod_amp
9641 experimental quantizer modulation
9644 .B vqmod_freq
9645 experimental quantizer modulation
9648 .B "dc\ \ \ \ \ "
9649 intra DC precision in bits (default: 8).
9650 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
9653 .B cgop (also see sc_threshold)
9654 Close all GOPs.
9655 Currently it only works if scene change detection is disabled
9656 (sc_threshold=1000000000).
9659 .B "gmc\ \ \ \ "
9660 Enable Global Motion Compensation.
9663 .B (no)lowdelay
9664 Sets the low delay flag for MPEG-1/2 (disables B-frames).
9667 .B vglobal=<0\-3>
9668 Control writing global video headers.
9669 .PD 0
9670 .RSs
9671 .IPs 0
9672 Codec decides where to write global headers (default).
9673 .IPs 1
9674 Write global headers only in extradata (needed for .mp4/MOV/NUT).
9675 .IPs 2
9676 Write global headers only in front of keyframes.
9677 .IPs 3
9678 Combine 1 and 2.
9680 .PD 1
9683 .B aglobal=<0\-3>
9684 Same as vglobal for audio headers.
9687 .B level=<value>
9688 Set CodecContext Level.
9689 Use 31 or 41 to play video on a Playstation 3.
9692 .B skip_exp=<0\-1000000>
9693 FIXME: Document this.
9696 .B skip_factor=<0\-1000000>
9697 FIXME: Document this.
9700 .B skip_threshold=<0\-1000000>
9701 FIXME: Document this.
9704 .SS nuv (\-nuvopts)
9706 Nuppel video is based on RTJPEG and LZO.
9707 By default frames are first encoded with RTJPEG and then compressed with LZO,
9708 but it is possible to disable either or both of the two passes.
9709 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
9710 or the default LZO compressed RTJPEG.
9712 .I NOTE:
9713 The nuvrec documentation contains some advice and examples about the
9714 settings to use for the most common TV encodings.
9717 .B c=<0\-20>
9718 chrominance threshold (default: 1)
9721 .B l=<0\-20>
9722 luminance threshold (default: 1)
9725 .B "lzo\ \ \ \ "
9726 Enable LZO compression (default).
9729 .B "nolzo\ \ "
9730 Disable LZO compression.
9733 .B q=<3\-255>
9734 quality level (default: 255)
9737 .B "raw \ \ \ "
9738 Disable RTJPEG encoding.
9741 .B "rtjpeg\ "
9742 Enable RTJPEG encoding (default).
9745 .SS xvidenc (\-xvidencopts)
9747 There are three modes available: constant bitrate (CBR), fixed quantizer and
9748 two pass.
9751 .B pass=<1|2>
9752 Specify the pass in two pass mode.
9755 .B turbo (two pass only)
9756 Dramatically speeds up pass one using faster algorithms and disabling
9757 CPU-intensive options.
9758 This will probably reduce global PSNR a little bit and change individual
9759 frame type and PSNR a little bit more.
9762 .B bitrate=<value> (CBR or two pass mode)
9763 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
9764 if >16000.
9765 If <value> is negative, Xvid will use its absolute value as the target size
9766 (in kBytes) of the video and compute the associated bitrate automagically
9767 (default: 687 kbits/s).
9770 .B fixed_quant=<1\-31>
9771 Switch to fixed quantizer mode and specify the quantizer to be used.
9774 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
9775 User specified quality for specific parts (ending, credits, ...).
9776 Each zone is <start-frame>,<mode>,<value> where <mode> may be
9777 .PD 0
9778 .RSs
9779 .IPs "q"
9780 Constant quantizer override, where value=<2.0\-31.0>
9781 represents the quantizer value.
9782 .IPs "w"
9783 Ratecontrol weight override, where value=<0.01\-2.00>
9784 represents the quality correction in %.
9786 .PD 1
9787 .sp 1
9789 .I EXAMPLE:
9791 .PD 0
9792 .RSs
9793 .IPs zones=90000,q,20
9794 Encodes all frames starting with frame 90000 at constant quantizer 20.
9795 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9796 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9797 up to the end at constant quantizer 20.
9798 Note that the second zone is needed to delimit the first zone, as
9799 without it everything up until frame 89999 would be encoded at 10%
9800 bitrate.
9802 .PD 1
9805 .B me_quality=<0\-6>
9806 This option controls the motion estimation subsystem.
9807 The higher the value, the more precise the estimation should be (default: 6).
9808 The more precise the motion estimation is, the more bits can be saved.
9809 Precision is gained at the expense of CPU time so decrease this setting if
9810 you need realtime encoding.
9813 .B (no)qpel
9814 MPEG-4 uses a half pixel precision for its motion search by default.
9815 The standard proposes a mode where encoders are allowed to use quarter
9816 pixel precision.
9817 This option usually results in a sharper image.
9818 Unfortunately it has a great impact on bitrate and sometimes the
9819 higher bitrate use will prevent it from giving a better image
9820 quality at a fixed bitrate.
9821 It is better to test with and without this option and see whether it
9822 is worth activating.
9825 .B (no)gmc
9826 Enable Global Motion Compensation, which makes Xvid generate special
9827 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9828 Whether or not the use of this option will save bits is highly
9829 dependent on the source material.
9832 .B (no)trellis
9833 Trellis Quantization is a kind of adaptive quantization method that
9834 saves bits by modifying quantized coefficients to make them more
9835 compressible by the entropy encoder.
9836 Its impact on quality is good, and if VHQ uses too much CPU for you,
9837 this setting can be a good alternative to save a few bits (and gain
9838 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9841 .B (no)cartoon
9842 Activate this if your encoded sequence is an anime/\:cartoon.
9843 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9844 frame types and motion vectors for flat looking cartoons.
9847 .B (no)chroma_me
9848 The usual motion estimation algorithm uses only the luminance information to
9849 find the best motion vector.
9850 However for some video material, using the chroma planes can help find
9851 better vectors.
9852 This setting toggles the use of chroma planes for motion estimation
9853 (default: on).
9856 .B (no)chroma_opt
9857 Enable a chroma optimizer prefilter.
9858 It will do some extra magic on color information to minimize the
9859 stepped-stairs effect on edges.
9860 It will improve quality at the cost of encoding speed.
9861 It reduces PSNR by nature, as the mathematical deviation to the original
9862 picture will get bigger, but the subjective image quality will raise.
9863 Since it works with color information, you might want to turn it off when
9864 encoding in grayscale.
9867 .B (no)hq_ac
9868 Activates high-quality prediction of AC coefficients for intra frames from
9869 neighbor blocks (default: on).
9872 .B vhq=<0\-4>
9873 The motion search algorithm is based on a search in the usual color domain
9874 and tries to find a motion vector that minimizes the difference between the
9875 reference frame and the encoded frame.
9876 With this setting activated, Xvid will also use the frequency domain (DCT)
9877 to search for a motion vector that minimizes not only the spatial
9878 difference but also the encoding length of the block.
9879 Fastest to slowest:
9880 .PD 0
9881 .RSs
9882 .IPs 0
9884 .IPs 1
9885 mode decision (inter/\:intra MB) (default)
9886 .IPs 2
9887 limited search
9888 .IPs 3
9889 medium search
9890 .IPs 4
9891 wide search
9893 .PD 1
9896 .B (no)lumi_mask
9897 Adaptive quantization allows the macroblock quantizers to vary inside
9898 each frame.
9899 This is a 'psychosensory' setting that is supposed to make use of the
9900 fact that the human eye tends to notice fewer details in very bright
9901 and very dark parts of the picture.
9902 It compresses those areas more strongly than medium ones, which will
9903 save bits that can be spent again on other frames, raising overall
9904 subjective quality and possibly reducing PSNR.
9907 .B (no)grayscale
9908 Make Xvid discard chroma planes so the encoded video is grayscale only.
9909 Note that this does not speed up encoding, it just prevents chroma data
9910 from being written in the last stage of encoding.
9913 .B (no)interlacing
9914 Encode the fields of interlaced video material.
9915 Turn this option on for interlaced content.
9917 .I NOTE:
9918 Should you rescale the video, you would need an interlace-aware resizer,
9919 which you can activate with \-vf scale=<width>:<height>:1.
9922 .B min_iquant=<0\-31>
9923 minimum I-frame quantizer (default: 2)
9926 .B max_iquant=<0\-31>
9927 maximum I-frame quantizer (default: 31)
9930 .B min_pquant=<0\-31>
9931 minimum P-frame quantizer (default: 2)
9934 .B max_pquant=<0\-31>
9935 maximum P-frame quantizer (default: 31)
9938 .B min_bquant=<0\-31>
9939 minimum B-frame quantizer (default: 2)
9942 .B max_bquant=<0\-31>
9943 maximum B-frame quantizer (default: 31)
9946 .B min_key_interval=<value> (two pass only)
9947 minimum interval between keyframes (default: 0)
9950 .B max_key_interval=<value>
9951 maximum interval between keyframes (default: 10*fps)
9954 .B quant_type=<h263|mpeg>
9955 Sets the type of quantizer to use.
9956 For high bitrates, you will find that MPEG quantization preserves more detail.
9957 For low bitrates, the smoothing of H.263 will give you less block noise.
9958 When using custom matrices, MPEG quantization
9959 .B must
9960 be used.
9963 .B quant_intra_matrix=<filename>
9964 Load a custom intra matrix file.
9965 You can build such a file with xvid4conf's matrix editor.
9968 .B quant_inter_matrix=<filename>
9969 Load a custom inter matrix file.
9970 You can build such a file with xvid4conf's matrix editor.
9973 .B keyframe_boost=<0\-1000> (two pass mode only)
9974 Shift some bits from the pool for other frame types to intra frames,
9975 thus improving keyframe quality.
9976 This amount is an extra percentage, so a value of 10 will give
9977 your keyframes 10% more bits than normal
9978 (default: 0).
9981 .B kfthreshold=<value> (two pass mode only)
9982 Works together with kfreduction.
9983 Determines the minimum distance below which you consider that
9984 two frames are considered consecutive and treated differently
9985 according to kfreduction
9986 (default: 10).
9989 .B kfreduction=<0\-100> (two pass mode only)
9990 The above two settings can be used to adjust the size of keyframes that
9991 you consider too close to the first (in a row).
9992 kfthreshold sets the range in which keyframes are reduced, and
9993 kfreduction determines the bitrate reduction they get.
9994 The last I-frame will get treated normally
9995 (default: 30).
9998 .B max_bframes=<0\-4>
9999 Maximum number of B-frames to put between I/P-frames (default: 2).
10002 .B bquant_ratio=<0\-1000>
10003 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
10006 .B bquant_offset=<\-1000\-1000>
10007 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
10010 .B bf_threshold=<\-255\-255>
10011 This setting allows you to specify what priority to place on the use of
10012 B-frames.
10013 The higher the value, the higher the probability of B-frames being used
10014 (default: 0).
10015 Do not forget that B-frames usually have a higher quantizer, and therefore
10016 aggressive production of B-frames may cause worse visual quality.
10019 .B (no)closed_gop
10020 This option tells Xvid to close every GOP (Group Of Pictures bounded
10021 by two I-frames), which makes GOPs independent from each other.
10022 This just implies that the last frame of the GOP is either a P-frame or a
10023 N-frame but not a B-frame.
10024 It is usually a good idea to turn this option on (default: on).
10027 .B (no)packed
10028 This option is meant to solve frame-order issues when encoding to
10029 container formats like AVI that cannot cope with out-of-order frames.
10030 In practice, most decoders (both software and hardware) are able to deal
10031 with frame-order themselves, and may get confused when this option is
10032 turned on, so you can safely leave if off, unless you really know what
10033 you are doing.
10035 .I WARNING:
10036 This will generate an illegal bitstream, and will not be
10037 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
10039 .I WARNING:
10040 This will also store a fake DivX version in the file so the bug
10041 autodetection of some decoders might be confused.
10044 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
10045 This setting allows the creation of variable framerate video streams.
10046 The value of the setting specifies a threshold under which, if the
10047 difference of the following frame to the previous frame is below or equal
10048 to this threshold, a frame gets not coded (a so called n-vop is placed
10049 in the stream).
10050 On playback, when reaching an n-vop the previous frame will be displayed.
10052 .I WARNING:
10053 Playing with this setting may result in a jerky video, so use it at your
10054 own risks!
10057 .B rc_reaction_delay_factor=<value>
10058 This parameter controls the number of frames the CBR rate controller
10059 will wait before reacting to bitrate changes and compensating for them
10060 to obtain a constant bitrate over an averaging range of frames.
10063 .B rc_averaging_period=<value>
10064 Real CBR is hard to achieve.
10065 Depending on the video material, bitrate can be variable, and hard to predict.
10066 Therefore Xvid uses an averaging period for which it guarantees a given
10067 amount of bits (minus a small variation).
10068 This settings expresses the "number of frames" for which Xvid averages
10069 bitrate and tries to achieve CBR.
10072 .B rc_buffer=<value>
10073 size of the rate control buffer
10076 .B curve_compression_high=<0\-100>
10077 This setting allows Xvid to take a certain percentage of bits away from
10078 high bitrate scenes and give them back to the bit reservoir.
10079 You could also use this if you have a clip with so many bits allocated
10080 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
10081 (default: 0).
10084 .B curve_compression_low=<0\-100>
10085 This setting allows Xvid to give a certain percentage of extra bits to the
10086 low bitrate scenes, taking a few bits from the entire clip.
10087 This might come in handy if you have a few low-bitrate scenes that are
10088 still blocky (default: 0).
10091 .B overflow_control_strength=<0\-100>
10092 During pass one of two pass encoding, a scaled bitrate curve is computed.
10093 The difference between that expected curve and the result obtained during
10094 encoding is called overflow.
10095 Obviously, the two pass rate controller tries to compensate for that overflow,
10096 distributing it over the next frames.
10097 This setting controls how much of the overflow is distributed every time
10098 there is a new frame.
10099 Low values allow lazy overflow control, big rate bursts are compensated for
10100 more slowly (could lead to lack of precision for small clips).
10101 Higher values will make changes in bit redistribution more abrupt, possibly
10102 too abrupt if you set it too high, creating artifacts (default: 5).
10104 .I NOTE:
10105 This setting impacts quality a lot, play with it carefully!
10108 .B max_overflow_improvement=<0\-100>
10109 During the frame bit allocation, overflow control may increase the frame
10110 size.
10111 This parameter specifies the maximum percentage by which the overflow
10112 control is allowed to increase the frame size, compared to the ideal curve
10113 allocation
10114 (default: 5).
10117 .B max_overflow_degradation=<0\-100>
10118 During the frame bit allocation, overflow control may decrease the frame
10119 size.
10120 This parameter specifies the maximum percentage by which the overflow
10121 control is allowed to decrease the frame size, compared to the ideal curve
10122 allocation
10123 (default: 5).
10126 .B container_frame_overhead=<0...>
10127 Specifies a frame average overhead per frame, in bytes.
10128 Most of the time users express their target bitrate for video w/o taking
10129 care of the video container overhead.
10130 This small but (mostly) constant overhead can cause the target file size
10131 to be exceeded.
10132 Xvid allows users to set the amount of overhead per frame the
10133 container generates (give only an average per frame).
10134 0 has a special meaning, it lets Xvid use its own default values
10135 (default: 24 \- AVI average overhead).
10138 .B profile=<profile_name>
10139 Restricts options and VBV (peak bitrate over a short period) according to
10140 the Simple, Advanced Simple and DivX profiles.
10141 The resulting videos should be playable on standalone players adhering to these
10142 profile specifications.
10143 .PD 0
10144 .RSs
10145 .IPs unrestricted
10146 no restrictions (default)
10147 .IPs "sp0\ \ "
10148 simple profile at level 0
10149 .IPs "sp1\ \ "
10150 simple profile at level 1
10151 .IPs "sp2\ \ "
10152 simple profile at level 2
10153 .IPs "sp3\ \ "
10154 simple profile at level 3
10155 .IPs "asp0\ "
10156 advanced simple profile at level 0
10157 .IPs "asp1\ "
10158 advanced simple profile at level 1
10159 .IPs "asp2\ "
10160 advanced simple profile at level 2
10161 .IPs "asp3\ "
10162 advanced simple profile at level 3
10163 .IPs "asp4\ "
10164 advanced simple profile at level 4
10165 .IPs "asp5\ "
10166 advanced simple profile at level 5
10167 .IPs dxnhandheld
10168 DXN handheld profile
10169 .IPs dxnportntsc
10170 DXN portable NTSC profile
10171 .IPs dxnportpal
10172 DXN portable PAL profile
10173 .IPs dxnhtntsc
10174 DXN home theater NTSC profile
10175 .IPs dxnhtpal
10176 DXN home theater PAL profile
10177 .IPs dxnhdtv
10178 DXN HDTV profile
10180 .PD 1
10182 .I NOTE:
10183 These profiles should be used in conjunction with an appropriate \-ffourcc.
10184 Generally DX50 is applicable, as some players do not recognize Xvid but
10185 most recognize DivX.
10189 .B par=<mode>
10190 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
10191 the Display Aspect Ratio).
10192 PAR is the ratio of the width and height of a single pixel.
10193 So both are related like this: DAR = PAR * (width/height).
10195 MPEG-4 defines 5 pixel aspect ratios and one extended
10196 one, giving the opportunity to specify a specific pixel aspect
10197 ratio.
10198 5 standard modes can be specified:
10199 .PD 0
10200 .RSs
10201 .IPs vga11
10202 It is the usual PAR for PC content.
10203 Pixels are a square unit.
10204 .IPs pal43
10205 PAL standard 4:3 PAR.
10206 Pixels are rectangles.
10207 .IPs pal169
10208 same as above
10209 .IPs ntsc43
10210 same as above
10211 .IPs ntsc169
10212 same as above (Do not forget to give the exact ratio.)
10213 .IPs "ext\ \ "
10214 Allows you to specify your own pixel aspect ratio with par_width and
10215 par_height.
10217 .PD 1
10219 .I NOTE:
10220 In general, setting aspect and autoaspect options is enough.
10224 .B par_width=<1\-255> (par=ext only)
10225 Specifies the width of the custom pixel aspect ratio.
10228 .B par_height=<1\-255> (par=ext only)
10229 Specifies the height of the custom pixel aspect ratio.
10232 .B aspect=<x/y | f (float value)>
10233 Store movie aspect internally, just like MPEG files.
10234 Much nicer solution than rescaling, because quality is not decreased.
10235 MPlayer and a few others players will play these files correctly, others
10236 will display them with the wrong aspect.
10237 The aspect parameter can be given as a ratio or a floating point number.
10240 .B (no)autoaspect
10241 Same as the aspect option, but automatically computes aspect, taking
10242 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
10243 filter chain.
10246 .B "psnr\ \ \ "
10247 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
10248 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
10249 the current directory.
10250 Returned values are in dB (decibel), the higher the better.
10253 .B "debug\ \ "
10254 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
10255 file.)
10259 .sp 1
10260 The following option is only available in Xvid 1.1.x.
10263 .B bvhq=<0|1>
10264 This setting allows vector candidates for B-frames to be used for
10265 the encoding chosen using a rate distortion optimized operator,
10266 which is what is done for P-frames by the vhq option.
10267 This produces nicer-looking B-frames while incurring almost no
10268 performance penalty (default: 1).
10271 .sp 1
10272 The following option is only available in the 1.2.x version of Xvid.
10275 .B threads=<0\-n>
10276 Create n threads to run the motion estimation (default: 0).
10277 The maximum number of threads that can be used is the picture height
10278 divided by 16.
10281 .SS x264enc (\-x264encopts)
10284 .B bitrate=<value>
10285 Sets the average bitrate to be used in kbits/\:second (default: off).
10286 Since local bitrate may vary, this average may be inaccurate for
10287 very short videos (see ratetol).
10288 Constant bitrate can be achieved by combining this with vbv_maxrate,
10289 at significant reduction in quality.
10292 .B qp=<0\-51>
10293 This selects the quantizer to use for P-frames.
10294 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
10295 20\-40 is a useful range.
10296 Lower values result in better fidelity, but higher bitrates.
10297 0 is lossless.
10298 Note that quantization in H.264 works differently from MPEG-1/2/4:
10299 H.264's quantization parameter (QP) is on a logarithmic scale.
10300 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
10301 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
10304 .B crf=<1.0\-50.0>
10305 Enables constant quality mode, and selects the quality.
10306 The scale is similar to QP.
10307 Like the bitrate-based modes, this allows each frame to use a
10308 different QP based on the frame's complexity.
10311 .B pass=<1\-3>
10312 Enable 2 or 3-pass mode.
10313 It is recommended to always encode in 2 or 3-pass mode as it leads to a
10314 better bit distribution and improves overall quality.
10315 .PD 0
10316 .RSs
10317 .IPs 1
10318 first pass
10319 .IPs 2
10320 second pass (of two pass encoding)
10321 .IPs 3
10322 Nth pass (second and third passes of three pass encoding)
10325 Here is how it works, and how to use it:
10327 The first pass (pass=1) collects statistics on the video and writes them
10328 to a file.
10329 You might want to deactivate some CPU-hungry options, apart from the ones
10330 that are on by default.
10332 In two pass mode, the second pass (pass=2) reads the statistics file and
10333 bases ratecontrol decisions on it.
10335 In three pass mode, the second pass (pass=3, that is not a typo)
10336 does both: It first reads the statistics, then overwrites them.
10337 You can use all encoding options, except very CPU-hungry options.
10339 The third pass (pass=3) is the same as the second pass, except that it has
10340 the second pass' statistics to work from.
10341 You can use all encoding options, including CPU-hungry ones.
10343 The first pass may use either average bitrate or constant quantizer.
10344 ABR is recommended, since it does not require guessing a quantizer.
10345 Subsequent passes are ABR, and must specify bitrate.
10346 .REss
10349 .B turbo=<0\-2>
10350 Fast first pass mode.
10351 During the first pass of a two or more pass encode it is possible to gain
10352 speed by disabling some options with negligible or even no impact on the
10353 final pass output quality.
10354 .PD 0
10355 .RSs
10356 .IPs 0
10357 disabled (default)
10358 .IPs 1
10359 Reduce subq, frameref and disable some inter-macroblock partition analysis
10360 modes.
10361 .IPs 2
10362 Reduce subq and frameref to 1, use a diamond ME search and disable all
10363 partition analysis modes.
10366 Level 1 can increase first pass speed up to 2x with no change in the global
10367 PSNR of the final pass compared to a full quality first pass.
10369 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
10370 in the global PSNR of the final pass compared to a full quality first pass.
10371 .REss
10374 .B keyint=<value>
10375 Sets maximum interval between IDR-frames (default: 250).
10376 Larger values save bits, thus improve quality, at the cost of seeking
10377 precision.
10378 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
10379 values of keyint.
10382 .B keyint_min=<1\-keyint/2>
10383 Sets minimum interval between IDR-frames (default: 25).
10384 If scenecuts appear within this interval, they are still encoded as
10385 I-frames, but do not start a new GOP.
10386 In H.264, I-frames do not necessarily bound a closed GOP because it is
10387 allowable for a P-frame to be predicted from more frames than just the one
10388 frame before it (also see frameref).
10389 Therefore, I-frames are not necessarily seekable.
10390 IDR-frames restrict subsequent P-frames from referring to any frame
10391 prior to the IDR-frame.
10394 .B scenecut=<\-1\-100>
10395 Controls how aggressively to insert extra I-frames (default: 40).
10396 With small values of scenecut, the codec often has to force an I-frame
10397 when it would exceed keyint.
10398 Good values of scenecut may find a better location for the I-frame.
10399 Large values use more I-frames than necessary, thus wasting bits.
10400 \-1 disables scene-cut detection, so I-frames are inserted only once
10401 every other keyint frames, even if a scene-cut occurs earlier.
10402 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
10403 are just as big as I-frames, but do not reset the "keyint counter".
10406 .B (no)intra_refresh
10407 Periodic intra block refresh instead of keyframes (default: disabled).
10408 This option disables IDR-frames, and, instead, uses a moving vertical bar
10409 of intra-coded blocks. This reduces compression efficiency but benefits
10410 low-latency streaming and resilience to packet loss.
10413 .B frameref=<1\-16>
10414 Number of previous frames used as predictors in B- and P-frames (default: 3).
10415 This is effective in anime, but in live-action material the improvements
10416 usually drop off very rapidly above 6 or so reference frames.
10417 This has no effect on decoding speed, but does increase the memory needed for
10418 decoding.
10419 Some decoders can only handle a maximum of 15 reference frames.
10422 .B bframes=<0\-16>
10423 maximum number of consecutive B-frames between I- and P-frames (default: 3)
10426 .B (no)b_adapt
10427 Automatically decides when to use B-frames and how many, up to the maximum
10428 specified above (default: on).
10429 If this option is disabled, then the maximum number of B-frames is used.
10432 .B b_bias=<\-100\-100>
10433 Controls the decision performed by b_adapt.
10434 A higher b_bias produces more B-frames (default: 0).
10437 .B (no)b_pyramid
10438 Allows B-frames to be used as references for predicting other frames.
10439 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
10440 Without this option, B-frames follow the same pattern as MPEG-[124].
10441 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
10442 are predicted from I0 and P4.
10443 With this option, they are coded as I0 P4 B2 B1 B3.
10444 B2 is the same as above, but B1 is predicted from I0 and B2, and
10445 B3 is predicted from B2 and P4.
10446 This usually results in slightly improved compression, at almost no
10447 speed cost.
10448 However, this is an experimental option: it is not fully tuned and
10449 may not always help.
10450 Requires bframes >= 2.
10451 Disadvantage: increases decoding delay to 2 frames.
10454 .B (no)deblock
10455 Use deblocking filter (default: on).
10456 As it takes very little time compared to its quality gain, it is not
10457 recommended to disable it.
10460 .B deblock=<\-6\-6>,<\-6\-6>
10461 The first parameter is AlphaC0 (default: 0).
10462 This adjusts thresholds for the H.264 in-loop deblocking filter.
10463 First, this parameter adjusts the maximum amount of change that the filter is
10464 allowed to cause on any one pixel.
10465 Secondly, this parameter affects the threshold for difference across the
10466 edge being filtered.
10467 A positive value reduces blocking artifacts more, but will also smear details.
10469 The second parameter is Beta (default: 0).
10470 This affects the detail threshold.
10471 Very detailed blocks are not filtered, since the smoothing caused by the
10472 filter would be more noticeable than the original blocking.
10474 The default behavior of the filter almost always achieves optimal quality,
10475 so it is best to either leave it alone, or make only small adjustments.
10476 However, if your source material already has some blocking or noise which
10477 you would like to remove, it may be a good idea to turn it up a little bit.
10480 .B (no)cabac
10481 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
10482 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
10483 Unless you are looking for decoding speed, you should not disable it.
10486 .B qp_min=<1\-51> (ABR or two pass)
10487 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
10490 .B qp_max=<1\-51> (ABR or two pass)
10491 maximum quantizer (default: 51)
10494 .B qp_step=<1\-50> (ABR or two pass)
10495 maximum value by which the quantizer may be incremented/decremented between
10496 frames (default: 4)
10499 .B (no)mbtree
10500 Enable macroblock tree ratecontrol (default: enabled).
10501 Use a large lookahead to track temporal propagation of data and weight quality
10502 accordingly.
10503 In multi-pass mode, this writes to a separate stats file named
10504 <passlogfile>.mbtree.
10507 .B rc_lookahead=<0\-250>
10508 Adjust the mbtree lookahead distance (default: 40).
10509 Larger values will be slower and cause x264 to consume more memory, but can
10510 yield higher quality.
10513 .B ratetol=<0.1\-100.0> (ABR or two pass)
10514 allowed variance in average bitrate (no particular units) (default: 1.0)
10517 .B vbv_maxrate=<value> (ABR or two pass)
10518 maximum local bitrate, in kbits/\:second (default: disabled)
10521 .B vbv_bufsize=<value> (ABR or two pass)
10522 averaging period for vbv_maxrate, in kbits
10523 (default: none, must be specified if vbv_maxrate is enabled)
10526 .B vbv_init=<0.0\-1.0> (ABR or two pass)
10527 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
10530 .B ip_factor=<value>
10531 quantizer factor between I- and P-frames (default: 1.4)
10534 .B pb_factor=<value>
10535 quantizer factor between P- and B-frames (default: 1.3)
10538 .B qcomp=<0\-1> (ABR or two pass)
10539 quantizer compression (default: 0.6).
10540 A lower value makes the bitrate more constant,
10541 while a higher value makes the quantization parameter more constant.
10544 .B cplx_blur=<0\-999> (two pass only)
10545 Temporal blur of the estimated frame complexity, before curve compression
10546 (default: 20).
10547 Lower values allow the quantizer value to jump around more,
10548 higher values force it to vary more smoothly.
10549 cplx_blur ensures that each I-frame has quality comparable to the following
10550 P-frames, and ensures that alternating high and low complexity frames
10551 (e.g.\& low fps animation) do not waste bits on fluctuating quantizer.
10554 .B qblur=<0\-99> (two pass only)
10555 Temporal blur of the quantization parameter, after curve compression
10556 (default: 0.5).
10557 Lower values allow the quantizer value to jump around more,
10558 higher values force it to vary more smoothly.
10561 .B zones=<zone0>[/<zone1>[/...]]
10562 User specified quality for specific parts (ending, credits, ...).
10563 Each zone is <start-frame>,<end-frame>,<option> where option may be
10564 .PD 0
10565 .RSs
10566 .IPs "q=<0\-51>"
10567 quantizer
10568 .IPs "b=<0.01\-100.0>"
10569 bitrate multiplier
10571 .PD 1
10573 .I NOTE:
10574 The quantizer option is not strictly enforced.
10575 It affects only the planning stage of ratecontrol, and is still subject
10576 to overflow compensation and qp_min/qp_max.
10580 .B direct_pred=<name>
10581 Determines the type of motion prediction used for direct macroblocks
10582 in B-frames.
10583 .PD 0
10584 .RSs
10585 .IPs none
10586 Direct macroblocks are not used.
10587 .IPs spatial
10588 Motion vectors are extrapolated from neighboring blocks.
10589 (default)
10590 .IPs temporal
10591 Motion vectors are extrapolated from the following P-frame.
10592 .IPs auto
10593 The codec selects between spatial and temporal for each frame.
10595 .PD 1
10597 Spatial and temporal are approximately the same speed and PSNR,
10598 the choice between them depends on the video content.
10599 Auto is slightly better, but slower.
10600 Auto is most effective when combined with multipass.
10601 direct_pred=none is both slower and lower quality.
10605 .B weightp
10606 Weighted P-frame prediction mode (default: 2).
10607 .PD 0
10608 .RSs
10609 .IPs 0
10610 disabled (fastest)
10611 .IPs 1
10612 blind mode (slightly better quality)
10613 .IPs 2
10614 smart mode (best)
10616 .PD 1
10619 .B (no)weight_b
10620 Use weighted prediction in B-frames.
10621 Without this option, bidirectionally predicted macroblocks give
10622 equal weight to each reference frame.
10623 With this option, the weights are determined by the temporal position
10624 of the B-frame relative to the references.
10625 Requires bframes > 1.
10628 .B partitions=<list>
10629 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
10630 .PD 0
10631 .RSs
10632 .IPs p8x8
10633 Enable types p16x8, p8x16, p8x8.
10634 .IPs p4x4
10635 Enable types p8x4, p4x8, p4x4.
10636 p4x4 is recommended only with subq >= 5, and only at low resolutions.
10637 .IPs b8x8
10638 Enable types b16x8, b8x16, b8x8.
10639 .IPs i8x8
10640 Enable type i8x8.
10641 i8x8 has no effect unless 8x8dct is enabled.
10642 .IPs i4x4
10643 Enable type i4x4.
10644 .IPs all
10645 Enable all of the above types.
10646 .IPs none
10647 Disable all of the above types.
10649 .PD 1
10651 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
10652 are always enabled.
10654 The idea is to find the type and size that best describe a certain area
10655 of the picture.
10656 For example, a global pan is better represented by 16x16 blocks, while
10657 small moving objects are better represented by smaller blocks.
10661 .B (no)8x8dct
10662 Adaptive spatial transform size: allows macroblocks to choose between
10663 4x4 and 8x8 DCT.
10664 Also allows the i8x8 macroblock type.
10665 Without this option, only 4x4 DCT is used.
10668 .B me=<name>
10669 Select fullpixel motion estimation algorithm.
10670 .PD 0
10671 .RSs
10672 .IPs dia
10673 diamond search, radius 1 (fast)
10674 .IPs hex
10675 hexagon search, radius 2 (default)
10676 .IPs umh
10677 uneven multi-hexagon search (slow)
10678 .IPs esa
10679 exhaustive search (very slow, and no better than umh)
10681 .PD 1
10684 .B me_range=<4\-64>
10685 radius of exhaustive or multi-hexagon motion search (default: 16)
10688 .B subq=<0\-9>
10689 Adjust subpel refinement quality.
10690 This parameter controls quality versus speed tradeoffs involved in the motion
10691 estimation decision process.
10692 subq=5 can compress up to 10% better than subq=1.
10693 .PD 0
10694 .RSs
10695 .IPs 0
10696 Runs fullpixel precision motion estimation on all candidate
10697 macroblock types.
10698 Then selects the best type with SAD metric (faster than subq=1, not recommended
10699 unless you're looking for ultra-fast encoding).
10700 .IPs 1
10701 Does as 0, then refines the motion of that type to fast quarterpixel precision
10702 (fast).
10703 .IPs 2
10704 Runs halfpixel precision motion estimation on all candidate macroblock types.
10705 Then selects the best type with SATD metric.
10706 Then refines the motion of that type to fast quarterpixel precision.
10707 .IPs 3
10708 As 2, but uses a slower quarterpixel refinement.
10709 .IPs 4
10710 Runs fast quarterpixel precision motion estimation on all candidate
10711 macroblock types.
10712 Then selects the best type with SATD metric.
10713 Then finishes the quarterpixel refinement for that type.
10714 .IPs 5
10715 Runs best quality quarterpixel precision motion estimation on all
10716 candidate macroblock types, before selecting the best type.
10717 Also refines the two motion vectors used in bidirectional macroblocks with
10718 SATD metric, rather than reusing vectors from the forward and backward
10719 searches.
10720 .IPs 6
10721 Enables rate-distortion optimization of macroblock types in
10722 I- and P-frames.
10723 .IPs 7
10724 Enables rate-distortion optimization of macroblock types in all frames (default).
10725 .IPs 8
10726 Enables rate-distortion optimization of motion vectors and intra prediction modes in I- and P-frames.
10727 .IPs 9
10728 Enables rate-distortion optimization of motion vectors and intra prediction modes in all frames (best).
10730 .PD 1
10732 In the above, "all candidates" does not exactly mean all enabled types:
10733 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
10737 .B (no)chroma_me
10738 Takes into account chroma information during subpixel motion search
10739 (default: enabled).
10740 Requires subq>=5.
10743 .B (no)mixed_refs
10744 Allows each 8x8 or 16x8 motion partition to independently select a
10745 reference frame.
10746 Without this option, a whole macroblock must use the same reference.
10747 Requires frameref>1.
10750 .B trellis=<0\-2> (cabac only)
10751 rate-distortion optimal quantization
10752 .PD 0
10753 .RSs
10754 .IPs 0
10755 disabled
10756 .IPs 1
10757 enabled only for the final encode (default)
10758 .IPs 2
10759 enabled during all mode decisions (slow, requires subq>=6)
10761 .PD 1
10764 .B psy-rd=rd[,trell]
10765 Sets the strength of the psychovisual optimization.
10766 .PD 0
10767 .RSs
10768 .IPs rd=<0.0\-10.0>
10769 psy optimization strength (requires subq>=6) (default: 1.0)
10770 .IPs trell=<0.0\-10.0>
10771 trellis (requires trellis, experimental) (default: 0.0)
10773 .PD 1
10776 .B (no)psy
10777 Enable psychovisual optimizations that hurt PSNR and SSIM but ought to look
10778 better (default: enabled).
10781 .B deadzone_inter=<0\-32>
10782 Set the size of the inter luma quantization deadzone for non-trellis
10783 quantization (default: 21).
10784 Lower values help to preserve fine details and film grain (typically useful
10785 for high bitrate/quality encode), while higher values help filter out
10786 these details to save bits that can be spent again on other macroblocks
10787 and frames (typically useful for bitrate-starved encodes).
10788 It is recommended that you start by tweaking deadzone_intra before changing
10789 this parameter.
10792 .B deadzone_intra=<0\-32>
10793 Set the size of the intra luma quantization deadzone for non-trellis
10794 quantization (default: 11).
10795 This option has the same effect as deadzone_inter except that it affects
10796 intra frames.
10797 It is recommended that you start by tweaking this parameter before changing
10798 deadzone_inter.
10801 .B (no)fast_pskip
10802 Performs early skip detection in P-frames (default: enabled).
10803 This usually improves speed at no cost, but it can sometimes produce
10804 artifacts in areas with no details, like sky.
10807 .B (no)dct_decimate
10808 Eliminate dct blocks in P-frames containing only a small single coefficient
10809 (default: enabled).
10810 This will remove some details, so it will save bits that can be spent
10811 again on other frames, hopefully raising overall subjective quality.
10812 If you are compressing non-anime content with a high target bitrate, you
10813 may want to disable this to preserve as much detail as possible.
10816 .B nr=<0\-100000>
10817 Noise reduction, 0 means disabled.
10818 100\-1000 is a useful range for typical content, but you may want to turn it
10819 up a bit more for very noisy content (default: 0).
10820 Given its small impact on speed, you might want to prefer to use this over
10821 filtering noise away with video filters like denoise3d or hqdn3d.
10824 .B chroma_qp_offset=<\-12\-12>
10825 Use a different quantizer for chroma as compared to luma.
10826 Useful values are in the range <\-2\-2> (default: 0).
10829 .B aq_mode=<0\-2>
10830 Defines how adaptive quantization (AQ) distributes bits:
10831 .PD 0
10832 .RSs
10833 .IPs 0
10834 disabled
10835 .IPs 1
10836 Avoid moving bits between frames.
10837 .IPs 2
10838 Move bits between frames (by default).
10840 .PD 1
10843 .B aq_strength=<positive float value>
10844 Controls how much adaptive quantization (AQ) reduces blocking and blurring
10845 in flat and textured areas (default: 1.0).
10846 A value of 0.5 will lead to weak AQ and less details, when a value of 1.5
10847 will lead to strong AQ and more details.
10850 .B cqm=<flat|jvt|<filename>>
10851 Either uses a predefined custom quantization matrix or loads a JM format
10852 matrix file.
10853 .PD 0
10854 .RSs
10855 .IPs "flat\ "
10856 Use the predefined flat 16 matrix (default).
10857 .IPs "jvt\ \ "
10858 Use the predefined JVT matrix.
10859 .IPs <filename>
10860 Use the provided JM format matrix file.
10861 .PD 1
10864 .I NOTE:
10865 Windows CMD.EXE users may experience problems with parsing the command line
10866 if they attempt to use all the CQM lists.
10867 This is due to a command line length limitation.
10868 In this case it is recommended the lists be put into a JM format CQM
10869 file and loaded as specified above.
10873 .B cqm4iy=<list> (also see cqm)
10874 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10875 values in the 1\-255 range.
10878 .B cqm4ic=<list> (also see cqm)
10879 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10880 separated values in the 1\-255 range.
10883 .B cqm4py=<list> (also see cqm)
10884 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10885 values in the 1\-255 range.
10888 .B cqm4pc=<list> (also see cqm)
10889 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10890 separated values in the 1\-255 range.
10893 .B cqm8iy=<list> (also see cqm)
10894 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10895 values in the 1\-255 range.
10898 .B cqm8py=<list> (also see cqm)
10899 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10900 values in the 1\-255 range.
10903 .B level_idc=<10\-51>
10904 Set the bitstream's level as defined by annex A of the H.264 standard
10905 (default: 51 \- level 5.1).
10906 This is used for telling the decoder what capabilities it needs to support.
10907 Use this parameter only if you know what it means,
10908 and you have a need to set it.
10911 .B threads=<0\-16>
10912 Spawn threads to encode in parallel on multiple CPUs (default: 0).
10913 This has a slight penalty to compression quality.
10914 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10915 appropriate number of threads.
10918 .B (no)sliced_threads
10919 Use slice-based threading (default: disabled).
10920 Unlike normal threading, this option adds no encoding latency, but is slightly
10921 slower and less effective at compression.
10924 .B slice_max_size=<0 or positive integer>
10925 Maximum slice size in bytes (default: 0).
10926 A value of zero disables the maximum.
10929 .B slice_max_mbs=<0 or positive integer>
10930 Maximum slice size in number of macroblocks (default: 0).
10931 A value of zero disables the maximum.
10934 .B slices=<0 or positive integer>
10935 Maximum number of slices per frame (default: 0).
10936 A value of zero disables the maximum.
10939 .B sync_lookahead=<0\-250>
10940 Adjusts the size of the threaded lookahead buffer (default: 0).
10941 0 or 'auto' tells x264 to automatically determine buffer size.
10944 .B (no)deterministic
10945 Use only deterministic optimizations with multithreaded encoding (default:
10946 enabled).
10949 .B (no)global_header
10950 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10951 (default: disabled).
10952 Some players, such as the Sony PSP, require the use of this option.
10953 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10956 .B (no)interlaced
10957 Treat the video content as interlaced.
10960 .B (no)constrained_intra
10961 Enable constrained intra prediction (default: disabled).
10962 This significantly reduces compression, but is required for the base layer of
10963 SVC encodes.
10966 .B (no)aud
10967 Write access unit delimeters to the stream (default: disabled).
10968 Enable this only if your target container format requires access unit
10969 delimiters.
10972 .B overscan=<undef|show|crop>
10973 Include VUI overscan information in the stream (default: disabled).
10974 See doc/vui.txt in the x264 source code for more information.
10977 .B videoformat=<component|pal|ntsc|secam|mac|undef>
10978 Include VUI video format information in the stream (default: disabled).
10979 This is a purely informative setting for describing the original source.
10980 See doc/vui.txt in the x264 source code for more information.
10983 .B (no)fullrange
10984 Include VUI full range information in the stream (default: disabled).
10985 Use this option if your source video is not range limited.
10986 See doc/vui.txt in the x264 source code for more information.
10989 .B colorprim=<bt709|bt470m|bt470bg|smpte170m|smpte240m|film|undef>
10990 Include color primaries information (default: disabled).
10991 This can be used for color correction.
10992 See doc/vui.txt in the x264 source code for more information.
10995 .B transfer=<bt709|bt470m|bt470bg|linear|log100|log316|smpte170m|smpte240m>
10996 Include VUI transfer characteristics information in the stream
10997 (default: disabled).
10998 This can be used for color correction.
10999 See doc/vui.txt in the x264 source code for more information.
11002 .B colormatrix=<bt709|fcc|bt470bg|smpte170m|smpte240m|GBR|YCgCo>
11003 Include VUI matrix coefficients in the stream (default: disabled).
11004 This can be used for color correction.
11005 See doc/vui.txt in the x264 source code for more information.
11008 .B chromaloc=<0-5>
11009 Include VUI chroma sample location information in the stream (default:
11010 disabled).
11011 Use this option to ensure alignment of the chroma and luma planes after
11012 color space conversions.
11013 See doc/vui.txt in the x264 source code for more information.
11016 .B log=<\-1\-3>
11017 Adjust the amount of logging info printed to the screen.
11018 .PD 0
11019 .RSs
11020 .IPs "\-1"
11021 none
11022 .IPs " 0"
11023 Print errors only.
11024 .IPs " 1"
11025 warnings
11026 .IPs " 2"
11027 PSNR and other analysis statistics when the encode finishes (default)
11028 .IPs " 3"
11029 PSNR, QP, frametype, size, and other statistics for every frame
11031 .PD 1
11034 .B (no)psnr
11035 Print signal-to-noise ratio statistics.
11037 .I NOTE:
11038 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
11039 mathematically sound (they are simply the average of per-frame PSNRs).
11040 They are kept only for comparison to the JM reference codec.
11041 For all other purposes, please use either the 'Global' PSNR, or the per-frame
11042 PSNRs printed by log=3.
11045 .B (no)ssim
11046 Print the Structural Similarity Metric results.
11047 This is an alternative to PSNR, and may be better correlated with the
11048 perceived quality of the compressed video.
11051 .B (no)visualize
11052 Enable x264 visualizations during encoding.
11053 If the x264 on your system supports it, a new window will be opened during
11054 the encoding process, in which x264 will attempt to present an overview of
11055 how each frame gets encoded.
11056 Each block type on the visualized movie will be colored as follows:
11059 .B dump_yuv=<file name>
11060 Dump YUV frames to the specified file.
11061 For debugging use.
11062 .PD 0
11063 .RSs
11064 .IPs red/pink
11065 intra block
11066 .IPs "blue\ "
11067 inter block
11068 .IPs green
11069 skip block
11070 .IPs yellow
11071 B-block
11073 .PD 1
11075 This feature can be considered experimental and subject to change.
11076 In particular, it depends on x264 being compiled with visualizations enabled.
11077 Note that as of writing this, x264 pauses after encoding and visualizing
11078 each frame, waiting for the user to press a key, at which point the next
11079 frame will be encoded.
11083 .SS xvfw (\-xvfwopts)
11085 Encoding with Video for Windows codecs is mostly obsolete unless you wish
11086 to encode to some obscure fringe codec.
11089 .B codec=<name>
11090 The name of the binary codec file with which to encode.
11093 .B compdata=<file>
11094 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
11097 .SS MPEG muxer (\-mpegopts)
11099 The MPEG muxer can generate 5 types of streams, each of which has reasonable
11100 default parameters that the user can override.
11101 Generally, when generating MPEG files, it is advisable to disable
11102 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
11103 harddup and softskip video filters).
11105 .I EXAMPLE:
11106 .PD 0
11107 .RSs
11108 .IPs format=mpeg2:tsaf:vbitrate=8000
11110 .PD 1
11113 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
11114 stream format (default: mpeg2).
11115 pes1 and pes2 are very broken formats (no pack header and no padding),
11116 but VDR uses them; do not choose them unless you know exactly what you
11117 are doing.
11120 .B size=<up to 65535>
11121 Pack size in bytes, do not change unless you know exactly what
11122 you are doing (default: 2048).
11125 .B muxrate=<int>
11126 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
11127 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
11130 .B "tsaf\ \ \ "
11131 Sets timestamps on all frames, if possible; recommended when format=dvd.
11132 If dvdauthor complains with a message like "..audio sector out of range...",
11133 you probably did not enable this option.
11136 .B interleaving2
11137 Uses a better algorithm to interleave audio and video packets, based on the
11138 principle that the muxer will always try to fill the stream with the largest
11139 percentage of free space.
11142 .B vdelay=<1\-32760>
11143 Initial video delay time, in milliseconds (default: 0),
11144 use it if you want to delay video with respect to audio.
11145 It doesn't work with :drop.
11148 .B adelay=<1\-32760>
11149 Initial audio delay time, in milliseconds (default: 0),
11150 use it if you want to delay audio with respect to video.
11153 .B "drop\ \ \ "
11154 When used with vdelay the muxer drops the part of audio that was
11155 anticipated.
11158 .B vwidth, vheight=<1\-4095>
11159 Set the video width and height when video is MPEG-1/2.
11162 .B vpswidth, vpsheight=<1\-4095>
11163 Set pan and scan video width and height when video is MPEG-2.
11166 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
11167 Sets the display aspect ratio for MPEG-2 video.
11168 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
11171 .B vbitrate=<int>
11172 Sets the video bitrate in kbit/s for MPEG-1/2 video.
11175 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
11176 Sets the framerate for MPEG-1/2 video.
11177 This option will be ignored if used with the telecine option.
11180 .B telecine
11181 Enables 3:2 pulldown soft telecine mode: The muxer will make the
11182 video stream look like it was encoded at 30000/1001 fps.
11183 It only works with MPEG-2 video when the output framerate is
11184 24000/1001 fps, convert it with \-ofps if necessary.
11185 Any other framerate is incompatible with this option.
11188 .B film2pal
11189 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
11190 will make the video stream look like it was encoded at 25 fps.
11191 It only works with MPEG-2 video when the output framerate is
11192 24000/1001 fps, convert it with \-ofps if necessary.
11193 Any other framerate is incompatible with this option.
11196 .B tele_src and tele_dest
11197 Enables arbitrary telecining using Donand Graft's DGPulldown code.
11198 You need to specify the original and the desired framerate; the
11199 muxer will make the video stream look like it was encoded at
11200 the desired framerate.
11201 It only works with MPEG-2 video when the input framerate is smaller
11202 than the output framerate and the framerate increase is <= 1.5.
11203 .sp 1
11205 .I EXAMPLE:
11207 .PD 0
11208 .RSs
11209 .IPs tele_src=25,tele_dest=30000/1001
11210 PAL to NTSC telecining
11212 .PD 1
11215 .B vbuf_size=<40\-1194>
11216 Sets the size of the video decoder's buffer, expressed in kilobytes.
11217 Specify it only if the bitrate of the video stream is too high for
11218 the chosen format and if you know perfectly well what you are doing.
11219 A too high value may lead to an unplayable movie, depending on the player's
11220 capabilities.
11221 When muxing HDTV video a value of 400 should suffice.
11224 .B abuf_size=<4\-64>
11225 Sets the size of the audio decoder's buffer, expressed in kilobytes.
11226 The same principle as for vbuf_size applies.
11229 .SS FFmpeg libavformat demuxers (\-lavfdopts)
11232 .B analyzeduration=<value>
11233 Maximum length in seconds to analyze the stream properties.
11236 .B format=<value>
11237 Force a specific libavformat demuxer.
11240 .B o=<key>=<value>[,<key>=<value>[,...]]
11241 Pass AVOptions to libavformat demuxer.
11242 Note, a patch to make the o= unneeded and pass all unknown options through
11243 the AVOption system is welcome.
11244 A full list of AVOptions can be found in the FFmpeg manual.
11245 Note that some options may conflict with MPlayer/MEncoder options.
11246 .sp 1
11248 .I EXAMPLE:
11250 .RSs
11251 .PD 0
11252 .IPs o=ignidx
11253 .PD 1
11257 .B probesize=<value>
11258 Maximum amount of data to probe during the detection phase.
11259 In the case of MPEG-TS this value identifies the maximum number
11260 of TS packets to scan.
11263 .B cryptokey=<hexstring>
11264 Encryption key the demuxer should use.
11265 This is the raw binary data of the key converted to a hexadecimal string.
11268 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
11271 .B delay=<value>
11272 Currently only meaningful for MPEG[12]: Maximum allowed distance,
11273 in seconds, between the reference timer of the output stream (SCR)
11274 and the decoding timestamp (DTS) for any stream present
11275 (demux to decode delay).
11276 Default is 0.7 (as mandated by the standards defined by MPEG).
11277 Higher values require larger buffers and must not be used.
11280 .B format=<container_format>
11281 Override which container format to mux into
11282 (default: autodetect from output file extension).
11283 .PD 0
11284 .RSs
11285 .IPs "mpg\ \ "
11286 MPEG-1 systems and MPEG-2 PS
11287 .IPs "asf\ \ "
11288 Advanced Streaming Format
11289 .IPs "avi\ \ "
11290 Audio Video Interleave file
11291 .IPs "wav\ \ "
11292 Waveform Audio
11293 .IPs "swf\ \ "
11294 Macromedia Flash
11295 .IPs "flv\ \ "
11296 Macromedia Flash video files
11297 .IPs "rm\ \ \ "
11298 RealAudio and RealVideo
11299 .IPs "au\ \ \ "
11300 SUN AU format
11301 .IPs "nut\ \ "
11302 NUT open container format (experimental)
11303 .IPs "mov\ \ "
11304 QuickTime
11305 .IPs "mp4\ \ "
11306 MPEG-4 format
11307 .IPs "ipod\ "
11308 MPEG-4 format with extra header flags required by Apple iPod firmware
11309 .IPs "dv\ \ \ "
11310 Sony Digital Video container
11311 .IPs "matroska\ \ \ "
11312 Matroska
11314 .PD 1
11316 .B muxrate=<rate>
11317 Nominal bitrate of the multiplex, in bits per second;
11318 currently it is meaningful only for MPEG[12].
11319 Sometimes raising it is necessary in order to avoid "buffer underflows".
11322 .B o=<key>=<value>[,<key>=<value>[,...]]
11323 Pass AVOptions to libavformat muxer.
11324 Note, a patch to make the o= unneeded and pass all unknown options through
11325 the AVOption system is welcome.
11326 A full list of AVOptions can be found in the FFmpeg manual.
11327 Note that some options may conflict with MEncoder options.
11328 .sp 1
11330 .I EXAMPLE:
11332 .RSs
11333 .PD 0
11334 .IPs o=packetsize=100
11335 .PD 1
11339 .B packetsize=<size>
11340 Size, expressed in bytes, of the unitary packet for the chosen format.
11341 When muxing to MPEG[12] implementations the default values are:
11342 2324 for [S]VCD, 2048 for all others formats.
11345 .B preload=<distance>
11346 Currently only meaningful for MPEG[12]: Initial distance,
11347 in seconds, between the reference timer of the output stream (SCR)
11348 and the decoding timestamp (DTS) for any stream present
11349 (demux to decode delay).
11353 .\" --------------------------------------------------------------------------
11354 .\" environment variables
11355 .\" --------------------------------------------------------------------------
11357 .SH ENVIRONMENT VARIABLES
11359 There are a number of environment variables that can be used to
11360 control the behavior of MPlayer and MEncoder.
11363 .B MPLAYER_CHARSET (also see \-msgcharset)
11364 Convert console messages to the specified charset (default: autodetect).
11365 A value of "noconv" means no conversion.
11368 .B MPLAYER_HOME
11369 Directory where MPlayer looks for user settings.
11372 .B MPLAYER_LOCALEDIR
11373 Directory where MPlayer looks for gettext translation files (if enabled).
11376 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
11377 Set the initial verbosity level across all message modules (default: 0).
11378 The resulting verbosity corresponds to that of \-msglevel 5 plus the
11379 value of MPLAYER_VERBOSE.
11381 .SS libaf:
11384 .B LADSPA_PATH
11385 If LADSPA_PATH is set, it searches for the specified file.
11386 If it is not set, you must supply a fully specified pathname.
11387 FIXME: This is also mentioned in the ladspa section.
11389 .SS libdvdcss:
11392 .B DVDCSS_CACHE
11393 Specify a directory in which to store title key values.
11394 This will speed up descrambling of DVDs which are in the cache.
11395 The DVDCSS_CACHE directory is created if it does not exist,
11396 and a subdirectory is created named after the DVD's title
11397 or manufacturing date.
11398 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
11399 the default value which is "${HOME}/.dvdcss/" under Unix and
11400 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
11401 The special value "off" disables caching.
11404 .B DVDCSS_METHOD
11405 Sets the authentication and decryption method that
11406 libdvdcss will use to read scrambled discs.
11407 Can be one of title, key or disc.
11408 .PD 0
11409 .RSs
11410 .IPs "key\ \ "
11411 is the default method.
11412 libdvdcss will use a set of calculated player keys to try and get the disc key.
11413 This can fail if the drive does not recognize any of the player keys.
11414 .IPs "disc\ "
11415 is a fallback method when key has failed.
11416 Instead of using player keys, libdvdcss will crack the disc key using
11417 a brute force algorithm.
11418 This process is CPU intensive and requires 64 MB of memory to store
11419 temporary data.
11420 .IPs title
11421 is the fallback when all other methods have failed.
11422 It does not rely on a key exchange with the DVD drive, but rather uses
11423 a crypto attack to guess the title key.
11424 On rare cases this may fail because there is not enough encrypted data
11425 on the disc to perform a statistical attack, but in the other hand it
11426 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
11427 the wrong region on an RPC2 drive.
11429 .PD 1
11432 .B DVDCSS_RAW_DEVICE
11433 Specify the raw device to use.
11434 Exact usage will depend on your operating system, the Linux
11435 utility to set up raw devices is raw(8) for instance.
11436 Please note that on most operating systems, using a raw device
11437 requires highly aligned buffers: Linux requires a 2048 bytes
11438 alignment (which is the size of a DVD sector).
11441 .B DVDCSS_VERBOSE
11442 Sets the libdvdcss verbosity level.
11443 .PD 0
11444 .RSs
11445 .IPs 0
11446 Outputs no messages at all.
11447 .IPs 1
11448 Outputs error messages to stderr.
11449 .IPs 2
11450 Outputs error messages and debug messages to stderr.
11452 .PD 1
11455 .B DVDREAD_NOKEYS
11456 Skip retrieving all keys on startup.
11457 Currently disabled.
11460 .B HOME
11461 FIXME: Document this.
11463 .SS libao2:
11466 .B AO_SUN_DISABLE_SAMPLE_TIMING
11467 FIXME: Document this.
11470 .B AUDIODEV
11471 FIXME: Document this.
11474 .B AUDIOSERVER
11475 Specifies the Network Audio System server to which the
11476 nas audio output driver should connect and the transport
11477 that should be used.
11478 If unset DISPLAY is used instead.
11479 The transport can be one of tcp and unix.
11480 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
11481 or [unix]:<instancenumber>.
11482 The NAS base port is 8000 and <instancenumber> is added to that.
11483 .sp 1
11485 .I EXAMPLES:
11487 .PD 0
11488 .RSs
11489 .IPs AUDIOSERVER=somehost:0
11490 Connect to NAS server on somehost using default port and transport.
11491 .IPs AUDIOSERVER=tcp/somehost:8000
11492 Connect to NAS server on somehost listening on TCP port 8000.
11493 .IPs AUDIOSERVER=(unix)?:0
11494 Connect to NAS server instance 0 on localhost using unix domain sockets.
11496 .PD 1
11499 .B DISPLAY
11500 FIXME: Document this.
11502 .SS vidix:
11505 .B VIDIX_CRT
11506 FIXME: Document this.
11509 .B VIDIXIVTVALPHA
11510 Set this to 'disable' in order to stop the VIDIX driver from controlling
11511 alphablending settings.
11512 You can then manipulate it yourself with 'ivtvfbctl'.
11514 .SS osdep:
11517 .B TERM
11518 FIXME: Document this.
11520 .SS libvo:
11523 .B DISPLAY
11524 FIXME: Document this.
11527 .B FRAMEBUFFER
11528 FIXME: Document this.
11531 .B HOME
11532 FIXME: Document this.
11534 .SS libmpdemux:
11537 .B HOME
11538 FIXME: Document this.
11541 .B HOMEPATH
11542 FIXME: Document this.
11545 .B http_proxy
11546 FIXME: Document this.
11549 .B LOGNAME
11550 FIXME: Document this.
11553 .B USERPROFILE
11554 FIXME: Document this.
11556 .SS GUI:
11559 .B CHARSET
11560 FIXME: Document this.
11563 .B DISPLAY
11564 FIXME: Document this.
11567 .B HOME
11568 FIXME: Document this.
11570 .SS libavformat:
11573 .B AUDIO_FLIP_LEFT
11574 FIXME: Document this.
11577 .B BKTR_DEV
11578 FIXME: Document this.
11581 .B BKTR_FORMAT
11582 FIXME: Document this.
11585 .B BKTR_FREQUENCY
11586 FIXME: Document this.
11589 .B http_proxy
11590 FIXME: Document this.
11593 .B no_proxy
11594 FIXME: Document this.
11598 .\" --------------------------------------------------------------------------
11599 .\" Files
11600 .\" --------------------------------------------------------------------------
11602 .SH FILES
11605 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
11606 MPlayer system-wide settings
11609 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
11610 MEncoder system-wide settings
11613 ~/.mplayer/\:config
11614 MPlayer user settings
11617 ~/.mplayer/\:mencoder.conf
11618 MEncoder user settings
11621 ~/.mplayer/\:input.conf
11622 input bindings (see '\-input keylist' for the full list)
11625 ~/.mplayer/\:font/
11626 font directory (There must be a font.desc file and files with .RAW extension.)
11629 ~/.mplayer/\:DVDkeys/
11630 cached CSS keys
11633 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
11634 in this order:
11636 /path/\:to/\:movie.sub
11638 ~/.mplayer/\:sub/\:movie.sub
11640 .PD 1
11643 .\" --------------------------------------------------------------------------
11644 .\" Examples
11645 .\" --------------------------------------------------------------------------
11647 .SH EXAMPLES OF MPLAYER USAGE
11650 .B Quickstart Blu\-ray playing:
11652 mplayer br:////path/to/disc
11653 mplayer br:// \-bluray\-device /path/to/disc
11657 .B Quickstart DVD playing:
11659 mplayer dvd://1
11663 .B Play in Japanese with English subtitles:
11665 mplayer dvd://1 \-alang ja \-slang en
11669 .B Play only chapters 5, 6, 7:
11671 mplayer dvd://1 \-chapter 5\-7
11675 .B Play only titles 5, 6, 7:
11677 mplayer dvd://5\-7
11681 .B Play a multiangle DVD:
11683 mplayer dvd://1 \-dvdangle 2
11687 .B Play from a different DVD device:
11689 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
11693 .B Play DVD video from a directory with VOB files:
11695 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
11699 .B Copy a DVD title to hard disk, saving to file "title1.vob":
11701 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
11705 .B Play a DVD with dvdnav from path /dev/sr1:
11707 mplayer dvdnav:////dev/sr1
11711 .B Stream from HTTP:
11713 mplayer http://mplayer.hq/example.avi
11717 .B Stream using RTSP:
11719 mplayer rtsp://server.example.com/streamName
11723 .B Convert subtitles to MPsub format:
11725 mplayer dummy.avi \-sub source.sub \-dumpmpsub
11729 .B Convert subtitles to MPsub format without watching the movie:
11731 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
11735 .B input from standard V4L:
11737 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
11741 .B Playback on Zoran cards (old style, deprecated):
11743 mplayer \-vo zr \-vf scale=352:288 file.avi
11747 .B Playback on Zoran cards (new style):
11749 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
11753 .B Play DTS-CD with passthrough:
11755 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
11758 You can also use \-afm hwac3 instead of \-ac hwdts.
11759 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
11760 If your external receiver supports decoding raw DTS streams,
11761 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
11764 .B Play a 6-channel AAC file with only two speakers:
11766 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
11769 You might want to play a bit with the pan values (e.g multiply with a value) to
11770 increase volume or avoid clipping.
11773 .B checkerboard invert with geq filter:
11775 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'
11779 .SH EXAMPLES OF MENCODER USAGE
11782 .B Encode DVD title #2, only selected chapters:
11784 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11788 .B Encode DVD title #2, resizing to 640x480:
11790 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11794 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
11796 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11800 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
11802 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
11806 .B The same, but with MJPEG compression:
11808 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
11812 .B Encode all *.jpg files in the current directory:
11814 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
11818 .B Encode from a tuner (specify a format with \-vf format):
11820 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
11824 .B Encode from a pipe:
11826 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
11830 .\" --------------------------------------------------------------------------
11831 .\" Bugs, authors, standard disclaimer
11832 .\" --------------------------------------------------------------------------
11834 .SH BUGS
11835 Don't panic.
11836 If you find one, report it to us, but please make sure you have read all
11837 of the documentation first.
11838 Also look out for smileys. :)
11839 Many bugs are the result of incorrect setup or parameter usage.
11840 The bug reporting section of the documentation
11841 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
11842 explains how to create useful bug reports.
11846 .SH AUTHORS
11847 MPlayer was initially written by Arpad Gereoffy.
11848 See the AUTHORS file for a list of some of the many other contributors.
11850 MPlayer is (C) 2000\-2009 The MPlayer Team
11852 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
11853 It is maintained by Diego Biurrun.
11854 Please send mails about it to the MPlayer-DOCS mailing list.
11855 Translation specific mails belong on the MPlayer-translations mailing list.
11856 .\" end of file