options: add "choice" option type, use for -pts-association-mode
[mplayer/glamo.git] / DOCS / man / en / mplayer.1
bloba6c103ce259b189cca7bc16f814e3d3d59cfde8f
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 \-identify
913 Shorthand for \-msglevel identify=4.
914 Show file parameters in an easily parseable format.
915 Also prints more detailed information about subtitle and audio
916 track languages and IDs.
917 In some cases you can get more information by using \-msglevel identify=6.
918 For example, for a DVD or Blu\-ray it will list the chapters and time length
919 of each title, as well as a disk ID.
920 Combine this with \-frames 0 to suppress all video output.
921 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
922 (hopefully) shellescapes the filenames.
925 .B \-idle (also see \-slave)
926 Makes MPlayer wait idly instead of quitting when there is no file to play.
927 Mostly useful in slave mode where MPlayer can be controlled
928 through input commands.
931 .B \-input <commands>
932 This option can be used to configure certain parts of the input system.
933 Paths are relative to ~/.mplayer/.
935 .I NOTE:
936 Autorepeat is currently only supported by joysticks.
937 .sp 1
938 Available commands are:
939 .sp 1
940 .PD 0
941 .RSs
942 .IPs conf=<filename>
943 Specify input configuration file other than the default
944 ~/\:.mplayer/\:input.conf.
945 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
946 .IPs ar-dev=<device>
947 Device to be used for Apple IR Remote (default is autodetected, Linux only).
948 .IPs ar-delay
949 Delay in milliseconds before we start to autorepeat a key (0 to disable).
950 .IPs ar-rate
951 Number of key presses to generate per second on autorepeat.
952 .IPs (no)default-bindings
953 Use the key bindings that MPlayer ships with by default.
954 .IPs keylist
955 Prints all keys that can be bound to commands.
956 .IPs cmdlist
957 Prints all commands that can be bound to keys.
958 .IPs js-dev
959 Specifies the joystick device to use (default: /dev/\:input/\:js0).
960 .IPs file=<filename>
961 Read commands from the given file.
962 Mostly useful with a FIFO.
964 .I NOTE:
965 When the given file is a FIFO MPlayer opens both ends so you can do
966 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
968 .PD 1
971 .B \-key\-fifo\-size <2\-65000>
972 Specify the size of the FIFO that buffers key events (default: 7).
973 A FIFO of size n can buffer (n\-1) events.
974 If it is too small some events may be lost
975 (leading to "stuck mouse buttons" and similar effects).
976 If it is too big, MPlayer may seem to hang while it
977 processes the buffered events.
978 To get the same behavior as before this option was introduced,
979 set it to 2 for Linux or 1024 for Windows.
982 .B \-lircconf <filename> (LIRC only)
983 Specifies a configuration file for LIRC (default: ~/.lircrc).
986 .B \-list\-properties
987 Print a list of the available properties.
990 .B \-loop <number>
991 Loops movie playback <number> times.
992 0 means forever.
995 .B \-menu (OSD menu only)
996 Turn on OSD menu support.
999 .B \-menu\-cfg <filename> (OSD menu only)
1000 Use an alternative menu.conf.
1003 .B \-menu\-chroot <path> (OSD menu only)
1004 Chroot the file selection menu to a specific location.
1005 .sp 1
1006 .I EXAMPLE:
1007 .PD 0
1008 .RSs
1009 .IPs "\-menu\-chroot /home"
1010 Will restrict the file selection menu to /\:home and downward (i.e.\& no
1011 access to / will be possible, but /home/user_name will).
1013 .PD 1
1016 .B \-menu\-keepdir (OSD menu only)
1017 File browser starts from the last known location instead of current directory.
1020 .B \-menu\-root <value> (OSD menu only)
1021 Specify the main menu.
1024 .B \-menu\-startup (OSD menu only)
1025 Display the main menu at MPlayer startup.
1028 .B \-mouse\-movements
1029 Permit MPlayer to receive pointer events reported by the video
1030 output driver.
1031 Necessary to select the buttons in DVD menus.
1032 Supported for X11-based VOs (x11, xv, xvmc, etc) and the gl, gl2, direct3d and
1033 corevideo VOs.
1036 .B \-noar
1037 Turns off AppleIR remote support.
1040 .B \-noconsolecontrols
1041 Prevent MPlayer from reading key events from standard input.
1042 Useful when reading data from standard input.
1043 This is automatically enabled when \- is found on the command line.
1044 There are situations where you have to set it manually, e.g.\&
1045 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1046 in a playlist or intend to read from stdin later on via the loadfile or
1047 loadlist slave commands.
1050 .B \-noinitial-audio-sync
1051 When starting a video file or after events such as seeking MPlayer will by
1052 default modify the audio stream to make it start from the same timestamp as
1053 video, by either inserting silence at the start or cutting away the first
1054 samples.
1055 This option disables that functionality and makes the player behave like
1056 older MPlayer versions did: video and audio are both started immediately
1057 even if their start timestamps differ, and then video timing is gradually
1058 adjusted if necessary to reach correct synchronization later.
1061 .B \-nojoystick
1062 Turns off joystick support.
1065 .B \-nolirc
1066 Turns off LIRC support.
1069 .B \-nomouseinput
1070 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1071 on this option).
1073 .B \-noordered\-chapters
1074 Disable support for Matroska ordered chapters.
1075 MPlayer will not load or search for video segments from other files,
1076 and will also ignore any chapter order specified for the main file.
1079 .B \-pts\-association\-mode auto|decode|sort
1080 Select the method used to determine which container packet timestamp
1081 corresponds to a particular output frame from the video decoder.
1082 Normally you shouldn't need to change this option.
1083 .PD 0
1084 .RSs
1085 .IPs auto
1086 Try to pick a working mode from the ones below automatically (default)
1087 .IPs decoder
1088 Use decoder reordering functionality.
1089 .IPs sort
1090 Maintain a buffer of unused pts values and use the lowest value for the frame.
1092 .PD 1
1095 .B \-rtc (RTC only)
1096 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1097 mechanism.
1098 This wakes up the process every 1/1024 seconds to check the current time.
1099 Useless with modern Linux kernels configured for desktop use as they already
1100 wake up the process with similar accuracy when using normal timed sleep.
1103 .B \-playing\-msg <string>
1104 Print out a string before starting playback.
1105 The following expansions are supported:
1106 .RSs
1107 .IPs ${NAME}
1108 Expand to the value of the property NAME.
1109 .IPs ?(NAME:TEXT)
1110 Expand TEXT only if the property NAME is available.
1111 .IPs ?(!NAME:TEXT)
1112 Expand TEXT only if the property NAME is not available.
1116 .B \-playlist <filename>
1117 Play files according to a playlist file (ASX, Winamp, SMIL, or
1118 one-file-per-line format).
1120 .I NOTE:
1121 This option is considered an entry so options found after it will apply
1122 only to the elements of this playlist.
1124 FIXME: This needs to be clarified and documented thoroughly.
1127 .B \-rtc\-device <device>
1128 Use the specified device for RTC timing.
1131 .B \-shuffle
1132 Play files in random order.
1135 .B \-slave (also see \-input)
1136 Switches on slave mode, in which MPlayer works as a backend for other programs.
1137 Instead of intercepting keyboard events, MPlayer will read commands separated
1138 by a newline (\\n) from stdin.
1140 .I NOTE:
1141 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1142 for their description.
1143 Also, this is not intended to disable other inputs, e.g.\& via the video window,
1144 use some other method like \-input nodefault\-bindings:conf=/dev/null for that.
1147 .B \-softsleep
1148 Time frames by repeatedly checking the current time instead of asking the
1149 kernel to wake up MPlayer at the correct time.
1150 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1151 Comes at the price of higher CPU consumption.
1154 .B \-sstep <sec>
1155 Skip <sec> seconds after every frame.
1156 The normal framerate of the movie is kept, so playback is accelerated.
1157 Since MPlayer can only seek to the next keyframe this may be inexact.
1161 .SH "DEMUXER/STREAM OPTIONS"
1164 .B \-a52drc <level>
1165 Select the Dynamic Range Compression level for AC-3 audio streams.
1166 <level> is a float value ranging from 0 to 1, where 0 means no compression
1167 and 1 (which is the default) means full compression (make loud passages more
1168 silent and vice versa).
1169 Values up to 2 are also accepted, but are purely experimental.
1170 This option only shows an effect if the AC-3 stream contains the required range
1171 compression information.
1174 .B \-aid <ID> (also see \-alang)
1175 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1176 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1177 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1178 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1179 (if present) with the chosen audio stream.
1182 .B \-ausid <ID> (also see \-alang)
1183 Select audio substream channel.
1184 Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled
1185 by the native demuxer (not by libavformat).
1186 The format type may not be correctly identified because of how this information
1187 (or lack thereof) is embedded in the stream, but it will demux correctly the
1188 audio streams when multiple substreams are present.
1189 MPlayer prints the available substream IDs when run with \-identify.
1192 .B \-alang <language code[,language code,...]> (also see \-aid)
1193 Specify a priority list of audio languages to use.
1194 Different container formats employ different language codes.
1195 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1196 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1197 MPlayer prints the available languages when run in verbose (\-v) mode.
1198 .sp 1
1199 .I EXAMPLE:
1200 .PD 0
1201 .RSs
1202 .IPs "mplayer dvd://1 \-alang hu,en"
1203 Chooses the Hungarian language track on a DVD and falls back on English if
1204 Hungarian is not available.
1205 .IPs "mplayer \-alang jpn example.mkv"
1206 Plays a Matroska file in Japanese.
1208 .PD 1
1211 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1212 Force audio demuxer type for \-audiofile.
1213 Use a '+' before the name to force it, this will skip some checks!
1214 Give the demuxer name as printed by \-audio\-demuxer help.
1215 For backward compatibility it also accepts the demuxer ID as defined in
1216 libmpdemux/\:demuxer.h.
1217 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1220 .B \-audiofile <filename>
1221 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1222 movie.
1225 .B \-audiofile\-cache <kBytes>
1226 Enables caching for the stream used by \-audiofile, using the specified
1227 amount of memory.
1230 .B \-reuse\-socket (udp:// only)
1231 Allows a socket to be reused by other processes as soon as it is closed.
1234 .B \-bandwidth <Bytes> (network only)
1235 Specify the maximum bandwidth for network streaming (for servers that are
1236 able to send content in different bitrates).
1237 Useful if you want to watch live streamed media behind a slow connection.
1238 With Real RTSP streaming, it is also used to set the maximum delivery
1239 bandwidth allowing faster cache filling and stream dumping.
1242 .B \-bluray\-angle <angle ID> (Blu\-ray only)
1243 Some Blu\-ray discs contain scenes that can be viewed from multiple angles.
1244 Here you can tell MPlayer which angles to use (default: 1).
1247 .B \-bluray\-chapter <chapter ID> (Blu\-ray only)
1248 Tells MPlayer which Blu\-ray chapter to start the current title from (default: 1).
1251 .B \-bluray\-device <path to disc> (Blu\-ray only)
1252 Specify the Blu\-ray disc location. Must be a directory with Blu\-ray structure.
1255 .B \-cache <kBytes>
1256 This option specifies how much memory (in kBytes) to use when precaching a
1257 file or URL.
1258 Especially useful on slow media.
1261 .B \-nocache
1262 Turns off caching.
1265 .B \-cache\-min <percentage>
1266 Playback will start when the cache has been filled up to <percentage>
1267 of the total.
1270 .B \-cache\-seek\-min <percentage>
1271 If a seek is to be made to a position within <percentage> of the cache size
1272 from the current position, MPlayer will wait for the cache to be filled to
1273 this position rather than performing a stream seek (default: 50).
1276 .B \-capture (MPlayer only)
1277 Allows capturing the primary stream (not additional audio tracks or other
1278 kind of streams) into the file specified by \-dumpfile or \"stream.dump\"
1279 by default.
1280 If this option is given, capturing can be started and stopped by pressing
1281 the key bound to this function (see section INTERACTIVE CONTROL).
1282 Same as for \-dumpstream, this will likely not produce usable results for
1283 anything else than MPEG streams.
1284 Note that, due to cache latencies, captured data may begin and end
1285 somewhat delayed compared to what you see displayed.
1288 .B \-cdda <option1:option2> (CDDA only)
1289 This option can be used to tune the CD Audio reading feature of MPlayer.
1290 .sp 1
1291 Available options are:
1292 .RSs
1293 .IPs speed=<value>
1294 Set CD spin speed.
1295 .IPs paranoia=<0\-2>
1296 Set paranoia level.
1297 Values other than 0 seem to break playback of anything but the first track.
1298 .RSss
1299 0: disable checking (default)
1301 1: overlap checking only
1303 2: full data correction and verification
1304 .REss
1305 .IPs generic-dev=<value>
1306 Use specified generic SCSI device.
1307 .IPs sector-size=<value>
1308 Set atomic read size.
1309 .IPs overlap=<value>
1310 Force minimum overlap search during verification to <value> sectors.
1311 .IPs toc-bias
1312 Assume that the beginning offset of track 1 as reported in the TOC will be
1313 addressed as LBA 0.
1314 Some Toshiba drives need this for getting track boundaries correct.
1315 .IPs toc-offset=<value>
1316 Add <value> sectors to the values reported when addressing tracks.
1317 May be negative.
1318 .IPs (no)skip
1319 (Never) accept imperfect data reconstruction.
1323 .B \-cdrom\-device <path to device>
1324 Specify the CD-ROM device (default: /dev/\:cdrom).
1327 .B \-channels <number> (also see \-af channels)
1328 Request the number of playback channels (default: 2).
1329 MPlayer asks the decoder to decode the audio into as many channels as
1330 specified.
1331 Then it is up to the decoder to fulfill the requirement.
1332 This is usually only important when playing videos with AC-3 audio (like DVDs).
1333 In that case liba52 does the decoding by default and correctly downmixes the
1334 audio into the requested number of channels.
1335 To directly control the number of output channels independently of how many
1336 channels are decoded, use the channels filter.
1338 .I NOTE:
1339 This option is honored by codecs (AC-3 only), filters (surround) and audio
1340 output drivers (OSS at least).
1341 .sp 1
1342 Available options are:
1343 .sp 1
1344 .PD 0
1345 .RSs
1346 .IPs 2
1347 stereo
1348 .IPs 4
1349 surround
1350 .IPs 6
1351 full 5.1
1352 .IPs 8
1353 full 7.1
1355 .PD 1
1358 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1359 Specify which chapter to start playing at.
1360 Optionally specify which chapter to end playing at (default: 1).
1363 .B \-edition <edition ID> (Matroska, MPlayer only)
1364 Specify the edition (set of chapters) to use, where 0 is the first. If set to
1365 -1 (the default), MPlayer will choose the first edition declared as a default,
1366 or if there is no default, the first edition defined.
1369 .B \-cookies (network only)
1370 Send cookies when making HTTP requests.
1373 .B \-cookies\-file <filename> (network only)
1374 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1375 and skip reading from default locations.
1376 The file is assumed to be in Netscape format.
1379 .B \-delay <sec>
1380 audio delay in seconds (positive or negative float value)
1382 Negative values delay the audio, and positive values delay the video.
1383 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1385 .I NOTE:
1386 When used with MEncoder, this is not guaranteed to work correctly
1387 with \-ovc copy; use \-audio\-delay instead.
1390 .B \-ignore\-start
1391 Ignore the specified starting time for streams in AVI files.
1392 In MPlayer, this nullifies stream delays in files encoded with
1393 the \-audio\-delay option.
1394 During encoding, this option prevents MEncoder from transferring
1395 original stream start times to the new file; the \-audio\-delay option is
1396 not affected.
1397 Note that MEncoder sometimes adjusts stream starting times
1398 automatically to compensate for anticipated decoding delays, so do not
1399 use this option for encoding without testing it first.
1402 .B \-demuxer <[+]name>
1403 Force demuxer type.
1404 Use a '+' before the name to force it, this will skip some checks!
1405 Give the demuxer name as printed by \-demuxer help.
1406 For backward compatibility it also accepts the demuxer ID as defined in
1407 libmpdemux/\:demuxer.h.
1410 .B \-dumpaudio (MPlayer only)
1411 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1412 in most other cases the resulting file will not be playable).
1413 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1414 on the command line only the last one will work.
1417 .B \-dumpfile <filename> (MPlayer only)
1418 Specify which file MPlayer should dump to.
1419 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream /
1420 \-capture.
1423 .B \-dumpstream (MPlayer only)
1424 Dumps the raw stream to ./stream.dump.
1425 Useful when ripping from DVD or network.
1426 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1427 on the command line only the last one will work.
1430 .B \-dumpvideo (MPlayer only)
1431 Dump raw compressed video stream to ./stream.dump (not very usable).
1432 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1433 on the command line only the last one will work.
1436 .B \-dvbin <options> (DVB only)
1437 Pass the following parameters to the DVB input module, in order to override
1438 the default ones:
1439 .sp 1
1440 .PD 0
1441 .RSs
1442 .IPs card=<1\-4>
1443 Specifies using card number 1\-4 (default: 1).
1444 .IPs file=<filename>
1445 Instructs MPlayer to read the channels list from <filename>.
1446 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1447 or ~/.mplayer/\:channels.conf as a last resort.
1448 .IPs timeout=<1\-30>
1449 Maximum number of seconds to wait when trying to tune a
1450 frequency before giving up (default: 30).
1452 .PD 1
1455 .B \-dvd\-device <path to device> (DVD only)
1456 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1457 You can also specify a directory that contains files previously copied directly
1458 from a DVD (with e.g.\& vobcopy).
1461 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1462 Try to limit DVD speed (default: 0, no change).
1463 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1464 10800KB/s.
1465 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1466 quiet and fast enough.
1467 MPlayer resets the speed to the drive default value on close.
1468 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1469 10800KB/s.
1471 .I NOTE:
1472 You need write access to the DVD device to change the speed.
1475 .B \-dvdangle <angle ID> (DVD only)
1476 Some DVD discs contain scenes that can be viewed from multiple angles.
1477 Here you can tell MPlayer which angles to use (default: 1).
1480 .B \-edl <filename>
1481 Enables edit decision list (EDL) actions during playback.
1482 Video will be skipped over and audio will be muted and unmuted according to
1483 the entries in the given file.
1484 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1485 on how to use this.
1488 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1489 Stop at given time or byte position.
1491 .I NOTE:
1492 Byte position is enabled only for MEncoder and will not be accurate, as it can
1493 only stop at a frame boundary.
1494 When used in conjunction with \-ss option, \-endpos time will shift forward by
1495 seconds specified with \-ss.
1496 .sp 1
1497 .I EXAMPLE:
1498 .PD 0
1499 .RSs
1500 .IPs "\-endpos 56"
1501 Stop at 56 seconds.
1502 .IPs "\-endpos 01:10:00"
1503 Stop at 1 hour 10 minutes.
1504 .IPs "\-ss 10 \-endpos 56"
1505 Stop at 1 minute 6 seconds.
1506 .IPs "\-endpos 100mb"
1507 Encode only 100 MB.
1509 .PD 1
1512 .B \-forceidx
1513 Force index rebuilding.
1514 Useful for files with broken index (A/V desync, etc).
1515 This will enable seeking in files where seeking was not possible.
1516 You can fix the index permanently with MEncoder (see the documentation).
1518 .I NOTE:
1519 This option only works if the underlying media supports seeking
1520 (i.e.\& not with stdin, pipe, etc).
1523 .B \-fps <float value>
1524 Override video framerate.
1525 Useful if the original value is wrong or missing.
1528 .B \-frames <number>
1529 Play/\:convert only first <number> frames, then quit.
1532 .B \-hr\-mp3\-seek (MP3 only)
1533 Hi-res MP3 seeking.
1534 Enabled when playing from an external MP3 file, as we need to seek
1535 to the very exact position to keep A/V sync.
1536 Can be slow especially when seeking backwards since it has to rewind
1537 to the beginning to find an exact frame position.
1540 .B \-idx (also see \-forceidx)
1541 Rebuilds index of files if no index was found, allowing seeking.
1542 Useful with broken/\:incomplete downloads, or badly created files.
1544 .I NOTE:
1545 This option only works if the underlying media supports seeking
1546 (i.e.\& not with stdin, pipe, etc).
1549 .B \-noidx
1550 Skip rebuilding index file.
1551 MEncoder skips writing the index with this option.
1554 .B \-ipv4\-only\-proxy (network only)
1555 Skip the proxy for IPv6 addresses.
1556 It will still be used for IPv4 connections.
1559 .B \-loadidx <index file>
1560 The file from which to read the video index data saved by \-saveidx.
1561 This index will be used for seeking, overriding any index data
1562 contained in the AVI itself.
1563 MPlayer will not prevent you from loading an index file generated
1564 from a different AVI, but this is sure to cause unfavorable results.
1566 .I NOTE:
1567 This option is obsolete now that MPlayer has OpenDML support.
1570 .B \-mc <seconds/frame>
1571 maximum A-V sync correction per frame (in seconds)
1573 \-mc 0 should always be combined with \-noskip for mencoder, otherwise
1574 it will almost certainly cause A-V desync.
1577 .B \-mf <option1:option2:...>
1578 Used when decoding from multiple PNG or JPEG files.
1579 .sp 1
1580 Available options are:
1581 .sp 1
1582 .PD 0
1583 .RSs
1584 .IPs w=<value>
1585 input file width (default: autodetect)
1586 .IPs h=<value>
1587 input file height (default: autodetect)
1588 .IPs fps=<value>
1589 output fps (default: 25)
1590 .IPs type=<value>
1591 input file type (available: jpeg, png, tga, sgi)
1593 .PD 1
1596 .B \-ni (AVI only)
1597 Force usage of non-interleaved AVI parser (fixes playback
1598 of some bad AVI files).
1601 .B \-nobps (AVI only)
1602 Do not use average byte/\:second value for A-V sync.
1603 Helps with some AVI files with broken header.
1606 .B \-noextbased
1607 Disables extension-based demuxer selection.
1608 By default, when the file type (demuxer) cannot be detected reliably
1609 (the file has no header or it is not reliable enough), the filename
1610 extension is used to select the demuxer.
1611 Always falls back on content-based demuxer selection.
1614 .B \-passwd <password> (also see \-user) (network only)
1615 Specify password for HTTP authentication.
1618 .B \-prefer\-ipv4 (network only)
1619 Use IPv4 on network connections.
1620 Falls back on IPv6 automatically.
1623 .B \-prefer\-ipv6 (IPv6 network only)
1624 Use IPv6 on network connections.
1625 Falls back on IPv4 automatically.
1628 .B \-psprobe <byte position>
1629 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1630 how many bytes in the stream you want MPlayer to scan in order to identify
1631 the video codec used.
1632 This option is needed to play EVO or VDR files containing H.264 streams.
1635 .B \-pvr <option1:option2:...> (PVR only)
1636 This option tunes various encoding properties of the PVR capture module.
1637 It has to be used with any hardware MPEG encoder based card supported by the
1638 V4L2 driver.
1639 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1640 cards are known as PVR capture cards.
1641 Be aware that only Linux 2.6.18 kernel
1642 and above is able to handle MPEG stream through V4L2 layer.
1643 For hardware capture of an MPEG stream and watching it with
1644 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1645 .sp 1
1646 Available options are:
1647 .RSs
1648 .IPs aspect=<0\-3>
1649 Specify input aspect ratio:
1650 .RSss
1651 0: 1:1
1653 1: 4:3 (default)
1655 2: 16:9
1657 3: 2.21:1
1658 .REss
1659 .IPs arate=<32000\-48000>
1660 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1661 and 48000 Hz).
1662 .IPs alayer=<1\-3>
1663 Specify MPEG audio layer encoding (default: 2).
1664 .IPs abitrate=<32\-448>
1665 Specify audio encoding bitrate in kbps (default: 384).
1666 .IPs amode=<value>
1667 Specify audio encoding mode.
1668 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1669 .IPs vbitrate=<value>
1670 Specify average video bitrate encoding in Mbps (default: 6).
1671 .IPs vmode=<value>
1672 Specify video encoding mode:
1673 .RSss
1674 vbr: Variable BitRate (default)
1676 cbr: Constant BitRate
1677 .REss
1678 .IPs vpeak=<value>
1679 Specify peak video bitrate encoding in Mbps
1680 (only useful for VBR encoding, default: 9.6).
1681 .IPs fmt=<value>
1682 Choose an MPEG format for encoding:
1683 .RSss
1684 ps:    MPEG-2 Program Stream (default)
1686 ts:    MPEG-2 Transport Stream
1688 mpeg1: MPEG-1 System Stream
1690 vcd:   Video CD compatible stream
1692 svcd:  Super Video CD compatible stream
1694 dvd:   DVD compatible stream
1695 .REss
1697 .PD 1
1700 .B \-radio <option1:option2:...> (radio only)
1701 These options set various parameters of the radio capture module.
1702 For listening to radio with MPlayer use 'radio://<frequency>'
1703 (if channels option is not given) or 'radio://<channel_number>'
1704 (if channels option is given) as a movie URL.
1705 You can see allowed frequency range by running MPlayer with '\-v'.
1706 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1707 If the capture keyword is not given you can listen to radio
1708 using the line-in cable only.
1709 Using capture to listen is not recommended due to synchronization
1710 problems, which makes this process uncomfortable.
1711 .sp 1
1712 Available options are:
1713 .RSs
1714 .IPs device=<value>
1715 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1716 .IPs driver=<value>
1717 Radio driver to use (default: v4l2 if available, otherwise v4l).
1718 Currently, v4l and v4l2 drivers are supported.
1719 .IPs volume=<0..100>
1720 sound volume for radio device (default 100)
1721 .IPs "freq_min=<value> (*BSD BT848 only)"
1722 minimum allowed frequency (default: 87.50)
1723 .IPs "freq_max=<value> (*BSD BT848 only)"
1724 maximum allowed frequency (default: 108.00)
1725 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1726 Set channel list.
1727 Use _ for spaces in names (or play with quoting ;-).
1728 The channel names will then be written using OSD and the slave commands
1729 radio_step_channel and radio_set_channel will be usable for
1730 a remote control (see LIRC).
1731 If given, number in movie URL will be treated as channel position in
1732 channel list.
1734 .I EXAMPLE:
1735 radio://1, radio://104.4, radio_set_channel 1
1736 .IPs "adevice=<value> (radio capture only)"
1737 Name of device to capture sound from.
1738 Without such a name capture will be disabled,
1739 even if the capture keyword appears in the URL.
1740 For ALSA devices use it in the form hw=<card>.<device>.
1741 If the device name contains a '=', the module will use
1742 ALSA to capture, otherwise OSS.
1743 .IPs "arate=<value> (radio capture only)"
1744 Rate in samples per second (default: 44100).
1746 .I NOTE:
1747 When using audio capture set also \-rawaudio rate=<value> option
1748 with the same value as arate.
1749 If you have problems with sound speed (runs too quickly), try to play
1750 with different rate values (e.g.\& 48000,44100,32000,...).
1751 .IPs "achannels=<value> (radio capture only)"
1752 Number of audio channels to capture.
1756 .B \-rawaudio <option1:option2:...>
1757 This option lets you play raw audio files.
1758 You have to use \-demuxer rawaudio as well.
1759 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1760 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1761 .sp 1
1762 Available options are:
1763 .sp 1
1764 .PD 0
1765 .RSs
1766 .IPs channels=<value>
1767 number of channels
1768 .IPs rate=<value>
1769 rate in samples per second
1770 .IPs samplesize=<value>
1771 sample size in bytes
1772 .IPs bitrate=<value>
1773 bitrate for rawaudio files
1774 .IPs format=<value>
1775 fourcc in hex
1777 .PD 1
1780 .B \-rawvideo <option1:option2:...>
1781 This option lets you play raw video files.
1782 You have to use \-demuxer rawvideo as well.
1783 .sp 1
1784 Available options are:
1785 .sp 1
1786 .PD 0
1787 .RSs
1788 .IPs fps=<value>
1789 rate in frames per second (default: 25.0)
1790 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1791 set standard image size
1792 .IPs w=<value>
1793 image width in pixels
1794 .IPs h=<value>
1795 image height in pixels
1796 .IPs i420|yv12|yuy2|y8
1797 set colorspace
1798 .IPs format=<value>
1799 colorspace (fourcc) in hex or string constant.
1800 Use \-rawvideo format=help for a list of possible strings.
1801 .IPs size=<value>
1802 frame size in Bytes
1803 .REss
1804 .sp 1
1806 .I EXAMPLE:
1808 .PD 0
1809 .RSs
1810 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1811 Play the famous "foreman" sample video.
1812 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1813 Play a raw YUV sample.
1815 .PD 1
1818 .B \-referrer <string> (network only)
1819 Specify a referrer path or URL for HTTP requests.
1822 .B \-rtsp\-port
1823 Used with 'rtsp://' URLs to force the client's port number.
1824 This option may be useful if you are behind a router and want to forward
1825 the RTSP stream from the server to a specific client.
1828 .B \-rtsp\-destination
1829 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1830 This option may be useful with some RTSP server which do not
1831 send RTP packets to the right interface.
1832 If the connection to the RTSP server fails, use \-v to see
1833 which IP address MPlayer tries to bind to and try to force
1834 it to one assigned to your computer instead.
1837 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1838 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1839 packets be streamed over TCP (using the same TCP connection as RTSP).
1840 This option may be useful if you have a broken internet connection that does
1841 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1844 .B \-rtsp\-stream\-over\-http (LIVE555 only)
1845 Used with 'http://' URLs to specify that the resulting incoming RTP and RTCP
1846 packets be streamed over HTTP.
1849 .B \-saveidx <filename>
1850 Force index rebuilding and dump the index to <filename>.
1851 Currently this only works with AVI files.
1853 .I NOTE:
1854 This option is obsolete now that MPlayer has OpenDML support.
1857 .B \-sb <byte position> (also see \-ss)
1858 Seek to byte position.
1859 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1862 .B \-speed <0.01\-100>
1863 Slow down or speed up playback by the factor given as parameter.
1864 Not guaranteed to work correctly with \-oac copy.
1867 .B \-srate <Hz>
1868 Select the output sample rate to be used
1869 (of course sound cards have limits on this).
1870 If the sample frequency selected is different from that
1871 of the current media, the resample or lavcresample audio filter will be inserted
1872 into the audio filter layer to compensate for the difference.
1873 The type of resampling can be controlled by the \-af\-adv option.
1874 The default is fast resampling that may cause distortion.
1877 .B \-ss <time> (also see \-sb)
1878 Seek to given time position.
1879 .sp 1
1880 .I EXAMPLE:
1881 .PD 0
1882 .RSs
1883 .IPs "\-ss 56"
1884 Seeks to 56 seconds.
1885 .IPs "\-ss 01:10:00"
1886 Seeks to 1 hour 10 min.
1888 .PD 1
1891 .B \-tskeepbroken
1892 Tells MPlayer not to discard TS packets reported as broken in the stream.
1893 Sometimes needed to play corrupted MPEG-TS files.
1896 .B \-tsprobe <byte position>
1897 When playing an MPEG-TS stream, this option lets you specify how many
1898 bytes in the stream you want MPlayer to search for the desired
1899 audio and video IDs.
1902 .B \-tsprog <1\-65534>
1903 When playing an MPEG-TS stream, you can specify with this option which
1904 program (if present) you want to play.
1905 Can be used with \-vid and \-aid.
1908 .B \-tv <option1:option2:...> (TV/\:PVR only)
1909 This option tunes various properties of the TV capture module.
1910 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1911 or even 'tv://<channel_name> (see option channels for channel_name below)
1912 as a movie URL.
1913 You can also use 'tv:///<input_id>' to start watching a
1914 movie from a composite or S-Video input (see option input for details).
1915 .sp 1
1916 Available options are:
1917 .RSs
1918 .IPs noaudio
1919 no sound
1920 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1921 If signal strength reported by device is less than this value,
1922 audio and video will be muted.
1923 In most cases automute=100 will be enough.
1924 Default is 0 (automute disabled).
1925 .IPs driver=<value>
1926 See \-tv driver=help for a list of compiled-in TV input drivers.
1927 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1928 .IPs device=<value>
1929 Specify TV device (default: /dev/\:video0).
1930 .I NOTE:
1931 For the bsdbt848 driver you can provide both bktr and tuner device
1932 names separating them with a comma, tuner after
1933 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1934 .IPs input=<value>
1935 Specify input (default: 0 (TV), see console output for available inputs).
1936 .IPs freq=<value>
1937 Specify the frequency to set the tuner to (e.g.\& 511.250).
1938 Not compatible with the channels parameter.
1939 .IPs outfmt=<value>
1940 Specify the output format of the tuner with a preset value supported by the
1941 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1942 arbitrary format given as hex value.
1943 Try outfmt=help for a list of all available formats.
1944 .IPs width=<value>
1945 output window width
1946 .IPs height=<value>
1947 output window height
1948 .IPs fps=<value>
1949 framerate at which to capture video (frames per second)
1950 .IPs buffersize=<value>
1951 maximum size of the capture buffer in megabytes (default: dynamical)
1952 .IPs norm=<value>
1953 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1954 For v4l2, see the console output for a list of all available norms,
1955 also see the normid option below.
1956 .IPs "normid=<value> (v4l2 only)"
1957 Sets the TV norm to the given numeric ID.
1958 The TV norm depends on the capture card.
1959 See the console output for a list of available TV norms.
1960 .IPs channel=<value>
1961 Set tuner to <value> channel.
1962 .IPs chanlist=<value>
1963 available: argentina, australia, china-bcast, europe-east, europe-west, france,
1964 ireland, italy, japan-bcast, japan-cable, newzealand, russia, southafrica,
1965 us-bcast, us-cable, us-cable-hrc
1966 .IPs channels=<chan>\-<name>[=<norm>],<chan>\-<name>[=<norm>],...
1967 Set names for channels.
1968 .I NOTE:
1969 If <chan> is an integer greater than 1000, it will be treated as frequency (in kHz)
1970 rather than channel name from frequency table.
1972 Use _ for spaces in names (or play with quoting ;-).
1973 The channel names will then be written using OSD, and the slave commands
1974 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1975 a remote control (see LIRC).
1976 Not compatible with the frequency parameter.
1978 .I NOTE:
1979 The channel number will then be the position in the 'channels' list,
1980 beginning with 1.
1982 .I EXAMPLE:
1983 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1984 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1985 Set the image equalizer on the card.
1986 .IPs audiorate=<value>
1987 Set audio capture bitrate.
1988 .IPs forceaudio
1989 Capture audio even if there are no audio sources reported by v4l.
1990 .IPs "alsa\ "
1991 Capture from ALSA.
1992 .IPs amode=<0\-3>
1993 Choose an audio mode:
1994 .RSss
1995 0: mono
1997 1: stereo
1999 2: language 1
2001 3: language 2
2002 .REss
2003 .IPs forcechan=<1\-2>
2004 By default, the count of recorded audio channels is determined automatically
2005 by querying the audio mode from the TV card.
2006 This option allows forcing stereo/\:mono recording regardless of the amode
2007 option and the values returned by v4l.
2008 This can be used for troubleshooting when the TV card is unable to report the
2009 current audio mode.
2010 .IPs adevice=<value>
2011 Set an audio device.
2012 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
2013 You must replace any ':' by a '.' in the hardware ID for ALSA.
2014 .IPs audioid=<value>
2015 Choose an audio output of the capture card, if it has more than one.
2016 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
2017 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
2018 These options set parameters of the mixer on the video capture card.
2019 They will have no effect, if your card does not have one.
2020 For v4l2 50 maps to the default value of the
2021 control, as reported by the driver.
2022 .IPs "gain=<0\-100> (v4l2)"
2023 Set gain control for video devices (usually webcams) to the desired
2024 value and switch off automatic control.
2025 A value of 0 enables automatic control.
2026 If this option is omitted, gain control will not be modified.
2027 .IPs immediatemode=<bool>
2028 A value of 0 means capture and buffer audio and video together
2029 (default for MEncoder).
2030 A value of 1 (default for MPlayer) means to do video capture only and let the
2031 audio go through a loopback cable from the TV card to the sound card.
2032 .IPs mjpeg
2033 Use hardware MJPEG compression (if the card supports it).
2034 When using this option, you do not need to specify the width and height
2035 of the output window, because MPlayer will determine it automatically
2036 from the decimation value (see below).
2037 .IPs decimation=<1|2|4>
2038 choose the size of the picture that will be compressed by hardware
2039 MJPEG compression:
2040 .RSss
2041 1: full size
2042     704x576    PAL
2043     704x480    NTSC
2045 2: medium size
2046     352x288    PAL
2047     352x240    NTSC
2049 4: small size
2050     176x144    PAL
2051     176x120    NTSC
2052 .REss
2053 .IPs quality=<0\-100>
2054 Choose the quality of the JPEG compression
2055 (< 60 recommended for full size).
2056 .IPs tdevice=<value>
2057 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
2058 .IPs tformat=<format>
2059 Specify TV teletext display format (default: 0):
2060 .RSss
2061 0: opaque
2063 1: transparent
2065 2: opaque with inverted colors
2067 3: transparent with inverted colors
2068 .REss
2069 .IPs tpage=<100\-899>
2070 Specify initial TV teletext page number (default: 100).
2071 .IPs tlang=<\-1\-127>
2072 Specify default teletext language code (default: 0), which will be used
2073 as primary language until a type 28 packet is received.
2074 Useful when the teletext system uses a non-latin character set, but language
2075 codes are not transmitted via teletext type 28 packets for some reason.
2076 To see a list of supported language codes set this option to \-1.
2077 .IPs "hidden_video_renderer (dshow only)"
2078 Terminate stream with video renderer instead of Null renderer (default: off).
2079 Will help if video freezes but audio does not.
2080 .I NOTE:
2081 May not work with \-vo directx and \-vf crop combination.
2082 .IPs "hidden_vp_renderer (dshow only)"
2083 Terminate VideoPort pin stream with video renderer
2084 instead of removing it from the graph (default: off).
2085 Useful if your card has a VideoPort pin and video is choppy.
2086 .I NOTE:
2087 May not work with \-vo directx and \-vf crop combination.
2088 .IPs "system_clock (dshow only)"
2089 Use the system clock as sync source instead of the default graph clock
2090 (usually the clock from one of the live sources in graph).
2091 .IPs "normalize_audio_chunks (dshow only)"
2092 Create audio chunks with a time length equal to
2093 video frame time length (default: off).
2094 Some audio cards create audio chunks about 0.5s in size, resulting in
2095 choppy video when using immediatemode=0.
2099 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
2100 Tune the TV channel scanner.
2101 MPlayer will also print value for "-tv channels=" option,
2102 including existing and just found channels.
2103 .sp 1
2104 Available suboptions are:
2105 .RSs
2106 .IPs autostart
2107 Begin channel scanning immediately after startup (default: disabled).
2108 .IPs period=<0.1\-2.0>
2109 Specify delay in seconds before switching to next channel (default: 0.5).
2110 Lower values will cause faster scanning, but can detect
2111 inactive TV channels as active.
2112 .IPs threshold=<1\-100>
2113 Threshold value for the signal strength (in percent), as reported
2114 by the device (default: 50).
2115 A signal strength higher than this value will indicate that the
2116 currently scanning channel is active.
2120 .B \-user <username> (also see \-passwd) (network only)
2121 Specify username for HTTP authentication.
2124 .B \-user\-agent <string>
2125 Use <string> as user agent for HTTP streaming.
2128 .B \-vid <ID>
2129 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2130 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
2131 (if present) with the chosen video stream.
2134 .B \-vivo <suboption> (DEBUG CODE)
2135 Force audio parameters for the VIVO demuxer (for debugging purposes).
2136 FIXME: Document this.
2140 .SH "OSD/SUBTITLE OPTIONS"
2141 .I NOTE:
2142 Also see \-vf expand.
2145 .B \-ass (FreeType only)
2146 Turn on SSA/ASS subtitle rendering.
2147 With this option, libass will be used for SSA/ASS
2148 external subtitles and Matroska tracks.
2150 .I NOTE:
2151 Unlike normal OSD, libass uses fontconfig by default. To disable it, use
2152 \-nofontconfig.
2155 .B \-ass\-border\-color <value>
2156 Sets the border (outline) color for text subtitles.
2157 The color format is RRGGBBAA.
2160 .B \-ass\-bottom\-margin <value>
2161 Adds a black band at the bottom of the frame.
2162 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2165 .B \-ass\-color <value>
2166 Sets the color for text subtitles.
2167 The color format is RRGGBBAA.
2170 .B \-ass\-font\-scale <value>
2171 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2174 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2175 Override some style or script info parameters.
2177 .I EXAMPLE:
2178 .PD 0
2179 .RSs
2180 \-ass\-force\-style FontName=Arial,Default.Bold=1
2182 \-ass\-force\-style PlayResY=768
2184 .PD 1
2187 .B \-ass\-hinting <type>
2188 Set hinting type.
2189 <type> can be:
2190 .PD 0
2191 .RSs
2192 .IPs 0
2193 no hinting
2194 .IPs 1
2195 FreeType autohinter, light mode
2196 .IPs 2
2197 FreeType autohinter, normal mode
2198 .IPs 3
2199 font native hinter
2200 .IPs "0-3 + 4"
2201 The same, but hinting will only be performed if the OSD is rendered at
2202 screen resolution and will therefore not be scaled.
2204 .RSs
2205 The default value is 5 (use light hinter for unscaled OSD and no hinting otherwise).
2207 .PD 1
2210 .B \-ass\-line\-spacing <value>
2211 Set line spacing value for SSA/ASS renderer.
2214 .B \-ass\-styles <filename>
2215 Load all SSA/ASS styles found in the specified file and use them for
2216 rendering text subtitles.
2217 The syntax of the file is exactly like the
2218 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2221 .B \-ass\-top\-margin <value>
2222 Adds a black band at the top of the frame.
2223 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2226 .B \-ass\-use\-margins
2227 Enables placing toptitles and subtitles in black borders when they
2228 are available.
2231 .B \-dumpjacosub (MPlayer only)
2232 Convert the given subtitle (specified with the \-sub option) to the time-based
2233 JACOsub subtitle format.
2234 Creates a dumpsub.js file in the current directory.
2237 .B \-dumpmicrodvdsub (MPlayer only)
2238 Convert the given subtitle (specified with the \-sub option) to the
2239 MicroDVD subtitle format.
2240 Creates a dumpsub.sub file in the current directory.
2243 .B \-dumpmpsub (MPlayer only)
2244 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2245 subtitle format, MPsub.
2246 Creates a dump.mpsub file in the current directory.
2249 .B \-dumpsami (MPlayer only)
2250 Convert the given subtitle (specified with the \-sub option) to the time-based
2251 SAMI subtitle format.
2252 Creates a dumpsub.smi file in the current directory.
2255 .B \-dumpsrtsub (MPlayer only)
2256 Convert the given subtitle (specified with the \-sub option) to the time-based
2257 SubViewer (SRT) subtitle format.
2258 Creates a dumpsub.srt file in the current directory.
2260 .I NOTE:
2261 Some broken hardware players choke on SRT subtitle files with Unix
2262 line endings.
2263 If you are unlucky enough to have such a box, pass your subtitle
2264 files through unix2dos or a similar program to replace Unix line
2265 endings with DOS/Windows line endings.
2268 .B \-dumpsub (MPlayer only) (BETA CODE)
2269 Dumps the subtitle substream from VOB streams.
2270 Also see the \-dump*sub and \-vobsubout* options.
2273 .B \-noembeddedfonts
2274 Disables use of fonts embedded in Matroska containers and ASS scripts (default: enabled).
2275 These fonts can be used for SSA/ASS subtitle
2276 rendering (\-ass option).
2279 .B \-ffactor <number>
2280 Resample the font alphamap.
2281 Can be:
2282 .PD 0
2283 .RSs
2284 .IPs 0
2285 plain white fonts
2286 .IPs 0.75
2287 very narrow black outline (default)
2288 .IPs 1
2289 narrow black outline
2290 .IPs 10
2291 bold black outline
2293 .PD 1
2296 .B \-flip\-hebrew (FriBiDi only)
2297 Turns on flipping subtitles using FriBiDi.
2300 .B \-noflip\-hebrew\-commas
2301 Change FriBiDi's assumptions about the placements of commas in subtitles.
2302 Use this if commas in subtitles are shown at the start of a sentence
2303 instead of at the end.
2306 .B \-font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
2307 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2308 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2309 ~/.mplayer/\:subfont.ttf).
2311 .I NOTE:
2312 With FreeType, this option determines the path to the text font file.
2313 With Fontconfig, this option determines the Fontconfig font pattern.
2314 .sp 1
2315 .I EXAMPLE:
2316 .PD 0
2317 .RSs
2318 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2320 \-font ~/\:.mplayer/\:arialuni.ttf
2322 \-font 'Bitstream Vera Sans'
2324 \-font 'Bitstream Vera Sans:style=Bold'
2326 .PD 1
2329 .B \-fontconfig (fontconfig only)
2330 Enables the usage of fontconfig managed fonts.
2332 .I NOTE:
2333 By default fontconfig is used for libass-rendered subtitles and not used for
2334 OSD. With \-fontconfig it is used for both libass and OSD, with \-nofontconfig
2335 it is not used at all.
2338 .B \-forcedsubsonly
2339 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2340 \-slang.
2343 .B \-fribidi\-charset <charset name> (FriBiDi only)
2344 Specifies the character set that will be passed to FriBiDi when
2345 decoding non-UTF-8 subtitles (default: ISO8859-8).
2348 .B \-ifo <VOBsub IFO file>
2349 Indicate the file that will be used to load palette and frame size for VOBsub
2350 subtitles.
2353 .B \-noautosub
2354 Turns off automatic subtitle file loading.
2357 .B \-osd\-duration <time>
2358 Set the duration of the OSD messages in ms (default: 1000).
2361 .B \-osdlevel <0\-3> (MPlayer only)
2362 Specifies which mode the OSD should start in.
2363 .PD 0
2364 .RSs
2365 .IPs 0
2366 subtitles only
2367 .IPs 1
2368 volume + seek (default)
2369 .IPs 2
2370 volume + seek + timer + percentage
2371 .IPs 3
2372 volume + seek + timer + percentage + total time
2374 .PD 1
2377 .B \-overlapsub
2378 Allows the next subtitle to be displayed while the current one is
2379 still visible (default is to enable the support only for specific
2380 formats).
2383 .B \-sid <ID> (also see \-slang, \-vobsubid)
2384 Display the subtitle stream specified by <ID> (0\-31).
2385 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2386 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2389 .B \-nosub
2390 Disables any otherwise auto-selected internal subtitles (as e.g.\& the Matroska/mkv
2391 demuxer supports).
2392 Use \-noautosub to disable the loading of external subtitle files.
2395 .B \-slang <language code[,language code,...]> (also see \-sid)
2396 Specify a priority list of subtitle languages to use.
2397 Different container formats employ different language codes.
2398 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2399 three letter language codes while OGM uses a free-form identifier.
2400 MPlayer prints the available languages when run in verbose (\-v) mode.
2401 .sp 1
2402 .I EXAMPLE:
2403 .PD 0
2404 .RSs
2405 .IPs "mplayer dvd://1 \-slang hu,en"
2406 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2407 Hungarian is not available.
2408 .IPs "mplayer \-slang jpn example.mkv"
2409 Plays a Matroska file with Japanese subtitles.
2411 .PD 1
2414 .B \-spuaa <mode>
2415 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2416 A value of 16 may be added to <mode> in order to force scaling even
2417 when original and scaled frame size already match.
2418 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2419 Available modes are:
2420 .PD 0
2421 .RSs
2422 .IPs 0
2423 none (fastest, very ugly)
2424 .IPs 1
2425 approximate (broken?)
2426 .IPs 2
2427 full (slow)
2428 .IPs 3
2429 bilinear (default, fast and not too bad)
2430 .IPs 4
2431 uses swscaler gaussian blur (looks very good)
2433 .PD 1
2436 .B \-spualign <\-1\-2>
2437 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2438 .PD 0
2439 .RSs
2440 .IPs "\-1"
2441 original position
2442 .IPs " 0"
2443 Align at top (original behavior, default).
2444 .IPs " 1"
2445 Align at center.
2446 .IPs " 2"
2447 Align at bottom.
2449 .PD 1
2452 .B \-spugauss <0.0\-3.0>
2453 Variance parameter of gaussian used by \-spuaa 4.
2454 Higher means more blur (default: 1.0).
2457 .B \-sub <subtitlefile1,subtitlefile2,...>
2458 Use/\:display these subtitle files.
2459 Only one file can be displayed at the same time.
2462 .B \-sub\-bg\-alpha <0\-255>
2463 Specify the alpha channel value for subtitles and OSD backgrounds.
2464 Big values mean more transparency.
2465 0 means completely transparent.
2468 .B \-sub\-bg\-color <0\-255>
2469 Specify the color value for subtitles and OSD backgrounds.
2470 Currently subtitles are grayscale so this value is equivalent to the
2471 intensity of the color.
2472 255 means white and 0 black.
2475 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2476 Force subtitle demuxer type for \-subfile.
2477 Use a '+' before the name to force it, this will skip some checks!
2478 Give the demuxer name as printed by \-sub\-demuxer help.
2479 For backward compatibility it also accepts the demuxer ID as defined in
2480 subreader.h.
2483 .B \-sub\-fuzziness <mode>
2484 Adjust matching fuzziness when searching for subtitles:
2485 .PD 0
2486 .RSs
2487 .IPs 0
2488 exact match
2489 .IPs 1
2490 Load all subs containing movie name.
2491 .IPs 2
2492 Load all subs in the current directory.
2494 .PD 1
2497 .B \-sub\-no\-text\-pp
2498 Disables any kind of text post processing done after loading the subtitles.
2499 Used for debug purposes.
2502 .B \-subalign <0\-2>
2503 Specify which edge of the subtitles should be aligned at the height
2504 given by \-subpos.
2505 .PD 0
2506 .RSs
2507 .IPs 0
2508 Align subtitle top edge (original behavior).
2509 .IPs 1
2510 Align subtitle center.
2511 .IPs 2
2512 Align subtitle bottom edge (default).
2514 .PD 1
2517 .B "\-subcc <1\-4>\ "
2518 Display DVD Closed Caption (CC) subtitles from the specified channel.
2519 These are
2520 .B not
2521 the VOB subtitles, these are special ASCII subtitles for the
2522 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2523 CC subtitles have not been spotted on DVDs from other regions so far.
2526 .B \-subcp <codepage> (iconv only)
2527 If your system supports iconv(3), you can use this option to
2528 specify the subtitle codepage.
2529 .sp 1
2530 .I EXAMPLE:
2531 .PD 0
2532 .RSs
2533 \-subcp latin2
2535 \-subcp cp1250
2537 .PD 1
2540 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2541 You can specify your language using a two letter language code to
2542 make ENCA detect the codepage automatically.
2543 If unsure, enter anything and watch mplayer \-v output for available
2544 languages.
2545 Fallback codepage specifies the codepage to use, when autodetection fails.
2546 .sp 1
2547 .I EXAMPLE:
2548 .PD 0
2549 .RSs
2550 .IPs "\-subcp enca:cs:latin2"
2551 Guess the encoding, assuming the subtitles are Czech, fall back on
2552 latin 2, if the detection fails.
2553 .IPs "\-subcp enca:pl:cp1250"
2554 Guess the encoding for Polish, fall back on cp1250.
2556 .PD 1
2559 .B \-subdelay <sec>
2560 Delays subtitles by <sec> seconds.
2561 Can be negative.
2564 .B \-subfile <filename> (BETA CODE)
2565 Currently useless.
2566 Same as \-audiofile, but for subtitle streams (OggDS?).
2569 .B \-subfont <path to font (FreeType), font pattern (Fontconfig)> (FreeType only)
2570 Sets the subtitle font (see \-font).
2571 If no \-subfont is given, \-font is used.
2574 .B \-subfont\-autoscale <0\-3> (FreeType only)
2575 Sets the autoscale mode.
2577 .I NOTE:
2578 0 means that text scale and OSD scale are font heights in points.
2579 .sp 1
2580 The mode can be:
2581 .sp 1
2582 .PD 0
2583 .RSs
2584 .IPs 0
2585 no autoscale
2586 .IPs 1
2587 proportional to movie height
2588 .IPs 2
2589 proportional to movie width
2590 .IPs 3
2591 proportional to movie diagonal (default)
2593 .PD 1
2596 .B \-subfont\-blur <0\-8> (FreeType only)
2597 Sets the font blur radius (default: 2).
2600 .B \-subfont\-encoding <value> (FreeType only)
2601 Sets the font encoding.
2602 When set to 'unicode', all the glyphs from the font file will be rendered and
2603 unicode will be used (default: unicode).
2606 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2607 Sets the autoscale coefficient of the OSD elements (default: 6).
2610 .B \-subfont\-outline <0\-8> (FreeType only)
2611 Sets the font outline thickness (default: 2).
2614 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2615 Sets the subtitle text autoscale coefficient as percentage of the
2616 screen size (default: 5).
2619 .B \-subfps <rate>
2620 Specify the framerate of the subtitle file (default: movie fps).
2622 .I NOTE:
2623 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2624 slows them down for time-based ones.
2627 .B \-subpos <0\-100> (useful with \-vf expand)
2628 Specify the position of subtitles on the screen.
2629 The value is the vertical position of the subtitle in % of the screen height.
2632 .B \-subwidth <10\-100>
2633 Specify the maximum width of subtitles on the screen.
2634 Useful for TV-out.
2635 The value is the width of the subtitle in % of the screen width.
2638 .B \-noterm\-osd
2639 Disable the display of OSD messages on the console when no video output is
2640 available.
2643 .B \-term\-osd\-esc <escape sequence>
2644 Specify the escape sequence to use before writing an OSD message on the
2645 console.
2646 The escape sequence should move the pointer to the beginning of the line
2647 used for the OSD and clear it (default: ^[[A\\r^[[K).
2650 .B \-unicode
2651 Tells MPlayer to handle the subtitle file as unicode.
2654 .B \-unrarexec <path to unrar executable> (not supported on MingW)
2655 Specify the path to the unrar executable so MPlayer can use it to access
2656 rar-compressed VOBsub files (default: not set, so the feature is off).
2657 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2660 .B "\-utf8 \ \ "
2661 Tells MPlayer to handle the subtitle file as UTF-8.
2664 .B \-vobsub <VOBsub file without extension>
2665 Specify a VOBsub file to use for subtitles.
2666 Has to be the full pathname without extension, i.e.\& without
2667 the '.idx', '.ifo' or '.sub'.
2670 .B \-vobsubid <0\-31>
2671 Specify the VOBsub subtitle ID.
2675 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2678 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2679 Override audio driver/\:card buffer size detection.
2682 .B \-format <format> (also see the format audio filter)
2683 Select the sample format used for output from the audio filter
2684 layer to the sound card.
2685 The values that <format> can adopt are listed below in the
2686 description of the format audio filter.
2689 .B \-gapless\-audio
2690 Try to play consecutive audio files with no silence or disruption
2691 at the point of file change.
2692 This feature is implemented in a simple manner and relies on audio output
2693 device buffering to continue playback while moving from one file to another.
2694 If playback of the new file starts slowly, for example because it's played from
2695 a remote network location or because you have specified cache settings that
2696 require time for the initial cache fill, then the buffered audio may run out
2697 before playback of the new file can start.
2700 .B \-mixer <device>
2701 Use a mixer device different from the default /dev/\:mixer.
2702 For ALSA this is the mixer name.
2705 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2706 This option will tell MPlayer to use a different channel for controlling
2707 volume than the default PCM.
2708 Options for OSS include
2709 .B vol, pcm, line.
2710 For a complete list of options look for SOUND_DEVICE_NAMES in
2711 /usr/\:include/\:linux/\:soundcard.h.
2712 For ALSA you can use the names e.g.\& alsamixer displays, like
2713 .B Master, Line, PCM.
2715 .I NOTE:
2716 ALSA mixer channel names followed by a number must be specified in the
2717 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2718 be converted to
2719 .BR PCM,1 .
2722 .B \-softvol
2723 Force the use of the software mixer, instead of using the sound card
2724 mixer.
2727 .B \-softvol\-max <10.0\-10000.0>
2728 Set the maximum amplification level in percent (default: 110).
2729 A value of 200 will allow you to adjust the volume up to a maximum of
2730 double the current level.
2731 With values below 100 the initial volume (which is 100%) will be above
2732 the maximum, which e.g.\& the OSD cannot display correctly.
2735 .B \-volstep <0\-100>
2736 Set the step size of mixer volume changes in percent of the whole range
2737 (default: 3).
2740 .B \-volume <-1\-100> (also see \-af volume)
2741 Set the startup volume in the mixer, either hardware or software (if
2742 used with \-softvol).
2743 A value of -1 (the default) will not change the volume.
2747 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2748 Audio output drivers are interfaces to different audio output facilities.
2749 The syntax is:
2752 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2753 Specify a priority list of audio output drivers to be used.
2755 If the list has a trailing ',' MPlayer will fall back on drivers not
2756 contained in the list.
2757 Suboptions are optional and can mostly be omitted.
2759 .I NOTE:
2760 See \-ao help for a list of compiled-in audio output drivers.
2761 .sp 1
2762 .I EXAMPLE:
2763 .PD 0
2764 .RSs
2765 .IPs "\-ao alsa,oss,"
2766 Try the ALSA driver, then the OSS driver, then others.
2767 .IPs "\-ao alsa:noblock:device=hw=0.3"
2768 Sets noblock-mode and the device-name as first card, fourth device.
2770 .PD 1
2771 .sp 1
2772 Available audio output drivers are:
2775 .B "alsa\ \ \ "
2776 ALSA 0.9/1.x audio output driver
2777 .PD 0
2778 .RSs
2779 .IPs noblock
2780 Sets noblock-mode.
2781 .IPs device=<device>
2782 Sets the device name.
2783 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2784 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2785 you really know how to set it correctly.
2787 .PD 1
2790 .B "alsa5\ \ "
2791 ALSA 0.5 audio output driver
2794 .B "oss\ \ \ \ "
2795 OSS audio output driver
2796 .PD 0
2797 .RSs
2798 .IPs <dsp-device>
2799 Sets the audio output device (default: /dev/\:dsp).
2800 .IPs <mixer-device>
2801 Sets the audio mixer device (default: /dev/\:mixer).
2802 .IPs <mixer-channel>
2803 Sets the audio mixer channel (default: pcm).
2805 .PD 1
2808 .B sdl (SDL only)
2809 highly platform independent SDL (Simple Directmedia Layer) library
2810 audio output driver
2811 .PD 0
2812 .RSs
2813 .IPs <driver>
2814 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2816 .PD 1
2819 .B "arts\ \ \ "
2820 audio output through the aRts daemon
2823 .B "esd\ \ \ \ "
2824 audio output through the ESD daemon
2825 .PD 0
2826 .RSs
2827 .IPs <server>
2828 Explicitly choose the ESD server to use (default: localhost).
2830 .PD 1
2833 .B "jack\ \ \ \ "
2834 audio output through JACK (Jack Audio Connection Kit)
2835 .PD 0
2836 .RSs
2837 .IPs port=<name>
2838 Connects to the ports with the given name (default: physical ports).
2839 .IPs name=<client name>
2840 Client name that is passed to JACK (default: MPlayer [<PID>]).
2841 Useful if you want to have certain connections established automatically.
2842 .IPs (no)estimate
2843 Estimate the audio delay, supposed to make the video playback smoother
2844 (default: enabled).
2845 .IPs (no)autostart
2846 Automatically start jackd if necessary (default: disabled).
2847 Note that this seems unreliable and will spam stdout with server messages.
2849 .PD 1
2852 .B "nas\ \ \ \ "
2853 audio output through NAS
2856 .B coreaudio (Mac OS X only)
2857 native Mac OS X audio output driver
2858 .PD 0
2859 .RSs
2860 .IPs device_id=<id>
2861 ID of output device to use (0 = default device)
2862 .IPs help
2863 List all available output devices with their IDs.
2865 .PD 1
2868 .B "openal\ "
2869 Experimental OpenAL audio output driver
2872 .B "pulse\ \ "
2873 PulseAudio audio output driver
2874 .PD 0
2875 .RSs
2876 .IPs "[<host>][:<output sink>]"
2877 Specify the host and optionally output sink to use.
2878 An empty <host> string uses a local connection, "localhost"
2879 uses network transfer (most likely not what you want).
2881 .PD 1
2884 .B sgi (SGI only)
2885 native SGI audio output driver
2886 .PD 0
2887 .RSs
2888 .IPs "<output device name>"
2889 Explicitly choose the output device/\:interface to use
2890 (default: system-wide default).
2891 For example, 'Analog Out' or 'Digital Out'.
2893 .PD 1
2896 .B sun (Sun only)
2897 native Sun audio output driver
2898 .PD 0
2899 .RSs
2900 .IPs <device>
2901 Explicitly choose the audio device to use (default: /dev/\:audio).
2903 .PD 1
2906 .B win32 (Windows only)
2907 native Windows waveout audio output driver
2910 .B dsound (Windows only)
2911 DirectX DirectSound audio output driver
2912 .PD 0
2913 .RSs
2914 .IPs device=<devicenum>
2915 Sets the device number to use.
2916 Playing a file with \-v will show a list of available devices.
2918 .PD 1
2921 .B kai (OS/2 only)
2922 OS/2 KAI audio output driver
2923 .PD 0
2924 .RSs
2925 .IPs uniaud
2926 Force UNIAUD mode.
2927 .IPs dart
2928 Force DART mode.
2929 .IPs (no)share
2930 Open audio in shareable or exclusive mode.
2931 .IPs bufsize=<size>
2932 Set buffer size to <size> in samples (default: 2048).
2934 .PD 1
2937 .B dart (OS/2 only)
2938 OS/2 DART audio output driver
2939 .PD 0
2940 .RSs
2941 .IPs (no)share
2942 Open DART in shareable or exclusive mode.
2943 .IPs bufsize=<size>
2944 Set buffer size to <size> in samples (default: 2048).
2946 .PD 1
2949 .B dxr2 (also see \-dxr2) (DXR2 only)
2950 Creative DXR2 specific output driver
2953 .B ivtv (IVTV only)
2954 IVTV specific MPEG audio output driver.
2955 Works with \-ac hwmpa only.
2958 .B v4l2 (requires Linux 2.6.22+ kernel)
2959 Audio output driver for V4L2 cards with hardware MPEG decoder.
2962 .B mpegpes (DVB only)
2963 Audio output driver for DVB cards that writes the output to an MPEG-PES
2964 file if no DVB card is installed.
2965 .PD 0
2966 .RSs
2967 .IPs card=<1\-4>
2968 DVB card to use if more than one card is present.
2969 If not specified MPlayer will search the first usable card.
2970 .IPs file=<filename>
2971 output filename
2973 .PD 1
2976 .B "null\ \ \ "
2977 Produces no audio output but maintains video playback speed.
2978 Use \-nosound for benchmarking.
2981 .B "pcm\ \ \ \ "
2982 raw PCM/wave file writer audio output
2983 .PD 0
2984 .RSs
2985 .IPs (no)waveheader
2986 Include or do not include the wave header (default: included).
2987 When not included, raw PCM will be generated.
2988 .IPs file=<filename>
2989 Write the sound to <filename> instead of the default
2990 audiodump.wav.
2991 If nowaveheader is specified, the default is audiodump.pcm.
2992 .IPs "fast\ "
2993 Try to dump faster than realtime.
2994 Make sure the output does not get truncated (usually with
2995 "Too many video packets in buffer" message).
2996 It is normal that you get a "Your system is too SLOW to play this!" message.
2998 .PD 1
3001 .B "plugin\ \ "
3002 plugin audio output driver
3006 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
3009 .B \-adapter <value>
3010 Set the graphics card that will receive the image.
3011 You can get a list of available cards when you run this option with \-v.
3012 Currently only works with the directx video output driver.
3015 .B \-bpp <depth>
3016 Override the autodetected color depth.
3017 Only supported by the fbdev, dga, svga, vesa video output drivers.
3020 .B \-border
3021 Play movie with window border and decorations.
3022 Since this is on by default, use \-noborder to disable the standard window
3023 decorations.
3026 .B \-brightness <\-100\-100>
3027 Adjust the brightness of the video signal (default: 0).
3028 Not supported by all video output drivers.
3031 .B \-contrast <\-100\-100>
3032 Adjust the contrast of the video signal (default: 0).
3033 Not supported by all video output drivers.
3036 .B \-display <name> (X11 only)
3037 Specify the hostname and display number of the X server you want to display
3039 .sp 1
3040 .I EXAMPLE:
3041 .PD 0
3042 .RSs
3043 \-display xtest.localdomain:0
3045 .PD 1
3048 .B "\-dr \ \ \ "
3049 Turns on direct rendering (not supported by all codecs and video outputs)
3051 .I WARNING:
3052 May cause OSD/SUB corruption!
3055 .B \-dxr2 <option1:option2:...>
3056 This option is used to control the dxr2 video output driver.
3057 .RSs
3058 .IPs ar-mode=<value>
3059 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
3060 .IPs iec958-encoded
3061 Set iec958 output mode to encoded.
3062 .IPs iec958-decoded
3063 Set iec958 output mode to decoded (default).
3064 .IPs macrovision=<value>
3065 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
3066 3 = agc 4 colorstripe)
3067 .IPs "mute\ "
3068 mute sound output
3069 .IPs unmute
3070 unmute sound output
3071 .IPs ucode=<value>
3072 path to the microcode
3075 .sp 1
3076 .I TV output
3078 .RSs
3079 .IPs 75ire
3080 enable 7.5 IRE output mode
3081 .IPs no75ire
3082 disable 7.5 IRE output mode (default)
3083 .IPs "bw\ \ \ "
3084 b/w TV output
3085 .IPs color
3086 color TV output (default)
3087 .IPs interlaced
3088 interlaced TV output (default)
3089 .IPs nointerlaced
3090 disable interlaced TV output
3091 .IPs norm=<value>
3092 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
3093 .IPs square-pixel
3094 set pixel mode to square
3095 .IPs ccir601-pixel
3096 set pixel mode to ccir601
3099 .sp 1
3100 .I overlay
3102 .RSs
3103 .IPs cr-left=<0\-500>
3104 Set the left cropping value (default: 50).
3105 .IPs cr-right=<0\-500>
3106 Set the right cropping value (default: 300).
3107 .IPs cr-top=<0\-500>
3108 Set the top cropping value (default: 0).
3109 .IPs cr-bottom=<0\-500>
3110 Set the bottom cropping value (default: 0).
3111 .IPs ck-[r|g|b]=<0\-255>
3112 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
3113 .IPs ck-[r|g|b]min=<0\-255>
3114 minimum value for the respective color key
3115 .IPs ck-[r|g|b]max=<0\-255>
3116 maximum value for the respective color key
3117 .IPs ignore-cache
3118 Ignore cached overlay settings.
3119 .IPs update-cache
3120 Update cached overlay settings.
3121 .IPs ol-osd
3122 Enable overlay onscreen display.
3123 .IPs nool-osd
3124 Disable overlay onscreen display (default).
3125 .IPs ol[h|w|x|y]-cor=<\-20\-20>
3126 Adjust the overlay size (h,w) and position (x,y) in case it does not
3127 match the window perfectly (default: 0).
3128 .IPs overlay
3129 Activate overlay (default).
3130 .IPs nooverlay
3131 Activate TV-out.
3132 .IPs overlay-ratio=<1\-2500>
3133 Tune the overlay (default: 1000).
3137 .B \-fbmode <modename> (\-vo fbdev only)
3138 Change video mode to the one that is labeled as <modename> in
3139 /etc/\:fb.modes.
3141 .I NOTE:
3142 VESA framebuffer does not support mode changing.
3145 .B \-fbmodeconfig <filename> (\-vo fbdev only)
3146 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
3149 .B \-force\-window\-position
3150 Forcefully move MPlayer's video output window to default location whenever
3151 there is a change in video parameters, video stream or file.
3152 This used to be the default behavior.
3153 Currently only affects X11 VOs.
3156 .B \-fs (also see \-zoom)
3157 Fullscreen playback (centers movie, and paints black bands around it).
3158 Not supported by all video output drivers.
3161 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3162 Try this option if you still experience fullscreen problems.
3165 .B \-fstype <type1,type2,...> (X11 only)
3166 Specify a priority list of fullscreen modes to be used.
3167 You can negate the modes by prefixing them with '\-'.
3168 If you experience problems like the fullscreen window being covered
3169 by other windows try using a different order.
3171 .I NOTE:
3172 See \-fstype help for a full list of available modes.
3173 .sp 1
3174 The available types are:
3175 .sp 1
3176 .PD 0
3177 .RSs
3178 .IPs above
3179 Use the _NETWM_STATE_ABOVE hint if available.
3180 .IPs below
3181 Use the _NETWM_STATE_BELOW hint if available.
3182 .IPs fullscreen
3183 Use the _NETWM_STATE_FULLSCREEN hint if available.
3184 .IPs layer
3185 Use the _WIN_LAYER hint with the default layer.
3186 .IPs layer=<0...15>
3187 Use the _WIN_LAYER hint with the given layer number.
3188 .IPs netwm
3189 Force NETWM style.
3190 .IPs "none\ "
3191 Clear the list of modes; you can add modes to enable afterward.
3192 .IPs stays_on_top
3193 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3194 .REss
3195 .sp 1
3197 .I EXAMPLE:
3199 .PD 0
3200 .RSs
3201 .IPs layer,stays_on_top,above,fullscreen
3202 Default order, will be used as a fallback if incorrect or
3203 unsupported modes are specified.
3204 .IPs \-fullscreen
3205 Fixes fullscreen switching on OpenBox 1.x.
3207 .PD 1
3210 .B \-geometry x[%][:y[%]] or [WxH][+-x+-y]
3211 Adjust where the output is on the screen initially.
3212 The x and y specifications are in pixels measured from the top-left of the
3213 screen to the top-left of the image being displayed, however if a percentage
3214 sign is given after the argument it turns the value into a percentage of the
3215 screen size in that direction.
3216 It also supports the standard X11 \-geometry option format, in which e.g.
3217 +10-50 means "place 10 pixels from the left border and 50 pixels from the lower
3218 border" and "--20+-10" means "place 20 pixels beyond the right and 10 pixels
3219 beyond the top border".
3220 If an external window is specified using the \-wid option, then the x and
3221 y coordinates are relative to the top-left corner of the window rather
3222 than the screen.
3223 The coordinates are relative to the screen given with \-xineramascreen for
3224 the video output drivers that fully support \-xineramascreen (direct3d, gl, gl2,
3225 vdpau, x11, xv, xvmc, corevideo).
3227 .I NOTE:
3228 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
3229 gl, gl2, directx, fbdev, tdfxfb and corevideo video output drivers.
3230 .sp 1
3231 .I EXAMPLE:
3232 .PD 0
3233 .RSs
3234 .IPs 50:40
3235 Places the window at x=50, y=40.
3236 .IPs 50%:50%
3237 Places the window in the middle of the screen.
3238 .IPs "100%\ "
3239 Places the window at the middle of the right edge of the screen.
3240 .IPs 100%:100%
3241 Places the window at the bottom right corner of the screen.
3243 .PD 1
3246 .B \-hue <\-100\-100>
3247 Adjust the hue of the video signal (default: 0).
3248 You can get a colored negative of the image with this option.
3249 Not supported by all video output drivers.
3252 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3253 Specify the dotclock or pixelclock range of the monitor.
3256 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3257 Specify the horizontal frequency range of the monitor.
3260 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3261 Specify the vertical frequency range of the monitor.
3264 .B \-monitoraspect <ratio> (also see \-aspect)
3265 Set the aspect ratio of your monitor or TV screen.
3266 A value of 0 disables a previous setting (e.g.\& in the config file).
3267 Overrides the \-monitorpixelaspect setting if enabled.
3268 .sp 1
3269 .I EXAMPLE:
3270 .PD 0
3271 .RSs
3272 \-monitoraspect 4:3  or 1.3333
3274 \-monitoraspect 16:9 or 1.7777
3276 .PD 1
3279 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3280 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3281 A value of 1 means square pixels
3282 (correct for (almost?) all LCDs).
3285 .B \-name (X11 only)
3286 Set the window class name.
3289 .B \-nodouble
3290 Disables double buffering, mostly for debugging purposes.
3291 Double buffering fixes flicker by storing two frames in memory, and
3292 displaying one while decoding another.
3293 It can affect OSD negatively, but often removes OSD flickering.
3296 .B \-nograbpointer
3297 Do not grab the mouse pointer after a video mode change (\-vm).
3298 Useful for multihead setups.
3301 .B \-nokeepaspect
3302 Do not keep window aspect ratio when resizing windows.
3303 By default MPlayer tries to keep the correct video aspect ratio by
3304 instructing the window manager to maintain window aspect when resizing,
3305 and by adding black bars if the window manager nevertheless allows
3306 window shape to change.
3307 This option disables window manager aspect hints and scales the video
3308 to completely fill the window without regard for aspect ratio.
3311 .B "\-ontop\ "
3312 Makes the player window stay on top of other windows.
3313 Supported by video output drivers which use X11, except SDL,
3314 as well as directx, corevideo, quartz, ggi and gl2.
3317 .B \-panscan <0.0\-1.0>
3318 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3319 movie to make it fit a 4:3 display without black bands).
3320 The range controls how much of the image is cropped.
3321 Only works with the xv, xmga, mga, gl, gl2, quartz, corevideo and xvidix
3322 video output drivers.
3324 .I NOTE:
3325 Values between \-1 and 0 are allowed as well, but highly experimental
3326 and may crash or worse.
3327 Use at your own risk!
3330 .B \-panscanrange <\-19.0\-99.0> (experimental)
3331 Change the range of the pan-and-scan functionality (default: 1).
3332 Positive values mean multiples of the default range.
3333 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3334 E.g.\& \-panscanrange \-3 allows a zoom factor of up to 4.
3335 This feature is experimental.
3336 Do not report bugs unless you are using \-vo gl.
3339 .B \-refreshrate <Hz>
3340 Set the monitor refreshrate in Hz.
3341 Currently only supported by \-vo directx combined with the \-vm option.
3344 .B \-rootwin
3345 Play movie in the root window (desktop background).
3346 Desktop background images may cover the movie window, though.
3347 Only works with the x11, xv, xmga, xvidix, quartz, corevideo and directx video output drivers.
3350 .B \-saturation <\-100\-100>
3351 Adjust the saturation of the video signal (default: 0).
3352 You can get grayscale output with this option.
3353 Not supported by all video output drivers.
3356 .B \-screenh <pixels>
3357 Specify the screen height for video output drivers which
3358 do not know the screen resolution like fbdev, x11 and TV-out.
3361 .B \-screenw <pixels>
3362 Specify the screen width for video output drivers which
3363 do not know the screen resolution like fbdev, x11 and TV-out.
3366 .B \-stop\-xscreensaver (X11 only)
3367 Turns off xscreensaver at startup and turns it on again on exit.
3368 If your screensaver supports neither the XSS nor XResetScreenSaver
3369 API please use \-heartbeat\-cmd instead.
3372 .B \-title (also see \-use\-filename\-title)
3373 Set the window title.
3374 Supported by X11-based video output drivers.
3377 .B \-use\-filename\-title (also see \-title)
3378 Set the window title using the media filename, when not set with \-title.
3379 Supported by X11-based video output drivers.
3382 .B "\-vm \ \ \ "
3383 Try to change to a different video mode.
3384 Supported by the dga, x11, xv, sdl and directx video output drivers.
3385 If used with the directx video output driver the \-screenw,
3386 \-screenh, \-bpp and \-refreshrate options can be used to set
3387 the new display mode.
3390 .B "\-vsync \ \ "
3391 Enables VBI for the vesa, dfbmga and svga video output drivers.
3394 .B \-wid <window ID> (X11, OpenGL and DirectX only)
3395 This tells MPlayer to attach to an existing window.
3396 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3397 This option fills the given window completely, thus aspect scaling,
3398 panscan, etc are no longer handled by MPlayer but must be managed by the
3399 application that created the window.
3402 .B \-xineramascreen <\-2\-...>
3403 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3404 displays) this option tells MPlayer which screen to display the movie on.
3405 A value of \-2 means fullscreen across the whole virtual display (in this case
3406 Xinerama information is completely ignored), \-1 means
3407 fullscreen on the display the window currently is on.
3408 The initial position set via the \-geometry option is relative to the
3409 specified screen.
3410 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3411 This option is not suitable to only set the startup screen (because
3412 it will always display on the given screen in fullscreen mode),
3413 \-geometry is the best that is available for that purpose
3414 currently.
3415 Supported by at least the direct3d, gl, gl2, x11, xv and corevideo video output
3416 drivers.
3419 .B \-zrbw (\-vo zr only)
3420 Display in black and white.
3421 For optimal performance, this can be combined with '\-lavdopts gray'.
3424 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3425 Select a part of the input image to display, multiple occurrences
3426 of this option switch on cinerama mode.
3427 In cinerama mode the movie is distributed over more than one TV
3428 (or beamer) to create a larger image.
3429 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3430 card should at least have a \-zrdev in addition to the \-zrcrop.
3431 For examples, see the output of \-zrhelp and the Zr section of the
3432 documentation.
3435 .B \-zrdev <device> (\-vo zr only)
3436 Specify the device special file that belongs to your MJPEG card, by default
3437 the zr video output driver takes the first v4l device it can find.
3440 .B \-zrfd (\-vo zr only)
3441 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3442 happens if the hardware scaler can stretch the image to its original size.
3443 Use this option to force decimation.
3446 .B \-zrhdec <1|2|4> (\-vo zr only)
3447 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3448 line/\:pixel of the input image to the MJPEG card and use the scaler
3449 of the MJPEG card to stretch the image to its original size.
3452 .B \-zrhelp (\-vo zr only)
3453 Display a list of all \-zr* options, their default values and a
3454 cinerama mode example.
3457 .B \-zrnorm <norm> (\-vo zr only)
3458 Specify the TV norm as PAL or NTSC (default: no change).
3461 .B \-zrquality <1\-20> (\-vo zr only)
3462 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3465 .B \-zrvdec <1|2|4> (\-vo zr only)
3466 Vertical decimation: Ask the driver to send only every 2nd or 4th
3467 line/\:pixel of the input image to the MJPEG card and use the scaler
3468 of the MJPEG card to stretch the image to its original size.
3471 .B \-zrxdoff <x display offset> (\-vo zr only)
3472 If the movie is smaller than the TV screen, this option specifies the x
3473 offset from the upper-left corner of the TV screen (default: centered).
3476 .B \-zrydoff <y display offset> (\-vo zr only)
3477 If the movie is smaller than the TV screen, this option specifies the y
3478 offset from the upper-left corner of the TV screen (default: centered).
3482 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3483 Video output drivers are interfaces to different video output facilities.
3484 The syntax is:
3487 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3488 Specify a priority list of video output drivers to be used.
3490 If the list has a trailing ',' MPlayer will fall back on drivers not
3491 contained in the list.
3492 Suboptions are optional and can mostly be omitted.
3494 .I NOTE:
3495 See \-vo help for a list of compiled-in video output drivers.
3496 .sp 1
3497 .I EXAMPLE:
3498 .PD 0
3499 .RSs
3500 .IPs "\-vo xmga,xv,"
3501 Try the Matrox X11 driver, then the Xv driver, then others.
3502 .IPs "\-vo directx:noaccel"
3503 Uses the DirectX driver with acceleration features turned off.
3505 .PD 1
3506 .sp 1
3507 Available video output drivers are:
3510 .B xv (X11 only)
3511 Uses the XVideo extension of XFree86 4.x to enable hardware
3512 accelerated playback.
3513 If you cannot use a hardware specific driver, this is probably
3514 the best option.
3515 For information about what colorkey is used and how it is drawn run MPlayer
3516 with \-v option and look out for the lines tagged with [xv common] at the
3517 beginning.
3518 .PD 0
3519 .RSs
3520 .IPs adaptor=<number>
3521 Select a specific XVideo adaptor (check xvinfo results).
3522 .IPs port=<number>
3523 Select a specific XVideo port.
3524 .IPs ck=<cur|use|set>
3525 Select the source from which the colorkey is taken (default: cur).
3526 .RSss
3527 .IPs cur
3528 The default takes the colorkey currently set in Xv.
3529 .IPs use
3530 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3531 it).
3532 .IPs set
3533 Same as use but also sets the supplied colorkey.
3535 .IPs ck-method=<man|bg|auto>
3536 Sets the colorkey drawing method (default: man).
3537 .RSss
3538 .IPs man
3539 Draw the colorkey manually (reduces flicker in some cases).
3540 .IPs bg
3541 Set the colorkey as window background.
3542 .IPs auto
3543 Let Xv draw the colorkey.
3546 .PD 1
3549 .B x11 (X11 only)
3550 Shared memory video output driver without hardware acceleration that
3551 works whenever X11 is present.
3554 .B xover (X11 only)
3555 Adds X11 support to all overlay based video output drivers.
3556 Currently only supported by tdfx_vid.
3557 .PD 0
3558 .RSs
3559 .IPs <vo_driver>
3560 Select the driver to use as source to overlay on top of X11.
3562 .PD 1
3565 .B vdpau (with \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau, ffh264vdpau or ffodivxvdpau)
3566 Video output that uses VDPAU to decode video via hardware.
3567 Also supports displaying of software-decoded video.
3568 .PD 0
3569 .RSs
3570 .IPs sharpen=<\-1\-1>
3571 For positive values, apply a sharpening algorithm to the video,
3572 for negative values a blurring algorithm (default: 0).
3573 .IPs denoise=<0\-1>
3574 Apply a noise reduction algorithm to the video (default: 0, no noise reduction).
3575 .IPs deint=<0\-4>
3576 Select the deinterlacer (default: 0).
3577 All modes > 0 respect \-field\-dominance.
3578 .RSss
3579 .IPs 0
3580 no deinterlacing
3581 .IPs 1
3582 Show only first field, similar to \-vf field.
3583 .IPs 2
3584 Bob deinterlacing, similar to \-vf tfields=1.
3585 .IPs 3
3586 motion adaptive temporal deinterlacing
3587 May lead to A/V desync with slow video hardware and/or high resolution.
3588 This is the default if "D" is used to enable deinterlacing.
3589 .IPs 4
3590 motion adaptive temporal deinterlacing with edge-guided spatial interpolation
3591 Needs fast video hardware.
3593 .IPs chroma\-deint
3594 Makes temporal deinterlacers operate both on luma and chroma (default).
3595 Use nochroma\-deint to solely use luma and speed up advanced deinterlacing.
3596 Useful with slow video memory.
3597 .IPs pullup
3598 Try to apply inverse telecine, needs motion adaptive temporal deinterlacing.
3599 .IPs colorspace=<0-3>
3600 Select the color space for YUV to RGB conversion.
3601 In general BT.601 should be used for standard definition (SD) content and
3602 BT.709 for high definition (HD) content.
3603 Using incorrect color space results in slightly under or over saturated and
3604 shifted colors.
3605 .RSss
3606 .IPs 0
3607 Guess the color space based on video resolution.
3608 Video with width >= 1280 or height > 576 is assumed to be HD and BT.709 color
3609 space will be used.
3610 .IPs 1
3611 Use ITU-R BT.601 color space (default).
3612 .IPs 2
3613 Use ITU-R BT.709 color space.
3614 .IPs 3
3615 Use SMPTE-240M color space.
3617 .IPs hqscaling=<0-9>
3618 .RSss
3619 .IPs 0
3620 Use default VDPAU scaling (default).
3621 .IPs 1\-9
3622 Apply high quality VDPAU scaling (needs capable hardware).
3624 .IPs studio
3625 Output video in studio level RGB (16-235).
3626 This is what TVs and video monitors generally expect.
3627 By default PC level RGB (0-255) suitable for PC monitors is used.
3628 Providing studio level output to a device expecting PC level input results in
3629 grey blacks and dim whites, the reverse in crushed blacks and whites.
3630 .IPs fps=<number>
3631 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).
3632 Default 0 means use autodetected value.
3633 A positive value is interpreted as a refresh rate in Hz and overrides the autodetected value.
3634 A negative value disables all timing adjustment and framedrop logic.
3635 .IPs queuetime_windowed=<number>
3636 .IPs queuetime_fs=<number>
3637 Use VDPAU's presentation queue functionality to queue future video frame
3638 changes at most this many milliseconds in advance (default: 50).
3639 See below for additional information.
3640 .IPs output_surfaces=<2-15>
3641 Allocate this many output surfaces to display video frames (default: 3).
3642 See below for additional information.
3645 .sp 1
3646 Using the VDPAU frame queueing functionality controlled by the queuetime
3647 options makes MPlayer's frame flip timing less sensitive to system CPU load
3648 and allows MPlayer to start decoding the next frame(s) slightly earlier
3649 which can reduce jitter caused by individual slow-to-decode frames.
3650 However the NVIDIA graphics drivers can make other window behavior such as
3651 window moves choppy if VDPAU is using the blit queue (mainly happens
3652 if you have the composite extension enabled) and this feature is active.
3653 If this happens on your system and it bothers you then you can set the
3654 queuetime value to 0 to disable this feature.
3655 The settings to use in windowed and fullscreen mode are separate because there
3656 should be less reason to disable this for fullscreen mode (as the driver issue
3657 shouldn't affect the video itself).
3658 .sp 1
3659 You can queue more frames ahead by increasing the queuetime values and the
3660 output_surfaces count (to ensure enough surfaces to buffer video for a
3661 certain time ahead you need at least as many surfaces as the video has
3662 frames during that time, plus two).
3663 This could help make video smoother in some cases.
3664 The main downsides are increased video RAM requirements for the surfaces
3665 and laggier display response to user commands (display changes only become
3666 visible some time after they're queued). The graphics driver implementation may
3667 also have limits on the length of maximum queuing time or number of queued
3668 surfaces that work well or at all.
3670 .PD 1
3673 .B xvmc (X11 with \-vc ffmpeg12mc only)
3674 Video output driver that uses the XvMC (X Video Motion Compensation)
3675 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3676 .PD 0
3677 .RSs
3678 .IPs adaptor=<number>
3679 Select a specific XVideo adaptor (check xvinfo results).
3680 .IPs port=<number>
3681 Select a specific XVideo port.
3682 .IPs (no)benchmark
3683 Disables image display.
3684 Necessary for proper benchmarking of drivers that change
3685 image buffers on monitor retrace only (nVidia).
3686 Default is not to disable image display (nobenchmark).
3687 .IPs (no)bobdeint
3688 Very simple deinterlacer.
3689 Might not look better than \-vf tfields=1,
3690 but it is the only deinterlacer for xvmc (default: nobobdeint).
3691 .IPs (no)queue
3692 Queue frames for display to allow more parallel work of the video hardware.
3693 May add a small (not noticeable) constant A/V desync (default: noqueue).
3694 .IPs (no)sleep
3695 Use sleep function while waiting for rendering to finish
3696 (not recommended on Linux) (default: nosleep).
3697 .IPs ck=cur|use|set
3698 Same as \-vo xv:ck (see \-vo xv).
3699 .IPs ck-method=man|bg|auto
3700 Same as \-vo xv:ck-method (see \-vo xv).
3702 .PD 1
3705 .B dga (X11 only)
3706 Play video through the XFree86 Direct Graphics Access extension.
3707 Considered obsolete.
3710 .B sdl (SDL only, buggy/outdated)
3711 Highly platform independent SDL (Simple Directmedia Layer) library
3712 video output driver.
3713 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3714 any effect on SDL.
3715 Note that it has several minor bugs (\-vm/\-novm is mostly ignored,
3716 \-fs behaves like \-novm should, window is in top-left corner when
3717 returning from fullscreen, panscan is not supported, ...).
3718 .PD 0
3719 .RSs
3720 .IPs driver=<driver>
3721 Explicitly choose the SDL driver to use.
3722 .IPs (no)forcexv
3723 Use XVideo through the sdl video output driver (default: forcexv).
3724 .IPs (no)hwaccel
3725 Use hardware accelerated scaler (default: hwaccel).
3727 .PD 1
3730 .B "vidix\ \ "
3731 VIDIX (VIDeo Interface for *niX) is an interface to the
3732 video acceleration features of different graphics cards.
3733 Very fast video output driver on cards that support it.
3734 .PD 0
3735 .RSs
3736 .IPs <subdevice>
3737 Explicitly choose the VIDIX subdevice driver to use.
3738 Available subdevice drivers are cyberblade, ivtv, mach64,
3739 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, s3, sh_veu,
3740 sis_vid and unichrome.
3742 .PD 1
3745 .B xvidix (X11 only)
3746 X11 frontend for VIDIX
3747 .PD 0
3748 .RSs
3749 .IPs <subdevice>
3750 same as vidix
3752 .PD 1
3755 .B "cvidix\ "
3756 Generic and platform independent VIDIX frontend, can even run in a
3757 text console with nVidia cards.
3758 .PD 0
3759 .RSs
3760 .IPs <subdevice>
3761 same as vidix
3763 .PD 1
3766 .B winvidix (Windows only)
3767 Windows frontend for VIDIX
3768 .PD 0
3769 .RSs
3770 .IPs <subdevice>
3771 same as vidix
3773 .PD 1
3776 .B direct3d (Windows only) (BETA CODE!)
3777 Video output driver that uses the Direct3D interface (useful for Vista).
3780 .B directx (Windows only)
3781 Video output driver that uses the DirectX interface.
3782 .PD 0
3783 .RSs
3784 .IPs noaccel
3785 Turns off hardware acceleration.
3786 Try this option if you have display problems.
3788 .PD 1
3791 .B kva (OS/2 only)
3792 Video output driver that uses the libkva interface.
3793 .PD 0
3794 .RSs
3795 .IPs snap
3796 Force SNAP mode.
3797 .IPs wo
3798 Force WarpOverlay! mode.
3799 .IPs dive
3800 Force DIVE mode.
3801 .IPs (no)t23
3802 Enable or disable workaround for T23 laptop (default: disabled).
3803 Try to enable this option if your video card supports upscaling only.
3805 .PD 1
3808 .B quartz (Mac OS X only)
3809 Mac OS X Quartz video output driver.
3810 Under some circumstances, it might be more efficient to force a
3811 packed YUV output format, with e.g.\& \-vf format=yuy2.
3812 .PD 0
3813 .RSs
3814 .IPs device_id=<number>
3815 Choose the display device to use in fullscreen.
3816 .IPs fs_res=<width>:<height>
3817 Specify the fullscreen resolution (useful on slow systems).
3819 .PD 1
3822 .B corevideo (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3823 Mac OS X CoreVideo video output driver
3824 .PD 0
3825 .RSs
3826 .IPs device_id=<number>
3827 Choose the display device to use for fullscreen or set it to \-1 to
3828 always use the same screen the video window is on (default: \-1 \- auto).
3829 .IPs shared_buffer
3830 Write output to a shared memory buffer instead of displaying it and
3831 try to open an existing NSConnection for communication with a GUI.
3832 .IPs buffer_name=<name>
3833 Name of the shared buffer created with shm_open as well as the name of
3834 the NSConnection MPlayer will try to open (default: "mplayerosx").
3835 Setting buffer_name implicitly enables shared_buffer.
3837 .PD 1
3840 .B fbdev (Linux only)
3841 Uses the kernel framebuffer to play video.
3842 .PD 0
3843 .RSs
3844 .IPs <device>
3845 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3846 name of the VIDIX subdevice if the device name starts with 'vidix'
3847 (e.g.\& 'vidixsis_vid' for the sis driver).
3849 .PD 1
3852 .B fbdev2 (Linux only)
3853 Uses the kernel framebuffer to play video,
3854 alternative implementation.
3855 .PD 0
3856 .RSs
3857 .IPs <device>
3858 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3860 .PD 1
3863 .B "vesa\ \ \ "
3864 Very general video output driver that should work on any VESA VBE 2.0
3865 compatible card.
3866 .PD 0
3867 .RSs
3868 .IPs (no)dga
3869 Turns DGA mode on or off (default: on).
3870 .IPs neotv_pal
3871 Activate the NeoMagic TV out and set it to PAL norm.
3872 .IPs neotv_ntsc
3873 Activate the NeoMagic TV out and set it to NTSC norm.
3874 .IPs vidix
3875 Use the VIDIX driver.
3876 .IPs "lvo:\ \ \ "
3877 Activate the Linux Video Overlay on top of VESA mode.
3879 .PD 1
3882 .B "svga\ \ \ "
3883 Play video using the SVGA library.
3884 .PD 0
3885 .RSs
3886 .IPs "<video mode>"
3887 Specify video mode to use.
3888 The mode can be given in a <width>x<height>x<colors> format,
3889 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3890 .IPs bbosd
3891 Draw OSD into black bands below the movie (slower).
3892 .IPs native
3893 Use only native drawing functions.
3894 This avoids direct rendering, OSD and hardware acceleration.
3895 .IPs retrace
3896 Force frame switch on vertical retrace.
3897 Usable only with \-double.
3898 It has the same effect as the \-vsync option.
3899 .IPs "sq\ \ \ "
3900 Try to select a video mode with square pixels.
3901 .IPs vidix
3902 Use svga with VIDIX.
3904 .PD 1
3907 .B "gl\ \ \ \ \ "
3908 OpenGL video output driver, simple version.
3909 Video size must be smaller than
3910 the maximum texture size of your OpenGL implementation.
3911 Intended to work even with the most basic OpenGL implementations,
3912 but also makes use of newer extensions, which allow support for more
3913 colorspaces and direct rendering.
3914 For optimal speed try adding the options
3916 \-dr \-noslices
3918 The code performs very few checks, so if a feature does not work, this
3919 might be because it is not supported by your card/OpenGL implementation
3920 even if you do not get any error message.
3921 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3922 .PD 0
3923 .RSs
3924 .IPs (no)ati\-hack
3925 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3926 or force\-pbo).
3927 This option fixes this, at the expense of using a bit more memory.
3928 .IPs (no)force\-pbo
3929 Always uses PBOs to transfer textures even if this involves an extra copy.
3930 Currently this gives a little extra speed with NVidia drivers and a lot more
3931 speed with ATI drivers.
3932 May need \-noslices and the ati\-hack suboption to work correctly.
3933 .IPs (no)scaled-osd
3934 Changes the way the OSD behaves when the size of the
3935 window changes (default: disabled).
3936 When enabled behaves more like the other video output drivers,
3937 which is better for fixed-size fonts.
3938 Disabled looks much better with FreeType fonts and uses the
3939 borders in fullscreen mode.
3940 Does not work correctly with ass subtitles (see \-ass), you can instead
3941 render them without OpenGL support via \-vf ass.
3942 .IPs osdcolor=<0xAARRGGBB>
3943 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3944 .IPs rectangle=<0,1,2>
3945 Select usage of rectangular textures which saves video RAM, but often is
3946 slower (default: 0).
3947 .RSss
3948 0: Use power-of-two textures (default).
3950 1: Use the GL_ARB_texture_rectangle extension.
3952 2: Use the GL_ARB_texture_non_power_of_two extension.
3953 In some cases only supported in software and thus very slow.
3955 .IPs swapinterval=<n>
3956 Minimum interval between two buffer swaps, counted in
3957 displayed frames (default: 1).
3958 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3959 Values below 0 will leave it at the system default.
3960 This limits the framerate to (horizontal refresh rate / n).
3961 Requires GLX_SGI_swap_control support to work.
3962 With some (most/all?) implementations this only works in fullscreen mode.
3963 .IPs ycbcr
3964 Use the GL_MESA_ycbcr_texture extension to convert YUV to RGB.
3965 In most cases this is probably slower than doing software conversion to RGB.
3966 .IPs yuv=<n>
3967 Select the type of YUV to RGB conversion.
3968 The default is auto-detection deciding between values 0 and 2.
3969 .RSss
3970 0: Use software conversion.
3971 Compatible with all OpenGL versions.
3972 Provides brightness, contrast and saturation control.
3974 1: Use register combiners.
3975 This uses an nVidia-specific extension (GL_NV_register_combiners).
3976 At least three texture units are needed.
3977 Provides saturation and hue control.
3978 This method is fast but inexact.
3980 2: Use a fragment program.
3981 Needs the GL_ARB_fragment_program extension and at least three texture units.
3982 Provides brightness, contrast, saturation and hue control.
3984 3: Use a fragment program using the POW instruction.
3985 Needs the GL_ARB_fragment_program extension and at least three texture units.
3986 Provides brightness, contrast, saturation, hue and gamma control.
3987 Gamma can also be set independently for red, green and blue.
3988 Method 4 is usually faster.
3990 4: Use a fragment program with additional lookup.
3991 Needs the GL_ARB_fragment_program extension and at least four texture units.
3992 Provides brightness, contrast, saturation, hue and gamma control.
3993 Gamma can also be set independently for red, green and blue.
3995 5: Use ATI-specific method (for older cards).
3996 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3997 GL_ARB_fragment_shader!).
3998 At least three texture units are needed.
3999 Provides saturation and hue control.
4000 This method is fast but inexact.
4002 6: Use a 3D texture to do conversion via lookup.
4003 Needs the GL_ARB_fragment_program extension and at least four texture units.
4004 Extremely slow (software emulation) on some (all?) ATI cards since it uses
4005 a texture with border pixels.
4006 Provides brightness, contrast, saturation, hue and gamma control.
4007 Gamma can also be set independently for red, green and blue.
4008 Speed depends more on GPU memory bandwidth than other methods.
4010 .IPs colorspace
4011 Select the color space for YUV to RGB conversion.
4012 .RSss
4013 .IPs 0
4014 Use the formula used normally by MPlayer (default).
4015 .IPs 1
4016 Use ITU-R BT.601 color space.
4017 .IPs 2
4018 Use ITU-R BT.709 color space.
4019 .IPs 3
4020 Use SMPTE-240M color space.
4022 .IPs levelconv=<n>
4023 Select the brightness level conversion to use for the YUV to RGB conversion
4024 .RSss
4025 .IPs 0
4026 Convert TV to PC levels (default).
4027 .IPs 1
4028 Convert PC to TV levels.
4029 .IPs 2
4030 Do not do any conversion.
4032 .IPs lscale=<n>
4033 Select the scaling function to use for luminance scaling.
4034 Only valid for yuv modes 2, 3, 4 and 6.
4035 .RSss
4036 0: Use simple linear filtering (default).
4038 1: Use bicubic B-spline filtering (better quality).
4039 Needs one additional texture unit.
4040 Older cards will not be able to handle this for chroma at least in fullscreen mode.
4042 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
4043 Works on a few more cards than method 1.
4045 3: Same as 1 but does not use a lookup texture.
4046 Might be faster on some cards.
4048 4: Use experimental unsharp masking with 3x3 support and a default strength of 0.5 (see filter-strength).
4050 5: Use experimental unsharp masking with 5x5 support and a default strength of 0.5 (see filter-strength).
4052 .IPs cscale=<n>
4053 Select the scaling function to use for chrominance scaling.
4054 For details see lscale.
4055 .IPs filter-strength=<value>
4056 Set the effect strength for the lscale/cscale filters that support it.
4057 .IPs stereo=<value>
4058 Select a method for stereo display.
4059 You may have to use -aspect to fix the aspect value.
4060 Experimental, do not expect too much from it.
4061 .RSss
4062 0: Normal 2D display
4064 1: left-right split input to full-color red-cyan stereo.
4066 2: left-right split input to full-color red-cyan stereo.
4068 3: left-right split input to quadbuffered stereo.
4069 Only supported by very few OpenGL cards.
4072 .sp 1
4074 The following options are only useful if writing your own fragment programs.
4076 .sp 1
4077 .RSs
4078 .IPs customprog=<filename>
4079 Load a custom fragment program from <filename>.
4080 See TOOLS/edgedect.fp for an example.
4081 .IPs customtex=<filename>
4082 Load a custom "gamma ramp" texture from <filename>.
4083 This can be used in combination with yuv=4 or with the customprog option.
4084 .IPs (no)customtlin
4085 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
4086 for customtex texture.
4087 .IPs (no)customtrect
4088 If enabled, use texture_rectangle for customtex texture.
4089 Default is disabled.
4090 .IPs (no)mipmapgen
4091 If enabled, mipmaps for the video are automatically generated.
4092 This should be useful together with the customprog and the TXB
4093 instruction to implement blur filters with a large radius.
4094 For most OpenGL implementations this is very slow for any non-RGB
4095 formats.
4096 Default is disabled.
4098 .sp 1
4100 Normally there is no reason to use the following options, they mostly
4101 exist for testing purposes.
4103 .sp 1
4104 .RSs
4105 .IPs (no)glfinish
4106 Call glFinish() before swapping buffers.
4107 Slower but in some cases more correct output (default: disabled).
4108 .IPs (no)manyfmts
4109 Enables support for more (RGB and BGR) color formats (default: enabled).
4110 Needs OpenGL version >= 1.2.
4111 .IPs slice-height=<0\-...>
4112 Number of lines copied to texture in one piece (default: 0).
4113 0 for whole image.
4115 .I NOTE:
4116 If YUV colorspace is used (see yuv suboption), special rules apply:
4117 .RSss
4118 If the decoder uses slice rendering (see \-noslices), this setting
4119 has no effect, the size of the slices as provided by the decoder is used.
4121 If the decoder does not use slice rendering, the default is 16.
4123 .IPs (no)osd
4124 Enable or disable support for OSD rendering via OpenGL (default: enabled).
4125 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
4126 .IPs (no)aspect
4127 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
4128 Disabling might increase speed.
4129 .REss
4131 .PD 1
4134 .B "gl2\ \ \ \ "
4135 Variant of the OpenGL video output driver.
4136 Supports videos larger than the maximum texture size but lacks many of the
4137 advanced features and optimizations of the gl driver and is unlikely to be
4138 extended further.
4139 .PD 0
4140 .RSs
4141 .IPs (no)glfinish
4142 same as gl (default: enabled)
4143 .IPs yuv=<n>
4144 Select the type of YUV to RGB conversion.
4145 If set to anything except 0 OSD will be disabled and brightness, contrast and
4146 gamma setting is only available via the global X server settings.
4147 Apart from this the values have the same meaning as for \-vo gl.
4148 .REss
4151 .B matrixview
4152 OpenGL-based renderer creating a Matrix-like running-text effect.
4153 .PD 0
4154 .RSs
4155 .IPs cols=<n>
4156 Number of text columns to display.
4157 Very low values (< 16) will probably fail due to scaler limitations.
4158 Values not divisible by 16 may cause issues as well.
4159 .IPs rows=<n>
4160 Number of text rows to display.
4161 Very low values (< 16) will probably fail due to scaler limitations.
4162 Values not divisible by 16 may cause issues as well.
4163 .REss
4166 .B "null\ \ \ "
4167 Produces no video output.
4168 Useful for benchmarking.
4171 .B "aa\ \ \ \ \ "
4172 ASCII art video output driver that works on a text console.
4173 You can get a list and an explanation of available suboptions
4174 by executing 'mplayer \-vo aa:help'.
4176 .I NOTE:
4177 The driver does not handle \-aspect correctly.
4179 .I HINT:
4180 You probably have to specify \-monitorpixelaspect.
4181 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
4184 .B "caca\ \ \ "
4185 Color ASCII art video output driver that works on a text console.
4188 .B "bl\ \ \ \ \ "
4189 Video playback using the Blinkenlights UDP protocol.
4190 This driver is highly hardware specific.
4191 .PD 0
4192 .RSs
4193 .IPs <subdevice>
4194 Explicitly choose the Blinkenlights subdevice driver to use.
4195 It is something like arcade:host=localhost:2323 or
4196 hdl:file=name1,file=name2.
4197 You must specify a subdevice.
4199 .PD 1
4202 .B "ggi\ \ \ \ "
4203 GGI graphics system video output driver
4204 .PD 0
4205 .RSs
4206 .IPs <driver>
4207 Explicitly choose the GGI driver to use.
4208 Replace any ',' that would appear in the driver string by a '.'.
4210 .PD 1
4213 .B directfb
4214 Play video using the DirectFB library.
4215 .PD 0
4216 .RSs
4217 .IPs (no)input
4218 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
4219 .IPs buffermode=single|double|triple
4220 Double and triple buffering give best results if you want to avoid tearing issues.
4221 Triple buffering is more efficient than double buffering as it does
4222 not block MPlayer while waiting for the vertical retrace.
4223 Single buffering should be avoided (default: single).
4224 .IPs fieldparity=top|bottom
4225 Control the output order for interlaced frames (default: disabled).
4226 Valid values are top = top fields first, bottom = bottom fields first.
4227 This option does not have any effect on progressive film material
4228 like most MPEG movies are.
4229 You need to enable this option if you have tearing issues or unsmooth
4230 motions watching interlaced film material.
4231 .IPs layer=N
4232 Will force layer with ID N for playback (default: \-1 \- auto).
4233 .IPs dfbopts=<list>
4234 Specify a parameter list for DirectFB.
4236 .PD 1
4239 .B "dfbmga\ "
4240 Matrox G400/\:G450/\:G550 specific video output driver that uses the
4241 DirectFB library to make use of special hardware features.
4242 Enables CRTC2 (second head), displaying video independently of the first head.
4243 .PD 0
4244 .RSs
4245 .IPs (no)input
4246 same as directfb (default: disabled)
4247 .IPs buffermode=single|double|triple
4248 same as directfb (default: triple)
4249 .IPs fieldparity=top|bottom
4250 same as directfb
4251 .IPs (no)bes
4252 Enable the use of the Matrox BES (backend scaler) (default: disabled).
4253 Gives very good results concerning speed and output quality as interpolated
4254 picture processing is done in hardware.
4255 Works only on the primary head.
4256 .IPs (no)spic
4257 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
4258 .IPs (no)crtc2
4259 Turn on TV-out on the second head (default: enabled).
4260 The output quality is amazing as it is a full interlaced picture
4261 with proper sync to every odd/\:even field.
4262 .IPs tvnorm=pal|ntsc|auto
4263 Will set the TV norm of the Matrox card without the need
4264 for modifying /etc/\:directfbrc (default: disabled).
4265 Valid norms are pal = PAL, ntsc = NTSC.
4266 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
4267 which norm to use by looking at the framerate of the movie.
4269 .PD 1
4272 .B mga (Linux only)
4273 Matrox specific video output driver that makes use of the YUV back
4274 end scaler on Gxxx cards through a kernel module.
4275 If you have a Matrox card, this is the fastest option.
4276 .PD 0
4277 .RSs
4278 .IPs <device>
4279 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4281 .PD 1
4284 .B xmga (Linux, X11 only)
4285 The mga video output driver, running in an X11 window.
4286 .PD 0
4287 .RSs
4288 .IPs <device>
4289 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4291 .PD 1
4294 .B s3fb (Linux only) (also see \-dr)
4295 S3 Virge specific video output driver.
4296 This driver supports the card's YUV conversion and scaling, double
4297 buffering and direct rendering features.
4298 Use \-vf format=yuy2 to get hardware-accelerated YUY2 rendering, which is
4299 much faster than YV12 on this card.
4300 .PD 0
4301 .RSs
4302 .IPs <device>
4303 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4305 .PD 1
4308 .B wii (Linux only)
4309 Nintendo Wii/GameCube specific video output driver.
4312 .B 3dfx (Linux only)
4313 3dfx-specific video output driver that directly uses
4314 the hardware on top of X11.
4315 Only 16 bpp are supported.
4318 .B tdfxfb (Linux only)
4319 This driver employs the tdfxfb framebuffer driver to play movies with
4320 YUV acceleration on 3dfx cards.
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 tdfx_vid (Linux only)
4330 3dfx-specific video output driver that works in combination with
4331 the tdfx_vid kernel module.
4332 .PD 0
4333 .RSs
4334 .IPs <device>
4335 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
4337 .PD 1
4340 .B dxr2 (also see \-dxr2) (DXR2 only)
4341 Creative DXR2 specific video output driver.
4342 .PD 0
4343 .RSs
4344 .IPs <vo_driver>
4345 Output video subdriver to use as overlay (x11, xv).
4347 .PD 1
4350 .B dxr3 (DXR3 only)
4351 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
4352 Hollywood Plus) specific video output driver.
4353 Also see the lavc video filter.
4354 .PD 0
4355 .RSs
4356 .IPs overlay
4357 Activates the overlay instead of TV-out.
4358 .IPs prebuf
4359 Turns on prebuffering.
4360 .IPs "sync\ "
4361 Will turn on the new sync-engine.
4362 .IPs norm=<norm>
4363 Specifies the TV norm.
4364 .RSss
4365 0: Does not change current norm (default).
4367 1: Auto-adjust using PAL/\:NTSC.
4369 2: Auto-adjust using PAL/\:PAL-60.
4371 3: PAL
4373 4: PAL-60
4375 5: NTSC
4377 .IPs <0\-3>
4378 Specifies the device number to use if you have more than one em8300 card.
4380 .PD 1
4383 .B ivtv (IVTV only)
4384 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4385 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4386 specific video output driver for TV-out.
4387 Also see the lavc video filter.
4388 .PD 0
4389 .RSs
4390 .IPs <device>
4391 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4392 .IPs <output>
4393 Explicitly choose the TV-out output to be used for the video signal.
4395 .PD 1
4398 .B v4l2 (requires Linux 2.6.22+ kernel)
4399 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4400 Also see the lavc video filter.
4401 .PD 0
4402 .RSs
4403 .IPs <device>
4404 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4405 .IPs <output>
4406 Explicitly choose the TV-out output to be used for the video signal.
4408 .PD 1
4411 .B mpegpes (DVB only)
4412 Video output driver for DVB cards that writes the output to an MPEG-PES file
4413 if no DVB card is installed.
4414 .PD 0
4415 .RSs
4416 .IPs card=<1\-4>
4417 Specifies the device number to use if you have more than one DVB output card
4418 (V3 API only, such as 1.x.y series drivers).
4419 If not specified MPlayer will search the first usable card.
4420 .IPs <filename>
4421 output filename (default: ./grab.mpg)
4423 .PD 1
4426 .B zr (also see \-zr* and \-zrhelp)
4427 Video output driver for a number of MJPEG capture/\:playback cards.
4430 .B zr2 (also see the zrmjpeg video filter)
4431 Video output driver for a number of MJPEG capture/\:playback cards,
4432 second generation.
4433 .PD 0
4434 .RSs
4435 .IPs dev=<device>
4436 Specifies the video device to use.
4437 .IPs norm=<PAL|NTSC|SECAM|auto>
4438 Specifies the video norm to use (default: auto).
4439 .IPs (no)prebuf
4440 (De)Activate prebuffering, not yet supported.
4442 .PD 1
4445 .B "md5sum\ "
4446 Calculate MD5 sums of each frame and write them to a file.
4447 Supports RGB24 and YV12 colorspaces.
4448 Useful for debugging.
4449 .PD 0
4450 .RSs
4451 .IPs outfile=<value>
4452 Specify the output filename (default: ./md5sums).
4454 .PD 1
4457 .B yuv4mpeg
4458 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4459 images and stores it in a file (default: ./stream.yuv).
4460 The format is the same as the one employed by mjpegtools, so this is
4461 useful if you want to process the video with the mjpegtools suite.
4462 It supports the YV12 format.
4463 If your source file has a different format and is interlaced, make sure
4464 to use -vf scale=::1 to ensure the conversion uses interlaced mode.
4465 You can combine it with the \-fixed\-vo option to concatenate files
4466 with the same dimensions and fps value.
4467 .PD 0
4468 .RSs
4469 .IPs interlaced
4470 Write the output as interlaced frames, top field first.
4471 .IPs interlaced_bf
4472 Write the output as interlaced frames, bottom field first.
4473 .IPs file=<filename>
4474 Write the output to <filename> instead of the default stream.yuv.
4475 .REss
4476 .PD 1
4478 .sp 1
4479 .I NOTE:
4480 If you do not specify any option the output is progressive
4481 (i.e.\& not interlaced).
4485 .B "gif89a\ "
4486 Output each frame into a single animated GIF file in the current directory.
4487 It supports only RGB format with 24 bpp and the output is converted to 256
4488 colors.
4489 .PD 0
4490 .RSs
4491 .IPs <fps>
4492 Float value to specify framerate (default: 5.0).
4493 .IPs <output>
4494 Specify the output filename (default: ./out.gif).
4495 .REss
4496 .PD 1
4498 .sp 1
4499 .I NOTE:
4500 You must specify the framerate before the filename or the framerate will
4501 be part of the filename.
4502 .sp 1
4503 .I EXAMPLE:
4505 .PD 0
4506 .RSs
4507 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4509 .PD 1
4512 .B "jpeg\ \ \ "
4513 Output each frame into a JPEG file in the current directory.
4514 Each file takes the frame number padded with leading zeros as name.
4515 .PD 0
4516 .RSs
4517 .IPs [no]progressive
4518 Specify standard or progressive JPEG (default: noprogressive).
4519 .IPs [no]baseline
4520 Specify use of baseline or not (default: baseline).
4521 .IPs optimize=<0\-100>
4522 optimization factor (default: 100)
4523 .IPs smooth=<0\-100>
4524 smooth factor (default: 0)
4525 .IPs quality=<0\-100>
4526 quality factor (default: 75)
4527 .IPs outdir=<dirname>
4528 Specify the directory to save the JPEG files to (default: ./).
4529 .IPs subdirs=<prefix>
4530 Create numbered subdirectories with the specified prefix to
4531 save the files in instead of the current directory.
4532 .IPs "maxfiles=<value> (subdirs only)"
4533 Maximum number of files to be saved per subdirectory.
4534 Must be equal to or larger than 1 (default: 1000).
4536 .PD 1
4539 .B "pnm\ \ \ \ "
4540 Output each frame into a PNM file in the current directory.
4541 Each file takes the frame number padded with leading zeros as name.
4542 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4543 Also see pnm(5), ppm(5) and pgm(5).
4544 .PD 0
4545 .RSs
4546 .IPs "ppm\ \ "
4547 Write PPM files (default).
4548 .IPs "pgm\ \ "
4549 Write PGM files.
4550 .IPs pgmyuv
4551 Write PGMYUV files.
4552 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4553 bottom of the picture.
4554 .IPs "raw\ \ "
4555 Write PNM files in raw mode (default).
4556 .IPs ascii
4557 Write PNM files in ASCII mode.
4558 .IPs outdir=<dirname>
4559 Specify the directory to save the PNM files to (default: ./).
4560 .IPs subdirs=<prefix>
4561 Create numbered subdirectories with the specified prefix to
4562 save the files in instead of the current directory.
4563 .IPs "maxfiles=<value> (subdirs only)"
4564 Maximum number of files to be saved per subdirectory.
4565 Must be equal to or larger than 1 (default: 1000).
4567 .PD 1
4570 .B "png\ \ \ \ "
4571 Output each frame into a PNG file in the current directory.
4572 Each file takes the frame number padded with leading zeros as name.
4573 24bpp RGB and BGR formats are supported.
4574 .PD 0
4575 .RSs
4576 .IPs z=<0\-9>
4577 Specifies the compression level.
4578 0 is no compression, 9 is maximum compression.
4579 .IPs alpha (default: noalpha)
4580 Create PNG files with an alpha channel.
4581 Note that MPlayer in general does not support alpha, so this will only
4582 be useful in some rare cases.
4584 .PD 1
4587 .B "tga\ \ \ \ "
4588 Output each frame into a Targa file in the current directory.
4589 Each file takes the frame number padded with leading zeros as name.
4590 The purpose of this video output driver is to have a simple lossless
4591 image writer to use without any external library.
4592 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4593 You can force a particular format with the format video filter.
4594 .sp 1
4595 .I EXAMPLE:
4597 .PD 0
4598 .RSs
4599 mplayer video.nut \-vf format=bgr15 \-vo tga
4601 .PD 1
4605 .SH "DECODING/FILTERING OPTIONS"
4608 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4609 Specify a priority list of audio codecs to be used, according to their codec
4610 name in codecs.conf.
4611 Use a '\-' before the codec name to omit it.
4612 Use a '+' before the codec name to force it, this will likely crash!
4613 If the list has a trailing ',' MPlayer will fall back on codecs not
4614 contained in the list.
4616 .I NOTE:
4617 See \-ac help for a full list of available codecs.
4618 .sp 1
4619 .I EXAMPLE:
4620 .PD 0
4621 .RSs
4622 .IPs "\-ac mp3acm"
4623 Force the l3codeca.acm MP3 codec.
4624 .IPs "\-ac mad,"
4625 Try libmad first, then fall back on others.
4626 .IPs "\-ac hwac3,a52,"
4627 Try hardware AC-3 passthrough, software AC-3, then others.
4628 .IPs "\-ac hwdts,"
4629 Try hardware DTS passthrough, then fall back on others.
4630 .IPs "\-ac \-ffmp3,"
4631 Skip FFmpeg's MP3 decoder.
4633 .PD 1
4636 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4637 Specify advanced audio filter options:
4638 .RSs
4639 .IPs force=<0\-7>
4640 Forces the insertion of audio filters to one of the following:
4641 .RSss
4642 0: Use completely automatic filter insertion (currently identical to 1).
4644 1: Optimize for accuracy (default).
4646 2: Optimize for speed.
4647 .I Warning:
4648 Some features in the audio filters may silently fail,
4649 and the sound quality may drop.
4651 3: Use no automatic insertion of filters and no optimization.
4652 .I Warning:
4653 It may be possible to crash MPlayer using this setting.
4655 4: Use automatic insertion of filters according to 0 above,
4656 but use floating point processing when possible.
4658 5: Use automatic insertion of filters according to 1 above,
4659 but use floating point processing when possible.
4661 6: Use automatic insertion of filters according to 2 above,
4662 but use floating point processing when possible.
4664 7: Use no automatic insertion of filters according to 3 above,
4665 and use floating point processing when possible.
4666 .REss
4667 .IPs list=<filters>
4668 Same as \-af.
4672 .B \-afm <driver1,driver2,...>
4673 Specify a priority list of audio codec families to be used, according
4674 to their codec name in codecs.conf.
4675 Falls back on the default codecs if none of the given codec families work.
4677 .I NOTE:
4678 See \-afm help for a full list of available codec families.
4679 .sp 1
4680 .I EXAMPLE:
4681 .PD 0
4682 .RSs
4683 .IPs "\-afm ffmpeg"
4684 Try FFmpeg's libavcodec codecs first.
4685 .IPs "\-afm acm,dshow"
4686 Try Win32 codecs first.
4688 .PD 1
4691 .B \-aspect <ratio> (also see \-zoom)
4692 Override movie aspect ratio, in case aspect information is
4693 incorrect or missing in the file being played.
4694 .sp 1
4695 .I EXAMPLE:
4696 .PD 0
4697 .RSs
4698 \-aspect 4:3  or \-aspect 1.3333
4700 \-aspect 16:9 or \-aspect 1.7777
4702 .PD 1
4705 .B \-noaspect
4706 Disable automatic movie aspect ratio compensation.
4709 .B "\-field\-dominance <\-1\-1>"
4710 Set first field for interlaced content.
4711 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4712 \-vf yadif=1, \-vo vdpau:deint and \-vo xvmc:bobdeint.
4713 .PD 0
4714 .RSs
4715 .IPs \-1
4716 auto (default): If the decoder does not export the appropriate information,
4717 it falls back to 0 (top field first).
4718 .IPs 0
4719 top field first
4720 .IPs 1
4721 bottom field first
4723 .PD 1
4726 .B "\-flip \ "
4727 Flip image upside-down.
4730 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4731 Specify libavcodec decoding parameters.
4732 Separate multiple options with a colon.
4733 .sp 1
4734 .I EXAMPLE:
4735 .PD 0
4736 .RSs
4737 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4739 .PD 1
4740 .sp 1
4742 Available options are:
4744 .RSs
4745 .IPs bitexact
4746 Only use bit-exact algorithms in all decoding steps (for codec testing).
4747 .IPs bug=<value>
4748 Manually work around encoder bugs.
4749 .RSss
4750 0: nothing
4752 1: autodetect bugs (default)
4754 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4756 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4758 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4760 16 (mpeg4): padding bug (autodetected)
4762 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4764 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4766 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4768 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4770 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4772 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4773 .REss
4774 .IPs debug=<value>
4775 Display debugging information.
4776 .RSss
4778 0: disabled
4780 1: picture info
4782 2: rate control
4784 4: bitstream
4786 8: macroblock (MB) type
4788 16: per-block quantization parameter (QP)
4790 32: motion vector
4792 0x0040: motion vector visualization (use \-noslices)
4794 0x0080: macroblock (MB) skip
4796 0x0100: startcode
4798 0x0200: PTS
4800 0x0400: error resilience
4802 0x0800: memory management control operations (H.264)
4804 0x1000: bugs
4806 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4808 0x4000: Visualize block types.
4809 .REss
4810 .IPs ec=<value>
4811 Set error concealment strategy.
4812 .RSss
4813 1: Use strong deblock filter for damaged MBs.
4815 2: iterative motion vector (MV) search (slow)
4817 3: all (default)
4818 .REss
4819 .IPs er=<value>
4820 Set error resilience strategy.
4821 .RSss
4823 0: disabled
4825 1: careful (Should work with broken encoders.)
4827 2: normal (default) (Works with compliant encoders.)
4829 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4831 4: very aggressive
4832 .REss
4833 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4834 Enable optimizations which do not comply to the specification and might
4835 potentially cause problems, like simpler dequantization, simpler motion
4836 compensation, assuming use of the default quantization matrix, assuming
4837 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4838 .IPs "gray\ "
4839 grayscale only decoding (a bit faster than with color)
4840 .IPs "idct=<0\-99> (see \-lavcopts)"
4841 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4842 This may come at a price in accuracy, though.
4843 .IPs lowres=<number>[,<w>]
4844 Decode at lower resolutions.
4845 Low resolution decoding is not supported by all codecs, and it will
4846 often result in ugly artifacts.
4847 This is not a bug, but a side effect of not decoding at full resolution.
4848 .RSss
4850 0: disabled
4852 1: 1/2 resolution
4854 2: 1/4 resolution
4856 3: 1/8 resolution
4857 .REss
4859 If <w> is specified lowres decoding will be used only if the width of the
4860 video is major than or equal to <w>.
4862 .B o=<key>=<value>[,<key>=<value>[,...]]
4863 Pass AVOptions to libavcodec decoder.
4864 Note, a patch to make the o= unneeded and pass all unknown options through
4865 the AVOption system is welcome.
4866 A full list of AVOptions can be found in the FFmpeg manual.
4867 Note that some options may conflict with MEncoder options.
4868 .sp 1
4870 .I EXAMPLE:
4872 .RSs
4873 .PD 0
4874 .IPs o=debug=pict
4875 .PD 1
4877 .IPs "sb=<number> (MPEG-2 only)"
4878 Skip the given number of macroblock rows at the bottom.
4879 .IPs "st=<number> (MPEG-2 only)"
4880 Skip the given number of macroblock rows at the top.
4881 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4882 Skips the loop filter (AKA deblocking) during H.264 decoding.
4883 Since the filtered frame is supposed to be used as reference
4884 for decoding dependent frames this has a worse effect on quality
4885 than not doing deblocking on e.g.\& MPEG-2 video.
4886 But at least for high bitrate HDTV this provides a big speedup with
4887 no visible quality loss.
4888 .sp 1
4889 <skipvalue> can be either one of the following:
4890 .RSss
4892 none: Never skip.
4894 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4896 nonref: Skip frames that are not referenced (i.e.\& not used for
4897 decoding other frames, the error cannot "build up").
4899 bidir: Skip B-Frames.
4901 nonkey: Skip all frames except keyframes.
4903 all: Skip all frames.
4904 .REss
4905 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4906 Skips the IDCT step.
4907 This degrades quality a lot of in almost all cases
4908 (see skiploopfilter for available skip values).
4909 .IPs skipframe=<skipvalue>
4910 Skips decoding of frames completely.
4911 Big speedup, but jerky motion and sometimes bad artifacts
4912 (see skiploopfilter for available skip values).
4913 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4914 number of threads to use for decoding (default: 1)
4915 .IPs vismv=<value>
4916 Visualize motion vectors.
4917 .RSss
4919 0: disabled
4921 1: Visualize forward predicted MVs of P-frames.
4923 2: Visualize forward predicted MVs of B-frames.
4925 4: Visualize backward predicted MVs of B-frames.
4926 .REss
4927 .IPs vstats
4928 Prints some statistics and stores them in ./vstats_*.log.
4932 .B \-noslices
4933 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4934 whole frame in a single run.
4935 May be faster or slower, depending on video card and available cache.
4936 It has effect only with libmpeg2 and libavcodec codecs.
4939 .B \-nosound
4940 Do not play/\:encode sound.
4941 Useful for benchmarking.
4944 .B \-novideo
4945 Do not play/\:encode video.
4946 With some demuxers this may not work. In those cases you can try \-vc null \-vo null instead; but "\-vc null" is always unreliable.
4949 .B \-pp <quality> (also see \-vf pp)
4950 Set the DLL postprocess level.
4951 This option is no longer usable with \-vf pp.
4952 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4953 The valid range of \-pp values varies by codec, it is mostly
4954 0\-6, where 0=disable, 6=slowest/\:best.
4957 .B \-pphelp (also see \-vf pp)
4958 Show a summary about the available postprocess filters and their usage.
4961 .B \-ssf <mode>
4962 Specifies software scaler parameters.
4963 .sp 1
4964 .I EXAMPLE:
4965 .PD 0
4966 .RSs
4967 \-vf scale \-ssf lgb=3.0
4969 .PD 1
4970 .PD 0
4971 .RSs
4972 .IPs lgb=<0\-100>
4973 gaussian blur filter (luma)
4974 .IPs cgb=<0\-100>
4975 gaussian blur filter (chroma)
4976 .IPs ls=<\-100\-100>
4977 sharpen filter (luma)
4978 .IPs cs=<\-100\-100>
4979 sharpen filter (chroma)
4980 .IPs chs=<h>
4981 chroma horizontal shifting
4982 .IPs cvs=<v>
4983 chroma vertical shifting
4985 .PD 1
4988 .B \-stereo <mode>
4989 Select type of MP2/\:MP3 stereo output.
4990 .PD 0
4991 .RSs
4992 .IPs 0
4993 stereo
4994 .IPs 1
4995 left channel
4996 .IPs 2
4997 right channel
4999 .PD 1
5002 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
5003 Specify the software scaler algorithm to be used with the \-zoom option.
5004 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
5005 .sp 1
5006 Available types are:
5007 .sp 1
5008 .PD 0
5009 .RSs
5010 .IPs 0
5011 fast bilinear
5012 .IPs 1
5013 bilinear
5014 .IPs 2
5015 bicubic (good quality) (default)
5016 .IPs 3
5017 experimental
5018 .IPs 4
5019 nearest neighbor (bad quality)
5020 .IPs 5
5021 area
5022 .IPs 6
5023 luma bicubic / chroma bilinear
5024 .IPs 7
5025 gauss
5026 .IPs 8
5027 sincR
5028 .IPs 9
5029 lanczos
5030 .IPs 10
5031 natural bicubic spline
5033 .PD 1
5034 .sp 1
5036 .I NOTE:
5037 Some \-sws options are tunable.
5038 The description of the scale video filter has further information.
5042 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
5043 Specify a priority list of video codecs to be used, according to their codec
5044 name in codecs.conf.
5045 Use a '\-' before the codec name to omit it.
5046 Use a '+' before the codec name to force it, this will likely crash!
5047 If the list has a trailing ',' MPlayer will fall back on codecs not
5048 contained in the list.
5050 .I NOTE:
5051 See \-vc help for a full list of available codecs.
5052 .sp 1
5053 .I EXAMPLE:
5054 .PD 0
5055 .RSs
5056 .IPs "\-vc divx"
5057 Force Win32/\:VfW DivX codec, no fallback.
5058 .IPs "\-vc \-divxds,\-divx,"
5059 Skip Win32 DivX codecs.
5060 .IPs "\-vc ffmpeg12,mpeg12,"
5061 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
5063 .PD 1
5066 .B \-vfm <driver1,driver2,...>
5067 Specify a priority list of video codec families to be used, according
5068 to their names in codecs.conf.
5069 Falls back on the default codecs if none of the given codec families work.
5071 .I NOTE:
5072 See \-vfm help for a full list of available codec families.
5073 .sp 1
5074 .I EXAMPLE:
5075 .PD 0
5076 .RSs
5077 .IPs "\-vfm ffmpeg,dshow,vfw"
5078 Try the libavcodec, then Directshow, then VfW codecs and fall back
5079 on others, if they do not work.
5080 .IPs "\-vfm xanim"
5081 Try XAnim codecs first.
5083 .PD 1
5086 .B \-x <x> (also see \-zoom) (MPlayer only)
5087 Scale image to width <x> (if software/\:hardware scaling is available).
5088 Disables aspect calculations.
5091 .B \-xvidopts <option1:option2:...>
5092 Specify additional parameters when decoding with Xvid.
5094 .I NOTE:
5095 Since libavcodec is faster than Xvid you might want to use the libavcodec
5096 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
5097 .sp 1
5098 Xvid's internal postprocessing filters:
5099 .PD 0
5100 .RSs
5101 .IPs "deblock-chroma (also see \-vf pp)"
5102 chroma deblock filter
5103 .IPs "deblock-luma (also see \-vf pp)"
5104 luma deblock filter
5105 .IPs "dering-luma (also see \-vf pp)"
5106 luma deringing filter
5107 .IPs "dering-chroma (also see \-vf pp)"
5108 chroma deringing filter
5109 .IPs "filmeffect (also see \-vf noise)"
5110 Adds artificial film grain to the video.
5111 May increase perceived quality, while lowering true quality.
5113 .sp 1
5115 rendering methods:
5117 .PD 0
5118 .RSs
5119 .IPs "dr2\ \ "
5120 Activate direct rendering method 2.
5121 .IPs nodr2
5122 Deactivate direct rendering method 2.
5124 .PD 1
5127 .B \-xy <value> (also see \-zoom)
5128 .PD 0
5129 .RSs
5130 .IPs value<=8
5131 Scale image by factor <value>.
5132 .IPs value>8
5133 Set width to value and calculate height to keep correct aspect ratio.
5135 .PD 1
5138 .B \-y <y> (also see \-zoom) (MPlayer only)
5139 Scale image to height <y> (if software/\:hardware scaling is available).
5140 Disables aspect calculations.
5143 .B "\-zoom\ \ "
5144 Allow software scaling, where available.
5145 This will allow scaling with output drivers (like x11, fbdev) that
5146 do not support hardware scaling where MPlayer disables scaling by
5147 default for performance reasons.
5151 .SH "AUDIO FILTERS"
5152 Audio filters allow you to modify the audio stream and its properties.
5153 The syntax is:
5156 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
5157 Setup a chain of audio filters.
5159 .I NOTE:
5160 To get a full list of available audio filters, see \-af help.
5161 .sp 1
5162 Audio filters are managed in lists.
5163 There are a few commands to manage the filter list.
5166 .B \-af\-add <filter1[,filter2,...]>
5167 Appends the filters given as arguments to the filter list.
5170 .B \-af\-pre <filter1[,filter2,...]>
5171 Prepends the filters given as arguments to the filter list.
5174 .B \-af\-del <index1[,index2,...]>
5175 Deletes the filters at the given indexes.
5176 Index numbers start at 0, negative numbers address the end of the
5177 list (\-1 is the last).
5180 .B \-af\-clr
5181 Completely empties the filter list.
5183 Available filters are:
5186 .B resample[=srate[:sloppy[:type]]]
5187 Changes the sample rate of the audio stream.
5188 Can be used if you have a fixed frequency sound card or if you are
5189 stuck with an old sound card that is only capable of max 44.1kHz.
5190 This filter is automatically enabled if necessary.
5191 It only supports 16-bit integer and float in native-endian format as input.
5193 .I NOTE:
5194 With MEncoder, you need to also use \-srate <srate>.
5195 .PD 0
5196 .RSs
5197 .IPs <srate>
5198 output sample frequency in Hz.
5199 The valid range for this parameter is 8000 to 192000.
5200 If the input and output sample frequency are the same or if this
5201 parameter is omitted the filter is automatically unloaded.
5202 A high sample frequency normally improves the audio quality,
5203 especially when used in combination with other filters.
5204 .IPs <sloppy>
5205 Allow (1) or disallow (0) the output frequency to differ slightly
5206 from the frequency given by <srate> (default: 1).
5207 Can be used if the startup of the playback is extremely slow.
5208 .IPs <type>
5209 Select which resampling method to use.
5210 .RSss
5211 0: linear interpolation (fast, poor quality especially when upsampling)
5213 1: polyphase filterbank and integer processing
5215 2: polyphase filterbank and floating point processing (slow, best quality)
5216 .REss
5217 .PD 1
5219 .sp 1
5221 .I EXAMPLE:
5223 .PD 0
5224 .RSs
5225 .IPs "mplayer \-af resample=44100:0:0"
5226 would set the output frequency of the resample filter to 44100Hz using
5227 exact output frequency scaling and linear interpolation.
5229 .PD 1
5232 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
5233 Changes the sample rate of the audio stream to an integer <srate> in Hz.
5234 It only supports the 16-bit native-endian format.
5236 .I NOTE:
5237 With MEncoder, you need to also use \-srate <srate>.
5238 .PD 0
5239 .RSs
5240 .IPs <srate>
5241 the output sample rate
5242 .IPs <length>
5243 length of the filter with respect to the lower sampling rate (default: 16)
5244 .IPs <linear>
5245 if 1 then filters will be linearly interpolated between polyphase entries
5246 .IPs <count>
5247 log2 of the number of polyphase entries
5248 (..., 10->1024, 11->2048, 12->4096, ...)
5249 (default: 10->1024)
5250 .IPs <cutoff>
5251 cutoff frequency (0.0\-1.0), default set depending upon filter length
5253 .PD 1
5256 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
5257 Encode multi-channel audio to AC-3 at runtime using libavcodec.
5258 Supports 16-bit native-endian input format, maximum 6 channels.
5259 The output is big-endian when outputting a raw AC-3 stream,
5260 native-endian when outputting to S/PDIF.
5261 The output sample rate of this filter is same with the input sample rate.
5262 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
5263 Otherwise a resampling filter is auto-inserted before this filter to make
5264 the input and output sample rate be 48kHz.
5265 You need to specify '\-channels N' to make the decoder decode audio into
5266 N-channel, then the filter can encode the N-channel input to AC-3.
5268 .PD 0
5269 .RSs
5270 .IPs <tospdif>
5271 Output raw AC-3 stream if zero or not set,
5272 output to S/PDIF for passthrough when <tospdif> is set non-zero.
5273 .IPs <bitrate>
5274 The bitrate to encode the AC-3 stream.
5275 Set it to either 384 or 384000 to get 384kbits.
5276 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
5277               320, 384, 448, 512, 576, 640
5278 Default bitrate is based on the input channel number:
5279 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
5280 .IPs <minchn>
5281 If the input channel number is less than <minchn>, the filter will
5282 detach itself (default: 5).
5284 .PD 1
5287 .B sweep[=speed]
5288 Produces a sine sweep.
5289 .PD 0
5290 .RSs
5291 .IPs <0.0\-1.0>
5292 Sine function delta, use very low values to hear the sweep.
5294 .PD 1
5297 .B sinesuppress[=freq:decay]
5298 Remove a sine at the specified frequency.
5299 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
5300 It probably only works on mono input.
5301 .PD 0
5302 .RSs
5303 .IPs <freq>
5304 The frequency of the sine which should be removed (in Hz) (default: 50)
5305 .IPs <decay>
5306 Controls the adaptivity (a larger value will make the filter adapt to
5307 amplitude and phase changes quicker, a smaller value will make the
5308 adaptation slower) (default: 0.0001).
5309 Reasonable values are around 0.001.
5311 .PD 1
5314 .B bs2b[=option1:option2:...]
5315 Bauer stereophonic to binaural transformation using libbs2b.
5316 Improves the headphone listening experience by making the sound
5317 similar to that from loudspeakers, allowing each ear to hear both
5318 channels and taking into account the distance difference and the
5319 head shadowing effect.
5320 It is applicable only to 2 channel audio.
5321 .PD 0
5322 .RSs
5323 .IPs fcut=<300\-1000>
5324 Set cut frequency in Hz.
5325 .IPs feed=<10\-150>
5326 Set feed level for low frequencies in 0.1*dB.
5327 .IPs profile=<value>
5328 Several profiles are available for convenience:
5329 .PD 0
5330 .RSs
5331 .IPs default
5332 will be used if nothing else was specified (fcut=700, feed=45)
5333 .IPs "cmoy\ "
5334 Chu Moy circuit implementation (fcut=700, feed=60)
5335 .IPs jmeier
5336 Jan Meier circuit implementation (fcut=650, feed=95)
5339 .sp 1
5341 If fcut or feed options are specified together with a profile, they
5342 will be applied on top of the selected profile.
5344 .PD 1
5347 .B hrtf[=flag]
5348 Head-related transfer function: Converts multichannel audio to
5349 2 channel output for headphones, preserving the spatiality of the sound.
5350 .sp 1
5351 .PD 0
5353 .IPs "Flag  Meaning"
5354 .IPs "m     matrix decoding of the rear channel"
5355 .IPs "s     2-channel matrix decoding"
5356 .IPs "0     no matrix decoding (default)"
5358 .PD 1
5361 .B equalizer=[g1:g2:g3:...:g10]
5362 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
5363 This means that it works regardless of what type of audio is being played back.
5364 The center frequencies for the 10 bands are:
5365 .sp 1
5366 .PD 0
5368 .IPs "No. frequency"
5369 .IPs "0    31.25 Hz"
5370 .IPs "1    62.50 Hz"
5371 .IPs "2   125.00 Hz"
5372 .IPs "3   250.00 Hz"
5373 .IPs "4   500.00 Hz"
5374 .IPs "5    1.00 kHz"
5375 .IPs "6    2.00 kHz"
5376 .IPs "7    4.00 kHz"
5377 .IPs "8    8.00 kHz"
5378 .IPs "9   16.00 kHz"
5380 .PD 1
5381 .sp 1
5383 If the sample rate of the sound being played is lower than the center
5384 frequency for a frequency band, then that band will be disabled.
5385 A known bug with this filter is that the characteristics for the
5386 uppermost band are not completely symmetric if the sample
5387 rate is close to the center frequency of that band.
5388 This problem can be worked around by upsampling the sound
5389 using the resample filter before it reaches this filter.
5391 .PD 0
5392 .RSs
5393 .IPs <g1>:<g2>:<g3>:...:<g10>
5394 floating point numbers representing the gain in dB
5395 for each frequency band (\-12\-12)
5397 .sp 1
5399 .I EXAMPLE:
5401 .RSs
5402 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
5403 Would amplify the sound in the upper and lower frequency region
5404 while canceling it almost completely around 1kHz.
5406 .PD 1
5409 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
5410 Can be used for adding, removing, routing and copying audio channels.
5411 If only <nch> is given the default routing is used, it works as
5412 follows: If the number of output channels is bigger than the number of
5413 input channels empty channels are inserted (except mixing from mono to
5414 stereo, then the mono channel is repeated in both of the output
5415 channels).
5416 If the number of output channels is smaller than the number
5417 of input channels the exceeding channels are truncated.
5418 .PD 0
5419 .RSs
5420 .IPs <nch>
5421 number of output channels (1\-8)
5422 .IPs "<nr>\ "
5423 number of routes (1\-8)
5424 .IPs <from1:to1:from2:to2:from3:to3:...>
5425 Pairs of numbers between 0 and 7 that define where to route each channel.
5427 .sp 1
5429 .I EXAMPLE:
5431 .RSs
5432 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5433 Would change the number of channels to 4 and set up 4 routes that
5434 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5435 Observe that if media containing two channels was played back, channels
5436 2 and 3 would contain silence but 0 and 1 would still be swapped.
5437 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5438 Would change the number of channels to 6 and set up 4 routes
5439 that copy channel 0 to channels 0 to 3.
5440 Channel 4 and 5 will contain silence.
5442 .PD 1
5445 .B format[=format] (also see \-format)
5446 Convert between different sample formats.
5447 Automatically enabled when needed by the sound card or another filter.
5448 .PD 0
5449 .RSs
5450 .IPs <format>
5451 Sets the desired format.
5452 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5453 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5454 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5455 and 'ne' the endianness of the computer MPlayer is running on).
5456 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5457 Exceptions to this rule that are also valid format specifiers: u8, s8,
5458 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5460 .PD 1
5463 .B volume[=v[:sc]]
5464 Implements software volume control.
5465 Use this filter with caution since it can reduce the signal
5466 to noise ratio of the sound.
5467 In most cases it is best to set the level for the PCM sound to max,
5468 leave this filter out and control the output level to your
5469 speakers with the master volume control of the mixer.
5470 In case your sound card has a digital PCM mixer instead of an analog
5471 one, and you hear distortion, use the MASTER mixer instead.
5472 If there is an external amplifier connected to the computer (this
5473 is almost always the case), the noise level can be minimized by
5474 adjusting the master level and the volume knob on the amplifier
5475 until the hissing noise in the background is gone.
5477 This filter has a second feature: It measures the overall maximum
5478 sound level and prints out that level when MPlayer exits.
5479 This volume estimate can be used for setting the sound level in
5480 MEncoder such that the maximum dynamic range is utilized.
5481 This feature currently only works with floating-point data,
5482 use e.g. \-af\-adv force=5, or use \-af stats.
5484 .I NOTE:
5485 This filter is not reentrant and can therefore only be enabled
5486 once for every audio stream.
5487 .PD 0
5488 .RSs
5489 .IPs "<v>\ \ "
5490 Sets the desired gain in dB for all channels in the stream
5491 from \-200dB to +60dB, where \-200dB mutes the sound
5492 completely and +60dB equals a gain of 1000 (default: 0).
5493 .IPs "<sc>\ "
5494 Turns soft clipping on (1) or off (0).
5495 Soft-clipping can make the sound more smooth if very
5496 high volume levels are used.
5497 Enable this option if the dynamic range of the
5498 loudspeakers is very low.
5500 .I WARNING:
5501 This feature creates distortion and should be considered a last resort.
5503 .sp 1
5505 .I EXAMPLE:
5507 .RSs
5508 .IPs "mplayer \-af volume=10.1:0 media.avi"
5509 Would amplify the sound by 10.1dB and hard-clip if the
5510 sound level is too high.
5512 .PD 1
5515 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5516 Mixes channels arbitrarily.
5517 Basically a combination of the volume and the channels filter
5518 that can be used to down-mix many channels to only a few,
5519 e.g.\& stereo to mono or vary the "width" of the center
5520 speaker in a surround sound system.
5521 This filter is hard to use, and will require some tinkering
5522 before the desired result is obtained.
5523 The number of options for this filter depends on
5524 the number of output channels.
5525 An example how to downmix a six-channel file to two channels with
5526 this filter can be found in the examples section near the end.
5527 .PD 0
5528 .RSs
5529 .IPs "<n>\ \ "
5530 number of output channels (1\-8)
5531 .IPs <Lij>
5532 How much of input channel i is mixed into output channel j (0\-1).
5533 So in principle you first have n numbers saying what to do with the
5534 first input channel, then n numbers that act on the second input channel
5535 etc.
5536 If you do not specify any numbers for some input channels, 0 is assumed.
5538 .sp 1
5540 .I EXAMPLE:
5542 .RSs
5543 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5544 Would down-mix from stereo to mono.
5545 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5546 Would give 3 channel output leaving channels 0 and 1 intact,
5547 and mix channels 0 and 1 into output channel 2 (which could
5548 be sent to a subwoofer for example).
5550 .PD 1
5553 .B sub[=fc:ch]
5554 Adds a subwoofer channel to the audio stream.
5555 The audio data used for creating the subwoofer channel is
5556 an average of the sound in channel 0 and channel 1.
5557 The resulting sound is then low-pass filtered by a 4th order
5558 Butterworth filter with a default cutoff frequency of 60Hz
5559 and added to a separate channel in the audio stream.
5561 .I Warning:
5562 Disable this filter when you are playing DVDs with Dolby
5563 Digital 5.1 sound, otherwise this filter will disrupt
5564 the sound to the subwoofer.
5565 .PD 0
5566 .RSs
5567 .IPs "<fc>\ "
5568 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5569 For the best result try setting the cutoff frequency as low as possible.
5570 This will improve the stereo or surround sound experience.
5571 .IPs "<ch>\ "
5572 Determines the channel number in which to insert the sub-channel audio.
5573 Channel number can be between 0 and 7 (default: 5).
5574 Observe that the number of channels will automatically
5575 be increased to <ch> if necessary.
5577 .sp 1
5579 .I EXAMPLE:
5581 .RSs
5582 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5583 Would add a sub-woofer channel with a cutoff frequency of
5584 100Hz to output channel 4.
5586 .PD 1
5589 .B "center\ "
5590 Creates a center channel from the front channels.
5591 May currently be low quality as it does not implement a
5592 high-pass filter for proper extraction yet, but averages and
5593 halves the channels instead.
5594 .PD 0
5595 .RSs
5596 .IPs "<ch>\ "
5597 Determines the channel number in which to insert the center channel.
5598 Channel number can be between 0 and 7 (default: 5).
5599 Observe that the number of channels will automatically
5600 be increased to <ch> if necessary.
5602 .PD 1
5605 .B surround[=delay]
5606 Decoder for matrix encoded surround sound like Dolby Surround.
5607 Many files with 2 channel audio actually contain matrixed surround sound.
5608 Requires a sound card supporting at least 4 channels.
5609 .PD 0
5610 .RSs
5611 .IPs <delay>
5612 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5613 This delay should be set as follows: If d1 is the distance
5614 from the listening position to the front speakers and d2 is the distance
5615 from the listening position to the rear speakers, then the delay should
5616 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5618 .sp 1
5620 .I EXAMPLE:
5622 .RSs
5623 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5624 Would add surround sound decoding with 15ms delay for the sound to the
5625 rear speakers.
5627 .PD 1
5630 .B delay[=ch1:ch2:...]
5631 Delays the sound to the loudspeakers such that the sound from the
5632 different channels arrives at the listening position simultaneously.
5633 It is only useful if you have more than 2 loudspeakers.
5634 .PD 0
5635 .RSs
5636 .IPs ch1,ch2,...
5637 The delay in ms that should be imposed on each channel
5638 (floating point number between 0 and 1000).
5640 .PD 1
5641 .sp 1
5643 To calculate the required delay for the different channels do as follows:
5644 .IP 1. 3
5645 Measure the distance to the loudspeakers in meters in relation
5646 to your listening position, giving you the distances s1 to s5
5647 (for a 5.1 system).
5648 There is no point in compensating for the subwoofer (you will not hear the
5649 difference anyway).
5650 .IP 2. 3
5651 Subtract the distances s1 to s5 from the maximum distance,
5652 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5653 .IP 3.
5654 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5656 .PD 0
5657 .sp 1
5659 .I EXAMPLE:
5661 .RSs
5662 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5663 Would delay front left and right by 10.5ms, the two rear channels
5664 and the sub by 0ms and the center channel by 7ms.
5666 .PD 1
5669 .B export[=mmapped_file[:nsamples]]
5670 Exports the incoming signal to other processes using memory mapping (mmap()).
5671 Memory mapped areas contain a header:
5672 .sp 1
5674 int nch                      /*number of channels*/
5675 int size                     /*buffer size*/
5676 unsigned long long counter   /*Used to keep sync, updated every
5677                                time new data is exported.*/
5679 .sp 1
5680 The rest is payload (non-interleaved) 16 bit data.
5681 .PD 0
5682 .RSs
5683 .IPs <mmapped_file>
5684 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5685 .IPs <nsamples>
5686 number of samples per channel (default: 512)
5688 .sp 1
5690 .I EXAMPLE:
5692 .RSs
5693 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5694 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5696 .PD 1
5699 .B extrastereo[=mul]
5700 (Linearly) increases the difference between left and right channels
5701 which adds some sort of "live" effect to playback.
5702 .PD 0
5703 .RSs
5704 .IPs <mul>
5705 Sets the difference coefficient (default: 2.5).
5706 0.0 means mono sound (average of both channels), with 1.0 sound will be
5707 unchanged, with \-1.0 left and right channels will be swapped.
5709 .PD 1
5712 .B volnorm[=method:target]
5713 Maximizes the volume without distorting the sound.
5714 .PD 0
5715 .RSs
5716 .IPs <method>
5717 Sets the used method.
5718 .RSss
5719 1: Use a single sample to smooth the variations via the standard
5720 weighted mean over past samples (default).
5722 2: Use several samples to smooth the variations via the standard
5723 weighted mean over past samples.
5724 .REss
5725 .IPs <target>
5726 Sets the target amplitude as a fraction of the maximum for the
5727 sample type (default: 0.25).
5729 .PD 1
5732 .B ladspa=file:label[:controls...]
5733 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5734 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5735 .PD 0
5736 .RSs
5737 .IPs <file>
5738 Specifies the LADSPA plugin library file.
5739 If LADSPA_PATH is set, it searches for the specified file.
5740 If it is not set, you must supply a fully specified pathname.
5741 .IPs <label>
5742 Specifies the filter within the library.
5743 Some libraries contain only one filter, but others contain many of them.
5744 Entering 'help' here, will list all available filters within the specified
5745 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5746 .IPs <controls>
5747 Controls are zero or more floating point values that determine the
5748 behavior of the loaded plugin (for example delay, threshold or gain).
5749 In verbose mode (add \-v to the MPlayer command line), all available controls
5750 and their valid ranges are printed.
5751 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5753 .PD 1
5756 .B "comp\ \ \ "
5757 Compressor/expander filter usable for microphone input.
5758 Prevents artifacts on very loud sound and raises the volume on
5759 very low sound.
5760 This filter is untested, maybe even unusable.
5763 .B "gate\ \ \ "
5764 Noise gate filter similar to the comp audio filter.
5765 This filter is untested, maybe even unusable.
5768 .B karaoke
5769 Simple voice removal filter exploiting the fact that voice is
5770 usually recorded with mono gear and later 'center' mixed onto
5771 the final audio stream.
5772 Beware that this filter will turn your signal into mono.
5773 Works well for 2 channel tracks; do not bother trying it
5774 on anything but 2 channel stereo.
5777 .B scaletempo[=option1:option2:...]
5778 Scales audio tempo without altering pitch, optionally synced to playback
5779 speed (default).
5781 This works by playing \'stride\' ms of audio at normal speed then
5782 consuming \'stride*scale\' ms of input audio.
5783 It pieces the strides together by blending \'overlap\'% of stride with
5784 audio following the previous stride.
5785 It optionally performs a short statistical analysis on the next \'search\'
5786 ms of audio to determine the best overlap position.
5787 .PD 0
5788 .RSs
5789 .IPs scale=<amount>
5790 Nominal amount to scale tempo.
5791 Scales this amount in addition to speed.
5792 (default: 1.0)
5793 .IPs stride=<amount>
5794 Length in milliseconds to output each stride.
5795 Too high of value will cause noticable skips at high scale amounts and
5796 an echo at low scale amounts.
5797 Very low values will alter pitch.
5798 Increasing improves performance.
5799 (default: 60)
5800 .IPs overlap=<percent>
5801 Percentage of stride to overlap.
5802 Decreasing improves performance.
5803 (default: .20)
5804 .IPs search=<amount>
5805 Length in milliseconds to search for best overlap position.
5806 Decreasing improves performance greatly.
5807 On slow systems, you will probably want to set this very low.
5808 (default: 14)
5809 .IPs speed=<tempo|pitch|both|none>
5810 Set response to speed change.
5811 .RSss
5812 .IPs tempo
5813 Scale tempo in sync with speed (default).
5814 .IPs pitch
5815 Reverses effect of filter.
5816 Scales pitch without altering tempo.
5817 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5818 to your input.conf to step by musical semi-tones.
5819 .I WARNING:
5820 Loses sync with video.
5821 .IPs both
5822 Scale both tempo and pitch.
5823 .IPs none
5824 Ignore speed changes.
5827 .sp 1
5829 .I EXAMPLE:
5831 .RSs
5832 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5833 Would playback media at 1.2x normal speed, with audio at normal pitch.
5834 Changing playback speed, would change audio tempo to match.
5835 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5836 Would playback media at 1.2x normal speed, with audio at normal pitch,
5837 but changing playback speed has no effect on audio tempo.
5838 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5839 Would tweak the quality and performace parameters.
5840 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5841 Would make scaletempo use float code.
5842 Maybe faster on some platforms.
5843 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5844 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5845 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5847 .PD 1
5850 .B "stats\ \ "
5851 Collects and prints statistics about the audio stream, especially the volume.
5852 These statistics are especially intended to help adjusting the volume while
5853 avoiding clipping.
5854 The volumes are printed in dB and compatible with the volume audio filter.
5858 .SH "VIDEO FILTERS"
5859 Video filters allow you to modify the video stream and its properties.
5860 The syntax is:
5863 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5864 Setup a chain of video filters.
5866 Many parameters are optional and set to default values if omitted.
5867 To explicitly use a default value set a parameter to '\-1'.
5868 Parameters w:h means width x height in pixels, x:y means x;y position counted
5869 from the upper left corner of the bigger image.
5871 .I NOTE:
5872 To get a full list of available video filters, see \-vf help.
5873 .sp 1
5874 Video filters are managed in lists.
5875 There are a few commands to manage the filter list.
5878 .B \-vf\-add <filter1[,filter2,...]>
5879 Appends the filters given as arguments to the filter list.
5882 .B \-vf\-pre <filter1[,filter2,...]>
5883 Prepends the filters given as arguments to the filter list.
5886 .B \-vf\-del <index1[,index2,...]>
5887 Deletes the filters at the given indexes.
5888 Index numbers start at 0, negative numbers address the end of the
5889 list (\-1 is the last).
5892 .B \-vf\-clr
5893 Completely empties the filter list.
5895 With filters that support it, you can access parameters by their name.
5898 .B \-vf <filter>=help
5899 Prints the parameter names and parameter value ranges for a particular
5900 filter.
5903 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5904 Sets a named parameter to the given value.
5905 Use on and off or yes and no to set flag parameters.
5907 Available filters are:
5910 .B crop[=w:h:x:y]
5911 Crops the given part of the image and discards the rest.
5912 Useful to remove black bands from widescreen movies.
5913 .PD 0
5914 .RSs
5915 .IPs <w>,<h>
5916 Cropped width and height, defaults to original width and height.
5917 .IPs <x>,<y>
5918 Position of the cropped picture, defaults to center.
5920 .PD 1
5923 .B cropdetect[=limit:round[:reset]]
5924 Calculates necessary cropping parameters and prints the recommended parameters
5925 to stdout.
5926 .PD 0
5927 .RSs
5928 .IPs <limit>
5929 Threshold, which can be optionally specified from nothing (0) to
5930 everything (255) (default: 24).
5932 .IPs <round>
5933 Value which the width/\:height should be divisible by (default: 16).
5934 The offset is automatically adjusted to center the video.
5935 Use 2 to get only even dimensions (needed for 4:2:2 video).
5936 16 is best when encoding to most video codecs.
5938 .IPs <reset>
5939 Counter that determines after how many frames cropdetect will reset the
5940 previously detected largest video area and start over to detect the current
5941 optimal crop area (default: 0).
5942 This can be useful when channel logos distort the video area.
5943 0 indicates never reset and return the largest area encountered during playback.
5945 .PD 1
5948 .B rectangle[=w:h:x:y]
5949 Draws a rectangle of the requested width and height at the specified
5950 coordinates over the image and prints current rectangle parameters
5951 to the console.
5952 This can be used to find optimal cropping parameters.
5953 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5954 you can move and resize the rectangle on the fly.
5955 .PD 0
5956 .RSs
5957 .IPs <w>,<h>
5958 width and height (default: \-1, maximum possible width where boundaries
5959 are still visible.)
5960 .IPs <x>,<y>
5961 top left corner position (default: \-1, uppermost leftmost)
5963 .PD 1
5966 .B expand[=w:h:x:y:o:a:r]
5967 Expands (not scales) movie resolution to the given value and places the
5968 unscaled original at coordinates x, y.
5969 Can be used for placing subtitles/\:OSD in the resulting black bands.
5970 .RSs
5971 .IPs <w>,<h>
5972 Expanded width,height (default: original width,height).
5973 Negative values for w and h are treated as offsets to the original size.
5974 .sp 1
5975 .I EXAMPLE:
5976 .PD 0
5977 .RSs
5978 .IP expand=0:\-50:0:0
5979 Adds a 50 pixel border to the bottom of the picture.
5981 .PD 1
5982 .IPs <x>,<y>
5983 position of original image on the expanded image (default: center)
5984 .IPs "<o>\ \ "
5985 OSD/\:subtitle rendering
5986 .RSss
5987 0: disable (default)
5989 1: enable
5990 .REss
5991 .IPs "<a>\ \ "
5992 Expands to fit an aspect instead of a resolution (default: 0).
5993 .sp 1
5994 .I EXAMPLE:
5995 .PD 0
5996 .RSs
5997 .IP expand=800:::::4/3
5998 Expands to 800x600, unless the source is higher resolution, in which
5999 case it expands to fill a 4/3 aspect.
6001 .PD 1
6002 .IPs "<r>\ \ "
6003 Rounds up to make both width and height divisible by <r> (default: 1).
6007 .B flip (also see \-flip)
6008 Flips the image upside down.
6011 .B "mirror\ "
6012 Mirrors the image on the Y axis.
6015 .B rotate[=<0\-7>]
6016 Rotates the image by 90 degrees and optionally flips it.
6017 For values between 4\-7 rotation is only done if the movie geometry is
6018 portrait and not landscape.
6019 .RSs
6020 .IPs 0
6021 Rotate by 90 degrees clockwise and flip (default).
6022 .IPs 1
6023 Rotate by 90 degrees clockwise.
6024 .IPs 2
6025 Rotate by 90 degrees counterclockwise.
6026 .IPs 3
6027 Rotate by 90 degrees counterclockwise and flip.
6031 .B scale[=w:h[:interlaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
6032 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
6033 colorspace conversion (also see \-sws).
6034 .RSs
6035 .IPs <w>,<h>
6036 scaled width/\:height (default: original width/\:height)
6038 .I NOTE:
6039 If \-zoom is used, and underlying filters (including libvo) are
6040 incapable of scaling, it defaults to d_width/\:d_height!
6041 .RSss
6042  0:   scaled d_width/\:d_height
6044 \-1:   original width/\:height
6046 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
6048 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
6050 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
6051 .REss
6052 .IPs <interlaced>
6053 Toggle interlaced scaling.
6054 .RSss
6055 0: off (default)
6057 1: on
6058 .REss
6059 .IPs <chr_drop>
6060 chroma skipping
6061 .RSss
6062 0: Use all available input lines for chroma.
6064 1: Use only every 2. input line for chroma.
6066 2: Use only every 4. input line for chroma.
6068 3: Use only every 8. input line for chroma.
6069 .REss
6070 .IPs "<par>[:<par2>] (also see \-sws)"
6071 Set some scaling parameters depending on the type of scaler selected
6072 with \-sws.
6073 .RSss
6074 \-sws 2 (bicubic):  B (blurring) and C (ringing)
6076 0.00:0.60 default
6078 0.00:0.75 VirtualDub's "precise bicubic"
6080 0.00:0.50 Catmull-Rom spline
6082 0.33:0.33 Mitchell-Netravali spline
6084 1.00:0.00 cubic B-spline
6086 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
6088 \-sws 9 (lanczos):  filter length (1\-10)
6089 .REss
6090 .IPs <presize>
6091 Scale to preset sizes.
6092 .RSss
6093 qntsc:   352x240 (NTSC quarter screen)
6095 qpal:    352x288 (PAL quarter screen)
6097 ntsc:    720x480 (standard NTSC)
6099 pal:     720x576 (standard PAL)
6101 sntsc:   640x480 (square pixel NTSC)
6103 spal:    768x576 (square pixel PAL)
6104 .REss
6105 .IPs <noup>
6106 Disallow upscaling past the original dimensions.
6107 .RSss
6108 0: Allow upscaling (default).
6110 1: Disallow upscaling if one dimension exceeds its original value.
6112 2: Disallow upscaling if both dimensions exceed their original values.
6113 .REss
6114 .IPs <arnd>
6115 Accurate rounding for the vertical scaler, which may be faster
6116 or slower than the default rounding.
6117 .RSss
6118 0: Disable accurate rounding (default).
6120 1: Enable accurate rounding.
6121 .REss
6125 .B dsize[=aspect|w:h:aspect-method:r]
6126 Changes the intended display size/\:aspect at an arbitrary point in the
6127 filter chain.
6128 Aspect can be given as a fraction (4/3) or floating point number
6129 (1.33).
6130 Alternatively, you may specify the exact display width and height
6131 desired.
6132 Note that this filter does
6133 .B not
6134 do any scaling itself; it just affects
6135 what later scalers (software or hardware) will do when auto-scaling to
6136 correct aspect.
6137 .RSs
6138 .IPs <w>,<h>
6139 New display width and height.
6140 Can also be these special values:
6141 .RSss
6142  0:   original display width and height
6144 \-1:   original video width and height (default)
6146 \-2:   Calculate w/h using the other dimension and the original display
6147 aspect ratio.
6149 \-3:   Calculate w/h using the other dimension and the original video
6150 aspect ratio.
6151 .REss
6152 .sp 1
6153 .I EXAMPLE:
6154 .PD 0
6155 .RSs
6156 .IP dsize=800:\-2
6157 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
6158 800x450 for a 16/9 aspect video.
6160 .IPs <aspect-method>
6161 Modifies width and height according to original aspect ratios.
6162 .RSss
6163 \-1: Ignore original aspect ratio (default).
6165  0: Keep display aspect ratio by using <w> and <h> as maximum
6166 resolution.
6168  1: Keep display aspect ratio by using <w> and <h> as minimum
6169 resolution.
6171  2: Keep video aspect ratio by using <w> and <h> as maximum
6172 resolution.
6174  3: Keep video aspect ratio by using <w> and <h> as minimum
6175 resolution.
6176 .REss
6177 .sp 1
6178 .I EXAMPLE:
6179 .PD 0
6180 .RSs
6181 .IP dsize=800:600:0
6182 Specifies a display resolution of at most 800x600, or smaller, in order
6183 to keep aspect.
6185 .PD 1
6186 .IPs "<r>\ \ "
6187 Rounds up to make both width and height divisible by <r> (default: 1).
6191 .B "yvu9\ \ \ "
6192 Forces software YVU9 to YV12 colorspace conversion.
6193 Deprecated in favor of the software scaler.
6196 .B "yuvcsp\ "
6197 Clamps YUV color values to the CCIR 601 range without doing real conversion.
6200 .B palette
6201 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
6204 .B format[=fourcc[:outfourcc]]
6205 Restricts the colorspace for the next filter without doing any conversion.
6206 Use together with the scale filter for a real conversion.
6208 .I NOTE:
6209 For a list of available formats see format=fmt=help.
6210 .PD 0
6211 .RSs
6212 .IPs <fourcc>
6213 format name like rgb15, bgr24, yv12, etc (default: yuy2)
6214 .IPs <outfourcc>
6215 Format name that should be substituted for the output.
6216 If this is not 100% compatible with the <fourcc> value it will crash.
6218 Valid examples:
6220 format=rgb24:bgr24 format=yuyv:yuy2
6222 Invalid examples (will crash):
6224 format=rgb24:yv12
6226 .PD 1
6229 .B noformat[=fourcc]
6230 Restricts the colorspace for the next filter without doing any conversion.
6231 Unlike the format filter, this will allow any colorspace
6232 .B except
6233 the one you specify.
6235 .I NOTE:
6236 For a list of available formats see noformat=fmt=help.
6237 .PD 0
6238 .RSs
6239 .IPs <fourcc>
6240 format name like rgb15, bgr24, yv12, etc (default: yv12)
6242 .PD 1
6245 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
6246 Enables the specified chain of postprocessing subfilters.
6247 Subfilters must be separated by '/' and can be disabled by
6248 prepending a '\-'.
6249 Each subfilter and some options have a short and a long name that can be
6250 used interchangeably, i.e.\& dr/dering are the same.
6251 All subfilters share common options to determine their scope:
6252 .PD 0
6253 .RSs
6254 .IPs a/autoq
6255 Automatically switch the subfilter off if the CPU is too slow.
6256 .IPs c/chrom
6257 Do chrominance filtering, too (default).
6258 .IPs y/nochrom
6259 Do luminance filtering only (no chrominance).
6260 .IPs n/noluma
6261 Do chrominance filtering only (no luminance).
6263 .PD 1
6264 .sp 1
6267 .I NOTE:
6268 \-pphelp shows a list of available subfilters.
6269 .sp 1
6270 Available subfilters are
6272 .RSs
6273 .IPs hb/hdeblock[:difference[:flatness]]
6274 horizontal deblocking filter
6275 .RSss
6276 <difference>: Difference factor where higher values mean
6277 more deblocking (default: 32).
6279 <flatness>: Flatness threshold where lower values mean
6280 more deblocking (default: 39).
6281 .REss
6282 .IPs vb/vdeblock[:difference[:flatness]]
6283 vertical deblocking filter
6284 .RSss
6285 <difference>: Difference factor where higher values mean
6286 more deblocking (default: 32).
6288 <flatness>: Flatness threshold where lower values mean
6289 more deblocking (default: 39).
6290 .REss
6291 .IPs ha/hadeblock[:difference[:flatness]]
6292 accurate horizontal deblocking filter
6293 .RSss
6294 <difference>: Difference factor where higher values mean
6295 more deblocking (default: 32).
6297 <flatness>: Flatness threshold where lower values mean
6298 more deblocking (default: 39).
6299 .REss
6300 .IPs va/vadeblock[:difference[:flatness]]
6301 accurate vertical deblocking filter
6302 .RSss
6303 <difference>: Difference factor where higher values mean
6304 more deblocking (default: 32).
6306 <flatness>: Flatness threshold where lower values mean
6307 more deblocking (default: 39).
6308 .REss
6309 .sp 1
6310 The horizontal and vertical deblocking filters share the
6311 difference and flatness values so you cannot set
6312 different horizontal and vertical thresholds.
6313 .sp 1
6314 .IPs h1/x1hdeblock
6315 experimental horizontal deblocking filter
6316 .IPs v1/x1vdeblock
6317 experimental vertical deblocking filter
6318 .IPs dr/dering
6319 deringing filter
6320 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
6321 temporal noise reducer
6322 .RSss
6323 <threshold1>: larger -> stronger filtering
6325 <threshold2>: larger -> stronger filtering
6327 <threshold3>: larger -> stronger filtering
6328 .REss
6329 .IPs al/autolevels[:f/fullyrange]
6330 automatic brightness / contrast correction
6331 .RSss
6332 f/fullyrange: Stretch luminance to (0\-255).
6333 .REss
6334 .IPs lb/linblenddeint
6335 Linear blend deinterlacing filter that deinterlaces the given block
6336 by filtering all lines with a (1 2 1) filter.
6337 .IPs li/linipoldeint
6338 Linear interpolating deinterlacing filter that deinterlaces the given block
6339 by linearly interpolating every second line.
6340 .IPs ci/cubicipoldeint
6341 Cubic interpolating deinterlacing filter deinterlaces the given block
6342 by cubically interpolating every second line.
6343 .IPs md/mediandeint
6344 Median deinterlacing filter that deinterlaces the given block
6345 by applying a median filter to every second line.
6346 .IPs fd/ffmpegdeint
6347 FFmpeg deinterlacing filter that deinterlaces the given block
6348 by filtering every second line with a (\-1 4 2 4 \-1) filter.
6349 .IPs l5/lowpass5
6350 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
6351 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
6352 .IPs fq/forceQuant[:quantizer]
6353 Overrides the quantizer table from the input with the constant
6354 quantizer you specify.
6355 .RSss
6356 <quantizer>: quantizer to use
6357 .REss
6358 .IPs de/default
6359 default pp filter combination (hb:a,vb:a,dr:a)
6360 .IPs fa/fast
6361 fast pp filter combination (h1:a,v1:a,dr:a)
6362 .IPs "ac\ \ \ "
6363 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
6366 .sp 1
6367 .I EXAMPLE:
6369 .PD 0
6370 .RSs
6371 .IPs "\-vf pp=hb/vb/dr/al"
6372 horizontal and vertical deblocking, deringing and automatic
6373 brightness/\:contrast
6374 .IPs "\-vf pp=de/\-al"
6375 default filters without brightness/\:contrast correction
6376 .IPs "\-vf pp=default/tmpnoise:1:2:3"
6377 Enable default filters & temporal denoiser.
6378 .IPs "\-vf pp=hb:y/vb:a"
6379 Horizontal deblocking on luminance only, and switch vertical deblocking
6380 on or off automatically depending on available CPU time.
6382 .PD 1
6385 .B spp[=quality[:qp[:mode]]]
6386 Simple postprocessing filter that compresses and decompresses the
6387 image at several (or \- in the case of quality level 6 \- all)
6388 shifts and averages the results.
6389 .RSs
6390 .IPs <quality>
6391 0\-6 (default: 3)
6392 .IPs "<qp>\ "
6393 Force quantization parameter (default: 0, use QP from video).
6394 .IPs <mode>
6395 0: hard thresholding (default)
6397 1: soft thresholding (better deringing, but blurrier)
6399 4: like 0, but also use B-frames' QP (may cause flicker)
6401 5: like 1, but also use B-frames' QP (may cause flicker)
6405 .B uspp[=quality[:qp]]
6406 Ultra simple & slow postprocessing filter that compresses and
6407 decompresses the image at several (or \- in the case of quality
6408 level 8 \- all) shifts and averages the results.
6409 The way this differs from the behavior of spp is that uspp actually
6410 encodes & decodes each case with libavcodec Snow, whereas spp uses
6411 a simplified intra only 8x8 DCT similar to MJPEG.
6412 .RSs
6413 .IPs <quality>
6414 0\-8 (default: 3)
6415 .IPs "<qp>\ "
6416 Force quantization parameter (default: 0, use QP from video).
6420 .B fspp[=quality[:qp[:strength[:bframes]]]]
6421 faster version of the simple postprocessing filter
6422 .RSs
6423 .IPs <quality>
6424 4\-5 (equivalent to spp; default: 4)
6425 .IPs "<qp>\ "
6426 Force quantization parameter (default: 0, use QP from video).
6427 .IPs <\-15\-32>
6428 Filter strength, lower values mean more details but also more artifacts,
6429 while higher values make the image smoother but also blurrier (default:
6430 0 \- PSNR optimal).
6431 .IPs <bframes>
6432 0: do not use QP from B-frames (default)
6434 1: use QP from B-frames too (may cause flicker)
6438 .B pp7[=qp[:mode]]
6439 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6440 only the center sample is used after IDCT.
6441 .RSs
6442 .IPs "<qp>\ "
6443 Force quantization parameter (default: 0, use QP from video).
6444 .IPs <mode>
6445 0: hard thresholding
6447 1: soft thresholding (better deringing, but blurrier)
6449 2: medium thresholding (default, good results)
6453 .B qp=equation
6454 quantization parameter (QP) change filter
6455 .RSs
6456 .IPs <equation>
6457 some equation like "2+2*sin(PI*qp)"
6461 .B geq=equation
6462 generic equation change filter
6463 .RSs
6464 .IPs <equation>
6465 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6466 You can use whitespace to make the equation more readable.
6467 There are a couple of constants that can be used in the equation:
6468 .RSss
6469 PI: the number pi
6471 E: the number e
6473 X / Y: the coordinates of the current sample
6475 W / H: width and height of the image
6477 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6478 1,1 and 0.5,0.5 for YUV 4:2:0.
6480 p(x,y): returns the value of the pixel at location x/y of the current plane.
6481 .REss
6485 .B "test\ \ \ "
6486 Generate various test patterns.
6489 .B rgbtest[=width:height]
6490 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6491 You should see a red, green and blue stripe from top to bottom.
6492 .RSs
6493 .IPs <width>
6494 Desired width of generated image (default: 0).
6495 0 means width of input image.
6497 .IPs <height>
6498 Desired height of generated image (default: 0).
6499 0 means height of input image.
6503 .B lavc[=quality:fps]
6504 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6505 .RSs
6506 .IPs <quality>
6507 1\-31: fixed qscale
6509 32\-:  fixed bitrate in kbits
6510 .IPs <fps>
6511 force output fps (float value) (default: 0, autodetect based on height)
6515 .B dvbscale[=aspect]
6516 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6517 calculating the y axis scaling in software to keep aspect.
6518 Only useful together with expand and scale.
6519 .RSs
6520 .IPs <aspect>
6521 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6522 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6524 .sp 1
6526 .I EXAMPLE:
6528 .PD 0
6529 .RSs
6530 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6531 FIXME: Explain what this does.
6533 .PD 1
6536 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6537 Adds noise.
6538 .PD 0
6539 .RSs
6540 .IPs <0\-100>
6541 luma noise
6542 .IPs <0\-100>
6543 chroma noise
6544 .IPs u
6545 uniform noise (gaussian otherwise)
6546 .IPs t
6547 temporal noise (noise pattern changes between frames)
6548 .IPs a
6549 averaged temporal noise (smoother, but a lot slower)
6550 .IPs h
6551 high quality (slightly better looking, slightly slower)
6552 .IPs p
6553 mix random noise with a (semi)regular pattern
6555 .PD 1
6558 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6559 This filter aims to reduce image noise producing smooth images and making still
6560 images really still (This should enhance compressibility.).
6561 .PD 0
6562 .RSs
6563 .IPs <luma_spatial>
6564 spatial luma strength (default: 4)
6565 .IPs <chroma_spatial>
6566 spatial chroma strength (default: 3)
6567 .IPs <luma_tmp>
6568 luma temporal strength (default: 6)
6569 .IPs <chroma_tmp>
6570 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6572 .PD 1
6575 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6576 High precision/\:quality version of the denoise3d filter.
6577 Parameters and usage are the same.
6580 .B ow[=depth[:luma_strength[:chroma_strength]]]
6581 Overcomplete Wavelet denoiser.
6582 .PD 0
6583 .RSs
6584 .IPs <depth>
6585 Larger depth values will denoise lower frequency components more, but
6586 slow down filtering (default: 8).
6587 .IPs <luma_strength>
6588 luma strength (default: 1.0)
6589 .IPs <chroma_strength>
6590 chroma strength (default: 1.0)
6592 .PD 1
6595 .B eq[=brightness:contrast] (OBSOLETE)
6596 Software equalizer with interactive controls just like the hardware
6597 equalizer, for cards/\:drivers that do not support brightness and
6598 contrast controls in hardware.
6599 Might also be useful with MEncoder, either for fixing poorly captured
6600 movies, or for slightly reducing contrast to mask artifacts and get by
6601 with lower bitrates.
6602 .PD 0
6603 .RSs
6604 .IPs <\-100\-100>
6605 initial brightness
6606 .IPs <\-100\-100>
6607 initial contrast
6609 .PD 1
6612 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6613 Alternative software equalizer that uses lookup tables (very slow),
6614 allowing gamma correction in addition to simple brightness
6615 and contrast adjustment.
6616 Note that it uses the same MMX optimized code as \-vf eq if all
6617 gamma values are 1.0.
6618 The parameters are given as floating point values.
6619 .PD 0
6620 .RSs
6621 .IPs <0.1\-10>
6622 initial gamma value (default: 1.0)
6623 .IPs <\-2\-2>
6624 initial contrast, where negative values result in a
6625 negative image (default: 1.0)
6626 .IPs <\-1\-1>
6627 initial brightness (default: 0.0)
6628 .IPs <0\-3>
6629 initial saturation (default: 1.0)
6630 .IPs <0.1\-10>
6631 gamma value for the red component (default: 1.0)
6632 .IPs <0.1\-10>
6633 gamma value for the green component (default: 1.0)
6634 .IPs <0.1\-10>
6635 gamma value for the blue component (default: 1.0)
6636 .IPs <0\-1>
6637 The weight parameter can be used to reduce the effect of a high gamma value on
6638 bright image areas, e.g.\& keep them from getting overamplified and just plain
6639 white.
6640 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6641 at its full strength (default: 1.0).
6643 .PD 1
6646 .B hue[=hue:saturation]
6647 Software equalizer with interactive controls just like the hardware
6648 equalizer, for cards/\:drivers that do not support hue and
6649 saturation controls in hardware.
6650 .PD 0
6651 .RSs
6652 .IPs <\-180\-180>
6653 initial hue (default: 0.0)
6654 .IPs <\-100\-100>
6655 initial saturation, where negative values result
6656 in a negative chroma (default: 1.0)
6658 .PD 1
6661 .B halfpack[=f]
6662 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6663 keeping all chroma samples.
6664 Useful for output to low-resolution display devices when hardware downscaling
6665 is poor quality or is not available.
6666 Can also be used as a primitive luma-only deinterlacer with very low CPU
6667 usage.
6668 .PD 0
6669 .RSs
6670 .IPs "<f>\ \ "
6671 By default, halfpack averages pairs of lines when downsampling.
6672 Any value different from 0 or 1 gives the default (averaging) behavior.
6673 .RSss
6674 0: Only use even lines when downsampling.
6676 1: Only use odd lines when downsampling.
6677 .REss
6679 .PD 1
6682 .B ilpack[=mode]
6683 When interlaced video is stored in YUV 4:2:0 formats, chroma
6684 interlacing does not line up properly due to vertical downsampling of
6685 the chroma channels.
6686 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6687 the chroma lines in their proper locations, so that in any given
6688 scanline, the luma and chroma data both come from the same field.
6689 .PD 0
6690 .RSs
6691 .IPs <mode>
6692 Select the sampling mode.
6693 .RSss
6694 0: nearest-neighbor sampling, fast but incorrect
6696 1: linear interpolation (default)
6697 .REss
6699 .PD 1
6702 .B harddup
6703 Only useful with MEncoder.
6704 If harddup is used when encoding, it will force duplicate frames to be
6705 encoded in the output.
6706 This uses slightly more space, but is necessary for output to MPEG
6707 files or if you plan to demux and remux the video stream after
6708 encoding.
6709 Should be placed at or near the end of the filter chain unless you
6710 have a good reason to do otherwise.
6713 .B softskip
6714 Only useful with MEncoder.
6715 Softskip moves the frame skipping (dropping) step of encoding from
6716 before the filter chain to some point during the filter chain.
6717 This allows filters which need to see all frames (inverse telecine,
6718 temporal denoising, etc.) to function properly.
6719 Should be placed after the filters which need to see all frames and
6720 before any subsequent filters that are CPU-intensive.
6723 .B decimate[=max:hi:lo:frac]
6724 Drops frames that do not differ greatly from the previous frame in
6725 order to reduce framerate.
6726 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6727 streaming over dialup modem), but it could in theory be used for
6728 fixing movies that were inverse-telecined incorrectly.
6729 .PD 0
6730 .RSs
6731 .IPs <max>
6732 Sets the maximum number of consecutive frames which can be
6733 dropped (if positive), or the minimum interval between
6734 dropped frames (if negative).
6735 .IPs <hi>,<lo>,<frac>
6736 A frame is a candidate for dropping if no 8x8 region differs by more
6737 than a threshold of <hi>, and if not more than <frac> portion (1
6738 meaning the whole image) differs by more than a threshold of <lo>.
6739 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6740 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6741 difference for each pixel, or the same spread out differently over the
6742 block.
6744 .PD 1
6747 .B dint[=sense:level]
6748 The drop-deinterlace (dint) filter detects and drops the first from a set
6749 of interlaced video frames.
6750 .PD 0
6751 .RSs
6752 .IPs <0.0\-1.0>
6753 relative difference between neighboring pixels (default: 0.1)
6754 .IPs <0.0\-1.0>
6755 What part of the image has to be detected as interlaced to
6756 drop the frame (default: 0.15).
6758 .PD 1
6761 .B lavcdeint (OBSOLETE)
6762 FFmpeg deinterlacing filter, same as \-vf pp=fd
6765 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6766 Donald Graft's adaptive kernel deinterlacer.
6767 Deinterlaces parts of a video if a configurable threshold is exceeded.
6768 .PD 0
6769 .RSs
6770 .IPs <0\-255>
6771 threshold (default: 10)
6772 .IPs <map>
6773 .RSss
6774 0: Ignore pixels exceeding the threshold (default).
6776 1: Paint pixels exceeding the threshold white.
6777 .REss
6778 .IPs <order>
6779 .RSss
6780 0: Leave fields alone (default).
6782 1: Swap fields.
6783 .REss
6784 .IPs <sharp>
6785 .RSss
6786 0: Disable additional sharpening (default).
6788 1: Enable additional sharpening.
6789 .REss
6790 .IPs <twoway>
6791 .RSss
6792 0: Disable twoway sharpening (default).
6794 1: Enable twoway sharpening.
6795 .REss
6797 .PD 1
6800 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6801 unsharp mask / gaussian blur
6802 .RSs
6803 .IPs "l\ \ \ \ "
6804 Apply effect on luma component.
6805 .IPs "c\ \ \ \ "
6806 Apply effect on chroma components.
6807 .IPs <width>x<height>
6808 width and height of the matrix, odd sized in both directions
6809 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6810 .IPs amount
6811 Relative amount of sharpness/\:blur to add to the image
6812 (a sane range should be \-1.5\-1.5).
6813 .RSss
6814 <0: blur
6816 >0: sharpen
6817 .REss
6821 .B "swapuv\ "
6822 Swap U & V plane.
6825 .B il[=d|i][s][:[d|i][s]]
6826 (De)interleaves lines.
6827 The goal of this filter is to add the ability to process interlaced images
6828 pre-field without deinterlacing them.
6829 You can filter your interlaced DVD and play it on a TV without breaking the
6830 interlacing.
6831 While deinterlacing (with the postprocessing filter) removes interlacing
6832 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6833 2 fields (so called half pictures), so you can process (filter) them
6834 independently and then re-interleave them.
6835 .PD 0
6836 .RSs
6837 .IPs d
6838 deinterleave (placing one above the other)
6839 .IPs i
6840 interleave
6841 .IPs s
6842 swap fields (exchange even & odd lines)
6844 .PD 1
6847 .B fil[=i|d]
6848 (De)interleaves lines.
6849 This filter is very similar to the il filter but much faster, the main
6850 disadvantage is that it does not always work.
6851 Especially if combined with other filters it may produce randomly messed
6852 up images, so be happy if it works but do not complain if it does not for
6853 your combination of filters.
6854 .PD 0
6855 .RSs
6856 .IPs d
6857 Deinterleave fields, placing them side by side.
6858 .IPs i
6859 Interleave fields again (reversing the effect of fil=d).
6861 .PD 1
6864 .B field[=n]
6865 Extracts a single field from an interlaced image using stride arithmetic
6866 to avoid wasting CPU time.
6867 The optional argument n specifies whether to extract the even or the odd
6868 field (depending on whether n is even or odd).
6871 .B detc[=var1=value1:var2=value2:...]
6872 Attempts to reverse the 'telecine' process to recover a clean,
6873 non-interlaced stream at film framerate.
6874 This was the first and most primitive inverse telecine filter to be
6875 added to MPlayer/\:MEncoder.
6876 It works by latching onto the telecine 3:2 pattern and following it as
6877 long as possible.
6878 This makes it suitable for perfectly-telecined material, even in the
6879 presence of a fair degree of noise, but it will fail in the presence
6880 of complex post-telecine edits.
6881 Development on this filter is no longer taking place, as ivtc, pullup,
6882 and filmdint are better for most applications.
6883 The following arguments (see syntax above) may be used to control
6884 detc's behavior:
6885 .RSs
6886 .IPs "<dr>\ "
6887 Set the frame dropping mode.
6888 .RSss
6889 0: Do not drop frames to maintain fixed output framerate (default).
6891 1: Always drop a frame when there have been no drops or telecine
6892 merges in the past 5 frames.
6894 2: Always maintain exact 5:4 input to output frame ratio.
6896 .I NOTE:
6897 Use mode 1 or 2 with MEncoder.
6898 .REss
6899 .IPs "<am>\ "
6900 Analysis mode.
6901 .RSss
6902 0: Fixed pattern with initial frame number specified by <fr>.
6904 1: aggressive search for telecine pattern (default)
6905 .REss
6906 .IPs "<fr>\ "
6907 Set initial frame number in sequence.
6908 0\-2 are the three clean progressive frames; 3 and 4 are the two
6909 interlaced frames.
6910 The default, \-1, means 'not in telecine sequence'.
6911 The number specified here is the type for the imaginary previous
6912 frame before the movie starts.
6913 .IPs "<t0>, <t1>, <t2>, <t3>"
6914 Threshold values to be used in certain modes.
6918 .B ivtc[=1]
6919 Experimental 'stateless' inverse telecine filter.
6920 Rather than trying to lock on to a pattern like the detc filter does,
6921 ivtc makes its decisions independently for each frame.
6922 This will give much better results for material that has undergone
6923 heavy editing after telecine was applied, but as a result it is not as
6924 forgiving of noisy input, for example TV capture.
6925 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6926 detc filter, and should be used with MEncoder but not with MPlayer.
6927 As with detc, you must specify the correct output framerate (\-ofps
6928 24000/1001) when using MEncoder.
6929 Further development on ivtc has stopped, as the pullup and filmdint
6930 filters appear to be much more accurate.
6933 .B pullup[=jl:jr:jt:jb:sb:mp]
6934 Third-generation pulldown reversal (inverse telecine) filter,
6935 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6936 fps progressive content.
6937 The pullup filter is designed to be much more robust than detc or
6938 ivtc, by taking advantage of future context in making its decisions.
6939 Like ivtc, pullup is stateless in the sense that it does not lock onto
6940 a pattern to follow, but it instead looks forward to the following
6941 fields in order to identify matches and rebuild progressive frames.
6942 It is still under development, but believed to be quite accurate.
6943 .RSs
6944 .IPs "jl, jr, jt, and jb"
6945 These options set the amount of "junk" to ignore at
6946 the left, right, top, and bottom of the image, respectively.
6947 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6948 2 lines.
6949 The default is 8 pixels on each side.
6951 .IPs "sb (strict breaks)"
6952 Setting this option to 1 will reduce the chances of
6953 pullup generating an occasional mismatched frame, but it may also
6954 cause an excessive number of frames to be dropped during high motion
6955 sequences.
6956 Conversely, setting it to \-1 will make pullup match fields more
6957 easily.
6958 This may help processing of video where there is slight blurring
6959 between the fields, but may also cause there to be interlaced frames
6960 in the output.
6962 .IPs "mp (metric plane)"
6963 This option may be set to 1 or 2 to use a chroma
6964 plane instead of the luma plane for doing pullup's computations.
6965 This may improve accuracy on very clean source material, but more
6966 likely will decrease accuracy, especially if there is chroma noise
6967 (rainbow effect) or any grayscale video.
6968 The main purpose of setting mp to a chroma plane is to reduce CPU load
6969 and make pullup usable in realtime on slow machines.
6970 .REss
6972 .sp 1
6973 .I NOTE:
6974 Always follow pullup with the softskip filter when encoding to ensure
6975 that pullup is able to see each frame.
6976 Failure to do so will lead to incorrect output and will usually crash,
6977 due to design limitations in the codec/\:filter layer.
6978 .REss
6981 .B filmdint[=options]
6982 Inverse telecine filter, similar to the pullup filter above.
6983 It is designed to handle any pulldown pattern, including mixed soft and
6984 hard telecine and limited support for movies that are slowed down or sped
6985 up from their original framerate for TV.
6986 Only the luma plane is used to find the frame breaks.
6987 If a field has no match, it is deinterlaced with simple linear
6988 approximation.
6989 If the source is MPEG-2, this must be the first filter to allow
6990 access to the field-flags set by the MPEG-2 decoder.
6991 Depending on the source MPEG, you may be fine ignoring this advice, as
6992 long as you do not see lots of "Bottom-first field" warnings.
6993 With no options it does normal inverse telecine, and should be used
6994 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6995 When this filter is used with MPlayer, it will result in an uneven
6996 framerate during playback, but it is still generally better than using
6997 pp=lb or no deinterlacing at all.
6998 Multiple options can be specified separated by /.
6999 .RSs
7000 .IPs crop=<w>:<h>:<x>:<y>
7001 Just like the crop filter, but faster, and works on mixed hard and soft
7002 telecined content as well as when y is not a multiple of 4.
7003 If x or y would require cropping fractional pixels from the chroma
7004 planes, the crop area is extended.
7005 This usually means that x and y must be even.
7006 .IPs io=<ifps>:<ofps>
7007 For each ifps input frames the filter will output ofps frames.
7008 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
7009 This could be used to filter movies that are broadcast on TV at a frame
7010 rate different from their original framerate.
7011 .IPs luma_only=<n>
7012 If n is nonzero, the chroma plane is copied unchanged.
7013 This is useful for YV12 sampled TV, which discards one of the chroma
7014 fields.
7015 .IPs mmx2=<n>
7016 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
7017 optimized functions, otherwise, use plain C.
7018 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
7019 this option to override auto-detection.
7020 .IPs fast=<n>
7021 The larger n will speed up the filter at the expense of accuracy.
7022 The default value is n=3.
7023 If n is odd, a frame immediately following a frame marked with the
7024 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
7025 will not spend any time on soft-telecined MPEG-2 content.
7026 This is the only effect of this flag if MMX2 or 3DNow! is available.
7027 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
7028 as with n=2 or 3.
7029 If n=2 or 3, the number of luma levels used to find the frame breaks is
7030 reduced from 256 to 128, which results in a faster filter without losing
7031 much accuracy.
7032 If n=4 or 5, a faster, but much less accurate metric will be used to
7033 find the frame breaks, which is more likely to misdetect high vertical
7034 detail as interlaced content.
7035 .IPs verbose=<n>
7036 If n is nonzero, print the detailed metrics for each frame.
7037 Useful for debugging.
7038 .IPs dint_thres=<n>
7039 Deinterlace threshold.
7040 Used during de-interlacing of unmatched frames.
7041 Larger value means less deinterlacing, use n=256 to completely turn off
7042 deinterlacing.
7043 Default is n=8.
7044 .IPs comb_thres=<n>
7045 Threshold for comparing a top and bottom fields.
7046 Defaults to 128.
7047 .IPs diff_thres=<n>
7048 Threshold to detect temporal change of a field.
7049 Default is 128.
7050 .IPs sad_thres=<n>
7051 Sum of Absolute Difference threshold, default is 64.
7055 .B softpulldown
7056 This filter works only correct with MEncoder and acts on the MPEG-2 flags
7057 used for soft 3:2 pulldown (soft telecine).
7058 If you want to use the ivtc or detc filter on movies that are partly soft
7059 telecined, inserting this filter before them should make them more reliable.
7062 .B divtc[=options]
7063 Inverse telecine for deinterlaced video.
7064 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
7065 using a method that keeps one field and interpolates the other, the result is
7066 a juddering video that has every fourth frame duplicated.
7067 This filter is intended to find and drop those duplicates and restore the
7068 original film framerate.
7069 When using this filter, you must specify \-ofps that is 4/5 of
7070 the fps of the input file and place the softskip later in the
7071 filter chain to make sure that divtc sees all the frames.
7072 Two different modes are available:
7073 One pass mode is the default and is straightforward to use,
7074 but has the disadvantage that any changes in the telecine
7075 phase (lost frames or bad edits) cause momentary judder
7076 until the filter can resync again.
7077 Two pass mode avoids this by analyzing the whole video
7078 beforehand so it will have forward knowledge about the
7079 phase changes and can resync at the exact spot.
7080 These passes do
7081 .B not
7082 correspond to pass one and two of the encoding process.
7083 You must run an extra pass using divtc pass one before the
7084 actual encoding throwing the resulting video away.
7085 Use \-nosound \-ovc raw \-o /dev/null to avoid
7086 wasting CPU power for this pass.
7087 You may add something like crop=2:2:0:0 after divtc
7088 to speed things up even more.
7089 Then use divtc pass two for the actual encoding.
7090 If you use multiple encoder passes, use divtc
7091 pass two for all of them.
7092 The options are:
7093 .RSs
7094 .IPs pass=1|2
7095 Use two pass mode.
7096 .IPs file=<filename>
7097 Set the two pass log filename (default: "framediff.log").
7098 .IPs threshold=<value>
7099 Set the minimum strength the telecine pattern must have for the filter to
7100 believe in it (default: 0.5).
7101 This is used to avoid recognizing false pattern from the parts of the video
7102 that are very dark or very still.
7103 .IPs window=<numframes>
7104 Set the number of past frames to look at when searching for pattern
7105 (default: 30).
7106 Longer window improves the reliability of the pattern search, but shorter
7107 window improves the reaction time to the changes in the telecine phase.
7108 This only affects the one pass mode.
7109 The two pass mode currently uses fixed window that extends to both future
7110 and past.
7111 .IPs phase=0|1|2|3|4
7112 Sets the initial telecine phase for one pass mode (default: 0).
7113 The two pass mode can see the future, so it is able to use the correct
7114 phase from the beginning, but one pass mode can only guess.
7115 It catches the correct phase when it finds it, but this option can be used
7116 to fix the possible juddering at the beginning.
7117 The first pass of the two pass mode also uses this, so if you save the output
7118 from the first pass, you get constant phase result.
7119 .IPs deghost=<value>
7120 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
7121 mode, default 0).
7122 If nonzero, deghosting mode is used.
7123 This is for video that has been deinterlaced by blending the fields
7124 together instead of dropping one of the fields.
7125 Deghosting amplifies any compression artifacts in the blended frames, so the
7126 parameter value is used as a threshold to exclude those pixels from
7127 deghosting that differ from the previous frame less than specified value.
7128 If two pass mode is used, then negative value can be used to make the
7129 filter analyze the whole video in the beginning of pass-2 to determine
7130 whether it needs deghosting or not and then select either zero or the
7131 absolute value of the parameter.
7132 Specify this option for pass-2, it makes no difference on pass-1.
7136 .B phase[=t|b|p|a|u|T|B|A|U][:v]
7137 Delay interlaced video by one field time so that the field order
7138 changes.
7139 The intended use is to fix PAL movies that have been captured with the
7140 opposite field order to the film-to-video transfer.
7141 The options are:
7142 .RSs
7143 .IPs t
7144 Capture field order top-first, transfer bottom-first.
7145 Filter will delay the bottom field.
7146 .IPs b
7147 Capture bottom-first, transfer top-first.
7148 Filter will delay the top field.
7149 .IPs p
7150 Capture and transfer with the same field order.
7151 This mode only exists for the documentation of the other options to refer to,
7152 but if you actually select it, the filter will faithfully do nothing ;-)
7153 .IPs a
7154 Capture field order determined automatically by field flags, transfer opposite.
7155 Filter selects among t and b modes on a frame by frame basis using field flags.
7156 If no field information is available, then this works just like u.
7157 .IPs u
7158 Capture unknown or varying, transfer opposite.
7159 Filter selects among t and b on a frame by frame basis by analyzing the
7160 images and selecting the alternative that produces best match between the
7161 fields.
7162 .IPs T
7163 Capture top-first, transfer unknown or varying.
7164 Filter selects among t and p using image analysis.
7165 .IPs B
7166 Capture bottom-first, transfer unknown or varying.
7167 Filter selects among b and p using image analysis.
7168 .IPs A
7169 Capture determined by field flags, transfer unknown or varying.
7170 Filter selects among t, b and p using field flags and image analysis.
7171 If no field information is available, then this works just like U.
7172 This is the default mode.
7173 .IPs U
7174 Both capture and transfer unknown or varying.
7175 Filter selects among t, b and p using image analysis only.
7176 .IPs v
7177 Verbose operation.
7178 Prints the selected mode for each frame and the average squared difference
7179 between fields for t, b, and p alternatives.
7183 .B telecine[=start]
7184 Apply 3:2 'telecine' process to increase framerate by 20%.
7185 This most likely will not work correctly with MPlayer, but it can
7186 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
7187 Both fps options are essential!
7188 (A/V sync will break if they are wrong.)
7189 The optional start parameter tells the filter where in the telecine
7190 pattern to start (0\-3).
7193 .B tinterlace[=mode]
7194 Temporal field interlacing \- merge pairs of frames into an interlaced
7195 frame, halving the framerate.
7196 Even frames are moved into the upper field, odd frames to the lower field.
7197 This can be used to fully reverse the effect of the tfields filter (in mode 0).
7198 Available modes are:
7199 .PD 0
7200 .RSs
7201 .IPs 0
7202 Move odd frames into the upper field, even into the lower field, generating
7203 a full-height frame at half framerate.
7204 .IPs 1
7205 Only output odd frames, even frames are dropped; height unchanged.
7206 .IPs 2
7207 Only output even frames, odd frames are dropped; height unchanged.
7208 .IPs 3
7209 Expand each frame to full height, but pad alternate lines with black;
7210 framerate unchanged.
7211 .IPs 4
7212 Interleave even lines from even frames with odd lines from odd frames.
7213 Height unchanged at half framerate.
7215 .PD 1
7218 .B tfields[=mode[:field_dominance]]
7219 Temporal field separation \- split fields into frames, doubling the
7220 output framerate.
7221 Like the telecine filter, tfields might not work completely right unless
7222 used with MEncoder and both \-fps and \-ofps set to the
7223 desired (double) framerate!
7224 .PD 0
7225 .RSs
7226 .IPs <mode>
7227 0: Leave fields unchanged (will jump/\:flicker).
7229 1: Interpolate missing lines. (The algorithm used might not be so good.)
7231 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
7233 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
7234 .IPs <field_dominance>\ (DEPRECATED)
7235 \-1: auto (default)
7236 Only works if the decoder exports the appropriate information and
7237 no other filters which discard that information come before tfields
7238 in the filter chain, otherwise it falls back to 0 (top field first).
7240 0: top field first
7242 1: bottom field first
7244 .I NOTE:
7245 This option will possibly be removed in a future version.
7246 Use \-field\-dominance instead.
7248 .PD 1
7251 .B yadif=[mode[:field_dominance]]
7252 Yet another deinterlacing filter
7253 .PD 0
7254 .RSs
7255 .IPs <mode>
7256 0: Output 1 frame for each frame.
7258 1: Output 1 frame for each field.
7260 2: Like 0 but skips spatial interlacing check.
7262 3: Like 1 but skips spatial interlacing check.
7263 .IPs <field_dominance>\ (DEPRECATED)
7264 Operates like tfields.
7266 .I NOTE:
7267 This option will possibly be removed in a future version.
7268 Use \-field\-dominance instead.
7270 .PD 1
7273 .B mcdeint=[mode[:parity[:qp]]]
7274 Motion compensating deinterlacer.
7275 It needs one field per frame as input and must thus be used together
7276 with tfields=1 or yadif=1/3 or equivalent.
7277 .PD 0
7278 .RSs
7279 .IPs <mode>
7280 0: fast
7282 1: medium
7284 2: slow, iterative motion estimation
7286 3: extra slow, like 2 plus multiple reference frames
7287 .IPs <parity>
7288 0 or 1 selects which field to use (note: no autodetection yet!).
7289 .IPs "<qp>\ "
7290 Higher values should result in a smoother motion vector
7291 field but less optimal individual vectors.
7293 .PD 1
7296 .B boxblur=radius:power[:radius:power]
7297 box blur
7298 .PD 0
7299 .RSs
7300 .IPs <radius>
7301 blur filter strength
7302 .IPs <power>
7303 number of filter applications
7305 .PD 1
7308 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
7309 shape adaptive blur
7310 .PD 0
7311 .RSs
7312 .IPs <radius>
7313 blur filter strength (~0.1\-4.0) (slower if larger)
7314 .IPs "<pf>\ "
7315 prefilter strength (~0.1\-2.0)
7316 .IPs <colorDiff>
7317 maximum difference between pixels to still be considered (~0.1\-100.0)
7319 .PD 1
7322 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
7323 smart blur
7324 .PD 0
7325 .RSs
7326 .IPs <radius>
7327 blur filter strength (~0.1\-5.0) (slower if larger)
7328 .IPs <strength>
7329 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
7330 .IPs <threshold>
7331 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
7333 .PD 1
7336 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
7337 Correct the perspective of movies not filmed perpendicular to the screen.
7338 .PD 0
7339 .RSs
7340 .IPs <x0>,<y0>,...
7341 coordinates of the top left, top right, bottom left, bottom right corners
7342 .IPs "<t>\ \ "
7343 linear (0) or cubic resampling (1)
7345 .PD 1
7348 .B "2xsai\ \ "
7349 Scale and smooth the image with the 2x scale and interpolate algorithm.
7352 .B "1bpp\ \ \ "
7353 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
7356 .B down3dright[=lines]
7357 Reposition and resize stereoscopic images.
7358 Extracts both stereo fields and places them side by side, resizing
7359 them to maintain the original movie aspect.
7360 .PD 0
7361 .RSs
7362 .IPs <lines>
7363 number of lines to select from the middle of the image (default: 12)
7365 .PD 1
7368 .B bmovl=hidden:opaque:fifo
7369 The bitmap overlay filter reads bitmaps from a FIFO and displays them
7370 on top of the movie, allowing some transformations on the image.
7371 Also see TOOLS/bmovl-test.c for a small bmovl test program.
7372 .PD 0
7373 .RSs
7374 .IPs <hidden>
7375 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
7376 .IPs <opaque>
7377 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
7378 .IPs <fifo>
7379 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
7380 controlling application)
7382 .PD 1
7383 .sp 1
7385 FIFO commands are:
7387 .PD 0
7388 .RSs
7389 .IPs "RGBA32 width height xpos ypos alpha clear"
7390 followed by width*height*4 Bytes of raw RGBA32 data.
7391 .IPs "ABGR32 width height xpos ypos alpha clear"
7392 followed by width*height*4 Bytes of raw ABGR32 data.
7393 .IPs "RGB24 width height xpos ypos alpha clear"
7394 followed by width*height*3 Bytes of raw RGB24 data.
7395 .IPs "BGR24 width height xpos ypos alpha clear"
7396 followed by width*height*3 Bytes of raw BGR24 data.
7397 .IPs "ALPHA width height xpos ypos alpha"
7398 Change alpha transparency of the specified area.
7399 .IPs "CLEAR width height xpos ypos"
7400 Clear area.
7401 .IPs OPAQUE
7402 Disable all alpha transparency.
7403 Send "ALPHA 0 0 0 0 0" to enable it again.
7404 .IPs "HIDE\ "
7405 Hide bitmap.
7406 .IPs "SHOW\ "
7407 Show bitmap.
7409 .PD 1
7410 .sp 1
7412 Arguments are:
7414 .PD 0
7415 .RSs
7416 .IPs "<width>, <height>"
7417 image/area size
7418 .IPs "<xpos>, <ypos>"
7419 Start blitting at position x/y.
7420 .IPs <alpha>
7421 Set alpha difference.
7422 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
7423 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
7424 .RSss
7425 0:    same as original
7427 255:  Make everything opaque.
7429 \-255: Make everything transparent.
7430 .REss
7431 .IPs <clear>
7432 Clear the framebuffer before blitting.
7433 .RSss
7434 0: The image will just be blitted on top of the old one, so you do not need to
7435 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7437 1: clear
7438 .REss
7440 .PD 1
7443 .B framestep=I|[i]step
7444 Renders only every nth frame or every intra frame (keyframe).
7445 .sp 1
7446 If you call the filter with I (uppercase) as the parameter, then
7447 .B only
7448 keyframes are rendered.
7449 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7450 for AVI it means every scene change or every keyint value (see \-lavcopts
7451 keyint= value if you use MEncoder to encode the video).
7452 .sp 1
7453 When a keyframe is found, an 'I!' string followed by a newline character is
7454 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
7455 because it contains the time (in seconds) and frame number of the keyframe
7456 (You can use this information to split the AVI.).
7457 .sp 1
7458 If you call the filter with a numeric parameter 'step' then only one in
7459 every 'step' frames is rendered.
7460 .sp 1
7461 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7462 (like the I parameter).
7463 .sp 1
7464 If you give only the i then nothing is done to the frames, only I! is
7465 printed.
7468 .B tile=xtiles:ytiles:output:start:delta
7469 Tile a series of images into a single, bigger image.
7470 If you omit a parameter or use a value less than 0, then the default
7471 value is used.
7472 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7473 It is probably a good idea to put the scale filter before the tile :-)
7474 .sp 1
7475 The parameters are:
7476 .sp 1
7477 .PD 0
7478 .RSs
7479 .IPs <xtiles>
7480 number of tiles on the x axis (default: 5)
7481 .IPs <ytiles>
7482 number of tiles on the y axis (default: 5)
7483 .IPs <output>
7484 Render the tile when 'output' number of frames are reached, where 'output'
7485 should be a number less than xtile * ytile.
7486 Missing tiles are left blank.
7487 You could, for example, write an 8 * 7 tile every 50 frames to have one
7488 image every 2 seconds @ 25 fps.
7489 .IPs <start>
7490 outer border thickness in pixels (default: 2)
7491 .IPs <delta>
7492 inner border thickness in pixels (default: 4)
7494 .PD 1
7497 .B delogo[=x:y:w:h:t]
7498 Suppresses a TV station logo by a simple interpolation of the
7499 surrounding pixels.
7500 Just set a rectangle covering the logo and watch it disappear (and
7501 sometimes something even uglier appear \- your mileage may vary).
7502 .PD 0
7503 .RSs
7504 .IPs <x>,<y>
7505 top left corner of the logo
7506 .IPs <w>,<h>
7507 width and height of the cleared rectangle
7508 .IPs <t>
7509 Thickness of the fuzzy edge of the rectangle (added to w and h).
7510 When set to \-1, a green rectangle is drawn on the screen to
7511 simplify finding the right x,y,w,h parameters.
7513 .PD 1
7516 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7517 Suppresses a TV station logo, using a PGM or PPM image
7518 file to determine which pixels comprise the logo.
7519 The width and height of the image file must match
7520 those of the video stream being processed.
7521 Uses the filter image and a circular blur
7522 algorithm to remove the logo.
7523 .RSs
7524 .IPs /path/to/logo_bitmap_file_name.pgm
7525 [path] + filename of the filter image.
7529 .B zrmjpeg[=options]
7530 Software YV12 to MJPEG encoder for use with the zr2 video
7531 output device.
7532 .RSs
7533 .IPs maxheight=<h>|maxwidth=<w>
7534 These options set the maximum width and height the zr card
7535 can handle (the MPlayer filter layer currently cannot query those).
7536 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
7537 Use these options to set maxwidth and maxheight automatically to the
7538 values known for card/\:mode combo.
7539 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
7540 .IPs color|bw
7541 Select color or black and white encoding.
7542 Black and white encoding is faster.
7543 Color is the default.
7544 .IPs hdec={1,2,4}
7545 Horizontal decimation 1, 2 or 4.
7546 .IPs vdec={1,2,4}
7547 Vertical decimation 1, 2 or 4.
7548 .IPs quality=1\-20
7549 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
7550 .IPs fd|nofd
7551 By default, decimation is only performed if the Zoran hardware
7552 can upscale the resulting MJPEG images to the original size.
7553 The option fd instructs the filter to always perform the requested
7554 decimation (ugly).
7558 .B screenshot
7559 Allows acquiring screenshots of the movie using slave mode
7560 commands that can be bound to keypresses.
7561 See the slave mode documentation and the INTERACTIVE CONTROL
7562 section for details.
7563 Files named 'shotNNNN.png' will be saved in the working directory,
7564 using the first available number \- no files will be overwritten.
7565 The filter has no overhead when not used and accepts an arbitrary
7566 colorspace, so it is safe to add it to the configuration file.
7567 Make sure that the screenshot filter is added after all other filters
7568 whose effect you want to record on the saved image.
7569 E.g.\& it should be the last filter if you want to have an exact
7570 screenshot of what you see on the monitor.
7574 .B "ass\ \ \ \ "
7575 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7576 Only useful with the \-ass option.
7577 .sp 1
7578 .I EXAMPLE:
7579 .PD 0
7580 .RSs
7581 .IPs "\-vf ass,screenshot"
7582 Moves SSA/ASS rendering before the screenshot filter.
7583 Screenshots taken this way will contain subtitles.
7585 .PD 1
7588 .B blackframe[=amount:threshold]
7589 Detect frames that are (almost) completely black.
7590 Can be useful to detect chapter transitions or commercials.
7591 Output lines consist of the frame number of the detected frame, the
7592 percentage of blackness, the frame type and the frame number of the last
7593 encountered keyframe.
7594 .RSs
7595 .IPs <amount>
7596 Percentage of the pixels that have to be below the threshold (default: 98).
7597 .IPs <threshold>
7598 Threshold below which a pixel value is considered black (default: 32).
7600 .PD 1
7603 .B stereo3d[=in:out]
7604 Stereo3d converts between different stereoscopic image formats.
7605 .RSs
7606 .IPs <in>
7607 Stereoscopic image format of input. Possible values:
7609 .B sbsl or side_by_side_left_first
7611 side by side parallel (left eye left, right eye right)
7613 .B sbsr or side_by_side_right_first
7615 side by side crosseye (right eye left, left eye right)
7617 .B abl or above_below_left_first
7619 above-below (left eye above, right eye below)
7621 .B abl or above_below_right_first
7623 above-below (right eye above, left eye below)
7625 .B ab2l or above_below_half_height_left_first
7627 above-below with half height resolution (left eye above, right eye below)
7629 .B ab2r or above_below_half_height_right_first
7631 above-below with half height resolution (right eye above, left eye below)
7634 .IPs <out>
7635 Stereoscopic image format of output. Possible values are all the input formats
7636 as well as:
7638 .B arcg or anaglyph_red_cyan_gray
7640 anaglyph red/cyan gray (red filter on left eye, cyan filter on right eye)
7642 .B arch or anaglyph_red_cyan_half_color
7644 anaglyph red/cyan half colored (red filter on left eye, cyan filter on right
7645 eye)
7647 .B arcc or anaglyph_red_cyan_color
7649 anaglyph red/cyan color (red filter on left eye, cyan filter on right eye)
7651 .B arcd or anaglyph_red_cyan_dubois
7653 anaglyph red/cyan color optimized with the least squares projection of dubois
7654 (red filter on left eye, cyan filter on right eye)
7656 .B agmg or anaglyph_green_magenta_gray
7658 anaglyph green/magenta gray (green filter on left eye, magenta filter on right
7659 eye)
7661 .B agmh or anaglyph_green_magenta_half_color
7663 anaglyph green/magenta half colored (green filter on left eye, magenta filter on
7664 right eye)
7666 .B agmc or anaglyph_green_magenta_color
7668 anaglyph green/magenta colored (green filter on left eye, magenta filter on
7669 right eye)
7671 .B aybg or anaglyph_yellow_blue_gray
7673 anaglyph yellow/blue gray (yellow filter on left eye, blue filter on right eye)
7675 .B aybh or anaglyph_yellow_blue_half_color
7677 anaglyph yellow/blue half colored (yellow filter on left eye, blue filter on
7678 right eye)
7680 .B aybc or anaglyph_yellow_blue_color
7682 anaglyph yellow/blue colored (yellow filter on left eye, blue filter on right
7683 eye)
7685 .B ml or mono_left
7687 mono output (left eye only)
7689 .B mr or mono_right
7691 mono output (right eye only)
7695 .PD 1
7698 .B gradfun[=strength[:radius]]
7699 Fix the banding artifacts that are sometimes introduced into nearly flat
7700 regions by truncation to 8bit colordepth.
7701 Interpolates the gradients that should go where the bands are, and
7702 dithers them.
7703 .sp 1
7704 This filter is designed for playback only.
7705 Do not use it prior to lossy compression, because compression tends
7706 to lose the dither and bring back the bands.
7707 .RSs
7708 .IPs <strength>
7709 Maximum amount by which the filter will change any one pixel.
7710 Also the threshold for detecting nearly flat regions (default: 1.2).
7711 .IPs <radius>
7712 Neighborhood to fit the gradient to.
7713 Larger radius makes for smoother gradients, but also prevents the filter
7714 from modifying pixels near detailed regions (default: 16).
7718 .B fixpts[=options]
7719 Fixes the presentation timestamps (PTS) of the frames.
7720 By default, the PTS passed to the next filter is dropped, but the following
7721 options can change that:
7722 .RSs
7723 .IPs print
7724 Print the incoming PTS.
7725 .IPs fps=<fps>
7726 Specify a frame per second value.
7727 .IPs start=<pts>
7728 Specify an initial value for the PTS.
7729 .IPs autostart=<n>
7730 Uses the
7731 .IR n th
7732 incoming PTS as the initial PTS.
7733 All previous PTS are kept, so setting a huge value or \-1 keeps the PTS
7734 intact.
7735 .IPs autofps=<n>
7736 Uses the
7737 .IR n th
7738 incoming PTS after the end of autostart to determine the framerate.
7740 .sp 1
7742 .I EXAMPLE:
7744 .PD 0
7745 .RSs
7746 .IPs "\-vf fixpts=fps=24000/1001,ass,fixpts"
7747 Generates a new sequence of PTS, uses it for ASS subtitles, then drops it.
7748 Generating a new sequence is useful when the timestamps are reset during the
7749 program; this is frequent on DVDs.
7750 Dropping it may be necessary to avoid confusing encoders.
7752 .PD 1
7753 .sp 1
7755 .I NOTE:
7756 Using this filter together with any sort of seeking (including -ss and EDLs)
7757 may make demons fly out of your nose.
7761 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7764 .B \-audio\-delay <any floating-point number>
7765 Delays either audio or video by setting a delay field in the header
7766 (default: 0.0).
7767 This does not delay either stream while encoding, but the player will
7768 see the delay field and compensate accordingly.
7769 Positive values delay the audio, and negative values delay the video.
7770 Note that this is the exact opposite of the \-delay option.
7771 For example, if a video plays correctly with \-delay 0.2, you can
7772 fix the video with MEncoder by using \-audio\-delay \-0.2.
7773 .sp 1
7774 Currently, this option only works with the default muxer (\-of avi).
7775 If you are using a different muxer, then you must use \-delay instead.
7778 .B \-audio\-density <1\-50>
7779 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7781 .I NOTE:
7782 CBR only, VBR ignores this as it puts each packet in a new chunk.
7785 .B \-audio\-preload <0.0\-2.0>
7786 Sets up the audio buffering time interval (default: 0.5s).
7789 .B \-fafmttag <format>
7790 Can be used to override the audio format tag of the output file.
7791 .sp 1
7792 .I EXAMPLE:
7793 .PD 0
7794 .RSs
7795 .IPs "\-fafmttag 0x55"
7796 Will have the output file contain 0x55 (mp3) as audio format tag.
7798 .PD 1
7801 .B \-ffourcc <fourcc>
7802 Can be used to override the video fourcc of the output file.
7803 .sp 1
7804 .I EXAMPLE:
7805 .PD 0
7806 .RSs
7807 .IPs "\-ffourcc div3"
7808 Will have the output file contain 'div3' as video fourcc.
7810 .PD 1
7813 .B \-force\-avi\-aspect <0.2\-3.0>
7814 Override the aspect stored in the AVI OpenDML vprp header.
7815 This can be used to change the aspect ratio with '\-ovc copy'.
7818 .B \-frameno\-file <filename> (DEPRECATED)
7819 Specify the name of the audio file with framenumber mappings created in
7820 the first (audio only) pass of a special three pass encoding mode.
7822 .I NOTE:
7823 Using this mode will most likely give you A-V desync.
7824 Do not use it.
7825 It is kept for backwards compatibility only and will possibly
7826 be removed in a future version.
7829 .B \-hr\-edl\-seek
7830 Use a more precise, but much slower method for skipping areas.
7831 Areas marked for skipping are not seeked over, instead all
7832 frames are decoded, but only the necessary frames are encoded.
7833 This allows starting at non-keyframe boundaries.
7835 .I NOTE:
7836 Not guaranteed to work right with '\-ovc copy'.
7839 .B \-info <option1:option2:...> (AVI only)
7840 Specify the info header of the resulting AVI file.
7841 .sp 1
7842 Available options are:
7843 .RSs
7844 .IPs "help\ "
7845 Show this description.
7846 .IPs name=<value>
7847 title of the work
7848 .IPs artist=<value>
7849 artist or author of the work
7850 .IPs genre=<value>
7851 original work category
7852 .IPs subject=<value>
7853 contents of the work
7854 .IPs copyright=<value>
7855 copyright information
7856 .IPs srcform=<value>
7857 original format of the digitized material
7858 .IPs comment=<value>
7859 general comments about the work
7863 .B \-noautoexpand
7864 Do not automatically insert the expand filter into the MEncoder filter chain.
7865 Useful to control at which point of the filter chain subtitles are rendered
7866 when hardcoding subtitles onto a movie.
7869 .B \-noencodedups
7870 Do not attempt to encode duplicate frames in duplicate; always output
7871 zero-byte frames to indicate duplicates.
7872 Zero-byte frames will be written anyway unless a filter or encoder
7873 capable of doing duplicate encoding is loaded.
7874 Currently the only such filter is harddup.
7877 .B \-noodml (\-of avi only)
7878 Do not write OpenDML index for AVI files >1GB.
7881 .B \-noskip
7882 Do not skip frames.
7885 .B \-o <filename>
7886 Outputs to the given filename.
7888 If you want a default output filename, you can put this option in the
7889 MEncoder config file.
7892 .B \-oac <codec name>
7893 Encode with the given audio codec (no default set).
7895 .I NOTE:
7896 Use \-oac help to get a list of available audio codecs.
7897 .sp 1
7898 .I EXAMPLE:
7899 .PD 0
7900 .RSs
7901 .IPs "\-oac copy"
7902 no encoding, just streamcopy
7903 .IPs "\-oac pcm"
7904 Encode to uncompressed PCM.
7905 .IPs "\-oac mp3lame"
7906 Encode to MP3 (using LAME).
7907 .IPs "\-oac lavc"
7908 Encode with a libavcodec codec.
7910 .PD 1
7913 .B \-of <format> (BETA CODE!)
7914 Encode to the specified container format (default: AVI).
7916 .I NOTE:
7917 Use \-of help to get a list of available container formats.
7918 .sp 1
7919 .I EXAMPLE:
7920 .PD 0
7921 .RSs
7922 .IPs "\-of avi"
7923 Encode to AVI.
7924 .IPs "\-of mpeg"
7925 Encode to MPEG (also see \-mpegopts).
7926 .IPs "\-of lavf"
7927 Encode with libavformat muxers (also see \-lavfopts).
7928 .IPs "\-of rawvideo"
7929 raw video stream (no muxing \- one video stream only)
7930 .IPs "\-of rawaudio"
7931 raw audio stream (no muxing \- one audio stream only)
7933 .PD 1
7936 .B \-ofps <fps>
7937 Specify a frames per second (fps) value for the output file,
7938 which can be different from that of the source material.
7939 Must be set for variable fps (ASF, some MOV) and progressive
7940 (30000/1001 fps telecined MPEG) files.
7943 .B \-ovc <codec name>
7944 Encode with the given video codec (no default set).
7946 .I NOTE:
7947 Use \-ovc help to get a list of available video codecs.
7948 .sp 1
7949 .I EXAMPLE:
7950 .PD 0
7951 .RSs
7952 .IPs "\-ovc copy"
7953 no encoding, just streamcopy
7954 .IPs "\-ovc raw"
7955 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7956 .IPs "\-ovc lavc"
7957 Encode with a libavcodec codec.
7959 .PD 1
7962 .B \-passlogfile <filename>
7963 Dump first pass information to <filename> instead of the default divx2pass.log
7964 in two pass encoding mode.
7967 .B \-skiplimit <value>
7968 Specify the maximum number of frames that may be skipped after
7969 encoding one frame (\-noskiplimit for unlimited).
7972 .B \-vobsubout <basename>
7973 Specify the basename for the output .idx and .sub files.
7974 This turns off subtitle rendering in the encoded movie and diverts it to
7975 VOBsub subtitle files.
7978 .B \-vobsuboutid <langid>
7979 Specify the language two letter code for the subtitles.
7980 This overrides what is read from the DVD or the .ifo file.
7983 .B \-vobsuboutindex <index>
7984 Specify the index of the subtitles in the output files (default: 0).
7988 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7989 You can specify codec specific encoding parameters using the following
7990 syntax:
7993 .B \-<codec>opts <option1[=value1]:option2[=value2]:...>
7996 Where <codec> may be: lavc, xvidenc, mp3lame, toolame, twolame,
7997 nuv, xvfw, faac, x264enc, mpeg, lavf.
8000 .SS mp3lame (\-lameopts)
8003 .B "help\ \ \ "
8004 get help
8007 .B vbr=<0\-4>
8008 variable bitrate method
8009 .PD 0
8010 .RSs
8011 .IPs 0
8013 .IPs 1
8015 .IPs 2
8016 rh (default)
8017 .IPs 3
8019 .IPs 4
8020 mtrh
8022 .PD 1
8025 .B "abr\ \ \ \ "
8026 average bitrate
8029 .B "cbr\ \ \ \ "
8030 constant bitrate
8031 Also forces CBR mode encoding on subsequent ABR presets modes.
8034 .B br=<0\-1024>
8035 bitrate in kbps (CBR and ABR only)
8038 .B q=<0\-9>
8039 quality (0 \- highest, 9 \- lowest) (VBR only)
8042 .B aq=<0\-9>
8043 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
8046 .B ratio=<1\-100>
8047 compression ratio
8050 .B vol=<0\-10>
8051 audio input gain
8054 .B mode=<0\-3>
8055 (default: auto)
8056 .PD 0
8057 .RSs
8058 .IPs 0
8059 stereo
8060 .IPs 1
8061 joint-stereo
8062 .IPs 2
8063 dualchannel
8064 .IPs 3
8065 mono
8067 .PD 1
8070 .B padding=<0\-2>
8071 .PD 0
8072 .RSs
8073 .IPs 0
8074 none
8075 .IPs 1
8077 .IPs 2
8078 adjust
8080 .PD 1
8083 .B "fast\ \ \ "
8084 Switch on faster encoding on subsequent VBR presets modes.
8085 This results in slightly lower quality and higher bitrates.
8088 .B highpassfreq=<freq>
8089 Set a highpass filtering frequency in Hz.
8090 Frequencies below the specified one will be cut off.
8091 A value of \-1 will disable filtering, a value of 0
8092 will let LAME choose values automatically.
8095 .B lowpassfreq=<freq>
8096 Set a lowpass filtering frequency in Hz.
8097 Frequencies above the specified one will be cut off.
8098 A value of \-1 will disable filtering, a value of 0
8099 will let LAME choose values automatically.
8102 .B preset=<value>
8103 preset values
8104 .RSs
8105 .IPs "help\ "
8106 Print additional options and information about presets settings.
8107 .IPs medium
8108 VBR encoding, good quality, 150\-180 kbps bitrate range
8109 .IPs standard
8110 VBR encoding, high quality, 170\-210 kbps bitrate range
8111 .IPs extreme
8112 VBR encoding, very high quality, 200\-240 kbps bitrate range
8113 .IPs insane
8114 CBR encoding, highest preset quality, 320 kbps bitrate
8115 .IPs <8\-320>
8116 ABR encoding at average given kbps bitrate
8118 .sp 1
8120 .I EXAMPLES:
8122 .PD 0
8123 .RSs
8124 .IPs fast:preset=standard
8125 suitable for most people and most music types and already quite high quality
8126 .IPs cbr:preset=192
8127 Encode with ABR presets at a 192 kbps forced constant bitrate.
8128 .IPs preset=172
8129 Encode with ABR presets at a 172 kbps average bitrate.
8130 .IPs preset=extreme
8131 for people with extremely good hearing and similar equipment
8133 .PD 1
8136 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
8139 .B br=<32\-384>
8140 In CBR mode this parameter indicates the bitrate in kbps,
8141 when in VBR mode it is the minimum bitrate allowed per frame.
8142 VBR mode will not work with a value below 112.
8145 .B vbr=<\-50\-50> (VBR only)
8146 variability range; if negative the encoder shifts the average bitrate
8147 towards the lower limit, if positive towards the higher.
8148 When set to 0 CBR is used (default).
8151 .B maxvbr=<32\-384> (VBR only)
8152 maximum bitrate allowed per frame, in kbps
8155 .B mode=<stereo  |  jstereo  |  mono  |  dual>
8156 (default: mono for 1-channel audio, stereo otherwise)
8159 .B psy=<\-1\-4>
8160 psychoacoustic model (default: 2)
8163 .B errprot=<0 | 1>
8164 Include error protection.
8167 .B debug=<0\-10>
8168 debug level
8170 .PD 1
8173 .SS faac (\-faacopts)
8176 .B br=<bitrate>
8177 average bitrate in kbps (mutually exclusive with quality)
8180 .B quality=<1\-1000>
8181 quality mode, the higher the better (mutually exclusive with br)
8184 .B object=<1\-4>
8185 object type complexity
8186 .PD 0
8187 .RSs
8188 .IPs 1
8189 MAIN (default)
8190 .IPs 2
8192 .IPs 3
8194 .IPs 4
8195 LTP (extremely slow)
8197 .PD 1
8200 .B mpeg=<2|4>
8201 MPEG version (default: 4)
8204 .B "tns\ \ \ \ "
8205 Enables temporal noise shaping.
8208 .B cutoff=<0\-sampling_rate/2>
8209 cutoff frequency (default: sampling_rate/2)
8212 .B "raw\ \ \ \ "
8213 Stores the bitstream as raw payload with extradata in the container header
8214 (default: 0, corresponds to ADTS).
8215 Do not set this flag if not explicitly required or you will not be able to
8216 remux the audio stream later on.
8218 .PD 1
8221 .SS lavc (\-lavcopts)
8223 Many libavcodec (lavc for short) options are tersely documented.
8224 Read the source for full details.
8226 .I EXAMPLE:
8227 .PD 0
8228 .RSs
8229 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
8231 .PD 1
8234 .B o=<key>=<value>[,<key>=<value>[,...]]
8235 Pass AVOptions to libavcodec encoder.
8236 Note, a patch to make the o= unneeded and pass all unknown options through
8237 the AVOption system is welcome.
8238 A full list of AVOptions can be found in the FFmpeg manual.
8239 Note that some AVOptions may conflict with MEncoder options.
8240 .sp 1
8242 .I EXAMPLE:
8244 .RSs
8245 .PD 0
8246 .IPs o=bt=100k
8247 .PD 1
8251 .B acodec=<value>
8252 audio codec (default: mp2)
8253 .PD 0
8254 .RSs
8255 .IPs "ac3\ \ "
8256 Dolby Digital (AC-3)
8257 .IPs adpcm_*
8258 Adaptive PCM formats \- see the HTML documentation for details.
8259 .IPs "flac\ "
8260 Free Lossless Audio Codec (FLAC)
8261 .IPs "g726\ "
8262 G.726 ADPCM
8263 .IPs libfaac
8264 Advanced Audio Coding (AAC) \- using FAAC
8265 .IPs libmp3lame
8266 MPEG-1 audio layer 3 (MP3) \- using LAME
8267 .IPs "mp2\ \ "
8268 MPEG-1 audio layer 2 (MP2)
8269 .IPs pcm_*
8270 PCM formats \- see the HTML documentation for details.
8271 .IPs roq_dpcm
8272 Id Software RoQ DPCM
8273 .IPs sonic
8274 experimental simple lossy codec
8275 .IPs sonicls
8276 experimental simple lossless codec
8277 .IPs vorbis
8278 Vorbis
8279 .IPs wmav1
8280 Windows Media Audio v1
8281 .IPs wmav2
8282 Windows Media Audio v2
8284 .PD 1
8287 .B abitrate=<value>
8288 audio bitrate in kbps (default: 224)
8291 .B atag=<value>
8292 Use the specified Windows audio format tag (e.g.\& atag=0x55).
8295 .B bit_exact
8296 Use only bit exact algorithms (except (I)DCT).
8297 Additionally bit_exact disables several optimizations and thus
8298 should only be used for regression tests, which need binary
8299 identical files even if the encoder version changes.
8300 This also suppresses the user_data header in MPEG-4 streams.
8301 Do not use this option unless you know exactly what you are doing.
8304 .B threads=<1\-8>
8305 Maximum number of threads to use (default: 1).
8306 May have a slight negative effect on motion estimation.
8310 .B vcodec=<value>
8311 Employ the specified codec (default: mpeg4).
8312 .PD 0
8313 .RSs
8314 .IPs "asv1\ "
8315 ASUS Video v1
8316 .IPs "asv2\ "
8317 ASUS Video v2
8318 .IPs dvvideo
8319 Sony Digital Video
8320 .IPs "ffv1\ "
8321 FFmpeg's lossless video codec
8322 .IPs ffvhuff
8323 nonstandard 20% smaller HuffYUV using YV12
8324 .IPs "flv\ \ "
8325 Sorenson H.263 used in Flash Video
8326 .IPs "h261\ "
8327 H.261
8328 .IPs "h263\ "
8329 H.263
8330 .IPs h263p
8331 H.263+
8332 .IPs huffyuv
8333 HuffYUV
8334 .IPs libtheora
8335 Theora
8336 .IPs libx264
8337 x264 H.264/AVC MPEG-4 Part 10
8338 .IPs libxvid
8339 Xvid MPEG-4 Part 2 (ASP)
8340 .IPs ljpeg
8341 Lossless JPEG
8342 .IPs mjpeg
8343 Motion JPEG
8344 .IPs mpeg1video
8345 MPEG-1 video
8346 .IPs mpeg2video
8347 MPEG-2 video
8348 .IPs mpeg4
8349 MPEG-4 (DivX 4/5)
8350 .IPs msmpeg4
8351 DivX 3
8352 .IPs msmpeg4v2
8353 MS MPEG4v2
8354 .IPs roqvideo
8355 ID Software RoQ Video
8356 .IPs "rv10\ "
8357 an old RealVideo codec
8358 .IPs "snow (also see: vstrict)"
8359 FFmpeg's experimental wavelet-based codec
8360 .IPs "svq1\ "
8361 Apple Sorenson Video 1
8362 .IPs "wmv1\ "
8363 Windows Media Video, version 1 (AKA WMV7)
8364 .IPs "wmv2\ "
8365 Windows Media Video, version 2 (AKA WMV8)
8367 .PD 1
8370 .B vqmin=<1\-31>
8371 minimum quantizer
8372 .RSs
8373 .IPs 1
8374 Not recommended (much larger file, little quality difference and weird side
8375 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
8376 resulting in lower quality and some decoders will not be able to decode it).
8377 .IPs 2
8378 Recommended for normal mpeg4/\:mpeg1video encoding (default).
8379 .IPs 3
8380 Recommended for h263(p)/\:msmpeg4.
8381 The reason for preferring 3 over 2 is that 2 could lead to overflows.
8382 (This will be fixed for h263(p) by changing the quantizer per MB in
8383 the future, msmpeg4 cannot be fixed as it does not support that.)
8387 .B lmin=<0.01\-255.0>
8388 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
8389 Lavc will rarely use quantizers below the value of lmin.
8390 Lowering lmin will make lavc more likely to choose lower quantizers for
8391 some frames, but not lower than the value of vqmin.
8392 Likewise, raising lmin will make lavc less likely to choose low
8393 quantizers, even if vqmin would have allowed them.
8394 You probably want to set lmin approximately equal to vqmin.
8395 When adaptive quantization is in use, changing lmin/lmax may have less
8396 of an effect; see mblmin/mblmax.
8400 .B lmax=<0.01\-255.0>
8401 maximum Lagrange multiplier for ratecontrol (default: 31.0)
8405 .B mblmin=<0.01\-255.0>
8406 Minimum macroblock-level Lagrange multiplier for ratecontrol
8407 (default:2.0).
8408 This parameter affects adaptive quantization options like qprd,
8409 lumi_mask, etc..
8413 .B mblmax=<0.01\-255.0>
8414 Maximum macroblock-level Lagrange multiplier for ratecontrol
8415 (default: 31.0).
8419 .B vqscale=<0\-31>
8420 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
8421 A lower value means better quality but larger files (default: \-1).
8422 In case of snow codec, value 0 means lossless encoding.
8423 Since the other codecs do not support this, vqscale=0 will have an undefined
8424 effect.
8425 1 is not recommended (see vqmin for details).
8428 .B vqmax=<1\-31>
8429 Maximum quantizer, 10\-31 should be a sane range (default: 31).
8432 .B mbqmin=<1\-31>
8433 obsolete, use vqmin
8436 .B mbqmax=<1\-31>
8437 obsolete, use vqmax
8440 .B vqdiff=<1\-31>
8441 maximum quantizer difference between consecutive I- or P-frames
8442 (default: 3)
8445 .B vmax_b_frames=<0\-4>
8446 maximum number of B-frames between non-B-frames:
8447 .PD 0
8448 .RSs
8449 .IPs 0
8450 no B-frames (default)
8451 .IPs 0\-2
8452 sane range for MPEG-4
8454 .PD 1
8457 .B vme=<0\-5>
8458 motion estimation method.
8459 Available methods are:
8460 .PD 0
8461 .RSs
8462 .IPs 0
8463 none (very low quality)
8464 .IPs 1
8465 full (slow, currently unmaintained and disabled)
8466 .IPs 2
8467 log (low quality, currently unmaintained and disabled)
8468 .IPs 3
8469 phods (low quality, currently unmaintained and disabled)
8470 .IPs 4
8471 EPZS: size=1 diamond, size can be adjusted with the *dia options
8472 (default)
8473 .IPs 5
8474 X1 (experimental, currently aliased to EPZS)
8475 .IPs 8
8476 iter (iterative overlapped block, only used in snow)
8478 .PD 1
8479 .sp 1
8482 .I NOTE:
8483 0\-3 currently ignores the amount of bits spent,
8484 so quality may be low.
8488 .B me_range=<0\-9999>
8489 motion estimation search range (default: 0 (unlimited))
8492 .B mbd=<0\-2> (also see *cmp, qpel)
8493 Macroblock decision algorithm (high quality mode), encode each macro
8494 block in all modes and choose the best.
8495 This is slow but results in better quality and file size.
8496 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
8497 macroblocks (the mbcmp value is still used in other places though, in particular
8498 the motion search algorithms).
8499 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
8500 however, a slower but better half-pel motion search will be used,
8501 regardless of what mbd is set to.
8502 If qpel is set, quarter-pel motion search will be used regardless.
8503 .PD 0
8504 .RSs
8505 .IPs 0
8506 Use comparison function given by mbcmp (default).
8507 .IPs 1
8508 Select the MB mode which needs the fewest bits (=vhq).
8509 .IPs 2
8510 Select the MB mode which has the best rate distortion.
8512 .PD 1
8515 .B "vhq\ \ \ \ "
8516 Same as mbd=1, kept for compatibility reasons.
8519 .B "v4mv\ \ \ "
8520 Allow 4 motion vectors per macroblock (slightly better quality).
8521 Works better if used with mbd>0.
8524 .B "obmc\ \ \ "
8525 overlapped block motion compensation (H.263+)
8528 .B "loop\ \ \ "
8529 loop filter (H.263+)
8530 note, this is broken
8533 .B inter_threshold <\-1000\-1000>
8534 Does absolutely nothing at the moment.
8537 .B keyint=<0\-300>
8538 maximum interval between keyframes in frames (default: 250 or one
8539 keyframe every ten seconds in a 25fps movie.
8540 This is the recommended default for MPEG-4).
8541 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
8542 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
8543 keyframes need more space than other frames, so larger numbers here mean
8544 slightly smaller files but less precise seeking.
8545 0 is equivalent to 1, which makes every frame a keyframe.
8546 Values >300 are not recommended as the quality might be bad depending upon
8547 decoder, encoder and luck.
8548 It is common for MPEG-1/2 to use values <=30.
8551 .B sc_threshold=<\-1000000000\-1000000000>
8552 Threshold for scene change detection.
8553 A keyframe is inserted by libavcodec when it detects a scene change.
8554 You can specify the sensitivity of the detection with this option.
8555 \-1000000000 means there is a scene change detected at every frame,
8556 1000000000 means no scene changes are detected (default: 0).
8559 .B sc_factor=<any positive integer>
8560 Causes frames with higher quantizers to be more likely to trigger a
8561 scene change detection and make libavcodec use an I-frame (default: 1).
8562 1\-16 is a sane range.
8563 Values between 2 and 6 may yield increasing PSNR (up to approximately
8564 0.04 dB) and better placement of I-frames in high-motion scenes.
8565 Higher values than 6 may give very slightly better PSNR (approximately
8566 0.01 dB more than sc_factor=6), but noticably worse visual quality.
8569 .B vb_strategy=<0\-2> (pass one only)
8570 strategy to choose between I/P/B-frames:
8571 .PD 0
8572 .RSs
8573 .IPs 0
8574 Always use the maximum number of B-frames (default).
8575 .IPs 1
8576 Avoid B-frames in high motion scenes.
8577 See the b_sensitivity option to tune this strategy.
8578 .IPs 2
8579 Places B-frames more or less optimally to yield maximum quality (slower).
8580 You may want to reduce the speed impact of this option by tuning the
8581 option brd_scale.
8583 .PD 1
8586 .B b_sensitivity=<any integer greater than 0>
8587 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
8588 B-frames (default: 40).
8589 Lower sensitivities will result in more B-frames.
8590 Using more B-frames usually improves PSNR, but too many B-frames can
8591 hurt quality in high-motion scenes.
8592 Unless there is an extremely high amount of motion, b_sensitivity can
8593 safely be lowered below the default; 10 is a reasonable value in most
8594 cases.
8597 .B brd_scale=<0\-10>
8598 Downscales frames for dynamic B-frame decision (default: 0).
8599 Each time brd_scale is increased by one, the frame dimensions are
8600 divided by two, which improves speed by a factor of four.
8601 Both dimensions of the fully downscaled frame must be even numbers, so
8602 brd_scale=1 requires the original dimensions to be multiples of four,
8603 brd_scale=2 requires multiples of eight, etc.
8604 In other words, the dimensions of the original frame must both be
8605 divisible by 2^(brd_scale+1) with no remainder.
8608 .B bidir_refine=<0\-4>
8609 Refine the two motion vectors used in bidirectional macroblocks,
8610 rather than re-using vectors from the forward and backward searches.
8611 This option has no effect without B-frames.
8612 .PD 0
8613 .RSs
8614 .IPs 0
8615 Disabled (default).
8616 .IPs 1\-4
8617 Use a wider search (larger values are slower).
8619 .PD 1
8622 .B vpass=<1\-3>
8623 Activates internal two (or more) pass mode, only specify if you wish to
8624 use two (or more) pass encoding.
8625 .PD 0
8626 .RSs
8627 .IPs 1
8628 first pass (also see turbo)
8629 .IPs 2
8630 second pass
8631 .IPs 3
8632 Nth pass (second and subsequent passes of N-pass encoding)
8635 Here is how it works, and how to use it:
8637 The first pass (vpass=1) writes the statistics file.
8638 You might want to deactivate some CPU-hungry options, like "turbo"
8639 mode does.
8641 In two pass mode, the second pass (vpass=2) reads the statistics file and
8642 bases ratecontrol decisions on it.
8644 In N-pass mode, the second pass (vpass=3, that is not a typo)
8645 does both: It first reads the statistics, then overwrites them.
8646 You might want to backup divx2pass.log before doing this if there is
8647 any possibility that you will have to cancel MEncoder.
8648 You can use all encoding options, except very CPU-hungry options like "qns".
8650 You can run this same pass over and over to refine the encode.
8651 Each subsequent pass will use the statistics from the previous pass to improve.
8652 The final pass can include any CPU-hungry encoding options.
8654 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
8656 If you want a 3 or more pass encode, use vpass=1 for the first pass
8657 and then vpass=3 and then vpass=3 again and again until you are
8658 satisfied with the encode.
8660 .PD 1
8661 .sp 1
8663 huffyuv:
8665 .PD 0
8666 .RSs
8667 .IPs "pass 1"
8668 Saves statistics.
8669 .IPs "pass 2"
8670 Encodes with an optimal Huffman table based upon statistics
8671 from the first pass.
8673 .PD 1
8676 .B turbo (two pass only)
8677 Dramatically speeds up pass one using faster algorithms and disabling
8678 CPU-intensive options.
8679 This will probably reduce global PSNR a little bit (around 0.01dB) and
8680 change individual frame type and PSNR a little bit more (up to 0.03dB).
8683 .B aspect=<x/y>
8684 Store movie aspect internally, just like with MPEG files.
8685 Much nicer than rescaling, because quality is not decreased.
8686 Only MPlayer will play these files correctly, other players will display
8687 them with wrong aspect.
8688 The aspect parameter can be given as a ratio or a floating point number.
8689 .sp 1
8691 .I EXAMPLE:
8693 .RSs
8694 .PD 0
8695 .IPs "aspect=16/9 or aspect=1.78"
8696 .PD 1
8700 .B autoaspect
8701 Same as the aspect option, but automatically computes aspect, taking
8702 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
8703 filter chain.
8704 Does not incur a performance penalty, so you can safely leave it
8705 always on.
8708 .B vbitrate=<value>
8709 Specify bitrate (default: 800).
8711 .I WARNING:
8712 1kbit = 1000 bits
8713 .PD 0
8714 .RSs
8715 .IPs 4\-16000
8716 (in kbit)
8717 .IPs 16001\-24000000
8718 (in bit)
8720 .PD 1
8723 .B vratetol=<value>
8724 approximated file size tolerance in kbit.
8725 1000\-100000 is a sane range.
8726 (warning: 1kbit = 1000 bits)
8727 (default: 8000)
8729 .I NOTE:
8730 vratetol should not be too large during the second pass or there might
8731 be problems if vrc_(min|max)rate is used.
8734 .B vrc_maxrate=<value>
8735 maximum bitrate in kbit/\:sec
8736 (default: 0, unlimited)
8739 .B vrc_minrate=<value>
8740 minimum bitrate in kbit/\:sec
8741 (default: 0, unlimited)
8744 .B vrc_buf_size=<value>
8745 buffer size in kbit
8746 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
8747 917 for SVCD and 1835 for DVD.
8750 .B vrc_buf_aggressivity
8751 currently useless
8754 .B vrc_strategy
8755 Ratecontrol method.
8756 Note that some of the ratecontrol-affecting options will have no effect
8757 if vrc_strategy is not set to 0.
8758 .PD 0
8759 .RSs
8760 .IPs 0
8761 Use internal lavc ratecontrol (default).
8762 .IPs 1
8763 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
8764 with support for Xvid 1.1 or higher).
8766 .PD 1
8769 .B vb_qfactor=<\-31.0\-31.0>
8770 quantizer factor between B- and non-B-frames (default: 1.25)
8773 .B vi_qfactor=<\-31.0\-31.0>
8774 quantizer factor between I- and non-I-frames (default: 0.8)
8777 .B vb_qoffset=<\-31.0\-31.0>
8778 quantizer offset between B- and non-B-frames (default: 1.25)
8781 .B vi_qoffset=<\-31.0\-31.0>
8782 (default: 0.0)
8784 if v{b|i}_qfactor > 0
8786 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8788 else
8790 do normal ratecontrol (do not lock to next P-frame quantizer) and
8791 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8793 .I HINT:
8794 To do constant quantizer encoding with different quantizers for
8795 I/P- and B-frames you can use:
8796 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8799 .B vqblur=<0.0\-1.0> (pass one)
8800 Quantizer blur (default: 0.5), larger values will average the
8801 quantizer more over time (slower change).
8802 .PD 0
8803 .RSs
8804 .IPs 0.0
8805 Quantizer blur disabled.
8806 .IPs 1.0
8807 Average the quantizer over all previous frames.
8809 .PD 1
8812 .B vqblur=<0.0\-99.0> (pass two)
8813 Quantizer gaussian blur (default: 0.5), larger values will average
8814 the quantizer more over time (slower change).
8817 .B vqcomp=<0.0\-1.0>
8818 Quantizer compression, vrc_eq depends upon this (default: 0.5).
8819 .I NOTE:
8820 Perceptual quality will be optimal somewhere in between the range's extremes.
8823 .B vrc_eq=<equation>
8824 main ratecontrol equation
8826 .RSs
8827 .IPs 1+(tex/\:avgTex-1)*qComp
8828 approximately the equation of the old ratecontrol code
8829 .IPs tex^qComp
8830 with qcomp 0.5 or something like that (default)
8834 infix operators:
8836 .RSs
8837 .IPs +,\-,*,/,^
8841 variables:
8843 .RSs
8844 .IPs "tex\ \ "
8845 texture complexity
8846 .IPs iTex,pTex
8847 intra, non-intra texture complexity
8848 .IPs avgTex
8849 average texture complexity
8850 .IPs avgIITex
8851 average intra texture complexity in I-frames
8852 .IPs avgPITex
8853 average intra texture complexity in P-frames
8854 .IPs avgPPTex
8855 average non-intra texture complexity in P-frames
8856 .IPs avgBPTex
8857 average non-intra texture complexity in B-frames
8858 .IPs "mv\ \ \ "
8859 bits used for motion vectors
8860 .IPs fCode
8861 maximum length of motion vector in log2 scale
8862 .IPs iCount
8863 number of intra macroblocks / number of macroblocks
8864 .IPs "var\ \ "
8865 spatial complexity
8866 .IPs mcVar
8867 temporal complexity
8868 .IPs qComp
8869 qcomp from the command line
8870 .IPs "isI, isP, isB"
8871 Is 1 if picture type is I/P/B else 0.
8872 .IPs "Pi,E\ "
8873 See your favorite math book.
8877 functions:
8879 .RSs
8880 .IPs max(a,b),min(a,b)
8881 maximum / minimum
8882 .IPs gt(a,b)
8883 is 1 if a>b, 0 otherwise
8884 .IPs lt(a,b)
8885 is 1 if a<b, 0 otherwise
8886 .IPs eq(a,b)
8887 is 1 if a==b, 0 otherwise
8888 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8892 .B vrc_override=<options>
8893 User specified quality for specific parts (ending, credits, ...).
8894 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8895 <end-frame>, <quality>[/...]]:
8896 .PD 0
8897 .RSs
8898 .IPs "quality (2\-31)"
8899 quantizer
8900 .IPs "quality (\-500\-0)"
8901 quality correction in %
8903 .PD 1
8906 .B vrc_init_cplx=<0\-1000>
8907 initial complexity (pass 1)
8910 .B vrc_init_occupancy=<0.0\-1.0>
8911 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8914 .B vqsquish=<0|1>
8915 Specify how to keep the quantizer between qmin and qmax.
8916 .PD 0
8917 .RSs
8918 .IPs 0
8919 Use clipping.
8920 .IPs 1
8921 Use a nice differentiable function (default).
8923 .PD 1
8926 .B vlelim=<\-1000\-1000>
8927 Sets single coefficient elimination threshold for luminance.
8928 Negative values will also consider the DC coefficient (should be at least \-4
8929 or lower for encoding at quant=1):
8930 .PD 0
8931 .RSs
8932 .IPs 0
8933 disabled (default)
8934 .IPs \-4
8935 JVT recommendation
8937 .PD 1
8940 .B vcelim=<\-1000\-1000>
8941 Sets single coefficient elimination threshold for chrominance.
8942 Negative values will also consider the DC coefficient (should be at least \-4
8943 or lower for encoding at quant=1):
8944 .PD 0
8945 .RSs
8946 .IPs 0
8947 disabled (default)
8948 .IPs 7
8949 JVT recommendation
8951 .PD 1
8954 .B vstrict=<\-2|\-1|0|1>
8955 strict standard compliance
8956 .PD 0
8957 .RSs
8958 .IPs 0
8959 disabled
8960 .IPs 1
8961 Only recommended if you want to feed the output into the
8962 MPEG-4 reference decoder.
8963 .IPs \-1
8964 Allow libavcodec specific extensions (default).
8965 .IPs \-2
8966 Enables experimental codecs and features which may not be playable
8967 with future MPlayer versions (snow).
8969 .PD 1
8972 .B "vdpart\ "
8973 Data partitioning.
8974 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8975 unreliable channels (e.g.\& streaming over the internet).
8976 Each video packet will be encoded in 3 separate partitions:
8977 .PD 0
8978 .RSs
8979 .IPs "1. MVs"
8980 movement
8981 .IPs "2. DC coefficients"
8982 low res picture
8983 .IPs "3. AC coefficients"
8984 details
8986 .PD 1
8988 MV & DC are most important, losing them looks far worse than losing
8989 the AC and the 1. & 2. partition.
8990 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8991 will hit the AC partition much more often than the MV & DC partitions.
8992 Thus, the picture will look better with partitioning than without,
8993 as without partitioning an error will trash AC/\:DC/\:MV equally.
8997 .B vpsize=<0\-10000> (also see vdpart)
8998 Video packet size, improves error-resistance.
8999 .PD 0
9000 .RSs
9001 .IPs "0\ \ \ \ "
9002 disabled (default)
9003 .IPs 100\-1000
9004 good choice
9006 .PD 1
9009 .B "ss\ \ \ \ \ "
9010 slice structured mode for H.263+
9013 .B "gray\ \ \ "
9014 grayscale only encoding (faster)
9017 .B vfdct=<0\-10>
9018 DCT algorithm
9019 .PD 0
9020 .RSs
9021 .IPs 0
9022 Automatically select a good one (default).
9023 .IPs 1
9024 fast integer
9025 .IPs 2
9026 accurate integer
9027 .IPs 3
9029 .IPs 4
9030 mlib
9031 .IPs 5
9032 AltiVec
9033 .IPs 6
9034 floating point AAN
9036 .PD 1
9039 .B idct=<0\-99>
9040 IDCT algorithm
9042 .I NOTE:
9043 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
9044 .PD 0
9045 .RSs
9046 .IPs 0
9047 Automatically select a good one (default).
9048 .IPs 1
9049 JPEG reference integer
9050 .IPs 2
9051 simple
9052 .IPs 3
9053 simplemmx
9054 .IPs 4
9055 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
9056 .IPs 5
9058 .IPs 6
9059 mlib
9060 .IPs 7
9062 .IPs 8
9063 AltiVec
9064 .IPs 9
9066 .IPs 10
9067 simplearm
9068 .IPs 11
9069 H.264
9070 .IPs 12
9072 .IPs 13
9074 .IPs 14
9075 xvidmmx
9076 .IPs 15
9077 CAVS
9078 .IPs 16
9079 simplearmv5te
9080 .IPs 17
9081 simplearmv6
9083 .PD 1
9086 .B lumi_mask=<0.0\-1.0>
9087 Luminance masking is a 'psychosensory' setting that is supposed to
9088 make use of the fact that the human eye tends to notice fewer details
9089 in very bright parts of the picture.
9090 Luminance masking compresses bright areas stronger than medium ones,
9091 so it will save bits that can be spent again on other frames, raising
9092 overall subjective quality, while possibly reducing PSNR.
9094 .I WARNING:
9095 Be careful, overly large values can cause disastrous things.
9097 .I WARNING:
9098 Large values might look good on some monitors but may look horrible
9099 on other monitors.
9100 .PD 0
9101 .RSs
9102 .IPs "0.0\ \ "
9103 disabled (default)
9104 .IPs 0.0\-0.3
9105 sane range
9107 .PD 1
9110 .B dark_mask=<0.0\-1.0>
9111 Darkness masking is a 'psychosensory' setting that is supposed to
9112 make use of the fact that the human eye tends to notice fewer details
9113 in very dark parts of the picture.
9114 Darkness masking compresses dark areas stronger than medium ones,
9115 so it will save bits that can be spent again on other frames, raising
9116 overall subjective quality, while possibly reducing PSNR.
9118 .I WARNING:
9119 Be careful, overly large values can cause disastrous things.
9121 .I WARNING:
9122 Large values might look good on some monitors but may look horrible
9123 on other monitors / TV / TFT.
9124 .PD 0
9125 .RSs
9126 .IPs "0.0\ \ "
9127 disabled (default)
9128 .IPs 0.0\-0.3
9129 sane range
9131 .PD 1
9134 .B tcplx_mask=<0.0\-1.0>
9135 Temporal complexity masking (default: 0.0 (disabled)).
9136 Imagine a scene with a bird flying across the whole scene; tcplx_mask
9137 will raise the quantizers of the bird's macroblocks (thus decreasing their
9138 quality), as the human eye usually does not have time to see all the bird's
9139 details.
9140 Be warned that if the masked object stops (e.g.\& the bird lands) it is
9141 likely to look horrible for a short period of time, until the encoder
9142 figures out that the object is not moving and needs refined blocks.
9143 The saved bits will be spent on other parts of the video, which may increase
9144 subjective quality, provided that tcplx_mask is carefully chosen.
9147 .B scplx_mask=<0.0\-1.0>
9148 Spatial complexity masking.
9149 Larger values help against blockiness, if no deblocking filter is used for
9150 decoding, which is maybe not a good idea.
9152 Imagine a scene with grass (which usually has great spatial complexity),
9153 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
9154 macroblocks, thus decreasing its quality, in order to spend more bits on
9155 the sky and the house.
9157 .I HINT:
9158 Crop any black borders completely as they will reduce the quality
9159 of the macroblocks (also applies without scplx_mask).
9160 .PD 0
9161 .RSs
9162 .IPs "0.0\ \ "
9163 disabled (default)
9164 .IPs 0.0\-0.5
9165 sane range
9167 .PD 1
9168 .sp 1
9170 .I NOTE:
9171 This setting does not have the same effect as using a custom matrix that
9172 would compress high frequencies harder, as scplx_mask will reduce the
9173 quality of P blocks even if only DC is changing.
9174 The result of scplx_mask will probably not look as good.
9178 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
9179 Reduces the quality of inter blocks.
9180 This is equivalent to increasing the quality of intra blocks, because the
9181 same average bitrate will be distributed by the rate controller to the
9182 whole video sequence (default: 0.0 (disabled)).
9183 p_mask=1.0 doubles the bits allocated to each intra block.
9186 .B border_mask=<0.0\-1.0>
9187 border-processing for MPEG-style encoders.
9188 Border processing increases the quantizer for macroblocks which are less
9189 than 1/5th of the frame width/height away from the frame border,
9190 since they are often visually less important.
9193 .B "naq\ \ \ \ "
9194 Normalize adaptive quantization (experimental).
9195 When using adaptive quantization (*_mask), the average per-MB quantizer may no
9196 longer match the requested frame-level quantizer.
9197 Naq will attempt to adjust the per-MB quantizers to maintain the proper
9198 average.
9201 .B "ildct\ \ "
9202 Use interlaced DCT.
9205 .B "ilme\ \ \ "
9206 Use interlaced motion estimation (mutually exclusive with qpel).
9209 .B "alt\ \ \ \ "
9210 Use alternative scantable.
9213 .B "top=<\-1\-1>\ \ \ "
9214 .PD 0
9215 .RSs
9216 .IPs \-1
9217 automatic
9218 .IPs 0
9219 bottom field first
9220 .IPs 1
9221 top field first
9223 .PD 1
9226 .B format=<value>
9227 .PD 0
9228 .RSs
9229 .IPs "YV12\ "
9230 default
9231 .IPs "444P\ "
9232 for ffv1
9233 .IPs "422P\ "
9234 for HuffYUV, lossless JPEG, dv and ffv1
9235 .IPs "411P\ "
9236 for lossless JPEG, dv and ffv1
9237 .IPs "YVU9\ "
9238 for lossless JPEG, ffv1 and svq1
9239 .IPs "BGR32"
9240 for lossless JPEG and ffv1
9242 .PD 1
9245 .B "pred\ \ \ "
9246 (for HuffYUV)
9247 .PD 0
9248 .RSs
9249 .IPs 0
9250 left prediction
9251 .IPs 1
9252 plane/\:gradient prediction
9253 .IPs 2
9254 median prediction
9256 .PD 1
9259 .B "pred\ \ \ "
9260 (for lossless JPEG)
9261 .PD 0
9262 .RSs
9263 .IPs 0
9264 left prediction
9265 .IPs 1
9266 top prediction
9267 .IPs 2
9268 topleft prediction
9269 .IPs 3
9270 plane/\:gradient prediction
9271 .IPs 6
9272 mean prediction
9274 .PD 1
9277 .B "coder\ \ "
9278 (for ffv1)
9279 .PD 0
9280 .RSs
9281 .IPs 0
9282 vlc coding (Golomb-Rice)
9283 .IPs 1
9284 arithmetic coding (CABAC)
9286 .PD 1
9289 .B context
9290 (for ffv1)
9291 .PD 0
9292 .RSs
9293 .IPs 0
9294 small context model
9295 .IPs 1
9296 large context model
9298 .PD 1
9299 .sp 1
9301 (for ffvhuff)
9303 .PD 0
9304 .RSs
9305 .IPs 0
9306 predetermined Huffman tables (builtin or two pass)
9307 .IPs 1
9308 adaptive Huffman tables
9310 .PD 1
9313 .B "qpel\ \ \ "
9314 Use quarter pel motion compensation (mutually exclusive with ilme).
9316 .I HINT:
9317 This seems only useful for high bitrate encodings.
9320 .B mbcmp=<0\-2000>
9321 Sets the comparison function for the macroblock decision, has only
9322 an effect if mbd=0.
9323 This is also used for some motion search functions, in which case
9324 it has an effect regardless of mbd setting.
9325 .PD 0
9326 .RSs
9327 .IPs "0 (SAD)"
9328 sum of absolute differences, fast (default)
9329 .IPs "1 (SSE)"
9330 sum of squared errors
9331 .IPs "2 (SATD)"
9332 sum of absolute Hadamard transformed differences
9333 .IPs "3 (DCT)"
9334 sum of absolute DCT transformed differences
9335 .IPs "4 (PSNR)"
9336 sum of squared quantization errors (avoid, low quality)
9337 .IPs "5 (BIT)"
9338 number of bits needed for the block
9339 .IPs "6 (RD)"
9340 rate distortion optimal, slow
9341 .IPs "7 (ZERO)"
9343 .IPs "8 (VSAD)"
9344 sum of absolute vertical differences
9345 .IPs "9 (VSSE)"
9346 sum of squared vertical differences
9347 .IPs "10 (NSSE)"
9348 noise preserving sum of squared differences
9349 .IPs "11 (W53)"
9350 5/3 wavelet, only used in snow
9351 .IPs "12 (W97)"
9352 9/7 wavelet, only used in snow
9353 .IPs "+256\ "
9354 Also use chroma, currently does not work (correctly) with B-frames.
9356 .PD 1
9359 .B ildctcmp=<0\-2000>
9360 Sets the comparison function for interlaced DCT decision
9361 (see mbcmp for available comparison functions).
9364 .B precmp=<0\-2000>
9365 Sets the comparison function for motion estimation pre pass
9366 (see mbcmp for available comparison functions) (default: 0).
9369 .B cmp=<0\-2000>
9370 Sets the comparison function for full pel motion estimation
9371 (see mbcmp for available comparison functions) (default: 0).
9374 .B subcmp=<0\-2000>
9375 Sets the comparison function for sub pel motion estimation
9376 (see mbcmp for available comparison functions) (default: 0).
9379 .B skipcmp=<0\-2000>
9380 FIXME: Document this.
9383 .B nssew=<0\-1000000>
9384 This setting controls NSSE weight, where larger weights will result in
9385 more noise.
9386 0 NSSE is identical to SSE
9387 You may find this useful if you prefer to keep some noise in your encoded
9388 video rather than filtering it away before encoding (default: 8).
9391 .B predia=<\-99\-6>
9392 diamond type and size for motion estimation pre-pass
9395 .B dia=<\-99\-6>
9396 Diamond type & size for motion estimation.
9397 Motion search is an iterative process.
9398 Using a small diamond does not limit the search to finding only small
9399 motion vectors.
9400 It is just somewhat more likely to stop before finding the very best motion
9401 vector, especially when noise is involved.
9402 Bigger diamonds allow a wider search for the best motion vector, thus are
9403 slower but result in better quality.
9405 Big normal diamonds are better quality than shape-adaptive diamonds.
9407 Shape-adaptive diamonds are a good tradeoff between speed and quality.
9409 .I NOTE:
9410 The sizes of the normal diamonds and shape adaptive ones do not have
9411 the same meaning.
9412 .RSs
9413 .IPs \-3
9414 shape adaptive (fast) diamond with size 3
9415 .IPs \-2
9416 shape adaptive (fast) diamond with size 2
9417 .IPs \-1
9418 uneven multi-hexagon search (slow)
9419 .IPs  1
9420 normal size=1 diamond (default) =EPZS type diamond
9423       0
9424      000
9425       0
9427 .IPs 2
9428 normal size=2 diamond
9431       0
9432      000
9433     00000
9434      000
9435       0
9440 .B "trell\ \ "
9441 Trellis searched quantization.
9442 This will find the optimal encoding for each 8x8 block.
9443 Trellis searched quantization is quite simply an optimal quantization in
9444 the PSNR versus bitrate sense (Assuming that there would be no rounding
9445 errors introduced by the IDCT, which is obviously not the case.).
9446 It simply finds a block for the minimum of error and lambda*bits.
9447 .PD 0
9448 .RSs
9449 .IPs lambda
9450 quantization parameter (QP) dependent constant
9451 .IPs "bits\ "
9452 amount of bits needed to encode the block
9453 .IPs error
9454 sum of squared errors of the quantization
9456 .PD 1
9459 .B "cbp\ \ \ \ "
9460 Rate distorted optimal coded block pattern.
9461 Will select the coded block pattern which minimizes distortion + lambda*rate.
9462 This can only be used together with trellis quantization.
9465 .B "mv0\ \ \ \ "
9466 Try to encode each MB with MV=<0,0> and choose the better one.
9467 This has no effect if mbd=0.
9470 .B mv0_threshold=<any non-negative integer>
9471 When surrounding motion vectors are <0,0> and the motion estimation
9472 score of the current block is less than mv0_threshold, <0,0> is used for
9473 the motion vector and further motion estimation is skipped (default:
9474 256).
9475 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
9476 possibly make the encoded video look slightly better; raising
9477 mv0_threshold past 320 results in diminished PSNR and visual quality.
9478 Higher values speed up encoding very slightly (usually less than 1%,
9479 depending on the other options used).
9481 .I NOTE:
9482 This option does not require mv0 to be enabled.
9485 .B qprd (mbd=2 only)
9486 rate distorted optimal quantization parameter (QP) for the given
9487 lambda of each macroblock
9490 .B last_pred=<0\-99>
9491 amount of motion predictors from the previous frame
9492 .PD 0
9493 .RSs
9494 .IPs 0
9495 (default)
9496 .IPs a
9497 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
9498 previous frame.
9500 .PD 1
9503 .B preme=<0\-2>
9504 motion estimation pre-pass
9505 .PD 0
9506 .RSs
9507 .IPs 0
9508 disabled
9509 .IPs 1
9510 only after I-frames (default)
9511 .IPs 2
9512 always
9514 .PD 1
9517 .B subq=<1\-8>
9518 subpel refinement quality (for qpel) (default: 8 (high quality))
9520 .I NOTE:
9521 This has a significant effect on speed.
9524 .B refs=<1\-8>
9525 number of reference frames to consider for motion compensation
9526 (Snow only) (default: 1)
9529 .B "psnr\ \ \ "
9530 print the PSNR (peak signal to noise ratio) for the whole video after encoding
9531 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
9532 Returned values are in dB (decibel), the higher the better.
9535 .B mpeg_quant
9536 Use MPEG quantizers instead of H.263.
9539 .B "aic\ \ \ \ "
9540 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
9541 This will improve quality very slightly (around 0.02 dB PSNR) and slow
9542 down encoding very slightly (about 1%).
9544 .I NOTE:
9545 vqmin should be 8 or larger for H.263+ AIC.
9548 .B "aiv\ \ \ \ "
9549 alternative inter vlc for H.263+
9552 .B "umv\ \ \ \ "
9553 unlimited MVs (H.263+ only)
9554 Allows encoding of arbitrarily long MVs.
9557 .B ibias=<\-256\-256>
9558 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
9559 H.263 style quantizer default: 0)
9561 .I NOTE:
9562 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9563 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9566 .B pbias=<\-256\-256>
9567 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
9568 H.263 style quantizer default: \-64)
9570 .I NOTE:
9571 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
9572 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
9574 .I HINT:
9575 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
9578 .B nr=<0\-100000>
9579 Noise reduction, 0 means disabled.
9580 0\-600 is a useful range for typical content, but you may want to turn it
9581 up a bit more for very noisy content (default: 0).
9582 Given its small impact on speed, you might want to prefer to use this over
9583 filtering noise away with video filters like denoise3d or hqdn3d.
9586 .B qns=<0\-3>
9587 Quantizer noise shaping.
9588 Rather than choosing quantization to most closely match the source video
9589 in the PSNR sense, it chooses quantization such that noise (usually ringing)
9590 will be masked by similar-frequency content in the image.
9591 Larger values are slower but may not result in better quality.
9592 This can and should be used together with trellis quantization, in which case
9593 the trellis quantization (optimal for constant weight) will be used as
9594 startpoint for the iterative search.
9595 .PD 0
9596 .RSs
9597 .IPs 0
9598 disabled (default)
9599 .IPs 1
9600 Only lower the absolute value of coefficients.
9601 .IPs 2
9602 Only change coefficients before the last non-zero coefficient + 1.
9603 .IPs 3
9604 Try all.
9606 .PD 1
9609 .B inter_matrix=<comma separated matrix>
9610 Use custom inter matrix.
9611 It needs a comma separated string of 64 integers.
9614 .B intra_matrix=<comma separated matrix>
9615 Use custom intra matrix.
9616 It needs a comma separated string of 64 integers.
9619 .B vqmod_amp
9620 experimental quantizer modulation
9623 .B vqmod_freq
9624 experimental quantizer modulation
9627 .B "dc\ \ \ \ \ "
9628 intra DC precision in bits (default: 8).
9629 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
9632 .B cgop (also see sc_threshold)
9633 Close all GOPs.
9634 Currently it only works if scene change detection is disabled
9635 (sc_threshold=1000000000).
9638 .B "gmc\ \ \ \ "
9639 Enable Global Motion Compensation.
9642 .B (no)lowdelay
9643 Sets the low delay flag for MPEG-1/2 (disables B-frames).
9646 .B vglobal=<0\-3>
9647 Control writing global video headers.
9648 .PD 0
9649 .RSs
9650 .IPs 0
9651 Codec decides where to write global headers (default).
9652 .IPs 1
9653 Write global headers only in extradata (needed for .mp4/MOV/NUT).
9654 .IPs 2
9655 Write global headers only in front of keyframes.
9656 .IPs 3
9657 Combine 1 and 2.
9659 .PD 1
9662 .B aglobal=<0\-3>
9663 Same as vglobal for audio headers.
9666 .B level=<value>
9667 Set CodecContext Level.
9668 Use 31 or 41 to play video on a Playstation 3.
9671 .B skip_exp=<0\-1000000>
9672 FIXME: Document this.
9675 .B skip_factor=<0\-1000000>
9676 FIXME: Document this.
9679 .B skip_threshold=<0\-1000000>
9680 FIXME: Document this.
9683 .SS nuv (\-nuvopts)
9685 Nuppel video is based on RTJPEG and LZO.
9686 By default frames are first encoded with RTJPEG and then compressed with LZO,
9687 but it is possible to disable either or both of the two passes.
9688 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
9689 or the default LZO compressed RTJPEG.
9691 .I NOTE:
9692 The nuvrec documentation contains some advice and examples about the
9693 settings to use for the most common TV encodings.
9696 .B c=<0\-20>
9697 chrominance threshold (default: 1)
9700 .B l=<0\-20>
9701 luminance threshold (default: 1)
9704 .B "lzo\ \ \ \ "
9705 Enable LZO compression (default).
9708 .B "nolzo\ \ "
9709 Disable LZO compression.
9712 .B q=<3\-255>
9713 quality level (default: 255)
9716 .B "raw \ \ \ "
9717 Disable RTJPEG encoding.
9720 .B "rtjpeg\ "
9721 Enable RTJPEG encoding (default).
9724 .SS xvidenc (\-xvidencopts)
9726 There are three modes available: constant bitrate (CBR), fixed quantizer and
9727 two pass.
9730 .B pass=<1|2>
9731 Specify the pass in two pass mode.
9734 .B turbo (two pass only)
9735 Dramatically speeds up pass one using faster algorithms and disabling
9736 CPU-intensive options.
9737 This will probably reduce global PSNR a little bit and change individual
9738 frame type and PSNR a little bit more.
9741 .B bitrate=<value> (CBR or two pass mode)
9742 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
9743 if >16000.
9744 If <value> is negative, Xvid will use its absolute value as the target size
9745 (in kBytes) of the video and compute the associated bitrate automagically
9746 (default: 687 kbits/s).
9749 .B fixed_quant=<1\-31>
9750 Switch to fixed quantizer mode and specify the quantizer to be used.
9753 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
9754 User specified quality for specific parts (ending, credits, ...).
9755 Each zone is <start-frame>,<mode>,<value> where <mode> may be
9756 .PD 0
9757 .RSs
9758 .IPs "q"
9759 Constant quantizer override, where value=<2.0\-31.0>
9760 represents the quantizer value.
9761 .IPs "w"
9762 Ratecontrol weight override, where value=<0.01\-2.00>
9763 represents the quality correction in %.
9765 .PD 1
9766 .sp 1
9768 .I EXAMPLE:
9770 .PD 0
9771 .RSs
9772 .IPs zones=90000,q,20
9773 Encodes all frames starting with frame 90000 at constant quantizer 20.
9774 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9775 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9776 up to the end at constant quantizer 20.
9777 Note that the second zone is needed to delimit the first zone, as
9778 without it everything up until frame 89999 would be encoded at 10%
9779 bitrate.
9781 .PD 1
9784 .B me_quality=<0\-6>
9785 This option controls the motion estimation subsystem.
9786 The higher the value, the more precise the estimation should be (default: 6).
9787 The more precise the motion estimation is, the more bits can be saved.
9788 Precision is gained at the expense of CPU time so decrease this setting if
9789 you need realtime encoding.
9792 .B (no)qpel
9793 MPEG-4 uses a half pixel precision for its motion search by default.
9794 The standard proposes a mode where encoders are allowed to use quarter
9795 pixel precision.
9796 This option usually results in a sharper image.
9797 Unfortunately it has a great impact on bitrate and sometimes the
9798 higher bitrate use will prevent it from giving a better image
9799 quality at a fixed bitrate.
9800 It is better to test with and without this option and see whether it
9801 is worth activating.
9804 .B (no)gmc
9805 Enable Global Motion Compensation, which makes Xvid generate special
9806 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9807 Whether or not the use of this option will save bits is highly
9808 dependent on the source material.
9811 .B (no)trellis
9812 Trellis Quantization is a kind of adaptive quantization method that
9813 saves bits by modifying quantized coefficients to make them more
9814 compressible by the entropy encoder.
9815 Its impact on quality is good, and if VHQ uses too much CPU for you,
9816 this setting can be a good alternative to save a few bits (and gain
9817 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9820 .B (no)cartoon
9821 Activate this if your encoded sequence is an anime/\:cartoon.
9822 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9823 frame types and motion vectors for flat looking cartoons.
9826 .B (no)chroma_me
9827 The usual motion estimation algorithm uses only the luminance information to
9828 find the best motion vector.
9829 However for some video material, using the chroma planes can help find
9830 better vectors.
9831 This setting toggles the use of chroma planes for motion estimation
9832 (default: on).
9835 .B (no)chroma_opt
9836 Enable a chroma optimizer prefilter.
9837 It will do some extra magic on color information to minimize the
9838 stepped-stairs effect on edges.
9839 It will improve quality at the cost of encoding speed.
9840 It reduces PSNR by nature, as the mathematical deviation to the original
9841 picture will get bigger, but the subjective image quality will raise.
9842 Since it works with color information, you might want to turn it off when
9843 encoding in grayscale.
9846 .B (no)hq_ac
9847 Activates high-quality prediction of AC coefficients for intra frames from
9848 neighbor blocks (default: on).
9851 .B vhq=<0\-4>
9852 The motion search algorithm is based on a search in the usual color domain
9853 and tries to find a motion vector that minimizes the difference between the
9854 reference frame and the encoded frame.
9855 With this setting activated, Xvid will also use the frequency domain (DCT)
9856 to search for a motion vector that minimizes not only the spatial
9857 difference but also the encoding length of the block.
9858 Fastest to slowest:
9859 .PD 0
9860 .RSs
9861 .IPs 0
9863 .IPs 1
9864 mode decision (inter/\:intra MB) (default)
9865 .IPs 2
9866 limited search
9867 .IPs 3
9868 medium search
9869 .IPs 4
9870 wide search
9872 .PD 1
9875 .B (no)lumi_mask
9876 Adaptive quantization allows the macroblock quantizers to vary inside
9877 each frame.
9878 This is a 'psychosensory' setting that is supposed to make use of the
9879 fact that the human eye tends to notice fewer details in very bright
9880 and very dark parts of the picture.
9881 It compresses those areas more strongly than medium ones, which will
9882 save bits that can be spent again on other frames, raising overall
9883 subjective quality and possibly reducing PSNR.
9886 .B (no)grayscale
9887 Make Xvid discard chroma planes so the encoded video is grayscale only.
9888 Note that this does not speed up encoding, it just prevents chroma data
9889 from being written in the last stage of encoding.
9892 .B (no)interlacing
9893 Encode the fields of interlaced video material.
9894 Turn this option on for interlaced content.
9896 .I NOTE:
9897 Should you rescale the video, you would need an interlace-aware resizer,
9898 which you can activate with \-vf scale=<width>:<height>:1.
9901 .B min_iquant=<0\-31>
9902 minimum I-frame quantizer (default: 2)
9905 .B max_iquant=<0\-31>
9906 maximum I-frame quantizer (default: 31)
9909 .B min_pquant=<0\-31>
9910 minimum P-frame quantizer (default: 2)
9913 .B max_pquant=<0\-31>
9914 maximum P-frame quantizer (default: 31)
9917 .B min_bquant=<0\-31>
9918 minimum B-frame quantizer (default: 2)
9921 .B max_bquant=<0\-31>
9922 maximum B-frame quantizer (default: 31)
9925 .B min_key_interval=<value> (two pass only)
9926 minimum interval between keyframes (default: 0)
9929 .B max_key_interval=<value>
9930 maximum interval between keyframes (default: 10*fps)
9933 .B quant_type=<h263|mpeg>
9934 Sets the type of quantizer to use.
9935 For high bitrates, you will find that MPEG quantization preserves more detail.
9936 For low bitrates, the smoothing of H.263 will give you less block noise.
9937 When using custom matrices, MPEG quantization
9938 .B must
9939 be used.
9942 .B quant_intra_matrix=<filename>
9943 Load a custom intra matrix file.
9944 You can build such a file with xvid4conf's matrix editor.
9947 .B quant_inter_matrix=<filename>
9948 Load a custom inter matrix file.
9949 You can build such a file with xvid4conf's matrix editor.
9952 .B keyframe_boost=<0\-1000> (two pass mode only)
9953 Shift some bits from the pool for other frame types to intra frames,
9954 thus improving keyframe quality.
9955 This amount is an extra percentage, so a value of 10 will give
9956 your keyframes 10% more bits than normal
9957 (default: 0).
9960 .B kfthreshold=<value> (two pass mode only)
9961 Works together with kfreduction.
9962 Determines the minimum distance below which you consider that
9963 two frames are considered consecutive and treated differently
9964 according to kfreduction
9965 (default: 10).
9968 .B kfreduction=<0\-100> (two pass mode only)
9969 The above two settings can be used to adjust the size of keyframes that
9970 you consider too close to the first (in a row).
9971 kfthreshold sets the range in which keyframes are reduced, and
9972 kfreduction determines the bitrate reduction they get.
9973 The last I-frame will get treated normally
9974 (default: 30).
9977 .B max_bframes=<0\-4>
9978 Maximum number of B-frames to put between I/P-frames (default: 2).
9981 .B bquant_ratio=<0\-1000>
9982 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9985 .B bquant_offset=<\-1000\-1000>
9986 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9989 .B bf_threshold=<\-255\-255>
9990 This setting allows you to specify what priority to place on the use of
9991 B-frames.
9992 The higher the value, the higher the probability of B-frames being used
9993 (default: 0).
9994 Do not forget that B-frames usually have a higher quantizer, and therefore
9995 aggressive production of B-frames may cause worse visual quality.
9998 .B (no)closed_gop
9999 This option tells Xvid to close every GOP (Group Of Pictures bounded
10000 by two I-frames), which makes GOPs independent from each other.
10001 This just implies that the last frame of the GOP is either a P-frame or a
10002 N-frame but not a B-frame.
10003 It is usually a good idea to turn this option on (default: on).
10006 .B (no)packed
10007 This option is meant to solve frame-order issues when encoding to
10008 container formats like AVI that cannot cope with out-of-order frames.
10009 In practice, most decoders (both software and hardware) are able to deal
10010 with frame-order themselves, and may get confused when this option is
10011 turned on, so you can safely leave if off, unless you really know what
10012 you are doing.
10014 .I WARNING:
10015 This will generate an illegal bitstream, and will not be
10016 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
10018 .I WARNING:
10019 This will also store a fake DivX version in the file so the bug
10020 autodetection of some decoders might be confused.
10023 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
10024 This setting allows the creation of variable framerate video streams.
10025 The value of the setting specifies a threshold under which, if the
10026 difference of the following frame to the previous frame is below or equal
10027 to this threshold, a frame gets not coded (a so called n-vop is placed
10028 in the stream).
10029 On playback, when reaching an n-vop the previous frame will be displayed.
10031 .I WARNING:
10032 Playing with this setting may result in a jerky video, so use it at your
10033 own risks!
10036 .B rc_reaction_delay_factor=<value>
10037 This parameter controls the number of frames the CBR rate controller
10038 will wait before reacting to bitrate changes and compensating for them
10039 to obtain a constant bitrate over an averaging range of frames.
10042 .B rc_averaging_period=<value>
10043 Real CBR is hard to achieve.
10044 Depending on the video material, bitrate can be variable, and hard to predict.
10045 Therefore Xvid uses an averaging period for which it guarantees a given
10046 amount of bits (minus a small variation).
10047 This settings expresses the "number of frames" for which Xvid averages
10048 bitrate and tries to achieve CBR.
10051 .B rc_buffer=<value>
10052 size of the rate control buffer
10055 .B curve_compression_high=<0\-100>
10056 This setting allows Xvid to take a certain percentage of bits away from
10057 high bitrate scenes and give them back to the bit reservoir.
10058 You could also use this if you have a clip with so many bits allocated
10059 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
10060 (default: 0).
10063 .B curve_compression_low=<0\-100>
10064 This setting allows Xvid to give a certain percentage of extra bits to the
10065 low bitrate scenes, taking a few bits from the entire clip.
10066 This might come in handy if you have a few low-bitrate scenes that are
10067 still blocky (default: 0).
10070 .B overflow_control_strength=<0\-100>
10071 During pass one of two pass encoding, a scaled bitrate curve is computed.
10072 The difference between that expected curve and the result obtained during
10073 encoding is called overflow.
10074 Obviously, the two pass rate controller tries to compensate for that overflow,
10075 distributing it over the next frames.
10076 This setting controls how much of the overflow is distributed every time
10077 there is a new frame.
10078 Low values allow lazy overflow control, big rate bursts are compensated for
10079 more slowly (could lead to lack of precision for small clips).
10080 Higher values will make changes in bit redistribution more abrupt, possibly
10081 too abrupt if you set it too high, creating artifacts (default: 5).
10083 .I NOTE:
10084 This setting impacts quality a lot, play with it carefully!
10087 .B max_overflow_improvement=<0\-100>
10088 During the frame bit allocation, overflow control may increase the frame
10089 size.
10090 This parameter specifies the maximum percentage by which the overflow
10091 control is allowed to increase the frame size, compared to the ideal curve
10092 allocation
10093 (default: 5).
10096 .B max_overflow_degradation=<0\-100>
10097 During the frame bit allocation, overflow control may decrease the frame
10098 size.
10099 This parameter specifies the maximum percentage by which the overflow
10100 control is allowed to decrease the frame size, compared to the ideal curve
10101 allocation
10102 (default: 5).
10105 .B container_frame_overhead=<0...>
10106 Specifies a frame average overhead per frame, in bytes.
10107 Most of the time users express their target bitrate for video w/o taking
10108 care of the video container overhead.
10109 This small but (mostly) constant overhead can cause the target file size
10110 to be exceeded.
10111 Xvid allows users to set the amount of overhead per frame the
10112 container generates (give only an average per frame).
10113 0 has a special meaning, it lets Xvid use its own default values
10114 (default: 24 \- AVI average overhead).
10117 .B profile=<profile_name>
10118 Restricts options and VBV (peak bitrate over a short period) according to
10119 the Simple, Advanced Simple and DivX profiles.
10120 The resulting videos should be playable on standalone players adhering to these
10121 profile specifications.
10122 .PD 0
10123 .RSs
10124 .IPs unrestricted
10125 no restrictions (default)
10126 .IPs "sp0\ \ "
10127 simple profile at level 0
10128 .IPs "sp1\ \ "
10129 simple profile at level 1
10130 .IPs "sp2\ \ "
10131 simple profile at level 2
10132 .IPs "sp3\ \ "
10133 simple profile at level 3
10134 .IPs "asp0\ "
10135 advanced simple profile at level 0
10136 .IPs "asp1\ "
10137 advanced simple profile at level 1
10138 .IPs "asp2\ "
10139 advanced simple profile at level 2
10140 .IPs "asp3\ "
10141 advanced simple profile at level 3
10142 .IPs "asp4\ "
10143 advanced simple profile at level 4
10144 .IPs "asp5\ "
10145 advanced simple profile at level 5
10146 .IPs dxnhandheld
10147 DXN handheld profile
10148 .IPs dxnportntsc
10149 DXN portable NTSC profile
10150 .IPs dxnportpal
10151 DXN portable PAL profile
10152 .IPs dxnhtntsc
10153 DXN home theater NTSC profile
10154 .IPs dxnhtpal
10155 DXN home theater PAL profile
10156 .IPs dxnhdtv
10157 DXN HDTV profile
10159 .PD 1
10161 .I NOTE:
10162 These profiles should be used in conjunction with an appropriate \-ffourcc.
10163 Generally DX50 is applicable, as some players do not recognize Xvid but
10164 most recognize DivX.
10168 .B par=<mode>
10169 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
10170 the Display Aspect Ratio).
10171 PAR is the ratio of the width and height of a single pixel.
10172 So both are related like this: DAR = PAR * (width/height).
10174 MPEG-4 defines 5 pixel aspect ratios and one extended
10175 one, giving the opportunity to specify a specific pixel aspect
10176 ratio.
10177 5 standard modes can be specified:
10178 .PD 0
10179 .RSs
10180 .IPs vga11
10181 It is the usual PAR for PC content.
10182 Pixels are a square unit.
10183 .IPs pal43
10184 PAL standard 4:3 PAR.
10185 Pixels are rectangles.
10186 .IPs pal169
10187 same as above
10188 .IPs ntsc43
10189 same as above
10190 .IPs ntsc169
10191 same as above (Do not forget to give the exact ratio.)
10192 .IPs "ext\ \ "
10193 Allows you to specify your own pixel aspect ratio with par_width and
10194 par_height.
10196 .PD 1
10198 .I NOTE:
10199 In general, setting aspect and autoaspect options is enough.
10203 .B par_width=<1\-255> (par=ext only)
10204 Specifies the width of the custom pixel aspect ratio.
10207 .B par_height=<1\-255> (par=ext only)
10208 Specifies the height of the custom pixel aspect ratio.
10211 .B aspect=<x/y | f (float value)>
10212 Store movie aspect internally, just like MPEG files.
10213 Much nicer solution than rescaling, because quality is not decreased.
10214 MPlayer and a few others players will play these files correctly, others
10215 will display them with the wrong aspect.
10216 The aspect parameter can be given as a ratio or a floating point number.
10219 .B (no)autoaspect
10220 Same as the aspect option, but automatically computes aspect, taking
10221 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
10222 filter chain.
10225 .B "psnr\ \ \ "
10226 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
10227 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
10228 the current directory.
10229 Returned values are in dB (decibel), the higher the better.
10232 .B "debug\ \ "
10233 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
10234 file.)
10238 .sp 1
10239 The following option is only available in Xvid 1.1.x.
10242 .B bvhq=<0|1>
10243 This setting allows vector candidates for B-frames to be used for
10244 the encoding chosen using a rate distortion optimized operator,
10245 which is what is done for P-frames by the vhq option.
10246 This produces nicer-looking B-frames while incurring almost no
10247 performance penalty (default: 1).
10250 .sp 1
10251 The following option is only available in the 1.2.x version of Xvid.
10254 .B threads=<0\-n>
10255 Create n threads to run the motion estimation (default: 0).
10256 The maximum number of threads that can be used is the picture height
10257 divided by 16.
10260 .SS x264enc (\-x264encopts)
10263 .B bitrate=<value>
10264 Sets the average bitrate to be used in kbits/\:second (default: off).
10265 Since local bitrate may vary, this average may be inaccurate for
10266 very short videos (see ratetol).
10267 Constant bitrate can be achieved by combining this with vbv_maxrate,
10268 at significant reduction in quality.
10271 .B qp=<0\-51>
10272 This selects the quantizer to use for P-frames.
10273 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
10274 20\-40 is a useful range.
10275 Lower values result in better fidelity, but higher bitrates.
10276 0 is lossless.
10277 Note that quantization in H.264 works differently from MPEG-1/2/4:
10278 H.264's quantization parameter (QP) is on a logarithmic scale.
10279 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
10280 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
10283 .B crf=<1.0\-50.0>
10284 Enables constant quality mode, and selects the quality.
10285 The scale is similar to QP.
10286 Like the bitrate-based modes, this allows each frame to use a
10287 different QP based on the frame's complexity.
10290 .B pass=<1\-3>
10291 Enable 2 or 3-pass mode.
10292 It is recommended to always encode in 2 or 3-pass mode as it leads to a
10293 better bit distribution and improves overall quality.
10294 .PD 0
10295 .RSs
10296 .IPs 1
10297 first pass
10298 .IPs 2
10299 second pass (of two pass encoding)
10300 .IPs 3
10301 Nth pass (second and third passes of three pass encoding)
10304 Here is how it works, and how to use it:
10306 The first pass (pass=1) collects statistics on the video and writes them
10307 to a file.
10308 You might want to deactivate some CPU-hungry options, apart from the ones
10309 that are on by default.
10311 In two pass mode, the second pass (pass=2) reads the statistics file and
10312 bases ratecontrol decisions on it.
10314 In three pass mode, the second pass (pass=3, that is not a typo)
10315 does both: It first reads the statistics, then overwrites them.
10316 You can use all encoding options, except very CPU-hungry options.
10318 The third pass (pass=3) is the same as the second pass, except that it has
10319 the second pass' statistics to work from.
10320 You can use all encoding options, including CPU-hungry ones.
10322 The first pass may use either average bitrate or constant quantizer.
10323 ABR is recommended, since it does not require guessing a quantizer.
10324 Subsequent passes are ABR, and must specify bitrate.
10325 .REss
10328 .B turbo=<0\-2>
10329 Fast first pass mode.
10330 During the first pass of a two or more pass encode it is possible to gain
10331 speed by disabling some options with negligible or even no impact on the
10332 final pass output quality.
10333 .PD 0
10334 .RSs
10335 .IPs 0
10336 disabled (default)
10337 .IPs 1
10338 Reduce subq, frameref and disable some inter-macroblock partition analysis
10339 modes.
10340 .IPs 2
10341 Reduce subq and frameref to 1, use a diamond ME search and disable all
10342 partition analysis modes.
10345 Level 1 can increase first pass speed up to 2x with no change in the global
10346 PSNR of the final pass compared to a full quality first pass.
10348 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
10349 in the global PSNR of the final pass compared to a full quality first pass.
10350 .REss
10353 .B keyint=<value>
10354 Sets maximum interval between IDR-frames (default: 250).
10355 Larger values save bits, thus improve quality, at the cost of seeking
10356 precision.
10357 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
10358 values of keyint.
10361 .B keyint_min=<1\-keyint/2>
10362 Sets minimum interval between IDR-frames (default: 25).
10363 If scenecuts appear within this interval, they are still encoded as
10364 I-frames, but do not start a new GOP.
10365 In H.264, I-frames do not necessarily bound a closed GOP because it is
10366 allowable for a P-frame to be predicted from more frames than just the one
10367 frame before it (also see frameref).
10368 Therefore, I-frames are not necessarily seekable.
10369 IDR-frames restrict subsequent P-frames from referring to any frame
10370 prior to the IDR-frame.
10373 .B scenecut=<\-1\-100>
10374 Controls how aggressively to insert extra I-frames (default: 40).
10375 With small values of scenecut, the codec often has to force an I-frame
10376 when it would exceed keyint.
10377 Good values of scenecut may find a better location for the I-frame.
10378 Large values use more I-frames than necessary, thus wasting bits.
10379 \-1 disables scene-cut detection, so I-frames are inserted only once
10380 every other keyint frames, even if a scene-cut occurs earlier.
10381 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
10382 are just as big as I-frames, but do not reset the "keyint counter".
10385 .B (no)intra_refresh
10386 Periodic intra block refresh instead of keyframes (default: disabled).
10387 This option disables IDR-frames, and, instead, uses a moving vertical bar
10388 of intra-coded blocks. This reduces compression efficiency but benefits
10389 low-latency streaming and resilience to packet loss.
10392 .B frameref=<1\-16>
10393 Number of previous frames used as predictors in B- and P-frames (default: 3).
10394 This is effective in anime, but in live-action material the improvements
10395 usually drop off very rapidly above 6 or so reference frames.
10396 This has no effect on decoding speed, but does increase the memory needed for
10397 decoding.
10398 Some decoders can only handle a maximum of 15 reference frames.
10401 .B bframes=<0\-16>
10402 maximum number of consecutive B-frames between I- and P-frames (default: 3)
10405 .B (no)b_adapt
10406 Automatically decides when to use B-frames and how many, up to the maximum
10407 specified above (default: on).
10408 If this option is disabled, then the maximum number of B-frames is used.
10411 .B b_bias=<\-100\-100>
10412 Controls the decision performed by b_adapt.
10413 A higher b_bias produces more B-frames (default: 0).
10416 .B (no)b_pyramid
10417 Allows B-frames to be used as references for predicting other frames.
10418 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
10419 Without this option, B-frames follow the same pattern as MPEG-[124].
10420 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
10421 are predicted from I0 and P4.
10422 With this option, they are coded as I0 P4 B2 B1 B3.
10423 B2 is the same as above, but B1 is predicted from I0 and B2, and
10424 B3 is predicted from B2 and P4.
10425 This usually results in slightly improved compression, at almost no
10426 speed cost.
10427 However, this is an experimental option: it is not fully tuned and
10428 may not always help.
10429 Requires bframes >= 2.
10430 Disadvantage: increases decoding delay to 2 frames.
10433 .B (no)deblock
10434 Use deblocking filter (default: on).
10435 As it takes very little time compared to its quality gain, it is not
10436 recommended to disable it.
10439 .B deblock=<\-6\-6>,<\-6\-6>
10440 The first parameter is AlphaC0 (default: 0).
10441 This adjusts thresholds for the H.264 in-loop deblocking filter.
10442 First, this parameter adjusts the maximum amount of change that the filter is
10443 allowed to cause on any one pixel.
10444 Secondly, this parameter affects the threshold for difference across the
10445 edge being filtered.
10446 A positive value reduces blocking artifacts more, but will also smear details.
10448 The second parameter is Beta (default: 0).
10449 This affects the detail threshold.
10450 Very detailed blocks are not filtered, since the smoothing caused by the
10451 filter would be more noticeable than the original blocking.
10453 The default behavior of the filter almost always achieves optimal quality,
10454 so it is best to either leave it alone, or make only small adjustments.
10455 However, if your source material already has some blocking or noise which
10456 you would like to remove, it may be a good idea to turn it up a little bit.
10459 .B (no)cabac
10460 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
10461 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
10462 Unless you are looking for decoding speed, you should not disable it.
10465 .B qp_min=<1\-51> (ABR or two pass)
10466 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
10469 .B qp_max=<1\-51> (ABR or two pass)
10470 maximum quantizer (default: 51)
10473 .B qp_step=<1\-50> (ABR or two pass)
10474 maximum value by which the quantizer may be incremented/decremented between
10475 frames (default: 4)
10478 .B (no)mbtree
10479 Enable macroblock tree ratecontrol (default: enabled).
10480 Use a large lookahead to track temporal propagation of data and weight quality
10481 accordingly.
10482 In multi-pass mode, this writes to a separate stats file named
10483 <passlogfile>.mbtree.
10486 .B rc_lookahead=<0\-250>
10487 Adjust the mbtree lookahead distance (default: 40).
10488 Larger values will be slower and cause x264 to consume more memory, but can
10489 yield higher quality.
10492 .B ratetol=<0.1\-100.0> (ABR or two pass)
10493 allowed variance in average bitrate (no particular units) (default: 1.0)
10496 .B vbv_maxrate=<value> (ABR or two pass)
10497 maximum local bitrate, in kbits/\:second (default: disabled)
10500 .B vbv_bufsize=<value> (ABR or two pass)
10501 averaging period for vbv_maxrate, in kbits
10502 (default: none, must be specified if vbv_maxrate is enabled)
10505 .B vbv_init=<0.0\-1.0> (ABR or two pass)
10506 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
10509 .B ip_factor=<value>
10510 quantizer factor between I- and P-frames (default: 1.4)
10513 .B pb_factor=<value>
10514 quantizer factor between P- and B-frames (default: 1.3)
10517 .B qcomp=<0\-1> (ABR or two pass)
10518 quantizer compression (default: 0.6).
10519 A lower value makes the bitrate more constant,
10520 while a higher value makes the quantization parameter more constant.
10523 .B cplx_blur=<0\-999> (two pass only)
10524 Temporal blur of the estimated frame complexity, before curve compression
10525 (default: 20).
10526 Lower values allow the quantizer value to jump around more,
10527 higher values force it to vary more smoothly.
10528 cplx_blur ensures that each I-frame has quality comparable to the following
10529 P-frames, and ensures that alternating high and low complexity frames
10530 (e.g.\& low fps animation) do not waste bits on fluctuating quantizer.
10533 .B qblur=<0\-99> (two pass only)
10534 Temporal blur of the quantization parameter, after curve compression
10535 (default: 0.5).
10536 Lower values allow the quantizer value to jump around more,
10537 higher values force it to vary more smoothly.
10540 .B zones=<zone0>[/<zone1>[/...]]
10541 User specified quality for specific parts (ending, credits, ...).
10542 Each zone is <start-frame>,<end-frame>,<option> where option may be
10543 .PD 0
10544 .RSs
10545 .IPs "q=<0\-51>"
10546 quantizer
10547 .IPs "b=<0.01\-100.0>"
10548 bitrate multiplier
10550 .PD 1
10552 .I NOTE:
10553 The quantizer option is not strictly enforced.
10554 It affects only the planning stage of ratecontrol, and is still subject
10555 to overflow compensation and qp_min/qp_max.
10559 .B direct_pred=<name>
10560 Determines the type of motion prediction used for direct macroblocks
10561 in B-frames.
10562 .PD 0
10563 .RSs
10564 .IPs none
10565 Direct macroblocks are not used.
10566 .IPs spatial
10567 Motion vectors are extrapolated from neighboring blocks.
10568 (default)
10569 .IPs temporal
10570 Motion vectors are extrapolated from the following P-frame.
10571 .IPs auto
10572 The codec selects between spatial and temporal for each frame.
10574 .PD 1
10576 Spatial and temporal are approximately the same speed and PSNR,
10577 the choice between them depends on the video content.
10578 Auto is slightly better, but slower.
10579 Auto is most effective when combined with multipass.
10580 direct_pred=none is both slower and lower quality.
10584 .B weightp
10585 Weighted P-frame prediction mode (default: 2).
10586 .PD 0
10587 .RSs
10588 .IPs 0
10589 disabled (fastest)
10590 .IPs 1
10591 blind mode (slightly better quality)
10592 .IPs 2
10593 smart mode (best)
10595 .PD 1
10598 .B (no)weight_b
10599 Use weighted prediction in B-frames.
10600 Without this option, bidirectionally predicted macroblocks give
10601 equal weight to each reference frame.
10602 With this option, the weights are determined by the temporal position
10603 of the B-frame relative to the references.
10604 Requires bframes > 1.
10607 .B partitions=<list>
10608 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
10609 .PD 0
10610 .RSs
10611 .IPs p8x8
10612 Enable types p16x8, p8x16, p8x8.
10613 .IPs p4x4
10614 Enable types p8x4, p4x8, p4x4.
10615 p4x4 is recommended only with subq >= 5, and only at low resolutions.
10616 .IPs b8x8
10617 Enable types b16x8, b8x16, b8x8.
10618 .IPs i8x8
10619 Enable type i8x8.
10620 i8x8 has no effect unless 8x8dct is enabled.
10621 .IPs i4x4
10622 Enable type i4x4.
10623 .IPs all
10624 Enable all of the above types.
10625 .IPs none
10626 Disable all of the above types.
10628 .PD 1
10630 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
10631 are always enabled.
10633 The idea is to find the type and size that best describe a certain area
10634 of the picture.
10635 For example, a global pan is better represented by 16x16 blocks, while
10636 small moving objects are better represented by smaller blocks.
10640 .B (no)8x8dct
10641 Adaptive spatial transform size: allows macroblocks to choose between
10642 4x4 and 8x8 DCT.
10643 Also allows the i8x8 macroblock type.
10644 Without this option, only 4x4 DCT is used.
10647 .B me=<name>
10648 Select fullpixel motion estimation algorithm.
10649 .PD 0
10650 .RSs
10651 .IPs dia
10652 diamond search, radius 1 (fast)
10653 .IPs hex
10654 hexagon search, radius 2 (default)
10655 .IPs umh
10656 uneven multi-hexagon search (slow)
10657 .IPs esa
10658 exhaustive search (very slow, and no better than umh)
10660 .PD 1
10663 .B me_range=<4\-64>
10664 radius of exhaustive or multi-hexagon motion search (default: 16)
10667 .B subq=<0\-9>
10668 Adjust subpel refinement quality.
10669 This parameter controls quality versus speed tradeoffs involved in the motion
10670 estimation decision process.
10671 subq=5 can compress up to 10% better than subq=1.
10672 .PD 0
10673 .RSs
10674 .IPs 0
10675 Runs fullpixel precision motion estimation on all candidate
10676 macroblock types.
10677 Then selects the best type with SAD metric (faster than subq=1, not recommended
10678 unless you're looking for ultra-fast encoding).
10679 .IPs 1
10680 Does as 0, then refines the motion of that type to fast quarterpixel precision
10681 (fast).
10682 .IPs 2
10683 Runs halfpixel precision motion estimation on all candidate macroblock types.
10684 Then selects the best type with SATD metric.
10685 Then refines the motion of that type to fast quarterpixel precision.
10686 .IPs 3
10687 As 2, but uses a slower quarterpixel refinement.
10688 .IPs 4
10689 Runs fast quarterpixel precision motion estimation on all candidate
10690 macroblock types.
10691 Then selects the best type with SATD metric.
10692 Then finishes the quarterpixel refinement for that type.
10693 .IPs 5
10694 Runs best quality quarterpixel precision motion estimation on all
10695 candidate macroblock types, before selecting the best type.
10696 Also refines the two motion vectors used in bidirectional macroblocks with
10697 SATD metric, rather than reusing vectors from the forward and backward
10698 searches.
10699 .IPs 6
10700 Enables rate-distortion optimization of macroblock types in
10701 I- and P-frames.
10702 .IPs 7
10703 Enables rate-distortion optimization of macroblock types in all frames (default).
10704 .IPs 8
10705 Enables rate-distortion optimization of motion vectors and intra prediction modes in I- and P-frames.
10706 .IPs 9
10707 Enables rate-distortion optimization of motion vectors and intra prediction modes in all frames (best).
10709 .PD 1
10711 In the above, "all candidates" does not exactly mean all enabled types:
10712 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
10716 .B (no)chroma_me
10717 Takes into account chroma information during subpixel motion search
10718 (default: enabled).
10719 Requires subq>=5.
10722 .B (no)mixed_refs
10723 Allows each 8x8 or 16x8 motion partition to independently select a
10724 reference frame.
10725 Without this option, a whole macroblock must use the same reference.
10726 Requires frameref>1.
10729 .B trellis=<0\-2> (cabac only)
10730 rate-distortion optimal quantization
10731 .PD 0
10732 .RSs
10733 .IPs 0
10734 disabled
10735 .IPs 1
10736 enabled only for the final encode (default)
10737 .IPs 2
10738 enabled during all mode decisions (slow, requires subq>=6)
10740 .PD 1
10743 .B psy-rd=rd[,trell]
10744 Sets the strength of the psychovisual optimization.
10745 .PD 0
10746 .RSs
10747 .IPs rd=<0.0\-10.0>
10748 psy optimization strength (requires subq>=6) (default: 1.0)
10749 .IPs trell=<0.0\-10.0>
10750 trellis (requires trellis, experimental) (default: 0.0)
10752 .PD 1
10755 .B (no)psy
10756 Enable psychovisual optimizations that hurt PSNR and SSIM but ought to look
10757 better (default: enabled).
10760 .B deadzone_inter=<0\-32>
10761 Set the size of the inter luma quantization deadzone for non-trellis
10762 quantization (default: 21).
10763 Lower values help to preserve fine details and film grain (typically useful
10764 for high bitrate/quality encode), while higher values help filter out
10765 these details to save bits that can be spent again on other macroblocks
10766 and frames (typically useful for bitrate-starved encodes).
10767 It is recommended that you start by tweaking deadzone_intra before changing
10768 this parameter.
10771 .B deadzone_intra=<0\-32>
10772 Set the size of the intra luma quantization deadzone for non-trellis
10773 quantization (default: 11).
10774 This option has the same effect as deadzone_inter except that it affects
10775 intra frames.
10776 It is recommended that you start by tweaking this parameter before changing
10777 deadzone_inter.
10780 .B (no)fast_pskip
10781 Performs early skip detection in P-frames (default: enabled).
10782 This usually improves speed at no cost, but it can sometimes produce
10783 artifacts in areas with no details, like sky.
10786 .B (no)dct_decimate
10787 Eliminate dct blocks in P-frames containing only a small single coefficient
10788 (default: enabled).
10789 This will remove some details, so it will save bits that can be spent
10790 again on other frames, hopefully raising overall subjective quality.
10791 If you are compressing non-anime content with a high target bitrate, you
10792 may want to disable this to preserve as much detail as possible.
10795 .B nr=<0\-100000>
10796 Noise reduction, 0 means disabled.
10797 100\-1000 is a useful range for typical content, but you may want to turn it
10798 up a bit more for very noisy content (default: 0).
10799 Given its small impact on speed, you might want to prefer to use this over
10800 filtering noise away with video filters like denoise3d or hqdn3d.
10803 .B chroma_qp_offset=<\-12\-12>
10804 Use a different quantizer for chroma as compared to luma.
10805 Useful values are in the range <\-2\-2> (default: 0).
10808 .B aq_mode=<0\-2>
10809 Defines how adaptive quantization (AQ) distributes bits:
10810 .PD 0
10811 .RSs
10812 .IPs 0
10813 disabled
10814 .IPs 1
10815 Avoid moving bits between frames.
10816 .IPs 2
10817 Move bits between frames (by default).
10819 .PD 1
10822 .B aq_strength=<positive float value>
10823 Controls how much adaptive quantization (AQ) reduces blocking and blurring
10824 in flat and textured areas (default: 1.0).
10825 A value of 0.5 will lead to weak AQ and less details, when a value of 1.5
10826 will lead to strong AQ and more details.
10829 .B cqm=<flat|jvt|<filename>>
10830 Either uses a predefined custom quantization matrix or loads a JM format
10831 matrix file.
10832 .PD 0
10833 .RSs
10834 .IPs "flat\ "
10835 Use the predefined flat 16 matrix (default).
10836 .IPs "jvt\ \ "
10837 Use the predefined JVT matrix.
10838 .IPs <filename>
10839 Use the provided JM format matrix file.
10840 .PD 1
10843 .I NOTE:
10844 Windows CMD.EXE users may experience problems with parsing the command line
10845 if they attempt to use all the CQM lists.
10846 This is due to a command line length limitation.
10847 In this case it is recommended the lists be put into a JM format CQM
10848 file and loaded as specified above.
10852 .B cqm4iy=<list> (also see cqm)
10853 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10854 values in the 1\-255 range.
10857 .B cqm4ic=<list> (also see cqm)
10858 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10859 separated values in the 1\-255 range.
10862 .B cqm4py=<list> (also see cqm)
10863 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10864 values in the 1\-255 range.
10867 .B cqm4pc=<list> (also see cqm)
10868 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10869 separated values in the 1\-255 range.
10872 .B cqm8iy=<list> (also see cqm)
10873 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10874 values in the 1\-255 range.
10877 .B cqm8py=<list> (also see cqm)
10878 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10879 values in the 1\-255 range.
10882 .B level_idc=<10\-51>
10883 Set the bitstream's level as defined by annex A of the H.264 standard
10884 (default: 51 \- level 5.1).
10885 This is used for telling the decoder what capabilities it needs to support.
10886 Use this parameter only if you know what it means,
10887 and you have a need to set it.
10890 .B threads=<0\-16>
10891 Spawn threads to encode in parallel on multiple CPUs (default: 0).
10892 This has a slight penalty to compression quality.
10893 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10894 appropriate number of threads.
10897 .B (no)sliced_threads
10898 Use slice-based threading (default: disabled).
10899 Unlike normal threading, this option adds no encoding latency, but is slightly
10900 slower and less effective at compression.
10903 .B slice_max_size=<0 or positive integer>
10904 Maximum slice size in bytes (default: 0).
10905 A value of zero disables the maximum.
10908 .B slice_max_mbs=<0 or positive integer>
10909 Maximum slice size in number of macroblocks (default: 0).
10910 A value of zero disables the maximum.
10913 .B slices=<0 or positive integer>
10914 Maximum number of slices per frame (default: 0).
10915 A value of zero disables the maximum.
10918 .B sync_lookahead=<0\-250>
10919 Adjusts the size of the threaded lookahead buffer (default: 0).
10920 0 or 'auto' tells x264 to automatically determine buffer size.
10923 .B (no)deterministic
10924 Use only deterministic optimizations with multithreaded encoding (default:
10925 enabled).
10928 .B (no)global_header
10929 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10930 (default: disabled).
10931 Some players, such as the Sony PSP, require the use of this option.
10932 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10935 .B (no)interlaced
10936 Treat the video content as interlaced.
10939 .B (no)constrained_intra
10940 Enable constrained intra prediction (default: disabled).
10941 This significantly reduces compression, but is required for the base layer of
10942 SVC encodes.
10945 .B (no)aud
10946 Write access unit delimeters to the stream (default: disabled).
10947 Enable this only if your target container format requires access unit
10948 delimiters.
10951 .B overscan=<undef|show|crop>
10952 Include VUI overscan information in the stream (default: disabled).
10953 See doc/vui.txt in the x264 source code for more information.
10956 .B videoformat=<component|pal|ntsc|secam|mac|undef>
10957 Include VUI video format information in the stream (default: disabled).
10958 This is a purely informative setting for describing the original source.
10959 See doc/vui.txt in the x264 source code for more information.
10962 .B (no)fullrange
10963 Include VUI full range information in the stream (default: disabled).
10964 Use this option if your source video is not range limited.
10965 See doc/vui.txt in the x264 source code for more information.
10968 .B colorprim=<bt709|bt470m|bt470bg|smpte170m|smpte240m|film|undef>
10969 Include color primaries information (default: disabled).
10970 This can be used for color correction.
10971 See doc/vui.txt in the x264 source code for more information.
10974 .B transfer=<bt709|bt470m|bt470bg|linear|log100|log316|smpte170m|smpte240m>
10975 Include VUI transfer characteristics information in the stream
10976 (default: disabled).
10977 This can be used for color correction.
10978 See doc/vui.txt in the x264 source code for more information.
10981 .B colormatrix=<bt709|fcc|bt470bg|smpte170m|smpte240m|GBR|YCgCo>
10982 Include VUI matrix coefficients in the stream (default: disabled).
10983 This can be used for color correction.
10984 See doc/vui.txt in the x264 source code for more information.
10987 .B chromaloc=<0-5>
10988 Include VUI chroma sample location information in the stream (default:
10989 disabled).
10990 Use this option to ensure alignment of the chroma and luma planes after
10991 color space conversions.
10992 See doc/vui.txt in the x264 source code for more information.
10995 .B log=<\-1\-3>
10996 Adjust the amount of logging info printed to the screen.
10997 .PD 0
10998 .RSs
10999 .IPs "\-1"
11000 none
11001 .IPs " 0"
11002 Print errors only.
11003 .IPs " 1"
11004 warnings
11005 .IPs " 2"
11006 PSNR and other analysis statistics when the encode finishes (default)
11007 .IPs " 3"
11008 PSNR, QP, frametype, size, and other statistics for every frame
11010 .PD 1
11013 .B (no)psnr
11014 Print signal-to-noise ratio statistics.
11016 .I NOTE:
11017 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
11018 mathematically sound (they are simply the average of per-frame PSNRs).
11019 They are kept only for comparison to the JM reference codec.
11020 For all other purposes, please use either the 'Global' PSNR, or the per-frame
11021 PSNRs printed by log=3.
11024 .B (no)ssim
11025 Print the Structural Similarity Metric results.
11026 This is an alternative to PSNR, and may be better correlated with the
11027 perceived quality of the compressed video.
11030 .B (no)visualize
11031 Enable x264 visualizations during encoding.
11032 If the x264 on your system supports it, a new window will be opened during
11033 the encoding process, in which x264 will attempt to present an overview of
11034 how each frame gets encoded.
11035 Each block type on the visualized movie will be colored as follows:
11038 .B dump_yuv=<file name>
11039 Dump YUV frames to the specified file.
11040 For debugging use.
11041 .PD 0
11042 .RSs
11043 .IPs red/pink
11044 intra block
11045 .IPs "blue\ "
11046 inter block
11047 .IPs green
11048 skip block
11049 .IPs yellow
11050 B-block
11052 .PD 1
11054 This feature can be considered experimental and subject to change.
11055 In particular, it depends on x264 being compiled with visualizations enabled.
11056 Note that as of writing this, x264 pauses after encoding and visualizing
11057 each frame, waiting for the user to press a key, at which point the next
11058 frame will be encoded.
11062 .SS xvfw (\-xvfwopts)
11064 Encoding with Video for Windows codecs is mostly obsolete unless you wish
11065 to encode to some obscure fringe codec.
11068 .B codec=<name>
11069 The name of the binary codec file with which to encode.
11072 .B compdata=<file>
11073 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
11076 .SS MPEG muxer (\-mpegopts)
11078 The MPEG muxer can generate 5 types of streams, each of which has reasonable
11079 default parameters that the user can override.
11080 Generally, when generating MPEG files, it is advisable to disable
11081 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
11082 harddup and softskip video filters).
11084 .I EXAMPLE:
11085 .PD 0
11086 .RSs
11087 .IPs format=mpeg2:tsaf:vbitrate=8000
11089 .PD 1
11092 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
11093 stream format (default: mpeg2).
11094 pes1 and pes2 are very broken formats (no pack header and no padding),
11095 but VDR uses them; do not choose them unless you know exactly what you
11096 are doing.
11099 .B size=<up to 65535>
11100 Pack size in bytes, do not change unless you know exactly what
11101 you are doing (default: 2048).
11104 .B muxrate=<int>
11105 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
11106 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
11109 .B "tsaf\ \ \ "
11110 Sets timestamps on all frames, if possible; recommended when format=dvd.
11111 If dvdauthor complains with a message like "..audio sector out of range...",
11112 you probably did not enable this option.
11115 .B interleaving2
11116 Uses a better algorithm to interleave audio and video packets, based on the
11117 principle that the muxer will always try to fill the stream with the largest
11118 percentage of free space.
11121 .B vdelay=<1\-32760>
11122 Initial video delay time, in milliseconds (default: 0),
11123 use it if you want to delay video with respect to audio.
11124 It doesn't work with :drop.
11127 .B adelay=<1\-32760>
11128 Initial audio delay time, in milliseconds (default: 0),
11129 use it if you want to delay audio with respect to video.
11132 .B "drop\ \ \ "
11133 When used with vdelay the muxer drops the part of audio that was
11134 anticipated.
11137 .B vwidth, vheight=<1\-4095>
11138 Set the video width and height when video is MPEG-1/2.
11141 .B vpswidth, vpsheight=<1\-4095>
11142 Set pan and scan video width and height when video is MPEG-2.
11145 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
11146 Sets the display aspect ratio for MPEG-2 video.
11147 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
11150 .B vbitrate=<int>
11151 Sets the video bitrate in kbit/s for MPEG-1/2 video.
11154 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
11155 Sets the framerate for MPEG-1/2 video.
11156 This option will be ignored if used with the telecine option.
11159 .B telecine
11160 Enables 3:2 pulldown soft telecine mode: The muxer will make the
11161 video stream look like it was encoded at 30000/1001 fps.
11162 It only works with MPEG-2 video when the output framerate is
11163 24000/1001 fps, convert it with \-ofps if necessary.
11164 Any other framerate is incompatible with this option.
11167 .B film2pal
11168 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
11169 will make the video stream look like it was encoded at 25 fps.
11170 It only works with MPEG-2 video when the output framerate is
11171 24000/1001 fps, convert it with \-ofps if necessary.
11172 Any other framerate is incompatible with this option.
11175 .B tele_src and tele_dest
11176 Enables arbitrary telecining using Donand Graft's DGPulldown code.
11177 You need to specify the original and the desired framerate; the
11178 muxer will make the video stream look like it was encoded at
11179 the desired framerate.
11180 It only works with MPEG-2 video when the input framerate is smaller
11181 than the output framerate and the framerate increase is <= 1.5.
11182 .sp 1
11184 .I EXAMPLE:
11186 .PD 0
11187 .RSs
11188 .IPs tele_src=25,tele_dest=30000/1001
11189 PAL to NTSC telecining
11191 .PD 1
11194 .B vbuf_size=<40\-1194>
11195 Sets the size of the video decoder's buffer, expressed in kilobytes.
11196 Specify it only if the bitrate of the video stream is too high for
11197 the chosen format and if you know perfectly well what you are doing.
11198 A too high value may lead to an unplayable movie, depending on the player's
11199 capabilities.
11200 When muxing HDTV video a value of 400 should suffice.
11203 .B abuf_size=<4\-64>
11204 Sets the size of the audio decoder's buffer, expressed in kilobytes.
11205 The same principle as for vbuf_size applies.
11208 .SS FFmpeg libavformat demuxers (\-lavfdopts)
11211 .B analyzeduration=<value>
11212 Maximum length in seconds to analyze the stream properties.
11215 .B format=<value>
11216 Force a specific libavformat demuxer.
11219 .B o=<key>=<value>[,<key>=<value>[,...]]
11220 Pass AVOptions to libavformat demuxer.
11221 Note, a patch to make the o= unneeded and pass all unknown options through
11222 the AVOption system is welcome.
11223 A full list of AVOptions can be found in the FFmpeg manual.
11224 Note that some options may conflict with MPlayer/MEncoder options.
11225 .sp 1
11227 .I EXAMPLE:
11229 .RSs
11230 .PD 0
11231 .IPs o=ignidx
11232 .PD 1
11236 .B probesize=<value>
11237 Maximum amount of data to probe during the detection phase.
11238 In the case of MPEG-TS this value identifies the maximum number
11239 of TS packets to scan.
11242 .B cryptokey=<hexstring>
11243 Encryption key the demuxer should use.
11244 This is the raw binary data of the key converted to a hexadecimal string.
11247 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
11250 .B delay=<value>
11251 Currently only meaningful for MPEG[12]: Maximum allowed distance,
11252 in seconds, between the reference timer of the output stream (SCR)
11253 and the decoding timestamp (DTS) for any stream present
11254 (demux to decode delay).
11255 Default is 0.7 (as mandated by the standards defined by MPEG).
11256 Higher values require larger buffers and must not be used.
11259 .B format=<container_format>
11260 Override which container format to mux into
11261 (default: autodetect from output file extension).
11262 .PD 0
11263 .RSs
11264 .IPs "mpg\ \ "
11265 MPEG-1 systems and MPEG-2 PS
11266 .IPs "asf\ \ "
11267 Advanced Streaming Format
11268 .IPs "avi\ \ "
11269 Audio Video Interleave file
11270 .IPs "wav\ \ "
11271 Waveform Audio
11272 .IPs "swf\ \ "
11273 Macromedia Flash
11274 .IPs "flv\ \ "
11275 Macromedia Flash video files
11276 .IPs "rm\ \ \ "
11277 RealAudio and RealVideo
11278 .IPs "au\ \ \ "
11279 SUN AU format
11280 .IPs "nut\ \ "
11281 NUT open container format (experimental)
11282 .IPs "mov\ \ "
11283 QuickTime
11284 .IPs "mp4\ \ "
11285 MPEG-4 format
11286 .IPs "ipod\ "
11287 MPEG-4 format with extra header flags required by Apple iPod firmware
11288 .IPs "dv\ \ \ "
11289 Sony Digital Video container
11290 .IPs "matroska\ \ \ "
11291 Matroska
11293 .PD 1
11295 .B muxrate=<rate>
11296 Nominal bitrate of the multiplex, in bits per second;
11297 currently it is meaningful only for MPEG[12].
11298 Sometimes raising it is necessary in order to avoid "buffer underflows".
11301 .B o=<key>=<value>[,<key>=<value>[,...]]
11302 Pass AVOptions to libavformat muxer.
11303 Note, a patch to make the o= unneeded and pass all unknown options through
11304 the AVOption system is welcome.
11305 A full list of AVOptions can be found in the FFmpeg manual.
11306 Note that some options may conflict with MEncoder options.
11307 .sp 1
11309 .I EXAMPLE:
11311 .RSs
11312 .PD 0
11313 .IPs o=packetsize=100
11314 .PD 1
11318 .B packetsize=<size>
11319 Size, expressed in bytes, of the unitary packet for the chosen format.
11320 When muxing to MPEG[12] implementations the default values are:
11321 2324 for [S]VCD, 2048 for all others formats.
11324 .B preload=<distance>
11325 Currently only meaningful for MPEG[12]: Initial distance,
11326 in seconds, between the reference timer of the output stream (SCR)
11327 and the decoding timestamp (DTS) for any stream present
11328 (demux to decode delay).
11332 .\" --------------------------------------------------------------------------
11333 .\" environment variables
11334 .\" --------------------------------------------------------------------------
11336 .SH ENVIRONMENT VARIABLES
11338 There are a number of environment variables that can be used to
11339 control the behavior of MPlayer and MEncoder.
11342 .B MPLAYER_CHARSET (also see \-msgcharset)
11343 Convert console messages to the specified charset (default: autodetect).
11344 A value of "noconv" means no conversion.
11347 .B MPLAYER_HOME
11348 Directory where MPlayer looks for user settings.
11351 .B MPLAYER_LOCALEDIR
11352 Directory where MPlayer looks for gettext translation files (if enabled).
11355 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
11356 Set the initial verbosity level across all message modules (default: 0).
11357 The resulting verbosity corresponds to that of \-msglevel 5 plus the
11358 value of MPLAYER_VERBOSE.
11360 .SS libaf:
11363 .B LADSPA_PATH
11364 If LADSPA_PATH is set, it searches for the specified file.
11365 If it is not set, you must supply a fully specified pathname.
11366 FIXME: This is also mentioned in the ladspa section.
11368 .SS libdvdcss:
11371 .B DVDCSS_CACHE
11372 Specify a directory in which to store title key values.
11373 This will speed up descrambling of DVDs which are in the cache.
11374 The DVDCSS_CACHE directory is created if it does not exist,
11375 and a subdirectory is created named after the DVD's title
11376 or manufacturing date.
11377 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
11378 the default value which is "${HOME}/.dvdcss/" under Unix and
11379 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
11380 The special value "off" disables caching.
11383 .B DVDCSS_METHOD
11384 Sets the authentication and decryption method that
11385 libdvdcss will use to read scrambled discs.
11386 Can be one of title, key or disc.
11387 .PD 0
11388 .RSs
11389 .IPs "key\ \ "
11390 is the default method.
11391 libdvdcss will use a set of calculated player keys to try and get the disc key.
11392 This can fail if the drive does not recognize any of the player keys.
11393 .IPs "disc\ "
11394 is a fallback method when key has failed.
11395 Instead of using player keys, libdvdcss will crack the disc key using
11396 a brute force algorithm.
11397 This process is CPU intensive and requires 64 MB of memory to store
11398 temporary data.
11399 .IPs title
11400 is the fallback when all other methods have failed.
11401 It does not rely on a key exchange with the DVD drive, but rather uses
11402 a crypto attack to guess the title key.
11403 On rare cases this may fail because there is not enough encrypted data
11404 on the disc to perform a statistical attack, but in the other hand it
11405 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
11406 the wrong region on an RPC2 drive.
11408 .PD 1
11411 .B DVDCSS_RAW_DEVICE
11412 Specify the raw device to use.
11413 Exact usage will depend on your operating system, the Linux
11414 utility to set up raw devices is raw(8) for instance.
11415 Please note that on most operating systems, using a raw device
11416 requires highly aligned buffers: Linux requires a 2048 bytes
11417 alignment (which is the size of a DVD sector).
11420 .B DVDCSS_VERBOSE
11421 Sets the libdvdcss verbosity level.
11422 .PD 0
11423 .RSs
11424 .IPs 0
11425 Outputs no messages at all.
11426 .IPs 1
11427 Outputs error messages to stderr.
11428 .IPs 2
11429 Outputs error messages and debug messages to stderr.
11431 .PD 1
11434 .B DVDREAD_NOKEYS
11435 Skip retrieving all keys on startup.
11436 Currently disabled.
11439 .B HOME
11440 FIXME: Document this.
11442 .SS libao2:
11445 .B AO_SUN_DISABLE_SAMPLE_TIMING
11446 FIXME: Document this.
11449 .B AUDIODEV
11450 FIXME: Document this.
11453 .B AUDIOSERVER
11454 Specifies the Network Audio System server to which the
11455 nas audio output driver should connect and the transport
11456 that should be used.
11457 If unset DISPLAY is used instead.
11458 The transport can be one of tcp and unix.
11459 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
11460 or [unix]:<instancenumber>.
11461 The NAS base port is 8000 and <instancenumber> is added to that.
11462 .sp 1
11464 .I EXAMPLES:
11466 .PD 0
11467 .RSs
11468 .IPs AUDIOSERVER=somehost:0
11469 Connect to NAS server on somehost using default port and transport.
11470 .IPs AUDIOSERVER=tcp/somehost:8000
11471 Connect to NAS server on somehost listening on TCP port 8000.
11472 .IPs AUDIOSERVER=(unix)?:0
11473 Connect to NAS server instance 0 on localhost using unix domain sockets.
11475 .PD 1
11478 .B DISPLAY
11479 FIXME: Document this.
11481 .SS vidix:
11484 .B VIDIX_CRT
11485 FIXME: Document this.
11488 .B VIDIXIVTVALPHA
11489 Set this to 'disable' in order to stop the VIDIX driver from controlling
11490 alphablending settings.
11491 You can then manipulate it yourself with 'ivtvfbctl'.
11493 .SS osdep:
11496 .B TERM
11497 FIXME: Document this.
11499 .SS libvo:
11502 .B DISPLAY
11503 FIXME: Document this.
11506 .B FRAMEBUFFER
11507 FIXME: Document this.
11510 .B HOME
11511 FIXME: Document this.
11513 .SS libmpdemux:
11516 .B HOME
11517 FIXME: Document this.
11520 .B HOMEPATH
11521 FIXME: Document this.
11524 .B http_proxy
11525 FIXME: Document this.
11528 .B LOGNAME
11529 FIXME: Document this.
11532 .B USERPROFILE
11533 FIXME: Document this.
11535 .SS GUI:
11538 .B CHARSET
11539 FIXME: Document this.
11542 .B DISPLAY
11543 FIXME: Document this.
11546 .B HOME
11547 FIXME: Document this.
11549 .SS libavformat:
11552 .B AUDIO_FLIP_LEFT
11553 FIXME: Document this.
11556 .B BKTR_DEV
11557 FIXME: Document this.
11560 .B BKTR_FORMAT
11561 FIXME: Document this.
11564 .B BKTR_FREQUENCY
11565 FIXME: Document this.
11568 .B http_proxy
11569 FIXME: Document this.
11572 .B no_proxy
11573 FIXME: Document this.
11577 .\" --------------------------------------------------------------------------
11578 .\" Files
11579 .\" --------------------------------------------------------------------------
11581 .SH FILES
11584 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
11585 MPlayer system-wide settings
11588 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
11589 MEncoder system-wide settings
11592 ~/.mplayer/\:config
11593 MPlayer user settings
11596 ~/.mplayer/\:mencoder.conf
11597 MEncoder user settings
11600 ~/.mplayer/\:input.conf
11601 input bindings (see '\-input keylist' for the full list)
11604 ~/.mplayer/\:font/
11605 font directory (There must be a font.desc file and files with .RAW extension.)
11608 ~/.mplayer/\:DVDkeys/
11609 cached CSS keys
11612 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
11613 in this order:
11615 /path/\:to/\:movie.sub
11617 ~/.mplayer/\:sub/\:movie.sub
11619 .PD 1
11622 .\" --------------------------------------------------------------------------
11623 .\" Examples
11624 .\" --------------------------------------------------------------------------
11626 .SH EXAMPLES OF MPLAYER USAGE
11629 .B Quickstart Blu\-ray playing:
11631 mplayer br:////path/to/disc
11632 mplayer br:// \-bluray\-device /path/to/disc
11636 .B Quickstart DVD playing:
11638 mplayer dvd://1
11642 .B Play in Japanese with English subtitles:
11644 mplayer dvd://1 \-alang ja \-slang en
11648 .B Play only chapters 5, 6, 7:
11650 mplayer dvd://1 \-chapter 5\-7
11654 .B Play only titles 5, 6, 7:
11656 mplayer dvd://5\-7
11660 .B Play a multiangle DVD:
11662 mplayer dvd://1 \-dvdangle 2
11666 .B Play from a different DVD device:
11668 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
11672 .B Play DVD video from a directory with VOB files:
11674 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
11678 .B Copy a DVD title to hard disk, saving to file "title1.vob":
11680 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
11684 .B Play a DVD with dvdnav from path /dev/sr1:
11686 mplayer dvdnav:////dev/sr1
11690 .B Stream from HTTP:
11692 mplayer http://mplayer.hq/example.avi
11696 .B Stream using RTSP:
11698 mplayer rtsp://server.example.com/streamName
11702 .B Convert subtitles to MPsub format:
11704 mplayer dummy.avi \-sub source.sub \-dumpmpsub
11708 .B Convert subtitles to MPsub format without watching the movie:
11710 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
11714 .B input from standard V4L:
11716 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
11720 .B Playback on Zoran cards (old style, deprecated):
11722 mplayer \-vo zr \-vf scale=352:288 file.avi
11726 .B Playback on Zoran cards (new style):
11728 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
11732 .B Play DTS-CD with passthrough:
11734 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
11737 You can also use \-afm hwac3 instead of \-ac hwdts.
11738 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
11739 If your external receiver supports decoding raw DTS streams,
11740 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
11743 .B Play a 6-channel AAC file with only two speakers:
11745 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
11748 You might want to play a bit with the pan values (e.g multiply with a value) to
11749 increase volume or avoid clipping.
11752 .B checkerboard invert with geq filter:
11754 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'
11758 .SH EXAMPLES OF MENCODER USAGE
11761 .B Encode DVD title #2, only selected chapters:
11763 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11767 .B Encode DVD title #2, resizing to 640x480:
11769 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11773 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
11775 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
11779 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
11781 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
11785 .B The same, but with MJPEG compression:
11787 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
11791 .B Encode all *.jpg files in the current directory:
11793 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
11797 .B Encode from a tuner (specify a format with \-vf format):
11799 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
11803 .B Encode from a pipe:
11805 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
11809 .\" --------------------------------------------------------------------------
11810 .\" Bugs, authors, standard disclaimer
11811 .\" --------------------------------------------------------------------------
11813 .SH BUGS
11814 Don't panic.
11815 If you find one, report it to us, but please make sure you have read all
11816 of the documentation first.
11817 Also look out for smileys. :)
11818 Many bugs are the result of incorrect setup or parameter usage.
11819 The bug reporting section of the documentation
11820 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
11821 explains how to create useful bug reports.
11825 .SH AUTHORS
11826 MPlayer was initially written by Arpad Gereoffy.
11827 See the AUTHORS file for a list of some of the many other contributors.
11829 MPlayer is (C) 2000\-2009 The MPlayer Team
11831 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
11832 It is maintained by Diego Biurrun.
11833 Please send mails about it to the MPlayer-DOCS mailing list.
11834 Translation specific mails belong on the MPlayer-translations mailing list.
11835 .\" end of file