documentation for ao dsound
[mplayer/greg.git] / DOCS / man / en / mplayer.1
blob076b285dabf5df98a820d6586f35a53dab4ddc50
1 .\" $Revision$
2 .\" MPlayer (C) 2000-2005 MPlayer Team
3 .\" This man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
5 .\" --------------------------------------------------------------------------
6 .\" Macro definitions
7 .\" --------------------------------------------------------------------------
9 .\" default indentation is 7, don't change!
10 .nr IN 7
11 .\" define indentation for suboptions
12 .nr SS 5
13 .\" add new suboption
14 .de IPs
15 .IP "\\$1" \n(SS
17 .\" begin of first level suboptions, end with .RE
18 .de RSs
19 .RS \n(IN+3
21 .\" begin of 2nd level suboptions
22 .de RSss
23 .PD 0
24 .RS \n(SS+3
26 .\" end of 2nd level suboptions
27 .de REss
28 .RE
29 .PD 1
32 .\" --------------------------------------------------------------------------
33 .\" Title
34 .\" --------------------------------------------------------------------------
36 .TH MPlayer 1 "2005-01-07" "The MPlayer Project" "The Movie Player"
38 .SH NAME
39 mplayer  \- movie player
40 .br
41 mencoder \- movie encoder
43 .\" --------------------------------------------------------------------------
44 .\" Synopsis
45 .\" --------------------------------------------------------------------------
47 .SH SYNOPSIS
48 .na
49 .nh
50 .B mplayer
51 .RI [options]\ [ \ file\  | \ URL\  | \ playlist\  | \ \-\  ]
53 .br
54 .in
55 .B mplayer
56 'in +\n[.k]u
57 [global options]
58 .I file1
59 [specific options] [file2] [specific options]
61 .br
62 .in
63 .B mplayer
64 'in +\n[.k]u
65 [global options]
66 .RI { "group of files and options" }
67 [group specific options]
69 .br
70 .in
71 .B mplayer
72 'in +\n[.k]u
73 .I dvd://[title | [start_title]\-end_title ]
74 [options]
76 .br
77 .in
78 .B mplayer
79 'in +\n[.k]u
80 .I vcd://track[/device]
82 .br
83 .in
84 .B mplayer
85 'in +\n[.k]u
86 .I tv://[channel]
87 [options]
89 .br
90 .in
91 .B mplayer
92 'in +\n[.k]u
93 .I dvb://[card_number@]channel
94 [options]
96 .br
97 .in
98 .B mplayer
99 'in +\n[.k]u
100 .I mf://filemask
101 [-mf options] [options]
105 .B mplayer
106 'in +\n[.k]u
107 .I [cdda|cddb]://track[:speed][/device]
108 [options]
112 .B mplayer
113 'in +\n[.k]u
114 .I cue://file[:track]
115 [options]
119 .B mplayer
120 'in +\n[.k]u
121 .RI [ mms[t] | http | http_proxy | rt[s]p | ftp ] ://
122 [user:passwd@]\fIURL\fP[:port] [options]
126 .B mplayer
127 'in +\n[.k]u
128 .I sdp://file
129 [options]
133 .B mplayer
134 'in +\n[.k]u
135 .I mpst://host[:port]/URL
136 [options]
140 .B gmplayer
141 [options]
142 [\-skin\ skin]
145 .B mencoder
146 [options]
147 .RI [ \ file\  | \ URL\  | \ \-\  ]
148 [\-o\ file]
152 .\" --------------------------------------------------------------------------
153 .\" Description
154 .\" --------------------------------------------------------------------------
156 .SH DESCRIPTION
157 .B mplayer
158 is a movie player for Linux (runs on many other platforms and CPU
159 architectures, see the documentation).
160 It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, OGG/\:OGM,
161 MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
162 native and binary codecs.
163 You can watch VideoCD, SVCD, DVD, 3ivx, DivX\ 3/\:4/\:5 and even WMV movies,
164 too.
166 MPlayer supports a wide range of video and audio output drivers.
167 It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
168 Quartz, but you can also use GGI, SDL (and all their drivers), VESA (on every
169 VESA-compatible card, even without X11), some low-level card-specific drivers
170 (for Matrox, 3Dfx and ATI) and some hardware MPEG decoder boards, such as the
171 Siemens DVB, DXR2 and DXR3/\:Hollywood+.
172 Most of them support software or hardware scaling, so you can enjoy movies in
173 fullscreen mode.
175 MPlayer has an onscreen display (OSD) for status information, nice big
176 antialiased shaded subtitles and visual feedback for keyboard controls.
177 European/\:ISO 8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean
178 fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM,
179 SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and
180 DVD subtitles (SPU streams, VOBsub and Closed Captions).
182 .B mencoder
183 (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode
184 MPlayer-playable movies (see above) to other MPlayer-playable formats (see
185 below).
186 It encodes to MPEG-4 (DivX/XviD), one of the libavcodec codecs and
187 PCM/\:MP3/\:VBRMP3 audio in 1, 2 or 3\ passes.
188 Furthermore it has stream copying abilities, a powerful filter system (crop,
189 expand, flip, postprocess, rotate, scale, noise, rgb/\:yuv conversion) and
190 more.
192 .B gmplayer
193 is MPlayer with a graphical user interface.
194 It has the same options as MPlayer.
196 Usage examples to get you started quickly can be found at the end
197 of this man page.
199 .B Also see the HTML documentation!
202 .\" --------------------------------------------------------------------------
203 .\" Keyboard control
204 .\" --------------------------------------------------------------------------
206 .SH "KEYBOARD CONTROL"
207 MPlayer has a fully configurable, command-driven control layer
208 which allows you to control MPlayer using keyboard, mouse, joystick
209 or remote control (with LIRC).
210 See the \-input option for ways to customize it.
213 .B general control
214 .PD 0
215 .RSs
216 .IPs "<\- and \->"
217 Seek backward/\:forward 10 seconds.
218 .IPs "up and down"
219 Seek backward/\:forward 1 minute.
220 .IPs "pgup and pgdown"
221 Seek backward/\:forward 10 minutes.
222 .IPs "[ and ]"
223 Decreases/increases current playback speed by 10%.
224 .IPs "{ and }"
225 Halves/doubles current playback speed.
226 .IPs "Backspace"
227 Reset playback speed to normal.
228 .IPs "< and >"
229 backward/\:forward in playlist
230 .IPs "HOME and END"
231 next/\:previous playtree entry in the parent list
232 .IPs "INS and DEL"
233 next/\:previous alternative source (ASX playlist only)
234 .IPs "p / SPACE"
235 Pause movie (pressing again unpauses).
236 .IPs .\ \ \ \ 
237 Step forward.
238 Pressing once will pause movie, every consecutive press will play one frame
239 and then go into pause mode again (any other key unpauses).
240 .IPs "q / ESC"
241 Stop playing and quit.
242 .IPs "+ and -"
243 Adjust audio delay by +/\:- 0.1 seconds.
244 .IPs "/ and *"
245 Decrease/\:increase volume.
246 .IPs "9 and 0"
247 Decrease/\:increase volume.
248 .IPs m\ \ \ \ 
249 Mute sound.
250 .IPs f\ \ \ \ 
251 Toggle fullscreen (also see \-fs).
252 .IPs T\ \ \ \ 
253 Toggle stay-on-top (also see \-ontop).
254 .IPs "w and e"
255 Decrease/\:increase pan-and-scan range.
256 .IPs o\ \ \ \ 
257 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
258 .IPs d\ \ \ \ 
259 Toggle frame dropping states: none / skip display / skip decoding
260 (see \-framedrop and \-hardframedrop).
261 .IPs v\ \ \ \ 
262 Toggle subtitle visibility.
263 .IPs "b / j"
264 Cycle through the available subtitles.
265 .IP F\ \ \ \ 
266 Toggle displaying "forced subtitles".
267 .IPs a\ \ \ \ 
268 Toggle subtitle aligment: top/\:middle/\:bottom.
269 .IPs "z and x"
270 Adjust subtitle delay by +/\:- 0.1 seconds.
271 .IPs "r and t"
272 Move subtitles up/\:down.
273 .IPs i\ \ \ \ 
274 Set EDL mark.
276 .PD 1
278 (The following keys are valid only when using a hardware accelerated video
279 output (xv, (x)vidix, (x)mga, etc), or the software equalizer filter
280 (\-vf eq or \-vf eq2).
282 .PD 0
283 .RSs
284 .IPs "1 and 2"
285 Adjust contrast.
286 .IPs "3 and 4"
287 Adjust brightness.
288 .IPs "5 and 6"
289 Adjust hue.
290 .IPs "7 and 8"
291 Adjust saturation.
293 .PD 1
295 (The following keys are valid only when using the quartz video output driver.)
297 .PD 0
298 .RSs
299 .IPs "option + 0"
300 Resize movie window to half its original size.
301 .IPs "option + 1"
302 Resize movie window to its original size.
303 .IPs "option + 2"
304 Resize movie window to double its original size.
305 .IPs "option + f"
306 Toggle fullscreen (also see \-fs).
307 .IPs "option + [ and option + ]"
308 Set movie window alpha.
309 .IPs T\ \ \ \ 
310 Toggle video layer: ontop/\:below/\:normal (also see \-ontop).
312 .PD 1
315 .B GUI keyboard control
316 .PD 0
317 .RSs
318 .IPs ENTER
319 Start playing.
320 .IPs s\ \ \ \ 
321 Stop playing.
322 .IPs l\ \ \ \ 
323 Load file.
324 .IPs c\ \ \ \ 
325 Skin browser.
326 .IPs p\ \ \ \ 
327 Toggle playlist.
329 .PD 1
332 .B TV input control
333 .PD 0
334 .RSs
335 .IPs "h and k"
336 Select previous/\:next channel.
337 .IPs n\ \ \ \ 
338 Change norm.
339 .IPs u\ \ \ \ 
340 Change channel list.
342 .PD 1
345 .\" --------------------------------------------------------------------------
346 .\" Options
347 .\" --------------------------------------------------------------------------
349 .SH "USAGE"
350 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
351 \-fs option is \-nofs.
353 If an option is marked as (XXX only), it will only work in combination with
354 the XXX option or if XXX is compiled in.
356 You can put all of the options in a configuration file which will be read
357 every time MPlayer is run.
358 The system-wide configuration file 'mplayer.conf' is in your configuration
359 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
360 specific one is '~/\:.mplayer/\:config'.
361 User specific options override system-wide options and options given on the
362 command line override either.
363 The syntax of the configuration files is 'option=<value>', everything after
364 a '#' is considered a comment.
365 Options that work without values can be enabled by setting them to 'yes'
366 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
367 Even suboptions can be specified in this way.
369 .I EXAMPLE:
371 # Use Matrox driver by default.
372 vo=xmga
373 # I love practicing handstands while watching videos.
374 flip=yes
375 # Decode/\:encode multiple files from png,
376 # start with mf://filemask
377 mf=type=png:fps=25
378 # Eerie negative images are cool.
379 vf=eq2=1.0:-0.8
382 You can also write file-specific configuration files.
383 If you wish to have a configuration file for a file called 'movie.avi', create a file
384 named 'movie.avi.conf' with the file-specific options in it and put it in
385 ~/.mplayer or in the same directory as the file.
389 .SH "GENERAL OPTIONS"
392 .B \-codecs-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
393 Use the specified file instead of system wide installed or builtin codecs.conf.
396 .B \-include <configuration\ file>
397 Specify configuration file to be parsed after the default ones.
400 .B \-quiet\ \ 
401 Make console output less verbose; in particular, prevents the status line
402 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
403 Particularly useful on slow terminals or broken ones which do not properly
404 handle carriage return (i.e.\& \\r).
407 .B \-v, \-verbose
408 Increment verbose level (more \-v means more verbosity).
409 .PD 0
410 .RSs
411 .IPs 0
412 only some informational output (default)
413 .IPs 1
414 some basic debug infos, avi header, function values (init debug)
415 .IPs 2
416 print avi indexes, chunk inputs, more debug infos (player debug)
417 .IPs 3
418 prints everything related to input parsers (parser debug)
420 .PD 1
424 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
427 .B \-autoq <quality> (use with \-vf [s]pp)
428 Dynamically changes the level of postprocessing depending on the available spare
429 CPU time.
430 The number you specify will be the maximum level used.
431 Usually you can use some big number.
432 You have to use \-vf [s]pp without parameters in order for this to work.
435 .B \-autosync <factor>
436 Gradually adjusts the A/\:V sync based on audio delay measurements.
437 Specifying \-autosync\ 0, the default, will cause frame timing to be based
438 entirely on audio delay measurements.
439 Specifying \-autosync\ 1 will do the same, but will subtly change the A/\:V
440 correction algorithm.
441 An uneven video framerate in a movie which plays fine with \-nosound can
442 often be helped by setting this to an integer value greater than 1.
443 The higher the value, the closer the timing will be to \-nosound.
444 Try \-autosync\ 30 to smooth out problems with sound drivers which do
445 not implement a perfect audio delay measurement.
446 With this value, if large A/\:V sync offsets occur, they will only take about
447 1 or 2\ seconds to settle out.
448 This delay in reaction time to sudden A/\:V offsets should be the only
449 side-effect of turning this option on, for all sound drivers.
452 .B \-benchmark
453 Prints some statistics on CPU usage and dropped frames at the end of playback.
454 Use in combination with \-nosound and \-vo null for benchmarking only the
455 video codec.
457 .I NOTE:
458 With this option MPlayer will also ignore frame duration when playing
459 only video (you can think of that as infinite fps).
462 .B \-colorkey <number>
463 Changes the colorkey to an RGB value of your choice.
464 0x000000 is black and 0xffffff is white.
465 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
466 xover and directx video output drivers.
469 .B \-nocolorkey
470 Disables colorkeying.
471 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix and
472 xover video output drivers.
475 .B \-crash-debug (DEBUG CODE)
476 Automatically attaches gdb upon crash or SIGTRAP.
477 Support must be compiled in by configuring with --enable-crash-debug or
478 by having a .developer file in the source tree.
481 .B \-edl <filename> (EDL only)
482 Enables edit decision list (EDL) actions during playback.
483 Video will be skipped over and audio will be muted and unmuted according to
484 the entries in the given file.
485 See DOCS/\:HTML/\:en/\:edl.html for details on how to use this.
488 .B \-edlout <filename> (EDL only)
489 Creates a new file and writes edit decision list (EDL) records to that file.
490 During playback, when the user hits 'i', an entry to skip over the last two
491 seconds of playback will be written to the file.
492 This provides a starting point from which the user can fine-tune EDL entries
493 later.
494 See DOCS/\:HTML/\:en/\:edl.html for details.
497 .B \-enqueue (GUI only)
498 Enqueue files given on the command line in the playlist instead of playing them
499 immediately.
502 .B \-fixed-vo (BETA CODE!)
503 Enforces a fixed video system for multiple files (one (un)initialisation for
504 all files).
505 Therefore only one window will be opened for all files.
506 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
507 xmga, xv, xvidix and dfbmga.
510 .B \-framedrop (also see \-hardframedrop)
511 Skip displaying some frames to maintain A/\:V sync on slow systems.
512 Video filters are not applied to such frames.
513 For B-frames even decoding is skipped completely.
516 .B \-h, \-help, \-\-help
517 Show short summary of options.
520 .B \-hardframedrop
521 More intense frame dropping (breaks decoding).
522 Leads to image distortion!
525 .B \-identify
526 Show file parameters in an easily parseable format.
527 Also prints more detailed information about subtitle and audio
528 track languages and IDs.
529 The wrapper script TOOLS/\:midentify suppresses the other MPlayer output and
530 (hopefully) shellescapes the filenames.
533 .B \-input <commands>
534 This option can be used to configure certain parts of the input system.
535 Paths are relative to ~/\:.mplayer/.
537 .I NOTE:
538 Autorepeat is currently only supported by joysticks.
539 .sp 1
540 Available commands are:
541 .sp 1
542 .PD 0
543 .RSs
544 .IPs conf=<filename>
545 Specify input configuration file other than the default
546 ~/\:.mplayer/\:input.conf.
547 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
548 .IPs ar-delay
549 Delay in msec before we start to autorepeat a key (0 to disable).
550 .IPs ar-rate
551 Number of key presses to generate per second on autorepeat.
552 .IPs keylist
553 Prints all keys that can be bound to commands.
554 .IPs cmdlist
555 Prints all commands that can be bound to keys.
556 .IPs js-dev
557 Specifies the joystick device to use (default: /dev/\:input/\:js0).
558 .IPs file\ 
559 Read commands from the given file.
560 Mostly useful with a FIFO.
562 .I NOTE:
563 When the given file is a FIFO MPlayer opens both ends so you can do
564 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
566 .PD 1
569 .B \-key-fifo-size <2\-65000>
570 Specify the size of the FIFO that buffers key events (default: 10).
571 A FIFO of size n can buffer (n-1) events.
572 If it is too small some events may be lost
573 (leading to "stuck mouse buttons" and similar effects).
574 If it is too big, MPlayer may seem to hang while it
575 processes the buffered events.
576 To get the same behaviour as before this option was introduced,
577 set it to 2 for Linux or 1024 for Windows.
580 .B \-lircconf <filename> (LIRC only)
581 Specifies a configuration file for LIRC (default: ~/\:.lircrc).
584 .B \-list-options
585 Prints all available options.
588 .B \-loop <number>
589 Loops movie playback <number> times.
590 0 means forever.
593 .B \-menu (OSD menu only)
594 Turn on OSD menu support.
597 .B \-menu-cfg <filename> (OSD menu only)
598 Use an alternative menu.conf.
601 .B \-menu-root <value> (OSD menu only)
602 Specify the main menu.
605 .B \-menu-startup (OSD menu only)
606 Display the main menu at MPlayer startup.
609 .B \-noconsolecontrols
610 Prevent MPlayer from reading key events from standard input.
611 Useful when reading data from standard input.
612 This is automatically enabled when \- is found on the command line.
613 There are situations where you have to set it manually, e.g.\&
614 if you open /dev/\:stdin (or the equivalent on your system), use stdin
615 in a playlist or intend to read from stdin later on via the loadfile or
616 loadlist slave commands.
619 .B \-nojoystick
620 Turns off joystick support.
623 .B \-nolirc
624 Turns off LIRC support.
627 .B \-nomouseinput (X11 only)
628 Disable mouse button press/\:release input (mozplayerxp's context menu relies
629 on this option).
632 .B \-nortc (RTC only)
633 Turns off usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
634 mechanism.
637 .B \-playlist <filename>
638 Play files according to a playlist file (ASX, Winamp, SMIL, or
639 one-file-per-line format).
641 .I NOTE:
642 This option is considered an entry so options found after it will apply
643 only to the elements of this playlist.
645 FIXME: This needs to be clarified and documented thoroughly.
648 .B \-really-quiet (also see \-quiet)
649 Display even less output and status messages than with \-quiet.
652 .B \-rtc-device <device>
653 Use the specified device for RTC timing.
656 .B \-shuffle
657 Play files in random order.
660 .B \-skin <name> (GUI only)
661 Loads a skin from the directory given as parameter below the default skin
662 directories, /usr/\:local/\:share/\:mplayer/\:Skin/\: and ~/.mplayer/\:Skin/.
663 .sp 1
664 .I EXAMPLE:
665 .PD 0
666 .RSs
667 .IPs "\-skin fittyfene"
668 Tries /usr/\:local/\:share/\:mplayer/\:Skin/\:fittyfene
669 and afterwards ~/.mplayer/\:Skin/\:fittyfene.
671 .PD 1
674 .B \-slave (also see \-input)
675 Switches on slave mode, in which MPlayer works as a backend for other programs.
676 Instead of intercepting keyboard events, MPlayer will read commands from stdin.
678 .I NOTE:
679 See \-input cmdlist for a list of slave commands and DOCS/\:tech/\:slave.txt
680 for their description.
683 .B \-softsleep
684 Use high-quality software timers instead of the RTC.
685 As precise as the RTC without requiring special privileges.
686 Comes at the price of higher CPU consumption.
689 .B \-speed <0.01\-100>
690 Slow down or speed up playback by the factor given as parameter.
693 .B \-sstep <sec>
694 Display one frame every <sec> seconds.
695 Useful for slideshows.
696 Since MPlayer can only seek to the next keyframe this may be inexact.
697 Most formats have one keyframe every <sec> and <sec>+20 seconds.
701 .SH "DEMUXER/\:STREAM OPTIONS"
704 .B \-a52drc <level>
705 Select the Dynamic Range Compression level for AC3 audio streams.
706 <level> is a float value ranging from 0 to 1, where 0 means no compression
707 and 1 (which is the default) means full compression (make loud passages more
708 silent and vice versa).
709 This option only shows an effect if the AC3 stream contains the required range
710 compression information.
713 .B \-aid <ID> (also see \-alang)
714 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
715 VOB(AC3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
716 MPlayer prints the available IDs when run in verbose (\-v) mode.
717 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
718 (if present) with the chosen audio stream.
721 .B \-alang <language\ code> (also see \-aid)
722 Play the audio stream whose language matches the given code.
723 Different container formats employ different language codes.
724 DVDs use ISO 639-1 two letter language codes, Matroska and NUT use ISO 639-2
725 three letter language codes while OGM uses a free-form identifier.
726 MPlayer prints a list of available languages when run in verbose (\-v) mode.
727 .sp 1
728 .I EXAMPLE:
729 .PD 0
730 .RSs
731 .IPs "mplayer dvd://1 \-alang hu,en"
732 Chooses the Hungarian language track on a DVD and falls back on English if
733 Hungarian is not available.
734 .IPs "mplayer \-alang jpn example.mkv"
735 Plays a Matroska file in Japanese.
737 .PD 1
740 .B \-audio-demuxer <number> (\-audiofile only)
741 Force audio demuxer type for \-audiofile.
742 Give the demuxer ID as defined in libmpdemux/\:demuxer.h.
743 \-audio-demuxer 17 forces MP3.
746 .B \-audiofile <filename>
747 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
748 movie.
751 .B \-audiofile-cache <kBytes>
752 Enables caching for the stream used by \-audiofile, using the specified
753 amount of memory.
756 .B \-bandwidth <value> (network only)
757 Specify the maximum bandwidth for network streaming (for servers that are
758 able to send content in different bitrates).
759 Useful if you want to watch live streamed media behind a slow connection.
762 .B \-cache <kBytes>
763 This option specifies how much memory (in kBytes) to use when precaching a
764 file or URL.
765 Especially useful on slow media.
768 .B \-cache-min <percentage>
769 Playback will start when the cache fill threshold set with this option
770 is reached.
773 .B \-cache-prefill <percentage> (not yet implemented)
774 When the cache is emptied MPlayer will pause and restart playback when
775 the cache prefill threshold set with this option is reached.
778 .B \-cdda <option1:option2> (CDDA only)
779 This option can be used to tune the CD Audio reading feature of MPlayer.
780 .sp 1
781 Available options are:
782 .RSs
783 .IPs speed=<value>
784 Set CD spin speed.
785 .IPs paranoia=<0\-2>
786 Set paranoia level.
787 .RSss
788 0: disable checking
790 1: overlap checking only (default)
792 2: full data correction and verification
793 .REss
794 .IPs generic-dev=<value>
795 Use specified generic SCSI device.
796 .IPs sector-size=<value>
797 Set atomic read size.
798 .IPs overlap=<value>
799 Force minimum overlap search during verification to <value> sectors.
800 .IPs toc-bias
801 Assume that the beginning offset of track 1 as reported in the TOC will be
802 addressed as LBA\ 0.
803 Some Toshiba drives need this for getting track boundaries correct.
804 .IPs toc-offset=<value>
805 Add <value> sectors to the values reported when addressing tracks.
806 May be negative.
807 .IPs (no)skip
808 (Never) accept imperfect data reconstruction.
812 .B \-cdrom-device <path\ to\ device>
813 Specify the CD-ROM device (default: /dev/\:cdrom).
816 .B \-channels <number>
817 Change the number of playback channels (default: 2).
818 If the number of output channels is bigger than the number of input channels
819 empty channels are inserted (unless mixing from mono to stereo, then the mono
820 channel is repeated in both output channels).
821 If the number of output channels is smaller than the number of input channels,
822 results depend on the audio decoder (\-afm).
823 MPlayer asks the decoder to decode the audio into as many channels as
824 specified.
825 Now it's up to the decoder to fulfill the requirement.
826 If the decoder outputs more channels than requested, the exceeding channels
827 are truncated.
828 This is usually only important when playing videos with AC3 audio (like DVDs).
829 In that case liba52 does the decoding by default and correctly downmixes the
830 audio into the requested number of channels.
832 .I NOTE:
833 This option is honored by codecs (AC3 only), filters (surround) and ao drivers
834 (OSS at least).
835 .sp 1
836 Available options are:
837 .sp 1
838 .PD 0
839 .RSs
840 .IPs 2
841 stereo
842 .IPs 4
843 surround
844 .IPs 6
845 full 5.1
847 .PD 1
850 .B \-chapter <chapter\ ID>[\-<end\ chapter\ ID>] (DVD only)
851 Specify which chapter to start playing at.
852 Optionally specify which chapter to end playing at (default: 1).
855 .B \-cookies (network only)
856 Send cookies when making HTTP requests.
859 .B \-cookies-file <filename> (network only)
860 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
861 and skip reading from default locations.
862 The file is assumed to be in Netscape format.
865 .B \-demuxer <number>
866 Force demuxer type.
867 Give the demuxer ID as defined in libmpdemux/\:demuxer.h.
868 \-demuxer 17 forces MP3.
871 .B \-dumpaudio (MPlayer only)
872 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC3).
875 .B \-dumpfile <filename> (MPlayer only)
876 Specify which file MPlayer should dump to.
877 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream.
880 .B \-dumpstream (MPlayer only)
881 Dumps the raw stream to ./stream.dump.
882 Useful when ripping from DVD or network.
885 .B \-dumpvideo (MPlayer only)
886 Dump raw compressed video stream to ./stream.dump (not very usable).
889 .B \-dvbin <options> (DVB only)
890 Pass the following parameters to the DVB input module, in order to override
891 the default ones:
892 .sp 1
893 .PD 0
894 .RSs
895 .IPs card=<1\-4>
896 Specifies using card number 1\-4 (default: 1).
897 .IPs file=<filename>
898 Instructs MPlayer to read the channels list from <filename>.
899 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
900 or ~/.mplayer/\:channels.conf as a last resort.
902 .PD 1
905 .B \-dvd-device <path\ to\ device> (DVD only)
906 Specify the DVD device (default: /dev/\:dvd).
907 You can also specify a directory that contains files previously copied directly
908 from a DVD (with e.g.\& vobcopy).
909 Note that using \-dumpstream is usually a better way to
910 copy DVD titles in the first place (see the examples).
913 .B \-dvdangle <angle\ ID> (DVD only)
914 Some DVD discs contain scenes that can be viewed from multiple angles.
915 Here you can tell MPlayer which angles to use (default: 1).
918 .B \-forceidx
919 Force index rebuilding.
920 Useful for files with broken index (A/\:V desync, etc).
921 This will enable seeking in files where seeking was not possible.
922 You can fix the index permanently with MEncoder (see the documentation).
924 .I NOTE:
925 This option only works if the underlying media supports seeking
926 (i.e.\& not with stdin, pipe, etc).
929 .B \-fps <float value>
930 Override video framerate.
931 Useful if the original value is wrong or missing.
934 .B \-frames <number>
935 Play/\:convert only first <number> frames, then quit.
938 .B \-hr-mp3-seek (MP3 only)
939 Hi-res MP3 seeking.
940 Enabled when playing from an external MP3 file, as we need to seek
941 to the very exact position to keep A/\:V sync.
942 Can be slow especially when seeking backwards since it has to rewind
943 to the beginning to find an exact frame position.
946 .B \-idx (also see \-forceidx)
947 Rebuilds index of files if no index was found, allowing seeking.
948 Useful with broken/\:incomplete downloads, or badly created files.
950 .I NOTE:
951 This option only works if the underlying media supports seeking
952 (i.e.\& not with stdin, pipe, etc).
955 .B \-ipv4-only-proxy (network only)
956 Skip the proxy for IPv6 addresses.
957 It will still be used for IPv4 connections.
960 .B \-loadidx <index file>
961 The file from which to read the video index data saved by \-saveidx.
962 This index will be used for seeking, overriding any index data
963 contained in the AVI itself.
964 MPlayer won't prevent you from loading an index file generated
965 from a different AVI, but this is sure to cause unfavorable results.
967 .I NOTE:
968 This option is obsolete now that MPlayer has OpenDML support.
971 .B \-mc <seconds/\:frame>
972 maximum A-V sync correction per frame (in seconds)
975 .B \-mf <option1:option2:...>
976 Used when decoding from multiple PNG or JPEG files.
977 .sp 1
978 Available options are:
979 .sp 1
980 .PD 0
981 .RSs
982 .IPs w=<value>
983 output width (default: autodetect)
984 .IPs h=<value>
985 output height (default: autodetect)
986 .IPs fps=<value>
987 output fps (default: 25)
988 .IPs type=<value>
989 input file type (available: jpeg, png, tga, sgi)
991 .PD 1
994 .B \-ni (AVI only)
995 Force usage of non-interleaved AVI parser (fixes playback
996 of some bad AVI files).
999 .B \-nobps (AVI only)
1000 Do not use average byte/\:second value for A-V sync.
1001 Helps with some AVI files with broken header.
1004 .B \-noextbased
1005 Disables extension-based demuxer selection.
1006 By default, when the file type (demuxer) cannot be detected reliably
1007 (the file has no header or it is not reliable enough), the filename
1008 extension is used to select the demuxer.
1009 Always falls back on content-based demuxer selection.
1012 .B \-passwd <password> (also see \-user) (network only)
1013 Specify password for HTTP authentication.
1016 .B \-prefer-ipv4 (network only)
1017 Use IPv4 on network connections.
1018 Falls back on IPv6 automatically.
1021 .B \-prefer-ipv6 (IPv6 network only)
1022 Use IPv6 on network connections.
1023 Falls back on IPv4 automatically.
1026 .B \-rawaudio <option1:option2:...>
1027 This option lets you play raw audio files.
1028 It may also be used to play audio CDs which are not 44KHz 16-bit stereo.
1029 For playing raw AC3 streams use \-rawaudio on:format=0x2000.
1030 .sp 1
1031 Available options are:
1032 .sp 1
1033 .PD 0
1034 .RSs
1035 .IPs on\ \ \ 
1036 Use raw audio demuxer.
1037 .IPs channels=<value>
1038 number of channels
1039 .IPs rate=<value>
1040 rate in samples per second
1041 .IPs samplesize=<value>
1042 sample size in bytes
1043 .IPs bitrate=<value>
1044 bitrate for rawaudio files
1045 .IPs format=<value>
1046 fourcc in hex
1048 .PD 1
1051 .B \-rawvideo <option1:option2:...>
1052 This option lets you play raw video files.
1053 .sp 1
1054 Available options are:
1055 .sp 1
1056 .PD 0
1057 .RSs
1058 .IPs on\ \ \ 
1059 Use raw video demuxer.
1060 .IPs fps=<value>
1061 rate in frames per second (default: 25.0)
1062 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1063 set standard image size
1064 .IPs w=<value>
1065 image width in pixels
1066 .IPs h=<value>
1067 image height in pixels
1068 .IPs i420|yv12|yuy2|y8
1069 set colorspace
1070 .IPs format=<value>
1071 colorspace (fourcc) in hex
1072 .IPs size=<value>
1073 frame size in Bytes
1075 .PD 1
1078 .B \-rtsp-stream-over-tcp (live.com only)
1079 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1080 packets be streamed over TCP (using the same TCP connection as RTSP).
1081 This option may be useful if you have a broken internet connection that does
1082 not pass incoming UDP packets (see http://www.live.com/\:mplayer/).
1085 .B \-saveidx <filename>
1086 Force index rebuilding and dump the index to <filename>.
1087 Currently this only works with AVI files.
1089 .I NOTE:
1090 This option is obsolete now that MPlayer has OpenDML support.
1093 .B \-sb <byte\ position> (also see \-ss)
1094 Seek to byte position.
1095 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1098 .B \-srate <Hz>
1099 Selects the given output sampling rate, resampling if necessary.
1100 The type of resampling can be controlled by the \-af-adv option.
1101 The default is fast resampling that may cause distortion.
1102 MEncoder passes this value to LAME for resampling.
1105 .B \-ss <time> (also see \-sb)
1106 Seek to given time position.
1107 .sp 1
1108 .I EXAMPLE:
1109 .PD 0
1110 .RSs
1111 .IPs "\-ss 56"
1112 Seeks to 56 seconds.
1113 .IPs "\-ss 01:10:00"
1114 Seeks to 1\ hour 10\ min.
1116 .PD 1
1119 .B \-tskeepbroken
1120 Tells MPlayer not to discard TS packets reported as broken in the stream.
1121 Sometimes needed to play corrupted MPEG-TS files.
1124 .B \-tsprobe <byte\ position>
1125 When playing an MPEG-TS stream, this option lets you specify how many
1126 bytes in the stream you want MPlayer to search for the desired
1127 audio and video pids.
1130 .B \-tsprog <1\-65534>
1131 When playing an MPEG-TS stream, you can specify with this option which
1132 program (if present) you want to play.
1133 Can be used with \-vid and \-aid.
1136 .B \-tv <option1:option2:...> (TV only)
1137 This option tunes various properties of the TV capture module.
1138 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1139 or even 'tv://<channel_name> (see option channels for channel_name below)
1140 as a movie URL.
1141 .sp 1
1142 Available options are:
1143 .RSs
1144 .IPs noaudio
1145 no sound
1146 .IPs driver=<value>
1147 available: dummy, v4l, v4l2, bsdbt848
1148 .IPs device=<value>
1149 Specify TV device (default: /dev/\:video0).
1150 .IPs input=<value>
1151 Specify input (default: 0 (TV), see console output for available inputs).
1152 .IPs freq=<value>
1153 Specify the frequency to set the tuner to (e.g.\& 511.250).
1154 Not compatible with the channels parameter.
1155 .IPs outfmt=<value>
1156 Specify the output format of the tuner with a preset value supported by the
1157 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1158 arbitrary format given as hex value.
1159 Try outfmt=help for a list of all available formats.
1160 .IPs width=<value>
1161 output window width
1162 .IPs height=<value>
1163 output window height
1164 .IPs fps=<value>
1165 framerate at which to capture video (frames per second)
1166 .IPs buffersize=<value>
1167 maximum size of the capture buffer in megabytes (default: dynamical)
1168 .IPs norm=<value>
1169 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1170 For v4l2, see the console output for a list of all available norms,
1171 also see the normid option below.
1172 .IPs "normid=<value> (v4l2 only)"
1173 Sets the TV norm to the given numeric ID.
1174 The TV norm depends on the capture card.
1175 See the console output for a list of available TV norms.
1176 .IPs channel=<value>
1177 Set tuner to <value> channel.
1178 .IPs chanlist=<value>
1179 available: europe-east, europe-west, us-bcast, us-cable, etc
1180 .IPs channels=<channel>\-<name>,<channel>\-<name>,...
1181 Set names for channels.
1182 Use _ for spaces in names (or play with quoting ;-).
1183 The channel names will then be written using OSD, and the slave commands
1184 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1185 a remote control (see LIRC).
1186 Not compatible with the frequency parameter.
1188 .I NOTE:
1189 The channel number will then be the position in the 'channels' list,
1190 beginning with 1.
1192 .I EXAMPLE:
1193 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1194 .IPs [brightness|contrast|hue|saturation]=<-100\-100>
1195 Set the image equalizer on the card.
1196 .IPs audiorate=<value>
1197 Set audio capture bitrate.
1198 .IPs forceaudio
1199 Capture audio even if there are no audio sources reported by v4l.
1200 .IPs alsa\ 
1201 Capture from ALSA.
1202 .IPs amode=<0\-3>
1203 Choose an audio mode:
1204 .RSss
1205 0: mono
1207 1: stereo
1209 2: language 1
1211 3: language 2
1212 .REss
1213 .IPs forcechan=<1\-2>
1214 By default, the count of recorded audio channels is determined automatically
1215 by querying the audio mode from the TV card.
1216 This option allows forcing stereo/\:mono recording regardless of the amode
1217 option and the values returned by v4l.
1218 This can be used for troubleshooting when the TV card is unable to report the
1219 current audio mode.
1220 .IPs adevice=<value>
1221 Set an audio device.
1222 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1223 See the \-ao alsa documentation to find out how to specify the hardware ID.
1224 .IPs audioid=<value>
1225 Choose an audio output of the capture card, if it has more than one.
1226 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1227 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1228 These options set parameters of the mixer on the video capture card.
1229 They will have no effect, if your card does not have one.
1230 For v4l2 50 maps to the default value of the
1231 control, as reported by the driver.
1232 .IPs immediatemode=<bool>
1233 A value of 0 means capture and buffer audio and video together
1234 (default for MEncoder).
1235 A value of 1 (default for MPlayer) means to do video capture only and let the
1236 audio go through a loopback cable from the TV card to the sound card.
1237 .IPs mjpeg
1238 Use hardware MJPEG compression (if the card supports it).
1239 When using this option, you do not need to specify the width and height
1240 of the output window, because MPlayer will determine it automatically
1241 from the decimation value (see below).
1242 .IPs decimation=<1,2,4>
1243 choose the size of the picture that will be compressed by hardware
1244 MJPEG compression:
1245 .RSss
1246 1: full size
1247     704x576    PAL
1248     704x480    NTSC
1250 2: medium size
1251     352x288    PAL
1252     352x240    NTSC
1254 4: small size
1255     176x144    PAL
1256     176x120    NTSC
1257 .REss
1258 .IPs quality=<0\-100>
1259 Choose the quality of the JPEG compression
1260 (< 60 recommended for full size).
1264 .B \-user <username> (also see \-passwd) (network only)
1265 Specify username for HTTP authentication.
1268 .B \-user-agent <string>
1269 Use <string> as user agent for HTTP streaming.
1272 .B \-vid <ID>
1273 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
1274 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1275 (if present) with the chosen video stream.
1278 .B \-vivo <sub-options> (DEBUG CODE)
1279 Force audio parameters for the VIVO demuxer (for debugging purposes).
1283 .SH "OSD/\:SUB OPTIONS"
1284 .I NOTE:
1285 Also see \-vf expand.
1288 .B \-dumpjacosub (MPlayer only)
1289 Convert the given subtitle (specified with the \-sub option) to the time-based
1290 JACOsub subtitle format.
1291 Creates a dumpsub.js file in the current directory.
1294 .B \-dumpmicrodvdsub (MPlayer only)
1295 Convert the given subtitle (specified with the \-sub option) to the
1296 MicroDVD subtitle format.
1297 Creates a dumpsub.sub file in the current directory.
1300 .B \-dumpmpsub (MPlayer only)
1301 Convert the given subtitle (specified with the \-sub option) to MPlayer's
1302 subtitle format, MPsub.
1303 Creates a dump.mpsub file in the current directory.
1306 .B \-dumpsami (MPlayer only)
1307 Convert the given subtitle (specified with the \-sub option) to the time-based
1308 SAMI subtitle format.
1309 Creates a dumpsub.smi file in the current directory.
1312 .B \-dumpsrtsub (MPlayer only)
1313 Convert the given subtitle (specified with the \-sub option) to the time-based
1314 SubViewer (SRT) subtitle format.
1315 Creates a dumpsub.srt file in the current directory.
1318 .B \-dumpsub (MPlayer only) (BETA CODE)
1319 Dumps the subtitle substream from VOB streams.
1320 Also see the \-dump*sub and \-vobsubout* options.
1323 .B \-ffactor <number> (OSD only)
1324 Resample the font alphamap.
1325 Can be:
1326 .PD 0
1327 .RSs
1328 .IPs 0
1329 plain white fonts
1330 .IPs 0.75
1331 very narrow black outline (default)
1332 .IPs 1
1333 narrow black outline
1334 .IPs 10
1335 bold black outline
1337 .PD 1
1340 .B \-flip-hebrew (FriBiDi only)
1341 Turns on flipping subtitles using FriBiDi.
1344 .B \-noflip-hebrew-commas
1345 Change FriBiDi's assumptions about the placements of commas in subtitles.
1346 Use this if commas in subtitles are shown at the start of a sentence
1347 instead of at the end.
1349 .B \-font <path\ to\ font.desc\ file> (OSD only)
1350 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
1351 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
1352 ~/.mplayer/\:subfont.ttf).
1354 .I NOTE:
1355 With FreeType, this option determines the path to the text font file.
1356 With fontconfig, this option determines the fontconfig font name.
1357 .sp 1
1358 .I EXAMPLE:
1359 .PD 0
1360 .RSs
1361 \-font ~/\:.mplayer/\:arial-14/\:font.desc
1363 \-font ~/\:.mplayer/\:arialuni.ttf
1365 \-font 'Bitstream Vera Sans'
1367 .PD 1
1370 .B \-fontconfig (fontconfig only)
1371 Enables the usage of fontconfig managed fonts.
1374 .B \-forcedsubsonly
1375 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
1376 \-slang.
1379 .B \-fribidi-charset <charset\ name> (FriBiDi only)
1380 Specifies the character set that will be passed to FriBiDi when
1381 decoding non-UTF-8 subtitles (default: ISO8859-8).
1384 .B \-ifo <VOBsub\ ifo\ file>
1385 Indicate the file that will be used to load palette and frame size for VOBsub
1386 subtitles.
1389 .B \-noautosub
1390 Turns off automatic subtitle file loading.
1393 .B \-osdlevel <0\-3> (MPlayer only)
1394 Specifies which mode the OSD should start in.
1395 .PD 0
1396 .RSs
1397 .IPs 0
1398 subtitles only
1399 .IPs 1
1400 volume + seek (default)
1401 .IPs 2
1402 volume + seek + timer + percentage
1403 .IPs 3
1404 volume + seek + timer + percentage + total time
1406 .PD 1
1409 .B \-overlapsub
1410 Allows the next subtitle to be displayed while the current one is
1411 still visible (default is to enable the support only for specific
1412 formats).
1415 .B \-sid <ID> (also see \-slang option)
1416 Display DVD subtitles in the language specified by <ID> (0\-31).
1417 MPlayer prints the available subtitle languages when run in verbose (\-v) mode.
1420 .B \-slang <country\ code[,country\ code,...]> (also see \-sid)
1421 Specify a priority list of DVD subtitle languages to use.
1422 Languages must be given as two letter country codes.
1423 MPlayer prints the available subtitle languages when run in verbose (\-v) mode.
1424 .sp 1
1425 .I EXAMPLE:
1426 .PD 0
1427 .RSs
1428 .IPs "\-slang hu,en"
1429 Selects Hungarian and falls back on English if Hungarian is not available.
1431 .PD 1
1434 .B \-spuaa <mode> (OSD only)
1435 Antialiasing/\:scaling mode for DVD/\:VOBsub.
1436 A value of 16 may be added to <mode> in order to force scaling even
1437 when original and scaled frame size already match.
1438 This can be employed to e.g.\& smooth subtitles with gaussian blur.
1439 Available modes are:
1440 .PD 0
1441 .RSs
1442 .IPs 0
1443 none (fastest, very ugly)
1444 .IPs 1
1445 approximate (broken?)
1446 .IPs 2
1447 full (slow)
1448 .IPs 3
1449 bilinear (default, fast and not too bad)
1450 .IPs 4
1451 uses swscaler gaussian blur (looks very good)
1453 .PD 1
1456 .B \-spualign <-1\-2> (OSD only)
1457 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
1458 .PD 0
1459 .RSs
1460 .IPs "-1"
1461 original position
1462 .IPs " 0"
1463 align at top (original/\:default behavior)
1464 .IPs " 1"
1465 align at center
1466 .IPs " 2"
1467 align at bottom
1469 .PD 1
1472 .B \-spugauss <0.0\-3.0> (OSD only)
1473 Variance parameter of gaussian used by \-spuaa 4.
1474 Higher means more blur (default: 1.0).
1477 .B \-sub <subtitlefile1,subtitlefile2,...>
1478 Use/\:display these subtitle files.
1479 Only one file can be displayed at the same time.
1482 .B \-sub-bg-alpha <0\-255>
1483 Specify the alpha channel value for subtitles and OSD backgrounds.
1484 Big values mean more transparency.
1485 0 means completely transparent.
1488 .B \-sub-bg-color <0\-255>
1489 Specify the color value for subtitles and OSD backgrounds.
1490 Currently subtitles are grayscale so this value is equivalente to the
1491 intensity of the color.
1492 255 means white and 0 black.
1495 .B \-sub-demuxer <number> (\-subfile only) (BETA CODE)
1496 Force subtitle demuxer type for \-subfile.
1497 Give the demuxer ID as defined in subreader.h.
1500 .B \-sub-fuzziness <mode>
1501 Adjust matching fuzziness when searching for subtitles:
1502 .PD 0
1503 .RSs
1504 .IPs 0
1505 exact match
1506 .IPs 1
1507 Load all subs containing movie name.
1508 .IPs 2
1509 Load all subs in the current directory.
1511 .PD 1
1514 .B \-sub-no-text-pp
1515 Disables any kind of text post processing done after loading the subtitles.
1516 Used for debug purposes.
1519 .B \-subalign <0\-2> (OSD only)
1520 Specify how subtitles should be aligned with \-subpos.
1521 .PD 0
1522 .RSs
1523 .IPs 0
1524 Align at top (original/\:default behavior).
1525 .IPs 1
1526 Align at center.
1527 .IPs 2
1528 Align at bottom.
1530 .PD 1
1533 .B \-subcc \ 
1534 Display DVD Closed Caption (CC) subtitles.
1535 These are
1536 .B not
1537 the VOB subtitles, these are special ASCII subtitles for the
1538 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
1539 CC subtitles have not been spotted on DVDs from other regions so far.
1542 .B \-subcp <codepage> (iconv only)
1543 If your system supports iconv(3), you can use this option to
1544 specify the subtitle codepage.
1545 .sp 1
1546 .I EXAMPLE:
1547 .PD 0
1548 .RSs
1549 \-subcp latin2
1551 \-subcp cp1250
1553 .PD 1
1556 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
1557 You can specify your language using a two letter language code to
1558 make ENCA detect the codepage automatically.
1559 If unsure, enter anything and watch mplayer \-v output for available
1560 languages.
1561 Fallback codepage specifies the codepage to use, when autodetection fails.
1562 .sp 1
1563 .I EXAMPLE:
1564 .PD 0
1565 .RSs
1566 .IPs "\-subcp enca:cs:latin2"
1567 Guess the encoding, assuming the subtitles are Czech, fall back on
1568 latin 2, if the detection fails.
1569 .IPs "\-subcp enca:pl:cp1250"
1570 Guess the encoding for Polish, fall back on cp1250.
1572 .PD 1
1575 .B \-subdelay <sec>
1576 Delays subtitles by <sec> seconds.
1577 Can be negative.
1580 .B \-subfile <filename> (BETA CODE)
1581 Currently useless.
1582 Same as \-audiofile, but for subtitle streams (OggDS?).
1585 .B \-subfont-autoscale <0\-3> (FreeType only)
1586 Sets the autoscale mode.
1588 .I NOTE:
1589 0 means that text scale and OSD scale are font heights in points.
1590 .sp 1
1591 The mode can be:
1592 .sp 1
1593 .PD 0
1594 .RSs
1595 .IPs 0
1596 no autoscale
1597 .IPs 1
1598 proportional to movie height
1599 .IPs 2
1600 proportional to movie width
1601 .IPs 3
1602 proportional to movie diagonal (default)
1604 .PD 1
1607 .B \-subfont-blur <0\-8> (FreeType only)
1608 Sets the font blur radius (default: 2).
1611 .B \-subfont-encoding <value> (FreeType only)
1612 Sets the font encoding.
1613 When set to 'unicode', all the glyphs from the font file will be rendered and
1614 unicode will be used (default: unicode).
1617 .B \-subfont-osd-scale <0\-100> (FreeType only)
1618 Sets the autoscale coefficient of the OSD elements (default: 6).
1621 .B \-subfont-outline <0\-8> (FreeType only)
1622 Sets the font outline thickness (default: 2).
1625 .B \-subfont-text-scale <0\-100> (FreeType only)
1626 Sets the subtitle text autoscale coefficient as percentage of the
1627 screen size (default: 5).
1630 .B \-subfps <rate>
1631 Specify the framerate of the subtitle file (default: movie fps).
1633 .I NOTE:
1634 Only for frame-based subtitle files, i.e.\& MicroDVD format.
1637 .B \-subpos <0\-100> (useful with \-vf expand) (OSD only)
1638 Specify the position of subtitles on the screen.
1639 The value is the vertical position of the subtitle in % of the screen height.
1642 .B \-subwidth <10\-100> (OSD only)
1643 Specify the maximum width of subtitles on the screen.
1644 Useful for TV-out.
1645 The value is the width of the subtitle in % of the screen width.
1648 .B \-unicode
1649 Tells MPlayer to handle the subtitle file as unicode.
1652 .B \-utf8 \ \ 
1653 Tells MPlayer to handle the subtitle file as UTF-8.
1656 .B \-vobsub <VOBsub\ file\ without\ extension>
1657 Specify a VOBsub file to use for subtitles.
1658 Has to be the full pathname without extension, i.e.\& without
1659 the '.idx', '.ifo' or '.sub'.
1662 .B \-vobsubid <0\-31>
1663 Specify the VOBsub subtitle ID.
1667 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
1670 .B \-abs <value> (\-ao oss only) (OBSOLETE)
1671 Override audio driver/\:card buffer size detection.
1674 .B \-aop <list=plugin1,plugin2...:option1=value1:opt2=val2...>
1675 Specify audio plugin(s) and their options
1676 (also see the audio plugins section of the documentation).
1677 .sp 1
1678 Available options are:
1679 .RSs
1680 .IPs list=[plugins]
1681 comma separated list of plugins (resample, surround, format, volume,
1682 extrastereo, volnorm, delay)
1683 .IPs delay=<sec>
1684 example plugin, do not use (delay plugin only)
1685 .IPs format=<format>
1686 output format (format plugin only)
1687 .IPs fout=<Hz>
1688 output frequency (resample plugin only)
1689 .IPs volume=<0\-255>
1690 volume (volume plugin only)
1691 .IPs mul=<value>
1692 stereo coefficient (default: 2.5) (extrastereo plugin only)
1693 .IPs softclip
1694 compressor / 'soft-clipping' capabilities (volume plugin only)
1698 .B \-delay <sec>
1699 Audio delay in seconds (positive or negative float value).
1702 .B \-format <0\-8192>
1703 Select the format used for output from the filter layer (according to the
1704 defines in libao2/\:afmt.h):
1705 .PD 0
1706 .RSs
1707 .IPs "   1"
1708 Mu-Law
1709 .IPs "   2"
1710 A-Law
1711 .IPs "   4"
1712 Ima-ADPCM
1713 .IPs "   8"
1714 unsigned 8-bit
1715 .IPs "  16"
1716 signed 16-bit (little-endian)
1717 .IPs "  32"
1718 signed 16-bit (big-endian)
1719 .IPs "  64"
1720 signed 8-bit
1721 .IPs " 128"
1722 unsigned 16-bit (little-endian)
1723 .IPs " 256"
1724 unsigned 16-bit (big-endian)
1725 .IPs " 512"
1726 MPEG (2) Audio
1727 .IPs 1024
1729 .IPs 4096
1730 signed 32-bit (little-endian)
1731 .IPs 8192
1732 signed 32-bit (big-endian)
1734 .PD 1
1737 .B \-mixer <device>
1738 Use a mixer device different from the default /dev/\:mixer.
1739 For ALSA this is the mixer name.
1742 .B \-mixer-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
1743 This option will tell MPlayer to use a different channel for controlling
1744 volume than the default PCM.
1745 Options for OSS include
1746 .B vol, pcm, line.
1747 For a complete list of options look for SOUND_DEVICE_NAMES in
1748 /usr/\:include/\:linux/\:soundcard.h.
1749 For ALSA you can use the names e.g.\& alsamixer displays, like
1750 .B Master, Line, PCM.
1752 .I NOTE:
1753 ALSA mixer channel names followed by a number must be specified in the
1754 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
1755 be converted to
1756 .BR PCM,1 .
1758 .B \-softvol
1759 Force the use of the software mixer, instead of using the sound card
1760 mixer.
1763 .B \-softvol-max <10.0\-10000.0>
1764 Set the maximum amplification level in percent (default: 110).
1765 A value of 200 will allow you to adjust the volume up to a maximum of
1766 double the current level.
1767 With values below 100 the initial volume (which is 100%) will be above
1768 the maximum, which e.g.\& the OSD cannot display correctly.
1771 .B \-volstep <0\-100>
1772 Set the step size of mixer volume changes in percent of the whole range
1773 (default: 3).
1777 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
1778 Audio output drivers are interfaces to different audio output facilities.
1779 The syntax is:
1782 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
1783 Specify a priority list of audio output drivers to be used.
1785 If the list has a trailing ',' MPlayer will fall back on drivers not
1786 contained in the list.
1787 Suboptions are optional and can mostly be omitted.
1789 .I NOTE:
1790 See \-ao help for a list of compiled-in audio output drivers.
1791 .sp 1
1792 .I EXAMPLE:
1793 .PD 0
1794 .RSs
1795 .IPs "\-ao alsa,oss,"
1796 Try the ALSA driver, then the OSS driver, then others.
1797 .IPs "\-ao alsa:mmap:noblock:device=hw=0.3"
1798 Sets noblock-mode, mmap-mode and the device-name as first card, fourth device.
1800 .PD 1
1801 .sp 1
1802 Available audio output drivers are:
1805 .B alsa\ \ \ 
1806 ALSA 0.9/\:1.x audio output driver.
1807 .PD 0
1808 .RSs
1809 .IPs mmap\ \ \ 
1810 Sets experimental mmap-mode (does not work for more than 2 channels).
1811 .IPs noblock
1812 Sets noblock-mode.
1813 .IPs device=<device>
1814 Sets the device name.
1815 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
1816 Make sure you do not set this when you want hwac3 output via S/PDIF, unless
1817 you really know how to set it correctly.
1819 .PD 1
1822 .B alsa5\ \ 
1823 ALSA 0.5 audio output driver.
1826 .B oss\ \ \ \ 
1827 OSS audio output driver
1828 .PD 0
1829 .RSs
1830 .IPs dsp-device
1831 Sets the audio-output device (default: /dev/\:dsp).
1833 .PD 1
1836 .B sdl\ \ \ \ 
1837 Highly platform independent SDL (Simple Directmedia Layer) library
1838 audio output driver.
1839 .PD 0
1840 .RSs
1841 .IPs <driver>
1842 Explicitly choose the SDL audio driver to use (default: let SDL choose).
1844 .PD 1
1847 .B arts\ \ \ 
1848 Audio output through the Arts daemon.
1851 .B esd\ \ \ \ 
1852 Audio output through the ESD daemon.
1853 .PD 0
1854 .RSs
1855 .IPs <server>
1856 Explicitly choose the ESD server to use (default: localhost).
1858 .PD 1
1861 .B jack\ \ \ \ 
1862 Audio output through JACK (Jack Audio Connection Kit).
1865 .B nas\ \ \ \ 
1866 Audio output through NAS.
1869 .B macosx (Mac OS X only)
1870 Native Mac OS X audio output driver.
1873 .B sgi (SGI only)
1874 Native SGI audio output driver.
1877 .B sun (Sun only)
1878 Native Sun audio output driver.
1879 .PD 0
1880 .RSs
1881 .IPs <device>
1882 Explicitly choose the audio device to use (default: /dev/\:audio).
1884 .PD 1
1887 .B win32 (Windows only)
1888 Native Windows waveout audio output driver.
1891 .B dsound (Windows only)
1892 Directx DirectSound audio output driver.
1893 .PD 0
1894 .RSs
1895 .IPs device=<devicenum>
1896 Sets the device number to use.
1897 Playing a file with -v will show a list of available devices.
1899 .PD 1
1902 .B dxr2 (also see \-dxr2) (DXR2 only)
1903 Creative DXR2 specific output driver.
1906 .B mpegpes (DVB only)
1907 DVB specific output driver.
1910 .B null\ \ \ 
1911 Produces no audio output but maintains video playback speed.
1912 Use \-nosound for benchmarking.
1915 .B pcm
1916 Raw PCM/\:wave file writer audio output.
1917 .PD 0
1918 .RSs
1919 .IPs (no)waveheader
1920 Include or do not include the wave header (default: included).
1921 When not included, raw PCM will be generated.
1922 .IPs file=<filename>
1923 Write the sound to <filename> instead of the default
1924 audiodump.wav.
1925 If nowaveheader is specified, the default is audiodump.pcm.
1927 .PD 1
1930 .B plugin\ \ 
1931 Plugin audio output driver.
1935 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
1938 .B \-aa* (\-vo aa only)
1939 You can get a list and an explanation of available options executing
1940 .I mplayer \-aahelp
1943 .B \-adapter <value>
1944 Set the graphics card that will receive the image.
1945 Needs the \-vm option to work.
1946 You can get a list of available cards when you run this option with \-v.
1947 Works currently only with \-vo directx.
1950 .B \-bpp <depth>
1951 Override the autodetected color depth.
1952 Only supported by the fbdev, dga, svga, vesa video output drivers.
1955 .B \-brightness <-100\-100>
1956 Adjust the brightness of the video signal (default: 0).
1957 Not supported by all video output drivers.
1960 .B \-contrast <-100\-100>
1961 Adjust the contrast of the video signal (default: 0).
1962 Not supported by all video output drivers.
1965 .B \-dfbopts <value> (\-vo directfb only)
1966 Specify a parameter list for the directfb video output driver.
1969 .B \-display <name> (X11 only)
1970 Specify the hostname and display number of the X server you want to display
1972 .sp 1
1973 .I EXAMPLE:
1974 .PD 0
1975 .RSs
1976 \-display xtest.localdomain:0
1978 .PD 1
1981 .B \-dr \ \ \ 
1982 Turns on direct rendering (not supported by all codecs and video outputs)
1984 .I WARNING:
1985 May cause OSD/\:SUB corruption!
1988 .B \-dxr2 <option1:option2:...>
1989 This option is used to control the dxr2 video output driver.
1990 .RSs
1991 .IPs ar-mode=<value>
1992 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
1993 .IPs iec958-encoded
1994 Set iec958 output mode to encoded.
1995 .IPs iec958-decoded
1996 Set iec958 output mode to decoded (default).
1997 .IPs macrovision=<value>
1998 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
1999 3 = agc 4 colorstripe)
2000 .IPs mute\ 
2001 mute sound output
2002 .IPs unmute
2003 unmute sound output
2004 .IPs ucode=<value>
2005 path to the microcode
2008 .sp 1
2009 .I TV output
2011 .RSs
2012 .IPs 75ire
2013 enable 7.5 IRE output mode
2014 .IPs no75ire
2015 disable 7.5 IRE output mode (default)
2016 .IPs bw\ \ \ 
2017 b/\:w TV output
2018 .IPs color
2019 color TV output (default)
2020 .IPs interlaced
2021 interlaced TV output (default)
2022 .IPs nointerlaced
2023 disable interlaced TV output
2024 .IPs norm=<value>
2025 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
2026 .IPs square-pixel
2027 set pixel mode to square
2028 .IPs ccir601-pixel
2029 set pixel mode to ccir601
2032 .sp 1
2033 .I overlay
2035 .RSs
2036 .IPs cr-left=<0\-500>
2037 Set the left cropping value (default: 50).
2038 .IPs cr-right=<0\-500>
2039 Set the right cropping value (default: 300).
2040 .IPs cr-top=<0\-500>
2041 Set the top cropping value (default: 0).
2042 .IPs cr-bottom=<0\-500>
2043 Set the bottom cropping value (default: 0).
2044 .IPs ck-[r|g|b]=<0\-255>
2045 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
2046 .IPs ck-[r|g|b]min=<0\-255>
2047 minimum value for the respective color key
2048 .IPs ck-[r|g|b]max=<0\-255>
2049 maximum value for the respective color key
2050 .IPs ignore-cache
2051 Ignore cached overlay settings.
2052 .IPs update-cache
2053 Update cached overlay settings.
2054 .IPs ol-osd
2055 Enable overlay onscreen display.
2056 .IPs nool-osd
2057 Disable overlay onscreen display (default).
2058 .IPs ol[h|w|x|y]-cor=<-20\-20>
2059 Adjust the overlay size (h,w) and position (x,y) in case it does not
2060 match the window perfectly (default: 0).
2061 .IPs overlay
2062 Activate overlay (default).
2063 .IPs nooverlay
2064 Activate TVout.
2065 .IPs overlay-ratio=<1\-2500>
2066 Tune the overlay (default: 1000).
2070 .B \-fb <device> (\-vo fbdev or directfb only) (OBSOLETE)
2071 Specifies the framebuffer device to use (default: /dev/\:fb0).
2074 .B \-fbmode <modename> (\-vo fbdev only)
2075 Change video mode to the one that is labeled as <modename> in
2076 /etc/\:fb.modes.
2078 .I NOTE:
2079 VESA framebuffer doesn't support mode changing.
2082 .B \-fbmodeconfig <filename> (\-vo fbdev only)
2083 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
2086 .B \-forcexv (\-vo sdl only)
2087 Force using XVideo through the sdl video output driver.
2090 .B \-fs (also see \-zoom)
2091 Fullscreen playback (centers movie, and paints black bands around it).
2092 Not supported by all video output drivers.
2095 .B \-fsmode-dontuse <0\-31> (OBSOLETE, use the \-fs option)
2096 Try this option if you still experience fullscreen problems.
2099 .B \-fstype <type1,type2,...> (X11 only)
2100 Specify a priority list of fullscreen modes to be used.
2101 You can negate the modes by prefixing them with '\-'.
2102 If you experience problems like the fullscreen window being covered
2103 by other windows try using a different order.
2105 .I NOTE:
2106 See \-fstype help for a full list of available modes.
2107 .sp 1
2108 The available types are:
2109 .sp 1
2110 .PD 0
2111 .RSs
2112 .IPs above
2113 Use the _NETWM_STATE_ABOVE hint if available.
2114 .IPs below
2115 Use the _NETWM_STATE_BELOW hint if available.
2116 .IPs fullscreen
2117 Use the _NETWM_STATE_FULLSCREEN hint if available.
2118 .IPs layer
2119 Use the _WIN_LAYER hint with the default layer.
2120 .IPs layer=<0...15>
2121 Use the _WIN_LAYER hint with the given layer number.
2122 .IPs netwm
2123 Force NETWM style.
2124 .IPs none\ 
2125 Do not set fullscreen window layer.
2126 .IPs stays_on_top
2127 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
2128 .REss
2129 .sp 1
2131 .I EXAMPLE:
2133 .PD 0
2134 .RSs
2135 .IPs layer,stays_on_top,above,fullscreen
2136 Default order, will be used as a fallback if incorrect or
2137 unsupported modes are specified.
2138 .IPs \-fullscreen
2139 Fixes fullscreen switching on OpenBox 1.x.
2141 .PD 1
2144 .B \-geometry x[%][:y[%]] or [WxH][+x+y]
2145 Adjust where the output is on the screen initially.
2146 The x and y specifications are in pixels measured from the top-left of the
2147 screen to the top-left of the image being displayed, however if a percentage
2148 sign is given after the argument it turns the value into a percentage of the
2149 screen size in that direction.
2150 It also supports the standard X11 \-geometry option format.
2151 If an external window is specified using the \-wid option, then the x and
2152 y coordinates are relative to the top-left corner of the window rather
2153 than the screen.
2155 .I NOTE:
2156 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
2157 directx and tdfxfb video output drivers.
2158 .sp 1
2159 .I EXAMPLE:
2160 .PD 0
2161 .RSs
2162 .IPs 50:40
2163 Places the window at x=50, y=40.
2164 .IPs 50%:50%
2165 Places the window in the middle of the screen.
2166 .IPs 100%\ 
2167 Places the window at the middle of the right edge of the screen.
2168 .IPs 100%:100%
2169 Places the window at the bottom right corner of the screen.
2171 .PD 1
2174 .B \-guiwid <window\ ID> (also see \-wid) (GUI only)
2175 This tells the GUI to also use an X11 window and stick itself to the bottom
2176 of the video, which is useful to embed a mini-GUI in a browser (with the
2177 MPlayer plugin for instance).
2180 .B \-hue <-100\-100>
2181 Adjust the hue of the video signal (default: 0).
2182 You can get a colored negative of the image with this option.
2183 Not supported by all video output drivers.
2186 .B \-monitor-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
2187 Specify the dotclock or pixelclock range of the monitor.
2190 .B \-monitor-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
2191 Specify the horizontal frequency range of the monitor.
2194 .B \-monitor-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
2195 Specify the vertical frequency range of the monitor.
2198 .B \-monitoraspect <ratio> (also see \-aspect)
2199 Set the aspect ratio of your monitor or TV screen.
2200 .sp 1
2201 .I EXAMPLE:
2202 .PD 0
2203 .RSs
2204 \-monitoraspect 4:3  or 1.3333
2206 \-monitoraspect 16:9 or 1.7777
2208 .PD 1
2211 .B \-nodouble
2212 Disables double buffering, mostly for debugging purposes.
2213 Double buffering fixes flicker by storing two frames in memory, and
2214 displaying one while decoding another.
2215 It can affect OSD negatively, but often removes OSD flickering.
2218 .B \-nograbpointer
2219 Do not grab the mouse pointer after a video mode change (\-vm).
2220 Useful for multihead setups.
2223 .B \-nokeepaspect
2224 Do not keep window aspect ratio when resizing windows.
2225 Only works with the x11, xv, xmga, xvidix, directx video output drivers.
2226 Furthermore under X11 your window manager has to honor window aspect hints.
2229 .B \-noxv (\-vo sdl only)
2230 Disables using XVideo through the sdl video output driver.
2233 .B \-ontop\ 
2234 Makes the player window stay on top of other windows.
2235 Supported by video output drivers which use X11, except SDL,
2236 as well as directx and gl2.
2239 .B \-panscan <0.0\-1.0>
2240 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
2241 movie to make it fit a 4:3 display without black bands).
2242 The range controls how much of the image is cropped.
2243 Only works with the xv, xmga, mga, gl, quartz and xvidix video output drivers.
2246 .B \-refreshrate <Hz>
2247 Set the monitor refreshrate in Hz.
2248 Currently only supported by \-vo directx combined with the \-vm option.
2251 .B \-rootwin
2252 Play movie in the root window (desktop background).
2253 Desktop background images may cover the movie window, though.
2254 Only works with the x11, xv, xmga, xvidix, quartz and directx video output drivers.
2257 .B \-saturation <-100\-100>
2258 Adjust the saturation of the video signal (default: 0).
2259 You can get grayscale output with this option.
2260 Not supported by all video output drivers.
2263 .B \-screenh <pixels>
2264 Specify the vertical screen resolution for video output drivers which
2265 do not know the screen resolution like fbdev, x11 and TVout.
2268 .B \-screenw <pixels>
2269 Specify the horizontal screen resolution for video output drivers which
2270 do not know the screen resolution like fbdev, x11 and TVout.
2273 .B \-stop-xscreensaver (X11 only)
2274 Turns off xscreensaver at startup and turns it on again on exit.
2277 .B \-vm \ \ \ 
2278 Try to change to a different video mode.
2279 Supported by the dga, x11, xv, sdl and directx video output drivers.
2280 If used with the directx video output driver the \-screenw,
2281 \-screenh, \-bpp and \-refreshrate options can be used to set
2282 the new display mode.
2285 .B \-vsync \ \ 
2286 Enables VBI for the vesa, dfbmga and svga video output drivers.
2289 .B \-wid <window\ ID> (also see \-guiwid, \-geometry) (X11 and DirectX only)
2290 This tells MPlayer to attach to an existing window.
2291 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
2294 .B \-xineramascreen <0\-...>
2295 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
2296 displays) this option tells MPlayer which screen to display movie on.
2299 .B \-z <0\-9> (\-vo png only)
2300 Specifies the compression level of the png video output driver.
2301 0 is no compression, 9 is the maximum compression.
2304 .B \-zrbw (\-vo zr only)
2305 Display in black and white.
2306 For optimal performance, this can be combined with '\-lavdopts gray'.
2309 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
2310 Select a part of the input image to display, multiple occurences
2311 of this option switch on cinerama mode.
2312 In cinerama mode the movie is distributed over more than one TV
2313 (or beamer) to create a larger image.
2314 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
2315 card should at least have a \-zrdev in addition to the \-zrcrop.
2316 For examples, see the output of \-zrhelp and the Zr section of the
2317 documentation.
2320 .B \-zrdev <device> (\-vo zr only)
2321 Specify the device special file that belongs to your MJPEG card, by default
2322 the zr video output driver takes the first v4l device it can find.
2325 .B \-zrfd (\-vo zr only)
2326 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
2327 happens if the hardware scaler can stretch the image to its original size.
2328 Use this option to force decimation.
2331 .B \-zrhdec <1,2,4> (\-vo zr only)
2332 Horizontal decimation: Ask the driver to send only every 2nd or 4th
2333 line/\:pixel of the input image to the MJPEG card and use the scaler
2334 of the MJPEG card to stretch the image to its original size.
2337 .B \-zrhelp (\-vo zr only)
2338 Display a list of all \-zr* options, their default values and a
2339 cinerama mode example.
2342 .B \-zrnorm <norm> (\-vo zr only)
2343 Specify the TV norm as PAL or NTSC (default: no change).
2346 .B \-zrquality <1\-20> (\-vo zr only)
2347 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
2350 .B \-zrvdec <1,2,4> (\-vo zr only)
2351 Vertical decimation: Ask the driver to send only every 2nd or 4th
2352 line/\:pixel of the input image to the MJPEG card and use the scaler
2353 of the MJPEG card to stretch the image to its original size.
2356 .B \-zrxdoff <x display offset> (\-vo zr only)
2357 If the movie is smaller than the TV screen, this option specifies the x
2358 offset from the upper-left corner of the TV screen (default: centered).
2361 .B \-zrydoff <y display offset> (\-vo zr only)
2362 If the movie is smaller than the TV screen, this option specifies the y
2363 offset from the upper-left corner of the TV screen (default: centered).
2367 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
2368 Video output drivers are interfaces to different video output facilities.
2369 The syntax is:
2372 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
2373 Specify a priority list of video output drivers to be used.
2375 If the list has a trailing ',' MPlayer will fall back on drivers not
2376 contained in the list.
2377 Suboptions are optional and can mostly be omitted.
2379 .I NOTE:
2380 See \-vo help for a list of compiled-in video output drivers.
2381 .sp 1
2382 .I EXAMPLE:
2383 .PD 0
2384 .RSs
2385 .IPs "\-vo xmga,xv,"
2386 Try the Matrox X11 driver, then the Xv driver, then others.
2387 .IPs "\-vo directx:noaccel"
2388 Uses the DirectX driver with acceleration features turned off.
2390 .PD 1
2391 .sp 1
2392 Available video output drivers are:
2395 .B xv (X11 only)
2396 Uses the XVideo extension of XFree86 4.x to enable hardware
2397 accelerated playback.
2398 If you cannot use a hardware specific driver, this is probably
2399 the best option.
2400 .PD 0
2401 .RSs
2402 .IPs port=<number>
2403 Select a specific XVideo port.
2405 .PD 1
2408 .B x11 (X11 only)
2409 Shared memory video output driver without hardware acceleration that
2410 works whenever X11 is present.
2413 .B xover (X11 only)
2414 Adds X11 support to all overlay based video output drivers.
2415 Currently only supported by tdfx_vid.
2416 .PD 0
2417 .RSs
2418 .IPs <vo_driver>
2419 Select the driver to use as source to overlay on top of X11.
2421 .PD 1
2424 .B xvmc (X11 with \-vc ffmpeg12mc only)
2425 Video output driver that uses the XvMC (X Video Motion Compensation)
2426 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
2427 .PD 0
2428 .RSs
2429 .IPs benchmark
2430 Disables image display.
2431 Necessary for proper benchmarking of drivers that change
2432 image buffers on monitor retrace only (nVidia).
2433 .IPs queue
2434 Queue frames for display to allow more parallel work of the video hardware.
2435 May add a small (not noticeable) constant A/\:V desync.
2436 .IPs sleep
2437 Use sleep function while waiting for rendering to finish
2438 (not recomended on Linux).
2439 .IPs wait\ 
2440 Do not use sleep function while waiting for rendering to finish
2441 (default).
2443 .PD 1
2446 .B dga (X11 only)
2447 Play video through the XFree86 Direct Graphics Access extension.
2448 Considered obsolete.
2451 .B sdl (also see \-forcexv, \-noxv) (SDL only)
2452 Highly platform independent SDL (Simple Directmedia Layer) library
2453 video output driver.
2454 Since SDL uses its own X11 layer, MPlayer X11 options do not have
2455 any effect on SDL.
2456 .PD 0
2457 .RSs
2458 .IPs <driver>
2459 Explicitly choose the SDL driver to use.
2461 .PD 1
2464 .B vidix\ \ 
2465 VIDIX (VIDeo Interface for *niX) is an interface to the
2466 video acceleration features of different graphics cards.
2467 Very fast video output driver on cards that support it.
2468 .PD 0
2469 .RSs
2470 .IPs <subdevice>
2471 Explicitly choose the VIDIX subdevice driver to use.
2472 Available subdevice drivers are cyberblade_vid, mach64_vid, mga_crtc2_vid,
2473 mga_vid, nvidia_vid, pm3_vid, radeon_vid, rage128_vid, sis_vid and
2474 unichrome_vid.
2476 .PD 1
2479 .B xvidix (X11 only)
2480 X11 frontend for VIDIX
2481 .PD 0
2482 .RSs
2483 .IPs <subdevice>
2484 same as vidix
2486 .PD 1
2489 .B cvidix\ 
2490 Generic and platform independent VIDIX frontend, can even run in a
2491 textconsole with nVidia cards.
2492 .PD 0
2493 .RSs
2494 .IPs <subdevice>
2495 same as vidix
2497 .PD 1
2500 .B winvidix (Windows only)
2501 Windows frontend for VIDIX
2502 .PD 0
2503 .RSs
2504 .IPs <subdevice>
2505 same as vidix
2507 .PD 1
2510 .B directx (Windows only)
2511 Video output driver that uses the DirectX interface.
2512 .PD 0
2513 .RSs
2514 .IPs noaccel
2515 Turns off hardware acceleration.
2516 Try this option if you have display problems.
2518 .PD 1
2521 .B quartz (Mac OS X only)
2522 Mac OS X Quartz video output driver.
2523 Under some circumstances, it might be more efficient to force a
2524 packed YUV output format, with e.g.\& \-vf format=yuy2.
2525 .PD 0
2526 .RSs
2527 .IPs device_id=<number>
2528 Choose the display device to use in fullscreen.
2529 .IPs fs_res=<width>:<height>
2530 Specify the fullscreen resolution (useful on slow systems).
2532 .PD 1
2535 .B fbdev (Linux only)
2536 Uses the kernel framebuffer to play video.
2537 .PD 0
2538 .RSs
2539 .IPs <device>
2540 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
2541 name of the VIDIX subdevice if the device name starts with 'vidix'
2542 (e.g.\& 'vidixsis_vid' for the sis driver).
2544 .PD 1
2547 .B fbdev2 (Linux only)
2548 Uses the kernel framebuffer to play video,
2549 alternative implementation.
2550 .PD 0
2551 .RSs
2552 .IPs <device>
2553 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
2555 .PD 1
2558 .B vesa\ \ \ 
2559 Very general video output driver that should work on any VESA VBE 2.0
2560 compatible card.
2561 .PD 0
2562 .RSs
2563 .IPs dga\ \ 
2564 Turns on DGA mode.
2565 .IPs nodga
2566 Turns off DGA mode.
2567 .IPs neotv_pal
2568 Activate the NeoMagic TV out and set it to PAL norm.
2569 .IPs neotv_ntsc
2570 Activate the NeoMagic TV out and set it to NTSC norm.
2571 .IPs vidix
2572 Use the VIDIX driver.
2573 .IPs lvo:\ \ \ 
2574 Activate the Linux Video Overlay on top of VESA mode.
2576 .PD 1
2579 .B svga\ \ \ 
2580 Play video using the SVGA library.
2581 .PD 0
2582 .RSs
2583 .IPs "<video mode>"
2584 Specify video mode to use.
2585 The mode can be given in a <width>x<height>x<colors> format,
2586 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
2587 .IPs bbosd
2588 Draw OSD into black bands below the movie (slower).
2589 .IPs native
2590 Use only native drawing functions.
2591 This avoids direct rendering, OSD and hardware acceleration.
2592 .IPs retrace
2593 Force frame switch on vertical retrace.
2594 Usable only with \-double.
2595 It has the same effect as the \-vsync option.
2596 .IPs sq\ \ \ 
2597 Try to select a video mode with square pixels.
2598 .IPs vidix
2599 Use svga with VIDIX.
2601 .PD 1
2604 .B gl\ \ \ \ \ 
2605 OpenGL video output driver.
2606 Simple version, video size must be smaller than
2607 the maximum texture size of your OpenGL implementation.
2608 Intended to work even with the most simple OpenGL implementations.
2609 .PD 0
2610 .RSs
2611 .IPs (no)manyfmts
2612 Enables support for more (RGB and BGR) color formats.
2613 Needs OpenGL version >= 1.2.
2614 .IPs slice-height=<0\-...>
2615 Number of lines copied to texture in one piece (default: 4).
2616 0 for whole image.
2617 .IPs (no)osd
2618 Enable or disable support for OSD rendering via OpenGL (default: enabled).
2619 Mostly for testing, you should use \-osdlevel 0 to disable OSD.
2620 .IPs (no)scaled-osd
2621 Changes the way the OSD behaves when the size of the
2622 window changes (default: disabled).
2623 When enabled behaves more like the other video output drivers,
2624 which is better for fixed-size fonts.
2625 Disabled looks much better with FreeType fonts and uses the
2626 borders in fullscreen mode.
2627 .IPs (no)aspect
2628 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
2629 Disabling might increase speed.
2631 .PD 1
2634 .B gl2\ \ \ \ 
2635 OpenGL video output driver, second generation.
2636 Supports OSD and videos larger than the maximum texture size.
2639 .B null\ \ \ 
2640 Produces no video output.
2641 Useful for benchmarking.
2644 .B aa (also see \-aa*)
2645 ASCII art video output driver that works on a text console.
2648 .B caca\ \ \ 
2649 Color ASCII art video output driver that works on a text console.
2652 .B bl\ \ \ \ \ 
2653 Video playback using the Blinkenlights UDP protocol.
2654 This driver is highly hardware specific.
2655 .PD 0
2656 .RSs
2657 .IPs <subdevice>
2658 Explicitly choose the Blinkenlights subdevice driver to use.
2659 It's something like arcade:host=localhost:2323 or
2660 hdl:file=name1,file=name2.
2661 You must specify a subdevice.
2663 .PD 1
2666 .B ggi\ \ \ \ 
2667 GGI graphics system video output driver
2668 .PD 0
2669 .RSs
2670 .IPs <driver>
2671 Explicitly choose the GGI driver to use.
2673 .PD 1
2676 .B directfb
2677 Play video using the DirectFB library.
2678 .PD 0
2679 .RSs
2680 .IPs (no)input
2681 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
2682 .IPs buffermode=single|double|triple
2683 Double and triple buffering give best results if you want to avoid tearing issues.
2684 Triple buffering is more efficent than double buffering as it doesn't block MPlayer
2685 while waiting for the vertical retrace.
2686 Single buffering should be avoided (default: single).
2687 .IPs fieldparity=top|bottom
2688 Control the output order for interlaced frames (default: disabled).
2689 Valid values are top = top fields first, bottom = bottom fields first.
2690 This option doesn't have any effect on progressive film material
2691 like most MPEG movies are.
2692 You need to enable this option if you have tearing issues/\:unsmooth
2693 motions watching interlaced film material.
2694 .IPs layer=N
2695 Will force layer with ID N for playback (default: -1 - auto).
2697 .PD 1
2700 .B dfbmga\ 
2701 Matrox G400/\:G450/\:G550 specific video output driver that uses the
2702 DirectFB library to make use of special hardware features.
2703 Enables CRTC2 (second head), displaying video independently of the first head.
2704 .PD 0
2705 .RSs
2706 .IPs (no)bes
2707 Enable the use of the Matrox BES (backend scaler) (default: disabled).
2708 Gives very good results concerning speed and output quality as interpolated
2709 picture processing is done in hardware.
2710 Works only on the primary head.
2711 .IPs (no)spic
2712 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
2713 .IPs (no)crtc2
2714 Turn on TV-out on the second head (default: enabled).
2715 The output quality is amazing as it's a full interlaced picture
2716 with proper sync to every odd/\:even field.
2717 .IPs (no)input
2718 Use the DirectFB instead of the MPlayer keyboard code (default: disabled).
2719 .IPs buffermode=single|double|triple
2720 Double and triple buffering give best results if you want to avoid tearing issues.
2721 Triple buffering is more efficent than double buffering as it doesn't block MPlayer
2722 while waiting for the vertical retrace.
2723 Single buffering should be avoided (default: triple).
2724 .IPs fieldparity=top|bottom
2725 Control the output order for interlaced frames (default: disabled).
2726 Valid values are top = top fields first, bottom = bottom fields first.
2727 This option doesn't have any effect on progressive film material
2728 like most MPEG movies are.
2729 You need to enable this option if you have tearing issues/\:unsmooth
2730 motions watching interlaced film material.
2731 .IPs tvnorm=pal|ntsc|auto
2732 Will set the TV norm of the Matrox card without the need
2733 for modifying /etc/\:directfbrc (default: disabled).
2734 Valid norms are pal = PAL, ntsc = NTSC.
2735 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
2736 which norm to use by looking at the framerate of the movie.
2738 .PD 1
2741 .B mga (Linux only)
2742 Matrox specific video output driver that makes use of the YUV back
2743 end scaler on Gxxx cards through a kernel module.
2744 If you have a Matrox card, this is the fastest option.
2745 .PD 0
2746 .RSs
2747 .IPs <device>
2748 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
2750 .PD 1
2753 .B xmga (Linux, X11 only)
2754 The mga video output driver, running in an X11 window.
2755 .PD 0
2756 .RSs
2757 .IPs <device>
2758 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
2760 .PD 1
2763 .B syncfb\ 
2764 Video output driver for the SyncFB kernel module, which provides
2765 special hardware features of Matrox Gxxx cards like hardware
2766 deinterlacing, scaling and synchronizing your video output to
2767 the vertical retrace of your monitor.
2770 .B 3dfx (Linux only)
2771 3Dfx specific video output driver.
2772 This driver directly uses the 3Dfx hardware on top of X11.
2773 Only 16 bpp are supported.
2774 FIXME: It' ok the difference between 3dfx, tdfxfb and tdfx_vid?
2777 .B tdfxfb (Linux only)
2778 This driver employs the tdfx framebuffer driver to play movies with
2779 YUV acceleration on 3Dfx cards.
2780 FIXME: It' ok the difference between 3dfx, tdfxfb and tdfx_vid?
2781 .PD 0
2782 .RSs
2783 .IPs <device>
2784 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
2786 .PD 1
2789 .B tdfx_vid (Linux only)
2790 3Dfx specific video output driver.
2791 This driver directly uses the tdfx_vid kernel module.
2792 FIXME: It' ok the difference between 3dfx, tdfxfb and tdfx_vid?
2793 .PD 0
2794 .RSs
2795 .IPs <device>
2796 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
2798 .PD 1
2801 .B dxr2 (also see \-dxr2) (DXR2 only)
2802 Creative DXR2 specific video output driver.
2803 .PD 0
2804 .RSs
2805 .IPs <vo_driver>
2806 Output video subdriver to use as overlay (x11, xv).
2808 .PD 1
2811 .B dxr3 (DXR3 only)
2812 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
2813 Hollywood Plus) specific video output driver.
2814 Also see the lavc video filter.
2815 .PD 0
2816 .RSs
2817 .IPs overlay
2818 Activates the overlay instead of TVOut.
2819 .IPs prebuf
2820 Turns on prebuffering.
2821 .IPs sync\ 
2822 Will turn on the new sync-engine.
2823 .IPs norm=<norm>
2824 Specifies the TV norm.
2825 .RSss
2826 0: Does not change current norm (default).
2828 1: Auto-adjust using PAL/\:NTSC.
2830 2: Auto-adjust using PAL/\:PAL-60.
2832 3: PAL
2834 4: PAL-60
2836 5: NTSC
2837 .REss
2838 .IPs <0\-3>
2839 Specifies the device number to use if you have more than one em8300 card.
2841 .PD 1
2844 .B mpegpes (DVB only)
2845 Video output driver for DVB cards that writes the output to an MPEG-PES file
2846 if no DVB card is installed.
2847 .PD 0
2848 .RSs
2849 .IPs card=<1\-4>
2850 Specifies the device number to use if you have more than one DVB output card
2851 (V3 API only, such as 1.x.y series drivers).
2852 .IPs <filename>
2853 Allows specifying the output filename (default: ./grab.mpg).
2855 .PD 1
2858 .B zr (also see \-zr* and \-zrhelp)
2859 Video output driver for a number of MJPEG capture/\:playback cards.
2862 .B zr2 (also see the zrmjpeg video filter)
2863 Video output driver for a number of MJPEG capture/\:playback cards,
2864 second generation.
2865 .PD 0
2866 .RSs
2867 .IPs dev=<device>
2868 Specifies the device to use.
2869 .IPs pal\ \ 
2870 Activate PAL video norm.
2871 .IPs secam
2872 Activate SECAM video norm.
2873 .IPs ntsc\ 
2874 Activate NTSC video norm.
2875 .IPs prebuf
2876 Activate prebuffering, not yet supported.
2878 .PD 1
2881 .B md5sum\ 
2882 Calculate MD5 sums of each frame and write them to a file.
2883 Supports RGB24 and YV12 colorspaces.
2884 Useful for debugging.
2885 .PD 0
2886 .RSs
2887 .IPs outfile=<value>
2888 Specify the output filename (default: ./md5sums).
2890 .PD 1
2893 .B yuv4mpeg
2894 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
2895 images and stores it in a file (default: ./stream.yuv).
2896 The format is the same as the one employed by mjpegtools, so this is
2897 useful if you want to process the video with the mjpegtools suite.
2898 It supports the YV12, RGB (24 bpp) and BGR (24 bpp) format.
2899 You can combine it with the \-fixed-vo option to concatenate files
2900 with the same dimensions and fps value.
2901 .PD 0
2902 .RSs
2903 .IPs interlaced
2904 Write the output as interlaced frames, top field first.
2905 .IPs interlaced_bf
2906 Write the output as interlaced frames, bottom field first.
2907 .IPs file=<filename>
2908 Write the output to <filename> instead of the default stream.yuv.
2909 .REss
2910 .PD 1
2912 .sp 1
2913 .I NOTE:
2914 If you don't specify any option the output is progressive
2915 (i.e.\& not interlaced).
2919 .B gif89a\ 
2920 Output each frame into a single animated GIF file in the current directory.
2921 It supports only RGB format with 24 bpp and the output is converted to 256
2922 colors.
2923 .PD 0
2924 .RSs
2925 .IPs <fps>
2926 Float value to specify framerate (default: 5.0).
2927 .IPs <filename>
2928 Specify the output filename (default: ./out.gif).
2929 .REss
2930 .PD 1
2932 .sp 1
2933 .I NOTE:
2934 You must specify the framerate before the filename or the framerate will
2935 be part of the filename.
2936 .sp 1
2937 .I EXAMPLE:
2939 .PD 0
2940 .RSs
2941 mplayer video.nut \-vo gif89a:15.0:test.gif
2943 .PD 1
2946 .B jpeg\ \ \ 
2947 Output each frame into a JPEG file in the current directory.
2948 Each file takes the frame number padded with leading zeros as name.
2949 .PD 0
2950 .RSs
2951 .IPs [no]progressive
2952 Specify standard or progressive JPEG (default: noprogressive).
2953 .IPs [no]baseline
2954 Specify use of baseline or not (default: baseline).
2955 .IPs optimize=<0\-100>
2956 optimization factor (default: 100)
2957 .IPs smooth=<0\-100>
2958 smooth factor (default: 0)
2959 .IPs quality=<0\-100>
2960 quality factor (default: 75)
2961 .IPs outdir=<dirname>
2962 Specify the directory to save the JPEG files to (default: ./).
2963 .IPs subdirs=<prefix>
2964 Create numbered subdirectories with the specified prefix to
2965 save the files in instead of the current directory.
2966 .IPs maxfiles=<value> (subdirs only)
2967 Maximum number of files to be saved per subdirectory.
2968 Must be equal to or larger than 1 (default: 1000).
2970 .PD 1
2973 .B pnm\ \ \ \ 
2974 Output each frame into a PNM file in the current directory.
2975 Each file takes the frame number padded with leading zeros as name.
2976 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
2977 Also see pnm(5), ppm(5) and pgm(5).
2978 .PD 0
2979 .RSs
2980 .IPs ppm\ \ 
2981 Write PPM files (default).
2982 .IPs pgm\ \ 
2983 Write PGM files.
2984 .IPs pgmyuv
2985 Write PGMYUV files.
2986 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
2987 bottom of the picture.
2988 .IPs raw\ \ 
2989 Write PNM files in raw mode (default).
2990 .IPs ascii
2991 Write PNM files in ASCII mode.
2992 .IPs outdir=<dirname>
2993 Specify the directory to save the PNM files to (default: ./).
2994 .IPs subdirs=<prefix>
2995 Create numbered subdirectories with the specified prefix to
2996 save the files in instead of the current directory.
2997 .IPs maxfiles=<value> (subdirs only)
2998 Maximum number of files to be saved per subdirectory.
2999 Must be equal to or larger than 1 (default: 1000).
3001 .PD 1
3004 .B png (also see \-z)
3005 Output each frame into a PNG file in the current directory.
3006 Each file takes the frame number padded with leading zeros as name.
3007 24bpp RGB and BGR formats are supported.
3010 .B tga\ \ \ \ 
3011 Output each frame into a Targa file in the current directory.
3012 Each file takes the frame number padded with leading zeros as name.
3013 The purpose of this video output driver is to have a simple lossless
3014 image writer to use without any external library.
3015 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
3016 You can force a particular format with the format video filter.
3017 .sp 1
3018 .I EXAMPLE:
3020 .PD 0
3021 .RSs
3022 mplayer video.nut \-vf format=bgr15 \-vo tga
3024 .PD 1
3028 .SH "DECODING/\:FILTERING OPTIONS"
3031 .B \-ac <[-]codec1,[-]codec2,...[,]>
3032 Specify a priority list of audio codecs to be used, according to their codec
3033 name in codecs.conf.
3034 Use a '-' before the codec name to omit it.
3035 If the list has a trailing ',' MPlayer will fall back on codecs not
3036 contained in the list.
3038 .I NOTE:
3039 See \-ac help for a full list of available codecs.
3040 .sp 1
3041 .I EXAMPLE:
3042 .PD 0
3043 .RSs
3044 .IPs "\-ac mp3acm"
3045 Force the l3codeca.acm MP3 codec.
3046 .IPs "\-ac mad,"
3047 Try libmad first, then fall back on others.
3048 .IPs "\-ac hwac3,a52,"
3049 Try hardware AC3 passthrough, software AC3, then others.
3050 .IPs "\-ac -ffmp3,"
3051 Skip FFmpeg's MP3 decoder.
3053 .PD 1
3056 .B \-af-adv <force=(0\-3):list=(filters)> (also see \-af)
3057 Specify advanced audio filter options:
3058 .RSs
3059 .IPs force=<0\-3>
3060 Forces the insertion of audio filters to one of the following:
3061 .RSss
3062 0: completely automatic filter insertion (default)
3064 1: Optimize for accuracy.
3066 2: Optimize for speed.
3068 3: Turn off automatic filter insertion.
3069 .REss
3070 .IPs list=<filters>
3071 Same as \-af.
3075 .B \-afm <driver1,driver2,...>
3076 Specify a priority list of audio codec families to be used, according
3077 to their codec name in codecs.conf.
3078 Falls back on the default codecs if none of the given codec families work.
3080 .I NOTE:
3081 See \-afm help for a full list of available codec families.
3082 .sp 1
3083 .I EXAMPLE:
3084 .PD 0
3085 .RSs
3086 .IPs "\-afm ffmpeg"
3087 Try FFmpeg's libavcodec codecs first.
3088 .IPs "\-afm acm,dshow"
3089 Try Win32 codecs first.
3091 .PD 1
3094 .B \-aspect <ratio>
3095 Override movie aspect ratio.
3096 It is autodetected for MPEG files, but it cannot be done for most AVI files.
3097 .sp 1
3098 .I EXAMPLE:
3099 .PD 0
3100 .RSs
3101 \-aspect 4:3  or \-aspect 1.3333
3103 \-aspect 16:9 or \-aspect 1.7777
3105 .PD 1
3108 .B \-noaspect
3109 Disable automatic movie aspect ratio compensation.
3112 .B \-flip \ 
3113 Flip image upside-down.
3116 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
3117 Specify libavcodec decoding parameters.
3118 .sp 1
3119 .I EXAMPLE:
3120 .PD 0
3121 .RSs
3122 \-lavdopts bug=1
3124 .PD 1
3125 .sp 1
3127 Available options are:
3129 .RSs
3130 .IPs bug=<value>
3131 Manually work around encoder bugs.
3132 .RSss
3133 0: nothing
3135 1: autodetect bugs (default)
3137 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
3139 4 (mpeg4): XviD interlacing bug (autodetected if fourcc==XVIX)
3141 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
3143 16 (mpeg4): padding bug (autodetected)
3145 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
3147 64 (mpeg4): XviD and DivX qpel bug (autodetected per fourcc/\:version)
3149 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
3151 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
3153 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
3155 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
3156 .REss
3157 .IPs debug=<value>
3158 Display debugging information.
3159 .RSss
3161 0: disabled
3163 1: picture info
3165 2: rate control
3167 4: bitstream
3169 8: macroblock (MB) type
3171 16: quantization parameter (QP)
3173 32: motion vector
3175 0x0040: motion vector visualization (use \-noslices)
3177 0x0080: macroblock (MB) skip
3179 0x0100: startcode
3181 0x0200: PTS
3183 0x0400: error resilience
3185 0x0800: memory management control operations (H.264)
3187 0x1000: bugs
3188 .REss
3189 .IPs ec=<value>
3190 Set error concealment strategy.
3191 .RSss
3192 1: Use strong deblock filter for damaged MBs.
3194 2: iterative motion vector (MV) search (slow)
3196 3: all (default)
3197 .REss
3198 .IPs er=<value>
3199 Set error resilience strategy.
3200 .RSss
3202 0: disabled
3204 1: careful (Should work with broken encoders.)
3206 2: normal (default) (Works with compliant encoders.)
3208 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
3210 4: very aggressive
3211 .REss
3212 .IPs fast\ 
3213 Enable optimizations which do not comply to the specification and might
3214 potentially cause problems, like simpler dequantization, assuming use
3215 of the default quantization matrix, assuming YUV 4:2:0 and skipping a few
3216 checks to detect damaged bitstreams.
3217 .IPs gray\ 
3218 grayscale only decoding (a bit faster than with color)
3219 .IPs "idct=<0\-99> (see \-lavcopts)"
3220 For best decoding quality use the same IDCT algorithm for decoding and encoding.
3221 This may come at a price in accuracy, though.
3222 .IPs lowres=<number>[,<w>]
3223 Decode at lower resolutions.
3224 Low resolution decoding is not supported by all codecs, and it will
3225 often result in ugly artifacts.
3226 This is not a bug, but a side effect of not decoding at full resolution.
3227 .RSss
3229 0: disabled
3231 1: 1/2 resolution
3233 2: 1/4 resolution
3235 3: 1/8 resolution
3236 .REss
3238 If <w> is specified lowres decoding will be used only if the width of the
3239 video is major than or equal to <w>.
3241 .IPs "sb=<number> (MPEG-2 only)"
3242 Skip the given number of macroblock rows at the bottom.
3243 .IPs "st=<number> (MPEG-2 only)"
3244 Skip the given number of macroblock rows at the top.
3245 .IPs vismv=<value>
3246 Visualize motion vectors.
3247 .RSss
3249 0: disabled
3251 1: Visualize forward predicted MVs of P-frames.
3253 2: Visualize forward predicted MVs of B-frames.
3255 4: Visualize backward predicted MVs of B-frames.
3256 .REss
3257 .IPs vstats
3258 Prints some statistics and stores them in ./vstats_*.log.
3262 .B \-noslices
3263 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
3264 whole frame in a single run.
3265 May be faster or slower, depending on card/\:cache.
3266 It has effect only with libmpeg2 and libavcodec codecs.
3269 .B \-nosound
3270 Do not play/\:encode sound.
3271 Useful for benchmarking.
3274 .B \-novideo
3275 Do not play/\:encode video.
3278 .B \-oldpp <quality> (OpenDivX only) (OBSOLETE)
3279 Use the opendivx postprocessing code instead of the internal one.
3280 Superseded by \-pp, the internal postprocessing offers better
3281 quality and performance.
3282 The valid range of \-oldpp values varies by codec, it is mostly
3283 0\-6, where 0=disable, 6=slowest/\:best.
3286 .B \-pp <quality> (also see \-vf pp)
3287 Set the DLL postprocess level.
3288 This option is no longer usable with \-vf pp.
3289 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
3290 The valid range of \-pp values varies by codec, it is mostly
3291 0\-6, where 0=disable, 6=slowest/\:best.
3294 .B \-pphelp (also see \-vf pp)
3295 Show a summary about the available postprocess filters and their usage.
3298 .B \-ssf <mode>
3299 Specifies software scaler parameters.
3300 .sp 1
3301 .I EXAMPLE:
3302 .PD 0
3303 .RSs
3304 \-vf scale \-ssf lgb=3.0
3306 .PD 1
3307 .PD 0
3308 .RSs
3309 .IPs lgb=<0\-100>
3310 gaussian blur filter (luma)
3311 .IPs cgb=<0\-100>
3312 gaussian blur filter (chroma)
3313 .IPs ls=<0\-100>
3314 sharpen filter (luma)
3315 .IPs cs=<0\-100>
3316 sharpen filter (chroma)
3317 .IPs chs=<h>
3318 chroma horizontal shifting
3319 .IPs cvs=<v>
3320 chroma vertical shifting
3322 .PD 1
3325 .B \-stereo <mode>
3326 Select type of MP2/\:MP3 stereo output.
3327 .PD 0
3328 .RSs
3329 .IPs 0
3330 stereo
3331 .IPs 1
3332 left channel
3333 .IPs 2
3334 right channel
3336 .PD 1
3339 .B \-sws <software\ scaler\ type> (also see \-vf scale and \-zoom)
3340 Specify the software scaler algorithm to be used with the \-zoom option.
3341 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
3342 .sp 1
3343 Available types are:
3344 .sp 1
3345 .PD 0
3346 .RSs
3347 .IPs 0
3348 fast bilinear
3349 .IPs 1
3350 bilinear
3351 .IPs 2
3352 bicubic (good quality) (default)
3353 .IPs 3
3354 experimental
3355 .IPs 4
3356 nearest neighbour (bad quality)
3357 .IPs 5
3358 area
3359 .IPs 6
3360 luma bicubic / chroma bilinear
3361 .IPs 7
3362 gauss
3363 .IPs 8
3364 sincR
3365 .IPs 9
3366 lanczos
3367 .IPs 10
3368 natural bicubic spline
3370 .PD 1
3371 .sp 1
3373 .I NOTE:
3374 For \-sws\ 2 and 7, sharpness can be set with the scaling parameter
3375 of \-vf scale (0 (soft) \- 100 (sharp)), for \-sws 9, the scaling
3376 parameter specifies the filter length (1 \- 10).
3380 .B \-vc <[-]codec1,[-]codec2,...[,]>
3381 Specify a priority list of video codecs to be used, according to their codec
3382 name in codecs.conf.
3383 Use a '-' before the codec name to omit it.
3384 If the list has a trailing ',' MPlayer will fall back on codecs not
3385 contained in the list.
3387 .I NOTE:
3388 See \-vc help for a full list of available codecs.
3389 .sp 1
3390 .I EXAMPLE:
3391 .PD 0
3392 .RSs
3393 .IPs "\-vc divx"
3394 Force Win32/\:VFW DivX codec, no fallback.
3395 .IPs "\-vc divx4,"
3396 Try divx4linux codec first, then fall back on others.
3397 .IPs "\-vc -divxds,-divx,"
3398 Skip Win32 DivX codecs.
3399 .IPs "\-vc ffmpeg12,mpeg12,"
3400 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
3402 .PD 1
3405 .B \-vfm <driver1,driver2,...>
3406 Specify a priority list of video codec families to be used, according
3407 to their names in codecs.conf.
3408 Falls back on the default codecs if none of the given codec families work.
3410 .I NOTE:
3411 See \-vfm help for a full list of available codec families.
3412 .sp 1
3413 .I EXAMPLE:
3414 .PD 0
3415 .RSs
3416 .IPs "\-vfm ffmpeg,dshow,vfw"
3417 Try the libavcodec, then Directshow, then VfW codecs and fall back
3418 on others, if they do not work.
3419 .IPs "\-vfm xanim"
3420 Try XAnim codecs first.
3422 .PD 1
3425 .B \-x <x> (MPlayer only)
3426 Scale image to width <x> (if software/\:hardware scaling is available).
3427 Disables aspect calculations.
3430 .B \-xvidopts <option1:option2:...>
3431 Specify additional parameters when decoding with XviD.
3433 .I NOTE:
3434 Since libavcodec is faster than XviD you might want to use the libavcodec
3435 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
3436 .sp 1
3437 XviD's internal postprocessing filters:
3438 .PD 0
3439 .RSs
3440 .IPs deblock-chroma (also see \-vf pp)
3441 chroma deblock filter
3442 .IPs deblock-luma (also see \-vf pp)
3443 luma deblock filter
3444 .IPs dering-luma (also see \-vf pp)
3445 luma deringing filter
3446 .IPs dering-chroma (also see \-vf pp)
3447 chroma deringing filter
3448 .IPs filmeffect (also see \-vf noise)
3449 Adds artificial film grain to the video.
3450 May increase perceived quality, while lowering true quality.
3452 .sp 1
3454 rendering methods:
3456 .PD 0
3457 .RSs
3458 .IPs dr2\ \ 
3459 Activate direct rendering method 2.
3460 .IPs nodr2
3461 Deactivate direct rendering method 2.
3463 .PD 1
3466 .B \-xy <value>
3467 .PD 0
3468 .RSs
3469 .IPs value<=8
3470 Scale image by factor <value>.
3471 .IPs value>8
3472 Set width to value and calculate height to keep correct aspect ratio.
3474 .PD 1
3477 .B \-y <y> (MPlayer only)
3478 Scale image to height <y> (if software/\:hardware scaling is available).
3479 Disables aspect calculations.
3482 .B \-zoom\ \ 
3483 Allow software scaling, where available.
3484 Can be used to force scaling with \-vf scale.
3486 .I NOTE:
3487 \-vf scale will ignore \-x / \-y / \-xy / \-fs / \-aspect without
3488 \-zoom.
3492 .SH "AUDIO FILTERS"
3493 Audio filters allow you to modify the audio stream and its properties.
3494 The syntax is:
3497 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
3498 Setup a chain of audio filters.
3500 .I NOTE:
3501 To get a full list of available audio filters, see \-af help.
3503 Available filters are:
3506 .B resample[=srate[:sloppy][:type]]
3507 Changes the sample rate of the audio stream to an integer srate in Hz.
3508 It only supports the 16-bit little-endian format.
3509 With MEncoder, you need to also use \-srate <srate>.
3512 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
3513 Changes the sample rate of the audio stream to an integer srate in Hz.
3514 It only supports the 16-bit little-endian format.
3515 With MEncoder, you need to also use \-srate <srate>.
3516 .PD 0
3517 .RSs
3518 .IPs srate
3519 the output sample rate
3520 .IPs length
3521 length of the filter with respect to the lower sampling rate (default: 16)
3522 .IPs linear
3523 if 1 then filters will be linearly interpolated between polyphase entries
3524 .IPs count
3525 log2 of the number of polyphase entries
3526 (..., 10->1024, 11->2048, 12->4096, ...)
3527 (default: 10->1024)
3528 .IPs cutoff
3529 cutoff frequency (0.0-1.0), default set depending upon filter length
3531 .PD 1
3534 .B sweep[=speed]
3535 sine sweep
3538 .B hrtf\ \ \ 
3539 Head-related transfer function: Converts multichannel audio to
3540 2 channel output for headphones, preserving the spatiality of the sound.
3543 .B channels[=nch]
3544 Change the number of channels to nch output channels.
3545 If the number of output channels is bigger than the number of input channels
3546 empty channels are inserted (except when mixing from mono to stereo, then
3547 the mono channel is repeated in both of the output channels).
3548 If the number of output channels is smaller than the number of input channels
3549 the exceeding channels are truncated.
3552 .B format[=bps:f]
3553 Select the bytes per sample and the format used for output from the
3554 filter layer.
3555 The option bps is an integer and denotes Bytes per sample.
3556 The format f is a string containing a concatenated mix of:
3558 alaw, mulaw or imaadpcm
3560 float or int
3562 unsigned or signed
3564 le or be (little- or big-endian)
3568 .B volume[=v:sc]
3569 Select the output volume level.
3570 This filter is not reentrant and can therefore only be enabled once for every
3571 audio stream.
3572 .PD 0
3573 .RSs
3574 .IPs v
3575 Sets the desired gain in dB for all channels in the stream
3576 from -200dB to +60dB (where -200dB mutes the sound
3577 completely and +60dB equals a gain of 1000).
3578 .IPs sc
3579 Enable soft clipping.
3581 .PD 1
3584 .B pan[=n:l01:l02:...l10:l11:l12:...ln0:ln1:ln2:...]
3585 Mixes channels arbitrarily, see DOCS/\:HTML/\:en/\:audio.html for details.
3586 .PD 0
3587 .RSs
3588 .IPs n
3589 number of input channels (1\-6)
3590 .IPs lij
3591 How much of input channel j is mixed into output channel i.
3593 .PD 1
3596 .B sub[=fc:ch]
3597 Add subwoofer channel.
3598 .PD 0
3599 .RSs
3600 .IPs fc
3601 cutoff frequency for low-pass filter (20Hz to 300Hz) (default: 60Hz)
3602 .IPs ch
3603 channel number for the sub-channel
3605 .PD 1
3608 .B surround[=d]
3609 Decoder for matrix encoded surround sound, works on many 2 channel files.
3610 .PD 0
3611 .RSs
3612 .IPs d
3613 delay time in ms for the rear speakers (0ms to 1000ms) (default: 15ms)
3615 .PD 1
3618 .B delay[=ch1:ch2:...]
3619 Delays the sound output.
3620 Specify the delay separately for each channel in milliseconds (floating point
3621 number between 0 and 1000).
3624 .B export[=mmapped_file[:nsamples]]
3625 Exports the incoming signal to other processes using memory mapping (mmap()).
3626 .PD 0
3627 .RSs
3628 .IPs mmapped_file
3629 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
3630 .IPs nsamples
3631 number of samples per channel (default: 512)
3633 .PD 1
3636 .B extrastereo[=mul]
3637 Increases the difference between left and right channels to add some
3638 sort of "live" effect to playback.
3639 .PD 0
3640 .RSs
3641 .IPs mul\ \ 
3642 difference coefficient (default: 2.5)
3644 .PD 1
3647 .B volnorm
3648 Maximizes the volume without distorting the sound.
3651 .B ladspa=file:label[:controls...]
3652 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
3653 This filter is reentrant, so multiple LADSPA plugins can be used at once.
3654 .PD 0
3655 .RSs
3656 .IPs file\ 
3657 Specifies the LADSPA plugin library file.
3658 If LADSPA_PATH is set, it searches for the specified file.
3659 If it is not set, you must supply a fully specified pathname.
3660 .IPs label
3661 Specifies the filter within the library.
3662 Some libraries contain only one filter, but others contain many of them.
3663 Entering 'help' here, will list all available filters within the specified
3664 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
3665 .IPs controls
3666 Controls are zero or more floating point values that determine the
3667 behaviour of the loaded plugin (for example delay, threshold or gain).
3668 In verbose mode (add \-v to the MPlayer command line), all available controls
3669 and their valid ranges are printed.
3670 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
3672 .PD 1
3676 .SH "VIDEO FILTERS"
3677 Video filters allow you to modify the video stream and its properties.
3678 The syntax is:
3681 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
3682 Setup a chain of video filters.
3685 .B \-vop <...,filter2[=parameter1:parameter2:...],filter1> (OBSOLETE)
3686 Setup a chain of video filters, to be applied in
3687 .B reverse
3688 order.
3689 Deprecated in favor of \-vf.
3691 Many parameters are optional and set to default values if omitted.
3692 To explicitly use a default value set a parameter to '-1'.
3693 Parameters w:h means width x height in pixels, x:y means x;y position counted
3694 from the upper left corner of the bigger image.
3696 .I NOTE:
3697 To get a full list of available video filters, see \-vf help.
3698 .sp 1
3699 Filters are managed in lists.
3700 There are a few commands to manage the filter list.
3703 .B \-vf-add <filter1[,filter2,...]>
3704 Appends the filters given as arguments to the filter list.
3707 .B \-vf-pre <filter1[,filter2,...]>
3708 Prepends the filters given as arguments to the filter list.
3711 .B \-vf-del <index1[,index2,...]>
3712 Deletes the filters at the given indexes.
3713 Index numbers start at 0, negative numbers address the end of the
3714 list (-1 is the last).
3717 .B \-vf-clr
3718 Completely empties the filter list.
3720 With filters that support it, you can access parameters by their name.
3723 .B \-vf <filter>=help
3724 Prints the parameter names and parameter value ranges for a particular
3725 filter.
3728 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
3729 Sets a named parameter to the given value.
3730 Use on and off or yes and no to set flag parameters.
3732 Available filters are:
3735 .B crop[=w:h:x:y]
3736 Crops the given part of the image and discards the rest.
3737 Useful to remove black bands from widescreen movies.
3738 .PD 0
3739 .RSs
3740 .IPs w,h
3741 Cropped width and height, defaults to original width and height.
3742 .IPs x,y
3743 Position of the cropped picture, defaults to center.
3745 .PD 1
3748 .B cropdetect[=limit:round]
3749 Calculates necessary cropping parameters and prints the recommended parameters
3750 to stdout.
3751 .PD 0
3752 .RSs
3753 .IPs limit
3754 Threshold, which can be optionally specified from nothing (0) to
3755 everything (255) (default: 24).
3757 .IPs round
3758 Value which the width/\:height should be divisible by (default: 16).
3759 The offset is automatically adjusted to center the video.
3760 Use 2 to get only even dimensions (needed for 4:2:2 video).
3761 16 is best when encoding to most video codecs.
3763 .PD 1
3766 .B rectangle[=w:h:x:y]
3767 The plugin responds to the input.conf directive 'change_rectangle'
3768 that takes two parameters.
3769 .PD 0
3770 .RSs
3771 .IPs w,h
3772 width and height (default: -1, maximum possible width where boundaries
3773 are still visible.)
3774 .IPs x,y
3775 top left corner position (default: -1, uppermost leftmost)
3777 .PD 1
3780 .B expand[=w:h:x:y:o]
3781 Expands (not scales) movie resolution to the given value and places the
3782 unscaled original at coordinates x, y.
3783 Can be used for placing subtitles/\:OSD in the resulting black bands.
3784 .RSs
3785 .IPs w,h
3786 Expanded width,height (default: original width,height).
3787 Negative values for w and h are treated as offsets to the original size.
3788 .sp 1
3789 .I EXAMPLE:
3790 .PD 0
3791 .RSs
3792 .IP expand=0:-50:0:0
3793 Adds a 50 pixel border to the bottom of the picture.
3795 .PD 1
3796 .IPs x,y
3797 position of original image on the expanded image (default: center)
3798 .IPs o
3799 OSD/\:subtitle rendering
3800 .RSss
3801 0: disable (default)
3803 1: enable
3804 .REss
3808 .B flip (also see \-flip)
3809 Flips the image upside down.
3812 .B mirror\ 
3813 Mirrors the image on the Y axis.
3816 .B rotate[=<0\-7>]
3817 Rotates the image by 90 degrees and optionally flips it.
3818 For values between 4\-7 rotation is only done if the movie geometry is
3819 portrait and not landscape.
3820 .RSs
3821 .IPs 0
3822 Rotate by 90 degrees clockwise and flip.
3823 .IPs 1
3824 Rotate by 90 degrees clockwise.
3825 .IPs 2
3826 Rotate by 90 degrees counterclockwise.
3827 .IPs 3
3828 Rotate by 90 degrees counterclockwise and flip.
3832 .B scale[=w:h[:interlaced[:chr_drop[:param[:param2[:presize]]]]]]
3833 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
3834 colorspace conversion (also see \-sws).
3835 .RSs
3836 .IPs <w>,<h>
3837 scaled width/\:height (default: original width/\:height)
3839 .I NOTE:
3840 If \-zoom is used, and underlying filters (including libvo) are
3841 incapable of scaling, it defaults to d_width/\:d_height!
3842 .RSss
3843  0:   scaled d_width/\:d_height
3845 -1:   original width/\:height
3847 -2:   Calculate w/\:h using the other dimension and the prescaled aspect ratio.
3849 -3:   Calculate w/\:h using the other dimension and the original aspect ratio.
3850 .REss
3851 .IPs <interlaced>
3852 Toggle interlaced scaling.
3853 .RSss
3854 0: off (default)
3856 1: on
3857 .REss
3858 .IPs <chr_drop>
3859 chroma skipping
3860 .RSss
3861 0: Use all available input lines for chroma.
3863 1: Use only every 2. input line for chroma.
3865 2: Use only every 4. input line for chroma.
3867 3: Use only every 8. input line for chroma.
3868 .REss
3869 .IPs "<param>[:<param2>] (also see \-sws)"
3870 Set some scaling parameters depending on the type of scaler selected
3871 with \-sws.
3872 .RSss
3873 \-sws 2 (bicubic):  B (blurring) and C (ringing)
3875 0.00:0.60 default
3877 0.00:0.75 VirtualDubs "precise bicubic"
3879 0.00:0.50 Catmull-Rom spline
3881 0.33:0.33 Mitchell-Netravali spline
3883 1.00:0.00 cubic B-spline
3885 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
3887 \-sws 9 (lanczos):  filter length (1\-10)
3888 .REss
3889 .IPs <presize>
3890 Scale to preset sizes.
3891 .RSss
3892 qntsc:   352x240 (NTSC quarter screen)
3894 qpal:    352x288 (PAL quarter screen)
3896 ntsc:    720x480 (standard NTSC)
3898 pal:     720x576 (standard PAL)
3900 sntsc:   640x480 (square pixel NTSC)
3902 spal:    768x576 (square pixel PAL)
3903 .REss
3907 .B dsize=[aspect|w:h]
3908 Changes the intended display size/\:aspect at an arbitrary point in the
3909 filter chain.
3910 Aspect can be given as a fraction (4/\:3) or floating point number
3911 (1.33).
3912 Alternatively, you may specify the exact display width and height
3913 desired.
3914 Note that this filter does
3915 .B not
3916 do any scaling itself; it just affects
3917 what later scalers (software or hardware) will do when auto-scaling to
3918 correct aspect.
3921 .B yuy2\ \ \ 
3922 Forces software YV12/\:I420/\:422P to YUY2 conversion.
3923 Useful for video cards/\:drivers with slow YV12 but fast YUY2 support.
3926 .B yvu9\ \ \ 
3927 Forces software YVU9 to YV12 colorspace conversion.
3928 Deprecated in favor of the software scaler.
3931 .B yuvcsp\ 
3932 Clamps YUV color values to the CCIR 601 range without doing real conversion.
3935 .B rgb2bgr[=swap]
3936 RGB 24/\:32 <\-> BGR 24/\:32 colorspace conversion.
3937 .PD 0
3938 .RSs
3939 .IPs swap\ 
3940 Also perform  R <-> B swapping.
3942 .PD 1
3945 .B palette
3946 RGB/\:BGR 8 \-> 15/\:16/\:24/\:32bpp colorspace conversion using palette.
3949 .B format[=fourcc]
3950 Restricts the colorspace for the next filter without doing any conversion.
3951 Use together with the scale filter for a real conversion.
3953 .I NOTE:
3954 For a list of available formats see format=fmt=help.
3955 .PD 0
3956 .RSs
3957 .IPs fourcc
3958 format name like rgb15, bgr24, yv12, etc (default: yuy2)
3960 .PD 1
3963 .B noformat[=fourcc]
3964 Restricts the colorspace for the next filter without doing any conversion.
3965 Unlike the format filter, this will allow any colorspace
3966 .B except
3967 the one you specify.
3969 .I NOTE:
3970 For a list of available formats see noformat=fmt=help.
3971 .PD 0
3972 .RSs
3973 .IPs fourcc
3974 format name like rgb15, bgr24, yv12, etc (default: yv12)
3976 .PD 1
3979 .B pp[=filter1[:option1[:option2...]]/\:[-]filter2...] (also see \-pphelp)
3980 Enables the specified chain of postprocessing subfilters.
3981 Subfilters must be separated by '/' and can be disabled by
3982 prepending a '\-'.
3983 A subfilter's scope can be determined by appending a ':' followed
3984 by 'a', 'c' or 'y' (default: c):
3985 .PD 0
3986 .RSs
3987 .IPs a
3988 Automatically switch the subfilter off if the CPU is too slow.
3989 .IPs c
3990 Do chrominance filtering, too.
3991 .IPs y
3992 Do luminance filtering only (no chrominance).
3994 .PD 1
3995 .sp 1
3998 .I NOTE:
3999 \-pphelp shows a list of available subfilters.
4000 .sp 1
4001 .I EXAMPLE:
4003 .PD 0
4004 .RSs
4005 .IPs "\-vf pp=hb/vb/dr/al"
4006 horizontal and vertical deblocking, deringing and automatic
4007 brightness/\:contrast
4008 .IPs "\-vf pp=hb/vb/dr/al/lb"
4009 horizontal and vertical deblocking, deringing, automatic
4010 brightness/\:contrast and linear blend deinterlacer
4011 .IPs "\-vf pp=de/-al"
4012 default filters without brightness/\:contrast correction
4013 .IPs "\-vf pp=de/tn:1:2:3"
4014 Enable default filters & temporal denoiser.
4015 .IPs "\-vf pp=hb:y/vb:a"
4016 Horizontal deblocking on luminance only, and switch vertical deblocking
4017 on or off automatically depending on available CPU time.
4019 .PD 1
4022 .B spp[=quality[:qp[:mode]]]
4023 simple postprocessing filter
4024 .RSs
4025 .IPs quality
4026 0\-6 (default: 3)
4027 .IPs qp\ \ \ 
4028 Force quantization parameter (default: 0, use QP from video).
4029 .IPs mode\ \ \ 
4030 0: hard thresholding (default)
4032 1: soft thresholding (better deringing, but blurrier)
4036 .B qp=equation
4037 quantization parameter (QP) change filter
4038 .RSs
4039 .IPs equation
4040 some equation like "2+2*sin(PI*qp)"
4044 .B test\ \ \ 
4045 Generate various test patterns.
4048 .B rgbtest
4049 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
4050 You should see a red, green and blue stripe from top to bottom.
4053 .B lavc[=quality:fps]
4054 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3.
4055 Faster and of better quality than \-vf fame.
4056 .RSs
4057 .IPs quality
4058 .RSss
4059 1\-31: fixed qscale
4061 32\-:  fixed bitrate in kBits
4062 .REss
4063 .IPs fps\ \ 
4064 force output fps (float value) (default: 0, autodetect based on height)
4068 .B fame\ \ \ 
4069 Fast software YV12 to MPEG-1 conversion with libfame for use with DVB/\:DXR3.
4072 .B dvbscale[=aspect]
4073 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
4074 calculating the y axis scaling in software to keep aspect.
4075 Only useful together with expand and scale.
4076 .RSs
4077 .IPs aspect
4078 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
4079 576*4/\:3=768), set it to 576*(16/\:9)=1024 for a 16:9 TV.
4081 .sp 1
4083 .I EXAMPLE:
4085 .PD 0
4086 .RSs
4087 .IPs "\-vf dvbscale,scale=-1:0,expand=-1:576:-1:-1:1,lavc"
4088 FIXME: Explain what this does.
4090 .PD 1
4093 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
4094 Adds noise.
4095 .PD 0
4096 .RSs
4097 .IPs <0\-100>
4098 luma noise
4099 .IPs <0\-100>
4100 chroma noise
4101 .IPs u
4102 uniform noise (gaussian otherwise)
4103 .IPs t
4104 temporal noise (noise pattern changes between frames)
4105 .IPs a
4106 averaged temporal noise (smoother, but a lot slower)
4107 .IPs h
4108 high quality (slightly better looking, slightly slower)
4109 .IPs p
4110 mix random noise with a (semi)regular pattern
4112 .PD 1
4115 .B denoise3d[=luma:chroma:time]
4116 This filter aims to reduce image noise producing smooth images and making still
4117 images really still (This should enhance compressibility.).
4118 .PD 0
4119 .RSs
4120 .IPs luma\ 
4121 spatial luma strength (default: 4)
4122 .IPs chroma
4123 spatial chroma strength (default: 3)
4124 .IPs time\ 
4125 temporal strength (default: 6)
4127 .PD 1
4130 .B hqdn3d[=luma:chroma:time]
4131 High precision/\:quality version of the denoise3d filter.
4132 Parameters and usage are the same.
4135 .B eq[=brightness:contrast] (OBSOLETE)
4136 Software equalizer with interactive controls just like the hardware
4137 equalizer, for cards/\:drivers that do not support brightness and
4138 contrast controls in hardware.
4139 Initial values in the range -100 \- 100 may be given on the command line.
4140 Might also be useful with MEncoder, either for fixing poorly captured
4141 movies, or for slightly reducing contrast to mask artifacts and get by
4142 with lower bitrates.
4145 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
4146 Alternative software equalizer that uses lookup tables (very slow),
4147 allowing gamma correction in addition to simple brightness
4148 and contrast adjustment.
4149 Note that it uses the same MMX optimized code as \-vf eq if all
4150 gamma values are 1.0.
4151 The parameters are given as floating point values.
4152 .PD 0
4153 .RSs
4154 .IPs rg
4155 gamma value for the red component
4156 .IPs gg
4157 gamma value for the green component
4158 .IPs bg
4159 gamma value for the blue component
4160 .REss
4161 .PD 1
4163 Parameters rg, gg, bg are the independent gamma values for the red, green
4164 and blue components.
4165 The weight parameter can be used to reduce the effect of a high gamma value on
4166 bright image areas, e.g.\& keep them from getting overamplified and just plain
4167 white.
4168 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
4169 at its full strength.
4170 Defaults are gamma=1.0, contrast=1.0, brightness=0.0, saturation=1.0,
4171 weight=1.0.
4172 Value ranges are 0.1\-10 for gamma, -2\-2 for contrast (negative values result
4173 in a negative image), -1\-1 for brightness, 0\-3 for saturation and 0\-1 for
4174 weight.
4178 .B hue[=hue:saturation]
4179 Defaults are hue=0.0, saturation=1.0.
4180 Value ranges are -180\-180 for hue, -2\-2 for saturation (negative values result
4181 in a negative chroma).
4184 .B halfpack[=f]
4185 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
4186 keeping all chroma samples.
4187 Useful for output to low-resolution display devices when hardware downscaling
4188 is poor quality or is not available.
4189 Can also be used as a primitive luma-only deinterlacer with very low CPU
4190 usage.
4191 By default, halfpack averages pairs of lines when downsampling.
4192 The optional parameter f can be 0 to only use even lines, or 1 to only use
4193 odd lines.
4194 Any other value for f gives the default (averaging) behavior.
4197 .B ilpack[=mode]
4198 When interlaced video is stored in YUV 4:2:0 formats, chroma
4199 interlacing does not line up properly due to vertical downsampling of
4200 the chroma channels.
4201 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
4202 the chroma lines in their proper locations, so that in any given
4203 scanline, the luma and chroma data both come from the same field.
4204 The optional argument selects the sampling mode.
4205 By default, linear interpolation (mode 1) is used.
4206 Mode 0 uses nearest-neighbor sampling, which is fast but incorrect.
4209 .B harddup
4210 Only useful with MEncoder.
4211 If harddup is used when encoding, it will force duplicate frames to be
4212 encoded in the output.
4213 This uses slightly more space, but is necessary for output to MPEG
4214 files or if you plan to demux and remux the video stream after
4215 encoding.
4216 Should be placed at or near the end of the filter chain unless you
4217 have a good reason to do otherwise.
4220 .B softskip
4221 Only useful with MEncoder.
4222 Softskip moves the frame skipping (dropping) step of encoding from
4223 before the filter chain to some point during the filter chain.
4224 This allows filters which need to see all frames (inverse telecine,
4225 temporal denoising, etc.) to function properly.
4226 Should be placed after the filters which need to see all frames and
4227 before any subsequent filters that are CPU-intensive.
4230 .B decimate[=max:hi:lo:frac]
4231 Drops frames that do not differ greatly from the previous frame in
4232 order to reduce framerate.
4233 The argument max (if positive) sets the maximum number of consecutive
4234 frames which can be dropped, or (if negative) the minimum interval
4235 between dropped frames.
4236 A frame is a candidate for dropping if no 8x8 region differs by more
4237 than a threshold of hi, and if not more than frac portion (1 meaning
4238 the whole image) differs by more than a threshold of lo.
4239 Values of hi and lo are for 8x8 pixel blocks and represent actual
4240 pixel value differences, so a threshold of 64 corresponds to 1 unit of
4241 difference for each pixel, or the same spread out differently over the
4242 block.
4243 The main use of this filter is for very-low-bitrate encoding (e.g.\&
4244 streaming over dialup modem), but it could in theory be used for
4245 fixing movies that were inverse-telecined incorrectly.
4248 .B dint[=sense:level]
4249 Detects and drops the first from a set of interlaced video frames.
4250 Values can be from 0.0 to 1.0 \- first (default 0.1) is relative difference
4251 between neighbor pixels, second (default 0.15) is what part of image has to
4252 be detected as interlaced to drop the frame.
4255 .B lavcdeint
4256 libavcodec deinterlacing filter
4259 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
4260 Donald Graft's adaptive kernel deinterlacer.
4261 Deinterlaces parts of a video if a configurable threshold is exceeded.
4262 .PD 0
4263 .RSs
4264 .IPs "thresh (0 \- 255)"
4265 Threshold (default 10).
4266 .IPs "map (0 or 1)"
4267 Paint pixels which exceed the threshold white (default: 0).
4268 .IPs "order (0 or 1)"
4269 Swap fields if 1 (default: 0).
4270 .IPs "sharp (0 or 1)"
4271 Enable additional sharpening (default: 0).
4272 .IPs "twoway (0 or 1)"
4273 Enable twoway sharpening (default: 0).
4275 .PD 1
4278 .B unsharp=l|cWxH:amount[:l|cWxH:amount]
4279 unsharp mask / gaussian blur
4280 .RSs
4281 .IPs l\ \ \ \ 
4282 Apply effect on luma component.
4283 .IPs c\ \ \ \ 
4284 Apply effect on chroma components.
4285 .IPs <width>x<height>
4286 width and height of the matrix, odd sized in both directions
4287 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
4288 .IPs amount
4289 Relative amount of sharpness/\:blur to add to the image
4290 (a sane range should be -1.5\-1.5).
4291 .RSss
4292 <0: blur
4294 >0: sharpen
4295 .REss
4299 .B swapuv\ 
4300 Swap U & V plane.
4303 .B il=[d|i][s][:[d|i][s]]
4304 (De)interleaves lines.
4305 The goal of this filter is to add the ability to process interlaced images
4306 pre-field without deinterlacing them.
4307 You can filter your interlaced DVD and play it on a TV without breaking the
4308 interlacing.
4309 While deinterlacing (with the postprocessing filter) removes interlacing
4310 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
4311 2 fields (so called half pictures), so you can process (filter) them
4312 independently and then re-interleave them.
4313 .PD 0
4314 .RSs
4315 .IPs d
4316 deinterleave (placing one above the other)
4317 .IPs i
4318 interleave
4319 .IPs s
4320 swap fields (exchange even & odd lines)
4322 .PD 1
4325 .B fil=[i|d]
4326 (De)interleaves lines.
4327 This filter is very similar to the il filter but much faster, the main
4328 disadvantage is that it does not always work.
4329 Especially if combined with other filters it may produce randomly messed
4330 up images, so be happy if it works but don't complain if it doesn't for
4331 your combination of filters.
4332 .PD 0
4333 .RSs
4334 .IPs d
4335 Deinterleave fields, placing them side by side.
4336 .IPs i
4337 Interleave fields again (reversing the effect of fil=d).
4339 .PD 1
4342 .B field[=n]
4343 Extracts a single field from an interlaced image using stride arithmetic
4344 to avoid wasting CPU time.
4345 The optional argument n specifies whether to extract the even or the odd
4346 field (depending on whether n is even or odd).
4349 .B detc[=var1=value1:var2=value2:...]
4350 Attempts to reverse the 'telecine' process to recover a clean,
4351 non-interlaced stream at film framerate.
4352 This was the first and most primitive inverse telecine filter to be
4353 added to MPlayer/\:MEncoder.
4354 It works by latching onto the telecine 3:2 pattern and following it as
4355 long as possible.
4356 This makes it suitable for perfectly-telecined material, even in the
4357 presence of a fair degree of noise, but it will fail in the presence
4358 of complex post-telecine edits.
4359 Development on this filter is no longer taking place, as ivtc, pullup,
4360 and filmdint are better for most applications.
4361 The following arguments (see syntax above) may be used to control
4362 detc's behavior:
4363 .RSs
4364 .IPs dr\ \ \ 
4365 Set the frame dropping mode.
4366 0 (default) means don't drop frames to maintain fixed output framerate.
4367 1 means always drop a frame when there have been no drops or telecine
4368 merges in the past 5 frames.
4369 2 means always maintain exact 5:4 input to output frame ratio.
4371 .I NOTE:
4372 Use mode 1 or 2 with MEncoder.
4373 .IPs am\ \ \ 
4374 Analysis mode.
4375 Available values are 0 (fixed pattern with initial frame number
4376 specified by fr=#) and 1 (agressive search for telecine pattern).
4377 Default is 1.
4378 .IPs fr\ \ \ 
4379 Set initial frame number in sequence.
4380 0\-2 are the three clean progressive frames; 3 and 4 are the two
4381 interlaced frames.
4382 The default, -1, means 'not in telecine sequence'.
4383 The number specified here is the type for the imaginary previous
4384 frame before the movie starts.
4385 .IPs "tr0, tr1, tr2, tr3"
4386 Threshold values to be used in certain modes.
4390 .B ivtc[=1]
4391 Experimental 'stateless' inverse telecine filter.
4392 Rather than trying to lock on to a pattern like the detc filter does,
4393 ivtc makes its decisions independently for each frame.
4394 This will give much better results for material that has undergone
4395 heavy editing after telecine was applied, but as a result it is not as
4396 forgiving of noisy input, for example TV capture.
4397 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
4398 detc filter, and should be used with MEncoder but not with MPlayer.
4399 As with detc, you must specify the correct output framerate (\-ofps
4400 23.976) when using MEncoder.
4401 Further development on ivtc has stopped, as the pullup and filmdint
4402 filters appear to be much more accurate.
4405 .B pullup[=jl:jr:jt:jb:sb:mp]\ 
4406 Third-generation pulldown reversal (inverse telecine) filter,
4407 capable of handling mixed hard-telecine, 24 fps progressive, and 30
4408 fps progressive content.
4409 The pullup filter is designed to be much more robust than detc or
4410 ivtc, by taking advantage of future context in making its decisions.
4411 Like ivtc, pullup is stateless in the sense that it does not lock onto
4412 a pattern to follow, but it instead looks forward to the following
4413 fields in order to identify matches and rebuild progressive frames.
4414 It is still under development, but believed to be quite accurate.
4415 The jl, jr, jt, and jb options set the amount of "junk" to ignore at
4416 the left, right, top, and bottom of the image, respectively.
4417 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
4418 2 lines.
4419 The default is 8 pixels on each side.
4420 Setting the sb (strict breaks) option to 1 will reduce the chances of
4421 pullup generating an occasional mismatched frame, but it may also
4422 cause an excessive number of frames to be dropped during high motion
4423 sequences.
4424 Conversely, setting it to -1 will make pullup match fields more
4425 easily.
4426 This may help processing of video where there is slight blurring
4427 between the fields, but may also cause there to be interlaced frames
4428 in the output.
4429 The mp (metric plane) option may be set to 1 or 2 to use a chroma
4430 plane instead of the luma plane for doing pullup's computations.
4431 This may improve accuracy on very clean source material, but more
4432 likely will decrease accuracy, especially if there is chroma noise
4433 (rainbow effect) or any grayscale video.
4434 The main purpose of setting mp to a chroma plane is to reduce CPU load
4435 and make pullup usable in realtime on slow machines.
4437 .I NOTE:
4438 Always follow pullup with the softskip filter when encoding to ensure
4439 that pullup is able to see each frame.
4440 Failure to do so will lead to incorrect output and will usually crash,
4441 due to design limitations in the codec/\:filter layer.
4444 .B filmdint[=options]
4445 Inverse telecine filter, similar to the pullup filter above.
4446 It is designed to handle any pulldown pattern, including mixed soft and
4447 hard telecine and limited support for movies that are slowed down or sped
4448 up from their original framerate for TV.
4449 Only the luma plane is used to find the frame breaks.
4450 If a field has no match, it is deinterlaced with simple linear
4451 approximation.
4452 If the source is MPEG-2, this must be the first filter to allow
4453 access to the field-flags set by the MPEG-2 decoder.
4454 Depending on the source MPEG, you may be fine ignoring this advice, as
4455 long as you do not see lots of "Bottom-first field" warnings.
4456 With no options it does normal inverse telecine, and should be used
4457 together with mencoder \-fps 29.97 \-ofps 23.976.
4458 When this filter is used with mplayer, it will result in an uneven
4459 framerate during playback, but it is still generally better than using
4460 pp=lb or no deinterlacing at all.
4461 Multiple options can be specified separated by /.
4462 .RSs
4463 .IPs crop=w:h:x:y
4464 Just like the crop filter, but faster, and works on mixed hard and soft
4465 telecined content as well as when y is not a multiple of 4.
4466 If x or y would require cropping fractional pixels from the chroma
4467 planes, the crop area is extended.
4468 This usually means that x and y must be even.
4469 .IPs io=ifps:ofps
4470 For each ifps input frames the filter will output ofps frames.
4471 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
4472 This could be used to filter movies that are broadcast on TV at a frame
4473 rate different from their original framerate.
4474 .IPs luma_only=n
4475 If n is nonzero, the chroma plane is copied unchanged.
4476 This is useful for YV12 sampled TV, which discards one of the chroma
4477 fields.
4478 .IPs mmx2=n
4479 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
4480 optimized functions, othewise, use plain C.
4481 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
4482 this option to override auto-detection.
4483 .IPs fast=n
4484 The larger n will speed up the filter at the expense of accuracy.
4485 The default value is n=3.
4486 If n is odd, a frame immediately following a frame marked with the
4487 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
4488 will not spend any time on soft-telecined MPEG-2 content.
4489 This is the only effect of this flag if MMX2 or 3DNow! is available.
4490 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
4491 as with n=2 or 3.
4492 If n=2 or 3, the number of luma levels used to find the frame breaks is
4493 reduced from 256 to 128, which results in a faster filter without losing
4494 much accuracy.
4495 If n=4 or 5, a faster, but much less accurate metric will be used to
4496 find the frame breaks, which is more likely to misdetect high vertical
4497 detail as interlaced content.
4498 .IPs verbose=n
4499 If n is nonzero, print the detailed metrics for each frame.
4500 Useful for debugging.
4501 .IPs dint_thres=n
4502 Deinterlace threshold.
4503 Used during de-interlacing of unmatched frames.
4504 Larger value means less deinterlacing, use n=256 to completely turn off
4505 deinterlacing.
4506 Default is n=8.
4507 .IPs comb_thres=n
4508 Threshold for comparing a top and bottom fields.
4509 Defaults to 128.
4510 .IPs diff_thres=n
4511 Threshold to detect temporal change of a field.
4512 Default is 128.
4513 .IPs sad_thres=n
4514 Sum of Absolute Difference threshold, default is 64.
4518 .B softpulldown
4519 This filter works only correct with MEncoder and acts on the MPEG-2 flags
4520 used for soft 3:2 pulldown (soft telecine).
4521 If you want to use the ivtc or detc filter on movies that are partly soft
4522 telecined, inserting this filter before them should make them more reliable.
4525 .B divtc[=options]
4526 Inverse telecine for deinterlaced video.
4527 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
4528 using a method that keeps one field and interpolates the other, the result is
4529 a juddering video that has every fourth frame duplicated.
4530 This filter is intended to find and drop those duplicates and restore the
4531 original film framerate.
4532 When using this filter, you must specify \-ofps that is 4/\:5 of the fps of the
4533 input file (23.976 if the input is 29.97fps).
4534 The options are:
4535 .RSs
4536 .IPs pass=1|2
4537 Use two pass mode.
4538 This produces best results.
4539 Pass one analyzes the video and writes the results to a log file.
4540 Pass two then reads this log file and uses the information to do
4541 the actual work.
4542 Note that these passes do
4543 .B not
4544 correspond to pass one and two of the encoding process.
4545 In order to use divtc two pass with two pass video encoding, you must perform
4546 three passes: first divtc pass one and encoder pass one, then divtc pass two
4547 and encoder pass two, and finally divtc pass two and encoder pass two.
4548 .IPs file=filename
4549 Set the two pass log filename (default: "framediff.log").
4550 .IPs threshold=value
4551 Set the minimum strength the telecine pattern must have for the filter to
4552 believe in it (default: 0.5).
4553 This is used to avoid recognizing false pattern from the parts of the video
4554 that are very dark or very still.
4555 .IPs window=numframes
4556 Set the number of past frames to look at when searching for pattern
4557 (default: 30).
4558 Longer window improves the reliability of the pattern search, but shorter
4559 window improves the reaction time to the changes in the telecine phase.
4560 This only affects the one pass mode.
4561 The two pass mode currently uses fixed window that extends to both future
4562 and past.
4563 .IPs phase=0|1|2|3|4
4564 Sets the initial telecine phase for one pass mode (default: 0).
4565 The two pass mode can see the future, so it is able to use the correct
4566 phase from the beginning, but one pass mode can only guess.
4567 It catches the correct phase when it finds it, but this option can be used
4568 to fix the possible juddering at the beginning.
4569 The first pass of the two pass mode also uses this, so if you save the output
4570 from the first pass, you get constant phase result.
4571 .IPs deghost=value
4572 Set the deghosting threshold (0\-255 for one pass mode, -255\-255 for two pass
4573 mode, default 0).
4574 If nonzero, deghosting mode is used.
4575 This is for video that has been deinterlaced by blending the fields
4576 together instead of dropping one of the fields.
4577 Deghosting amplifies any compression artifacts in the blended frames, so the
4578 parameter value is used as a threshold to exclude those pixels from
4579 deghosting that differ from the previous frame less than specified value.
4580 If two pass mode is used, then negative value can be used to make the
4581 filter analyze the whole video in the beginning of pass-2 to determine
4582 whether it needs deghosting or not and then select either zero or the
4583 absolute value of the parameter.
4584 Specify this option for pass-2, it makes no difference on pass-1.
4588 .B phase=[t|b|p|a|u|T|B|A|U][:v]
4589 Delay interlaced video by one field time so that the field order
4590 changes.
4591 The intended use is to fix PAL movies that have been captured with the
4592 opposite field order to the film-to-video transfer.
4593 The options are:
4594 .RSs
4595 .IPs t
4596 Capture field order top-first, transfer bottom-first.
4597 Filter will delay the bottom field.
4598 .IPs b
4599 Capture bottom-first, transfer top-first.
4600 Filter will delay the top field.
4601 .IPs p
4602 Capture and transfer with the same field order.
4603 This mode only exists for the documentation of the other options to refer to,
4604 but if you actually select it, the filter will faithfully do nothing ;-)
4605 .IPs a
4606 Capture field order determined automatically by field flags, transfer opposite.
4607 Filter selects among t and b modes on a frame by frame basis using field flags.
4608 If no field information is available, then this works just like u.
4609 .IPs u
4610 Capture unknown or varying, transfer opposite.
4611 Filter selects among t and b on a frame by frame basis by analyzing the
4612 images and selecting the alternative that produces best match between the
4613 fields.
4614 .IPs T
4615 Capture top-first, transfer unknown or varying.
4616 Filter selects among t and p using image analysis.
4617 .IPs B
4618 Capture bottom-first, transfer unknown or varying.
4619 Filter selects among b and p using image analysis.
4620 .IPs A
4621 Capture determined by field flags, transfer unknown or varying.
4622 Filter selects among t, b and p using field flags and image analysis.
4623 If no field information is available, then this works just like U.
4624 This is the default mode.
4625 .IPs U
4626 Both capture and transfer unknown or varying.
4627 Filter selects among t, b and p using image analysis only.
4628 .IPs v
4629 Verbose operation.
4630 Prints the selected mode for each frame and the average squared difference
4631 between fields for t, b, and p alternatives.
4635 .B telecine[=start]
4636 Apply 3:2 'telecine' process to increase framerate by 20%.
4637 This most likely will not work correctly with MPlayer, but it can
4638 be used with 'mencoder \-fps 29.97 \-ofps 29.97 \-vf telecine'.
4639 Both fps options are essential!
4640 (A/\:V sync will break if they are wrong.)
4641 The optional start parameter tells the filter where in the telecine
4642 pattern to start (0\-3).
4645 .B tinterlace[=mode]
4646 Temporal field interlacing \- merge pairs of frames into an interlaced
4647 frame, halving the framerate.
4648 Even frames are moved into the upper field, odd frames to the lower field.
4649 This can be used to fully reverse the effect of the tfields filter (in mode 0).
4650 Available modes are:
4651 .PD 0
4652 .RSs
4653 .IPs 0
4654 Move odd frames into the upper field, even into the lower field, generating
4655 a full-height frame at half framerate.
4656 .IPs 1
4657 Only output odd frames, even frames are dropped; height unchanged.
4658 .IPs 2
4659 Only output even frames, odd frames are dropped; height unchanged.
4660 .IPs 3
4661 Expand each frame to full height, but pad alternate lines with black;
4662 framerate unchanged.
4664 .PD 1
4667 .B tfields[=mode]
4668 Temporal field separation \- split fields into frames, doubling the
4669 output framerate.
4670 Like the telecine filter, tfields will only work properly with
4671 MEncoder, and only if both \-fps and \-ofps are set to the
4672 desired (double) framerate!
4673 Available modes are:
4674 .PD 0
4675 .RSs
4676 .IPs 0
4677 Leave fields unchanged. (This will jump/\:flicker.)
4678 .IPs 1
4679 Interpolate missing lines. (The algorithm used might not be so good.)
4680 .IPs 2
4681 Translate fields by 1/4 pixel with linear interpolation (no jump).
4682 .IPs 4
4683 Translate fields by 1/4 pixel with 4tap filter (higher quality).
4685 .PD 1
4688 .B boxblur=radius:power[:radius:power]
4689 box blur
4690 .PD 0
4691 .RSs
4692 .IPs <radius>
4693 blur filter strength
4694 .IPs <power>
4695 number of filter applications
4697 .PD 1
4700 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
4701 shape adaptive blur
4702 .PD 0
4703 .RSs
4704 .IPs <radius>
4705 blur filter strength (~0.1\-4.0) (slower if larger)
4706 .IPs <pf>\ 
4707 prefilter strength (~0.1\-2.0)
4708 .IPs <colorDiff>
4709 maximum difference between pixels to still be considered (~0.1\-100.0)
4711 .PD 1
4714 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
4715 smart blur
4716 .PD 0
4717 .RSs
4718 .IPs <radius>
4719 blur filter strength (~0.1\-5.0) (slower if larger)
4720 .IPs <strength>
4721 blur (0.0\-1.0) or sharpen (-1.0\-0.0)
4722 .IPs <threshold>
4723 filter all (0), filter flat areas (0\-30) or filter edges (-30\-0)
4725 .PD 1
4728 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
4729 Correct the perspective of movies not filmed perpendicular to the screen.
4730 .PD 0
4731 .RSs
4732 .IPs x0,y0,...
4733 coordinates of the top left, top right, bottom left, bottom right corners
4734 .IPs t\ \ \ \ 
4735 linear (0) or cubic resampling (1)
4737 .PD 1
4740 .B 2xsai\ \ 
4741 Scale and smooth the image with the 2x scale and interpolate algorithm.
4744 .B 1bpp\ \ \ 
4745 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
4748 .B down3dright[=lines]
4749 Reposition and resize stereoscopic images.
4750 Extracts both stereo fields and places them side by side, resizing
4751 them to maintain the original movie aspect.
4752 .PD 0
4753 .RSs
4754 .IPs lines
4755 number of lines to select from the middle of the image (default: 12)
4757 .PD 1
4760 .B bmovl=hidden:opaque:fifo
4761 The bitmap overlay filter reads bitmaps from a FIFO and displays them
4762 on top of the movie, allowing some transformations on the image.
4763 Also see TOOLS/bmovl-test.c for a small bmovl test program.
4764 .PD 0
4765 .RSs
4766 .IPs <hidden>
4767 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
4768 .IPs <opaque>
4769 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
4770 .IPs <fifo>
4771 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
4772 controlling application)
4774 .PD 1
4775 .sp 1
4777 FIFO commands are:
4779 .PD 0
4780 .RSs
4781 .IPs "RGBA32 width height xpos ypos alpha clear"
4782 followed by width*height*4 Bytes of raw RGBA32 data.
4783 .IPs "ABGR32 width height xpos ypos alpha clear"
4784 followed by width*height*4 Bytes of raw ABGR32 data.
4785 .IPs "RGB24 width height xpos ypos alpha clear"
4786 followed by width*height*3 Bytes of raw RGB24 data.
4787 .IPs "BGR24 width height xpos ypos alpha clear"
4788 followed by width*height*3 Bytes of raw BGR24 data.
4789 .IPs "ALPHA width height xpos ypos alpha"
4790 Change alpha transparency of the specified area.
4791 .IPs "CLEAR width height xpos ypos"
4792 Clear area.
4793 .IPs OPAQUE
4794 Disable all alpha transparency.
4795 Send "ALPHA 0 0 0 0 0" to enable it again.
4796 .IPs HIDE\ 
4797 Hide bitmap.
4798 .IPs SHOW\ 
4799 Show bitmap.
4801 .PD 1
4802 .sp 1
4804 Arguments are:
4806 .PD 0
4807 .RSs
4808 .IPs "width, height"
4809 image/area size
4810 .IPs "xpos, ypos"
4811 Start blitting at position x/y.
4812 .IPs alpha
4813 Set alpha difference.
4814 If you set this to -255 you can then send a sequence of ALPHA-commands to set
4815 the area to -225, -200, -175 etc for a nice fade-in-effect! ;)
4816 .RSss
4817 0:    same as original
4819 255:  Make everything opaque.
4821 -255: Make everything transparent.
4822 .REss
4823 .IPs clear
4824 Clear the framebuffer before blitting.
4825 .RSss
4826 0: The image will just be blitted on top of the old one, so you do not need to
4827 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
4829 1: clear
4830 .REss
4832 .PD 1
4835 .B framestep=I|[i]step
4836 Renders only every nth frame or every intra frame (keyframe).
4837 .sp 1
4838 If you call the filter with I (uppercase) as the parameter, then
4839 .B only
4840 keyframes are rendered.
4841 For DVDs it generally means one in every 15/\:12  frames (IBBPBBPBBPBBPBB),
4842 for AVI it means every scene change or every keyint value (see \-lavcopts
4843 keyint= value if you use MEncoder to encode the video).
4844 .sp 1
4845 When a keyframe is found, an 'I!' string followed by a newline character is
4846 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
4847 because it contains the time (in seconds) and frame number of the keyframe
4848 (You can use this information to split the AVI.).
4849 .sp 1
4850 If you call the filter with a numeric parameter 'step' then only one in
4851 every 'step' frames is rendered.
4852 .sp 1
4853 If you put an 'i' (lowercase) before the number then an 'I!' is printed
4854 (like the I parameter).
4855 .sp 1
4856 If you give only the i then nothing is done to the frames, only I! is
4857 printed.
4860 .B tile=xtiles:ytiles:output:start:delta
4861 Tile a series of images into a single, bigger image.
4862 If you omit a parameter or use a value less than 0, then the default
4863 value is used.
4864 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
4865 It is probably a good idea to put the scale filter before the tile :-)
4866 .sp 1
4867 The parameters are:
4868 .sp 1
4869 .PD 0
4870 .RSs
4871 .IPs <xtiles>
4872 number of tiles on the x axis (default: 5)
4873 .IPs <ytiles>
4874 number of tiles on the y axis (default: 5)
4875 .IPs <output>
4876 Render the tile when 'output' number of frames are reached, where 'output'
4877 should be a number less than xtile * ytile.
4878 Missing tiles are left blank.
4879 You could, for example, write an 8 * 7 tile every 50 frames to have one
4880 image every 2 seconds @ 25 fps.
4881 .IPs <start>
4882 outer border thickness in pixels (default: 2)
4883 .IPs <delta>
4884 inner border thickness in pixels (default: 4)
4886 .PD 1
4889 .B delogo[=x:y:w:h:t]
4890 Suppresses a TV station logo by a simple interpolation of the
4891 surrounding pixels.
4892 Just set a rectangle covering the logo and watch it disappear (and
4893 sometimes something even uglier appear \- your mileage may vary).
4894 .PD 0
4895 .RSs
4896 .IPs x,y
4897 top left corner of the logo
4898 .IPs w,h
4899 width and height of the cleared rectangle
4900 .IPs t
4901 Thickness of the fuzzy edge of the rectangle (added to w and h).
4902 When set to -1, a green rectangle is drawn on the screen to
4903 simplify finding the right x,y,w,h parameters.
4905 .PD 1
4908 .B zrmjpeg[=options]
4909 Software YV12 to MJPEG encoder for use with the zr2 video
4910 output device.
4911 .RSs
4912 .IPs maxheight=h|maxwidth=w
4913 These options set the maximum width and height the zr card
4914 can handle (the MPlayer filter layer currently cannot query those).
4915 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
4916 Use these options to set maxwidth and maxheight automatically to the
4917 values known for card/\:mode combo.
4918 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
4919 .IPs color|bw
4920 Select color or black and white encoding.
4921 Black and white encoding is faster.
4922 Color is the default.
4923 .IPs hdec={1,2,4}
4924 Horizontal decimation 1, 2 or 4.
4925 .IPs vdec={1,2,4}
4926 Vertical decimation 1, 2 or 4.
4927 .IPs quality=1\-20
4928 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
4929 .IPs fd|nofd
4930 By default, decimation is only performed if the Zoran hardware
4931 can upscale the resulting MJPEG images to the original size.
4932 The option fd instructs the filter to always perform the requested
4933 decimation (ugly).
4938 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
4941 .B \-audio-delay <0.0\-...>
4942 Sets the audio delay field in the header.
4943 Default is 0.0, negative values do not work.
4944 This does not delay the audio while encoding, but the player will see the
4945 default audio delay, sparing you the use of the \-delay option.
4948 .B \-audio-density <1\-50>
4949 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
4951 .I NOTE:
4952 CBR only, VBR ignores this as it puts each packet in a new chunk.
4955 .B \-audio-preload <0.0\-2.0>
4956 Sets up the audio buffering time interval (default: 0.5s).
4959 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
4960 Stop encoding at the given time or byte position.
4962 .I NOTE:
4963 Byte position will not be accurate, as it can only stop at
4964 a frame boundary.
4965 .sp 1
4966 .I EXAMPLE:
4967 .PD 0
4968 .RSs
4969 .IPs "\-endpos 56"
4970 Encode only 56 seconds.
4971 .IPs "\-endpos 01:10:00"
4972 Encode only 1 hour 10 minutes.
4973 .IPs "\-endpos 100mb"
4974 Encode only 100 MBytes.
4976 .PD 1
4979 .B \-ffourcc <fourcc>
4980 Can be used to override the video fourcc of the output file.
4981 .sp 1
4982 .I EXAMPLE:
4983 .PD 0
4984 .RSs
4985 .IPs "\-ffourcc div3"
4986 Will have the output file contain 'div3' as video fourcc.
4988 .PD 1
4991 .B \-force-avi-aspect <0.2\-3.0>
4992 Override the aspect stored in the AVI OpenDML vprp header.
4993 This can be used to change the aspect ratio with '\-ovc copy'.
4996 .B \-info <option1:option2:...> (AVI only)
4997 Specify the info header of the resulting AVI file.
4998 .sp 1
4999 Available options are:
5000 .RSs
5001 .IPs help\ 
5002 Show this description.
5003 .IPs name=<value>
5004 title of the work
5005 .IPs artist=<value>
5006 artist or author of the work
5007 .IPs genre=<value>
5008 original work category
5009 .IPs subject=<value>
5010 contents of the work
5011 .IPs copyright=<value>
5012 copyright information
5013 .IPs srcform=<value>
5014 original format of the digitized material
5015 .IPs comment=<value>
5016 general comments about the work
5020 .B \-noautoexpand
5021 Do not automatically insert the expand filter into the MEncoder filter chain.
5022 Useful to control at which point of the filter chain subtitles are rendered
5023 when hardcoding subtitles onto a movie.
5026 .B \-noencodedups
5027 Do not attempt to encode duplicate frames in duplicate; always output
5028 zero-byte frames to indicate duplicates.
5029 Zero-byte frames will be written anyway unless a filter or encoder
5030 capable of doing duplicate encoding is loaded.
5031 Currently the only such filter is harddup.
5034 .B \-noodml (\-of avi only)
5035 Do not write OpenDML index for AVI files >1GB.
5038 .B \-noskip
5039 Do not skip frames.
5042 .B \-o <filename>
5043 Outputs to the given filename, instead of the default 'test.avi'.
5046 .B \-oac <codec name>
5047 Encode with the given audio codec (no default set).
5049 .I NOTE:
5050 Use \-oac help to get a list of available audio codecs.
5051 .sp 1
5052 .I EXAMPLE:
5053 .PD 0
5054 .RSs
5055 .IPs "\-oac copy"
5056 no encoding, just streamcopy
5057 .IPs "\-oac pcm"
5058 Encode to uncompressed PCM.
5059 .IPs "\-oac mp3lame"
5060 Encode to MP3 (using LAME).
5061 .IPs "\-oac lavc"
5062 Encode with a libavcodec codec.
5064 .PD 1
5067 .B \-of <format> (BETA CODE!)
5068 Encode to the specified container format (default: AVI).
5070 .I NOTE:
5071 Use \-of help to get a list of available container formats.
5072 .sp 1
5073 .I EXAMPLE:
5074 .PD 0
5075 .RSs
5076 .IPs "\-of avi"
5077 Encode to AVI.
5078 .IPs "\-of mpeg"
5079 Encode to MPEG.
5080 .IPs "\-of rawvideo"
5081 raw video stream (no muxing \- one video stream only)
5083 .PD 1
5086 .B \-ofps <fps>
5087 Specify a frames per second (fps) value for the output file,
5088 which can be different from that of the source material.
5089 Must be set for variable fps (ASF, some MOV) and progressive
5090 (29.97fps telecined MPEG) files.
5093 .B \-ovc <codec name>
5094 Encode with the given video codec (no default set).
5096 .I NOTE:
5097 Use \-ovc help to get a list of available video codecs.
5098 .sp 1
5099 .I EXAMPLE:
5100 .PD 0
5101 .RSs
5102 .IPs "\-ovc copy"
5103 no encoding, just streamcopy
5104 .IPs "\-ovc divx4"
5105 Encode to DivX4/\:DivX5.
5106 .IPs "\-ovc raw"
5107 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
5108 .IPs "\-ovc lavc"
5109 Encode with a libavcodec codec.
5111 .PD 1
5114 .B \-passlogfile <filename>
5115 Dump first pass information to <filename> instead of the default divx2pass.log
5116 in two pass encoding mode.
5119 .B \-skiplimit <value>
5120 Specify the maximum number of frames that may be skipped after
5121 encoding one frame (\-noskiplimit for unlimited).
5124 .B \-vobsubout <basename>
5125 Specify the basename for the output .idx and .sub files.
5126 This turns off subtitle rendering in the encoded movie and diverts it to
5127 VOBsub subtitle files.
5130 .B \-vobsuboutid <langid>
5131 Specify the language two letter code for the subtitles.
5132 This overrides what is read from the DVD or the .ifo file.
5135 .B \-vobsuboutindex <index>
5136 Specify the index of the subtitles in the output files (default: 0).
5140 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
5141 You can specify codec specific encoding parameters using the following
5142 syntax:
5145 .B \-<codec>opts <option1[=value],option2,...>
5148 Where <codec> may be: lavc, xvidenc, divx4, lame, toolame, x264enc
5151 .SS divx4 (\-divx4opts)
5152 DivX4 is obsolete and only supported for completeness.
5153 For details about DivX4 options, read the source, most options are not
5154 described here.
5157 .B help\ \ \ 
5158 get help
5161 .B br=<value>
5162 Specify bitrate.
5163 .RSs
5164 .IPs 4\-16000
5165 (in kbit)
5166 .IPs 16001\-24000000
5167 (in bit)
5171 .B key=<value>
5172 maximum keyframe interval (in frames)
5175 .B deinterlace
5176 Enable deinterlacing (avoid it, DivX4 is buggy).
5179 .B q=<1\-5>
5180 quality (1\-fastest, 5\-best)
5183 .B min_quant=<1\-31>
5184 minimum quantizer
5187 .B max_quant=<1\-31>
5188 maximum quantizer
5191 .B rc_period=<value>
5192 rate control period
5195 .B rc_reaction_period=<value>
5196 rate control reaction period
5199 .B rc_reaction_ratio=<value>
5200 rate control reaction ratio
5203 .B crispness=<0\-100>
5204 Specify crispness/\:smoothness.
5207 .B pass=<1\-2>
5208 With this you can encode two pass DivX4 files.
5209 First encode with pass=1, then do another encode with the
5210 same parameters and pass=2.
5213 .B vbrpass=<0\-2>
5214 Override the pass argument and use the XviD VBR library instead of DivX4 VBR.
5215 Available options are:
5216 .RSs
5217 .IPs 0
5218 one pass encoding (as in not putting pass on the command line)
5219 .IPs 1
5220 Analysis (first) pass of two pass encoding.
5221 The resulting AVI file can be directed to /dev/\:null.
5222 .IPs 2
5223 Final (second) pass of two pass encoding.
5227 .SS lame (\-lameopts)
5230 .B help\ \ \ 
5231 get help
5234 .B vbr=<0\-4>
5235 variable bitrate method
5236 .PD 0
5237 .RSs
5238 .IPs 0
5240 .IPs 1
5242 .IPs 2
5243 rh (default)
5244 .IPs 3
5246 .IPs 4
5247 mtrh
5249 .PD 1
5252 .B abr\ \ \ \ 
5253 average bitrate
5256 .B cbr\ \ \ \ 
5257 constant bitrate
5258 Also forces CBR mode encoding on subsequent ABR presets modes.
5261 .B br=<0\-1024>
5262 bitrate in kbps (CBR and ABR only)
5265 .B q=<0\-9>
5266 quality (0 \- highest, 9 \- lowest) (VBR only)
5269 .B aq=<0\-9>
5270 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
5273 .B ratio=<1\-100>
5274 compression ratio
5277 .B vol=<0\-10>
5278 audio input gain
5281 .B mode=<0\-3>
5282 (default: auto)
5283 .PD 0
5284 .RSs
5285 .IPs 0
5286 stereo
5287 .IPs 1
5288 joint-stereo
5289 .IPs 2
5290 dualchannel
5291 .IPs 3
5292 mono
5294 .PD 1
5297 .B padding=<0\-2>
5298 .PD 0
5299 .RSs
5300 .IPs 0
5301 none
5302 .IPs 1
5304 .IPs 2
5305 adjust
5307 .PD 1
5310 .B fast\ \ \ 
5311 Switch on faster encoding on subsequent VBR presets modes.
5312 This results in slightly lower quality and higher bitrates.
5315 .B highpassfreq=<freq>
5316 Set a highpass filtering frequency in Hz.
5317 Frequencies below the specified one will be cut off.
5318 A value of -1 will disable filtering, a value of 0
5319 will let LAME choose values automatically.
5322 .B lowpassfreq=<freq>
5323 Set a lowpass filtering frequency in Hz.
5324 Frequencies above the specified one will be cut off.
5325 A value of -1 will disable filtering, a value of 0
5326 will let LAME choose values automatically.
5329 .B preset=<value>
5330 preset values
5331 .RSs
5332 .IPs help\ 
5333 Print additional options and information about presets settings.
5334 .IPs medium
5335 VBR encoding, good quality, 150\-180 kbps bitrate range
5336 .IPs standard
5337 VBR encoding, high quality, 170\-210 kbps bitrate range
5338 .IPs extreme
5339 VBR encoding, very high quality, 200\-240 kbps bitrate range
5340 .IPs insane
5341 CBR encoding, highest preset quality, 320 kbps bitrate
5342 .IPs <8\-320>
5343 ABR encoding at average given kbps bitrate
5345 .sp 1
5347 .I EXAMPLES:
5349 .PD 0
5350 .RSs
5351 .IPs fast:preset=standard
5352 suitable for most people and most music types and already quite high quality
5353 .IPs cbr:preset=192
5354 Encode with ABR presets at a 192 kbps forced constant bitrate.
5355 .IPs preset=172
5356 Encode with ABR presets at a 172 kbps average bitrate.
5357 .IPs preset=extreme
5358 for people with extremely good hearing and similar equipment
5360 .PD 1
5363 .SS toolame (\-toolameopts)
5366 .B br=<0\-384> (CBR only)
5367 bitrate in kbps
5369 .B mode=<stereo  |  jstereo  |  mono  |  dual>
5370 (default: mono for 1-channel audio, stereo otherwise)
5372 .B psy=<0\-3>
5373 psychoacoustic model (default: 2)
5375 .B errprot=<0 | 1>
5376 Include error protection.
5378 .B debug=<0\-10>
5379 debug level
5381 .PD 1
5384 .SS lavc (\-lavcopts)
5385 Many libavcodec (lavc for short) options are tersely documented.
5386 Read the source for full details.
5388 .I EXAMPLE:
5389 .PD 0
5390 .RSs
5391 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
5393 .PD 1
5396 .B acodec=<value>
5397 audio codec (default: mp2)
5398 .PD 0
5399 .RSs
5400 .IPs mp2\ \ 
5401 MPEG Layer 2
5402 .IPs mp3\ \ 
5403 MPEG Layer 3
5404 .IPs ac3\ \ 
5406 .IPs adpcm_ima_wav
5407 IMA Adaptive PCM (4bits per sample, 4:1 compression)
5409 .PD 1
5412 .B abitrate=<value>
5413 audio bitrate in kbps (default: 224)
5416 .B atag=<value>
5417 Use the specified Windows audio format tag (e.g.\& atag=0x55).
5420 .B bit_exact
5421 Use only bit exact algorithms (except (I)DCT).
5422 Additionally bit_exact disables several optimizations and thus
5423 should only be used for regression tests, which need binary
5424 identical files even if the encoder version changes.
5425 This also suppresses the user_data header in MPEG-4 streams.
5426 Do not use this option unless you know exactly what you are doing.
5429 .B threads=<1\-8>
5430 Maximum number of threads to use (default: 1).
5431 May have a slight negative effect on motion estimation.
5435 .B vcodec=<value>
5436 Employ the specified codec (default: mpeg4).
5437 .PD 0
5438 .RSs
5439 .IPs mjpeg
5440 Motion JPEG
5441 .IPs ljpeg
5442 Lossless JPEG
5443 .IPs h263\ 
5444 H.263
5445 .IPs h263p
5446 H.263+
5447 .IPs mpeg4
5448 MPEG-4 (DivX 4/5)
5449 .IPs msmpeg4
5450 DivX 3
5451 .IPs msmpeg4v2
5452 MS MPEG4v2
5453 .IPs wmv1\ 
5454 Windows Media Video, version 1 (AKA WMV7)
5455 .IPs wmv2\ 
5456 Windows Media Video, version 2 (AKA WMV8)
5457 .IPs rv10\ 
5458 an old RealVideo codec
5459 .IPs mpeg1video
5460 MPEG-1 video
5461 .IPs mpeg2video
5462 MPEG-2 video
5463 .IPs huffyuv
5464 HuffYUV
5465 .IPs asv1\ 
5466 ASUS Video v1
5467 .IPs asv2\ 
5468 ASUS Video v2
5469 .IPs ffv1\ 
5470 FFmpeg's lossless video codec
5472 .PD 1
5475 .B vqmin=<1\-31>
5476 minimum quantizer (pass\ 1/\:2)
5477 .RSs
5478 .IPs 1
5479 Not recommended (much larger file, little quality difference and weird side
5480 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
5481 resulting in lower quality and some decoders will not be able to decode it).
5482 .IPs 2
5483 Recommended for normal mpeg4/\:mpeg1video encoding (default).
5484 .IPs 3
5485 Recommended for h263(p)/\:msmpeg4.
5486 The reason for preferring 3 over 2 is that 2 could lead to overflows.
5487 (This will be fixed for h263(p) by changing the quantizer per MB in
5488 the future, msmpeg4 cannot be fixed as it does not support that.)
5492 .B lmin=<0.01\-255.0>
5493 Minimum Lagrange multiplier for ratecontrol, you probably want it to be
5494 equal to or lower than vqmin (default: 2.0).
5498 .B lmax=<0.01\-255.0>
5499 maximum Lagrange multiplier for ratecontrol (default: 31.0)
5503 .B vqscale=<1\-31>
5504 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
5505 A lower value means better quality but larger files (default: 0 (disabled)).
5506 1 is not recommended (see vqmin for details).
5509 .B vqmax=<1\-31>
5510 Maximum quantizer (pass\ 1/\:2), 10\-31 should be a sane range (default: 31).
5513 .B mbqmin=<1\-31>
5514 obsolete, use vqmin
5517 .B mbqmax=<1\-31>
5518 obsolete, use vqmax
5521 .B vqdiff=<1\-31>
5522 maximum quantizer difference between consecutive I- or P-frames
5523 (pass\ 1/\:2) (default: 3)
5526 .B vmax_b_frames=<0\-4>
5527 maximum number of B-frames between non-B-frames:
5528 .PD 0
5529 .RSs
5530 .IPs 0
5531 no B-frames (default)
5532 .IPs 0\-2
5533 sane range for MPEG-4
5535 .PD 1
5538 .B vme=<0\-5>
5539 motion estimation method.
5540 Available methods are:
5541 .PD 0
5542 .RSs
5543 .IPs 0
5544 none (very low quality)
5545 .IPs 1
5546 full (slow, currently unmaintained and disabled)
5547 .IPs 2
5548 log (low quality, currently unmaintained and disabled)
5549 .IPs 3
5550 phods (low quality, currently unmaintained and disabled)
5551 .IPs 4
5552 EPZS: size=1 diamond, size can be adjusted with the *dia options
5553 (default)
5554 .IPs 5
5555 X1 (experimental, currently aliased to EPZS)
5557 .PD 1
5558 .sp 1
5561 .I NOTE:
5562 0\-3 currently ignores the amount of bits spent,
5563 so quality may be low.
5567 .B me_range=<0\-9999>
5568 motion estimation search range (default: 0 (unlimited))
5571 .B mbd=<0\-2>
5572 Macroblock decision algorithm (high quality mode), encode each macro
5573 block in all modes and choose the best.
5574 This is slow but results in better quality and file size.
5575 .PD 0
5576 .RSs
5577 .IPs 0
5578 Use mbcmp (default).
5579 .IPs 1
5580 Select the MB mode which needs the fewest bits (=vhq).
5581 .IPs 2
5582 Select the MB mode which has the best rate distortion.
5584 .PD 1
5587 .B vhq\ \ \ \ 
5588 Same as mbd=1, kept for compatibility reasons.
5591 .B v4mv\ \ \ 
5592 Allow 4 motion vectors per macroblock (slightly better quality).
5593 Works better if used with mbd>0.
5596 .B obmc\ \ \ 
5597 overlapped block motion compensation (H.263+)
5600 .B loop\ \ \ 
5601 loop filter (H.263+)
5602 note, this is broken
5605 .B inter_threshold <-1000\-1000>
5606 Does absolutely nothing at the moment.
5609 .B keyint=<0\-300>
5610 maximum interval between keyframes in frames (default: 250 or one
5611 keyframe every ten seconds in a 25fps movie).
5612 Keyframes are needed for seeking as seeking is only possible to a keyframe, but
5613 keyframes need more space than other frames, so larger numbers here mean
5614 slightly smaller files but less precise seeking.
5615 0 is equivalent to 1, which makes every frame a keyframe.
5616 Values >300 are not recommended as the quality might be bad depending upon
5617 decoder, encoder and luck.
5618 For a strict MPEG-1/2/4 compliance this would have to be <=132.
5621 .B sc_threshold=<-1000000\-1000000>
5622 Threshold for scene change detection.
5623 Libavcodec inserts a keyframe when it detects a scene change.
5624 You can specify the sensitivity of the detection with this option.
5625 -1000000 means there is a scene change detected at every frame, 1000000 means
5626 no scene changes are detected (default 0).
5629 .B vb_strategy=<0\-1>
5630 strategy to choose between I/\:P/\:B-frames (pass\ 1):
5631 .PD 0
5632 .RSs
5633 .IPs 0
5634 Always use the maximum number of B-frames (default).
5635 .IPs 1
5636 Avoid B-frames in high motion scenes.
5638 .PD 1
5641 .B vpass=<1\-3>
5642 Activates internal two (or three) pass mode, only specify if you wish to
5643 use two (or three) pass encoding.
5644 .PD 0
5645 .RSs
5646 .IPs 1
5647 first pass (also see turbo)
5648 .IPs 2
5649 second pass
5650 .IPs 3
5651 Nth pass (second and third passes of three pass encoding)
5654 Here is how it works, and how to use it:
5656 The first pass (vpass=1) writes the stats file.
5657 You might want to deactivate some CPU-hungry options, like "turbo"
5658 mode does.
5660 In two pass mode, the second pass (vpass=2) reads the stats file and
5661 bases ratecontrol decisions on it.
5663 In three pass mode, the second pass (vpass=3, that is not a typo)
5664 does both: It first reads the stats, then overwrites them.
5665 You might want to backup divx2pass.log before doing this if there is
5666 any possibility that you will have to cancel MEncoder.
5667 You can use all encoding options, except very CPU-hungry options like "qns".
5669 The third pass (vpass=3) is the same as the second pass, except that it has
5670 the second pass's stats to work from.
5671 You can use all encoding options, including CPU-hungry ones.
5673 .PD 1
5674 .sp 1
5676 huffyuv:
5678 .PD 0
5679 .RSs
5680 .IPs "pass 1"
5681 Saves statistics.
5682 .IPs "pass 2"
5683 Encodes with an optimal Huffman table based upon statistics
5684 from the first pass.
5686 .PD 1
5689 .B turbo (two pass only)
5690 Dramatically speeds up pass one using faster algorithms and disabling
5691 CPU-intensive options.
5692 This will probably reduce global PSNR a little bit (around 0.01dB) and
5693 change individual frame type and PSNR little bit more (up to 0.03dB).
5696 .B aspect=<x/\:y>
5697 Store movie aspect internally, just like with MPEG files.
5698 Much nicer than rescaling, because quality is not decreased.
5699 Only MPlayer will play these files correctly, other players will display
5700 them with wrong aspect.
5701 The aspect parameter can be given as a ratio or a floating point number.
5702 .sp 1
5704 .I EXAMPLE:
5706 .RSs
5707 .PD 0
5708 .IPs "aspect=16/\:9 or aspect=1.78"
5709 .PD 1
5713 .B autoaspect
5714 Same as the aspect option, but automatically computes aspect, taking
5715 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
5716 filter chain.
5717 Does not incur a performance penalty, so you can safely leave it
5718 always on.
5721 .B vbitrate=<value>
5722 Specify bitrate (pass\ 1/\:2) (default: 800).
5724 .I WARNING:
5725 1kBit = 1000 Bits
5726 .PD 0
5727 .RSs
5728 .IPs 4\-16000
5729 (in kbit)
5730 .IPs 16001\-24000000
5731 (in bit)
5733 .PD 1
5736 .B vratetol=<value>
5737 approximated filesize tolerance in kBit.
5738 1000\-100000 is a sane range.
5739 (warning: 1kBit = 1000 Bits)
5740 (default: 8000)
5742 .I NOTE:
5743 vratetol should not be too large during the second pass or there might
5744 be problems if vrc_(min|max)rate is used.
5747 .B vrc_maxrate=<value>
5748 maximum bitrate in kbit/\:sec (pass\ 1/\:2)
5749 (default: 0, unlimited)
5752 .B vrc_minrate=<value>
5753 minimum bitrate in kbit/\:sec (pass\ 1/\:2)
5754 (default: 0, unlimited)
5757 .B vrc_buf_size=<value>
5758 buffer size in kbit (pass\ 1/\:2).
5759 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
5760 917 for SVCD and 1835 for DVD.
5763 .B vrc_buf_aggressivity
5764 currently useless
5767 .B vrc_strategy
5768 Dummy, reserved for future use.
5771 .B vb_qfactor=<-31.0\-31.0>
5772 quantizer factor between B- and non-B-frames (pass\ 1/\:2) (default: 1.25)
5775 .B vi_qfactor=<-31.0\-31.0>
5776 quantizer factor between I- and non-I-frames (pass\ 1/\:2) (default: 0.8)
5779 .B vb_qoffset=<-31.0\-31.0>
5780 quantizer offset between B- and non-B-frames (pass\ 1/\:2) (default: 1.25)
5783 .B vi_qoffset=<-31.0\-31.0>
5784 (pass\ 1/\:2) (default: 0.0)
5786 if v{b|i}_qfactor > 0
5788 I/\:B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
5790 else
5792 do normal ratecontrol (do not lock to next P-frame quantizer) and
5793 set q= -q * v{b|i}_qfactor + v{b|i}_qoffset
5795 .I HINT:
5796 To do constant quantizer encoding with different quantizers for
5797 I/\:P- and B-frames you can use:
5798 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
5801 .B vqblur=<0.0\-1.0> (pass one)
5802 Quantizer blur (default: 0.5), larger values will average the
5803 quantizer more over time (slower change).
5804 .PD 0
5805 .RSs
5806 .IPs 0.0
5807 Quantizer blur disabled.
5808 .IPs 1.0
5809 Average the quantizer over all previous frames.
5811 .PD 1
5814 .B vqblur=<0.0\-99.0> (pass two)
5815 Quantizer gaussian blur (default: 0.5), larger values will average
5816 the quantizer more over time (slower change).
5819 .B vqcomp=<value>
5820 Quantizer compression, depends upon vrc_eq (pass\ 1/\:2) (default: 0.5).
5823 .B vrc_eq=<equation>
5824 main ratecontrol equation (pass\ 1/\:2)
5826 .RSs
5827 .IPs 1\ \ \ \ 
5828 constant bitrate
5829 .IPs tex\ \ 
5830 constant quality
5831 .IPs 1+(tex/\:avgTex-1)*qComp
5832 approximately the equation of the old ratecontrol code
5833 .IPs tex^qComp
5834 with qcomp 0.5 or something like that (default)
5838 infix operators:
5840 .RSs
5841 .IPs +,-,*,/,^
5845 variables:
5847 .RSs
5848 .IPs tex\ \ 
5849 texture complexity
5850 .IPs iTex,pTex
5851 intra, non-intra texture complexity
5852 .IPs avgTex
5853 average texture complexity
5854 .IPs avgIITex
5855 average intra texture complexity in I-frames
5856 .IPs avgPITex
5857 average intra texture complexity in P-frames
5858 .IPs avgPPTex
5859 average non-intra texture complexity in P-frames
5860 .IPs avgBPTex
5861 average non-intra texture complexity in B-frames
5862 .IPs mv\ \ \ 
5863 Bits used for motion vectors
5864 .IPs fCode
5865 maximum length of motion vector in log2 scale
5866 .IPs iCount
5867 number of intra macroblocks / number of macroblocks
5868 .IPs var\ \ 
5869 spatial complexity
5870 .IPs mcVar
5871 temporal complexity
5872 .IPs qComp
5873 qcomp from the command line
5874 .IPs "isI, isP, isB"
5875 Is 1 if picture type is I/\:P/\:B else 0.
5876 .IPs Pi,E\ 
5877 See your favorite math book.
5881 functions:
5883 .RSs
5884 .IPs max(a,b),min(a,b)
5885 maximum / minimum
5886 .IPs gt(a,b)
5887 is 1 if a>b, 0 otherwise
5888 .IPs lt(a,b)
5889 is 1 if a<b, 0 otherwise
5890 .IPs eq(a,b)
5891 is 1 if a==b, 0 otherwise
5892 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
5896 .B vrc_override=<options>
5897 User specified quality for specific parts (ending, credits, ...) (pass\ 1/\:2).
5898 The options are <start-frame>, <end-frame>, <quality>[/\:<start-frame>,
5899 <end-frame>, <quality>[/\:...]]:
5900 .PD 0
5901 .RSs
5902 .IPs "quality (2\-31)"
5903 quantizer
5904 .IPs "quality (-500\-0)"
5905 quality correction in %
5907 .PD 1
5910 .B vrc_init_cplx=<0\-1000>
5911 initial complexity (pass\ 1)
5914 .B vqsquish=<0,1>
5915 Specify how to keep the quantizer between qmin and qmax (pass\ 1/\:2).
5916 .PD 0
5917 .RSs
5918 .IPs 0
5919 Use clipping.
5920 .IPs 1
5921 Use a nice differentiable function (default).
5923 .PD 1
5926 .B vlelim=<-1000\-1000>
5927 Sets single coefficient elimination threshold for luminance.
5928 Negative values will also consider the DC coefficient (should be at least -4
5929 or lower for encoding at quant=1):
5930 .PD 0
5931 .RSs
5932 .IPs 0
5933 disabled (default)
5934 .IPs -4
5935 JVT recommendation
5937 .PD 1
5940 .B vcelim=<-1000\-1000>
5941 Sets single coefficient elimination threshold for chrominance.
5942 Negative values will also consider the DC coefficient (should be at least -4
5943 or lower for encoding at quant=1):
5944 .PD 0
5945 .RSs
5946 .IPs 0
5947 disabled (default)
5948 .IPs 7
5949 JVT recommendation
5951 .PD 1
5954 .B vstrict=<-1,0,1>
5955 strict standard compliance
5956 .PD 0
5957 .RSs
5958 .IPs 0
5959 disabled (default)
5960 .IPs 1
5961 Only recommended if you want to feed the output into the
5962 MPEG-4 reference decoder.
5963 .IPs -1
5964 Allows non-standard YV12 HuffYUV encoding (20% smaller files, but cannot be
5965 played by the official HuffYUV codec).
5967 .PD 1
5970 .B vdpart\ 
5971 Data partitioning.
5972 Adds 2 Bytes per video packet, improves error-resistance when transferring over
5973 unreliable channels (e.g.\& streaming over the internet).
5974 Each video packet will be encoded in 3 separate partitions:
5975 .PD 0
5976 .RSs
5977 .IPs "1. MVs"
5978 movement
5979 .IPs "2. DC coefficients"
5980 low res picture
5981 .IPs "3. AC coefficients"
5982 details
5984 .PD 1
5986 MV & DC are most important, loosing them looks far worse than loosing
5987 the AC and the 1. & 2. partition.
5988 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
5989 will hit the AC partition much more often than the MV & DC partitions.
5990 Thus, the picture will look better with partitioning than without,
5991 as without partitioning an error will trash AC/\:DC/\:MV equally.
5995 .B vpsize=<0\-10000> (also see vdpart)
5996 Video packet size, improves error-resistance.
5997 .PD 0
5998 .RSs
5999 .IPs 0\ \ \ \ 
6000 disabled (default)
6001 .IPs 100-1000
6002 good choice
6004 .PD 1
6007 .B ss\ \ \ \ \ 
6008 slice structured mode for H.263+
6011 .B gray\ \ \ 
6012 grayscale only encoding (faster)
6015 .B vfdct=<0\-10>
6016 DCT algorithm
6017 .PD 0
6018 .RSs
6019 .IPs 0
6020 Automatically select a good one (default).
6021 .IPs 1
6022 fast integer
6023 .IPs 2
6024 accurate integer
6025 .IPs 3
6027 .IPs 4
6028 mlib
6029 .IPs 5
6030 AltiVec
6031 .IPs 6
6032 floating point AAN
6034 .PD 1
6037 .B idct=<0\-99>
6038 IDCT algorithm
6040 .I NOTE:
6041 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
6042 .PD 0
6043 .RSs
6044 .IPs 0
6045 Automatically select a good one (default).
6046 .IPs 1
6047 JPEG reference integer
6048 .IPs 2
6049 simple
6050 .IPs 3
6051 simplemmx
6052 .IPs 4
6053 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
6054 .IPs 5
6056 .IPs 6
6057 mlib
6058 .IPs 7
6060 .IPs 8
6061 AltiVec
6062 .IPs 9
6065 .PD 1
6068 .B lumi_mask=<0.0\-1.0>
6069 Luminance masking is a 'psychosensory' setting that is supposed to
6070 make use of the fact that the human eye tends to notice fewer details
6071 in very bright parts of the picture.
6072 Luminance masking compresses bright areas stronger than medium ones,
6073 so it will save bits that can be spent again on other frames, raising
6074 overall subjective quality, while possibly reducing PSNR.
6076 .I WARNING:
6077 Be careful, overly large values can cause disastrous things.
6079 .I WARNING:
6080 Large values might look good on some monitors but may look horrible
6081 on other monitors.
6082 .PD 0
6083 .RSs
6084 .IPs 0.0\ \ 
6085 disabled (default)
6086 .IPs 0.0\-0.3
6087 sane range
6089 .PD 1
6092 .B dark_mask=<0.0\-1.0>
6093 Darkness masking is a 'psychosensory' setting that is supposed to
6094 make use of the fact that the human eye tends to notice fewer details
6095 in very dark parts of the picture.
6096 Darkness masking compresses dark areas stronger than medium ones,
6097 so it will save bits that can be spent again on other frames, raising
6098 overall subjective quality, while possibly reducing PSNR.
6100 .I WARNING:
6101 Be careful, overly large values can cause disastrous things.
6103 .I WARNING:
6104 Large values might look good on some monitors but may look horrible
6105 on other monitors / TV / TFT.
6106 .PD 0
6107 .RSs
6108 .IPs 0.0\ \ 
6109 disabled (default)
6110 .IPs 0.0\-0.3
6111 sane range
6113 .PD 1
6116 .B tcplx_mask=<0.0\-1.0>
6117 Temporal complexity masking (default: 0.0 (disabled)).
6118 Imagine a scene with a bird flying across the whole scene; tcplx_mask
6119 will raise the quantizers of the bird's macroblocks (thus decreasing their
6120 quality), as the human eye usually does not have time to see all the bird's
6121 details.
6122 Be warned that if the masked object stops (e.g.\& the bird lands) it is
6123 likely to look horrible for a short period of time, until the encoder
6124 figures out that the object is not moving and needs refined blocks.
6125 The saved bits will be spent on other parts of the video, which may increase
6126 subjective quality, provided that tcplx_mask is carefully chosen.
6129 .B scplx_mask=<0.0\-1.0>
6130 Spatial complexity masking.
6131 Larger values help against blockiness, if no deblocking filter is used for
6132 decoding, which is maybe not a good idea.
6134 Imagine a scene with grass (which usually has great spatial complexity),
6135 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
6136 macroblocks, thus decreasing its quality, in order to spend more bits on
6137 the sky and the house.
6139 .I HINT:
6140 Crop any black borders completely as they will reduce the quality
6141 of the macroblocks (also applies without scplx_mask).
6142 .PD 0
6143 .RSs
6144 .IPs 0.0\ \ 
6145 disabled (default)
6146 .IPs 0.0\-0.5
6147 sane range
6149 .PD 1
6150 .sp 1
6152 .I NOTE:
6153 This setting does not have the same effect as using a custom matrix that
6154 would compress high frequencies harder, as scplx_mask will reduce the
6155 quality of P blocks even if only DC is changing.
6156 The result of scplx_mask will probably not look as good.
6160 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
6161 Reduces the quality of inter blocks.
6162 This is equivalent to increasing the quality of intra blocks, because the
6163 same average bitrate will be distributed by the rate controller to the
6164 whole video sequence (default: 0.0 (disabled)).
6165 p_mask=1.0 doubles the bits allocated to each intra block.
6168 .B naq\ \ \ \ 
6169 Normalize adaptive quantization (experimental).
6170 When using adaptive quantization (*_mask), the average per-MB quantizer may no
6171 longer match the requested frame-level quantizer.
6172 Naq will attempt to adjust the per-MB quantizers to maintain the proper
6173 average.
6176 .B ildct\ \ 
6177 Use interlaced DCT.
6180 .B ilme\ \ \ 
6181 Use interlaced motion estimation (mutually exclusive with qpel).
6184 .B alt\ \ \ \ 
6185 Use alternative scantable.
6188 .B top=<-1\-1>\ \ \ 
6189 .PD 0
6190 .RSs
6191 .IPs -1
6192 automatic
6193 .IPs 0
6194 bottom field first
6195 .IPs 1
6196 top field first
6198 .PD 1
6201 .B format=<value>
6202 .PD 0
6203 .RSs
6204 .IPs YV12\ 
6205 default
6206 .IPs 444P\ 
6207 for ffv1
6208 .IPs 422P\ 
6209 for HuffYUV, lossless JPEG and ffv1
6210 .IPs 411P,YVU9
6211 for lossless JPEG and ffv1
6212 .IPs BGR32
6213 for lossless JPEG and ffv1
6215 .PD 1
6218 .B pred\ \ \ 
6219 (for HuffYUV)
6220 .PD 0
6221 .RSs
6222 .IPs 0
6223 left prediction
6224 .IPs 1
6225 plane/\:gradient prediction
6226 .IPs 2
6227 median prediction
6229 .PD 1
6232 .B pred\ \ \ 
6233 (for lossless JPEG)
6234 .PD 0
6235 .RSs
6236 .IPs 0
6237 left prediction
6238 .IPs 1
6239 top prediction
6240 .IPs 2
6241 topleft prediction
6242 .IPs 3
6243 plane/\:gradient prediction
6244 .IPs 6
6245 mean prediction
6247 .PD 1
6250 .B coder\ \ 
6251 (for ffv1)
6252 .PD 0
6253 .RSs
6254 .IPs 0
6255 vlc coding (Golomb-Rice)
6256 .IPs 1
6257 arithmetic coding (CABAC)
6259 .PD 1
6262 .B context
6263 (for ffv1)
6264 .PD 0
6265 .RSs
6266 .IPs 0
6267 small context model
6268 .IPs 1
6269 large context model
6271 .PD 1
6274 .B qpel\ \ \ 
6275 Use quarter pel motion compensation (mutually exclusive with ilme).
6277 .I HINT:
6278 This seems only useful for high bitrate encodings.
6281 .B mbcmp=<0\-2000>
6282 Sets the comparison function for the macroblock decision, only used if mbd=0.
6283 .PD 0
6284 .RSs
6285 .IPs "0 (SAD)"
6286 sum of absolute differences, fast (default)
6287 .IPs "1 (SSE)"
6288 sum of squared errors
6289 .IPs "2 (SATD)"
6290 sum of absolute Hadamard transformed differences
6291 .IPs "3 (DCT)"
6292 sum of absolute DCT transformed differences
6293 .IPs "4 (PSNR)"
6294 sum of squared quantization errors (avoid, low quality)
6295 .IPs "5 (BIT)"
6296 number of bits needed for the block
6297 .IPs "6 (RD)"
6298 rate distortion optimal, slow
6299 .IPs "7 (ZERO)"
6301 .IPs "8 (VSAD)"
6302 sum of absolute vertical differences
6303 .IPs "9 (VSSE)"
6304 sum of squared vertical differences
6305 .IPs "10 (NSSE)"
6306 noise preserving sum of squared differences
6307 .IPs +256\ 
6308 Also use chroma, currently does not work (correctly) with B-frames.
6310 .PD 1
6313 .B ildctcmp=<0\-2000>
6314 Sets the comparison function for interlaced DCT decision
6315 (see mbcmp for available comparison functions).
6318 .B precmp=<0\-2000>
6319 Sets the comparison function for motion estimation pre pass
6320 (see mbcmp for available comparison functions) (default: 0).
6323 .B cmp=<0\-2000>
6324 Sets the comparison function for full pel motion estimation
6325 (see mbcmp for available comparison functions) (default: 0).
6328 .B subcmp=<0\-2000>
6329 Sets the comparison function for sub pel motion estimation
6330 (see mbcmp for available comparison functions) (default: 0).
6333 .B nssew=<0\-100>
6334 This setting controls NSSE weight, where larger weights will result in
6335 more noise.
6336 0 NSSE is identical to SSE
6337 You may find this useful if you prefer to keep some noise in your encoded
6338 video rather than filtering it away before encoding.
6341 .B predia=<-99\-6>
6342 diamond type and size for motion estimation pre-pass
6345 .B dia=<-99\-6>
6346 Diamond type & size for motion estimation.
6347 Motion search is an iterative process.
6348 Using a small diamond does not limit the search to finding only small
6349 motion vectors.
6350 It is just somewhat more likely to stop before finding the very best motion
6351 vector, especially when noise is involved.
6352 Bigger diamonds allow a wider search for the best motion vector, thus are
6353 slower but result in better quality.
6355 Big normal diamonds are better quality than shape-adaptive diamonds.
6357 Shape-adaptive diamonds are a good tradeoff between speed and quality.
6359 .I NOTE:
6360 The sizes of the normal diamonds and shape adaptive ones do not have
6361 the same meaning.
6362 .RSs
6363 .IPs -3
6364 shape adaptive (fast) diamond with size 3
6365 .IPs -2
6366 shape adaptive (fast) diamond with size 2
6367 .IPs -1
6368 slightly special: Can be slower and/or better than dia=-2.
6369 .IPs  1
6370 normal size=1 diamond (default) =EPZS type diamond
6373       0
6374      000
6375       0
6377 .IPs 2
6378 normal size=2 diamond
6381       0
6382      000
6383     00000
6384      000
6385       0
6390 .B trell\ \ 
6391 Trellis searched quantization.
6392 This will find the optimal encoding for each 8x8 block.
6393 Trellis searched quantization is quite simply an optimal quantization in
6394 the PSNR versus bitrate sense (Assuming that there would be no rounding
6395 errors introduced by the IDCT, which is obviously not the case.).
6396 It simply finds a block for the minimum of error and lambda*bits.
6397 .PD 0
6398 .RSs
6399 .IPs lambda
6400 quantization parameter (QP) dependent constant
6401 .IPs bits\ 
6402 amount of bits needed to encode the block
6403 .IPs error
6404 sum of squared errors of the quantization
6406 .PD 1
6409 .B cbp\ \ \ \ 
6410 Rate distorted optimal coded block pattern.
6411 Will select the coded block pattern which minimizes distortion + lambda*rate.
6412 This can only be used together with trellis quantization.
6415 .B mv0\ \ \ \ 
6416 Try to encode each MB with MV=<0,0> and choose the better one.
6417 This has no effect if mbd=0.
6420 .B qprd (mbd=2 only)
6421 rate distorted optimal quantization parameter (QP) for the given
6422 lambda of each macroblock
6425 .B last_pred=<0\-99>
6426 amount of motion predictors from the previous frame
6427 .PD 0
6428 .RSs
6429 .IPs 0
6430 (default)
6431 .IPs a
6432 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
6433 previous frame.
6435 .PD 1
6438 .B preme=<0\-2>
6439 motion estimation pre-pass
6440 .PD 0
6441 .RSs
6442 .IPs 0
6443 disabled
6444 .IPs 1
6445 only after I-frames (default)
6446 .IPs 2
6447 always
6449 .PD 1
6452 .B subq=<1\-8>
6453 subpel refinement quality (for qpel) (default: 8 (high quality))
6455 .I NOTE:
6456 This has a significant effect on speed.
6459 .B psnr\ \ \ 
6460 print the PSNR (peak signal to noise ratio) for the whole video after encoding
6461 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
6462 Returned values are in dB (decibel), the higher the better.
6465 .B mpeg_quant
6466 Use MPEG quantizers instead of H.263.
6469 .B aic\ \ \ \ 
6470 ac prediction (advanced intra prediction for H.263+)
6472 .I NOTE:
6473 vqmin should be 8 or larger for H.263+ AIC.
6476 .B aiv\ \ \ \ 
6477 alternatice inter vlc for H.263+
6480 .B umv\ \ \ \ 
6481 unlimited MVs (H.263+ only)
6482 Allows encoding of abritarily long MVs.
6485 .B ibias=<-256\-256>
6486 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
6487 H.263 style quantizer default: 0)
6489 .I NOTE:
6490 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
6491 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
6494 .B pbias=<-256\-256>
6495 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
6496 H.263 style quantizer default: -64)
6498 .I NOTE:
6499 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
6500 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
6502 .I HINT:
6503 A more positive bias (-32 \- -16 instead of -64) seems to improve the PSNR.
6506 .B nr=<0\-100000>
6507 Noise reduction, 0 means disabled.
6510 .B qns=<0\-3>
6511 Quantizer noise shaping.
6512 Rather than choosing quantization to most closely match the source video
6513 in the PSNR sense, it chooses quantization such that noise (usually ringing)
6514 will be masked by similar-frequency content in the image.
6515 Larger values are slower but may not result in better quality.
6516 This can and should be used together with trellis quantization, in which case
6517 the trellis quantization (optimal for constant weight) will be used as
6518 startpoint for the iterative search.
6519 .PD 0
6520 .RSs
6521 .IPs 0
6522 disabled (default)
6523 .IPs 1
6524 Only lower the absolute value of coefficients.
6525 .IPs 2
6526 Only change coefficients before the last non-zero coefficient + 1.
6527 .IPs 3
6528 Try all.
6530 .PD 1
6533 .B inter_matrix=<comma separated matrix>
6534 Use custom inter matrix.
6535 It needs a comma separated string of 64 integers.
6538 .B intra_matrix=<comma separated matrix>
6539 Use custom intra matrix.
6540 It needs a comma separated string of 64 integers.
6543 .B vqmod_amp
6544 experimental quantizer modulation
6547 .B vqmod_freq
6548 experimental quantizer modulation
6551 .B dc\ \ \ \ \ 
6552 intra DC precision in bits (default: 8).
6553 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
6556 .B cgop\ \ \ 
6557 Close all GOPs.
6558 Currently it does not work.
6561 .SS nuv (\-nuvopts)
6563 Nuppel video is based on RTJPEG and LZO.
6564 By default frames are first encoded with RTJPEG and then compressed with LZO,
6565 but it is possible to disable either or both of the two passes.
6566 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
6567 or the default LZO compressed RTJPEG.
6569 .I NOTE:
6570 The nuvrec documentation contains some advice and examples about the
6571 settings to use for the most common TV encodings.
6574 .B c=<0\-20>
6575 chrominance threshold (default: 1)
6578 .B l=<0\-20>
6579 luminance threshold (default: 1)
6582 .B lzo\ \ \ \ 
6583 Enable LZO compression (default).
6586 .B nolzo\ \ 
6587 Disable LZO compression.
6590 .B q=<3\-255>
6591 quality level (default: 255)
6594 .B raw \ \ \ 
6595 Disable RTJPEG encoding.
6598 .B rtjpeg\ 
6599 Enable RTJPEG encoding (default).
6602 .SS xvidenc (\-xvidencopts)
6604 There are three modes available: constant bitrate (CBR), fixed quantizer and
6605 two pass.
6608 .B pass=<1|2>
6609 Specify the pass in two pass mode.
6612 .B bitrate=<value>
6613 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
6614 if >16000.
6615 If <value> is negative, XviD will use its absolute value as the target size
6616 (in kbytes) of the video and compute the associated bitrate automagically.
6617 (CBR or two pass mode, default: 687 kbits/\:s)
6620 .B fixed_quant=<1\-31>
6621 Switch to fixed quantizer mode and specify the quantizer to be used.
6624 .B me_quality=<0\-6>
6625 This option controls the motion estimation subsystem.
6626 The higher the value, the more precise the estimation should be (default: 6).
6627 The more precise the motion estimation is, the more bits can be saved.
6628 Precision is gained at the expense of CPU time so decrease this setting if
6629 you need realtime encoding.
6632 .B (no)interlacing
6633 Encode the fields of interlaced video material.
6634 Turn this option on for interlaced content.
6636 .I NOTE:
6637 Should you rescale the video, you would need an interlace-aware resizer,
6638 which you can activate with -vf scale=<width>:<height>:1.
6641 .B 4mv\ \ \ \ 
6642 Use 4 motion vectors per macroblock.
6643 This might give better compression, but slows down encoding.
6645 .I WARNING:
6646 As of XviD-1.0.x, this option is no longer available separately, and its
6647 functionality is included in the me_quality option.
6648 When me_quality > 4, 4mv is activated.
6651 .B rc_reaction_delay_factor=<value>
6652 This parameter controls the number of frames the CBR rate controller
6653 will wait before reacting to bitrate changes and compensating for them
6654 to obtain a constant bitrate over an averaging range of frames.
6657 .B rc_averaging_period=<value>
6658 Real CBR is hard to achieve.
6659 Depending on the video material, bitrate can be variable, and hard to predict.
6660 That's why XviD uses an averaging period for which it guarantees a given
6661 amount of bits (minus a small variation).
6662 This settings expresses the "number of frames" for which XviD averages
6663 bitrate and tries to achieve CBR.
6666 .B rc_buffer=<value>
6667 size of the rate control buffer
6670 .B quant_range=<1\-31>\-<1\-31>[/\:<1\-31>\-<1\-31>]
6671 CBR mode: min & max quantizer for all frames (default: 2\-31)
6673 two pass mode: min & max quantizer for I/\:P-frames (default: 2\-31/\:2\-31)
6675 .I WARNING:
6676 As of XviD-1.0.x, this option is replaced by the
6677 [min|max]_[i|p|b]quant options.
6680 .B min_key_interval=<value>
6681 minimum interval between keyframes (default: 0, two pass only)
6684 .B max_key_interval=<value>
6685 maximum interval between keyframes (default: 10*fps)
6688 .B mpeg_quant
6689 Use MPEG quantizers instead of H.263.
6690 For high bitrates, you will find that MPEG quantization preserves more detail.
6691 For low bitrates, the smoothing of H.263 will give you less block noise.
6692 When using custom matrices, MPEG must be used.
6694 .I WARNING:
6695 As of XviD-1.0.x, this option is replaced by the quant_type option.
6698 .B mod_quant
6699 Decide whether to use MPEG or H.263 quantizers on a frame-by-frame basis
6700 (two pass mode only).
6702 .I WARNING:
6703 This will generate an illegal bitstream, and most likely not be decodable
6704 by any MPEG-4 decoder besides libavcodec or XviD.
6706 .I WARNING:
6707 As of XviD-1.0.x, this option is no longer available.
6710 .B keyframe_boost=<0\-1000>
6711 Shift some bits from the pool for other frame types to intra frames,
6712 thus improving keyframe quality.
6713 (default: 0, two pass mode only)
6716 .B kfthreshold=<value>
6717 (default: 10, two pass mode only)
6720 .B kfreduction=<0\-100>
6721 The above two settings can be used to adjust the size of keyframes that
6722 you consider too close to the first (in a row).
6723 kfthreshold sets the range in which keyframes are reduced, and
6724 kfreduction determines the bitrate reduction they get.
6725 The last I-frame will get treated normally.
6726 (default: 30, two pass mode only)
6729 .B divx5bvop
6730 Generate DivX5 compatible B-frames (default: on).
6731 This seems to be mandatory only for old versions of DivX's decoder.
6733 .I WARNING:
6734 As of XviD-1.0.x, this option is replaced by the closed_gop option.
6737 .B (no)greyscale
6738 Make XviD discard chroma planes so the encoded video is greyscale only.
6739 Note that this does not speed up encoding, it just prevents chroma data
6740 from being written in the last stage of encoding.
6743 .B debug\ \ 
6744 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
6745 file.)
6749 .sp 1
6750 The following options are only available with the latest stable
6751 releases of XviD 1.0.x (api4).
6754 .B (no)packed
6755 This option is meant to solve frame-order issues when encoding to
6756 container formats like AVI that cannot cope with out-of-order frames.
6757 In practice, most decoders (both software and hardware) are able to deal
6758 with frame-order themselves, and may get confused when this option is
6759 turned on, so you can safely leave if off, unless you really know what
6760 you are doing.
6762 .I WARNING:
6763 This will generate an illegal bitstream, and will not be
6764 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:XviD.
6766 .I WARNING:
6767 This will also store a fake DivX version in the file so the bug
6768 autodetection of some decoders might be confused.
6771 .B max_bframes=<0\-4>
6772 Maximum number of B-frames to put between I/\:P-frames (default: 0).
6775 .B bquant_ratio=<0\-1000>
6776 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
6779 .B bquant_offset=<-1000\-1000>
6780 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
6783 .B bf_threshold=<-255\-255>
6784 Sometimes B-frames do not look good, and introduce artifacts when most of
6785 the frame is static and some small zones have high motion (in a static
6786 scene with a man talking, his mouth will probably look bad if what is
6787 surrounding the man and his mouth is completely static).
6788 This setting allows you to specify what priority to place on the use of
6789 B-frames.
6790 The higher the value, the higher the probability of B-frames being used.
6791 (default: 0)
6794 .B (no)closed_gop
6795 This option tells XviD to close every GOP (Group Of Pictures bounded
6796 by two I-frames), which makes GOPs independent from each other.
6797 This just implies that the last frame of the GOP is eiter a P-frame or a
6798 N-frame but not a B-frame.
6799 It is usually a good idea to turn this option on (default: on).
6802 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
6803 This setting allows the creation of variable framerate video streams.
6804 The value of the setting specifies a threshold under which, if the
6805 difference of the following frame to the previous frame is below or equal
6806 to this threshold, a frame gets not coded (a so called n-vop is placed
6807 in the stream).
6808 On playback, when reaching an n-vop the previous frame will be displayed.
6810 .I WARNING:
6811 Playing with this setting may result in a jerky video, so use it at your
6812 own risks!
6815 .B (no)qpel
6816 MPEG-4 uses a half pixel precision for its motion search by default.
6817 The standard proposes a mode where encoders are allowed to use quarter
6818 pixel precision.
6819 This option usually results in a sharper image.
6820 Unfortunately it has a great impact on bitrate and sometimes the
6821 higher bitrate use will prevent it from giving a better image
6822 quality at a fixed bitrate.
6823 It's better to test with and without this option and see whether it
6824 is worth activating.
6827 .B (no)gmc
6828 Enable Global Motion Compensation, which makes XviD generate special
6829 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
6830 Whether or not the use of this option will save bits is highly
6831 dependent on the source material.
6834 .B (no)trellis
6835 Trellis Quantization is a kind of adaptive quantization method that
6836 saves bits by modifying quantized coefficients to make them more
6837 compressible by the entropy encoder.
6838 Its impact on quality is good, and if VHQ uses too much CPU for you,
6839 this setting can be a good alternative to save a few bits (and gain
6840 quality at fixed bitrate) at a lesser cost than with VHQ.
6843 .B (no)cartoon
6844 Activate this if your encoded sequence is an anime/\:cartoon.
6845 It modifies some XviD internal thresholds so XviD takes better decisions on
6846 frame types and motion vectors for flat looking cartoons.
6849 .B quant_type=<h263|mpeg>
6850 Sets the type of quantizer to use.
6851 For high bitrates, you will find that MPEG quantization preserves more detail.
6852 For low bitrates, the smoothing of H.263 will give you less block noise.
6853 When using custom matrices, MPEG quantization must be used.
6856 .B (no)chroma_me
6857 The usual motion estimation algorithm uses only the luminance information to
6858 find the best motion vector.
6859 However for some video material, using the chroma planes can help find
6860 better vectors.
6861 This setting toggles the use of chroma planes for motion estimation.
6864 .B (no)chroma_opt
6865 Enable a chroma optimizer prefilter.
6866 It will do some extra magic on color information to minimize the
6867 stepped-stairs effect on edges.
6868 It will improve quality at the cost of encoding speed.
6869 It reduces PSNR by nature, as the mathematical deviation to the original
6870 picture will get bigger, but the subjective image quality will raise.
6871 Since it works with color information, you might want to turn it off when
6872 encoding in greyscale.
6875 .B (no)hq_ac
6876 Activates High Quality AC coefficient prediction from neighbor blocks.
6879 .B vhq=<0\-4>
6880 The motion search algorithm is based on a search in the usual color domain
6881 and tries to find a motion vector that minimizes the difference between the
6882 reference frame and the encoded frame.
6883 With this setting activated, XviD will also use the frequency domain (DCT)
6884 to search for a motion vector that minimizes not only the spatial
6885 difference but also the encoding length of the block.
6886 Fastest to slowest:
6887 .PD 0
6888 .RSs
6889 .IPs 0
6890 off (default)
6891 .IPs 1
6892 mode decision (inter/\:intra MB)
6893 .IPs 2
6894 limited search
6895 .IPs 3
6896 medium search
6897 .IPs 4
6898 wide search
6900 .PD 1
6903 .B min_iquant=<0\-31>
6904 minimum I-frame quantizer (default: 2)
6907 .B max_iquant=<0\-31>
6908 maximum I-frame quantizer (default: 31)
6911 .B min_pquant=<0\-31>
6912 minimum P-frame quantizer (default: 2)
6915 .B max_pquant=<0\-31>
6916 maximum P-frame quantizer (default: 31)
6919 .B min_bquant=<0\-31>
6920 minimum B-frame quantizer (default: 2)
6923 .B max_bquant=<0\-31>
6924 maximum B-frame quantizer (default: 31)
6927 .B quant_intra_matrix=<filename>
6928 Load a custom intra matrix file.
6929 You can build such a file with xvid4conf's matrix editor.
6932 .B quant_inter_matrix=<filename>
6933 Load a custom inter matrix file.
6934 You can build such a file with xvid4conf's matrix editor.
6937 .B curve_compression_high=<0\-100>
6938 This setting allows XviD to take a certain percentage of bits away from
6939 high bitrate scenes and give them back to the bit reservoir.
6940 You could also use this if you have a clip with so many bits allocated
6941 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
6942 (default: 0).
6945 .B curve_compression_low=<0\-100>
6946 This setting allows XviD to give a certain percentage of extra bits to the
6947 low bitrate scenes, taking a few bits from the entire clip.
6948 This might come in handy if you have a few low-bitrate scenes that are
6949 still blocky (default: 0).
6952 .B overflow_control_strength=<0\-100>
6953 During pass one of two pass encoding, a scaled bitrate curve is computed.
6954 The difference between that expected curve and the result obtained during
6955 encoding is called overflow.
6956 Obviously, the two pass rate controller tries to compensate for that overflow,
6957 distributing it over the next frames.
6958 This setting controls how much of the overflow is distributed every time
6959 there is a new frame.
6960 Low values allow lazy overflow control, big rate bursts are compensated for
6961 more slowly (could lead to lack of precision for small clips).
6962 Higher values will make changes in bit redistribution more abrupt, possibly
6963 too abrupt if you set it too high, creating artifacts (default: 5).
6965 .I NOTE:
6966 This setting impacts quality a lot, play with it carefully!
6969 .B max_overflow_improvement=<0\-100>
6970 During the frame bit allocation, overflow control may increase the frame
6971 size.
6972 This parameter specifies the maximum percentage by which the overflow
6973 control is allowed to increase the frame size, compared to the ideal curve
6974 allocation
6975 (default: 5).
6978 .B max_overflow_degradation=<0\-100>
6979 During the frame bit allocation, overflow control may decrease the frame
6980 size.
6981 This parameter specifies the maximum percentage by which the overflow
6982 control is allowed to decrease the frame size, compared to the ideal curve
6983 allocation
6984 (default: 5).
6987 .B container_frame_overhead=<0...>
6988 Specifies a frame average overhead per frame, in bytes.
6989 Most of the time users express their target bitrate for video w/o taking
6990 care of the video container overhead.
6991 This small but (mostly) constant overhead can cause the target file size
6992 to be exceeded.
6993 XviD allows users to set the amount of overhead per frame the
6994 container generates (give only an average per frame).
6995 0 has a special meaning, it lets XviD use its own default values
6996 (default: 24 - AVI average overhead).
6999 .B par=<mode>
7000 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
7001 the Display Aspect Ratio).
7002 PAR is the ratio of the width and height of a single pixel.
7003 So both are related like this: DAR = PAR * (width/height).
7005 MPEG-4 defines 5 pixel aspect ratios and one extended
7006 one, giving the opportunity to specify a specific pixel aspect
7007 ratio.
7008 5 standard modes can be specified:
7009 .PD 0
7010 .RSs
7011 .IPs vga11
7012 It's the usual PAR for PC content.
7013 Pixels are a square unit.
7014 .IPs pal43
7015 PAL standard 4:3 PAR.
7016 Pixels are rectangles.
7017 .IPs pal169
7018 same as above
7019 .IPs ntsc43
7020 same as above
7021 .IPs ntsc169
7022 same as above (Don't forget to give the exact ratio.)
7023 .IPs ext\ \ 
7024 Allows you to specify your own pixel aspect ratio with par_width and
7025 par_height.
7027 .PD 1
7029 .I NOTE:
7030 In general, setting aspect and autoaspect options is enough.
7034 .B par_width=<1\-255> (par=ext only)
7035 Specifies the width of the custom pixel aspect ratio.
7038 .B par_height=<1\-255> (par=ext only)
7039 Specifies the height of the custom pixel aspect ratio.
7042 .B aspect=<x/\:y | f (float value)>
7043 Store movie aspect internally, just like MPEG files.
7044 Much nicer solution than rescaling, because quality isn't decreased.
7045 MPlayer and a few others players will play these files correctly, others
7046 will display them with the wrong aspect.
7047 The aspect parameter can be given as a ratio or a floating point number.
7050 .B (no)autoaspect
7051 Same as the aspect option, but automatically computes aspect, taking
7052 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
7053 filter chain.
7056 .B psnr\ \ \ 
7057 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
7058 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
7059 the current directory.
7060 Returned values are in dB (decibel), the higher the better.
7063 .sp 1
7064 The following option is only available in development versions
7065 of XviD 1.1.x.
7068 .B bvhq=<0|1>
7069 This setting allows vector candidates for B-frames to be used for
7070 the encoding chosen using a rate distortion optimized operator,
7071 which is what is done for P-frames by the vhq option.
7072 This produces nicer-looking B-frames while incurring almost no
7073 performance penalty.
7076 .SS x264enc (\-x264encopts)
7079 .B bitrate=<value>
7080 Sets the bitrate to be used in kbits/\:second (default: off).
7081 This is required if you want a CBR (constant bitrate) encode.
7084 .B qp_constant=<1\-51>
7085 This selects the quantizer to use for P-frames.
7086 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
7087 20\-40 is a useful range (default: 26).
7088 Lower values result in better fidelity, but higher bitrates.
7089 Note that quantization in H.264 works differently from MPEG-[124].
7090 H.264's quantization parameter (QP) is on a logarithmic scale.
7091 As an example, the bitrate difference between QP=20 and QP=40
7092 is about a factor of 10.
7093 Useful quantizers in H.264 tend to be very large compared to MPEG-[124].
7096 .B pass=<1\-3>
7097 Enable 2 or 3-pass mode.
7098 It is recommended to always encode in 2 or 3-pass mode as it leads to a
7099 better bit distribution and improves overall quality.
7100 .PD 0
7101 .RSs
7102 .IPs 1
7103 first pass
7104 .IPs 2
7105 second pass (of two pass encoding)
7106 .IPs 3
7107 Nth pass (second and third passes of three pass encoding)
7110 Here is how it works, and how to use it:
7112 The first pass (pass=1) collects statistics on the video and writes them
7113 to a file.
7114 You might want to deactivate some CPU-hungry options, apart from the ones
7115 that are on by default.
7117 In two pass mode, the second pass (pass=2) reads the stats file and
7118 bases ratecontrol decisions on it.
7120 In three pass mode, the second pass (pass=3, that is not a typo)
7121 does both: It first reads the stats, then overwrites them.
7122 You might want to backup divx2pass.log before doing this if there is
7123 any possibility that you will have to cancel MEncoder.
7124 You can use all encoding options, except very CPU-hungry options.
7126 The third pass (pass=3) is the same as the second pass, except that it has
7127 the second pass' stats to work from.
7128 You can use all encoding options, including CPU-hungry ones.
7130 The first pass may use either constant bitrate or constant quantizer.
7131 Constant quantizer is often slightly better, but requires that you guess a
7132 qp_constant that is somewhere near your desired bitrate.
7133 (It is better to err on the side of lower qp_constant, i.e. higher bitrate.)
7134 Subsequent passes are ABR, and must specify bitrate.
7137 NOTE:
7138 x264 three pass support being quite recent in MEncoder, we welcome any
7139 feedback you could give us on good combinations of x264 options that are
7140 both fast and provide good quality.
7141 .REss
7144 .B keyint=<value>
7145 Sets maximum interval between I-frames.
7146 Larger values save bits, thus improve quality, at the cost of seeking
7147 precision (default: 250).
7150 .B idrint=<value>
7151 Make each <value> I-frame an IDR-frame (default: 2).
7152 In H.264, I-frames do not necessarily bound a closed GOP because it is
7153 allowable for a P-frame to be predicted from more frames than just the one
7154 frame before it (also see frameref).
7155 Therefore, I-frames are not necessarily seekable.
7156 IDR-frames restrict subsequent P-frames from referring to any frame
7157 prior to the IDR-frame.
7160 .B scenecut=<-1\-100>
7161 Controls how aggressively to insert extra I-frames (default: 40).
7162 With small values of scenecut, the codec often has to force an I-frame
7163 when it would exceed keyint.
7164 Good values of scenecut may find a better location for the I-frame.
7165 Large values use more I-frames than necessary, thus wasting bits.
7166 -1 disables scene-cut detection, so I-frames are inserted only once
7167 every other keyint frames, even if a scene-cut occurs earlier.
7168 This isn't recommended and wastes bitrate as scenecuts encoded as P-frames
7169 are just as big as I-frames, but don't reset the "keyint counter".
7172 .B frameref=<1\-15>
7173 Number of previous frames used as predictors in a P-frame (default: 1).
7174 This is effective in Anime, but seems to make little difference in
7175 live-action source material.
7176 Some decoders are unable to deal with large frameref values.
7179 .B bframes=<0\-16>
7180 number of consecutive B-frames between I- and P-frames (default: 0)
7183 .B (no)deblock
7184 Use deblocking filter (default: on).
7185 As it takes very little time compared to its quality gain, it's not
7186 recommend to disable it.
7189 .B deblockalpha=<-6\-6>
7190 AlphaC0 parameter of deblocking filter (default: 0).
7191 This adjusts thresholds for the H.264 deblocking filter.
7192 First, this parameter adjusts the maximum amount of change that the filter is
7193 allowed to cause on any one pixel.
7194 Secondly, this parameter affects the threshold for difference across the
7195 edge being filtered.
7196 A positive value reduces blocking artifacts more, but will also smear details.
7198 For encodes that are intended to be reasonably high quality, you might
7199 want to turn it down a little bit.
7200 However, if your source material already has some blocking or noise
7201 which you would like to remove, or if it is animation, it may be a good
7202 idea to turn it up a little bit.
7205 .B deblockbeta=<-6\-6>
7206 Beta parameter of deblocking filter (default: 0).
7207 Affects the maximum allowed gradient within two adjacent blocks.
7210 .B (no)cabac
7211 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
7212 Slightly slows down encoding and decoding, but should save 10-15% bitrate.
7213 Unless you are looking for speed, you should not disable it.
7216 .B cabacidc=<value>
7217 Initial value of CABAC IDC.
7218 The encoder must choose a context for each block it encodes, but for the
7219 first block in a frame, there are no prior blocks to predict the context.
7220 Adjusting this may affect bitrate by a fraction of a percent, but it doesn't
7221 directly affect distortion.
7222 .RSs
7223 -1: Encoder chooses context, usually 0 (default).
7225 0: low complexity
7227 1: medium complexity
7229 2: high complexity
7230 .REss
7233 .B qp_min=<1\-51> (CBR or two pass)
7234 Minimum quantizer, 10\-35 seems to be a useful range (default: 10).
7237 .B qp_max=<1\-51> (CBR or two pass)
7238 maximum quantizer (default: 51)
7241 .B qp_step=<1\-50> (CBR or two pass)
7242 Maximum Value by which the quantizer may be incremented/decremented between
7243 frames (default: 1).
7246 .B rc_buffer_size=<value> (CBR or two pass)
7247 ratecontrol buffer size, in kbit (default: 1 second's worth at the bitrate you
7248 specified)
7251 .B rc_init_buffer=<0.0\-1.0> (CBR only)
7252 Set the initial ratecontrol buffer fullness (default: 0.25).
7255 .B rc_sens=<0\-100> (CBR only)
7256 ratecontrol sensitivity (default: 4)
7259 .B ip_factor=<value>
7260 quantizer factor between I- and P-frames (default: 1.4)
7263 .B pb_factor=<value>
7264 quantizer factor between P- and B-frames (default: 1.3)
7267 .B qcomp=<0\-1> (two pass only)
7268 quantizer compression (default: 0.6).
7269 A lower value makes the bitrate more constant,
7270 while a higher value makes the quantization parameter more constant.
7273 .B cplx_blur=<0\-999> (two pass only)
7274 Temporal blur of the estimated frame complexity, before curve compression
7275 (default: 20).
7276 Lower values allow the quantizer value to jump around more,
7277 higher values force it to vary more smoothly.
7278 cplx_blur ensures that each I-frame has quality comparable to the following
7279 P-frames, and ensures that alternating high and low complexity frames
7280 (e.g. low fps animation) do not waste bits on fluctuating quantizer.
7283 .B qblur=<0\-99> (two pass only)
7284 Temporal blur of the quantization parameter, after curve compression
7285 (default: 0.5).
7286 Lower values allow the quantizer value to jump around more,
7287 higher values force it to vary more smoothly.
7290 .B direct_pred=<0\-2>
7291 Determines the type of motion prediction used for direct macroblocks
7292 in B-frames.
7293 .PD 0
7294 .RSs
7295 .IPs 0
7296 None: direct macroblocks are not used.
7297 .IPs 1
7298 Spatial: motion vectors are extrapolated from neighboring blocks.
7299 .IPs 2
7300 Temporal: motion vectors are interpolated from the following P-frame.
7301 (default)
7303 .PD 1
7304 The best choice depends on the movie.
7305 Spatial and temporal are approximately the same speed and PSNR,
7306 but temporal often looks better.
7307 direct_pred=0 is usually both slower and lower quality.
7310 .B (no)b8x8mv
7311 Use additional macroblock types b16x8, b8x16, b8x8 (default: enabled).
7312 Without this option, B-frames will use only types
7313 i16x16, i4x4, b16x16, skip, direct.
7314 See 4x4mv for details.
7317 .B (no)4x4mv
7318 Use additional macroblock types p8x4, p4x8, p4x4 (default: disabled).
7319 Without this option, P-frames will use only types
7320 i16x16, i4x4, p16x16, p16x8, p8x16, p8x8, skip.
7322 The idea is to find the type and size that best describe a certain area
7323 of the picture.
7324 For example, a global pan is better represented by 16x16 blocks, while
7325 small moving objects are better represented by smaller blocks.
7327 4x4mv is recommended only with subq >= 3.
7330 .B subq=<1\-5>
7331 Adjust subpel refinement quality.
7332 This parameter controls quality versus speed tradeoffs involved in the motion
7333 estimation decision process.
7334 subq=5 can compress up to 10% better than subq=1.
7335 .RSs
7336 1: Runs fullpixel precision motion estimation on all candidate
7337 macroblock types.
7338 Then selects the best type.
7339 Then refines the motion of that type to fast quarterpixel precision.
7340 (fastest)
7342 2: As 1, but uses a slightly slower fullpixel search and a slightly slower
7343 quarterpixel refinement.
7345 3: Runs halfpixel precision motion estimation on all candidate macroblock
7346 types.
7347 Then selects the best type.
7348 Then refines the motion of that type to quarterpixel precision.
7350 4: Runs fast quarterpixel precision motion estimation on all candidate
7351 macroblock types.
7352 Then selects the best type.
7353 Then finishes the quarterpixel refinement for that type.
7355 5: Runs best quality quarterpixel precision motion estimation on all
7356 candidate macroblock types, before selecting the best type.
7357 (best, default)
7358 .REss
7359 In the above, "all candidates" doesn't exactly mean all enabled types:
7360 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
7363 .B log=<-1\-3>
7364 Adjust the amount of logging info printed to the screen.
7365 .RSs
7366 -1: none
7368  0: Print errors only.
7370  1: warnings
7372  2: PSNR, encoding times, and other analysis stats when the encode finishes
7373 (default)
7375  3: PSNR, QP, frametype, size, and other stats for every frame
7376 .REss
7379 .B (no)psnr
7380 Print signal-to-noise ratio statistics.
7382 .I NOTE:
7383 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
7384 mathematically sound (they are simply the average of per-frame PSNRs).
7385 They are kept only for comparison to the JM reference codec.
7386 For all other purposes, please use either the 'Global' PSNR, or the per-frame
7387 PSNRs printed by log=3.
7390 .\" --------------------------------------------------------------------------
7391 .\" Files
7392 .\" --------------------------------------------------------------------------
7394 .SH FILES
7397 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
7398 system-wide settings
7401 ~/.mplayer/\:config
7402 user settings
7405 ~/.mplayer/\:input.conf
7406 input bindings (see '\-input keylist' for the full list)
7409 ~/.mplayer/\:gui.conf
7410 GUI configuration file
7413 ~/.mplayer/\:gui.pl
7414 GUI playlist
7417 ~/.mplayer/\:font/
7418 font directory (There must be a font.desc file and files with .RAW extension.)
7421 ~/.mplayer/\:DVDkeys/
7422 cached CSS keys
7425 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
7426 in this order:
7428 /path/\:to/\:movie.sub
7430 ~/.mplayer/\:sub/\:movie.sub
7432 ~/.mplayer/\:default.sub
7434 .PD 1
7437 .\" --------------------------------------------------------------------------
7438 .\" Examples
7439 .\" --------------------------------------------------------------------------
7441 .SH EXAMPLES
7444 .B Quickstart DVD playing:
7445 mplayer dvd://1
7448 .B Play in Japanese with English subtitles:
7449 mplayer dvd://1 \-alang ja \-slang en
7452 .B Play only chapters 5, 6, 7:
7453 mplayer dvd://1 \-chapter 5-7
7456 .B Play only titles 5, 6, 7:
7457 mplayer dvd://5-7
7460 .B Play a multiangle DVD:
7461 mplayer dvd://1 \-dvdangle 2
7464 .B Play from a different DVD device:
7465 mplayer dvd://1 \-dvd-device /dev/\:dvd2
7468 .B Play DVD video from a directory with VOB files:
7469 mplayer dvd://1 \-dvd-device /path/\:to/\:directory/
7472 .B Copy a DVD title to hard disk, saving to file "title1.vob":
7473 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
7476 .B Stream from HTTP:
7477 mplayer http://mplayer.hq/\:example.avi
7480 .B Stream using RTSP:
7481 mplayer rtsp://server.example.com/\:streamName
7484 .B Convert subtitles to MPsub format:
7485 mplayer dummy.avi \-sub source.sub \-dumpmpsub
7488 .B Convert subtitles to MPsub format without watching the movie:
7489 mplayer /dev/\:zero \-rawvideo on:pal:fps=xx \-vc null \-vo null \-noframedrop
7490 \-benchmark \-sub source.sub \-dumpmpsub
7493 .B input from standard V4L:
7494 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420
7495 \-vo xv
7498 .B Playback on Zoran cards (old style, deprecated):
7499 mplayer \-vo zr \-vf scale=352:288 file.avi
7502 .B Playback on Zoran cards (new style):
7503 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
7506 .B Encode DVD title #2, only selected chapters:
7507 mencoder dvd://2 \-chapter 10-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
7510 .B Encode DVD title #2, resizing to 640x480:
7511 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
7514 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
7515 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy
7516 \-ovc lavc \-lavcopts vcodec=mpeg4
7519 .B The same, but with bitrate set to 1800kBit and optimized macroblocks:
7520 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc
7521 \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
7524 .B The same, but with MJPEG compression:
7525 mencoder dvd://2 \-o titel2.avi \-ovc lavc
7526 \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800 \-oac copy
7529 .B Encode all *.jpg files in the current dir:
7530 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
7533 .B Encode from a tuner (specify a format with \-vf format):
7534 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
7537 .B Encode from a pipe:
7538 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
7541 .B Play a 6-channel AAC file with only two speakers:
7542 mplayer -rawaudio on:format=0xff -af pan=6:1:1:0:1:0:1:1:0:1:0:1:1 adts_he-aac160_51.aac
7545 .\" --------------------------------------------------------------------------
7546 .\" Bugs, authors, standard disclaimer
7547 .\" --------------------------------------------------------------------------
7549 .SH BUGS
7550 If you find one, report it to us, but please make sure you have read all
7551 of the documentation first.
7552 Many bugs are the result of incorrect setup or parameter usage.
7553 The bug reporting section of the documentation (DOCS/\:HTML/\:en/\:bugreports.html)
7554 explains how to create useful bug reports.
7558 .SH AUTHORS
7559 MPlayer was initially written by Arpad Gereöffy.
7560 See the AUTHORS file for a list of some of the many other contributors.
7562 MPlayer is (C) 2000\-2005 The MPlayer Team
7564 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
7565 It is maintained by Diego Biurrun.
7566 Please send mails about it to the MPlayer-DOCS mailing list.
7567 .\" end of file