Support using unrar executable to access rar-compressed vobsub files.
[mplayer/greg.git] / DOCS / man / en / mplayer.1
blob55279b8192fc7a92c3ad1a9c9a8186c05b20bd34
1 .\" $Revision$
2 .\" MPlayer (C) 2000-2007 MPlayer Team
3 .\" This man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
5 .\" --------------------------------------------------------------------------
6 .\" Macro definitions
7 .\" --------------------------------------------------------------------------
9 .\" define indentation for suboptions
10 .nr SS 5
11 .\" add new suboption
12 .de IPs
13 .IP "\\$1" \n(SS
15 .\" begin of first level suboptions, end with .RE
16 .de RSs
17 .RS 10
19 .\" begin of 2nd level suboptions
20 .de RSss
21 .PD 0
22 .RS \n(SS+3
24 .\" end of 2nd level suboptions
25 .de REss
26 .RE
27 .PD 1
30 .\" --------------------------------------------------------------------------
31 .\" Title
32 .\" --------------------------------------------------------------------------
34 .TH MPlayer 1 "2007-06-01" "The MPlayer Project" "The Movie Player"
36 .SH NAME
37 mplayer  \- movie player
38 .br
39 mencoder \- movie encoder
41 .\" --------------------------------------------------------------------------
42 .\" Synopsis
43 .\" --------------------------------------------------------------------------
45 .SH SYNOPSIS
46 .na
47 .nh
48 .B mplayer
49 [options] [file|URL|playlist|\-]
51 .br
52 .B mplayer
53 [options] file1
54 [specific options] [file2] [specific options]
56 .br
57 .B mplayer
58 [options]
59 {group of files and options}
60 [group-specific options]
62 .br
63 .B mplayer
64 [dvd|dvdnav]://[title|[start_title]\-end_title]
65 [options]
67 .br
68 .B mplayer
69 vcd://track[/device]
71 .br
72 .B mplayer
73 tv://[channel][/input_id]
74 [options]
76 .br
77 .B mplayer
78 radio://[channel|frequency][/capture]
79 [options]
81 .br
82 .B mplayer
83 pvr://
84 [options]
86 .br
87 .B mplayer
88 dvb://[card_number@]channel
89 [options]
91 .br
92 .B mplayer
93 mf://[filemask|@listfile]
94 [\-mf options] [options]
96 .br
97 .B mplayer
98 [cdda|cddb]://track[\-endtrack][:speed][/device]
99 [options]
102 .B mplayer
103 cue://file[:track]
104 [options]
107 .B mplayer
108 [file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|smb]://
109 [user:pass@]URL[:port] [options]
112 .B mplayer
113 sdp://file
114 [options]
117 .B mplayer
118 mpst://host[:port]/URL
119 [options]
122 .B mplayer
123 tivo://host/[list|llist|fsid]
124 [options]
127 .B gmplayer
128 [options]
129 [\-skin\ skin]
132 .B mencoder
133 [options] file
134 [file|URL|\-] [\-o file | file://file | smb://[user:pass@]host/filepath]
137 .B mencoder
138 [options] file1
139 [specific options] [file2] [specific options]
143 .\" --------------------------------------------------------------------------
144 .\" Description
145 .\" --------------------------------------------------------------------------
147 .SH DESCRIPTION
148 .B mplayer
149 is a movie player for Linux (runs on many other platforms and CPU
150 architectures, see the documentation).
151 It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM,
152 MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
153 native and binary codecs.
154 You can watch Video CD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies,
155 too.
157 MPlayer supports a wide range of video and audio output drivers.
158 It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
159 Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers),
160 VESA (on every VESA-compatible card, even without X11), some low-level
161 card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder
162 boards, such as the Siemens DVB, Hauppauge PVR (IVTV), DXR2 and DXR3/\:Hollywood+.
163 Most of them support software or hardware scaling, so you can enjoy movies in
164 fullscreen mode.
166 MPlayer has an onscreen display (OSD) for status information, nice big
167 antialiased shaded subtitles and visual feedback for keyboard controls.
168 European/\:ISO8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean
169 fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM,
170 SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and
171 DVD subtitles (SPU streams, VOBsub and Closed Captions).
173 .B mencoder
174 (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode
175 MPlayer-playable movies (see above) to other MPlayer-playable formats (see
176 below).
177 It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and
178 PCM/\:MP3/\:VBRMP3 audio in 1, 2 or 3 passes.
179 Furthermore it has stream copying abilities, a powerful filter system (crop,
180 expand, flip, postprocess, rotate, scale, noise, RGB/\:YUV conversion) and
181 more.
183 .B gmplayer
184 is MPlayer with a graphical user interface.
185 It has the same options as MPlayer.
187 Usage examples to get you started quickly can be found at the end
188 of this man page.
190 .B Also see the HTML documentation!
193 .\" --------------------------------------------------------------------------
194 .\" interactive control
195 .\" --------------------------------------------------------------------------
197 .SH "INTERACTIVE CONTROL"
198 MPlayer has a fully configurable, command-driven control layer
199 which allows you to control MPlayer using keyboard, mouse, joystick
200 or remote control (with LIRC).
201 See the \-input option for ways to customize it.
204 .B keyboard control
205 .PD 0
207 .IPs "<\- and \->"
208 Seek backward/\:forward 10 seconds.
209 .IPs "up and down"
210 Seek forward/\:backward 1 minute.
211 .IPs "pgup and pgdown"
212 Seek forward/\:backward 10 minutes.
213 .IPs "[ and ]"
214 Decrease/increase current playback speed by 10%.
215 .IPs "{ and }"
216 Halve/double current playback speed.
217 .IPs "backspace"
218 Reset playback speed to normal.
219 .IPs "< and >"
220 Go backward/\:forward in the playlist.
221 .IPs "ENTER"
222 Go forward in the playlist, even over the end.
223 .IPs "HOME and END"
224 next/\:previous playtree entry in the parent list
225 .IPs "INS and DEL (ASX playlist only)"
226 next/\:previous alternative source.
227 .IPs "p / SPACE"
228 Pause (pressing again unpauses).
229 .IPs ".\ \ \ \ "
230 Step forward.
231 Pressing once will pause movie, every consecutive press will play one frame
232 and then go into pause mode again (any other key unpauses).
233 .IPs "q / ESC"
234 Stop playing and quit.
235 .IPs "+ and \-"
236 Adjust audio delay by +/\- 0.1 seconds.
237 .IPs "/ and *"
238 Decrease/\:increase volume.
239 .IPs "9 and 0"
240 Decrease/\:increase volume.
241 .IPs "( and )"
242 Adjust audio balance in favor of left/\:right channel.
243 .IPs "m\ \ \ \ "
244 Mute sound.
245 .IPs "_ (MPEG-TS, AVI and libavformat only)"
246 Cycle through the available video tracks.
247 .IPs "# (DVD, MPEG, Matroska, AVI and libavformat only)"
248 Cycle through the available audio tracks.
249 .IPs "TAB (MPEG-TS and libavformat only)"
250 Cycle through the available programs.
251 .IPs "f\ \ \ \ "
252 Toggle fullscreen (also see \-fs).
253 .IPs "T\ \ \ \ "
254 Toggle stay-on-top (also see \-ontop).
255 .IPs "w and e"
256 Decrease/\:increase pan-and-scan range.
257 .IPs "o\ \ \ \ "
258 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
259 .IPs "d\ \ \ \ "
260 Toggle frame dropping states: none / skip display / skip decoding
261 (see \-framedrop and \-hardframedrop).
262 .IPs "v\ \ \ \ "
263 Toggle subtitle visibility.
264 .IPs "j\ \ \ \ "
265 Cycle through the available subtitles.
266 .IPs "y and g"
267 Step forward/backward in the subtitle list.
268 .IPs "F\ \ \ \ "
269 Toggle displaying "forced subtitles".
270 .IPs "a\ \ \ \ "
271 Toggle subtitle alignment: top / middle / bottom.
272 .IPs "x and z"
273 Adjust subtitle delay by +/\- 0.1 seconds.
274 .IPs "r and t"
275 Move subtitles up/down.
276 .IPs "i (\-edlout mode only)"
277 Set start or end of an EDL skip and write it out to the given file.
278 .IPs "s (\-vf screenshot only)"
279 Take a screenshot.
280 .IPs "S (\-vf screenshot only)"
281 Start/stop taking screenshots.
282 .IPs "I\ \ \ \ "
283 Show filename on the OSD.
284 .IPs "! and @"
285 Seek to the beginning of the previous/next chapter.
286 .IPs "D (\-vo xvmc, \-vf yadif, \-vf kerndeint only)"
287 Activate/deactivate deinterlacer.
289 .PD 1
292 (The following keys are valid only when using a hardware accelerated video
293 output (xv, (x)vidix, (x)mga, etc), the software equalizer
294 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
297 .PD 0
299 .IPs "1 and 2"
300 Adjust contrast.
301 .IPs "3 and 4"
302 Adjust brightness.
303 .IPs "5 and 6"
304 Adjust hue.
305 .IPs "7 and 8"
306 Adjust saturation.
308 .PD 1
311 (The following keys are valid only when using the quartz or macosx
312 video output driver.)
315 .PD 0
317 .IPs "command + 0"
318 Resize movie window to half its original size.
319 .IPs "command + 1"
320 Resize movie window to its original size.
321 .IPs "command + 2"
322 Resize movie window to double its original size.
323 .IPs "command + f"
324 Toggle fullscreen (also see \-fs).
325 .IPs "command + [ and command + ]"
326 Set movie window alpha.
328 .PD 1
331 (The following keys are valid only when using the sdl
332 video output driver.)
335 .PD 0
337 .IPs "c\ \ \ \ "
338 Cycle through available fullscreen modes.
339 .IPs "n\ \ \ \ "
340 Restore original mode.
342 .PD 1
345 (The following keys are valid if you have a keyboard
346 with multimedia keys.)
349 .PD 0
351 .IPs PAUSE
352 Pause.
353 .IPs "STOP\ "
354 Stop playing and quit.
355 .IPs "PREVIOUS and NEXT"
356 Seek backward/\:forward 1 minute.
358 .PD 1
361 (The following keys are only valid if GUI support is compiled in
362 and will take precedence over the keys defined above.)
365 .PD 0
367 .IPs ENTER
368 Start playing.
369 .IPs "ESC\ \ "
370 Stop playing.
371 .IPs "l\ \ \ \ "
372 Load file.
373 .IPs "t\ \ \ \ "
374 Load subtitle.
375 .IPs "c\ \ \ \ "
376 Open skin browser.
377 .IPs "p\ \ \ \ "
378 Open playlist.
379 .IPs "r\ \ \ \ "
380 Open preferences.
382 .PD 1
385 (The following keys are only valid if you compiled with TV or DVB input
386 support and will take precedence over the keys defined above.)
389 .PD 0
391 .IPs "h and k"
392 Select previous/\:next channel.
393 .IPs "n\ \ \ \ "
394 Change norm.
395 .IPs "u\ \ \ \ "
396 Change channel list.
398 .PD 1
401 (The following keys are only valid if you compiled with dvdnav
402 support: They are used to navigate the menus.)
405 .PD 0
407 .IPs "keypad 8"
408 Select button up.
409 .IPs "keypad 2"
410 Select button down.
411 .IPs "keypad 4"
412 Select button left.
413 .IPs "keypad 6"
414 Select button right.
415 .IPs "keypad 5"
416 Return to main menu.
417 .IPs "keypad 7"
418 Return to nearest menu (the order of preference is: chapter->title->root).
419 .IPs "keypad ENTER"
420 Confirm choice.
422 .PD 1
426 (The following keys are only valid if teletext support is enabled during
427 compilation: They are used for controlling TV teletext.)
430 .PD 0
432 .IPs "X\ \ \ \ "
433 Switch teletext on/\:off.
434 .IPs "Q and W"
435 Go to next/\:prev teletext page.
437 .PD 1
442 .B mouse control
443 .PD 0
445 .IPs "button 3 and button 4"
446 Seek backward/\:forward 1 minute.
447 .IPs "button 5 and button 6"
448 Decrease/\:increase volume.
450 .PD 1
453 .B joystick control
454 .PD 0
456 .IPs "left and right"
457 Seek backward/\:forward 10 seconds.
458 .IPs "up and down"
459 Seek forward/\:backward 1 minute.
460 .IPs "button 1"
461 Pause.
462 .IPs "button 2"
463 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
464 .IPs "button 3 and button 4"
465 Decrease/\:increase volume.
467 .PD 1
470 .\" --------------------------------------------------------------------------
471 .\" Usage
472 .\" --------------------------------------------------------------------------
474 .SH "USAGE"
475 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
476 \-fs option is \-nofs.
478 If an option is marked as (XXX only), it will only work in combination with
479 the XXX option or if XXX is compiled in.
481 .I NOTE:
482 The suboption parser (used for example for \-ao pcm suboptions) supports
483 a special kind of string-escaping intended for use with external GUIs.
485 It has the following format:
487 %n%string_of_length_n
489 .I EXAMPLES:
491 mplayer \-ao pcm:file=%10%C:test.wav test.avi
493 Or in a script:
495 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
498 .\" --------------------------------------------------------------------------
499 .\" Configuration files
500 .\" --------------------------------------------------------------------------
502 .SH "CONFIGURATION FILES"
503 You can put all of the options in configuration files which will be read
504 every time MPlayer/MEncoder is run.
505 The system-wide configuration file 'mplayer.conf' is in your configuration
506 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
507 specific one is '~/\:.mplayer/\:config'.
508 The configuration file for MEncoder is 'mencoder.conf' in your configuration
509 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the
510 user specific one is '~/\:.mplayer/\:mencoder.conf.
511 User specific options override system-wide options and options given on the
512 command line override either.
513 The syntax of the configuration files is 'option=<value>', everything after
514 a '#' is considered a comment.
515 Options that work without values can be enabled by setting them to 'yes'
516 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
517 Even suboptions can be specified in this way.
519 You can also write file-specific configuration files.
520 If you wish to have a configuration file for a file called 'movie.avi', create a file
521 named 'movie.avi.conf' with the file-specific options in it and put it in
522 ~/.mplayer/.
523 You can also put the configuration file in the same directory as the file to
524 be played, as long as you give the \-use\-filedir\-conf option (either on the
525 command line or in your global config file).
527 .I EXAMPLE MPLAYER CONFIGURATION FILE:
528 .sp 1
530 # Use Matrox driver by default.
531 vo=xmga
532 # I love practicing handstands while watching videos.
533 flip=yes
534 # Decode/encode multiple files from PNG,
535 # start with mf://filemask
536 mf=type=png:fps=25
537 # Eerie negative images are cool.
538 vf=eq2=1.0:\-0.8
541 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
542 .sp 1
544 # Make MEncoder output to a default filename.
545 o=encoded.avi
546 # The next 4 lines allow mencoder tv:// to start capturing immediately.
547 oac=pcm=yes
548 ovc=lavc=yes
549 lavcopts=vcodec=mjpeg
550 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
551 # more complex default encoding option set
552 lavcopts=vcodec=mpeg4:autoaspect=1
553 lameopts=aq=2:vbr=4
554 ovc=lavc=1
555 oac=lavc=1
556 passlogfile=pass1stats.log
557 noautoexpand=1
558 subfont-autoscale=3
559 subfont-osd-scale=6
560 subfont-text-scale=4
561 subalign=2
562 subpos=96
563 spuaa=20
566 .\" --------------------------------------------------------------------------
567 .\" Profiles
568 .\" --------------------------------------------------------------------------
570 .SH "PROFILES"
571 To ease working with different configurations profiles can be defined in the
572 configuration files.
573 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
574 All following options will be part of the profile.
575 A description (shown by \-profile help) can be defined with the profile-desc
576 option.
577 To end the profile, start another one or use the profile name 'default'
578 to continue with normal options.
581 .I "EXAMPLE MENCODER PROFILE:"
582 .sp 1
585 [mpeg4]
586 profile-desc="MPEG4 encoding"
587 ovc=lacv=yes
588 lavcopts=vcodec=mpeg4:vbitrate=1200
590 [mpeg4\-hq]
591 profile-desc="HQ MPEG4 encoding"
592 profile=mpeg4
593 lavcopts=mbd=2:trell=yes:v4mv=yes
596 .\" --------------------------------------------------------------------------
597 .\" Options
598 .\" --------------------------------------------------------------------------
600 .SH "GENERAL OPTIONS"
603 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
604 Override the standard search path and use the specified file
605 instead of the builtin codecs.conf.
608 .B \-include <configuration file>
609 Specify configuration file to be parsed after the default ones.
612 .B \-list\-options
613 Prints all available options.
616 .B \-msgcharset <charset>
617 Convert console messages to the specified character set (default: autodetect).
618 Text will be in the encoding specified with the \-\-charset configure option.
619 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
621 .I NOTE:
622 The option takes effect after command line parsing has finished.
623 The MPLAYER_CHARSET environment variable can help you get rid of
624 the first lines of garbled output.
627 .B \-msglevel <all=<level>:<module>=<level>:...>
628 Control verbosity directly for each module.
629 The 'all' module changes the verbosity of all the modules not
630 explicitly specified on the command line.
631 See '\-msglevel help' for a list of all modules.
633 .I NOTE:
634 Some messages are printed before the command line is parsed and are
635 therefore not affected by \-msglevel.
636 To control these messages you have to use the MPLAYER_VERBOSE environment
637 variable, see its description below for details.
639 Available levels:
640 .PD 0
641 .RSs
642 .IPs "\-1"
643 complete silence
644 .IPs " 0"
645 fatal messages only
646 .IPs " 1"
647 error messages
648 .IPs " 2"
649 warning messages
650 .IPs " 3"
651 short hints
652 .IPs " 4"
653 informational messages
654 .IPs " 5"
655 status messages (default)
656 .IPs " 6"
657 verbose messages
658 .IPs " 7"
659 debug level 2
660 .IPs " 8"
661 debug level 3
662 .IPs " 9"
663 debug level 4
665 .PD 1
668 .B "\-quiet\ "
669 Make console output less verbose; in particular, prevents the status line
670 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
671 Particularly useful on slow terminals or broken ones which do not properly
672 handle carriage return (i.e.\& \\r).
675 .B \-priority <prio> (Windows only)
676 Set process priority for MPlayer according to the predefined
677 priorities available under Windows.
678 Possible values of <prio>:
679 .RSs
680 idle|belownormal|normal|abovenormal|high|realtime
682 .sp 1
684 .I WARNING:
685 Using realtime priority can cause system lockup.
689 .B \-profile <profile1,profile2,...>
690 Use the given profile(s), \-profile help displays a list of the defined profiles.
693 .B \-really\-quiet (also see \-quiet)
694 Display even less output and status messages than with \-quiet.
695 Also suppresses the GUI error message boxes.
698 .B \-show\-profile <profile>
699 Show the description and content of a profile.
702 .B \-use\-filedir\-conf
703 Look for a file-specific configuration file in the same directory as
704 the file that is being played.
706 .I WARNING:
707 May be dangerous if playing from untrusted media.
710 .B "\-v\ \ \ \ \ "
711 Increment verbosity level, one level for each \-v
712 found on the command line.
716 .SH "PLAYER OPTIONS (MPLAYER ONLY)"
719 .B \-autoq <quality> (use with \-vf [s]pp)
720 Dynamically changes the level of postprocessing depending on the available spare
721 CPU time.
722 The number you specify will be the maximum level used.
723 Usually you can use some big number.
724 You have to use \-vf [s]pp without parameters in order for this to work.
727 .B \-autosync <factor>
728 Gradually adjusts the A/V sync based on audio delay measurements.
729 Specifying \-autosync 0, the default, will cause frame timing to be based
730 entirely on audio delay measurements.
731 Specifying \-autosync 1 will do the same, but will subtly change the A/V
732 correction algorithm.
733 An uneven video framerate in a movie which plays fine with \-nosound can
734 often be helped by setting this to an integer value greater than 1.
735 The higher the value, the closer the timing will be to \-nosound.
736 Try \-autosync 30 to smooth out problems with sound drivers which do
737 not implement a perfect audio delay measurement.
738 With this value, if large A/V sync offsets occur, they will only take about
739 1 or 2 seconds to settle out.
740 This delay in reaction time to sudden A/V offsets should be the only
741 side-effect of turning this option on, for all sound drivers.
744 .B \-benchmark
745 Prints some statistics on CPU usage and dropped frames at the end of playback.
746 Use in combination with \-nosound and \-vo null for benchmarking only the
747 video codec.
749 .I NOTE:
750 With this option MPlayer will also ignore frame duration when playing
751 only video (you can think of that as infinite fps).
754 .B \-colorkey <number>
755 Changes the colorkey to an RGB value of your choice.
756 0x000000 is black and 0xffffff is white.
757 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
758 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
759 drivers.
762 .B \-nocolorkey
763 Disables colorkeying.
764 Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
765 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
766 drivers.
769 .B \-correct\-pts (experimental)
770 Switches MPlayer to an experimental mode where timestamps for video frames
771 are calculated differently and video filters which add new frames or
772 modify timestamps of existing ones are supported.
773 The more accurate timestamps can be visible for example when playing
774 subtitles timed to scene changes with the \-ass option.
775 Without \-correct\-pts the subtitle timing will typically be off by some frames.
776 This option does not work correctly with some demuxers and codecs.
779 .B \-crash\-debug (DEBUG CODE)
780 Automatically attaches gdb upon crash or SIGTRAP.
781 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
784 .B \-doubleclick\-time
785 Time in milliseconds to recognize two consecutive button presses as
786 a double-click (default: 300).
787 Set to 0 to let your windowing system decide what a double-click is
788 (\-vo directx only).
790 .I NOTE:
791 You will get slightly different behaviour depending on whether you bind
792 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
795 .B \-edlout <filename>
796 Creates a new file and writes edit decision list (EDL) records to it.
797 During playback, the user hits 'i' to mark the start or end of a skip block.
798 This provides a starting point from which the user can fine-tune EDL entries
799 later.
800 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
803 .B \-enqueue (GUI only)
804 Enqueue files given on the command line in the playlist instead of playing them
805 immediately.
808 .B \-fixed\-vo
809 Enforces a fixed video system for multiple files (one (un)initialization for
810 all files).
811 Therefore only one window will be opened for all files.
812 Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,
813 xmga, xv, xvidix and dfbmga.
816 .B \-framedrop (also see \-hardframedrop)
817 Skip displaying some frames to maintain A/V sync on slow systems.
818 Video filters are not applied to such frames.
819 For B-frames even decoding is skipped completely.
822 .B \-(no)gui
823 Enable or disable the GUI interface (default depends on binary name).
824 Only works as the first argument on the command line.
825 Does not work as a config-file option.
828 .B \-h, \-help, \-\-help
829 Show short summary of options.
832 .B \-hardframedrop
833 More intense frame dropping (breaks decoding).
834 Leads to image distortion!
837 .B \-identify
838 Shorthand for \-msglevel identify=4.
839 Show file parameters in an easily parseable format.
840 Also prints more detailed information about subtitle and audio
841 track languages and IDs.
842 In some cases you can get more information by using \-msglevel identify=6.
843 For example, for a DVD it will list the chapters and time length of each title,
844 as well as a disk ID.
845 The wrapper script TOOLS/\:midentify suppresses the other MPlayer output and
846 (hopefully) shellescapes the filenames.
849 .B \-idle (also see \-slave)
850 Makes MPlayer wait idly instead of quitting when there is no file to play.
851 Mostly useful in slave mode where MPlayer can be controlled
852 through input commands.
855 .B \-input <commands>
856 This option can be used to configure certain parts of the input system.
857 Paths are relative to ~/.mplayer/.
859 .I NOTE:
860 Autorepeat is currently only supported by joysticks.
861 .sp 1
862 Available commands are:
863 .sp 1
864 .PD 0
865 .RSs
866 .IPs conf=<filename>
867 Specify input configuration file other than the default
868 ~/\:.mplayer/\:input.conf.
869 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
870 .IPs ar-delay
871 Delay in milliseconds before we start to autorepeat a key (0 to disable).
872 .IPs ar-rate
873 Number of key presses to generate per second on autorepeat.
874 .IPs keylist
875 Prints all keys that can be bound to commands.
876 .IPs cmdlist
877 Prints all commands that can be bound to keys.
878 .IPs js-dev
879 Specifies the joystick device to use (default: /dev/\:input/\:js0).
880 .IPs file=<filename>
881 Read commands from the given file.
882 Mostly useful with a FIFO.
884 .I NOTE:
885 When the given file is a FIFO MPlayer opens both ends so you can do
886 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
888 .PD 1
891 .B \-key\-fifo\-size <2\-65000>
892 Specify the size of the FIFO that buffers key events (default: 7).
893 A FIFO of size n can buffer (n\-1) events.
894 If it is too small some events may be lost
895 (leading to "stuck mouse buttons" and similar effects).
896 If it is too big, MPlayer may seem to hang while it
897 processes the buffered events.
898 To get the same behavior as before this option was introduced,
899 set it to 2 for Linux or 1024 for Windows.
902 .B \-lircconf <filename> (LIRC only)
903 Specifies a configuration file for LIRC (default: ~/.lircrc).
906 .B \-list\-properties
907 Print a list of the available properties.
910 .B \-loop <number>
911 Loops movie playback <number> times.
912 0 means forever.
915 .B \-menu (OSD menu only)
916 Turn on OSD menu support.
919 .B \-menu\-cfg <filename> (OSD menu only)
920 Use an alternative menu.conf.
923 .B \-menu\-chroot <path> (OSD menu only)
924 Chroot the file selection menu to a specific location.
925 .sp 1
926 .I EXAMPLE:
927 .PD 0
928 .RSs
929 .IPs "\-menu\-chroot /home"
930 Will restrict the file selection menu to /\:home and downward (i.e.\& no
931 access to / will be possible, but /home/user_name will).
933 .PD 1
936 .B \-menu\-keepdir (OSD menu only)
937 File browser starts from the last known location instead of current directory.
940 .B \-menu\-root <value> (OSD menu only)
941 Specify the main menu.
944 .B \-menu\-startup (OSD menu only)
945 Display the main menu at MPlayer startup.
948 .B \-mouse\-movements
949 Permit MPlayer to receive pointer events reported by the video
950 output driver (currently only derivatives of X11 are supported).
951 Necessary to select the buttons in DVD menus.
954 .B \-noconsolecontrols
955 Prevent MPlayer from reading key events from standard input.
956 Useful when reading data from standard input.
957 This is automatically enabled when \- is found on the command line.
958 There are situations where you have to set it manually, e.g.\&
959 if you open /dev/\:stdin (or the equivalent on your system), use stdin
960 in a playlist or intend to read from stdin later on via the loadfile or
961 loadlist slave commands.
964 .B \-nojoystick
965 Turns off joystick support.
968 .B \-nolirc
969 Turns off LIRC support.
972 .B \-nomouseinput
973 Disable mouse button press/\:release input (mozplayerxp's context menu relies
974 on this option).
977 .B \-rtc (RTC only)
978 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
979 mechanism.
980 This wakes up the process every 1/1024 seconds to check the current time.
981 Useless with modern Linux kernels configured for desktop use as they already
982 wake up the process with similar accuracy when using normal timed sleep.
985 .B \-playing\-msg <string>
986 Print out a string before starting playback.
987 The following expansions are supported:
988 .RSs
989 .IPs ${NAME}
990 Expand to the value of the property NAME.
991 .IPs $(NAME:TEXT)
992 Expand TEXT only if the property NAME is available.
996 .B \-playlist <filename>
997 Play files according to a playlist file (ASX, Winamp, SMIL, or
998 one-file-per-line format).
1000 .I NOTE:
1001 This option is considered an entry so options found after it will apply
1002 only to the elements of this playlist.
1004 FIXME: This needs to be clarified and documented thoroughly.
1007 .B \-rtc\-device <device>
1008 Use the specified device for RTC timing.
1011 .B \-shuffle
1012 Play files in random order.
1015 .B \-skin <name> (GUI only)
1016 Loads a skin from the directory given as parameter below the default skin
1017 directories, /usr/\:local/\:share/\:mplayer/\:skins/\: and ~/.mplayer/\:skins/.
1018 .sp 1
1019 .I EXAMPLE:
1020 .PD 0
1021 .RSs
1022 .IPs "\-skin fittyfene"
1023 Tries /usr/\:local/\:share/\:mplayer/\:skins/\:fittyfene
1024 and afterwards ~/.mplayer/\:skins/\:fittyfene.
1026 .PD 1
1029 .B \-slave (also see \-input)
1030 Switches on slave mode, in which MPlayer works as a backend for other programs.
1031 Instead of intercepting keyboard events, MPlayer will read commands separated
1032 by a newline (\\n) from stdin.
1034 .I NOTE:
1035 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1036 for their description.
1039 .B \-softsleep
1040 Time frames by repeatedly checking the current time instead of asking the
1041 kernel to wake up MPlayer at the correct time.
1042 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1043 Comes at the price of higher CPU consumption.
1046 .B \-sstep <sec>
1047 Skip <sec> seconds after every frame.
1048 The normal framerate of the movie is kept, so playback is accelerated.
1049 Since MPlayer can only seek to the next keyframe this may be inexact.
1053 .SH "DEMUXER/STREAM OPTIONS"
1056 .B \-a52drc <level>
1057 Select the Dynamic Range Compression level for AC-3 audio streams.
1058 <level> is a float value ranging from 0 to 1, where 0 means no compression
1059 and 1 (which is the default) means full compression (make loud passages more
1060 silent and vice versa).
1061 This option only shows an effect if the AC-3 stream contains the required range
1062 compression information.
1065 .B \-aid <ID> (also see \-alang)
1066 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1067 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1068 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1069 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1070 (if present) with the chosen audio stream.
1073 .B \-alang <language code[,language code,...]> (also see \-aid)
1074 Specify a priority list of audio languages to use.
1075 Different container formats employ different language codes.
1076 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1077 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1078 MPlayer prints the available languages when run in verbose (\-v) mode.
1079 .sp 1
1080 .I EXAMPLE:
1081 .PD 0
1082 .RSs
1083 .IPs "mplayer dvd://1 \-alang hu,en"
1084 Chooses the Hungarian language track on a DVD and falls back on English if
1085 Hungarian is not available.
1086 .IPs "mplayer \-alang jpn example.mkv"
1087 Plays a Matroska file in Japanese.
1089 .PD 1
1092 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1093 Force audio demuxer type for \-audiofile.
1094 Use a '+' before the name to force it, this will skip some checks!
1095 Give the demuxer name as printed by \-audio\-demuxer help.
1096 For backward compatibility it also accepts the demuxer ID as defined in
1097 libmpdemux/\:demuxer.h.
1098 \-audio\-demuxer audio or \-audio\-demuxer 17 forces MP3.
1101 .B \-audiofile <filename>
1102 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1103 movie.
1106 .B \-audiofile\-cache <kBytes>
1107 Enables caching for the stream used by \-audiofile, using the specified
1108 amount of memory.
1111 .B \-reuse\-socket (udp:// only)
1112 Allows a socket to be reused by other processes as soon as it is closed.
1115 .B \-bandwidth <value> (network only)
1116 Specify the maximum bandwidth for network streaming (for servers that are
1117 able to send content in different bitrates).
1118 Useful if you want to watch live streamed media behind a slow connection.
1119 With Real RTSP streaming, it is also used to set the maximum delivery
1120 bandwidth allowing faster cache filling and stream dumping.
1123 .B \-cache <kBytes>
1124 This option specifies how much memory (in kBytes) to use when precaching a
1125 file or URL.
1126 Especially useful on slow media.
1129 .B \-nocache
1130 Turns off caching.
1133 .B \-cache\-min <percentage>
1134 Playback will start when the cache has been filled up to <percentage>
1135 of the total.
1138 .B \-cache\-seek\-min <percentage>
1139 If a seek is to be made to a position within <percentage> of the cache size
1140 from the current position, MPlayer will wait for the cache to be filled to
1141 this position rather than performing a stream seek (default: 50).
1144 .B \-cdda <option1:option2> (CDDA only)
1145 This option can be used to tune the CD Audio reading feature of MPlayer.
1146 .sp 1
1147 Available options are:
1148 .RSs
1149 .IPs speed=<value>
1150 Set CD spin speed.
1151 .IPs paranoia=<0\-2>
1152 Set paranoia level.
1153 Values other than 0 seem to break playback of anything but the first track.
1154 .RSss
1155 0: disable checking (default)
1157 1: overlap checking only
1159 2: full data correction and verification
1160 .REss
1161 .IPs generic-dev=<value>
1162 Use specified generic SCSI device.
1163 .IPs sector-size=<value>
1164 Set atomic read size.
1165 .IPs overlap=<value>
1166 Force minimum overlap search during verification to <value> sectors.
1167 .IPs toc-bias
1168 Assume that the beginning offset of track 1 as reported in the TOC will be
1169 addressed as LBA 0.
1170 Some Toshiba drives need this for getting track boundaries correct.
1171 .IPs toc-offset=<value>
1172 Add <value> sectors to the values reported when addressing tracks.
1173 May be negative.
1174 .IPs (no)skip
1175 (Never) accept imperfect data reconstruction.
1179 .B \-cdrom\-device <path to device>
1180 Specify the CD-ROM device (default: /dev/\:cdrom).
1183 .B \-channels <number> (also see \-af channels)
1184 Request the number of playback channels (default: 2).
1185 MPlayer asks the decoder to decode the audio into as many channels as
1186 specified.
1187 Then it is up to the decoder to fulfill the requirement.
1188 This is usually only important when playing videos with AC-3 audio (like DVDs).
1189 In that case liba52 does the decoding by default and correctly downmixes the
1190 audio into the requested number of channels.
1191 To directly control the number of output channels independently of how many
1192 channels are decoded, use the channels filter.
1194 .I NOTE:
1195 This option is honored by codecs (AC-3 only), filters (surround) and audio
1196 output drivers (OSS at least).
1197 .sp 1
1198 Available options are:
1199 .sp 1
1200 .PD 0
1201 .RSs
1202 .IPs 2
1203 stereo
1204 .IPs 4
1205 surround
1206 .IPs 6
1207 full 5.1
1209 .PD 1
1212 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1213 Specify which chapter to start playing at.
1214 Optionally specify which chapter to end playing at (default: 1).
1217 .B \-cookies (network only)
1218 Send cookies when making HTTP requests.
1221 .B \-cookies\-file <filename> (network only)
1222 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1223 and skip reading from default locations.
1224 The file is assumed to be in Netscape format.
1227 .B \-delay <sec>
1228 audio delay in seconds (positive or negative float value)
1230 Negative values delay the audio, and positive values delay the video.
1231 Note that this is the exact opposite of the \-audio\-delay MEncoder option.
1233 .I NOTE:
1234 When used with MEncoder, this is not guaranteed to work correctly
1235 with \-ovc copy; use \-audio\-delay instead.
1238 .B \-ignore\-start
1239 Ignore the specified starting time for streams in AVI files.
1240 In MPlayer, this nullifies stream delays in files encoded with
1241 the \-audio\-delay option.
1242 During encoding, this option prevents MEncoder from transferring
1243 original stream start times to the new file; the \-audio\-delay option is
1244 not affected.
1245 Note that MEncoder sometimes adjusts stream starting times
1246 automatically to compensate for anticipated decoding delays, so do not
1247 use this option for encoding without testing it first.
1250 .B \-demuxer <[+]name>
1251 Force demuxer type.
1252 Use a '+' before the name to force it, this will skip some checks!
1253 Give the demuxer name as printed by \-demuxer help.
1254 For backward compatibility it also accepts the demuxer ID as defined in
1255 libmpdemux/\:demuxer.h.
1258 .B \-dumpaudio (MPlayer only)
1259 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1260 in most other cases the resulting file will not be playable).
1261 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1262 on the command line only the last one will work.
1265 .B \-dumpfile <filename> (MPlayer only)
1266 Specify which file MPlayer should dump to.
1267 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream.
1270 .B \-dumpstream (MPlayer only)
1271 Dumps the raw stream to ./stream.dump.
1272 Useful when ripping from DVD or network.
1273 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1274 on the command line only the last one will work.
1277 .B \-dumpvideo (MPlayer only)
1278 Dump raw compressed video stream to ./stream.dump (not very usable).
1279 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1280 on the command line only the last one will work.
1283 .B \-dvbin <options> (DVB only)
1284 Pass the following parameters to the DVB input module, in order to override
1285 the default ones:
1286 .sp 1
1287 .PD 0
1288 .RSs
1289 .IPs card=<1\-4>
1290 Specifies using card number 1\-4 (default: 1).
1291 .IPs file=<filename>
1292 Instructs MPlayer to read the channels list from <filename>.
1293 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1294 or ~/.mplayer/\:channels.conf as a last resort.
1295 .IPs timeout=<1\-30>
1296 Maximum number of seconds to wait when trying to tune a
1297 frequency before giving up (default: 30).
1299 .PD 1
1302 .B \-dvd\-device <path to device> (DVD only)
1303 Specify the DVD device (default: /dev/\:dvd).
1304 You can also specify a directory that contains files previously copied directly
1305 from a DVD (with e.g.\& vobcopy).
1306 Note that using \-dumpstream is usually a better way to
1307 copy DVD titles in the first place (see the examples).
1310 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1311 Try to limit DVD speed (default: 0, no change).
1312 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1313 10800KB/s.
1314 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1315 quiet and fast enough.
1316 MPlayer resets the speed to the drive default value on close.
1317 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1318 10800KB/s.
1320 .I NOTE:
1321 You need write access to the DVD device to change the speed.
1324 .B \-dvdangle <angle ID> (DVD only)
1325 Some DVD discs contain scenes that can be viewed from multiple angles.
1326 Here you can tell MPlayer which angles to use (default: 1).
1329 .B \-edl <filename>
1330 Enables edit decision list (EDL) actions during playback.
1331 Video will be skipped over and audio will be muted and unmuted according to
1332 the entries in the given file.
1333 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1334 on how to use this.
1337 .B \-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see \-ss and \-sb)
1338 Stop at given time or byte position.
1340 .I NOTE:
1341 Byte position is enabled only for MEncoder and will not be accurate, as it can
1342 only stop at a frame boundary.
1343 When used in conjunction with \-ss option, \-endpos time will shift forward by
1344 seconds specified with \-ss.
1345 .sp 1
1346 .I EXAMPLE:
1347 .PD 0
1348 .RSs
1349 .IPs "\-endpos 56"
1350 Stop at 56 seconds.
1351 .IPs "\-endpos 01:10:00"
1352 Stop at 1 hour 10 minutes.
1353 .IPs "\-ss 10 \-endpos 56"
1354 Stop at 1 minute 6 seconds.
1355 .IPs "\-endpos 100mb"
1356 Encode only 100 MB.
1358 .PD 1
1361 .B \-forceidx
1362 Force index rebuilding.
1363 Useful for files with broken index (A/V desync, etc).
1364 This will enable seeking in files where seeking was not possible.
1365 You can fix the index permanently with MEncoder (see the documentation).
1367 .I NOTE:
1368 This option only works if the underlying media supports seeking
1369 (i.e.\& not with stdin, pipe, etc).
1372 .B \-fps <float value>
1373 Override video framerate.
1374 Useful if the original value is wrong or missing.
1377 .B \-frames <number>
1378 Play/\:convert only first <number> frames, then quit.
1381 .B \-hr\-mp3\-seek (MP3 only)
1382 Hi-res MP3 seeking.
1383 Enabled when playing from an external MP3 file, as we need to seek
1384 to the very exact position to keep A/V sync.
1385 Can be slow especially when seeking backwards since it has to rewind
1386 to the beginning to find an exact frame position.
1389 .B \-idx (also see \-forceidx)
1390 Rebuilds index of files if no index was found, allowing seeking.
1391 Useful with broken/\:incomplete downloads, or badly created files.
1393 .I NOTE:
1394 This option only works if the underlying media supports seeking
1395 (i.e.\& not with stdin, pipe, etc).
1398 .B \-noidx
1399 Skip rebuilding index file.
1400 MEncoder skips writing the index with this option.
1403 .B \-ipv4\-only\-proxy (network only)
1404 Skip the proxy for IPv6 addresses.
1405 It will still be used for IPv4 connections.
1408 .B \-loadidx <index file>
1409 The file from which to read the video index data saved by \-saveidx.
1410 This index will be used for seeking, overriding any index data
1411 contained in the AVI itself.
1412 MPlayer will not prevent you from loading an index file generated
1413 from a different AVI, but this is sure to cause unfavorable results.
1415 .I NOTE:
1416 This option is obsolete now that MPlayer has OpenDML support.
1419 .B \-mc <seconds/frame>
1420 maximum A-V sync correction per frame (in seconds)
1423 .B \-mf <option1:option2:...>
1424 Used when decoding from multiple PNG or JPEG files.
1425 .sp 1
1426 Available options are:
1427 .sp 1
1428 .PD 0
1429 .RSs
1430 .IPs w=<value>
1431 input file width (default: autodetect)
1432 .IPs h=<value>
1433 input file height (default: autodetect)
1434 .IPs fps=<value>
1435 output fps (default: 25)
1436 .IPs type=<value>
1437 input file type (available: jpeg, png, tga, sgi)
1439 .PD 1
1442 .B \-ni (AVI only)
1443 Force usage of non-interleaved AVI parser (fixes playback
1444 of some bad AVI files).
1447 .B \-nobps (AVI only)
1448 Do not use average byte/\:second value for A-V sync.
1449 Helps with some AVI files with broken header.
1452 .B \-noextbased
1453 Disables extension-based demuxer selection.
1454 By default, when the file type (demuxer) cannot be detected reliably
1455 (the file has no header or it is not reliable enough), the filename
1456 extension is used to select the demuxer.
1457 Always falls back on content-based demuxer selection.
1460 .B \-passwd <password> (also see \-user) (network only)
1461 Specify password for HTTP authentication.
1464 .B \-prefer\-ipv4 (network only)
1465 Use IPv4 on network connections.
1466 Falls back on IPv6 automatically.
1469 .B \-prefer\-ipv6 (IPv6 network only)
1470 Use IPv6 on network connections.
1471 Falls back on IPv4 automatically.
1474 .B \-psprobe <byte position>
1475 When playing an MPEG-PS stream, this option lets you specify how many
1476 bytes in the stream you want MPlayer to scan in order to identify the
1477 video codec used.
1478 This option is needed to play EVO files containing H.264 streams.
1481 .B \-pvr <option1:option2:...> (PVR only)
1482 This option tunes various encoding properties of the PVR capture module.
1483 It has to be used with any hardware MPEG encoder based card supported by the
1484 V4L2 driver.
1485 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1486 cards are known as PVR capture cards.
1487 Be aware that only Linux 2.6.18 kernel
1488 and above is able to handle MPEG stream through V4L2 layer.
1489 For hardware capture of an MPEG stream and watching it with
1490 MPlayer/MEncoder, use 'pvr://' as a movie URL.
1491 .sp 1
1492 Available options are:
1493 .RSs
1494 .IPs aspect=<0\-3>
1495 Specify input aspect ratio:
1496 .RSss
1497 0: 1:1
1499 1: 4:3 (default)
1501 2: 16:9
1503 3: 2.21:1
1504 .REss
1505 .IPs arate=<32000\-48000>
1506 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1507 and 48000 Hz).
1508 .IPs alayer=<1\-3>
1509 Specify MPEG audio layer encoding (default: 2).
1510 .IPs abitrate=<32\-448>
1511 Specify audio encoding bitrate in kbps (default: 384).
1512 .IPs amode=<value>
1513 Specify audio encoding mode.
1514 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1515 .IPs vbitrate=<value>
1516 Specify average video bitrate encoding in Mbps (default: 6).
1517 .IPs vmode=<value>
1518 Specify video encoding mode:
1519 .RSss
1520 vbr: Variable BitRate (default)
1522 cbr: Constant BitRate
1523 .REss
1524 .IPs vpeak=<value>
1525 Specify peak video bitrate encoding in Mbps
1526 (only useful for VBR encoding, default: 9.6).
1527 .IPs fmt=<value>
1528 Choose an MPEG format for encoding:
1529 .RSss
1530 ps:    MPEG-2 Program Stream (default)
1532 ts:    MPEG-2 Transport Stream
1534 mpeg1: MPEG-1 System Stream
1536 vcd:   Video CD compatible stream
1538 svcd:  Super Video CD compatible stream
1540 dvd:   DVD compatible stream
1541 .REss
1543 .PD 1
1546 .B \-radio <option1:option2:...> (radio only)
1547 These options set various parameters of the radio capture module.
1548 For listening to radio with MPlayer use 'radio://<frequency>'
1549 (if channels option is not given) or 'radio://<channel_number>'
1550 (if channels option is given) as a movie URL.
1551 You can see allowed frequency range by running MPlayer with '\-v'.
1552 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1553 If the capture keyword is not given you can listen to radio
1554 using the line-in cable only.
1555 Using capture to listen is not recommended due to synchronization
1556 problems, which makes this process uncomfortable.
1557 .sp 1
1558 Available options are:
1559 .RSs
1560 .IPs device=<value>
1561 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1562 .IPs driver=<value>
1563 Radio driver to use (default: v4l2 if available, otherwise v4l).
1564 Currently, v4l and v4l2 drivers are supported.
1565 .IPs volume=<0..100>
1566 sound volume for radio device (default 100)
1567 .IPs "freq_min=<value> (*BSD BT848 only)"
1568 minimum allowed frequency (default: 87.50)
1569 .IPs "freq_max=<value> (*BSD BT848 only)"
1570 maximum allowed frequency (default: 108.00)
1571 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1572 Set channel list.
1573 Use _ for spaces in names (or play with quoting ;-).
1574 The channel names will then be written using OSD and the slave commands
1575 radio_step_channel and radio_set_channel will be usable for
1576 a remote control (see LIRC).
1577 If given, number in movie URL will be treated as channel position in
1578 channel list.
1580 .I EXAMPLE:
1581 radio://1, radio://104.4, radio_set_channel 1
1582 .IPs "adevice=<value> (radio capture only)"
1583 Name of device to capture sound from.
1584 Without such a name capture will be disabled,
1585 even if the capture keyword appears in the URL.
1586 For ALSA devices use it in the form hw=<card>.<device>.
1587 If the device name contains a '=', the module will use
1588 ALSA to capture, otherwise OSS.
1589 .IPs "arate=<value> (radio capture only)"
1590 Rate in samples per second (default: 44100).
1592 .I NOTE:
1593 When using audio capture set also \-rawaudio rate=<value> option
1594 with the same value as arate.
1595 If you have problems with sound speed (runs too quickly), try to play
1596 with different rate values (e.g.\& 48000,44100,32000,...).
1597 .IPs "achannels=<value> (radio capture only)"
1598 Number of audio channels to capture.
1602 .B \-rawaudio <option1:option2:...>
1603 This option lets you play raw audio files.
1604 You have to use \-demuxer rawaudio as well.
1605 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1606 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1607 .sp 1
1608 Available options are:
1609 .sp 1
1610 .PD 0
1611 .RSs
1612 .IPs channels=<value>
1613 number of channels
1614 .IPs rate=<value>
1615 rate in samples per second
1616 .IPs samplesize=<value>
1617 sample size in bytes
1618 .IPs bitrate=<value>
1619 bitrate for rawaudio files
1620 .IPs format=<value>
1621 fourcc in hex
1623 .PD 1
1626 .B \-rawvideo <option1:option2:...>
1627 This option lets you play raw video files.
1628 You have to use \-demuxer rawvideo as well.
1629 .sp 1
1630 Available options are:
1631 .sp 1
1632 .PD 0
1633 .RSs
1634 .IPs fps=<value>
1635 rate in frames per second (default: 25.0)
1636 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1637 set standard image size
1638 .IPs w=<value>
1639 image width in pixels
1640 .IPs h=<value>
1641 image height in pixels
1642 .IPs i420|yv12|yuy2|y8
1643 set colorspace
1644 .IPs format=<value>
1645 colorspace (fourcc) in hex or string constant.
1646 Use \-rawvideo format=help for a list of possible strings.
1647 .IPs size=<value>
1648 frame size in Bytes
1649 .REss
1650 .sp 1
1652 .I EXAMPLE:
1654 .PD 0
1655 .RSs
1656 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1657 Play the famous "foreman" sample video.
1658 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1659 Play a raw YUV sample.
1661 .PD 1
1664 .B \-rtsp\-port
1665 Used with 'rtsp://' URLs to force the client's port number.
1666 This option may be useful if you are behind a router and want to forward
1667 the RTSP stream from the server to a specific client.
1670 .B \-rtsp\-destination
1671 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1672 This option may be useful with some RTSP server which do not
1673 send RTP packets to the right interface.
1674 If the connection to the RTSP server fails, use \-v to see
1675 which IP address MPlayer tries to bind to and try to force
1676 it to one assigned to your computer instead.
1679 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1680 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1681 packets be streamed over TCP (using the same TCP connection as RTSP).
1682 This option may be useful if you have a broken internet connection that does
1683 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1686 .B \-saveidx <filename>
1687 Force index rebuilding and dump the index to <filename>.
1688 Currently this only works with AVI files.
1690 .I NOTE:
1691 This option is obsolete now that MPlayer has OpenDML support.
1694 .B \-sb <byte position> (also see \-ss)
1695 Seek to byte position.
1696 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1699 .B \-speed <0.01\-100>
1700 Slow down or speed up playback by the factor given as parameter.
1701 Not guaranteed to work correctly with \-oac copy.
1704 .B \-srate <Hz>
1705 Selects the output sample rate to be used
1706 (of course sound cards have limits on this).
1707 If the sample frequency selected is different from that
1708 of the current media, the resample or lavcresample audio filter will be inserted
1709 into the audio filter layer to compensate for the difference.
1710 The type of resampling can be controlled by the \-af\-adv option.
1711 The default is fast resampling that may cause distortion.
1714 .B \-ss <time> (also see \-sb)
1715 Seek to given time position.
1716 .sp 1
1717 .I EXAMPLE:
1718 .PD 0
1719 .RSs
1720 .IPs "\-ss 56"
1721 Seeks to 56 seconds.
1722 .IPs "\-ss 01:10:00"
1723 Seeks to 1 hour 10 min.
1725 .PD 1
1728 .B \-tskeepbroken
1729 Tells MPlayer not to discard TS packets reported as broken in the stream.
1730 Sometimes needed to play corrupted MPEG-TS files.
1733 .B \-tsprobe <byte position>
1734 When playing an MPEG-TS stream, this option lets you specify how many
1735 bytes in the stream you want MPlayer to search for the desired
1736 audio and video IDs.
1739 .B \-tsprog <1\-65534>
1740 When playing an MPEG-TS stream, you can specify with this option which
1741 program (if present) you want to play.
1742 Can be used with \-vid and \-aid.
1745 .B \-tv <option1:option2:...> (TV/\:PVR only)
1746 This option tunes various properties of the TV capture module.
1747 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1748 or even 'tv://<channel_name> (see option channels for channel_name below)
1749 as a movie URL.
1750 You can also use 'tv:///<input_id>' to start watching a
1751 movie from a composite or S-Video input (see option input for details).
1752 .sp 1
1753 Available options are:
1754 .RSs
1755 .IPs noaudio
1756 no sound
1757 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1758 If signal strength reported by device is less than this value,
1759 audio and video will be muted.
1760 In most cases automute=100 will be enough.
1761 Default is 0 (automute disabled).
1762 .IPs driver=<value>
1763 See \-tv driver=help for a list of compiled-in TV input drivers.
1764 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1765 .IPs device=<value>
1766 Specify TV device (default: /dev/\:video0).
1767 .I NOTE:
1768 For the bsdbt848 driver you can provide both bktr and tuner device
1769 names separating them with a comma, tuner after
1770 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1771 .IPs input=<value>
1772 Specify input (default: 0 (TV), see console output for available inputs).
1773 .IPs freq=<value>
1774 Specify the frequency to set the tuner to (e.g.\& 511.250).
1775 Not compatible with the channels parameter.
1776 .IPs outfmt=<value>
1777 Specify the output format of the tuner with a preset value supported by the
1778 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1779 arbitrary format given as hex value.
1780 Try outfmt=help for a list of all available formats.
1781 .IPs width=<value>
1782 output window width
1783 .IPs height=<value>
1784 output window height
1785 .IPs fps=<value>
1786 framerate at which to capture video (frames per second)
1787 .IPs buffersize=<value>
1788 maximum size of the capture buffer in megabytes (default: dynamical)
1789 .IPs norm=<value>
1790 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1791 For v4l2, see the console output for a list of all available norms,
1792 also see the normid option below.
1793 .IPs "normid=<value> (v4l2 only)"
1794 Sets the TV norm to the given numeric ID.
1795 The TV norm depends on the capture card.
1796 See the console output for a list of available TV norms.
1797 .IPs channel=<value>
1798 Set tuner to <value> channel.
1799 .IPs chanlist=<value>
1800 available: europe-east, europe-west, us-bcast, us-cable, etc
1801 .IPs channels=<channel>\-<name>,<channel>\-<name>,...
1802 Set names for channels.
1803 .I NOTE:
1804 If <channel> is an integer greater than 1000, it will be treated as frequency (in kHz)
1805 rather than channel name from frequency table.
1807 Use _ for spaces in names (or play with quoting ;-).
1808 The channel names will then be written using OSD, and the slave commands
1809 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1810 a remote control (see LIRC).
1811 Not compatible with the frequency parameter.
1813 .I NOTE:
1814 The channel number will then be the position in the 'channels' list,
1815 beginning with 1.
1817 .I EXAMPLE:
1818 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1819 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1820 Set the image equalizer on the card.
1821 .IPs audiorate=<value>
1822 Set audio capture bitrate.
1823 .IPs forceaudio
1824 Capture audio even if there are no audio sources reported by v4l.
1825 .IPs "alsa\ "
1826 Capture from ALSA.
1827 .IPs amode=<0\-3>
1828 Choose an audio mode:
1829 .RSss
1830 0: mono
1832 1: stereo
1834 2: language 1
1836 3: language 2
1837 .REss
1838 .IPs forcechan=<1\-2>
1839 By default, the count of recorded audio channels is determined automatically
1840 by querying the audio mode from the TV card.
1841 This option allows forcing stereo/\:mono recording regardless of the amode
1842 option and the values returned by v4l.
1843 This can be used for troubleshooting when the TV card is unable to report the
1844 current audio mode.
1845 .IPs adevice=<value>
1846 Set an audio device.
1847 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1848 You must replace any ':' by a '.' in the hardware ID for ALSA.
1849 .IPs audioid=<value>
1850 Choose an audio output of the capture card, if it has more than one.
1851 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1852 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1853 These options set parameters of the mixer on the video capture card.
1854 They will have no effect, if your card does not have one.
1855 For v4l2 50 maps to the default value of the
1856 control, as reported by the driver.
1857 .IPs "gain=<0\-100> (v4l2)"
1858 Set gain control for video devices (usually webcams) to the desired
1859 value and switch off automatic control.
1860 A value of 0 enables automatic control.
1861 If this option is omitted, gain control will not be modified.
1862 .IPs immediatemode=<bool>
1863 A value of 0 means capture and buffer audio and video together
1864 (default for MEncoder).
1865 A value of 1 (default for MPlayer) means to do video capture only and let the
1866 audio go through a loopback cable from the TV card to the sound card.
1867 .IPs mjpeg
1868 Use hardware MJPEG compression (if the card supports it).
1869 When using this option, you do not need to specify the width and height
1870 of the output window, because MPlayer will determine it automatically
1871 from the decimation value (see below).
1872 .IPs decimation=<1|2|4>
1873 choose the size of the picture that will be compressed by hardware
1874 MJPEG compression:
1875 .RSss
1876 1: full size
1877     704x576    PAL
1878     704x480    NTSC
1880 2: medium size
1881     352x288    PAL
1882     352x240    NTSC
1884 4: small size
1885     176x144    PAL
1886     176x120    NTSC
1887 .REss
1888 .IPs quality=<0\-100>
1889 Choose the quality of the JPEG compression
1890 (< 60 recommended for full size).
1891 .IPs tdevice=<value>
1892 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
1893 .IPs tformat=<format>
1894 Specify TV teletext display format (default: 0):
1895 .RSss
1896 0: opaque
1898 1: transparent
1900 2: opaque with inverted colors
1902 3: transparent with inverted colors
1903 .REss
1904 .IPs tpage=<100\-899>
1905 Specify initial TV teletext page number (default: 100).
1906 .IPs tlang=<\-1\-127>
1907 Specify default teletext language code (default: 0), which will be used
1908 as primary language until a type 28 packet is received.
1909 Useful when the teletext system uses a non-latin character set, but language
1910 codes are not transmitted via teletext type 28 packets for some reason.
1911 To see a list of supported language codes set this option to \-1.
1912 .IPs "hidden_video_renderer (dshow only)"
1913 Terminate stream with video renderer instead of Null renderer (default: off).
1914 Will help if video freezes but audio does not.
1915 .I NOTE:
1916 May not work with \-vo directx and \-vf crop combination.
1917 .IPs "hidden_vp_renderer (dshow only)"
1918 Terminate VideoPort pin stream with video renderer 
1919 instead of removing it from the graph (default: off).
1920 Useful if your card has a VideoPort pin and video is choppy.
1921 .I NOTE:
1922 May not work with \-vo directx and \-vf crop combination.
1923 .IPs "system_clock (dshow only)"
1924 Use the system clock as sync source instead of the default graph clock
1925 (usually the clock from one of the live sources in graph).
1926 .IPs "normalize_audio_chunks (dshow only)"
1927 Create audio chunks with a time length equal to
1928 video frame time length (default: off).
1929 Some audio cards create audio chunks about 0.5s in size, resulting in
1930 choppy video when using immediatemode=0.
1934 .B \-tvscan <option1:option2:...> (TV and MPlayer only)
1935 Tune the TV channel scanner.
1936 MPlayer will also print value for "-tv channels=" option,
1937 including existing and just found channels.
1938 .sp 1
1939 Available suboptions are:
1940 .RSs
1941 .IPs autostart
1942 Begin channel scanning immediately after startup (default: disabled).
1943 .IPs period=<0.1\-2.0>
1944 Specify delay in seconds before switching to next channel (default: 0.5).
1945 Lower values will cause faster scanning, but can detect
1946 inactive TV channels as active.
1947 .IPs threshold=<1\-100>
1948 Threshold value for the signal strength (in percent), as reported
1949 by the device (default: 50).
1950 A signal strength higher than this value will indicate that the
1951 currently scanning channel is active.
1955 .B \-user <username> (also see \-passwd) (network only)
1956 Specify username for HTTP authentication.
1959 .B \-user\-agent <string>
1960 Use <string> as user agent for HTTP streaming.
1963 .B \-vid <ID>
1964 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
1965 When playing an MPEG-TS stream, MPlayer/\:MEncoder will use the first program
1966 (if present) with the chosen video stream.
1969 .B \-vivo <suboption> (DEBUG CODE)
1970 Force audio parameters for the VIVO demuxer (for debugging purposes).
1971 FIXME: Document this.
1975 .SH "OSD/SUBTITLE OPTIONS"
1976 .I NOTE:
1977 Also see \-vf expand.
1980 .B \-ass (FreeType only)
1981 Turn on SSA/ASS subtitle rendering.
1982 With this option, libass will be used for SSA/ASS
1983 external subtitles and Matroska tracks.
1984 You may also want to use \-embeddedfonts.
1986 .I NOTE:
1987 When fontconfig is compiled-in, \-ass turns on \-fontconfig
1988 unless explicitly turned off with \-nofontconfig.
1991 .B \-ass\-border\-color <value>
1992 Sets the border (outline) color for text subtitles.
1993 The color format is RRGGBBAA.
1996 .B \-ass\-bottom\-margin <value>
1997 Adds a black band at the bottom of the frame.
1998 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2001 .B \-ass\-color <value>
2002 Sets the color for text subtitles.
2003 The color format is RRGGBBAA.
2006 .B \-ass\-font\-scale <value>
2007 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2010 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2011 Override some style parameters.
2013 .I EXAMPLE:
2014 .PD 0
2015 .RSs
2016 \-ass\-force\-style FontName=Arial,Default.Bold=1
2018 .PD 1
2021 .B \-ass\-hinting <type>
2022 Set hinting type.
2023 <type> can be:
2024 .PD 0
2025 .RSs
2026 .IPs 0
2027 no hinting
2028 .IPs 1
2029 FreeType autohinter, light mode
2030 .IPs 2
2031 FreeType autohinter, normal mode
2032 .IPs 3
2033 Font native hinter.
2034 .IPs "0-3 + 4"
2035 The same, but hinting will only be performed if the OSD is rendered at
2036 screen resolution and will therefore not be scaled.
2038 .RSs
2039 The default value is 7 (use native hinter for unscaled OSD and no hinting otherwise).
2041 .PD 1
2044 .B \-ass\-line\-spacing <value>
2045 Set line spacing value for SSA/ASS renderer.
2048 .B \-ass\-styles <filename>
2049 Load all SSA/ASS styles found in the specified file and use them for
2050 rendering text subtitles.
2051 The syntax of the file is exactly like the
2052 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2055 .B \-ass\-top\-margin <value>
2056 Adds a black band at the top of the frame.
2057 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2060 .B \-ass\-use\-margins
2061 Enables placing toptitles and subtitles in black borders when they
2062 are available.
2065 .B \-dumpjacosub (MPlayer only)
2066 Convert the given subtitle (specified with the \-sub option) to the time-based
2067 JACOsub subtitle format.
2068 Creates a dumpsub.js file in the current directory.
2071 .B \-dumpmicrodvdsub (MPlayer only)
2072 Convert the given subtitle (specified with the \-sub option) to the
2073 MicroDVD subtitle format.
2074 Creates a dumpsub.sub file in the current directory.
2077 .B \-dumpmpsub (MPlayer only)
2078 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2079 subtitle format, MPsub.
2080 Creates a dump.mpsub file in the current directory.
2083 .B \-dumpsami (MPlayer only)
2084 Convert the given subtitle (specified with the \-sub option) to the time-based
2085 SAMI subtitle format.
2086 Creates a dumpsub.smi file in the current directory.
2089 .B \-dumpsrtsub (MPlayer only)
2090 Convert the given subtitle (specified with the \-sub option) to the time-based
2091 SubViewer (SRT) subtitle format.
2092 Creates a dumpsub.srt file in the current directory.
2094 .I NOTE:
2095 Some broken hardware players choke on SRT subtitle files with Unix
2096 line endings.
2097 If you are unlucky enough to have such a box, pass your subtitle
2098 files through unix2dos or a similar program to replace Unix line
2099 endings with DOS/Windows line endings.
2102 .B \-dumpsub (MPlayer only) (BETA CODE)
2103 Dumps the subtitle substream from VOB streams.
2104 Also see the \-dump*sub and \-vobsubout* options.
2107 .B \-embeddedfonts (FreeType only)
2108 Enables extraction of Matroska embedded fonts (default: disabled).
2109 These fonts can be used for SSA/ASS subtitle
2110 rendering (\-ass option).
2111 Font files are created in the ~/.mplayer/\:fonts directory.
2113 .I NOTE:
2114 With FontConfig 2.4.2 or newer, embedded fonts are opened directly from memory,
2115 and this option is enabled by default.
2118 .B \-ffactor <number>
2119 Resample the font alphamap.
2120 Can be:
2121 .PD 0
2122 .RSs
2123 .IPs 0
2124 plain white fonts
2125 .IPs 0.75
2126 very narrow black outline (default)
2127 .IPs 1
2128 narrow black outline
2129 .IPs 10
2130 bold black outline
2132 .PD 1
2135 .B \-flip\-hebrew (FriBiDi only)
2136 Turns on flipping subtitles using FriBiDi.
2139 .B \-noflip\-hebrew\-commas
2140 Change FriBiDi's assumptions about the placements of commas in subtitles.
2141 Use this if commas in subtitles are shown at the start of a sentence
2142 instead of at the end.
2145 .B \-font <path to font.desc file>
2146 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2147 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2148 ~/.mplayer/\:subfont.ttf).
2150 .I NOTE:
2151 With FreeType, this option determines the path to the text font file.
2152 With fontconfig, this option determines the fontconfig font name.
2153 .sp 1
2154 .I EXAMPLE:
2155 .PD 0
2156 .RSs
2157 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2159 \-font ~/\:.mplayer/\:arialuni.ttf
2161 \-font 'Bitstream Vera Sans'
2163 .PD 1
2166 .B \-fontconfig (fontconfig only)
2167 Enables the usage of fontconfig managed fonts.
2169 .I NOTE:
2170 \-ass automatically turns this on unless explicitly overridden
2171 with \-nofontconfig.
2174 .B \-forcedsubsonly
2175 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2176 \-slang.
2179 .B \-fribidi\-charset <charset name> (FriBiDi only)
2180 Specifies the character set that will be passed to FriBiDi when
2181 decoding non-UTF-8 subtitles (default: ISO8859-8).
2184 .B \-ifo <VOBsub IFO file>
2185 Indicate the file that will be used to load palette and frame size for VOBsub
2186 subtitles.
2189 .B \-noautosub
2190 Turns off automatic subtitle file loading.
2193 .B \-osd\-duration <time>
2194 Set the duration of the OSD messages in ms (default: 1000).
2197 .B \-osdlevel <0\-3> (MPlayer only)
2198 Specifies which mode the OSD should start in.
2199 .PD 0
2200 .RSs
2201 .IPs 0
2202 subtitles only
2203 .IPs 1
2204 volume + seek (default)
2205 .IPs 2
2206 volume + seek + timer + percentage
2207 .IPs 3
2208 volume + seek + timer + percentage + total time
2210 .PD 1
2213 .B \-overlapsub
2214 Allows the next subtitle to be displayed while the current one is
2215 still visible (default is to enable the support only for specific
2216 formats).
2219 .B \-sid <ID> (also see \-slang, \-vobsubid)
2220 Display the subtitle stream specified by <ID> (0\-31).
2221 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2222 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2225 .B \-slang <language code[,language code,...]> (also see \-sid)
2226 Specify a priority list of subtitle languages to use.
2227 Different container formats employ different language codes.
2228 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2229 three letter language codes while OGM uses a free-form identifier.
2230 MPlayer prints the available languages when run in verbose (\-v) mode.
2231 .sp 1
2232 .I EXAMPLE:
2233 .PD 0
2234 .RSs
2235 .IPs "mplayer dvd://1 \-slang hu,en"
2236 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2237 Hungarian is not available.
2238 .IPs "mplayer \-slang jpn example.mkv"
2239 Plays a Matroska file with Japanese subtitles.
2241 .PD 1
2244 .B \-spuaa <mode>
2245 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2246 A value of 16 may be added to <mode> in order to force scaling even
2247 when original and scaled frame size already match.
2248 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2249 Available modes are:
2250 .PD 0
2251 .RSs
2252 .IPs 0
2253 none (fastest, very ugly)
2254 .IPs 1
2255 approximate (broken?)
2256 .IPs 2
2257 full (slow)
2258 .IPs 3
2259 bilinear (default, fast and not too bad)
2260 .IPs 4
2261 uses swscaler gaussian blur (looks very good)
2263 .PD 1
2266 .B \-spualign <\-1\-2>
2267 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2268 .PD 0
2269 .RSs
2270 .IPs "\-1"
2271 original position
2272 .IPs " 0"
2273 Align at top (original behavior, default).
2274 .IPs " 1"
2275 Align at center.
2276 .IPs " 2"
2277 Align at bottom.
2279 .PD 1
2282 .B \-spugauss <0.0\-3.0>
2283 Variance parameter of gaussian used by \-spuaa 4.
2284 Higher means more blur (default: 1.0).
2287 .B \-sub <subtitlefile1,subtitlefile2,...>
2288 Use/\:display these subtitle files.
2289 Only one file can be displayed at the same time.
2292 .B \-sub\-bg\-alpha <0\-255>
2293 Specify the alpha channel value for subtitles and OSD backgrounds.
2294 Big values mean more transparency.
2295 0 means completely transparent.
2298 .B \-sub\-bg\-color <0\-255>
2299 Specify the color value for subtitles and OSD backgrounds.
2300 Currently subtitles are grayscale so this value is equivalent to the
2301 intensity of the color.
2302 255 means white and 0 black.
2305 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2306 Force subtitle demuxer type for \-subfile.
2307 Use a '+' before the name to force it, this will skip some checks!
2308 Give the demuxer name as printed by \-sub\-demuxer help.
2309 For backward compatibility it also accepts the demuxer ID as defined in
2310 subreader.h.
2313 .B \-sub\-fuzziness <mode>
2314 Adjust matching fuzziness when searching for subtitles:
2315 .PD 0
2316 .RSs
2317 .IPs 0
2318 exact match
2319 .IPs 1
2320 Load all subs containing movie name.
2321 .IPs 2
2322 Load all subs in the current directory.
2324 .PD 1
2327 .B \-sub\-no\-text\-pp
2328 Disables any kind of text post processing done after loading the subtitles.
2329 Used for debug purposes.
2332 .B \-subalign <0\-2>
2333 Specify which edge of the subtitles should be aligned at the height
2334 given by \-subpos.
2335 .PD 0
2336 .RSs
2337 .IPs 0
2338 Align subtitle top edge (original behavior).
2339 .IPs 1
2340 Align subtitle center.
2341 .IPs 2
2342 Align subtitle bottom edge (default).
2344 .PD 1
2347 .B "\-subcc \ "
2348 Display DVD Closed Caption (CC) subtitles.
2349 These are
2350 .B not
2351 the VOB subtitles, these are special ASCII subtitles for the
2352 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2353 CC subtitles have not been spotted on DVDs from other regions so far.
2356 .B \-subcp <codepage> (iconv only)
2357 If your system supports iconv(3), you can use this option to
2358 specify the subtitle codepage.
2359 .sp 1
2360 .I EXAMPLE:
2361 .PD 0
2362 .RSs
2363 \-subcp latin2
2365 \-subcp cp1250
2367 .PD 1
2370 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2371 You can specify your language using a two letter language code to
2372 make ENCA detect the codepage automatically.
2373 If unsure, enter anything and watch mplayer \-v output for available
2374 languages.
2375 Fallback codepage specifies the codepage to use, when autodetection fails.
2376 .sp 1
2377 .I EXAMPLE:
2378 .PD 0
2379 .RSs
2380 .IPs "\-subcp enca:cs:latin2"
2381 Guess the encoding, assuming the subtitles are Czech, fall back on
2382 latin 2, if the detection fails.
2383 .IPs "\-subcp enca:pl:cp1250"
2384 Guess the encoding for Polish, fall back on cp1250.
2386 .PD 1
2389 .B \-subdelay <sec>
2390 Delays subtitles by <sec> seconds.
2391 Can be negative.
2394 .B \-subfile <filename> (BETA CODE)
2395 Currently useless.
2396 Same as \-audiofile, but for subtitle streams (OggDS?).
2399 .B \-subfont <filename> (FreeType only)
2400 Sets the subtitle font.
2401 If no \-subfont is given, \-font is used.
2404 .B \-subfont\-autoscale <0\-3> (FreeType only)
2405 Sets the autoscale mode.
2407 .I NOTE:
2408 0 means that text scale and OSD scale are font heights in points.
2409 .sp 1
2410 The mode can be:
2411 .sp 1
2412 .PD 0
2413 .RSs
2414 .IPs 0
2415 no autoscale
2416 .IPs 1
2417 proportional to movie height
2418 .IPs 2
2419 proportional to movie width
2420 .IPs 3
2421 proportional to movie diagonal (default)
2423 .PD 1
2426 .B \-subfont\-blur <0\-8> (FreeType only)
2427 Sets the font blur radius (default: 2).
2430 .B \-subfont\-encoding <value> (FreeType only)
2431 Sets the font encoding.
2432 When set to 'unicode', all the glyphs from the font file will be rendered and
2433 unicode will be used (default: unicode).
2436 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2437 Sets the autoscale coefficient of the OSD elements (default: 6).
2440 .B \-subfont\-outline <0\-8> (FreeType only)
2441 Sets the font outline thickness (default: 2).
2444 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2445 Sets the subtitle text autoscale coefficient as percentage of the
2446 screen size (default: 5).
2449 .B \-subfps <rate>
2450 Specify the framerate of the subtitle file (default: movie fps).
2452 .I NOTE:
2453 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2454 slows them down for time-based ones.
2457 .B \-subpos <0\-100> (useful with \-vf expand)
2458 Specify the position of subtitles on the screen.
2459 The value is the vertical position of the subtitle in % of the screen height.
2462 .B \-subwidth <10\-100>
2463 Specify the maximum width of subtitles on the screen.
2464 Useful for TV-out.
2465 The value is the width of the subtitle in % of the screen width.
2468 .B \-noterm\-osd
2469 Disable the display of OSD messages on the console when no video output is
2470 available.
2473 .B \-term\-osd\-esc <escape sequence>
2474 Specify the escape sequence to use before writing an OSD message on the
2475 console.
2476 The escape sequence should move the pointer to the beginning of the line
2477 used for the OSD and clear it (default: ^[[A\\r^[[K).
2480 .B \-unicode
2481 Tells MPlayer to handle the subtitle file as unicode.
2484 .B \-unrarexec <path to unrar executable> (does not support MingW currently.)
2485 Specify the path to the unrar executable so MPlayer can use it to access
2486 rar-compressed vobsub files (default: not set, so the feature is off).
2487 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2490 .B "\-utf8 \ \ "
2491 Tells MPlayer to handle the subtitle file as UTF-8.
2494 .B \-vobsub <VOBsub file without extension>
2495 Specify a VOBsub file to use for subtitles.
2496 Has to be the full pathname without extension, i.e.\& without
2497 the '.idx', '.ifo' or '.sub'.
2500 .B \-vobsubid <0\-31>
2501 Specify the VOBsub subtitle ID.
2505 .SH "AUDIO OUTPUT OPTIONS (MPLAYER ONLY)"
2508 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2509 Override audio driver/\:card buffer size detection.
2512 .B \-format <format> (also see the format audio filter)
2513 Select the sample format used for output from the audio filter
2514 layer to the sound card.
2515 The values that <format> can adopt are listed below in the
2516 description of the format audio filter.
2519 .B \-mixer <device>
2520 Use a mixer device different from the default /dev/\:mixer.
2521 For ALSA this is the mixer name.
2524 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2525 This option will tell MPlayer to use a different channel for controlling
2526 volume than the default PCM.
2527 Options for OSS include
2528 .B vol, pcm, line.
2529 For a complete list of options look for SOUND_DEVICE_NAMES in
2530 /usr/\:include/\:linux/\:soundcard.h.
2531 For ALSA you can use the names e.g.\& alsamixer displays, like
2532 .B Master, Line, PCM.
2534 .I NOTE:
2535 ALSA mixer channel names followed by a number must be specified in the
2536 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2537 be converted to
2538 .BR PCM,1 .
2541 .B \-softvol
2542 Force the use of the software mixer, instead of using the sound card
2543 mixer.
2546 .B \-softvol\-max <10.0\-10000.0>
2547 Set the maximum amplification level in percent (default: 110).
2548 A value of 200 will allow you to adjust the volume up to a maximum of
2549 double the current level.
2550 With values below 100 the initial volume (which is 100%) will be above
2551 the maximum, which e.g.\& the OSD cannot display correctly.
2554 .B \-volstep <0\-100>
2555 Set the step size of mixer volume changes in percent of the whole range
2556 (default: 3).
2560 .SH "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
2561 Audio output drivers are interfaces to different audio output facilities.
2562 The syntax is:
2565 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2566 Specify a priority list of audio output drivers to be used.
2568 If the list has a trailing ',' MPlayer will fall back on drivers not
2569 contained in the list.
2570 Suboptions are optional and can mostly be omitted.
2572 .I NOTE:
2573 See \-ao help for a list of compiled-in audio output drivers.
2574 .sp 1
2575 .I EXAMPLE:
2576 .PD 0
2577 .RSs
2578 .IPs "\-ao alsa,oss,"
2579 Try the ALSA driver, then the OSS driver, then others.
2580 .IPs "\-ao alsa:noblock:device=hw=0.3"
2581 Sets noblock-mode and the device-name as first card, fourth device.
2583 .PD 1
2584 .sp 1
2585 Available audio output drivers are:
2588 .B "alsa\ \ \ "
2589 ALSA 0.9/1.x audio output driver
2590 .PD 0
2591 .RSs
2592 .IPs noblock
2593 Sets noblock-mode.
2594 .IPs device=<device>
2595 Sets the device name.
2596 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2597 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2598 you really know how to set it correctly.
2600 .PD 1
2603 .B "alsa5\ \ "
2604 ALSA 0.5 audio output driver
2607 .B "oss\ \ \ \ "
2608 OSS audio output driver
2609 .PD 0
2610 .RSs
2611 .IPs <dsp-device>
2612 Sets the audio output device (default: /dev/\:dsp).
2613 .IPs <mixer-device>
2614 Sets the audio mixer device (default: /dev/\:mixer).
2615 .IPs <mixer-channel>
2616 Sets the audio mixer channel (default: pcm).
2618 .PD 1
2621 .B sdl (SDL only)
2622 highly platform independent SDL (Simple Directmedia Layer) library
2623 audio output driver
2624 .PD 0
2625 .RSs
2626 .IPs <driver>
2627 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2629 .PD 1
2632 .B "arts\ \ \ "
2633 audio output through the aRts daemon
2636 .B "esd\ \ \ \ "
2637 audio output through the ESD daemon
2638 .PD 0
2639 .RSs
2640 .IPs <server>
2641 Explicitly choose the ESD server to use (default: localhost).
2643 .PD 1
2646 .B "jack\ \ \ \ "
2647 audio output through JACK (Jack Audio Connection Kit)
2648 .PD 0
2649 .RSs
2650 .IPs port=<name>
2651 Connects to the ports with the given name (default: physical ports).
2652 .IPs name=<client name>
2653 Client name that is passed to JACK (default: MPlayer [<PID>]).
2654 Useful if you want to have certain connections established automatically.
2655 .IPs (no)estimate
2656 Estimate the audio delay, supposed to make the video playback smoother
2657 (default: enabled).
2659 .PD 1
2662 .B "nas\ \ \ \ "
2663 audio output through NAS
2666 .B macosx (Mac OS X only)
2667 native Mac OS X audio output driver
2670 .B "openal\ "
2671 Experimental OpenAL audio output driver
2674 .B "pulse\ \ "
2675 PulseAudio audio output driver
2676 .PD 0
2677 .RSs
2678 .IPs "[<host>][:<output sink>]"
2679 Specify the host and optionally output sink to use.
2680 An empty <host> string uses a local connection, "localhost"
2681 uses network transfer (most likely not what you want).
2683 .PD 1
2686 .B sgi (SGI only)
2687 native SGI audio output driver
2688 .PD 0
2689 .RSs
2690 .IPs "<output device name>"
2691 Explicitly choose the output device/\:interface to use
2692 (default: system-wide default).
2693 For example, 'Analog Out' or 'Digital Out'.
2695 .PD 1
2698 .B sun (Sun only)
2699 native Sun audio output driver
2700 .PD 0
2701 .RSs
2702 .IPs <device>
2703 Explicitly choose the audio device to use (default: /dev/\:audio).
2705 .PD 1
2708 .B win32 (Windows only)
2709 native Windows waveout audio output driver
2712 .B dsound (Windows only)
2713 DirectX DirectSound audio output driver
2714 .PD 0
2715 .RSs
2716 .IPs device=<devicenum>
2717 Sets the device number to use.
2718 Playing a file with \-v will show a list of available devices.
2720 .PD 1
2723 .B dxr2 (also see \-dxr2) (DXR2 only)
2724 Creative DXR2 specific output driver
2727 .B ivtv (IVTV only)
2728 IVTV specific MPEG audio output driver.
2729 Works with \-ac hwmpa only.
2732 .B v4l2 (requires Linux 2.6.22+ kernel)
2733 Audio output driver for V4L2 cards with hardware MPEG decoder.
2736 .B mpegpes (DVB only)
2737 Audio output driver for DVB cards that writes the output to an MPEG-PES
2738 file if no DVB card is installed.
2739 .PD 0
2740 .RSs
2741 .IPs card=<1\-4>
2742 DVB card to use if more than one card is present.
2743 .IPs file=<filename>
2744 output filename
2746 .PD 1
2749 .B "null\ \ \ "
2750 Produces no audio output but maintains video playback speed.
2751 Use \-nosound for benchmarking.
2754 .B "pcm\ \ \ \ "
2755 raw PCM/wave file writer audio output
2756 .PD 0
2757 .RSs
2758 .IPs (no)waveheader
2759 Include or do not include the wave header (default: included).
2760 When not included, raw PCM will be generated.
2761 .IPs file=<filename>
2762 Write the sound to <filename> instead of the default
2763 audiodump.wav.
2764 If nowaveheader is specified, the default is audiodump.pcm.
2765 .IPs "fast\ "
2766 Try to dump faster than realtime.
2767 Make sure the output does not get truncated (usually with
2768 "Too many video packets in buffer" message).
2769 It is normal that you get a "Your system is too SLOW to play this!" message.
2771 .PD 1
2774 .B "plugin\ \ "
2775 plugin audio output driver
2779 .SH "VIDEO OUTPUT OPTIONS (MPLAYER ONLY)"
2782 .B \-adapter <value>
2783 Set the graphics card that will receive the image.
2784 You can get a list of available cards when you run this option with \-v.
2785 Currently only works with the directx video output driver.
2788 .B \-bpp <depth>
2789 Override the autodetected color depth.
2790 Only supported by the fbdev, dga, svga, vesa video output drivers.
2793 .B \-border
2794 Play movie with window border and decorations.
2795 Since this is on by default, use \-noborder to disable the standard window
2796 decorations.
2797 Supported by the directx video output driver.
2800 .B \-brightness <\-100\-100>
2801 Adjust the brightness of the video signal (default: 0).
2802 Not supported by all video output drivers.
2805 .B \-contrast <\-100\-100>
2806 Adjust the contrast of the video signal (default: 0).
2807 Not supported by all video output drivers.
2810 .B \-display <name> (X11 only)
2811 Specify the hostname and display number of the X server you want to display
2813 .sp 1
2814 .I EXAMPLE:
2815 .PD 0
2816 .RSs
2817 \-display xtest.localdomain:0
2819 .PD 1
2822 .B "\-dr \ \ \ "
2823 Turns on direct rendering (not supported by all codecs and video outputs)
2825 .I WARNING:
2826 May cause OSD/SUB corruption!
2829 .B \-dxr2 <option1:option2:...>
2830 This option is used to control the dxr2 video output driver.
2831 .RSs
2832 .IPs ar-mode=<value>
2833 aspect ratio mode (0 = normal, 1 = pan-and-scan, 2 = letterbox (default))
2834 .IPs iec958-encoded
2835 Set iec958 output mode to encoded.
2836 .IPs iec958-decoded
2837 Set iec958 output mode to decoded (default).
2838 .IPs macrovision=<value>
2839 macrovision mode (0 = off (default), 1 = agc, 2 = agc 2 colorstripe,
2840 3 = agc 4 colorstripe)
2841 .IPs "mute\ "
2842 mute sound output
2843 .IPs unmute
2844 unmute sound output
2845 .IPs ucode=<value>
2846 path to the microcode
2849 .sp 1
2850 .I TV output
2852 .RSs
2853 .IPs 75ire
2854 enable 7.5 IRE output mode
2855 .IPs no75ire
2856 disable 7.5 IRE output mode (default)
2857 .IPs "bw\ \ \ "
2858 b/w TV output
2859 .IPs color
2860 color TV output (default)
2861 .IPs interlaced
2862 interlaced TV output (default)
2863 .IPs nointerlaced
2864 disable interlaced TV output
2865 .IPs norm=<value>
2866 TV norm (ntsc (default), pal, pal60, palm, paln, palnc)
2867 .IPs square-pixel
2868 set pixel mode to square
2869 .IPs ccir601-pixel
2870 set pixel mode to ccir601
2873 .sp 1
2874 .I overlay
2876 .RSs
2877 .IPs cr-left=<0\-500>
2878 Set the left cropping value (default: 50).
2879 .IPs cr-right=<0\-500>
2880 Set the right cropping value (default: 300).
2881 .IPs cr-top=<0\-500>
2882 Set the top cropping value (default: 0).
2883 .IPs cr-bottom=<0\-500>
2884 Set the bottom cropping value (default: 0).
2885 .IPs ck-[r|g|b]=<0\-255>
2886 Set the r(ed), g(reen) or b(lue) gain of the overlay color-key.
2887 .IPs ck-[r|g|b]min=<0\-255>
2888 minimum value for the respective color key
2889 .IPs ck-[r|g|b]max=<0\-255>
2890 maximum value for the respective color key
2891 .IPs ignore-cache
2892 Ignore cached overlay settings.
2893 .IPs update-cache
2894 Update cached overlay settings.
2895 .IPs ol-osd
2896 Enable overlay onscreen display.
2897 .IPs nool-osd
2898 Disable overlay onscreen display (default).
2899 .IPs ol[h|w|x|y]-cor=<\-20\-20>
2900 Adjust the overlay size (h,w) and position (x,y) in case it does not
2901 match the window perfectly (default: 0).
2902 .IPs overlay
2903 Activate overlay (default).
2904 .IPs nooverlay
2905 Activate TVout.
2906 .IPs overlay-ratio=<1\-2500>
2907 Tune the overlay (default: 1000).
2911 .B \-fbmode <modename> (\-vo fbdev only)
2912 Change video mode to the one that is labeled as <modename> in
2913 /etc/\:fb.modes.
2915 .I NOTE:
2916 VESA framebuffer does not support mode changing.
2919 .B \-fbmodeconfig <filename> (\-vo fbdev only)
2920 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
2923 .B \-fs (also see \-zoom)
2924 Fullscreen playback (centers movie, and paints black bands around it).
2925 Not supported by all video output drivers.
2928 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
2929 Try this option if you still experience fullscreen problems.
2932 .B \-fstype <type1,type2,...> (X11 only)
2933 Specify a priority list of fullscreen modes to be used.
2934 You can negate the modes by prefixing them with '\-'.
2935 If you experience problems like the fullscreen window being covered
2936 by other windows try using a different order.
2938 .I NOTE:
2939 See \-fstype help for a full list of available modes.
2940 .sp 1
2941 The available types are:
2942 .sp 1
2943 .PD 0
2944 .RSs
2945 .IPs above
2946 Use the _NETWM_STATE_ABOVE hint if available.
2947 .IPs below
2948 Use the _NETWM_STATE_BELOW hint if available.
2949 .IPs fullscreen
2950 Use the _NETWM_STATE_FULLSCREEN hint if available.
2951 .IPs layer
2952 Use the _WIN_LAYER hint with the default layer.
2953 .IPs layer=<0...15>
2954 Use the _WIN_LAYER hint with the given layer number.
2955 .IPs netwm
2956 Force NETWM style.
2957 .IPs "none\ "
2958 Do not set fullscreen window layer.
2959 .IPs stays_on_top
2960 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
2961 .REss
2962 .sp 1
2964 .I EXAMPLE:
2966 .PD 0
2967 .RSs
2968 .IPs layer,stays_on_top,above,fullscreen
2969 Default order, will be used as a fallback if incorrect or
2970 unsupported modes are specified.
2971 .IPs \-fullscreen
2972 Fixes fullscreen switching on OpenBox 1.x.
2974 .PD 1
2977 .B \-geometry x[%][:y[%]] or [WxH][+x+y]
2978 Adjust where the output is on the screen initially.
2979 The x and y specifications are in pixels measured from the top-left of the
2980 screen to the top-left of the image being displayed, however if a percentage
2981 sign is given after the argument it turns the value into a percentage of the
2982 screen size in that direction.
2983 It also supports the standard X11 \-geometry option format.
2984 If an external window is specified using the \-wid option, then the x and
2985 y coordinates are relative to the top-left corner of the window rather
2986 than the screen.
2988 .I NOTE:
2989 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
2990 gl, gl2, directx and tdfxfb video output drivers.
2991 .sp 1
2992 .I EXAMPLE:
2993 .PD 0
2994 .RSs
2995 .IPs 50:40
2996 Places the window at x=50, y=40.
2997 .IPs 50%:50%
2998 Places the window in the middle of the screen.
2999 .IPs "100%\ "
3000 Places the window at the middle of the right edge of the screen.
3001 .IPs 100%:100%
3002 Places the window at the bottom right corner of the screen.
3004 .PD 1
3007 .B \-guiwid <window ID> (also see \-wid) (GUI only)
3008 This tells the GUI to also use an X11 window and stick itself to the bottom
3009 of the video, which is useful to embed a mini-GUI in a browser (with the
3010 MPlayer plugin for instance).
3013 .B \-hue <\-100\-100>
3014 Adjust the hue of the video signal (default: 0).
3015 You can get a colored negative of the image with this option.
3016 Not supported by all video output drivers.
3019 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3020 Specify the dotclock or pixelclock range of the monitor.
3023 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3024 Specify the horizontal frequency range of the monitor.
3027 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3028 Specify the vertical frequency range of the monitor.
3031 .B \-monitoraspect <ratio> (also see \-aspect)
3032 Set the aspect ratio of your monitor or TV screen.
3033 A value of 0 disables a previous setting (e.g.\& in the config file).
3034 Overrides the \-monitorpixelaspect setting if enabled.
3035 .sp 1
3036 .I EXAMPLE:
3037 .PD 0
3038 .RSs
3039 \-monitoraspect 4:3  or 1.3333
3041 \-monitoraspect 16:9 or 1.7777
3043 .PD 1
3046 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3047 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3048 A value of 1 means square pixels
3049 (correct for (almost?) all LCDs).
3052 .B \-nodouble
3053 Disables double buffering, mostly for debugging purposes.
3054 Double buffering fixes flicker by storing two frames in memory, and
3055 displaying one while decoding another.
3056 It can affect OSD negatively, but often removes OSD flickering.
3059 .B \-nograbpointer
3060 Do not grab the mouse pointer after a video mode change (\-vm).
3061 Useful for multihead setups.
3064 .B \-nokeepaspect
3065 Do not keep window aspect ratio when resizing windows.
3066 Only works with the x11, xv, xmga, xvidix, directx video output drivers.
3067 Furthermore under X11 your window manager has to honor window aspect hints.
3070 .B "\-ontop\ "
3071 Makes the player window stay on top of other windows.
3072 Supported by video output drivers which use X11, except SDL,
3073 as well as directx, macosx, quartz, ggi and gl2.
3076 .B \-panscan <0.0\-1.0>
3077 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3078 movie to make it fit a 4:3 display without black bands).
3079 The range controls how much of the image is cropped.
3080 Only works with the xv, xmga, mga, gl, gl2, quartz, macosx and xvidix
3081 video output drivers.
3083 .I NOTE:
3084 Values between \-1 and 0 are allowed as well, but highly experimental
3085 and may crash or worse.
3086 Use at your own risk!
3089 .B \-panscanrange <\-19.0\-99.0> (experimental)
3090 Change the range of the pan-and-scan functionality (default: 1).
3091 Positive values mean multiples of the default range.
3092 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3093 E.g. \-panscanrange \-3 allows a zoom factor of up to 4.
3094 This feature is experimental.
3095 Do not report bugs unless you are using \-vo gl.
3098 .B \-refreshrate <Hz>
3099 Set the monitor refreshrate in Hz.
3100 Currently only supported by \-vo directx combined with the \-vm option.
3103 .B \-rootwin
3104 Play movie in the root window (desktop background).
3105 Desktop background images may cover the movie window, though.
3106 Only works with the x11, xv, xmga, xvidix, quartz, macosx and directx video output drivers.
3109 .B \-saturation <\-100\-100>
3110 Adjust the saturation of the video signal (default: 0).
3111 You can get grayscale output with this option.
3112 Not supported by all video output drivers.
3115 .B \-screenh <pixels>
3116 Specify the vertical screen resolution for video output drivers which
3117 do not know the screen resolution like fbdev, x11 and TVout.
3120 .B \-screenw <pixels>
3121 Specify the horizontal screen resolution for video output drivers which
3122 do not know the screen resolution like fbdev, x11 and TVout.
3125 .B \-stop\-xscreensaver (X11 only)
3126 Turns off xscreensaver at startup and turns it on again on exit.
3129 .B "\-vm \ \ \ "
3130 Try to change to a different video mode.
3131 Supported by the dga, x11, xv, sdl and directx video output drivers.
3132 If used with the directx video output driver the \-screenw,
3133 \-screenh, \-bpp and \-refreshrate options can be used to set
3134 the new display mode.
3137 .B "\-vsync \ \ "
3138 Enables VBI for the vesa, dfbmga and svga video output drivers.
3141 .B \-wid <window ID> (also see \-guiwid) (X11, OpenGL and DirectX only)
3142 This tells MPlayer to attach to an existing window.
3143 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3146 .B \-xineramascreen <\-2\-...> (X11 only)
3147 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3148 displays) this option tells MPlayer which screen to display the movie on.
3149 A value of \-2 means fullscreen across the whole virtual display (in this case
3150 Xinerama information is completely ignored), \-1 means
3151 fullscreen on the display the window currently is on.
3152 The initial position set via the \-geometry option is relative to the
3153 specified screen.
3154 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3157 .B \-zrbw (\-vo zr only)
3158 Display in black and white.
3159 For optimal performance, this can be combined with '\-lavdopts gray'.
3162 .B \-zrcrop <[width]x[height]+[x offset]+[y offset]> (\-vo zr only)
3163 Select a part of the input image to display, multiple occurrences
3164 of this option switch on cinerama mode.
3165 In cinerama mode the movie is distributed over more than one TV
3166 (or beamer) to create a larger image.
3167 Options appearing after the n-th \-zrcrop apply to the n-th MJPEG card, each
3168 card should at least have a \-zrdev in addition to the \-zrcrop.
3169 For examples, see the output of \-zrhelp and the Zr section of the
3170 documentation.
3173 .B \-zrdev <device> (\-vo zr only)
3174 Specify the device special file that belongs to your MJPEG card, by default
3175 the zr video output driver takes the first v4l device it can find.
3178 .B \-zrfd (\-vo zr only)
3179 Force decimation: Decimation, as specified by \-zrhdec and \-zrvdec, only
3180 happens if the hardware scaler can stretch the image to its original size.
3181 Use this option to force decimation.
3184 .B \-zrhdec <1|2|4> (\-vo zr only)
3185 Horizontal decimation: Ask the driver to send only every 2nd or 4th
3186 line/\:pixel of the input image to the MJPEG card and use the scaler
3187 of the MJPEG card to stretch the image to its original size.
3190 .B \-zrhelp (\-vo zr only)
3191 Display a list of all \-zr* options, their default values and a
3192 cinerama mode example.
3195 .B \-zrnorm <norm> (\-vo zr only)
3196 Specify the TV norm as PAL or NTSC (default: no change).
3199 .B \-zrquality <1\-20> (\-vo zr only)
3200 A number from 1 (best) to 20 (worst) representing the JPEG encoding quality.
3203 .B \-zrvdec <1|2|4> (\-vo zr only)
3204 Vertical decimation: Ask the driver to send only every 2nd or 4th
3205 line/\:pixel of the input image to the MJPEG card and use the scaler
3206 of the MJPEG card to stretch the image to its original size.
3209 .B \-zrxdoff <x display offset> (\-vo zr only)
3210 If the movie is smaller than the TV screen, this option specifies the x
3211 offset from the upper-left corner of the TV screen (default: centered).
3214 .B \-zrydoff <y display offset> (\-vo zr only)
3215 If the movie is smaller than the TV screen, this option specifies the y
3216 offset from the upper-left corner of the TV screen (default: centered).
3220 .SH "VIDEO OUTPUT DRIVERS (MPLAYER ONLY)"
3221 Video output drivers are interfaces to different video output facilities.
3222 The syntax is:
3225 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3226 Specify a priority list of video output drivers to be used.
3228 If the list has a trailing ',' MPlayer will fall back on drivers not
3229 contained in the list.
3230 Suboptions are optional and can mostly be omitted.
3232 .I NOTE:
3233 See \-vo help for a list of compiled-in video output drivers.
3234 .sp 1
3235 .I EXAMPLE:
3236 .PD 0
3237 .RSs
3238 .IPs "\-vo xmga,xv,"
3239 Try the Matrox X11 driver, then the Xv driver, then others.
3240 .IPs "\-vo directx:noaccel"
3241 Uses the DirectX driver with acceleration features turned off.
3243 .PD 1
3244 .sp 1
3245 Available video output drivers are:
3248 .B xv (X11 only)
3249 Uses the XVideo extension of XFree86 4.x to enable hardware
3250 accelerated playback.
3251 If you cannot use a hardware specific driver, this is probably
3252 the best option.
3253 For information about what colorkey is used and how it is drawn run MPlayer
3254 with \-v option and look out for the lines tagged with [xv common] at the
3255 beginning.
3256 .PD 0
3257 .RSs
3258 .IPs port=<number>
3259 Select a specific XVideo port.
3260 .IPs ck=<cur|use|set>
3261 Select the source from which the colorkey is taken (default: cur).
3262 .RSss
3263 .IPs cur
3264 The default takes the colorkey currently set in Xv.
3265 .IPs use
3266 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3267 it).
3268 .IPs set
3269 Same as use but also sets the supplied colorkey.
3271 .IPs ck-method=<man|bg|auto>
3272 Sets the colorkey drawing method (default: man).
3273 .RSss
3274 .IPs man
3275 Draw the colorkey manually (reduces flicker in some cases).
3276 .IPs bg
3277 Set the colorkey as window background.
3278 .IPs auto
3279 Let Xv draw the colorkey.
3282 .PD 1
3285 .B x11 (X11 only)
3286 Shared memory video output driver without hardware acceleration that
3287 works whenever X11 is present.
3290 .B xover (X11 only)
3291 Adds X11 support to all overlay based video output drivers.
3292 Currently only supported by tdfx_vid.
3293 .PD 0
3294 .RSs
3295 .IPs <vo_driver>
3296 Select the driver to use as source to overlay on top of X11.
3298 .PD 1
3301 .B xvmc (X11 with \-vc ffmpeg12mc only)
3302 Video output driver that uses the XvMC (X Video Motion Compensation)
3303 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3304 .PD 0
3305 .RSs
3306 .IPs port=<number>
3307 Select a specific XVideo port.
3308 .IPs (no)benchmark
3309 Disables image display.
3310 Necessary for proper benchmarking of drivers that change
3311 image buffers on monitor retrace only (nVidia).
3312 Default is not to disable image display (nobenchmark).
3313 .IPs (no)bobdeint
3314 Very simple deinterlacer.
3315 Might not look better than \-vf tfields=1,
3316 but it is the only deinterlacer for xvmc (default: nobobdeint).
3317 .IPs (no)queue
3318 Queue frames for display to allow more parallel work of the video hardware.
3319 May add a small (not noticeable) constant A/V desync (default: noqueue).
3320 .IPs (no)sleep
3321 Use sleep function while waiting for rendering to finish
3322 (not recommended on Linux) (default: nosleep).
3323 .IPs ck=cur|use|set
3324 Same as \-vo xv:ck (see \-vo xv).
3325 .IPs ck-method=man|bg|auto
3326 Same as \-vo xv:ck-method (see \-vo xv).
3328 .PD 1
3331 .B dga (X11 only)
3332 Play video through the XFree86 Direct Graphics Access extension.
3333 Considered obsolete.
3336 .B sdl (SDL only)
3337 Highly platform independent SDL (Simple Directmedia Layer) library
3338 video output driver.
3339 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3340 any effect on SDL.
3341 .PD 0
3342 .RSs
3343 .IPs driver=<driver>
3344 Explicitly choose the SDL driver to use.
3345 .IPs (no)forcexv
3346 Use XVideo through the sdl video output driver (default: forcexv).
3347 .IPs (no)hwaccel
3348 Use hardware accelerated scaler (default: hwaccel).
3350 .PD 1
3353 .B "vidix\ \ "
3354 VIDIX (VIDeo Interface for *niX) is an interface to the
3355 video acceleration features of different graphics cards.
3356 Very fast video output driver on cards that support it.
3357 .PD 0
3358 .RSs
3359 .IPs <subdevice>
3360 Explicitly choose the VIDIX subdevice driver to use.
3361 Available subdevice drivers are cyberblade, mach64,
3362 mga_crtc2, mga, nvidia, pm2, pm3, radeon, rage128, sis_vid and unichrome.
3364 .PD 1
3367 .B xvidix (X11 only)
3368 X11 frontend for VIDIX
3369 .PD 0
3370 .RSs
3371 .IPs <subdevice>
3372 same as vidix
3374 .PD 1
3377 .B "cvidix\ "
3378 Generic and platform independent VIDIX frontend, can even run in a
3379 text console with nVidia cards.
3380 .PD 0
3381 .RSs
3382 .IPs <subdevice>
3383 same as vidix
3385 .PD 1
3388 .B winvidix (Windows only)
3389 Windows frontend for VIDIX
3390 .PD 0
3391 .RSs
3392 .IPs <subdevice>
3393 same as vidix
3395 .PD 1
3398 .B directx (Windows only)
3399 Video output driver that uses the DirectX interface.
3400 .PD 0
3401 .RSs
3402 .IPs noaccel
3403 Turns off hardware acceleration.
3404 Try this option if you have display problems.
3406 .PD 1
3409 .B quartz (Mac OS X only)
3410 Mac OS X Quartz video output driver.
3411 Under some circumstances, it might be more efficient to force a
3412 packed YUV output format, with e.g.\& \-vf format=yuy2.
3413 .PD 0
3414 .RSs
3415 .IPs device_id=<number>
3416 Choose the display device to use in fullscreen.
3417 .IPs fs_res=<width>:<height>
3418 Specify the fullscreen resolution (useful on slow systems).
3420 .PD 1
3423 .B macosx (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3424 Mac OS X CoreVideo video output driver
3425 .PD 0
3426 .RSs
3427 .IPs device_id=<number>
3428 Choose the display device to use in fullscreen.
3430 .PD 1
3433 .B fbdev (Linux only)
3434 Uses the kernel framebuffer to play video.
3435 .PD 0
3436 .RSs
3437 .IPs <device>
3438 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0) or the
3439 name of the VIDIX subdevice if the device name starts with 'vidix'
3440 (e.g.\& 'vidixsis_vid' for the sis driver).
3442 .PD 1
3445 .B fbdev2 (Linux only)
3446 Uses the kernel framebuffer to play video,
3447 alternative implementation.
3448 .PD 0
3449 .RSs
3450 .IPs <device>
3451 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3453 .PD 1
3456 .B "vesa\ \ \ "
3457 Very general video output driver that should work on any VESA VBE 2.0
3458 compatible card.
3459 .PD 0
3460 .RSs
3461 .IPs (no)dga
3462 Turns DGA mode on or off (default: on).
3463 .IPs neotv_pal
3464 Activate the NeoMagic TV out and set it to PAL norm.
3465 .IPs neotv_ntsc
3466 Activate the NeoMagic TV out and set it to NTSC norm.
3467 .IPs vidix
3468 Use the VIDIX driver.
3469 .IPs "lvo:\ \ \ "
3470 Activate the Linux Video Overlay on top of VESA mode.
3472 .PD 1
3475 .B "svga\ \ \ "
3476 Play video using the SVGA library.
3477 .PD 0
3478 .RSs
3479 .IPs "<video mode>"
3480 Specify video mode to use.
3481 The mode can be given in a <width>x<height>x<colors> format,
3482 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3483 .IPs bbosd
3484 Draw OSD into black bands below the movie (slower).
3485 .IPs native
3486 Use only native drawing functions.
3487 This avoids direct rendering, OSD and hardware acceleration.
3488 .IPs retrace
3489 Force frame switch on vertical retrace.
3490 Usable only with \-double.
3491 It has the same effect as the \-vsync option.
3492 .IPs "sq\ \ \ "
3493 Try to select a video mode with square pixels.
3494 .IPs vidix
3495 Use svga with VIDIX.
3497 .PD 1
3500 .B "gl\ \ \ \ \ "
3501 OpenGL video output driver, simple version.
3502 Video size must be smaller than
3503 the maximum texture size of your OpenGL implementation.
3504 Intended to work even with the most basic OpenGL implementations,
3505 but also makes use of newer extensions, which allow support for more
3506 colorspaces and direct rendering.
3507 Please use \-dr if it works with your OpenGL implementation,
3508 since for higher resolutions this provides a
3509 .B big
3510 speedup.
3511 The code performs very few checks, so if a feature does not work, this
3512 might be because it is not supported by your card/OpenGL implementation
3513 even if you do not get any error message.
3514 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3515 .PD 0
3516 .RSs
3517 .IPs (no)scaled-osd
3518 Changes the way the OSD behaves when the size of the
3519 window changes (default: disabled).
3520 When enabled behaves more like the other video output drivers,
3521 which is better for fixed-size fonts.
3522 Disabled looks much better with FreeType fonts and uses the
3523 borders in fullscreen mode.
3524 Does not work correctly with ass subtitles (see \-ass), you can instead
3525 render them without OpenGL support via \-vf ass.
3526 .IPs osdcolor=<0xRRGGBB>
3527 Color for OSD (default: 0xffffff, corresponds to white).
3528 .IPs rectangle=<0,1,2>
3529 Select usage of rectangular textures which saves video RAM, but often is
3530 slower (default: 0).
3531 .RSss
3532 0: Use power-of-two textures (default).
3534 1: Use the GL_ARB_texture_rectangle extension.
3536 2: Use the GL_ARB_texture_non_power_of_two extension.
3537 In some cases only supported in software and thus very slow.
3539 .IPs swapinterval=<n>
3540 Minimum interval between two buffer swaps, counted in
3541 displayed frames (default: 1).
3542 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3543 Values below 0 will leave it at the system default.
3544 This limits the framerate to (horizontal refresh rate / n).
3545 Requires GLX_SGI_swap_control support to work.
3546 With some (most/all?) implementations this only works in fullscreen mode.
3547 .IPs yuv=<n>
3548 Select the type of YUV to RGB conversion.
3549 .RSss
3550 0: Use software conversion (default).
3551 Compatible with all OpenGL versions.
3552 Provides brightness, contrast and saturation control.
3554 1: Use register combiners.
3555 This uses an nVidia-specific extension (GL_NV_register_combiners).
3556 At least three texture units are needed.
3557 Provides saturation and hue control.
3558 This method is fast but inexact.
3560 2: Use a fragment program.
3561 Needs the GL_ARB_fragment_program extension and at least three texture units.
3562 Provides brightness, contrast, saturation and hue control.
3564 3: Use a fragment program using the POW instruction.
3565 Needs the GL_ARB_fragment_program extension and at least three texture units.
3566 Provides brightness, contrast, saturation, hue and gamma control.
3567 Gamma can also be set independently for red, green and blue.
3568 Method 4 is usually faster.
3570 4: Use a fragment program with additional lookup.
3571 Needs the GL_ARB_fragment_program extension and at least four texture units.
3572 Provides brightness, contrast, saturation, hue and gamma control.
3573 Gamma can also be set independently for red, green and blue.
3575 5: Use ATI-specific method (for older cards).
3576 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3577 GL_ARB_fragment_shader!).
3578 At least three texture units are needed.
3579 Provides saturation and hue control.
3580 This method is fast but inexact.
3582 6: Use a 3D texture to do conversion via lookup.
3583 Needs the GL_ARB_fragment_program extension and at least four texture units.
3584 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3585 a texture with border pixels.
3586 Provides brightness, contrast, saturation, hue and gamma control.
3587 Gamma can also be set independently for red, green and blue.
3588 Speed depends more on GPU memory bandwidth than other methods.
3590 .IPs lscale=<n>
3591 Select the scaling function to use for luminance scaling.
3592 Only valid for yuv modes 2, 3, 4 and 6.
3593 .RSss
3594 0: Use simple linear filtering (default).
3596 1: Use bicubic B-spline filtering (better quality).
3597 Needs one additional texture unit.
3598 Older cards will not be able to handle this for chroma at least in fullscreen mode.
3600 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
3601 Works on a few more cards than method 1.
3603 .IPs cscale=<n>
3604 Select the scaling function to use for chrominance scaling.
3605 For details see lscale.
3606 .IPs customprog=<filename>
3607 Load a custom fragment program from <filename>.
3608 See TOOLS/edgedect.fp for an example.
3609 .IPs customtex=<filename>
3610 Load a custom "gamma ramp" texture from <filename>.
3611 This can be used in combination with yuv=4 or with the customprog option.
3612 .IPs (no)customtlin
3613 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
3614 for customtex texture.
3615 .IPs (no)customtrect
3616 If enabled, use texture_rectangle for customtex texture.
3617 Default is disabled.
3619 .sp 1
3621 Normally there is no reason to use the following options, they mostly
3622 exist for testing purposes.
3624 .sp 1
3625 .RSs
3626 .IPs (no)glfinish
3627 Call glFinish() before swapping buffers.
3628 Slower but in some cases more correct output (default: disabled).
3629 .IPs (no)manyfmts
3630 Enables support for more (RGB and BGR) color formats (default: enabled).
3631 Needs OpenGL version >= 1.2.
3632 .IPs slice-height=<0\-...>
3633 Number of lines copied to texture in one piece (default: 0).
3634 0 for whole image.
3636 .I NOTE:
3637 If YUV colorspace is used (see yuv suboption), special rules apply:
3638 .RSss
3639 If the decoder uses slice rendering (see \-noslices), this setting
3640 has no effect, the size of the slices as provided by the decoder is used.
3642 If the decoder does not use slice rendering, the default is 16.
3644 .IPs (no)osd
3645 Enable or disable support for OSD rendering via OpenGL (default: enabled).
3646 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
3647 .IPs (no)aspect
3648 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
3649 Disabling might increase speed.
3650 .REss
3652 .PD 1
3655 .B "gl2\ \ \ \ "
3656 OpenGL video output driver, second generation.
3657 Supports OSD and videos larger than the maximum texture size.
3658 .PD 0
3659 .RSs
3660 .IPs (no)glfinish
3661 same as gl (default: enabled)
3662 .IPs yuv=<n>
3663 Select the type of YUV to RGB conversion.
3664 If set to anything except 0 OSD will be disabled and brightness, contrast and
3665 gamma setting is only available via the global X server settings.
3666 Apart from this the values have the same meaning as for \-vo gl.
3667 .REss
3670 .B "null\ \ \ "
3671 Produces no video output.
3672 Useful for benchmarking.
3675 .B "aa\ \ \ \ \ "
3676 ASCII art video output driver that works on a text console.
3677 You can get a list and an explanation of available suboptions
3678 by executing 'mplayer \-vo aa:help'.
3680 .I NOTE:
3681 The driver does not handle \-aspect correctly.
3683 .I HINT:
3684 You probably have to specify \-monitorpixelaspect.
3685 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
3688 .B "caca\ \ \ "
3689 Color ASCII art video output driver that works on a text console.
3692 .B "bl\ \ \ \ \ "
3693 Video playback using the Blinkenlights UDP protocol.
3694 This driver is highly hardware specific.
3695 .PD 0
3696 .RSs
3697 .IPs <subdevice>
3698 Explicitly choose the Blinkenlights subdevice driver to use.
3699 It is something like arcade:host=localhost:2323 or
3700 hdl:file=name1,file=name2.
3701 You must specify a subdevice.
3703 .PD 1
3706 .B "ggi\ \ \ \ "
3707 GGI graphics system video output driver
3708 .PD 0
3709 .RSs
3710 .IPs <driver>
3711 Explicitly choose the GGI driver to use.
3712 Replace any ',' that would appear in the driver string by a '.'.
3714 .PD 1
3717 .B directfb
3718 Play video using the DirectFB library.
3719 .PD 0
3720 .RSs
3721 .IPs (no)input
3722 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
3723 .IPs buffermode=single|double|triple
3724 Double and triple buffering give best results if you want to avoid tearing issues.
3725 Triple buffering is more efficient than double buffering as it does
3726 not block MPlayer while waiting for the vertical retrace.
3727 Single buffering should be avoided (default: single).
3728 .IPs fieldparity=top|bottom
3729 Control the output order for interlaced frames (default: disabled).
3730 Valid values are top = top fields first, bottom = bottom fields first.
3731 This option does not have any effect on progressive film material
3732 like most MPEG movies are.
3733 You need to enable this option if you have tearing issues or unsmooth
3734 motions watching interlaced film material.
3735 .IPs layer=N
3736 Will force layer with ID N for playback (default: \-1 \- auto).
3737 .IPs dfbopts=<list>
3738 Specify a parameter list for DirectFB.
3740 .PD 1
3743 .B "dfbmga\ "
3744 Matrox G400/\:G450/\:G550 specific video output driver that uses the
3745 DirectFB library to make use of special hardware features.
3746 Enables CRTC2 (second head), displaying video independently of the first head.
3747 .PD 0
3748 .RSs
3749 .IPs (no)input
3750 same as directfb (default: disabled)
3751 .IPs buffermode=single|double|triple
3752 same as directfb (default: triple)
3753 .IPs fieldparity=top|bottom
3754 same as directfb
3755 .IPs (no)bes
3756 Enable the use of the Matrox BES (backend scaler) (default: disabled).
3757 Gives very good results concerning speed and output quality as interpolated
3758 picture processing is done in hardware.
3759 Works only on the primary head.
3760 .IPs (no)spic
3761 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
3762 .IPs (no)crtc2
3763 Turn on TV-out on the second head (default: enabled).
3764 The output quality is amazing as it is a full interlaced picture
3765 with proper sync to every odd/\:even field.
3766 .IPs tvnorm=pal|ntsc|auto
3767 Will set the TV norm of the Matrox card without the need
3768 for modifying /etc/\:directfbrc (default: disabled).
3769 Valid norms are pal = PAL, ntsc = NTSC.
3770 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
3771 which norm to use by looking at the framerate of the movie.
3773 .PD 1
3776 .B mga (Linux only)
3777 Matrox specific video output driver that makes use of the YUV back
3778 end scaler on Gxxx cards through a kernel module.
3779 If you have a Matrox card, this is the fastest option.
3780 .PD 0
3781 .RSs
3782 .IPs <device>
3783 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
3785 .PD 1
3788 .B xmga (Linux, X11 only)
3789 The mga video output driver, running in an X11 window.
3790 .PD 0
3791 .RSs
3792 .IPs <device>
3793 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
3795 .PD 1
3798 .B s3fb (Linux only) (see also \-vf yuv2 and \-dr)
3799 S3 Virge specific video output driver.
3800 This driver supports the card's YUV conversion and scaling, double
3801 buffering and direct rendering features.
3802 Use \-vf yuy2 to get hardware-accelerated YUY2 rendering, which is
3803 much faster than YV12 on this card.
3804 .PD 0
3805 .RSs
3806 .IPs <device>
3807 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3809 .PD 1
3812 .B 3dfx (Linux only)
3813 3dfx-specific video output driver that directly uses
3814 the hardware on top of X11.
3815 Only 16 bpp are supported.
3818 .B tdfxfb (Linux only)
3819 This driver employs the tdfxfb framebuffer driver to play movies with
3820 YUV acceleration on 3dfx cards.
3821 .PD 0
3822 .RSs
3823 .IPs <device>
3824 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3826 .PD 1
3829 .B tdfx_vid (Linux only)
3830 3dfx-specific video output driver that works in combination with
3831 the tdfx_vid kernel module.
3832 .PD 0
3833 .RSs
3834 .IPs <device>
3835 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
3837 .PD 1
3840 .B dxr2 (also see \-dxr2) (DXR2 only)
3841 Creative DXR2 specific video output driver.
3842 .PD 0
3843 .RSs
3844 .IPs <vo_driver>
3845 Output video subdriver to use as overlay (x11, xv).
3847 .PD 1
3850 .B dxr3 (DXR3 only)
3851 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
3852 Hollywood Plus) specific video output driver.
3853 Also see the lavc video filter.
3854 .PD 0
3855 .RSs
3856 .IPs overlay
3857 Activates the overlay instead of TVOut.
3858 .IPs prebuf
3859 Turns on prebuffering.
3860 .IPs "sync\ "
3861 Will turn on the new sync-engine.
3862 .IPs norm=<norm>
3863 Specifies the TV norm.
3864 .RSss
3865 0: Does not change current norm (default).
3867 1: Auto-adjust using PAL/\:NTSC.
3869 2: Auto-adjust using PAL/\:PAL-60.
3871 3: PAL
3873 4: PAL-60
3875 5: NTSC
3876 .REss
3877 .IPs <0\-3>
3878 Specifies the device number to use if you have more than one em8300 card.
3880 .PD 1
3883 .B ivtv (IVTV only)
3884 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
3885 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
3886 specific video output driver for TV-Out.
3887 Also see the lavc video filter.
3888 .PD 0
3889 .RSs
3890 .IPs device
3891 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
3892 .IPs output
3893 Explicitly choose the TV-Out output to be used for the video signal.
3895 .PD 1
3898 .B v4l2 (requires Linux 2.6.22+ kernel)
3899 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
3900 Also see the lavc video filter.
3901 .PD 0
3902 .RSs
3903 .IPs device
3904 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
3905 .IPs output
3906 Explicitly choose the TV-Out output to be used for the video signal.
3908 .PD 1
3911 .B mpegpes (DVB only)
3912 Video output driver for DVB cards that writes the output to an MPEG-PES file
3913 if no DVB card is installed.
3914 .PD 0
3915 .RSs
3916 .IPs card=<1\-4>
3917 Specifies the device number to use if you have more than one DVB output card
3918 (V3 API only, such as 1.x.y series drivers).
3919 .IPs <filename>
3920 output filename (default: ./grab.mpg)
3922 .PD 1
3925 .B zr (also see \-zr* and \-zrhelp)
3926 Video output driver for a number of MJPEG capture/\:playback cards.
3929 .B zr2 (also see the zrmjpeg video filter)
3930 Video output driver for a number of MJPEG capture/\:playback cards,
3931 second generation.
3932 .PD 0
3933 .RSs
3934 .IPs dev=<device>
3935 Specifies the video device to use.
3936 .IPs norm=<PAL|NTSC|SECAM|auto>
3937 Specifies the video norm to use (default: auto).
3938 .IPs (no)prebuf
3939 (De)Activate prebuffering, not yet supported.
3941 .PD 1
3944 .B "md5sum\ "
3945 Calculate MD5 sums of each frame and write them to a file.
3946 Supports RGB24 and YV12 colorspaces.
3947 Useful for debugging.
3948 .PD 0
3949 .RSs
3950 .IPs outfile=<value>
3951 Specify the output filename (default: ./md5sums).
3953 .PD 1
3956 .B yuv4mpeg
3957 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
3958 images and stores it in a file (default: ./stream.yuv).
3959 The format is the same as the one employed by mjpegtools, so this is
3960 useful if you want to process the video with the mjpegtools suite.
3961 It supports the YV12, RGB (24 bpp) and BGR (24 bpp) format.
3962 You can combine it with the \-fixed\-vo option to concatenate files
3963 with the same dimensions and fps value.
3964 .PD 0
3965 .RSs
3966 .IPs interlaced
3967 Write the output as interlaced frames, top field first.
3968 .IPs interlaced_bf
3969 Write the output as interlaced frames, bottom field first.
3970 .IPs file=<filename>
3971 Write the output to <filename> instead of the default stream.yuv.
3972 .REss
3973 .PD 1
3975 .sp 1
3976 .I NOTE:
3977 If you do not specify any option the output is progressive
3978 (i.e.\& not interlaced).
3982 .B "gif89a\ "
3983 Output each frame into a single animated GIF file in the current directory.
3984 It supports only RGB format with 24 bpp and the output is converted to 256
3985 colors.
3986 .PD 0
3987 .RSs
3988 .IPs <fps>
3989 Float value to specify framerate (default: 5.0).
3990 .IPs <output>
3991 Specify the output filename (default: ./out.gif).
3992 .REss
3993 .PD 1
3995 .sp 1
3996 .I NOTE:
3997 You must specify the framerate before the filename or the framerate will
3998 be part of the filename.
3999 .sp 1
4000 .I EXAMPLE:
4002 .PD 0
4003 .RSs
4004 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4006 .PD 1
4009 .B "jpeg\ \ \ "
4010 Output each frame into a JPEG file in the current directory.
4011 Each file takes the frame number padded with leading zeros as name.
4012 .PD 0
4013 .RSs
4014 .IPs [no]progressive
4015 Specify standard or progressive JPEG (default: noprogressive).
4016 .IPs [no]baseline
4017 Specify use of baseline or not (default: baseline).
4018 .IPs optimize=<0\-100>
4019 optimization factor (default: 100)
4020 .IPs smooth=<0\-100>
4021 smooth factor (default: 0)
4022 .IPs quality=<0\-100>
4023 quality factor (default: 75)
4024 .IPs outdir=<dirname>
4025 Specify the directory to save the JPEG files to (default: ./).
4026 .IPs subdirs=<prefix>
4027 Create numbered subdirectories with the specified prefix to
4028 save the files in instead of the current directory.
4029 .IPs "maxfiles=<value> (subdirs only)"
4030 Maximum number of files to be saved per subdirectory.
4031 Must be equal to or larger than 1 (default: 1000).
4033 .PD 1
4036 .B "pnm\ \ \ \ "
4037 Output each frame into a PNM file in the current directory.
4038 Each file takes the frame number padded with leading zeros as name.
4039 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4040 Also see pnm(5), ppm(5) and pgm(5).
4041 .PD 0
4042 .RSs
4043 .IPs "ppm\ \ "
4044 Write PPM files (default).
4045 .IPs "pgm\ \ "
4046 Write PGM files.
4047 .IPs pgmyuv
4048 Write PGMYUV files.
4049 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4050 bottom of the picture.
4051 .IPs "raw\ \ "
4052 Write PNM files in raw mode (default).
4053 .IPs ascii
4054 Write PNM files in ASCII mode.
4055 .IPs outdir=<dirname>
4056 Specify the directory to save the PNM files to (default: ./).
4057 .IPs subdirs=<prefix>
4058 Create numbered subdirectories with the specified prefix to
4059 save the files in instead of the current directory.
4060 .IPs "maxfiles=<value> (subdirs only)"
4061 Maximum number of files to be saved per subdirectory.
4062 Must be equal to or larger than 1 (default: 1000).
4064 .PD 1
4067 .B "png\ \ \ \ "
4068 Output each frame into a PNG file in the current directory.
4069 Each file takes the frame number padded with leading zeros as name.
4070 24bpp RGB and BGR formats are supported.
4071 .PD 0
4072 .RSs
4073 .IPs z=<0\-9>
4074 Specifies the compression level.
4075 0 is no compression, 9 is maximum compression.
4077 .PD 1
4080 .B "tga\ \ \ \ "
4081 Output each frame into a Targa file in the current directory.
4082 Each file takes the frame number padded with leading zeros as name.
4083 The purpose of this video output driver is to have a simple lossless
4084 image writer to use without any external library.
4085 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4086 You can force a particular format with the format video filter.
4087 .sp 1
4088 .I EXAMPLE:
4090 .PD 0
4091 .RSs
4092 mplayer video.nut \-vf format=bgr15 \-vo tga
4094 .PD 1
4098 .SH "DECODING/FILTERING OPTIONS"
4101 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4102 Specify a priority list of audio codecs to be used, according to their codec
4103 name in codecs.conf.
4104 Use a '\-' before the codec name to omit it.
4105 Use a '+' before the codec name to force it, this will likely crash!
4106 If the list has a trailing ',' MPlayer will fall back on codecs not
4107 contained in the list.
4109 .I NOTE:
4110 See \-ac help for a full list of available codecs.
4111 .sp 1
4112 .I EXAMPLE:
4113 .PD 0
4114 .RSs
4115 .IPs "\-ac mp3acm"
4116 Force the l3codeca.acm MP3 codec.
4117 .IPs "\-ac mad,"
4118 Try libmad first, then fall back on others.
4119 .IPs "\-ac hwac3,a52,"
4120 Try hardware AC-3 passthrough, software AC-3, then others.
4121 .IPs "\-ac hwdts,"
4122 Try hardware DTS passthrough, then fall back on others.
4123 .IPs "\-ac \-ffmp3,"
4124 Skip FFmpeg's MP3 decoder.
4126 .PD 1
4129 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4130 Specify advanced audio filter options:
4131 .RSs
4132 .IPs force=<0\-7>
4133 Forces the insertion of audio filters to one of the following:
4134 .RSss
4135 0: Use completely automatic filter insertion.
4137 1: Optimize for accuracy (default).
4139 2: Optimize for speed.
4140 .I Warning:
4141 Some features in the audio filters may silently fail,
4142 and the sound quality may drop.
4144 3: Use no automatic insertion of filters and no optimization.
4145 .I Warning:
4146 It may be possible to crash MPlayer using this setting.
4148 4: Use automatic insertion of filters according to 0 above,
4149 but use floating point processing when possible.
4151 5: Use automatic insertion of filters according to 1 above,
4152 but use floating point processing when possible.
4154 6: Use automatic insertion of filters according to 2 above,
4155 but use floating point processing when possible.
4157 7: Use no automatic insertion of filters according to 3 above,
4158 and use floating point processing when possible.
4159 .REss
4160 .IPs list=<filters>
4161 Same as \-af.
4165 .B \-afm <driver1,driver2,...>
4166 Specify a priority list of audio codec families to be used, according
4167 to their codec name in codecs.conf.
4168 Falls back on the default codecs if none of the given codec families work.
4170 .I NOTE:
4171 See \-afm help for a full list of available codec families.
4172 .sp 1
4173 .I EXAMPLE:
4174 .PD 0
4175 .RSs
4176 .IPs "\-afm ffmpeg"
4177 Try FFmpeg's libavcodec codecs first.
4178 .IPs "\-afm acm,dshow"
4179 Try Win32 codecs first.
4181 .PD 1
4184 .B \-aspect <ratio> (also see \-zoom)
4185 Override movie aspect ratio, in case aspect information is
4186 incorrect or missing in the file being played.
4187 .sp 1
4188 .I EXAMPLE:
4189 .PD 0
4190 .RSs
4191 \-aspect 4:3  or \-aspect 1.3333
4193 \-aspect 16:9 or \-aspect 1.7777
4195 .PD 1
4198 .B \-noaspect
4199 Disable automatic movie aspect ratio compensation.
4202 .B "\-field\-dominance <\-1\-1>"
4203 Set first field for interlaced content.
4204 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4205 \-vf yadif=1 and \-vo xvmc:bobdeint.
4206 .PD 0
4207 .RSs
4208 .IPs \-1
4209 auto (default): If the decoder does not export the appropriate information,
4210 it falls back to 0 (top field first).
4211 .IPs 0
4212 top field first
4213 .IPs 1
4214 bottom field first
4216 .PD 1
4219 .B "\-flip \ "
4220 Flip image upside-down.
4223 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4224 Specify libavcodec decoding parameters.
4225 Separate multiple options with a colon.
4226 .sp 1
4227 .I EXAMPLE:
4228 .PD 0
4229 .RSs
4230 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4232 .PD 1
4233 .sp 1
4235 Available options are:
4237 .RSs
4238 .IPs bitexact
4239 Only use bit-exact algorithms in all decoding steps (for codec testing).
4240 .IPs bug=<value>
4241 Manually work around encoder bugs.
4242 .RSss
4243 0: nothing
4245 1: autodetect bugs (default)
4247 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4249 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4251 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4253 16 (mpeg4): padding bug (autodetected)
4255 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4257 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4259 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4261 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4263 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4265 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4266 .REss
4267 .IPs debug=<value>
4268 Display debugging information.
4269 .RSss
4271 0: disabled
4273 1: picture info
4275 2: rate control
4277 4: bitstream
4279 8: macroblock (MB) type
4281 16: per-block quantization parameter (QP)
4283 32: motion vector
4285 0x0040: motion vector visualization (use \-noslices)
4287 0x0080: macroblock (MB) skip
4289 0x0100: startcode
4291 0x0200: PTS
4293 0x0400: error resilience
4295 0x0800: memory management control operations (H.264)
4297 0x1000: bugs
4299 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4301 0x4000: Visualize block types.
4302 .REss
4303 .IPs ec=<value>
4304 Set error concealment strategy.
4305 .RSss
4306 1: Use strong deblock filter for damaged MBs.
4308 2: iterative motion vector (MV) search (slow)
4310 3: all (default)
4311 .REss
4312 .IPs er=<value>
4313 Set error resilience strategy.
4314 .RSss
4316 0: disabled
4318 1: careful (Should work with broken encoders.)
4320 2: normal (default) (Works with compliant encoders.)
4322 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4324 4: very aggressive
4325 .REss
4326 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4327 Enable optimizations which do not comply to the specification and might
4328 potentially cause problems, like simpler dequantization, simpler motion
4329 compensation, assuming use of the default quantization matrix, assuming
4330 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4331 .IPs "gray\ "
4332 grayscale only decoding (a bit faster than with color)
4333 .IPs "idct=<0\-99> (see \-lavcopts)"
4334 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4335 This may come at a price in accuracy, though.
4336 .IPs lowres=<number>[,<w>]
4337 Decode at lower resolutions.
4338 Low resolution decoding is not supported by all codecs, and it will
4339 often result in ugly artifacts.
4340 This is not a bug, but a side effect of not decoding at full resolution.
4341 .RSss
4343 0: disabled
4345 1: 1/2 resolution
4347 2: 1/4 resolution
4349 3: 1/8 resolution
4350 .REss
4352 If <w> is specified lowres decoding will be used only if the width of the
4353 video is major than or equal to <w>.
4355 .IPs "sb=<number> (MPEG-2 only)"
4356 Skip the given number of macroblock rows at the bottom.
4357 .IPs "st=<number> (MPEG-2 only)"
4358 Skip the given number of macroblock rows at the top.
4359 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4360 Skips the loop filter (AKA deblocking) during H.264 decoding.
4361 Since the filtered frame is supposed to be used as reference
4362 for decoding dependent frames this has a worse effect on quality
4363 than not doing deblocking on e.g.\& MPEG-2 video.
4364 But at least for high bitrate HDTV this provides a big speedup with
4365 no visible quality loss.
4366 .sp 1
4367 <skipvalue> can be either one of the following:
4368 .RSss
4370 none: Never skip.
4372 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4374 nonref: Skip frames that are not referenced (i.e.\& not used for
4375 decoding other frames, the error cannot "build up").
4377 bidir: Skip B-Frames.
4379 nonkey: Skip all frames except keyframes.
4381 all: Skip all frames.
4382 .REss
4383 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4384 Skips the IDCT step.
4385 This degrades quality a lot of in almost all cases
4386 (see skiploopfilter for available skip values).
4387 .IPs skipframe=<skipvalue>
4388 Skips decoding of frames completely.
4389 Big speedup, but jerky motion and sometimes bad artifacts
4390 (see skiploopfilter for available skip values).
4391 .IPs "threads=<1\-8> (MPEG-1/2 and H.264 only)"
4392 number of threads to use for decoding (default: 1)
4393 .IPs vismv=<value>
4394 Visualize motion vectors.
4395 .RSss
4397 0: disabled
4399 1: Visualize forward predicted MVs of P-frames.
4401 2: Visualize forward predicted MVs of B-frames.
4403 4: Visualize backward predicted MVs of B-frames.
4404 .REss
4405 .IPs vstats
4406 Prints some statistics and stores them in ./vstats_*.log.
4410 .B \-noslices
4411 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4412 whole frame in a single run.
4413 May be faster or slower, depending on video card and available cache.
4414 It has effect only with libmpeg2 and libavcodec codecs.
4417 .B \-nosound
4418 Do not play/\:encode sound.
4419 Useful for benchmarking.
4422 .B \-novideo
4423 Do not play/\:encode video.
4424 In many cases this will not work, use \-vc null \-vo null instead.
4427 .B \-pp <quality> (also see \-vf pp)
4428 Set the DLL postprocess level.
4429 This option is no longer usable with \-vf pp.
4430 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4431 The valid range of \-pp values varies by codec, it is mostly
4432 0\-6, where 0=disable, 6=slowest/\:best.
4435 .B \-pphelp (also see \-vf pp)
4436 Show a summary about the available postprocess filters and their usage.
4439 .B \-ssf <mode>
4440 Specifies software scaler parameters.
4441 .sp 1
4442 .I EXAMPLE:
4443 .PD 0
4444 .RSs
4445 \-vf scale \-ssf lgb=3.0
4447 .PD 1
4448 .PD 0
4449 .RSs
4450 .IPs lgb=<0\-100>
4451 gaussian blur filter (luma)
4452 .IPs cgb=<0\-100>
4453 gaussian blur filter (chroma)
4454 .IPs ls=<\-100\-100>
4455 sharpen filter (luma)
4456 .IPs cs=<\-100\-100>
4457 sharpen filter (chroma)
4458 .IPs chs=<h>
4459 chroma horizontal shifting
4460 .IPs cvs=<v>
4461 chroma vertical shifting
4463 .PD 1
4466 .B \-stereo <mode>
4467 Select type of MP2/\:MP3 stereo output.
4468 .PD 0
4469 .RSs
4470 .IPs 0
4471 stereo
4472 .IPs 1
4473 left channel
4474 .IPs 2
4475 right channel
4477 .PD 1
4480 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4481 Specify the software scaler algorithm to be used with the \-zoom option.
4482 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4483 .sp 1
4484 Available types are:
4485 .sp 1
4486 .PD 0
4487 .RSs
4488 .IPs 0
4489 fast bilinear
4490 .IPs 1
4491 bilinear
4492 .IPs 2
4493 bicubic (good quality) (default)
4494 .IPs 3
4495 experimental
4496 .IPs 4
4497 nearest neighbor (bad quality)
4498 .IPs 5
4499 area
4500 .IPs 6
4501 luma bicubic / chroma bilinear
4502 .IPs 7
4503 gauss
4504 .IPs 8
4505 sincR
4506 .IPs 9
4507 lanczos
4508 .IPs 10
4509 natural bicubic spline
4511 .PD 1
4512 .sp 1
4514 .I NOTE:
4515 Some \-sws options are tunable.
4516 The description of the scale video filter has further information.
4520 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
4521 Specify a priority list of video codecs to be used, according to their codec
4522 name in codecs.conf.
4523 Use a '\-' before the codec name to omit it.
4524 Use a '+' before the codec name to force it, this will likely crash!
4525 If the list has a trailing ',' MPlayer will fall back on codecs not
4526 contained in the list.
4528 .I NOTE:
4529 See \-vc help for a full list of available codecs.
4530 .sp 1
4531 .I EXAMPLE:
4532 .PD 0
4533 .RSs
4534 .IPs "\-vc divx"
4535 Force Win32/\:VfW DivX codec, no fallback.
4536 .IPs "\-vc \-divxds,\-divx,"
4537 Skip Win32 DivX codecs.
4538 .IPs "\-vc ffmpeg12,mpeg12,"
4539 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
4541 .PD 1
4544 .B \-vfm <driver1,driver2,...>
4545 Specify a priority list of video codec families to be used, according
4546 to their names in codecs.conf.
4547 Falls back on the default codecs if none of the given codec families work.
4549 .I NOTE:
4550 See \-vfm help for a full list of available codec families.
4551 .sp 1
4552 .I EXAMPLE:
4553 .PD 0
4554 .RSs
4555 .IPs "\-vfm ffmpeg,dshow,vfw"
4556 Try the libavcodec, then Directshow, then VfW codecs and fall back
4557 on others, if they do not work.
4558 .IPs "\-vfm xanim"
4559 Try XAnim codecs first.
4561 .PD 1
4564 .B \-x <x> (also see \-zoom) (MPlayer only)
4565 Scale image to width <x> (if software/\:hardware scaling is available).
4566 Disables aspect calculations.
4569 .B \-xvidopts <option1:option2:...>
4570 Specify additional parameters when decoding with Xvid.
4572 .I NOTE:
4573 Since libavcodec is faster than Xvid you might want to use the libavcodec
4574 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
4575 .sp 1
4576 Xvid's internal postprocessing filters:
4577 .PD 0
4578 .RSs
4579 .IPs "deblock-chroma (also see \-vf pp)"
4580 chroma deblock filter
4581 .IPs "deblock-luma (also see \-vf pp)"
4582 luma deblock filter
4583 .IPs "dering-luma (also see \-vf pp)"
4584 luma deringing filter
4585 .IPs "dering-chroma (also see \-vf pp)"
4586 chroma deringing filter
4587 .IPs "filmeffect (also see \-vf noise)"
4588 Adds artificial film grain to the video.
4589 May increase perceived quality, while lowering true quality.
4591 .sp 1
4593 rendering methods:
4595 .PD 0
4596 .RSs
4597 .IPs "dr2\ \ "
4598 Activate direct rendering method 2.
4599 .IPs nodr2
4600 Deactivate direct rendering method 2.
4602 .PD 1
4605 .B \-xy <value> (also see \-zoom)
4606 .PD 0
4607 .RSs
4608 .IPs value<=8
4609 Scale image by factor <value>.
4610 .IPs value>8
4611 Set width to value and calculate height to keep correct aspect ratio.
4613 .PD 1
4616 .B \-y <y> (also see \-zoom) (MPlayer only)
4617 Scale image to height <y> (if software/\:hardware scaling is available).
4618 Disables aspect calculations.
4621 .B "\-zoom\ \ "
4622 Allow software scaling, where available.
4623 This will allow scaling with output drivers (like x11, fbdev) that
4624 do not support hardware scaling where MPlayer disables scaling by
4625 default for performance reasons.
4629 .SH "AUDIO FILTERS"
4630 Audio filters allow you to modify the audio stream and its properties.
4631 The syntax is:
4634 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
4635 Setup a chain of audio filters.
4637 .I NOTE:
4638 To get a full list of available audio filters, see \-af help.
4640 Available filters are:
4643 .B resample[=srate[:sloppy[:type]]]
4644 Changes the sample rate of the audio stream.
4645 Can be used if you have a fixed frequency sound card or if you are
4646 stuck with an old sound card that is only capable of max 44.1kHz.
4647 This filter is automatically enabled if necessary.
4648 It only supports 16-bit integer and float in native-endian format as input.
4650 .I NOTE:
4651 With MEncoder, you need to also use \-srate <srate>.
4652 .PD 0
4653 .RSs
4654 .IPs <srate>
4655 output sample frequency in Hz.
4656 The valid range for this parameter is 8000 to 192000.
4657 If the input and output sample frequency are the same or if this
4658 parameter is omitted the filter is automatically unloaded.
4659 A high sample frequency normally improves the audio quality,
4660 especially when used in combination with other filters.
4661 .IPs <sloppy>
4662 Allow (1) or disallow (0) the output frequency to differ slightly
4663 from the frequency given by <srate> (default: 1).
4664 Can be used if the startup of the playback is extremely slow.
4665 .IPs <type>
4666 Selects which resampling method to use.
4667 .RSss
4668 0: linear interpolation (fast, poor quality especially when upsampling)
4670 1: polyphase filterbank and integer processing
4672 2: polyphase filterbank and floating point processing (slow, best quality)
4673 .REss
4674 .PD 1
4676 .sp 1
4678 .I EXAMPLE:
4680 .PD 0
4681 .RSs
4682 .IPs "mplayer \-af resample=44100:0:0"
4683 would set the output frequency of the resample filter to 44100Hz using
4684 exact output frequency scaling and linear interpolation.
4686 .PD 1
4689 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
4690 Changes the sample rate of the audio stream to an integer <srate> in Hz.
4691 It only supports the 16-bit native-endian format.
4693 .I NOTE:
4694 With MEncoder, you need to also use \-srate <srate>.
4695 .PD 0
4696 .RSs
4697 .IPs <srate>
4698 the output sample rate
4699 .IPs <length>
4700 length of the filter with respect to the lower sampling rate (default: 16)
4701 .IPs <linear>
4702 if 1 then filters will be linearly interpolated between polyphase entries
4703 .IPs <count>
4704 log2 of the number of polyphase entries
4705 (..., 10->1024, 11->2048, 12->4096, ...)
4706 (default: 10->1024)
4707 .IPs <cutoff>
4708 cutoff frequency (0.0\-1.0), default set depending upon filter length
4710 .PD 1
4713 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
4714 Encode multi-channel audio to AC-3 at runtime using libavcodec.
4715 Supports 16-bit native-endian input format, maximum 6 channels.
4716 The output is big-endian when outputting a raw AC-3 stream,
4717 native-endian when outputting to S/PDIF.
4718 The output sample rate of this filter is same with the input sample rate.
4719 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
4720 Otherwise a resampler filter is auto-inserted before this filter to make
4721 the input and output sample rate be 48kHz.
4722 You need to specify '\-channels N' to make the decoder decode audio into
4723 N-channel, then the filter can encode the N-channel input to AC-3.
4725 .PD 0
4726 .RSs
4727 .IPs <tospdif>
4728 Output raw AC-3 stream if zero or not set,
4729 output to S/PDIF for passthrough when <tospdif> is set non-zero.
4730 .IPs <bitrate>
4731 The bitrate to encode the AC-3 stream.
4732 Set it to either 384 or 384000 to get 384kbits.
4733 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
4734               320, 384, 448, 512, 576, 640
4735 Default bitrate is based on the input channel number:
4736 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
4737 .IPs <minchn>
4738 If the input channel number is less than <minchn>, the filter will
4739 detach itself (default: 5).
4741 .PD 1
4744 .B sweep[=speed]
4745 Produces a sine sweep.
4746 .PD 0
4747 .RSs
4748 .IPs <0.0\-1.0>
4749 Sine function delta, use very low values to hear the sweep.
4751 .PD 1
4754 .B sinesuppress[=freq:decay]
4755 Remove a sine at the specified frequency.
4756 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
4757 It probably only works on mono input.
4758 .PD 0
4759 .RSs
4760 .IPs <freq>
4761 The frequency of the sine which should be removed (in Hz) (default: 50)
4762 .IPs <decay>
4763 Controls the adaptivity (a larger value will make the filter adapt to
4764 amplitude and phase changes quicker, a smaller value will make the
4765 adaptation slower) (default: 0.0001).
4766 Reasonable values are around 0.001.
4768 .PD 1
4771 .B hrtf[=flag]
4772 Head-related transfer function: Converts multichannel audio to
4773 2 channel output for headphones, preserving the spatiality of the sound.
4774 .sp 1
4775 .PD 0
4777 .IPs "Flag  Meaning"
4778 .IPs "m     matrix decoding of the rear channel"
4779 .IPs "s     2-channel matrix decoding"
4780 .IPs "0     no matrix decoding (default)"
4782 .PD 1
4785 .B equalizer=[g1:g2:g3:...:g10]
4786 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
4787 This means that it works regardless of what type of audio is being played back.
4788 The center frequencies for the 10 bands are:
4789 .sp 1
4790 .PD 0
4792 .IPs "No. frequency"
4793 .IPs "0    31.25 Hz"
4794 .IPs "1    62.50 Hz"
4795 .IPs "2   125.00 Hz"
4796 .IPs "3   250.00 Hz"
4797 .IPs "4   500.00 Hz"
4798 .IPs "5    1.00 kHz"
4799 .IPs "6    2.00 kHz"
4800 .IPs "7    4.00 kHz"
4801 .IPs "8    8.00 kHz"
4802 .IPs "9   16.00 kHz"
4804 .PD 1
4805 .sp 1
4807 If the sample rate of the sound being played is lower than the center
4808 frequency for a frequency band, then that band will be disabled.
4809 A known bug with this filter is that the characteristics for the
4810 uppermost band are not completely symmetric if the sample
4811 rate is close to the center frequency of that band.
4812 This problem can be worked around by upsampling the sound
4813 using the resample filter before it reaches this filter.
4815 .PD 0
4816 .RSs
4817 .IPs <g1>:<g2>:<g3>:...:<g10>
4818 floating point numbers representing the gain in dB
4819 for each frequency band (\-12\-12)
4821 .sp 1
4823 .I EXAMPLE:
4825 .RSs
4826 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
4827 Would amplify the sound in the upper and lower frequency region
4828 while canceling it almost completely around 1kHz.
4830 .PD 1
4833 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
4834 Can be used for adding, removing, routing and copying audio channels.
4835 If only <nch> is given the default routing is used, it works as
4836 follows: If the number of output channels is bigger than the number of
4837 input channels empty channels are inserted (except mixing from mono to
4838 stereo, then the mono channel is repeated in both of the output
4839 channels).
4840 If the number of output channels is smaller than the number
4841 of input channels the exceeding channels are truncated.
4842 .PD 0
4843 .RSs
4844 .IPs <nch>
4845 number of output channels (1\-6)
4846 .IPs "<nr>\ "
4847 number of routes (1\-6)
4848 .IPs <from1:to1:from2:to2:from3:to3:...>
4849 Pairs of numbers between 0 and 5 that define where to route each channel.
4851 .sp 1
4853 .I EXAMPLE:
4855 .RSs
4856 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
4857 Would change the number of channels to 4 and set up 4 routes that
4858 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
4859 Observe that if media containing two channels was played back, channels
4860 2 and 3 would contain silence but 0 and 1 would still be swapped.
4861 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
4862 Would change the number of channels to 6 and set up 4 routes
4863 that copy channel 0 to channels 0 to 3.
4864 Channel 4 and 5 will contain silence.
4866 .PD 1
4869 .B format[=format] (also see \-format)
4870 Convert between different sample formats.
4871 Automatically enabled when needed by the sound card or another filter.
4872 .PD 0
4873 .RSs
4874 .IPs <format>
4875 Sets the desired format.
4876 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
4877 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
4878 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
4879 and 'ne' the endianness of the computer MPlayer is running on).
4880 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
4881 Exceptions to this rule that are also valid format specifiers: u8, s8,
4882 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
4884 .PD 1
4887 .B volume[=v[:sc]]
4888 Implements software volume control.
4889 Use this filter with caution since it can reduce the signal
4890 to noise ratio of the sound.
4891 In most cases it is best to set the level for the PCM sound to max,
4892 leave this filter out and control the output level to your
4893 speakers with the master volume control of the mixer.
4894 In case your sound card has a digital PCM mixer instead of an analog
4895 one, and you hear distortion, use the MASTER mixer instead.
4896 If there is an external amplifier connected to the computer (this
4897 is almost always the case), the noise level can be minimized by
4898 adjusting the master level and the volume knob on the amplifier
4899 until the hissing noise in the background is gone.
4901 This filter has a second feature: It measures the overall maximum
4902 sound level and prints out that level when MPlayer exits.
4903 This volume estimate can be used for setting the sound level in
4904 MEncoder such that the maximum dynamic range is utilized.
4906 .I NOTE:
4907 This filter is not reentrant and can therefore only be enabled
4908 once for every audio stream.
4909 .PD 0
4910 .RSs
4911 .IPs "<v>\ \ "
4912 Sets the desired gain in dB for all channels in the stream
4913 from \-200dB to +60dB, where \-200dB mutes the sound
4914 completely and +60dB equals a gain of 1000 (default: 0).
4915 .IPs "<sc>\ "
4916 Turns soft clipping on (1) or off (0).
4917 Soft-clipping can make the sound more smooth if very
4918 high volume levels are used.
4919 Enable this option if the dynamic range of the
4920 loudspeakers is very low.
4922 .I WARNING:
4923 This feature creates distortion and should be considered a last resort.
4925 .sp 1
4927 .I EXAMPLE:
4929 .RSs
4930 .IPs "mplayer \-af volume=10.1:0 media.avi"
4931 Would amplify the sound by 10.1dB and hard-clip if the
4932 sound level is too high.
4934 .PD 1
4937 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
4938 Mixes channels arbitrarily.
4939 Basically a combination of the volume and the channels filter
4940 that can be used to down-mix many channels to only a few,
4941 e.g.\& stereo to mono or vary the "width" of the center
4942 speaker in a surround sound system.
4943 This filter is hard to use, and will require some tinkering
4944 before the desired result is obtained.
4945 The number of options for this filter depends on
4946 the number of output channels.
4947 An example how to downmix a six-channel file to two channels with
4948 this filter can be found in the examples section near the end.
4949 .PD 0
4950 .RSs
4951 .IPs "<n>\ \ "
4952 number of output channels (1\-6)
4953 .IPs <Lij>
4954 How much of input channel i is mixed into output channel j (0\-1).
4955 So in principle you first have n numbers saying what to do with the
4956 first input channel, then n numbers that act on the second input channel
4957 etc.
4958 If you do not specify any numbers for some input channels, 0 is assumed.
4960 .sp 1
4962 .I EXAMPLE:
4964 .RSs
4965 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
4966 Would down-mix from stereo to mono.
4967 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
4968 Would give 3 channel output leaving channels 0 and 1 intact,
4969 and mix channels 0 and 1 into output channel 2 (which could
4970 be sent to a subwoofer for example).
4972 .PD 1
4975 .B sub[=fc:ch]
4976 Adds a subwoofer channel to the audio stream.
4977 The audio data used for creating the subwoofer channel is
4978 an average of the sound in channel 0 and channel 1.
4979 The resulting sound is then low-pass filtered by a 4th order
4980 Butterworth filter with a default cutoff frequency of 60Hz
4981 and added to a separate channel in the audio stream.
4983 .I Warning:
4984 Disable this filter when you are playing DVDs with Dolby
4985 Digital 5.1 sound, otherwise this filter will disrupt
4986 the sound to the subwoofer.
4987 .PD 0
4988 .RSs
4989 .IPs "<fc>\ "
4990 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
4991 For the best result try setting the cutoff frequency as low as possible.
4992 This will improve the stereo or surround sound experience.
4993 .IPs "<ch>\ "
4994 Determines the channel number in which to insert the sub-channel audio.
4995 Channel number can be between 0 and 5 (default: 5).
4996 Observe that the number of channels will automatically
4997 be increased to <ch> if necessary.
4999 .sp 1
5001 .I EXAMPLE:
5003 .RSs
5004 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5005 Would add a sub-woofer channel with a cutoff frequency of
5006 100Hz to output channel 4.
5008 .PD 1
5011 .B "center\ "
5012 Creates a center channel from the front channels.
5013 May currently be low quality as it does not implement a
5014 high-pass filter for proper extraction yet, but averages and
5015 halves the channels instead.
5016 .PD 0
5017 .RSs
5018 .IPs "<ch>\ "
5019 Determines the channel number in which to insert the center channel.
5020 Channel number can be between 0 and 5 (default: 5).
5021 Observe that the number of channels will automatically
5022 be increased to <ch> if necessary.
5024 .PD 1
5027 .B surround[=delay]
5028 Decoder for matrix encoded surround sound like Dolby Surround.
5029 Many files with 2 channel audio actually contain matrixed surround sound.
5030 Requires a sound card supporting at least 4 channels.
5031 .PD 0
5032 .RSs
5033 .IPs <delay>
5034 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5035 This delay should be set as follows: If d1 is the distance
5036 from the listening position to the front speakers and d2 is the distance
5037 from the listening position to the rear speakers, then the delay should
5038 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5040 .sp 1
5042 .I EXAMPLE:
5044 .RSs
5045 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5046 Would add surround sound decoding with 15ms delay for the sound to the
5047 rear speakers.
5049 .PD 1
5052 .B delay[=ch1:ch2:...]
5053 Delays the sound to the loudspeakers such that the sound from the
5054 different channels arrives at the listening position simultaneously.
5055 It is only useful if you have more than 2 loudspeakers.
5056 .PD 0
5057 .RSs
5058 .IPs ch1,ch2,...
5059 The delay in ms that should be imposed on each channel
5060 (floating point number between 0 and 1000).
5062 .PD 1
5063 .sp 1
5065 To calculate the required delay for the different channels do as follows:
5066 .IP 1. 3
5067 Measure the distance to the loudspeakers in meters in relation
5068 to your listening position, giving you the distances s1 to s5
5069 (for a 5.1 system).
5070 There is no point in compensating for the subwoofer (you will not hear the
5071 difference anyway).
5072 .IP 2. 3
5073 Subtract the distances s1 to s5 from the maximum distance,
5074 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5075 .IP 3.
5076 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5078 .PD 0
5079 .sp 1
5081 .I EXAMPLE:
5083 .RSs
5084 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5085 Would delay front left and right by 10.5ms, the two rear channels
5086 and the sub by 0ms and the center channel by 7ms.
5088 .PD 1
5091 .B export[=mmapped_file[:nsamples]]
5092 Exports the incoming signal to other processes using memory mapping (mmap()).
5093 Memory mapped areas contain a header:
5094 .sp 1
5096 int nch                      /*number of channels*/
5097 int size                     /*buffer size*/
5098 unsigned long long counter   /*Used to keep sync, updated every
5099                                time new data is exported.*/
5101 .sp 1
5102 The rest is payload (non-interleaved) 16 bit data.
5103 .PD 0
5104 .RSs
5105 .IPs <mmapped_file>
5106 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5107 .IPs <nsamples>
5108 number of samples per channel (default: 512)
5110 .sp 1
5112 .I EXAMPLE:
5114 .RSs
5115 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5116 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5118 .PD 1
5121 .B extrastereo[=mul]
5122 (Linearly) increases the difference between left and right channels
5123 which adds some sort of "live" effect to playback.
5124 .PD 0
5125 .RSs
5126 .IPs <mul>
5127 Sets the difference coefficient (default: 2.5).
5128 0.0 means mono sound (average of both channels), with 1.0 sound will be
5129 unchanged, with \-1.0 left and right channels will be swapped.
5131 .PD 1
5134 .B volnorm[=method:target]
5135 Maximizes the volume without distorting the sound.
5136 .PD 0
5137 .RSs
5138 .IPs <method>
5139 Sets the used method.
5140 .RSss
5141 1: Use a single sample to smooth the variations via the standard
5142 weighted mean over past samples (default).
5144 2: Use several samples to smooth the variations via the standard
5145 weighted mean over past samples.
5146 .REss
5147 .IPs <target>
5148 Sets the target amplitude as a fraction of the maximum for the
5149 sample type (default: 0.25).
5151 .PD 1
5154 .B ladspa=file:label[:controls...]
5155 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5156 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5157 .PD 0
5158 .RSs
5159 .IPs <file>
5160 Specifies the LADSPA plugin library file.
5161 If LADSPA_PATH is set, it searches for the specified file.
5162 If it is not set, you must supply a fully specified pathname.
5163 .IPs <label>
5164 Specifies the filter within the library.
5165 Some libraries contain only one filter, but others contain many of them.
5166 Entering 'help' here, will list all available filters within the specified
5167 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5168 .IPs <controls>
5169 Controls are zero or more floating point values that determine the
5170 behavior of the loaded plugin (for example delay, threshold or gain).
5171 In verbose mode (add \-v to the MPlayer command line), all available controls
5172 and their valid ranges are printed.
5173 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5175 .PD 1
5178 .B "comp\ \ \ "
5179 Compressor/expander filter usable for microphone input.
5180 Prevents artifacts on very loud sound and raises the volume on
5181 very low sound.
5182 This filter is untested, maybe even unusable.
5185 .B "gate\ \ \ "
5186 Noise gate filter similar to the comp audio filter.
5187 This filter is untested, maybe even unusable.
5190 .B karaoke
5191 Simple voice removal filter exploiting the fact that voice is
5192 usually recorded with mono gear and later 'center' mixed onto
5193 the final audio stream.
5194 Beware that this filter will turn your signal into mono.
5195 Works well for 2 channel tracks; do not bother trying it
5196 on anything but 2 channel stereo.
5199 .B scaletempo[=option1:option2:...]
5200 Scales audio tempo without altering pitch, optionally synced to playback
5201 speed (default).
5203 This works by playing \'stride\' ms of audio at normal speed then
5204 consuming \'stride*scale\' ms of input audio.
5205 It pieces the strides together by blending 'overlap'% of stride with
5206 audio following the previous stride.
5207 It optionally performs a short statistical analysis on the next \'search\'
5208 ms of audio to determine the best overlap position.
5209 .PD 0
5210 .RSs
5211 .IPs scale=<amount>
5212 Nominal amount to scale tempo.
5213 Scales this amount in addition to speed.
5214 (default: 1.0)
5215 .IPs stride=<amount>
5216 Length in milliseconds to output each stride.
5217 Too high of value will cause noticable skips at high scale amounts and
5218 an echo at low scale amounts.
5219 Very low values will alter pitch.
5220 Increasing improves performance.
5221 (default: 60)
5222 .IPs overlap=<percent>
5223 Percentage of stride to overlap.
5224 Decreasing improves performance.
5225 (default: .20)
5226 .IPs search=<amount>
5227 Length in milliseconds to search for best overlap position.
5228 Decreasing improves performance greatly.
5229 On slow systems, you will probably want to set this very low.
5230 (default: 14)
5231 .IPs speed=<tempo|pitch|both|none>
5232 Set response to speed change.
5233 .RSss
5234 .IPs tempo
5235 Scale tempo in sync with speed (default)
5236 .IPs pitch
5237 Reverses effect of filter.
5238 Scales pitch without altering tempo.
5239 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5240 to your input.conf to step by musical semi-tones.
5241 .I WARNING:
5242 Looses synch with video.
5243 .IPs both
5244 Scale both tempo and pitch
5245 .IPs none
5246 Ignore speed changes
5249 .sp 1
5251 .I EXAMPLE:
5253 .RSs
5254 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5255 Would playback media at 1.2x normal speed, with audio at normal pitch.
5256 Changing playback speed, would change audio tempo to match.
5257 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5258 Would playback media at 1.2x normal speed, with audio at normal pitch,
5259 but changing playback speed has no effect on audio tempo.
5260 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5261 Would tweak the quality and performace parameters.
5262 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5263 Would make scaletempo use float code.
5264 Maybe faster on some platforms.
5265 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5266 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5267 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5269 .PD 1
5273 .SH "VIDEO FILTERS"
5274 Video filters allow you to modify the video stream and its properties.
5275 The syntax is:
5278 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5279 Setup a chain of video filters.
5281 Many parameters are optional and set to default values if omitted.
5282 To explicitly use a default value set a parameter to '\-1'.
5283 Parameters w:h means width x height in pixels, x:y means x;y position counted
5284 from the upper left corner of the bigger image.
5286 .I NOTE:
5287 To get a full list of available video filters, see \-vf help.
5288 .sp 1
5289 Video filters are managed in lists.
5290 There are a few commands to manage the filter list.
5293 .B \-vf\-add <filter1[,filter2,...]>
5294 Appends the filters given as arguments to the filter list.
5297 .B \-vf\-pre <filter1[,filter2,...]>
5298 Prepends the filters given as arguments to the filter list.
5301 .B \-vf\-del <index1[,index2,...]>
5302 Deletes the filters at the given indexes.
5303 Index numbers start at 0, negative numbers address the end of the
5304 list (\-1 is the last).
5307 .B \-vf\-clr
5308 Completely empties the filter list.
5310 With filters that support it, you can access parameters by their name.
5313 .B \-vf <filter>=help
5314 Prints the parameter names and parameter value ranges for a particular
5315 filter.
5318 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5319 Sets a named parameter to the given value.
5320 Use on and off or yes and no to set flag parameters.
5322 Available filters are:
5325 .B crop[=w:h:x:y]
5326 Crops the given part of the image and discards the rest.
5327 Useful to remove black bands from widescreen movies.
5328 .PD 0
5329 .RSs
5330 .IPs <w>,<h>
5331 Cropped width and height, defaults to original width and height.
5332 .IPs <x>,<y>
5333 Position of the cropped picture, defaults to center.
5335 .PD 1
5338 .B cropdetect[=limit:round]
5339 Calculates necessary cropping parameters and prints the recommended parameters
5340 to stdout.
5341 .PD 0
5342 .RSs
5343 .IPs <limit>
5344 Threshold, which can be optionally specified from nothing (0) to
5345 everything (255) (default: 24).
5347 .IPs <round>
5348 Value which the width/\:height should be divisible by (default: 16).
5349 The offset is automatically adjusted to center the video.
5350 Use 2 to get only even dimensions (needed for 4:2:2 video).
5351 16 is best when encoding to most video codecs.
5353 .PD 1
5356 .B rectangle[=w:h:x:y]
5357 The plugin responds to the input.conf directive 'change_rectangle'
5358 that takes two parameters.
5359 .PD 0
5360 .RSs
5361 .IPs <w>,<h>
5362 width and height (default: \-1, maximum possible width where boundaries
5363 are still visible.)
5364 .IPs <x>,<y>
5365 top left corner position (default: \-1, uppermost leftmost)
5367 .PD 1
5370 .B expand[=w:h:x:y:o:a:r]
5371 Expands (not scales) movie resolution to the given value and places the
5372 unscaled original at coordinates x, y.
5373 Can be used for placing subtitles/\:OSD in the resulting black bands.
5374 .RSs
5375 .IPs <w>,<h>
5376 Expanded width,height (default: original width,height).
5377 Negative values for w and h are treated as offsets to the original size.
5378 .sp 1
5379 .I EXAMPLE:
5380 .PD 0
5381 .RSs
5382 .IP expand=0:\-50:0:0
5383 Adds a 50 pixel border to the bottom of the picture.
5385 .PD 1
5386 .IPs <x>,<y>
5387 position of original image on the expanded image (default: center)
5388 .IPs "<o>\ \ "
5389 OSD/\:subtitle rendering
5390 .RSss
5391 0: disable (default)
5393 1: enable
5394 .REss
5395 .IPs "<a>\ \ "
5396 Expands to fit an aspect instead of a resolution (default: 0).
5397 .sp 1
5398 .I EXAMPLE:
5399 .PD 0
5400 .RSs
5401 .IP expand=800:::::4/3
5402 Expands to 800x600, unless the source is higher resolution, in which
5403 case it expands to fill a 4/3 aspect.
5405 .PD 1
5406 .IPs "<r>\ \ "
5407 Rounds up to make both width and height divisible by <r> (default: 1).
5411 .B flip (also see \-flip)
5412 Flips the image upside down.
5415 .B "mirror\ "
5416 Mirrors the image on the Y axis.
5419 .B rotate[=<0\-7>]
5420 Rotates the image by 90 degrees and optionally flips it.
5421 For values between 4\-7 rotation is only done if the movie geometry is
5422 portrait and not landscape.
5423 .RSs
5424 .IPs 0
5425 Rotate by 90 degrees clockwise and flip (default).
5426 .IPs 1
5427 Rotate by 90 degrees clockwise.
5428 .IPs 2
5429 Rotate by 90 degrees counterclockwise.
5430 .IPs 3
5431 Rotate by 90 degrees counterclockwise and flip.
5435 .B scale[=w:h[:ilaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5436 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5437 colorspace conversion (also see \-sws).
5438 .RSs
5439 .IPs <w>,<h>
5440 scaled width/\:height (default: original width/\:height)
5442 .I NOTE:
5443 If \-zoom is used, and underlying filters (including libvo) are
5444 incapable of scaling, it defaults to d_width/\:d_height!
5445 .RSss
5446  0:   scaled d_width/\:d_height
5448 \-1:   original width/\:height
5450 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
5452 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
5454 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
5455 .REss
5456 .IPs <ilaced>
5457 Toggle interlaced scaling.
5458 .RSss
5459 0: off (default)
5461 1: on
5462 .REss
5463 .IPs <chr_drop>
5464 chroma skipping
5465 .RSss
5466 0: Use all available input lines for chroma.
5468 1: Use only every 2. input line for chroma.
5470 2: Use only every 4. input line for chroma.
5472 3: Use only every 8. input line for chroma.
5473 .REss
5474 .IPs "<par>[:<par2>] (also see \-sws)"
5475 Set some scaling parameters depending on the type of scaler selected
5476 with \-sws.
5477 .RSss
5478 \-sws 2 (bicubic):  B (blurring) and C (ringing)
5480 0.00:0.60 default
5482 0.00:0.75 VirtualDub's "precise bicubic"
5484 0.00:0.50 Catmull-Rom spline
5486 0.33:0.33 Mitchell-Netravali spline
5488 1.00:0.00 cubic B-spline
5490 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
5492 \-sws 9 (lanczos):  filter length (1\-10)
5493 .REss
5494 .IPs <presize>
5495 Scale to preset sizes.
5496 .RSss
5497 qntsc:   352x240 (NTSC quarter screen)
5499 qpal:    352x288 (PAL quarter screen)
5501 ntsc:    720x480 (standard NTSC)
5503 pal:     720x576 (standard PAL)
5505 sntsc:   640x480 (square pixel NTSC)
5507 spal:    768x576 (square pixel PAL)
5508 .REss
5509 .IPs <noup>
5510 Disallow upscaling past the original dimensions.
5511 .RSss
5512 0: Allow upscaling (default).
5514 1: Disallow upscaling if one dimension exceeds its original value.
5516 2: Disallow upscaling if both dimensions exceed their original values.
5517 .REss
5518 .IPs <arnd>
5519 Accurate rounding for the vertical scaler, which may be faster
5520 or slower than the default rounding.
5521 .RSss
5522 0: Disable accurate rounding (default).
5524 1: Enable accurate rounding.
5525 .REss
5529 .B dsize[=aspect|w:h:aspect-method:r]
5530 Changes the intended display size/\:aspect at an arbitrary point in the
5531 filter chain.
5532 Aspect can be given as a fraction (4/3) or floating point number
5533 (1.33).
5534 Alternatively, you may specify the exact display width and height
5535 desired.
5536 Note that this filter does
5537 .B not
5538 do any scaling itself; it just affects
5539 what later scalers (software or hardware) will do when auto-scaling to
5540 correct aspect.
5541 .RSs
5542 .IPs <w>,<h>
5543 New display width and height.
5544 Can also be these special values:
5545 .RSss
5546  0:   original display width and height
5548 \-1:   original video width and height (default)
5550 \-2:   Calculate w/h using the other dimension and the original display
5551 aspect ratio.
5553 \-3:   Calculate w/h using the other dimension and the original video
5554 aspect ratio.
5555 .REss
5556 .sp 1
5557 .I EXAMPLE:
5558 .PD 0
5559 .RSs
5560 .IP dsize=800:\-2
5561 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
5562 800x450 for a 16/9 aspect video.
5564 .IPs <aspect-method>
5565 Modifies width and height according to original aspect ratios.
5566 .RSss
5567 \-1: Ignore original aspect ratio (default).
5569  0: Keep display aspect ratio by using <w> and <h> as maximum
5570 resolution.
5572  1: Keep display aspect ratio by using <w> and <h> as minimum
5573 resolution.
5575  2: Keep video aspect ratio by using <w> and <h> as maximum
5576 resolution.
5578  3: Keep video aspect ratio by using <w> and <h> as minimum
5579 resolution.
5580 .REss
5581 .sp 1
5582 .I EXAMPLE:
5583 .PD 0
5584 .RSs
5585 .IP dsize=800:600:0
5586 Specifies a display resolution of at most 800x600, or smaller, in order
5587 to keep aspect.
5589 .PD 1
5590 .IPs "<r>\ \ "
5591 Rounds up to make both width and height divisible by <r> (default: 1).
5595 .B "yuy2\ \ \ "
5596 Forces software YV12/\:I420/\:422P to YUY2 conversion.
5597 Useful for video cards/\:drivers with slow YV12 but fast YUY2 support.
5600 .B "yvu9\ \ \ "
5601 Forces software YVU9 to YV12 colorspace conversion.
5602 Deprecated in favor of the software scaler.
5605 .B "yuvcsp\ "
5606 Clamps YUV color values to the CCIR 601 range without doing real conversion.
5609 .B rgb2bgr[=swap]
5610 RGB 24/32 <\-> BGR 24/32 colorspace conversion.
5611 .PD 0
5612 .RSs
5613 .IPs "swap\ "
5614 Also perform  R <\-> B swapping.
5616 .PD 1
5619 .B palette
5620 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
5623 .B format[=fourcc]
5624 Restricts the colorspace for the next filter without doing any conversion.
5625 Use together with the scale filter for a real conversion.
5627 .I NOTE:
5628 For a list of available formats see format=fmt=help.
5629 .PD 0
5630 .RSs
5631 .IPs <fourcc>
5632 format name like rgb15, bgr24, yv12, etc (default: yuy2)
5634 .PD 1
5637 .B noformat[=fourcc]
5638 Restricts the colorspace for the next filter without doing any conversion.
5639 Unlike the format filter, this will allow any colorspace
5640 .B except
5641 the one you specify.
5643 .I NOTE:
5644 For a list of available formats see noformat=fmt=help.
5645 .PD 0
5646 .RSs
5647 .IPs <fourcc>
5648 format name like rgb15, bgr24, yv12, etc (default: yv12)
5650 .PD 1
5653 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
5654 Enables the specified chain of postprocessing subfilters.
5655 Subfilters must be separated by '/' and can be disabled by
5656 prepending a '\-'.
5657 Each subfilter and some options have a short and a long name that can be
5658 used interchangeably, i.e.\& dr/dering are the same.
5659 All subfilters share common options to determine their scope:
5660 .PD 0
5661 .RSs
5662 .IPs a/autoq
5663 Automatically switch the subfilter off if the CPU is too slow.
5664 .IPs c/chrom
5665 Do chrominance filtering, too (default).
5666 .IPs y/nochrom
5667 Do luminance filtering only (no chrominance).
5668 .IPs n/noluma
5669 Do chrominance filtering only (no luminance).
5671 .PD 1
5672 .sp 1
5675 .I NOTE:
5676 \-pphelp shows a list of available subfilters.
5677 .sp 1
5678 Available subfilters are
5680 .RSs
5681 .IPs hb/hdeblock[:difference[:flatness]]
5682 horizontal deblocking filter
5683 .RSss
5684 <difference>: Difference factor where higher values mean
5685 more deblocking (default: 32).
5687 <flatness>: Flatness threshold where lower values mean
5688 more deblocking (default: 39).
5689 .REss
5690 .IPs vb/vdeblock[:difference[:flatness]]
5691 vertical deblocking filter
5692 .RSss
5693 <difference>: Difference factor where higher values mean
5694 more deblocking (default: 32).
5696 <flatness>: Flatness threshold where lower values mean
5697 more deblocking (default: 39).
5698 .REss
5699 .IPs ha/hadeblock[:difference[:flatness]]
5700 accurate horizontal deblocking filter
5701 .RSss
5702 <difference>: Difference factor where higher values mean
5703 more deblocking (default: 32).
5705 <flatness>: Flatness threshold where lower values mean
5706 more deblocking (default: 39).
5707 .REss
5708 .IPs va/vadeblock[:difference[:flatness]]
5709 accurate vertical deblocking filter
5710 .RSss
5711 <difference>: Difference factor where higher values mean
5712 more deblocking (default: 32).
5714 <flatness>: Flatness threshold where lower values mean
5715 more deblocking (default: 39).
5716 .REss
5717 .sp 1
5718 The horizontal and vertical deblocking filters share the
5719 difference and flatness values so you cannot set
5720 different horizontal and vertical thresholds.
5721 .sp 1
5722 .IPs h1/x1hdeblock
5723 experimental horizontal deblocking filter
5724 .IPs v1/x1vdeblock
5725 experimental vertical deblocking filter
5726 .IPs dr/dering
5727 deringing filter
5728 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
5729 temporal noise reducer
5730 .RSss
5731 <threshold1>: larger -> stronger filtering
5733 <threshold2>: larger -> stronger filtering
5735 <threshold3>: larger -> stronger filtering
5736 .REss
5737 .IPs al/autolevels[:f/fullyrange]
5738 automatic brightness / contrast correction
5739 .RSss
5740 f/fullyrange: Stretch luminance to (0\-255).
5741 .REss
5742 .IPs lb/linblenddeint
5743 Linear blend deinterlacing filter that deinterlaces the given block
5744 by filtering all lines with a (1 2 1) filter.
5745 .IPs li/linipoldeint
5746 Linear interpolating deinterlacing filter that deinterlaces the given block
5747 by linearly interpolating every second line.
5748 .IPs ci/cubicipoldeint
5749 Cubic interpolating deinterlacing filter deinterlaces the given block
5750 by cubically interpolating every second line.
5751 .IPs md/mediandeint
5752 Median deinterlacing filter that deinterlaces the given block
5753 by applying a median filter to every second line.
5754 .IPs fd/ffmpegdeint
5755 FFmpeg deinterlacing filter that deinterlaces the given block
5756 by filtering every second line with a (\-1 4 2 4 \-1) filter.
5757 .IPs l5/lowpass5
5758 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
5759 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
5760 .IPs fq/forceQuant[:quantizer]
5761 Overrides the quantizer table from the input with the constant
5762 quantizer you specify.
5763 .RSss
5764 <quantizer>: quantizer to use
5765 .REss
5766 .IPs de/default
5767 default pp filter combination (hb:a,vb:a,dr:a)
5768 .IPs fa/fast
5769 fast pp filter combination (h1:a,v1:a,dr:a)
5770 .IPs "ac\ \ \ "
5771 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
5774 .sp 1
5775 .I EXAMPLE:
5777 .PD 0
5778 .RSs
5779 .IPs "\-vf pp=hb/vb/dr/al"
5780 horizontal and vertical deblocking, deringing and automatic
5781 brightness/\:contrast
5782 .IPs "\-vf pp=de/\-al"
5783 default filters without brightness/\:contrast correction
5784 .IPs "\-vf pp=default/tmpnoise:1:2:3"
5785 Enable default filters & temporal denoiser.
5786 .IPs "\-vf pp=hb:y/vb:a"
5787 Horizontal deblocking on luminance only, and switch vertical deblocking
5788 on or off automatically depending on available CPU time.
5790 .PD 1
5793 .B spp[=quality[:qp[:mode]]]
5794 Simple postprocessing filter that compresses and decompresses the
5795 image at several (or \- in the case of quality level 6 \- all)
5796 shifts and averages the results.
5797 .RSs
5798 .IPs <quality>
5799 0\-6 (default: 3)
5800 .IPs "<qp>\ "
5801 Force quantization parameter (default: 0, use QP from video).
5802 .IPs <mode>
5803 0: hard thresholding (default)
5805 1: soft thresholding (better deringing, but blurrier)
5807 4: like 0, but also use B-frames' QP (may cause flicker)
5809 5: like 1, but also use B-frames' QP (may cause flicker)
5813 .B uspp[=quality[:qp]]
5814 Ultra simple & slow postprocessing filter that compresses and
5815 decompresses the image at several (or \- in the case of quality
5816 level 8 \- all) shifts and averages the results.
5817 The way this differs from the behavior of spp is that uspp actually
5818 encodes & decodes each case with libavcodec Snow, whereas spp uses
5819 a simplified intra only 8x8 DCT similar to MJPEG.
5820 .RSs
5821 .IPs <quality>
5822 0\-8 (default: 3)
5823 .IPs "<qp>\ "
5824 Force quantization parameter (default: 0, use QP from video).
5828 .B fspp[=quality[:qp[:strength[:bframes]]]]
5829 faster version of the simple postprocessing filter
5830 .RSs
5831 .IPs <quality>
5832 4\-5 (equivalent to spp; default: 4)
5833 .IPs "<qp>\ "
5834 Force quantization parameter (default: 0, use QP from video).
5835 .IPs <\-15\-32>
5836 Filter strength, lower values mean more details but also more artifacts,
5837 while higher values make the image smoother but also blurrier (default:
5838 0 \- PSNR optimal).
5839 .IPs <bframes>
5840 0: do not use QP from B-frames (default)
5842 1: use QP from B-frames too (may cause flicker)
5846 .B pp7[=qp[:mode]]
5847 Variant of the spp filter, similar to spp=6 with 7 point DCT where
5848 only the center sample is used after IDCT.
5849 .RSs
5850 .IPs "<qp>\ "
5851 Force quantization parameter (default: 0, use QP from video).
5852 .IPs <mode>
5853 0: hard thresholding
5855 1: soft thresholding (better deringing, but blurrier)
5857 2: medium thresholding (default, good results)
5861 .B qp=equation
5862 quantization parameter (QP) change filter
5863 .RSs
5864 .IPs <equation>
5865 some equation like "2+2*sin(PI*qp)"
5869 .B geq=equation
5870 generic equation change filter
5871 .RSs
5872 .IPs <equation>
5873 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
5874 You can use whitespace to make the equation more readable.
5875 There are a couple of constants that can be used in the equation:
5876 .RSss
5877 PI: the number pi
5879 E: the number e
5881 X / Y: the coordinates of the current sample
5883 W / H: width and height of the image
5885 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
5886 1,1 and 0.5,0.5 for YUV 4:2:0.
5888 p(x,y): returns the value of the pixel at location x/y of the current plane.
5889 .REss
5893 .B "test\ \ \ "
5894 Generate various test patterns.
5897 .B rgbtest
5898 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
5899 You should see a red, green and blue stripe from top to bottom.
5902 .B lavc[=quality:fps]
5903 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
5904 .RSs
5905 .IPs <quality>
5906 1\-31: fixed qscale
5908 32\-:  fixed bitrate in kbits
5909 .IPs <fps>
5910 force output fps (float value) (default: 0, autodetect based on height)
5914 .B dvbscale[=aspect]
5915 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
5916 calculating the y axis scaling in software to keep aspect.
5917 Only useful together with expand and scale.
5918 .RSs
5919 .IPs <aspect>
5920 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
5921 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
5923 .sp 1
5925 .I EXAMPLE:
5927 .PD 0
5928 .RSs
5929 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
5930 FIXME: Explain what this does.
5932 .PD 1
5935 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
5936 Adds noise.
5937 .PD 0
5938 .RSs
5939 .IPs <0\-100>
5940 luma noise
5941 .IPs <0\-100>
5942 chroma noise
5943 .IPs u
5944 uniform noise (gaussian otherwise)
5945 .IPs t
5946 temporal noise (noise pattern changes between frames)
5947 .IPs a
5948 averaged temporal noise (smoother, but a lot slower)
5949 .IPs h
5950 high quality (slightly better looking, slightly slower)
5951 .IPs p
5952 mix random noise with a (semi)regular pattern
5954 .PD 1
5957 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
5958 This filter aims to reduce image noise producing smooth images and making still
5959 images really still (This should enhance compressibility.).
5960 .PD 0
5961 .RSs
5962 .IPs <luma_spatial>
5963 spatial luma strength (default: 4)
5964 .IPs <chroma_spatial>
5965 spatial chroma strength (default: 3)
5966 .IPs <luma_tmp>
5967 luma temporal strength (default: 6)
5968 .IPs <chroma_tmp>
5969 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
5971 .PD 1
5974 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
5975 High precision/\:quality version of the denoise3d filter.
5976 Parameters and usage are the same.
5979 .B ow[=depth[:luma_strength[:chroma_strength]]]
5980 Overcomplete Wavelet denoiser.
5981 .PD 0
5982 .RSs
5983 .IPs <depth>
5984 Larger depth values will denoise lower frequency components more, but
5985 slow down filtering (default: 8).
5986 .IPs <luma_strength>
5987 luma strength (default: 1.0)
5988 .IPs <chroma_strength>
5989 chroma strength (default: 1.0)
5991 .PD 1
5994 .B eq[=brightness:contrast] (OBSOLETE)
5995 Software equalizer with interactive controls just like the hardware
5996 equalizer, for cards/\:drivers that do not support brightness and
5997 contrast controls in hardware.
5998 Might also be useful with MEncoder, either for fixing poorly captured
5999 movies, or for slightly reducing contrast to mask artifacts and get by
6000 with lower bitrates.
6001 .PD 0
6002 .RSs
6003 .IPs <\-100\-100>
6004 initial brightness
6005 .IPs <\-100\-100>
6006 initial contrast
6008 .PD 1
6011 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6012 Alternative software equalizer that uses lookup tables (very slow),
6013 allowing gamma correction in addition to simple brightness
6014 and contrast adjustment.
6015 Note that it uses the same MMX optimized code as \-vf eq if all
6016 gamma values are 1.0.
6017 The parameters are given as floating point values.
6018 .PD 0
6019 .RSs
6020 .IPs <0.1\-10>
6021 initial gamma value (default: 1.0)
6022 .IPs <\-2\-2>
6023 initial contrast, where negative values result in a
6024 negative image (default: 1.0)
6025 .IPs <\-1\-1>
6026 initial brightness (default: 0.0)
6027 .IPs <0\-3>
6028 initial saturation (default: 1.0)
6029 .IPs <0.1\-10>
6030 gamma value for the red component (default: 1.0)
6031 .IPs <0.1\-10>
6032 gamma value for the green component (default: 1.0)
6033 .IPs <0.1\-10>
6034 gamma value for the blue component (default: 1.0)
6035 .IPs <0\-1>
6036 The weight parameter can be used to reduce the effect of a high gamma value on
6037 bright image areas, e.g.\& keep them from getting overamplified and just plain
6038 white.
6039 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6040 at its full strength (default: 1.0).
6042 .PD 1
6045 .B hue[=hue:saturation]
6046 Software equalizer with interactive controls just like the hardware
6047 equalizer, for cards/\:drivers that do not support hue and
6048 saturation controls in hardware.
6049 .PD 0
6050 .RSs
6051 .IPs <\-180\-180>
6052 initial hue (default: 0.0)
6053 .IPs <\-100\-100>
6054 initial saturation, where negative values result
6055 in a negative chroma (default: 1.0)
6057 .PD 1
6060 .B halfpack[=f]
6061 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6062 keeping all chroma samples.
6063 Useful for output to low-resolution display devices when hardware downscaling
6064 is poor quality or is not available.
6065 Can also be used as a primitive luma-only deinterlacer with very low CPU
6066 usage.
6067 .PD 0
6068 .RSs
6069 .IPs "<f>\ \ "
6070 By default, halfpack averages pairs of lines when downsampling.
6071 Any value different from 0 or 1 gives the default (averaging) behavior.
6072 .RSss
6073 0: Only use even lines when downsampling.
6075 1: Only use odd lines when downsampling.
6076 .REss
6078 .PD 1
6081 .B ilpack[=mode]
6082 When interlaced video is stored in YUV 4:2:0 formats, chroma
6083 interlacing does not line up properly due to vertical downsampling of
6084 the chroma channels.
6085 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6086 the chroma lines in their proper locations, so that in any given
6087 scanline, the luma and chroma data both come from the same field.
6088 .PD 0
6089 .RSs
6090 .IPs <mode>
6091 Select the sampling mode.
6092 .RSss
6093 0: nearest-neighbor sampling, fast but incorrect
6095 1: linear interpolation (default)
6096 .REss
6098 .PD 1
6101 .B harddup
6102 Only useful with MEncoder.
6103 If harddup is used when encoding, it will force duplicate frames to be
6104 encoded in the output.
6105 This uses slightly more space, but is necessary for output to MPEG
6106 files or if you plan to demux and remux the video stream after
6107 encoding.
6108 Should be placed at or near the end of the filter chain unless you
6109 have a good reason to do otherwise.
6112 .B softskip
6113 Only useful with MEncoder.
6114 Softskip moves the frame skipping (dropping) step of encoding from
6115 before the filter chain to some point during the filter chain.
6116 This allows filters which need to see all frames (inverse telecine,
6117 temporal denoising, etc.) to function properly.
6118 Should be placed after the filters which need to see all frames and
6119 before any subsequent filters that are CPU-intensive.
6122 .B decimate[=max:hi:lo:frac]
6123 Drops frames that do not differ greatly from the previous frame in
6124 order to reduce framerate.
6125 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6126 streaming over dialup modem), but it could in theory be used for
6127 fixing movies that were inverse-telecined incorrectly.
6128 .PD 0
6129 .RSs
6130 .IPs <max>
6131 Sets the maximum number of consecutive frames which can be
6132 dropped (if positive), or the minimum interval between
6133 dropped frames (if negative).
6134 .IPs <hi>,<lo>,<frac>
6135 A frame is a candidate for dropping if no 8x8 region differs by more
6136 than a threshold of <hi>, and if not more than <frac> portion (1
6137 meaning the whole image) differs by more than a threshold of <lo>.
6138 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6139 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6140 difference for each pixel, or the same spread out differently over the
6141 block.
6143 .PD 1
6146 .B dint[=sense:level]
6147 The drop-deinterlace (dint) filter detects and drops the first from a set
6148 of interlaced video frames.
6149 .PD 0
6150 .RSs
6151 .IPs <0.0\-1.0>
6152 relative difference between neighboring pixels (default: 0.1)
6153 .IPs <0.0\-1.0>
6154 What part of the image has to be detected as interlaced to
6155 drop the frame (default: 0.15).
6157 .PD 1
6160 .B lavcdeint (OBSOLETE)
6161 FFmpeg deinterlacing filter, same as \-vf pp=fd
6164 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6165 Donald Graft's adaptive kernel deinterlacer.
6166 Deinterlaces parts of a video if a configurable threshold is exceeded.
6167 .PD 0
6168 .RSs
6169 .IPs <0\-255>
6170 threshold (default: 10)
6171 .IPs <map>
6172 .RSss
6173 0: Ignore pixels exceeding the threshold (default).
6175 1: Paint pixels exceeding the threshold white.
6176 .REss
6177 .IPs <order>
6178 .RSss
6179 0: Leave fields alone (default).
6181 1: Swap fields.
6182 .REss
6183 .IPs <sharp>
6184 .RSss
6185 0: Disable additional sharpening (default).
6187 1: Enable additional sharpening.
6188 .REss
6189 .IPs <twoway>
6190 .RSss
6191 0: Disable twoway sharpening (default).
6193 1: Enable twoway sharpening.
6194 .REss
6196 .PD 1
6199 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6200 unsharp mask / gaussian blur
6201 .RSs
6202 .IPs "l\ \ \ \ "
6203 Apply effect on luma component.
6204 .IPs "c\ \ \ \ "
6205 Apply effect on chroma components.
6206 .IPs <width>x<height>
6207 width and height of the matrix, odd sized in both directions
6208 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6209 .IPs amount
6210 Relative amount of sharpness/\:blur to add to the image
6211 (a sane range should be \-1.5\-1.5).
6212 .RSss
6213 <0: blur
6215 >0: sharpen
6216 .REss
6220 .B "swapuv\ "
6221 Swap U & V plane.
6224 .B il[=d|i][s][:[d|i][s]]
6225 (De)interleaves lines.
6226 The goal of this filter is to add the ability to process interlaced images
6227 pre-field without deinterlacing them.
6228 You can filter your interlaced DVD and play it on a TV without breaking the
6229 interlacing.
6230 While deinterlacing (with the postprocessing filter) removes interlacing
6231 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6232 2 fields (so called half pictures), so you can process (filter) them
6233 independently and then re-interleave them.
6234 .PD 0
6235 .RSs
6236 .IPs d
6237 deinterleave (placing one above the other)
6238 .IPs i
6239 interleave
6240 .IPs s
6241 swap fields (exchange even & odd lines)
6243 .PD 1
6246 .B fil[=i|d]
6247 (De)interleaves lines.
6248 This filter is very similar to the il filter but much faster, the main
6249 disadvantage is that it does not always work.
6250 Especially if combined with other filters it may produce randomly messed
6251 up images, so be happy if it works but do not complain if it does not for
6252 your combination of filters.
6253 .PD 0
6254 .RSs
6255 .IPs d
6256 Deinterleave fields, placing them side by side.
6257 .IPs i
6258 Interleave fields again (reversing the effect of fil=d).
6260 .PD 1
6263 .B field[=n]
6264 Extracts a single field from an interlaced image using stride arithmetic
6265 to avoid wasting CPU time.
6266 The optional argument n specifies whether to extract the even or the odd
6267 field (depending on whether n is even or odd).
6270 .B detc[=var1=value1:var2=value2:...]
6271 Attempts to reverse the 'telecine' process to recover a clean,
6272 non-interlaced stream at film framerate.
6273 This was the first and most primitive inverse telecine filter to be
6274 added to MPlayer/\:MEncoder.
6275 It works by latching onto the telecine 3:2 pattern and following it as
6276 long as possible.
6277 This makes it suitable for perfectly-telecined material, even in the
6278 presence of a fair degree of noise, but it will fail in the presence
6279 of complex post-telecine edits.
6280 Development on this filter is no longer taking place, as ivtc, pullup,
6281 and filmdint are better for most applications.
6282 The following arguments (see syntax above) may be used to control
6283 detc's behavior:
6284 .RSs
6285 .IPs "<dr>\ "
6286 Set the frame dropping mode.
6287 .RSss
6288 0: Do not drop frames to maintain fixed output framerate (default).
6290 1: Always drop a frame when there have been no drops or telecine
6291 merges in the past 5 frames.
6293 2: Always maintain exact 5:4 input to output frame ratio.
6295 .I NOTE:
6296 Use mode 1 or 2 with MEncoder.
6297 .REss
6298 .IPs "<am>\ "
6299 Analysis mode.
6300 .RSss
6301 0: Fixed pattern with initial frame number specified by <fr>.
6303 1: aggressive search for telecine pattern (default)
6304 .REss
6305 .IPs "<fr>\ "
6306 Set initial frame number in sequence.
6307 0\-2 are the three clean progressive frames; 3 and 4 are the two
6308 interlaced frames.
6309 The default, \-1, means 'not in telecine sequence'.
6310 The number specified here is the type for the imaginary previous
6311 frame before the movie starts.
6312 .IPs "<t0>, <t1>, <t2>, <t3>"
6313 Threshold values to be used in certain modes.
6317 .B ivtc[=1]
6318 Experimental 'stateless' inverse telecine filter.
6319 Rather than trying to lock on to a pattern like the detc filter does,
6320 ivtc makes its decisions independently for each frame.
6321 This will give much better results for material that has undergone
6322 heavy editing after telecine was applied, but as a result it is not as
6323 forgiving of noisy input, for example TV capture.
6324 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6325 detc filter, and should be used with MEncoder but not with MPlayer.
6326 As with detc, you must specify the correct output framerate (\-ofps
6327 24000/1001) when using MEncoder.
6328 Further development on ivtc has stopped, as the pullup and filmdint
6329 filters appear to be much more accurate.
6332 .B pullup[=jl:jr:jt:jb:sb:mp]
6333 Third-generation pulldown reversal (inverse telecine) filter,
6334 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6335 fps progressive content.
6336 The pullup filter is designed to be much more robust than detc or
6337 ivtc, by taking advantage of future context in making its decisions.
6338 Like ivtc, pullup is stateless in the sense that it does not lock onto
6339 a pattern to follow, but it instead looks forward to the following
6340 fields in order to identify matches and rebuild progressive frames.
6341 It is still under development, but believed to be quite accurate.
6342 .RSs
6343 .IPs "jl, jr, jt, and jb"
6344 These options set the amount of "junk" to ignore at
6345 the left, right, top, and bottom of the image, respectively.
6346 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6347 2 lines.
6348 The default is 8 pixels on each side.
6350 .IPs "sb (strict breaks)"
6351 Setting this option to 1 will reduce the chances of
6352 pullup generating an occasional mismatched frame, but it may also
6353 cause an excessive number of frames to be dropped during high motion
6354 sequences.
6355 Conversely, setting it to \-1 will make pullup match fields more
6356 easily.
6357 This may help processing of video where there is slight blurring
6358 between the fields, but may also cause there to be interlaced frames
6359 in the output.
6361 .IPs "mp (metric plane)"
6362 This option may be set to 1 or 2 to use a chroma
6363 plane instead of the luma plane for doing pullup's computations.
6364 This may improve accuracy on very clean source material, but more
6365 likely will decrease accuracy, especially if there is chroma noise
6366 (rainbow effect) or any grayscale video.
6367 The main purpose of setting mp to a chroma plane is to reduce CPU load
6368 and make pullup usable in realtime on slow machines.
6369 .REss
6371 .sp 1
6372 .I NOTE:
6373 Always follow pullup with the softskip filter when encoding to ensure
6374 that pullup is able to see each frame.
6375 Failure to do so will lead to incorrect output and will usually crash,
6376 due to design limitations in the codec/\:filter layer.
6377 .REss
6380 .B filmdint[=options]
6381 Inverse telecine filter, similar to the pullup filter above.
6382 It is designed to handle any pulldown pattern, including mixed soft and
6383 hard telecine and limited support for movies that are slowed down or sped
6384 up from their original framerate for TV.
6385 Only the luma plane is used to find the frame breaks.
6386 If a field has no match, it is deinterlaced with simple linear
6387 approximation.
6388 If the source is MPEG-2, this must be the first filter to allow
6389 access to the field-flags set by the MPEG-2 decoder.
6390 Depending on the source MPEG, you may be fine ignoring this advice, as
6391 long as you do not see lots of "Bottom-first field" warnings.
6392 With no options it does normal inverse telecine, and should be used
6393 together with mencoder \-fps 30000/1001 \-ofps 24000/1001.
6394 When this filter is used with mplayer, it will result in an uneven
6395 framerate during playback, but it is still generally better than using
6396 pp=lb or no deinterlacing at all.
6397 Multiple options can be specified separated by /.
6398 .RSs
6399 .IPs crop=<w>:<h>:<x>:<y>
6400 Just like the crop filter, but faster, and works on mixed hard and soft
6401 telecined content as well as when y is not a multiple of 4.
6402 If x or y would require cropping fractional pixels from the chroma
6403 planes, the crop area is extended.
6404 This usually means that x and y must be even.
6405 .IPs io=<ifps>:<ofps>
6406 For each ifps input frames the filter will output ofps frames.
6407 The ratio of ifps/\:ofps should match the \-fps/\-ofps ratio.
6408 This could be used to filter movies that are broadcast on TV at a frame
6409 rate different from their original framerate.
6410 .IPs luma_only=<n>
6411 If n is nonzero, the chroma plane is copied unchanged.
6412 This is useful for YV12 sampled TV, which discards one of the chroma
6413 fields.
6414 .IPs mmx2=<n>
6415 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6416 optimized functions, otherwise, use plain C.
6417 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6418 this option to override auto-detection.
6419 .IPs fast=<n>
6420 The larger n will speed up the filter at the expense of accuracy.
6421 The default value is n=3.
6422 If n is odd, a frame immediately following a frame marked with the
6423 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6424 will not spend any time on soft-telecined MPEG-2 content.
6425 This is the only effect of this flag if MMX2 or 3DNow! is available.
6426 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6427 as with n=2 or 3.
6428 If n=2 or 3, the number of luma levels used to find the frame breaks is
6429 reduced from 256 to 128, which results in a faster filter without losing
6430 much accuracy.
6431 If n=4 or 5, a faster, but much less accurate metric will be used to
6432 find the frame breaks, which is more likely to misdetect high vertical
6433 detail as interlaced content.
6434 .IPs verbose=<n>
6435 If n is nonzero, print the detailed metrics for each frame.
6436 Useful for debugging.
6437 .IPs dint_thres=<n>
6438 Deinterlace threshold.
6439 Used during de-interlacing of unmatched frames.
6440 Larger value means less deinterlacing, use n=256 to completely turn off
6441 deinterlacing.
6442 Default is n=8.
6443 .IPs comb_thres=<n>
6444 Threshold for comparing a top and bottom fields.
6445 Defaults to 128.
6446 .IPs diff_thres=<n>
6447 Threshold to detect temporal change of a field.
6448 Default is 128.
6449 .IPs sad_thres=<n>
6450 Sum of Absolute Difference threshold, default is 64.
6454 .B softpulldown
6455 This filter works only correct with MEncoder and acts on the MPEG-2 flags
6456 used for soft 3:2 pulldown (soft telecine).
6457 If you want to use the ivtc or detc filter on movies that are partly soft
6458 telecined, inserting this filter before them should make them more reliable.
6461 .B divtc[=options]
6462 Inverse telecine for deinterlaced video.
6463 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
6464 using a method that keeps one field and interpolates the other, the result is
6465 a juddering video that has every fourth frame duplicated.
6466 This filter is intended to find and drop those duplicates and restore the
6467 original film framerate.
6468 When using this filter, you must specify \-ofps that is 4/5 of
6469 the fps of the input file and place the softskip later in the
6470 filter chain to make sure that divtc sees all the frames.
6471 Two different modes are available:
6472 One pass mode is the default and is straightforward to use,
6473 but has the disadvantage that any changes in the telecine
6474 phase (lost frames or bad edits) cause momentary judder
6475 until the filter can resync again.
6476 Two pass mode avoids this by analyzing the whole video
6477 beforehand so it will have forward knowledge about the
6478 phase changes and can resync at the exact spot.
6479 These passes do
6480 .B not
6481 correspond to pass one and two of the encoding process.
6482 You must run an extra pass using divtc pass one before the
6483 actual encoding throwing the resulting video away.
6484 Use \-nosound \-ovc raw \-o /dev/null to avoid
6485 wasting CPU power for this pass.
6486 You may add something like crop=2:2:0:0 after divtc
6487 to speed things up even more.
6488 Then use divtc pass two for the actual encoding.
6489 If you use multiple encoder passes, use divtc
6490 pass two for all of them.
6491 The options are:
6492 .RSs
6493 .IPs pass=1|2
6494 Use two pass mode.
6495 .IPs file=<filename>
6496 Set the two pass log filename (default: "framediff.log").
6497 .IPs threshold=<value>
6498 Set the minimum strength the telecine pattern must have for the filter to
6499 believe in it (default: 0.5).
6500 This is used to avoid recognizing false pattern from the parts of the video
6501 that are very dark or very still.
6502 .IPs window=<numframes>
6503 Set the number of past frames to look at when searching for pattern
6504 (default: 30).
6505 Longer window improves the reliability of the pattern search, but shorter
6506 window improves the reaction time to the changes in the telecine phase.
6507 This only affects the one pass mode.
6508 The two pass mode currently uses fixed window that extends to both future
6509 and past.
6510 .IPs phase=0|1|2|3|4
6511 Sets the initial telecine phase for one pass mode (default: 0).
6512 The two pass mode can see the future, so it is able to use the correct
6513 phase from the beginning, but one pass mode can only guess.
6514 It catches the correct phase when it finds it, but this option can be used
6515 to fix the possible juddering at the beginning.
6516 The first pass of the two pass mode also uses this, so if you save the output
6517 from the first pass, you get constant phase result.
6518 .IPs deghost=<value>
6519 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
6520 mode, default 0).
6521 If nonzero, deghosting mode is used.
6522 This is for video that has been deinterlaced by blending the fields
6523 together instead of dropping one of the fields.
6524 Deghosting amplifies any compression artifacts in the blended frames, so the
6525 parameter value is used as a threshold to exclude those pixels from
6526 deghosting that differ from the previous frame less than specified value.
6527 If two pass mode is used, then negative value can be used to make the
6528 filter analyze the whole video in the beginning of pass-2 to determine
6529 whether it needs deghosting or not and then select either zero or the
6530 absolute value of the parameter.
6531 Specify this option for pass-2, it makes no difference on pass-1.
6535 .B phase[=t|b|p|a|u|T|B|A|U][:v]
6536 Delay interlaced video by one field time so that the field order
6537 changes.
6538 The intended use is to fix PAL movies that have been captured with the
6539 opposite field order to the film-to-video transfer.
6540 The options are:
6541 .RSs
6542 .IPs t
6543 Capture field order top-first, transfer bottom-first.
6544 Filter will delay the bottom field.
6545 .IPs b
6546 Capture bottom-first, transfer top-first.
6547 Filter will delay the top field.
6548 .IPs p
6549 Capture and transfer with the same field order.
6550 This mode only exists for the documentation of the other options to refer to,
6551 but if you actually select it, the filter will faithfully do nothing ;-)
6552 .IPs a
6553 Capture field order determined automatically by field flags, transfer opposite.
6554 Filter selects among t and b modes on a frame by frame basis using field flags.
6555 If no field information is available, then this works just like u.
6556 .IPs u
6557 Capture unknown or varying, transfer opposite.
6558 Filter selects among t and b on a frame by frame basis by analyzing the
6559 images and selecting the alternative that produces best match between the
6560 fields.
6561 .IPs T
6562 Capture top-first, transfer unknown or varying.
6563 Filter selects among t and p using image analysis.
6564 .IPs B
6565 Capture bottom-first, transfer unknown or varying.
6566 Filter selects among b and p using image analysis.
6567 .IPs A
6568 Capture determined by field flags, transfer unknown or varying.
6569 Filter selects among t, b and p using field flags and image analysis.
6570 If no field information is available, then this works just like U.
6571 This is the default mode.
6572 .IPs U
6573 Both capture and transfer unknown or varying.
6574 Filter selects among t, b and p using image analysis only.
6575 .IPs v
6576 Verbose operation.
6577 Prints the selected mode for each frame and the average squared difference
6578 between fields for t, b, and p alternatives.
6582 .B telecine[=start]
6583 Apply 3:2 'telecine' process to increase framerate by 20%.
6584 This most likely will not work correctly with MPlayer, but it can
6585 be used with 'mencoder \-fps 30000/1001 \-ofps 30000/1001 \-vf telecine'.
6586 Both fps options are essential!
6587 (A/V sync will break if they are wrong.)
6588 The optional start parameter tells the filter where in the telecine
6589 pattern to start (0\-3).
6592 .B tinterlace[=mode]
6593 Temporal field interlacing \- merge pairs of frames into an interlaced
6594 frame, halving the framerate.
6595 Even frames are moved into the upper field, odd frames to the lower field.
6596 This can be used to fully reverse the effect of the tfields filter (in mode 0).
6597 Available modes are:
6598 .PD 0
6599 .RSs
6600 .IPs 0
6601 Move odd frames into the upper field, even into the lower field, generating
6602 a full-height frame at half framerate.
6603 .IPs 1
6604 Only output odd frames, even frames are dropped; height unchanged.
6605 .IPs 2
6606 Only output even frames, odd frames are dropped; height unchanged.
6607 .IPs 3
6608 Expand each frame to full height, but pad alternate lines with black;
6609 framerate unchanged.
6610 .IPs 4
6611 Interleave even lines from even frames with odd lines from odd frames.
6612 Height unchanged at half framerate.
6614 .PD 1
6617 .B tfields[=mode[:field_dominance]]
6618 Temporal field separation \- split fields into frames, doubling the
6619 output framerate.
6620 Like the telecine filter, tfields will only work properly with
6621 MEncoder, and only if both \-fps and \-ofps are set to the
6622 desired (double) framerate!
6623 .PD 0
6624 .RSs
6625 .IPs <mode>
6626 0: Leave fields unchanged (will jump/\:flicker).
6628 1: Interpolate missing lines. (The algorithm used might not be so good.)
6630 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
6632 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
6633 .IPs <field_dominance>\ (DEPRECATED)
6634 \-1: auto (default)
6635 Only works if the decoder exports the appropriate information and
6636 no other filters which discard that information come before tfields
6637 in the filter chain, otherwise it falls back to 0 (top field first).
6639 0: top field first
6641 1: bottom field first
6643 .I NOTE:
6644 This option will possibly be removed in a future version.
6645 Use \-field\-dominance instead.
6647 .PD 1
6650 .B yadif=[mode[:field_dominance]]
6651 Yet another deinterlacing filter
6652 .PD 0
6653 .RSs
6654 .IPs <mode>
6655 0: Output 1 frame for each frame.
6657 1: Output 1 frame for each field.
6659 2: Like 0 but skips spatial interlacing check.
6661 3: Like 1 but skips spatial interlacing check.
6662 .IPs <field_dominance>\ (DEPRECATED)
6663 Operates like tfields.
6665 .I NOTE:
6666 This option will possibly be removed in a future version.
6667 Use \-field\-dominance instead.
6669 .PD 1
6672 .B mcdeint=[mode[:parity[:qp]]]
6673 Motion compensating deinterlacer.
6674 It needs one field per frame as input and must thus be used together
6675 with tfields=1 or yadif=1/3 or equivalent.
6676 .PD 0
6677 .RSs
6678 .IPs <mode>
6679 0: fast
6681 1: medium
6683 2: slow, iterative motion estimation
6685 3: extra slow, like 2 plus multiple reference frames
6686 .IPs <parity>
6687 0 or 1 selects which field to use (note: no autodetection yet!).
6688 .IPs "<qp>\ "
6689 Higher values should result in a smoother motion vector
6690 field but less optimal individual vectors.
6692 .PD 1
6695 .B boxblur=radius:power[:radius:power]
6696 box blur
6697 .PD 0
6698 .RSs
6699 .IPs <radius>
6700 blur filter strength
6701 .IPs <power>
6702 number of filter applications
6704 .PD 1
6707 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
6708 shape adaptive blur
6709 .PD 0
6710 .RSs
6711 .IPs <radius>
6712 blur filter strength (~0.1\-4.0) (slower if larger)
6713 .IPs "<pf>\ "
6714 prefilter strength (~0.1\-2.0)
6715 .IPs <colorDiff>
6716 maximum difference between pixels to still be considered (~0.1\-100.0)
6718 .PD 1
6721 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
6722 smart blur
6723 .PD 0
6724 .RSs
6725 .IPs <radius>
6726 blur filter strength (~0.1\-5.0) (slower if larger)
6727 .IPs <strength>
6728 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
6729 .IPs <threshold>
6730 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
6732 .PD 1
6735 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
6736 Correct the perspective of movies not filmed perpendicular to the screen.
6737 .PD 0
6738 .RSs
6739 .IPs <x0>,<y0>,...
6740 coordinates of the top left, top right, bottom left, bottom right corners
6741 .IPs "<t>\ \ "
6742 linear (0) or cubic resampling (1)
6744 .PD 1
6747 .B "2xsai\ \ "
6748 Scale and smooth the image with the 2x scale and interpolate algorithm.
6751 .B "1bpp\ \ \ "
6752 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
6755 .B down3dright[=lines]
6756 Reposition and resize stereoscopic images.
6757 Extracts both stereo fields and places them side by side, resizing
6758 them to maintain the original movie aspect.
6759 .PD 0
6760 .RSs
6761 .IPs <lines>
6762 number of lines to select from the middle of the image (default: 12)
6764 .PD 1
6767 .B bmovl=hidden:opaque:fifo
6768 The bitmap overlay filter reads bitmaps from a FIFO and displays them
6769 on top of the movie, allowing some transformations on the image.
6770 Also see TOOLS/bmovl-test.c for a small bmovl test program.
6771 .PD 0
6772 .RSs
6773 .IPs <hidden>
6774 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
6775 .IPs <opaque>
6776 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
6777 .IPs <fifo>
6778 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
6779 controlling application)
6781 .PD 1
6782 .sp 1
6784 FIFO commands are:
6786 .PD 0
6787 .RSs
6788 .IPs "RGBA32 width height xpos ypos alpha clear"
6789 followed by width*height*4 Bytes of raw RGBA32 data.
6790 .IPs "ABGR32 width height xpos ypos alpha clear"
6791 followed by width*height*4 Bytes of raw ABGR32 data.
6792 .IPs "RGB24 width height xpos ypos alpha clear"
6793 followed by width*height*3 Bytes of raw RGB24 data.
6794 .IPs "BGR24 width height xpos ypos alpha clear"
6795 followed by width*height*3 Bytes of raw BGR24 data.
6796 .IPs "ALPHA width height xpos ypos alpha"
6797 Change alpha transparency of the specified area.
6798 .IPs "CLEAR width height xpos ypos"
6799 Clear area.
6800 .IPs OPAQUE
6801 Disable all alpha transparency.
6802 Send "ALPHA 0 0 0 0 0" to enable it again.
6803 .IPs "HIDE\ "
6804 Hide bitmap.
6805 .IPs "SHOW\ "
6806 Show bitmap.
6808 .PD 1
6809 .sp 1
6811 Arguments are:
6813 .PD 0
6814 .RSs
6815 .IPs "<width>, <height>"
6816 image/area size
6817 .IPs "<xpos>, <ypos>"
6818 Start blitting at position x/y.
6819 .IPs <alpha>
6820 Set alpha difference.
6821 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
6822 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
6823 .RSss
6824 0:    same as original
6826 255:  Make everything opaque.
6828 \-255: Make everything transparent.
6829 .REss
6830 .IPs <clear>
6831 Clear the framebuffer before blitting.
6832 .RSss
6833 0: The image will just be blitted on top of the old one, so you do not need to
6834 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
6836 1: clear
6837 .REss
6839 .PD 1
6842 .B framestep=I|[i]step
6843 Renders only every nth frame or every intra frame (keyframe).
6844 .sp 1
6845 If you call the filter with I (uppercase) as the parameter, then
6846 .B only
6847 keyframes are rendered.
6848 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
6849 for AVI it means every scene change or every keyint value (see \-lavcopts
6850 keyint= value if you use MEncoder to encode the video).
6851 .sp 1
6852 When a keyframe is found, an 'I!' string followed by a newline character is
6853 printed, leaving the current line of MPlayer/\:MEncoder output on the screen,
6854 because it contains the time (in seconds) and frame number of the keyframe
6855 (You can use this information to split the AVI.).
6856 .sp 1
6857 If you call the filter with a numeric parameter 'step' then only one in
6858 every 'step' frames is rendered.
6859 .sp 1
6860 If you put an 'i' (lowercase) before the number then an 'I!' is printed
6861 (like the I parameter).
6862 .sp 1
6863 If you give only the i then nothing is done to the frames, only I! is
6864 printed.
6867 .B tile=xtiles:ytiles:output:start:delta
6868 Tile a series of images into a single, bigger image.
6869 If you omit a parameter or use a value less than 0, then the default
6870 value is used.
6871 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
6872 It is probably a good idea to put the scale filter before the tile :-)
6873 .sp 1
6874 The parameters are:
6875 .sp 1
6876 .PD 0
6877 .RSs
6878 .IPs <xtiles>
6879 number of tiles on the x axis (default: 5)
6880 .IPs <ytiles>
6881 number of tiles on the y axis (default: 5)
6882 .IPs <output>
6883 Render the tile when 'output' number of frames are reached, where 'output'
6884 should be a number less than xtile * ytile.
6885 Missing tiles are left blank.
6886 You could, for example, write an 8 * 7 tile every 50 frames to have one
6887 image every 2 seconds @ 25 fps.
6888 .IPs <start>
6889 outer border thickness in pixels (default: 2)
6890 .IPs <delta>
6891 inner border thickness in pixels (default: 4)
6893 .PD 1
6896 .B delogo[=x:y:w:h:t]
6897 Suppresses a TV station logo by a simple interpolation of the
6898 surrounding pixels.
6899 Just set a rectangle covering the logo and watch it disappear (and
6900 sometimes something even uglier appear \- your mileage may vary).
6901 .PD 0
6902 .RSs
6903 .IPs <x>,<y>
6904 top left corner of the logo
6905 .IPs <w>,<h>
6906 width and height of the cleared rectangle
6907 .IPs <t>
6908 Thickness of the fuzzy edge of the rectangle (added to w and h).
6909 When set to \-1, a green rectangle is drawn on the screen to
6910 simplify finding the right x,y,w,h parameters.
6912 .PD 1
6915 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
6916 Suppresses a TV station logo, using a PGM or PPM image
6917 file to determine which pixels comprise the logo.
6918 The width and height of the image file must match
6919 those of the video stream being processed.
6920 Uses the filter image and a circular blur
6921 algorithm to remove the logo.
6922 .RSs
6923 .IPs /path/to/logo_bitmap_file_name.pgm
6924 [path] + filename of the filter image.
6928 .B zrmjpeg[=options]
6929 Software YV12 to MJPEG encoder for use with the zr2 video
6930 output device.
6931 .RSs
6932 .IPs maxheight=<h>|maxwidth=<w>
6933 These options set the maximum width and height the zr card
6934 can handle (the MPlayer filter layer currently cannot query those).
6935 .IPs {dc10+,dc10,buz,lml33}-{PAL|NTSC}
6936 Use these options to set maxwidth and maxheight automatically to the
6937 values known for card/\:mode combo.
6938 For example, valid options are: dc10-PAL and buz-NTSC (default: dc10+PAL)
6939 .IPs color|bw
6940 Select color or black and white encoding.
6941 Black and white encoding is faster.
6942 Color is the default.
6943 .IPs hdec={1,2,4}
6944 Horizontal decimation 1, 2 or 4.
6945 .IPs vdec={1,2,4}
6946 Vertical decimation 1, 2 or 4.
6947 .IPs quality=1\-20
6948 Set JPEG compression quality [BEST] 1 \- 20 [VERY BAD].
6949 .IPs fd|nofd
6950 By default, decimation is only performed if the Zoran hardware
6951 can upscale the resulting MJPEG images to the original size.
6952 The option fd instructs the filter to always perform the requested
6953 decimation (ugly).
6957 .B screenshot
6958 Allows acquiring screenshots of the movie using slave mode
6959 commands that can be bound to keypresses.
6960 See the slave mode documentation and the INTERACTIVE CONTROL
6961 section for details.
6962 Files named 'shotNNNN.png' will be saved in the working directory,
6963 using the first available number \- no files will be overwritten.
6964 The filter has no overhead when not used and accepts an arbitrary
6965 colorspace, so it is safe to add it to the configuration file.
6969 .B "ass\ \ \ \ "
6970 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
6971 Only useful with the \-ass option.
6972 .sp 1
6973 .I EXAMPLE:
6974 .PD 0
6975 .RSs
6976 .IPs "\-vf ass,screenshot"
6977 Moves SSA/ASS rendering before the screenshot filter.
6978 Screenshots taken this way will contain subtitles.
6980 .PD 1
6983 .B blackframe[=amount:threshold]
6984 Detect frames that are (almost) completely black.
6985 Can be useful to detect chapter transitions or commercials.
6986 Output lines consist of the frame number of the detected frame, the
6987 percentage of blackness, the frame type and the frame number of the last
6988 encountered keyframe.
6989 .RSs
6990 .IPs <amount>
6991 Percentage of the pixels that have to be below the threshold (default: 98).
6992 .IPs <threshold>
6993 Threshold below which a pixel value is considered black (default: 32).
6998 .SH "GENERAL ENCODING OPTIONS (MENCODER ONLY)"
7001 .B \-audio\-delay <any floating-point number>
7002 Delays either audio or video by setting a delay field in the header
7003 (default: 0.0).
7004 This does not delay either stream while encoding, but the player will
7005 see the delay field and compensate accordingly.
7006 Positive values delay the audio, and negative values delay the video.
7007 Note that this is the exact opposite of the \-delay option.
7008 For example, if a video plays correctly with \-delay 0.2, you can
7009 fix the video with MEncoder by using \-audio\-delay \-0.2.
7010 .sp 1
7011 Currently, this option only works with the default muxer (\-of avi).
7012 If you are using a different muxer, then you must use \-delay instead.
7015 .B \-audio\-density <1\-50>
7016 Number of audio chunks per second (default is 2 for 0.5s long audio chunks).
7018 .I NOTE:
7019 CBR only, VBR ignores this as it puts each packet in a new chunk.
7022 .B \-audio\-preload <0.0\-2.0>
7023 Sets up the audio buffering time interval (default: 0.5s).
7026 .B \-fafmttag <format>
7027 Can be used to override the audio format tag of the output file.
7028 .sp 1
7029 .I EXAMPLE:
7030 .PD 0
7031 .RSs
7032 .IPs "\-fafmttag 0x55"
7033 Will have the output file contain 0x55 (mp3) as audio format tag.
7035 .PD 1
7038 .B \-ffourcc <fourcc>
7039 Can be used to override the video fourcc of the output file.
7040 .sp 1
7041 .I EXAMPLE:
7042 .PD 0
7043 .RSs
7044 .IPs "\-ffourcc div3"
7045 Will have the output file contain 'div3' as video fourcc.
7047 .PD 1
7050 .B \-force\-avi\-aspect <0.2\-3.0>
7051 Override the aspect stored in the AVI OpenDML vprp header.
7052 This can be used to change the aspect ratio with '\-ovc copy'.
7055 .B \-frameno\-file <filename> (DEPRECATED)
7056 Specify the name of the audio file with framenumber mappings created in
7057 the first (audio only) pass of a special three pass encoding mode.
7059 .I NOTE:
7060 Using this mode will most likely give you A-V desync.
7061 Do not use it.
7062 It is kept for backwards compatibility only and will possibly
7063 be removed in a future version.
7066 .B \-hr\-edl\-seek
7067 Use a more precise, but much slower method for skipping areas.
7068 Areas marked for skipping are not seeked over, instead all
7069 frames are decoded, but only the necessary frames are encoded.
7070 This allows starting at non-keyframe boundaries.
7072 .I NOTE:
7073 Not guaranteed to work right with '\-ovc copy'.
7076 .B \-info <option1:option2:...> (AVI only)
7077 Specify the info header of the resulting AVI file.
7078 .sp 1
7079 Available options are:
7080 .RSs
7081 .IPs "help\ "
7082 Show this description.
7083 .IPs name=<value>
7084 title of the work
7085 .IPs artist=<value>
7086 artist or author of the work
7087 .IPs genre=<value>
7088 original work category
7089 .IPs subject=<value>
7090 contents of the work
7091 .IPs copyright=<value>
7092 copyright information
7093 .IPs srcform=<value>
7094 original format of the digitized material
7095 .IPs comment=<value>
7096 general comments about the work
7100 .B \-noautoexpand
7101 Do not automatically insert the expand filter into the MEncoder filter chain.
7102 Useful to control at which point of the filter chain subtitles are rendered
7103 when hardcoding subtitles onto a movie.
7106 .B \-noencodedups
7107 Do not attempt to encode duplicate frames in duplicate; always output
7108 zero-byte frames to indicate duplicates.
7109 Zero-byte frames will be written anyway unless a filter or encoder
7110 capable of doing duplicate encoding is loaded.
7111 Currently the only such filter is harddup.
7114 .B \-noodml (\-of avi only)
7115 Do not write OpenDML index for AVI files >1GB.
7118 .B \-noskip
7119 Do not skip frames.
7122 .B \-o <filename>
7123 Outputs to the given filename.
7125 If you want a default output filename, you can put this option in the
7126 MEncoder config file.
7129 .B \-oac <codec name>
7130 Encode with the given audio codec (no default set).
7132 .I NOTE:
7133 Use \-oac help to get a list of available audio codecs.
7134 .sp 1
7135 .I EXAMPLE:
7136 .PD 0
7137 .RSs
7138 .IPs "\-oac copy"
7139 no encoding, just streamcopy
7140 .IPs "\-oac pcm"
7141 Encode to uncompressed PCM.
7142 .IPs "\-oac mp3lame"
7143 Encode to MP3 (using LAME).
7144 .IPs "\-oac lavc"
7145 Encode with a libavcodec codec.
7147 .PD 1
7150 .B \-of <format> (BETA CODE!)
7151 Encode to the specified container format (default: AVI).
7153 .I NOTE:
7154 Use \-of help to get a list of available container formats.
7155 .sp 1
7156 .I EXAMPLE:
7157 .PD 0
7158 .RSs
7159 .IPs "\-of avi"
7160 Encode to AVI.
7161 .IPs "\-of mpeg"
7162 Encode to MPEG (also see \-mpegopts).
7163 .IPs "\-of lavf"
7164 Encode with libavformat muxers (also see \-lavfopts).
7165 .IPs "\-of rawvideo"
7166 raw video stream (no muxing \- one video stream only)
7167 .IPs "\-of rawaudio"
7168 raw audio stream (no muxing \- one audio stream only)
7170 .PD 1
7173 .B \-ofps <fps>
7174 Specify a frames per second (fps) value for the output file,
7175 which can be different from that of the source material.
7176 Must be set for variable fps (ASF, some MOV) and progressive
7177 (30000/1001 fps telecined MPEG) files.
7180 .B \-ovc <codec name>
7181 Encode with the given video codec (no default set).
7183 .I NOTE:
7184 Use \-ovc help to get a list of available video codecs.
7185 .sp 1
7186 .I EXAMPLE:
7187 .PD 0
7188 .RSs
7189 .IPs "\-ovc copy"
7190 no encoding, just streamcopy
7191 .IPs "\-ovc raw"
7192 Encode to an arbitrary uncompressed format (use '\-vf format' to select).
7193 .IPs "\-ovc lavc"
7194 Encode with a libavcodec codec.
7196 .PD 1
7199 .B \-passlogfile <filename>
7200 Dump first pass information to <filename> instead of the default divx2pass.log
7201 in two pass encoding mode.
7204 .B \-skiplimit <value>
7205 Specify the maximum number of frames that may be skipped after
7206 encoding one frame (\-noskiplimit for unlimited).
7209 .B \-vobsubout <basename>
7210 Specify the basename for the output .idx and .sub files.
7211 This turns off subtitle rendering in the encoded movie and diverts it to
7212 VOBsub subtitle files.
7215 .B \-vobsuboutid <langid>
7216 Specify the language two letter code for the subtitles.
7217 This overrides what is read from the DVD or the .ifo file.
7220 .B \-vobsuboutindex <index>
7221 Specify the index of the subtitles in the output files (default: 0).
7225 .SH "CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)"
7226 You can specify codec specific encoding parameters using the following
7227 syntax:
7230 .B \-<codec>opts <option1[=value],option2,...>
7233 Where <codec> may be: lavc, xvidenc, lame, toolame, twolame,
7234 nuv, xvfw, faac, x264enc, mpeg, lavf.
7237 .SS lame (\-lameopts)
7240 .B "help\ \ \ "
7241 get help
7244 .B vbr=<0\-4>
7245 variable bitrate method
7246 .PD 0
7247 .RSs
7248 .IPs 0
7250 .IPs 1
7252 .IPs 2
7253 rh (default)
7254 .IPs 3
7256 .IPs 4
7257 mtrh
7259 .PD 1
7262 .B "abr\ \ \ \ "
7263 average bitrate
7266 .B "cbr\ \ \ \ "
7267 constant bitrate
7268 Also forces CBR mode encoding on subsequent ABR presets modes.
7271 .B br=<0\-1024>
7272 bitrate in kbps (CBR and ABR only)
7275 .B q=<0\-9>
7276 quality (0 \- highest, 9 \- lowest) (VBR only)
7279 .B aq=<0\-9>
7280 algorithmic quality (0 \- best/slowest, 9 \- worst/fastest)
7283 .B ratio=<1\-100>
7284 compression ratio
7287 .B vol=<0\-10>
7288 audio input gain
7291 .B mode=<0\-3>
7292 (default: auto)
7293 .PD 0
7294 .RSs
7295 .IPs 0
7296 stereo
7297 .IPs 1
7298 joint-stereo
7299 .IPs 2
7300 dualchannel
7301 .IPs 3
7302 mono
7304 .PD 1
7307 .B padding=<0\-2>
7308 .PD 0
7309 .RSs
7310 .IPs 0
7311 none
7312 .IPs 1
7314 .IPs 2
7315 adjust
7317 .PD 1
7320 .B "fast\ \ \ "
7321 Switch on faster encoding on subsequent VBR presets modes.
7322 This results in slightly lower quality and higher bitrates.
7325 .B highpassfreq=<freq>
7326 Set a highpass filtering frequency in Hz.
7327 Frequencies below the specified one will be cut off.
7328 A value of \-1 will disable filtering, a value of 0
7329 will let LAME choose values automatically.
7332 .B lowpassfreq=<freq>
7333 Set a lowpass filtering frequency in Hz.
7334 Frequencies above the specified one will be cut off.
7335 A value of \-1 will disable filtering, a value of 0
7336 will let LAME choose values automatically.
7339 .B preset=<value>
7340 preset values
7341 .RSs
7342 .IPs "help\ "
7343 Print additional options and information about presets settings.
7344 .IPs medium
7345 VBR encoding, good quality, 150\-180 kbps bitrate range
7346 .IPs standard
7347 VBR encoding, high quality, 170\-210 kbps bitrate range
7348 .IPs extreme
7349 VBR encoding, very high quality, 200\-240 kbps bitrate range
7350 .IPs insane
7351 CBR encoding, highest preset quality, 320 kbps bitrate
7352 .IPs <8\-320>
7353 ABR encoding at average given kbps bitrate
7355 .sp 1
7357 .I EXAMPLES:
7359 .PD 0
7360 .RSs
7361 .IPs fast:preset=standard
7362 suitable for most people and most music types and already quite high quality
7363 .IPs cbr:preset=192
7364 Encode with ABR presets at a 192 kbps forced constant bitrate.
7365 .IPs preset=172
7366 Encode with ABR presets at a 172 kbps average bitrate.
7367 .IPs preset=extreme
7368 for people with extremely good hearing and similar equipment
7370 .PD 1
7373 .SS toolame and twolame (\-toolameopts and \-twolameopts respectively)
7376 .B br=<32\-384>
7377 In CBR mode this parameter indicates the bitrate in kbps,
7378 when in VBR mode it is the minimum bitrate allowed per frame.
7379 VBR mode will not work with a value below 112.
7382 .B vbr=<\-50\-50> (VBR only)
7383 variability range; if negative the encoder shifts the average bitrate
7384 towards the lower limit, if positive towards the higher.
7385 When set to 0 CBR is used (default).
7388 .B maxvbr=<32\-384> (VBR only)
7389 maximum bitrate allowed per frame, in kbps
7392 .B mode=<stereo  |  jstereo  |  mono  |  dual>
7393 (default: mono for 1-channel audio, stereo otherwise)
7396 .B psy=<\-1\-4>
7397 psychoacoustic model (default: 2)
7400 .B errprot=<0 | 1>
7401 Include error protection.
7404 .B debug=<0\-10>
7405 debug level
7407 .PD 1
7410 .SS faac (\-faacopts)
7413 .B br=<bitrate>
7414 average bitrate in kbps (mutually exclusive with quality)
7417 .B quality=<1\-1000>
7418 quality mode, the higher the better (mutually exclusive with br)
7421 .B object=<1\-4>
7422 object type complexity
7423 .PD 0
7424 .RSs
7425 .IPs 1
7426 MAIN (default)
7427 .IPs 2
7429 .IPs 3
7431 .IPs 4
7432 LTP (extremely slow)
7434 .PD 1
7437 .B mpeg=<2|4>
7438 MPEG version (default: 4)
7441 .B "tns\ \ \ \ "
7442 Enables temporal noise shaping.
7445 .B cutoff=<0\-sampling_rate/2>
7446 cutoff frequency (default: sampling_rate/2)
7449 .B "raw\ \ \ \ "
7450 Stores the bitstream as raw payload with extradata in the container header
7451 (default: 0, corresponds to ADTS).
7452 Do not set this flag if not explicitly required or you will not be able to
7453 remux the audio stream later on.
7455 .PD 1
7458 .SS lavc (\-lavcopts)
7460 Many libavcodec (lavc for short) options are tersely documented.
7461 Read the source for full details.
7463 .I EXAMPLE:
7464 .PD 0
7465 .RSs
7466 .IPs vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
7468 .PD 1
7471 .B acodec=<value>
7472 audio codec (default: mp2)
7473 .PD 0
7474 .RSs
7475 .IPs "ac3\ \ "
7476 Dolby Digital (AC-3)
7477 .IPs adpcm_*
7478 Adaptive PCM formats \- see the HTML documentation for details.
7479 .IPs "flac\ "
7480 Free Lossless Audio Codec (FLAC)
7481 .IPs "g726\ "
7482 G.726 ADPCM
7483 .IPs libamr_nb
7484 3GPP Adaptive Multi-Rate (AMR) narrow-band
7485 .IPs libamr_wb
7486 3GPP Adaptive Multi-Rate (AMR) wide-band
7487 .IPs libfaac
7488 Advanced Audio Coding (AAC) \- using FAAC
7489 .IPs libmp3lame
7490 MPEG-1 audio layer 3 (MP3) \- using LAME
7491 .IPs "mp2\ \ "
7492 MPEG-1 audio layer 2 (MP2)
7493 .IPs pcm_*
7494 PCM formats \- see the HTML documentation for details.
7495 .IPs roq_dpcm
7496 Id Software RoQ DPCM
7497 .IPs sonic
7498 experimental simple lossy codec
7499 .IPs sonicls
7500 experimental simple lossless codec
7501 .IPs vorbis
7502 Vorbis
7503 .IPs wmav1
7504 Windows Media Audio v1
7505 .IPs wmav2
7506 Windows Media Audio v2
7508 .PD 1
7511 .B abitrate=<value>
7512 audio bitrate in kbps (default: 224)
7515 .B atag=<value>
7516 Use the specified Windows audio format tag (e.g.\& atag=0x55).
7519 .B bit_exact
7520 Use only bit exact algorithms (except (I)DCT).
7521 Additionally bit_exact disables several optimizations and thus
7522 should only be used for regression tests, which need binary
7523 identical files even if the encoder version changes.
7524 This also suppresses the user_data header in MPEG-4 streams.
7525 Do not use this option unless you know exactly what you are doing.
7528 .B threads=<1\-8>
7529 Maximum number of threads to use (default: 1).
7530 May have a slight negative effect on motion estimation.
7534 .B vcodec=<value>
7535 Employ the specified codec (default: mpeg4).
7536 .PD 0
7537 .RSs
7538 .IPs "asv1\ "
7539 ASUS Video v1
7540 .IPs "asv2\ "
7541 ASUS Video v2
7542 .IPs dvvideo
7543 Sony Digital Video
7544 .IPs "ffv1\ "
7545 FFmpeg's lossless video codec
7546 .IPs ffvhuff
7547 nonstandard 20% smaller HuffYUV using YV12
7548 .IPs "flv\ \ "
7549 Sorenson H.263 used in Flash Video
7550 .IPs "h261\ "
7551 H.261
7552 .IPs "h263\ "
7553 H.263
7554 .IPs h263p
7555 H.263+
7556 .IPs huffyuv
7557 HuffYUV
7558 .IPs libtheora
7559 Theora
7560 .IPs libx264
7561 x264 H.264/AVC MPEG-4 Part 10
7562 .IPs libxvid
7563 Xvid MPEG-4 Part 2 (ASP)
7564 .IPs ljpeg
7565 Lossless JPEG
7566 .IPs mjpeg
7567 Motion JPEG
7568 .IPs mpeg1video
7569 MPEG-1 video
7570 .IPs mpeg2video
7571 MPEG-2 video
7572 .IPs mpeg4
7573 MPEG-4 (DivX 4/5)
7574 .IPs msmpeg4
7575 DivX 3
7576 .IPs msmpeg4v2
7577 MS MPEG4v2
7578 .IPs roqvideo
7579 ID Software RoQ Video
7580 .IPs "rv10\ "
7581 an old RealVideo codec
7582 .IPs "snow (also see: vstrict)"
7583 FFmpeg's experimental wavelet-based codec
7584 .IPs "svq1\ "
7585 Apple Sorenson Video 1
7586 .IPs "wmv1\ "
7587 Windows Media Video, version 1 (AKA WMV7)
7588 .IPs "wmv2\ "
7589 Windows Media Video, version 2 (AKA WMV8)
7591 .PD 1
7594 .B vqmin=<1\-31>
7595 minimum quantizer (pass 1/2)
7596 .RSs
7597 .IPs 1
7598 Not recommended (much larger file, little quality difference and weird side
7599 effects: msmpeg4, h263 will be very low quality, ratecontrol will be confused
7600 resulting in lower quality and some decoders will not be able to decode it).
7601 .IPs 2
7602 Recommended for normal mpeg4/\:mpeg1video encoding (default).
7603 .IPs 3
7604 Recommended for h263(p)/\:msmpeg4.
7605 The reason for preferring 3 over 2 is that 2 could lead to overflows.
7606 (This will be fixed for h263(p) by changing the quantizer per MB in
7607 the future, msmpeg4 cannot be fixed as it does not support that.)
7611 .B lmin=<0.01\-255.0>
7612 Minimum frame-level Lagrange multiplier for ratecontrol (default: 2.0).
7613 Lavc will rarely use quantizers below the value of lmin.
7614 Lowering lmin will make lavc more likely to choose lower quantizers for
7615 some frames, but not lower than the value of vqmin.
7616 Likewise, raising lmin will make lavc less likely to choose low
7617 quantizers, even if vqmin would have allowed them.
7618 You probably want to set lmin approximately equal to vqmin.
7619 When adaptive quantization is in use, changing lmin/lmax may have less
7620 of an effect; see mblmin/mblmax.
7624 .B lmax=<0.01\-255.0>
7625 maximum Lagrange multiplier for ratecontrol (default: 31.0)
7629 .B mblmin=<0.01\-255.0>
7630 Minimum macroblock-level Lagrange multiplier for ratecontrol
7631 (default:2.0).
7632 This parameter affects adaptive quantization options like qprd,
7633 lumi_mask, etc..
7637 .B mblmax=<0.01\-255.0>
7638 Maximum macroblock-level Lagrange multiplier for ratecontrol
7639 (default: 31.0).
7643 .B vqscale=<0\-31>
7644 Constant quantizer /\: constant quality encoding (selects fixed quantizer mode).
7645 A lower value means better quality but larger files (default: \-1).
7646 In case of snow codec, value 0 means lossless encoding.
7647 Since the other codecs do not support this, vqscale=0 will have an undefined
7648 effect.
7649 1 is not recommended (see vqmin for details).
7652 .B vqmax=<1\-31>
7653 Maximum quantizer (pass 1/2), 10\-31 should be a sane range (default: 31).
7656 .B mbqmin=<1\-31>
7657 obsolete, use vqmin
7660 .B mbqmax=<1\-31>
7661 obsolete, use vqmax
7664 .B vqdiff=<1\-31>
7665 maximum quantizer difference between consecutive I- or P-frames
7666 (pass 1/2) (default: 3)
7669 .B vmax_b_frames=<0\-4>
7670 maximum number of B-frames between non-B-frames:
7671 .PD 0
7672 .RSs
7673 .IPs 0
7674 no B-frames (default)
7675 .IPs 0\-2
7676 sane range for MPEG-4
7678 .PD 1
7681 .B vme=<0\-5>
7682 motion estimation method.
7683 Available methods are:
7684 .PD 0
7685 .RSs
7686 .IPs 0
7687 none (very low quality)
7688 .IPs 1
7689 full (slow, currently unmaintained and disabled)
7690 .IPs 2
7691 log (low quality, currently unmaintained and disabled)
7692 .IPs 3
7693 phods (low quality, currently unmaintained and disabled)
7694 .IPs 4
7695 EPZS: size=1 diamond, size can be adjusted with the *dia options
7696 (default)
7697 .IPs 5
7698 X1 (experimental, currently aliased to EPZS)
7699 .IPs 8
7700 iter (iterative overlapped block, only used in snow)
7702 .PD 1
7703 .sp 1
7706 .I NOTE:
7707 0\-3 currently ignores the amount of bits spent,
7708 so quality may be low.
7712 .B me_range=<0\-9999>
7713 motion estimation search range (default: 0 (unlimited))
7716 .B mbd=<0\-2> (see also *cmp, qpel)
7717 Macroblock decision algorithm (high quality mode), encode each macro
7718 block in all modes and choose the best.
7719 This is slow but results in better quality and file size.
7720 When mbd is set to 1 or 2, the value of mbcmp is ignored when comparing
7721 macroblocks.
7722 If any comparison setting (precmp, subcmp, cmp, or mbcmp) is nonzero,
7723 however, a slower but better half-pel motion search will be used,
7724 regardless of what mbd is set to.
7725 If qpel is set, quarter-pel motion search will be used regardless.
7726 .PD 0
7727 .RSs
7728 .IPs 0
7729 Use comparison function given by mbcmp (default).
7730 .IPs 1
7731 Select the MB mode which needs the fewest bits (=vhq).
7732 .IPs 2
7733 Select the MB mode which has the best rate distortion.
7735 .PD 1
7738 .B "vhq\ \ \ \ "
7739 Same as mbd=1, kept for compatibility reasons.
7742 .B "v4mv\ \ \ "
7743 Allow 4 motion vectors per macroblock (slightly better quality).
7744 Works better if used with mbd>0.
7747 .B "obmc\ \ \ "
7748 overlapped block motion compensation (H.263+)
7751 .B "loop\ \ \ "
7752 loop filter (H.263+)
7753 note, this is broken
7756 .B inter_threshold <\-1000\-1000>
7757 Does absolutely nothing at the moment.
7760 .B keyint=<0\-300>
7761 maximum interval between keyframes in frames (default: 250 or one
7762 keyframe every ten seconds in a 25fps movie.
7763 This is the recommended default for MPEG-4).
7764 Most codecs require regular keyframes in order to limit the accumulation of mismatch error.
7765 Keyframes are also needed for seeking, as seeking is only possible to a keyframe \- but
7766 keyframes need more space than other frames, so larger numbers here mean
7767 slightly smaller files but less precise seeking.
7768 0 is equivalent to 1, which makes every frame a keyframe.
7769 Values >300 are not recommended as the quality might be bad depending upon
7770 decoder, encoder and luck.
7771 It is common for MPEG-1/2 to use values <=30.
7774 .B sc_threshold=<\-1000000000\-1000000000>
7775 Threshold for scene change detection.
7776 A keyframe is inserted by libavcodec when it detects a scene change.
7777 You can specify the sensitivity of the detection with this option.
7778 \-1000000000 means there is a scene change detected at every frame,
7779 1000000000 means no scene changes are detected (default: 0).
7782 .B sc_factor=<any positive integer>
7783 Causes frames with higher quantizers to be more likely to trigger a
7784 scene change detection and make libavcodec use an I-frame (default: 1).
7785 1\-16 is a sane range.
7786 Values between 2 and 6 may yield increasing PSNR (up to approximately
7787 0.04 dB) and better placement of I-frames in high-motion scenes.
7788 Higher values than 6 may give very slightly better PSNR (approximately
7789 0.01 dB more than sc_factor=6), but noticably worse visual quality.
7792 .B vb_strategy=<0\-2> (pass one only)
7793 strategy to choose between I/P/B-frames:
7794 .PD 0
7795 .RSs
7796 .IPs 0
7797 Always use the maximum number of B-frames (default).
7798 .IPs 1
7799 Avoid B-frames in high motion scenes.
7800 See the b_sensitivity option to tune this strategy.
7801 .IPs 2
7802 Places B-frames more or less optimally to yield maximum quality (slower).
7803 You may want to reduce the speed impact of this option by tuning the
7804 option brd_scale.
7806 .PD 1
7809 .B b_sensitivity=<any integer greater than 0>
7810 Adjusts how sensitively vb_strategy=1 detects motion and avoids using
7811 B-frames (default: 40).
7812 Lower sensitivities will result in more B-frames.
7813 Using more B-frames usually improves PSNR, but too many B-frames can
7814 hurt quality in high-motion scenes.
7815 Unless there is an extremely high amount of motion, b_sensitivity can
7816 safely be lowered below the default; 10 is a reasonable value in most
7817 cases.
7820 .B brd_scale=<0\-10>
7821 Downscales frames for dynamic B-frame decision (default: 0).
7822 Each time brd_scale is increased by one, the frame dimensions are
7823 divided by two, which improves speed by a factor of four.
7824 Both dimensions of the fully downscaled frame must be even numbers, so
7825 brd_scale=1 requires the original dimensions to be multiples of four,
7826 brd_scale=2 requires multiples of eight, etc.
7827 In other words, the dimensions of the original frame must both be
7828 divisible by 2^(brd_scale+1) with no remainder.
7831 .B bidir_refine=<0\-4>
7832 Refine the two motion vectors used in bidirectional macroblocks,
7833 rather than re-using vectors from the forward and backward searches.
7834 This option has no effect without B-frames.
7835 .PD 0
7836 .RSs
7837 .IPs 0
7838 Disabled (default).
7839 .IPs 1\-4
7840 Use a wider search (larger values are slower).
7842 .PD 1
7845 .B vpass=<1\-3>
7846 Activates internal two (or more) pass mode, only specify if you wish to
7847 use two (or more) pass encoding.
7848 .PD 0
7849 .RSs
7850 .IPs 1
7851 first pass (also see turbo)
7852 .IPs 2
7853 second pass
7854 .IPs 3
7855 Nth pass (second and subsequent passes of N-pass encoding)
7858 Here is how it works, and how to use it:
7860 The first pass (vpass=1) writes the statistics file.
7861 You might want to deactivate some CPU-hungry options, like "turbo"
7862 mode does.
7864 In two pass mode, the second pass (vpass=2) reads the statistics file and
7865 bases ratecontrol decisions on it.
7867 In N-pass mode, the second pass (vpass=3, that is not a typo)
7868 does both: It first reads the statistics, then overwrites them.
7869 You might want to backup divx2pass.log before doing this if there is
7870 any possibility that you will have to cancel MEncoder.
7871 You can use all encoding options, except very CPU-hungry options like "qns".
7873 You can run this same pass over and over to refine the encode.
7874 Each subsequent pass will use the statistics from the previous pass to improve.
7875 The final pass can include any CPU-hungry encoding options.
7877 If you want a 2 pass encode, use first vpass=1, and then vpass=2.
7879 If you want a 3 or more pass encode, use vpass=1 for the first pass
7880 and then vpass=3 and then vpass=3 again and again until you are
7881 satisfied with the encode.
7883 .PD 1
7884 .sp 1
7886 huffyuv:
7888 .PD 0
7889 .RSs
7890 .IPs "pass 1"
7891 Saves statistics.
7892 .IPs "pass 2"
7893 Encodes with an optimal Huffman table based upon statistics
7894 from the first pass.
7896 .PD 1
7899 .B turbo (two pass only)
7900 Dramatically speeds up pass one using faster algorithms and disabling
7901 CPU-intensive options.
7902 This will probably reduce global PSNR a little bit (around 0.01dB) and
7903 change individual frame type and PSNR a little bit more (up to 0.03dB).
7906 .B aspect=<x/y>
7907 Store movie aspect internally, just like with MPEG files.
7908 Much nicer than rescaling, because quality is not decreased.
7909 Only MPlayer will play these files correctly, other players will display
7910 them with wrong aspect.
7911 The aspect parameter can be given as a ratio or a floating point number.
7912 .sp 1
7914 .I EXAMPLE:
7916 .RSs
7917 .PD 0
7918 .IPs "aspect=16/9 or aspect=1.78"
7919 .PD 1
7923 .B autoaspect
7924 Same as the aspect option, but automatically computes aspect, taking
7925 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
7926 filter chain.
7927 Does not incur a performance penalty, so you can safely leave it
7928 always on.
7931 .B vbitrate=<value>
7932 Specify bitrate (pass 1/2) (default: 800).
7934 .I WARNING:
7935 1kbit = 1000 bits
7936 .PD 0
7937 .RSs
7938 .IPs 4\-16000
7939 (in kbit)
7940 .IPs 16001\-24000000
7941 (in bit)
7943 .PD 1
7946 .B vratetol=<value>
7947 approximated file size tolerance in kbit.
7948 1000\-100000 is a sane range.
7949 (warning: 1kbit = 1000 bits)
7950 (default: 8000)
7952 .I NOTE:
7953 vratetol should not be too large during the second pass or there might
7954 be problems if vrc_(min|max)rate is used.
7957 .B vrc_maxrate=<value>
7958 maximum bitrate in kbit/\:sec (pass 1/2)
7959 (default: 0, unlimited)
7962 .B vrc_minrate=<value>
7963 minimum bitrate in kbit/\:sec (pass 1/2)
7964 (default: 0, unlimited)
7967 .B vrc_buf_size=<value>
7968 buffer size in kbit (pass 1/2).
7969 For MPEG-1/2 this also sets the vbv buffer size, use 327 for VCD,
7970 917 for SVCD and 1835 for DVD.
7973 .B vrc_buf_aggressivity
7974 currently useless
7977 .B vrc_strategy
7978 Ratecontrol method.
7979 Note that some of the ratecontrol-affecting options will have no effect
7980 if vrc_strategy is not set to 0.
7981 .PD 0
7982 .RSs
7983 .IPs 0
7984 Use internal lavc ratecontrol (default).
7985 .IPs 1
7986 Use Xvid ratecontrol (experimental; requires MEncoder to be compiled
7987 with support for Xvid 1.1 or higher).
7989 .PD 1
7992 .B vb_qfactor=<\-31.0\-31.0>
7993 quantizer factor between B- and non-B-frames (pass 1/2) (default: 1.25)
7996 .B vi_qfactor=<\-31.0\-31.0>
7997 quantizer factor between I- and non-I-frames (pass 1/2) (default: 0.8)
8000 .B vb_qoffset=<\-31.0\-31.0>
8001 quantizer offset between B- and non-B-frames (pass 1/2) (default: 1.25)
8004 .B vi_qoffset=<\-31.0\-31.0>
8005 (pass 1/2) (default: 0.0)
8007 if v{b|i}_qfactor > 0
8009 I/B-frame quantizer = P-frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset
8011 else
8013 do normal ratecontrol (do not lock to next P-frame quantizer) and
8014 set q= \-q * v{b|i}_qfactor + v{b|i}_qoffset
8016 .I HINT:
8017 To do constant quantizer encoding with different quantizers for
8018 I/P- and B-frames you can use:
8019 lmin= <ip_quant>:lmax= <ip_quant>:vb_qfactor= <b_quant/\:ip_quant>.
8022 .B vqblur=<0.0\-1.0> (pass one)
8023 Quantizer blur (default: 0.5), larger values will average the
8024 quantizer more over time (slower change).
8025 .PD 0
8026 .RSs
8027 .IPs 0.0
8028 Quantizer blur disabled.
8029 .IPs 1.0
8030 Average the quantizer over all previous frames.
8032 .PD 1
8035 .B vqblur=<0.0\-99.0> (pass two)
8036 Quantizer gaussian blur (default: 0.5), larger values will average
8037 the quantizer more over time (slower change).
8040 .B vqcomp=<0.0\-1.0>
8041 Quantizer compression, vrc_eq depends upon this (pass 1/2) (default: 0.5).
8042 For instance, assuming the default rate control equation is used,
8043 if vqcomp=1.0, the ratecontrol allocates to each frame the number of bits
8044 needed to encode them all at the same QP.
8045 If vqcomp=0.0, the ratecontrol allocates the same number of bits to each
8046 frame, i.e. strict CBR.
8047 .I NOTE:
8048 Those are extreme settings and should never be used.
8049 Perceptual quality will be optimal somewhere in between these two extremes.
8052 .B vrc_eq=<equation>
8053 main ratecontrol equation (pass 1/2)
8055 .RSs
8056 .IPs "1\ \ \ \ "
8057 constant bitrate
8058 .IPs "tex\ \ "
8059 constant quality
8060 .IPs 1+(tex/\:avgTex-1)*qComp
8061 approximately the equation of the old ratecontrol code
8062 .IPs tex^qComp
8063 with qcomp 0.5 or something like that (default)
8067 infix operators:
8069 .RSs
8070 .IPs +,\-,*,/,^
8074 variables:
8076 .RSs
8077 .IPs "tex\ \ "
8078 texture complexity
8079 .IPs iTex,pTex
8080 intra, non-intra texture complexity
8081 .IPs avgTex
8082 average texture complexity
8083 .IPs avgIITex
8084 average intra texture complexity in I-frames
8085 .IPs avgPITex
8086 average intra texture complexity in P-frames
8087 .IPs avgPPTex
8088 average non-intra texture complexity in P-frames
8089 .IPs avgBPTex
8090 average non-intra texture complexity in B-frames
8091 .IPs "mv\ \ \ "
8092 bits used for motion vectors
8093 .IPs fCode
8094 maximum length of motion vector in log2 scale
8095 .IPs iCount
8096 number of intra macroblocks / number of macroblocks
8097 .IPs "var\ \ "
8098 spatial complexity
8099 .IPs mcVar
8100 temporal complexity
8101 .IPs qComp
8102 qcomp from the command line
8103 .IPs "isI, isP, isB"
8104 Is 1 if picture type is I/P/B else 0.
8105 .IPs "Pi,E\ "
8106 See your favorite math book.
8110 functions:
8112 .RSs
8113 .IPs max(a,b),min(a,b)
8114 maximum / minimum
8115 .IPs gt(a,b)
8116 is 1 if a>b, 0 otherwise
8117 .IPs lt(a,b)
8118 is 1 if a<b, 0 otherwise
8119 .IPs eq(a,b)
8120 is 1 if a==b, 0 otherwise
8121 .IPs "sin, cos, tan, sinh, cosh, tanh, exp, log, abs"
8125 .B vrc_override=<options>
8126 User specified quality for specific parts (ending, credits, ...) (pass 1/2).
8127 The options are <start-frame>, <end-frame>, <quality>[/<start-frame>,
8128 <end-frame>, <quality>[/...]]:
8129 .PD 0
8130 .RSs
8131 .IPs "quality (2\-31)"
8132 quantizer
8133 .IPs "quality (\-500\-0)"
8134 quality correction in %
8136 .PD 1
8139 .B vrc_init_cplx=<0\-1000>
8140 initial complexity (pass 1)
8143 .B vrc_init_occupancy=<0.0\-1.0>
8144 initial buffer occupancy, as a fraction of vrc_buf_size (default: 0.9)
8147 .B vqsquish=<0|1>
8148 Specify how to keep the quantizer between qmin and qmax (pass 1/2).
8149 .PD 0
8150 .RSs
8151 .IPs 0
8152 Use clipping.
8153 .IPs 1
8154 Use a nice differentiable function (default).
8156 .PD 1
8159 .B vlelim=<\-1000\-1000>
8160 Sets single coefficient elimination threshold for luminance.
8161 Negative values will also consider the DC coefficient (should be at least \-4
8162 or lower for encoding at quant=1):
8163 .PD 0
8164 .RSs
8165 .IPs 0
8166 disabled (default)
8167 .IPs \-4
8168 JVT recommendation
8170 .PD 1
8173 .B vcelim=<\-1000\-1000>
8174 Sets single coefficient elimination threshold for chrominance.
8175 Negative values will also consider the DC coefficient (should be at least \-4
8176 or lower for encoding at quant=1):
8177 .PD 0
8178 .RSs
8179 .IPs 0
8180 disabled (default)
8181 .IPs 7
8182 JVT recommendation
8184 .PD 1
8187 .B vstrict=<\-2|\-1|0|1>
8188 strict standard compliance
8189 .PD 0
8190 .RSs
8191 .IPs 0
8192 disabled
8193 .IPs 1
8194 Only recommended if you want to feed the output into the
8195 MPEG-4 reference decoder.
8196 .IPs \-1
8197 Allow libavcodec specific extensions (default).
8198 .IPs \-2
8199 Enables experimental codecs and features which may not be playable
8200 with future MPlayer versions (snow).
8202 .PD 1
8205 .B "vdpart\ "
8206 Data partitioning.
8207 Adds 2 Bytes per video packet, improves error-resistance when transferring over
8208 unreliable channels (e.g.\& streaming over the internet).
8209 Each video packet will be encoded in 3 separate partitions:
8210 .PD 0
8211 .RSs
8212 .IPs "1. MVs"
8213 movement
8214 .IPs "2. DC coefficients"
8215 low res picture
8216 .IPs "3. AC coefficients"
8217 details
8219 .PD 1
8221 MV & DC are most important, losing them looks far worse than losing
8222 the AC and the 1. & 2. partition.
8223 (MV & DC) are far smaller than the 3. partition (AC) meaning that errors
8224 will hit the AC partition much more often than the MV & DC partitions.
8225 Thus, the picture will look better with partitioning than without,
8226 as without partitioning an error will trash AC/\:DC/\:MV equally.
8230 .B vpsize=<0\-10000> (also see vdpart)
8231 Video packet size, improves error-resistance.
8232 .PD 0
8233 .RSs
8234 .IPs "0\ \ \ \ "
8235 disabled (default)
8236 .IPs 100\-1000
8237 good choice
8239 .PD 1
8242 .B "ss\ \ \ \ \ "
8243 slice structured mode for H.263+
8246 .B "gray\ \ \ "
8247 grayscale only encoding (faster)
8250 .B vfdct=<0\-10>
8251 DCT algorithm
8252 .PD 0
8253 .RSs
8254 .IPs 0
8255 Automatically select a good one (default).
8256 .IPs 1
8257 fast integer
8258 .IPs 2
8259 accurate integer
8260 .IPs 3
8262 .IPs 4
8263 mlib
8264 .IPs 5
8265 AltiVec
8266 .IPs 6
8267 floating point AAN
8269 .PD 1
8272 .B idct=<0\-99>
8273 IDCT algorithm
8275 .I NOTE:
8276 To the best of our knowledge all these IDCTs do pass the IEEE1180 tests.
8277 .PD 0
8278 .RSs
8279 .IPs 0
8280 Automatically select a good one (default).
8281 .IPs 1
8282 JPEG reference integer
8283 .IPs 2
8284 simple
8285 .IPs 3
8286 simplemmx
8287 .IPs 4
8288 libmpeg2mmx (inaccurate, do not use for encoding with keyint >100)
8289 .IPs 5
8291 .IPs 6
8292 mlib
8293 .IPs 7
8295 .IPs 8
8296 AltiVec
8297 .IPs 9
8299 .IPs 10
8300 simplearm
8301 .IPs 11
8302 H.264
8303 .IPs 12
8305 .IPs 13
8307 .IPs 14
8308 xvidmmx
8309 .IPs 15
8310 CAVS
8311 .IPs 16
8312 simplearmv5te
8313 .IPs 17
8314 simplearmv6
8316 .PD 1
8319 .B lumi_mask=<0.0\-1.0>
8320 Luminance masking is a 'psychosensory' setting that is supposed to
8321 make use of the fact that the human eye tends to notice fewer details
8322 in very bright parts of the picture.
8323 Luminance masking compresses bright areas stronger than medium ones,
8324 so it will save bits that can be spent again on other frames, raising
8325 overall subjective quality, while possibly reducing PSNR.
8327 .I WARNING:
8328 Be careful, overly large values can cause disastrous things.
8330 .I WARNING:
8331 Large values might look good on some monitors but may look horrible
8332 on other monitors.
8333 .PD 0
8334 .RSs
8335 .IPs "0.0\ \ "
8336 disabled (default)
8337 .IPs 0.0\-0.3
8338 sane range
8340 .PD 1
8343 .B dark_mask=<0.0\-1.0>
8344 Darkness masking is a 'psychosensory' setting that is supposed to
8345 make use of the fact that the human eye tends to notice fewer details
8346 in very dark parts of the picture.
8347 Darkness masking compresses dark areas stronger than medium ones,
8348 so it will save bits that can be spent again on other frames, raising
8349 overall subjective quality, while possibly reducing PSNR.
8351 .I WARNING:
8352 Be careful, overly large values can cause disastrous things.
8354 .I WARNING:
8355 Large values might look good on some monitors but may look horrible
8356 on other monitors / TV / TFT.
8357 .PD 0
8358 .RSs
8359 .IPs "0.0\ \ "
8360 disabled (default)
8361 .IPs 0.0\-0.3
8362 sane range
8364 .PD 1
8367 .B tcplx_mask=<0.0\-1.0>
8368 Temporal complexity masking (default: 0.0 (disabled)).
8369 Imagine a scene with a bird flying across the whole scene; tcplx_mask
8370 will raise the quantizers of the bird's macroblocks (thus decreasing their
8371 quality), as the human eye usually does not have time to see all the bird's
8372 details.
8373 Be warned that if the masked object stops (e.g.\& the bird lands) it is
8374 likely to look horrible for a short period of time, until the encoder
8375 figures out that the object is not moving and needs refined blocks.
8376 The saved bits will be spent on other parts of the video, which may increase
8377 subjective quality, provided that tcplx_mask is carefully chosen.
8380 .B scplx_mask=<0.0\-1.0>
8381 Spatial complexity masking.
8382 Larger values help against blockiness, if no deblocking filter is used for
8383 decoding, which is maybe not a good idea.
8385 Imagine a scene with grass (which usually has great spatial complexity),
8386 a blue sky and a house; scplx_mask will raise the quantizers of the grass'
8387 macroblocks, thus decreasing its quality, in order to spend more bits on
8388 the sky and the house.
8390 .I HINT:
8391 Crop any black borders completely as they will reduce the quality
8392 of the macroblocks (also applies without scplx_mask).
8393 .PD 0
8394 .RSs
8395 .IPs "0.0\ \ "
8396 disabled (default)
8397 .IPs 0.0\-0.5
8398 sane range
8400 .PD 1
8401 .sp 1
8403 .I NOTE:
8404 This setting does not have the same effect as using a custom matrix that
8405 would compress high frequencies harder, as scplx_mask will reduce the
8406 quality of P blocks even if only DC is changing.
8407 The result of scplx_mask will probably not look as good.
8411 .B p_mask=<0.0\-1.0> (also see vi_qfactor)
8412 Reduces the quality of inter blocks.
8413 This is equivalent to increasing the quality of intra blocks, because the
8414 same average bitrate will be distributed by the rate controller to the
8415 whole video sequence (default: 0.0 (disabled)).
8416 p_mask=1.0 doubles the bits allocated to each intra block.
8419 .B border_mask=<0.0\-1.0>
8420 border-processing for MPEG-style encoders.
8421 Border processing increases the quantizer for macroblocks which are less
8422 than 1/5th of the frame width/height away from the frame border,
8423 since they are often visually less important.
8426 .B "naq\ \ \ \ "
8427 Normalize adaptive quantization (experimental).
8428 When using adaptive quantization (*_mask), the average per-MB quantizer may no
8429 longer match the requested frame-level quantizer.
8430 Naq will attempt to adjust the per-MB quantizers to maintain the proper
8431 average.
8434 .B "ildct\ \ "
8435 Use interlaced DCT.
8438 .B "ilme\ \ \ "
8439 Use interlaced motion estimation (mutually exclusive with qpel).
8442 .B "alt\ \ \ \ "
8443 Use alternative scantable.
8446 .B "top=<\-1\-1>\ \ \ "
8447 .PD 0
8448 .RSs
8449 .IPs \-1
8450 automatic
8451 .IPs 0
8452 bottom field first
8453 .IPs 1
8454 top field first
8456 .PD 1
8459 .B format=<value>
8460 .PD 0
8461 .RSs
8462 .IPs "YV12\ "
8463 default
8464 .IPs "444P\ "
8465 for ffv1
8466 .IPs "422P\ "
8467 for HuffYUV, lossless JPEG, dv and ffv1
8468 .IPs "411P\ "
8469 for lossless JPEG, dv and ffv1
8470 .IPs "YVU9\ "
8471 for lossless JPEG, ffv1 and svq1
8472 .IPs "BGR32"
8473 for lossless JPEG and ffv1
8475 .PD 1
8478 .B "pred\ \ \ "
8479 (for HuffYUV)
8480 .PD 0
8481 .RSs
8482 .IPs 0
8483 left prediction
8484 .IPs 1
8485 plane/\:gradient prediction
8486 .IPs 2
8487 median prediction
8489 .PD 1
8492 .B "pred\ \ \ "
8493 (for lossless JPEG)
8494 .PD 0
8495 .RSs
8496 .IPs 0
8497 left prediction
8498 .IPs 1
8499 top prediction
8500 .IPs 2
8501 topleft prediction
8502 .IPs 3
8503 plane/\:gradient prediction
8504 .IPs 6
8505 mean prediction
8507 .PD 1
8510 .B "coder\ \ "
8511 (for ffv1)
8512 .PD 0
8513 .RSs
8514 .IPs 0
8515 vlc coding (Golomb-Rice)
8516 .IPs 1
8517 arithmetic coding (CABAC)
8519 .PD 1
8522 .B context
8523 (for ffv1)
8524 .PD 0
8525 .RSs
8526 .IPs 0
8527 small context model
8528 .IPs 1
8529 large context model
8531 .PD 1
8532 .sp 1
8534 (for ffvhuff)
8536 .PD 0
8537 .RSs
8538 .IPs 0
8539 predetermined Huffman tables (builtin or two pass)
8540 .IPs 1
8541 adaptive Huffman tables
8543 .PD 1
8546 .B "qpel\ \ \ "
8547 Use quarter pel motion compensation (mutually exclusive with ilme).
8549 .I HINT:
8550 This seems only useful for high bitrate encodings.
8553 .B mbcmp=<0\-2000>
8554 Sets the comparison function for the macroblock decision, has only
8555 an effect if mbd=0.
8556 .PD 0
8557 .RSs
8558 .IPs "0 (SAD)"
8559 sum of absolute differences, fast (default)
8560 .IPs "1 (SSE)"
8561 sum of squared errors
8562 .IPs "2 (SATD)"
8563 sum of absolute Hadamard transformed differences
8564 .IPs "3 (DCT)"
8565 sum of absolute DCT transformed differences
8566 .IPs "4 (PSNR)"
8567 sum of squared quantization errors (avoid, low quality)
8568 .IPs "5 (BIT)"
8569 number of bits needed for the block
8570 .IPs "6 (RD)"
8571 rate distortion optimal, slow
8572 .IPs "7 (ZERO)"
8574 .IPs "8 (VSAD)"
8575 sum of absolute vertical differences
8576 .IPs "9 (VSSE)"
8577 sum of squared vertical differences
8578 .IPs "10 (NSSE)"
8579 noise preserving sum of squared differences
8580 .IPs "11 (W53)"
8581 5/3 wavelet, only used in snow
8582 .IPs "12 (W97)"
8583 9/7 wavelet, only used in snow
8584 .IPs "+256\ "
8585 Also use chroma, currently does not work (correctly) with B-frames.
8587 .PD 1
8590 .B ildctcmp=<0\-2000>
8591 Sets the comparison function for interlaced DCT decision
8592 (see mbcmp for available comparison functions).
8595 .B precmp=<0\-2000>
8596 Sets the comparison function for motion estimation pre pass
8597 (see mbcmp for available comparison functions) (default: 0).
8600 .B cmp=<0\-2000>
8601 Sets the comparison function for full pel motion estimation
8602 (see mbcmp for available comparison functions) (default: 0).
8605 .B subcmp=<0\-2000>
8606 Sets the comparison function for sub pel motion estimation
8607 (see mbcmp for available comparison functions) (default: 0).
8610 .B skipcmp=<0\-2000>
8611 FIXME: Document this.
8614 .B nssew=<0\-1000000>
8615 This setting controls NSSE weight, where larger weights will result in
8616 more noise.
8617 0 NSSE is identical to SSE
8618 You may find this useful if you prefer to keep some noise in your encoded
8619 video rather than filtering it away before encoding (default: 8).
8622 .B predia=<\-99\-6>
8623 diamond type and size for motion estimation pre-pass
8626 .B dia=<\-99\-6>
8627 Diamond type & size for motion estimation.
8628 Motion search is an iterative process.
8629 Using a small diamond does not limit the search to finding only small
8630 motion vectors.
8631 It is just somewhat more likely to stop before finding the very best motion
8632 vector, especially when noise is involved.
8633 Bigger diamonds allow a wider search for the best motion vector, thus are
8634 slower but result in better quality.
8636 Big normal diamonds are better quality than shape-adaptive diamonds.
8638 Shape-adaptive diamonds are a good tradeoff between speed and quality.
8640 .I NOTE:
8641 The sizes of the normal diamonds and shape adaptive ones do not have
8642 the same meaning.
8643 .RSs
8644 .IPs \-3
8645 shape adaptive (fast) diamond with size 3
8646 .IPs \-2
8647 shape adaptive (fast) diamond with size 2
8648 .IPs \-1
8649 uneven multi-hexagon search (slow)
8650 .IPs  1
8651 normal size=1 diamond (default) =EPZS type diamond
8654       0
8655      000
8656       0
8658 .IPs 2
8659 normal size=2 diamond
8662       0
8663      000
8664     00000
8665      000
8666       0
8671 .B "trell\ \ "
8672 Trellis searched quantization.
8673 This will find the optimal encoding for each 8x8 block.
8674 Trellis searched quantization is quite simply an optimal quantization in
8675 the PSNR versus bitrate sense (Assuming that there would be no rounding
8676 errors introduced by the IDCT, which is obviously not the case.).
8677 It simply finds a block for the minimum of error and lambda*bits.
8678 .PD 0
8679 .RSs
8680 .IPs lambda
8681 quantization parameter (QP) dependent constant
8682 .IPs "bits\ "
8683 amount of bits needed to encode the block
8684 .IPs error
8685 sum of squared errors of the quantization
8687 .PD 1
8690 .B "cbp\ \ \ \ "
8691 Rate distorted optimal coded block pattern.
8692 Will select the coded block pattern which minimizes distortion + lambda*rate.
8693 This can only be used together with trellis quantization.
8696 .B "mv0\ \ \ \ "
8697 Try to encode each MB with MV=<0,0> and choose the better one.
8698 This has no effect if mbd=0.
8701 .B mv0_threshold=<any non-negative integer>
8702 When surrounding motion vectors are <0,0> and the motion estimation
8703 score of the current block is less than mv0_threshold, <0,0> is used for
8704 the motion vector and further motion estimation is skipped (default:
8705 256).
8706 Lowering mv0_threshold to 0 can give a slight (0.01dB) PSNR increase and
8707 possibly make the encoded video look slightly better; raising
8708 mv0_threshold past 320 results in diminished PSNR and visual quality.
8709 Higher values speed up encoding very slightly (usually less than 1%,
8710 depending on the other options used).
8712 .I NOTE:
8713 This option does not require mv0 to be enabled.
8716 .B qprd (mbd=2 only)
8717 rate distorted optimal quantization parameter (QP) for the given
8718 lambda of each macroblock
8721 .B last_pred=<0\-99>
8722 amount of motion predictors from the previous frame
8723 .PD 0
8724 .RSs
8725 .IPs 0
8726 (default)
8727 .IPs a
8728 Will use 2a+1 x 2a+1 macroblock square of motion vector predictors from the
8729 previous frame.
8731 .PD 1
8734 .B preme=<0\-2>
8735 motion estimation pre-pass
8736 .PD 0
8737 .RSs
8738 .IPs 0
8739 disabled
8740 .IPs 1
8741 only after I-frames (default)
8742 .IPs 2
8743 always
8745 .PD 1
8748 .B subq=<1\-8>
8749 subpel refinement quality (for qpel) (default: 8 (high quality))
8751 .I NOTE:
8752 This has a significant effect on speed.
8755 .B refs=<1\-8>
8756 number of reference frames to consider for motion compensation
8757 (Snow only) (default: 1)
8760 .B "psnr\ \ \ "
8761 print the PSNR (peak signal to noise ratio) for the whole video after encoding
8762 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log'.
8763 Returned values are in dB (decibel), the higher the better.
8766 .B mpeg_quant
8767 Use MPEG quantizers instead of H.263.
8770 .B "aic\ \ \ \ "
8771 Enable AC prediction for MPEG-4 or advanced intra prediction for H.263+.
8772 This will improve quality very slightly (around 0.02 dB PSNR) and slow
8773 down encoding very slightly (about 1%).
8775 .I NOTE:
8776 vqmin should be 8 or larger for H.263+ AIC.
8779 .B "aiv\ \ \ \ "
8780 alternative inter vlc for H.263+
8783 .B "umv\ \ \ \ "
8784 unlimited MVs (H.263+ only)
8785 Allows encoding of arbitrarily long MVs.
8788 .B ibias=<\-256\-256>
8789 intra quantizer bias (256 equals 1.0, MPEG style quantizer default: 96,
8790 H.263 style quantizer default: 0)
8792 .I NOTE:
8793 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
8794 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
8797 .B pbias=<\-256\-256>
8798 inter quantizer bias (256 equals 1.0, MPEG style quantizer default: 0,
8799 H.263 style quantizer default: \-64)
8801 .I NOTE:
8802 The H.263 MMX quantizer cannot handle positive biases (set vfdct=1 or 2),
8803 the MPEG MMX quantizer cannot handle negative biases (set vfdct=1 or 2).
8805 .I HINT:
8806 A more positive bias (\-32 \- \-16 instead of \-64) seems to improve the PSNR.
8809 .B nr=<0\-100000>
8810 Noise reduction, 0 means disabled.
8811 0\-600 is a useful range for typical content, but you may want to turn it
8812 up a bit more for very noisy content (default: 0).
8813 Given its small impact on speed, you might want to prefer to use this over
8814 filtering noise away with video filters like denoise3d or hqdn3d.
8817 .B qns=<0\-3>
8818 Quantizer noise shaping.
8819 Rather than choosing quantization to most closely match the source video
8820 in the PSNR sense, it chooses quantization such that noise (usually ringing)
8821 will be masked by similar-frequency content in the image.
8822 Larger values are slower but may not result in better quality.
8823 This can and should be used together with trellis quantization, in which case
8824 the trellis quantization (optimal for constant weight) will be used as
8825 startpoint for the iterative search.
8826 .PD 0
8827 .RSs
8828 .IPs 0
8829 disabled (default)
8830 .IPs 1
8831 Only lower the absolute value of coefficients.
8832 .IPs 2
8833 Only change coefficients before the last non-zero coefficient + 1.
8834 .IPs 3
8835 Try all.
8837 .PD 1
8840 .B inter_matrix=<comma separated matrix>
8841 Use custom inter matrix.
8842 It needs a comma separated string of 64 integers.
8845 .B intra_matrix=<comma separated matrix>
8846 Use custom intra matrix.
8847 It needs a comma separated string of 64 integers.
8850 .B vqmod_amp
8851 experimental quantizer modulation
8854 .B vqmod_freq
8855 experimental quantizer modulation
8858 .B "dc\ \ \ \ \ "
8859 intra DC precision in bits (default: 8).
8860 If you specify vcodec=mpeg2video this value can be 8, 9, 10 or 11.
8863 .B cgop (also see sc_threshold)
8864 Close all GOPs.
8865 Currently it only works if scene change detection is disabled
8866 (sc_threshold=1000000000).
8869 .B (no)lowdelay
8870 Sets the low delay flag for MPEG-1/2 (disables B-frames).
8873 .B vglobal=<0\-3>
8874 Control writing global video headers.
8875 .PD 0
8876 .RSs
8877 .IPs 0
8878 Codec decides where to write global headers (default).
8879 .IPs 1
8880 Write global headers only in extradata (needed for .mp4/MOV/NUT).
8881 .IPs 2
8882 Write global headers only in front of keyframes.
8883 .IPs 3
8884 Combine 1 and 2.
8886 .PD 1
8889 .B aglobal=<0\-3>
8890 Same as vglobal for audio headers.
8893 .B level=<value>
8894 Set CodecContext Level.
8895 Use 31 or 41 to play video on a Playstation 3.
8898 .B skip_exp=<0\-1000000>
8899 FIXME: Document this.
8902 .B skip_factor=<0\-1000000>
8903 FIXME: Document this.
8906 .B skip_threshold=<0\-1000000>
8907 FIXME: Document this.
8910 .SS nuv (\-nuvopts)
8912 Nuppel video is based on RTJPEG and LZO.
8913 By default frames are first encoded with RTJPEG and then compressed with LZO,
8914 but it is possible to disable either or both of the two passes.
8915 As a result, you can in fact output raw i420, LZO compressed i420, RTJPEG,
8916 or the default LZO compressed RTJPEG.
8918 .I NOTE:
8919 The nuvrec documentation contains some advice and examples about the
8920 settings to use for the most common TV encodings.
8923 .B c=<0\-20>
8924 chrominance threshold (default: 1)
8927 .B l=<0\-20>
8928 luminance threshold (default: 1)
8931 .B "lzo\ \ \ \ "
8932 Enable LZO compression (default).
8935 .B "nolzo\ \ "
8936 Disable LZO compression.
8939 .B q=<3\-255>
8940 quality level (default: 255)
8943 .B "raw \ \ \ "
8944 Disable RTJPEG encoding.
8947 .B "rtjpeg\ "
8948 Enable RTJPEG encoding (default).
8951 .SS xvidenc (\-xvidencopts)
8953 There are three modes available: constant bitrate (CBR), fixed quantizer and
8954 two pass.
8957 .B pass=<1|2>
8958 Specify the pass in two pass mode.
8961 .B turbo (two pass only)
8962 Dramatically speeds up pass one using faster algorithms and disabling
8963 CPU-intensive options.
8964 This will probably reduce global PSNR a little bit and change individual
8965 frame type and PSNR a little bit more.
8968 .B bitrate=<value> (CBR or two pass mode)
8969 Sets the bitrate to be used in kbits/\:second if <16000 or in bits/\:second
8970 if >16000.
8971 If <value> is negative, Xvid will use its absolute value as the target size
8972 (in kBytes) of the video and compute the associated bitrate automagically
8973 (default: 687 kbits/s).
8976 .B fixed_quant=<1\-31>
8977 Switch to fixed quantizer mode and specify the quantizer to be used.
8980 .B zones=<zone0>[/<zone1>[/...]] (CBR or two pass mode)
8981 User specified quality for specific parts (ending, credits, ...).
8982 Each zone is <start-frame>,<mode>,<value> where <mode> may be
8983 .PD 0
8984 .RSs
8985 .IPs "q"
8986 Constant quantizer override, where value=<2.0\-31.0>
8987 represents the quantizer value.
8988 .IPs "w"
8989 Ratecontrol weight override, where value=<0.01\-2.00>
8990 represents the quality correction in %.
8992 .PD 1
8993 .sp 1
8995 .I EXAMPLE:
8997 .PD 0
8998 .RSs
8999 .IPs zones=90000,q,20
9000 Encodes all frames starting with frame 90000 at constant quantizer 20.
9001 .IPs zones=0,w,0.1/10001,w,1.0/90000,q,20
9002 Encode frames 0\-10000 at 10% bitrate, encode frames 90000
9003 up to the end at constant quantizer 20.
9004 Note that the second zone is needed to delimit the first zone, as
9005 without it everything up until frame 89999 would be encoded at 10%
9006 bitrate.
9008 .PD 1
9011 .B me_quality=<0\-6>
9012 This option controls the motion estimation subsystem.
9013 The higher the value, the more precise the estimation should be (default: 6).
9014 The more precise the motion estimation is, the more bits can be saved.
9015 Precision is gained at the expense of CPU time so decrease this setting if
9016 you need realtime encoding.
9019 .B (no)qpel
9020 MPEG-4 uses a half pixel precision for its motion search by default.
9021 The standard proposes a mode where encoders are allowed to use quarter
9022 pixel precision.
9023 This option usually results in a sharper image.
9024 Unfortunately it has a great impact on bitrate and sometimes the
9025 higher bitrate use will prevent it from giving a better image
9026 quality at a fixed bitrate.
9027 It is better to test with and without this option and see whether it
9028 is worth activating.
9031 .B (no)gmc
9032 Enable Global Motion Compensation, which makes Xvid generate special
9033 frames (GMC-frames) which are well suited for Pan/\:Zoom/\:Rotating images.
9034 Whether or not the use of this option will save bits is highly
9035 dependent on the source material.
9038 .B (no)trellis
9039 Trellis Quantization is a kind of adaptive quantization method that
9040 saves bits by modifying quantized coefficients to make them more
9041 compressible by the entropy encoder.
9042 Its impact on quality is good, and if VHQ uses too much CPU for you,
9043 this setting can be a good alternative to save a few bits (and gain
9044 quality at fixed bitrate) at a lesser cost than with VHQ (default: on).
9047 .B (no)cartoon
9048 Activate this if your encoded sequence is an anime/\:cartoon.
9049 It modifies some Xvid internal thresholds so Xvid takes better decisions on
9050 frame types and motion vectors for flat looking cartoons.
9053 .B (no)chroma_me
9054 The usual motion estimation algorithm uses only the luminance information to
9055 find the best motion vector.
9056 However for some video material, using the chroma planes can help find
9057 better vectors.
9058 This setting toggles the use of chroma planes for motion estimation
9059 (default: on).
9062 .B (no)chroma_opt
9063 Enable a chroma optimizer prefilter.
9064 It will do some extra magic on color information to minimize the
9065 stepped-stairs effect on edges.
9066 It will improve quality at the cost of encoding speed.
9067 It reduces PSNR by nature, as the mathematical deviation to the original
9068 picture will get bigger, but the subjective image quality will raise.
9069 Since it works with color information, you might want to turn it off when
9070 encoding in grayscale.
9073 .B (no)hq_ac
9074 Activates high-quality prediction of AC coefficients for intra frames from
9075 neighbor blocks (default: on).
9078 .B vhq=<0\-4>
9079 The motion search algorithm is based on a search in the usual color domain
9080 and tries to find a motion vector that minimizes the difference between the
9081 reference frame and the encoded frame.
9082 With this setting activated, Xvid will also use the frequency domain (DCT)
9083 to search for a motion vector that minimizes not only the spatial
9084 difference but also the encoding length of the block.
9085 Fastest to slowest:
9086 .PD 0
9087 .RSs
9088 .IPs 0
9090 .IPs 1
9091 mode decision (inter/\:intra MB) (default)
9092 .IPs 2
9093 limited search
9094 .IPs 3
9095 medium search
9096 .IPs 4
9097 wide search
9099 .PD 1
9102 .B (no)lumi_mask
9103 Adaptive quantization allows the macroblock quantizers to vary inside
9104 each frame.
9105 This is a 'psychosensory' setting that is supposed to make use of the
9106 fact that the human eye tends to notice fewer details in very bright
9107 and very dark parts of the picture.
9108 It compresses those areas more strongly than medium ones, which will
9109 save bits that can be spent again on other frames, raising overall
9110 subjective quality and possibly reducing PSNR.
9113 .B (no)grayscale
9114 Make Xvid discard chroma planes so the encoded video is grayscale only.
9115 Note that this does not speed up encoding, it just prevents chroma data
9116 from being written in the last stage of encoding.
9119 .B (no)interlacing
9120 Encode the fields of interlaced video material.
9121 Turn this option on for interlaced content.
9123 .I NOTE:
9124 Should you rescale the video, you would need an interlace-aware resizer,
9125 which you can activate with \-vf scale=<width>:<height>:1.
9128 .B min_iquant=<0\-31>
9129 minimum I-frame quantizer (default: 2)
9132 .B max_iquant=<0\-31>
9133 maximum I-frame quantizer (default: 31)
9136 .B min_pquant=<0\-31>
9137 minimum P-frame quantizer (default: 2)
9140 .B max_pquant=<0\-31>
9141 maximum P-frame quantizer (default: 31)
9144 .B min_bquant=<0\-31>
9145 minimum B-frame quantizer (default: 2)
9148 .B max_bquant=<0\-31>
9149 maximum B-frame quantizer (default: 31)
9152 .B min_key_interval=<value> (two pass only)
9153 minimum interval between keyframes (default: 0)
9156 .B max_key_interval=<value>
9157 maximum interval between keyframes (default: 10*fps)
9160 .B quant_type=<h263|mpeg>
9161 Sets the type of quantizer to use.
9162 For high bitrates, you will find that MPEG quantization preserves more detail.
9163 For low bitrates, the smoothing of H.263 will give you less block noise.
9164 When using custom matrices, MPEG quantization
9165 .B must
9166 be used.
9169 .B quant_intra_matrix=<filename>
9170 Load a custom intra matrix file.
9171 You can build such a file with xvid4conf's matrix editor.
9174 .B quant_inter_matrix=<filename>
9175 Load a custom inter matrix file.
9176 You can build such a file with xvid4conf's matrix editor.
9179 .B keyframe_boost=<0\-1000> (two pass mode only)
9180 Shift some bits from the pool for other frame types to intra frames,
9181 thus improving keyframe quality.
9182 This amount is an extra percentage, so a value of 10 will give
9183 your keyframes 10% more bits than normal
9184 (default: 0).
9187 .B kfthreshold=<value> (two pass mode only)
9188 Works together with kfreduction.
9189 Determines the minimum distance below which you consider that
9190 two frames are considered consecutive and treated differently
9191 according to kfreduction
9192 (default: 10).
9195 .B kfreduction=<0\-100> (two pass mode only)
9196 The above two settings can be used to adjust the size of keyframes that
9197 you consider too close to the first (in a row).
9198 kfthreshold sets the range in which keyframes are reduced, and
9199 kfreduction determines the bitrate reduction they get.
9200 The last I-frame will get treated normally
9201 (default: 30).
9204 .B max_bframes=<0\-4>
9205 Maximum number of B-frames to put between I/P-frames (default: 2).
9208 .B bquant_ratio=<0\-1000>
9209 quantizer ratio between B- and non-B-frames, 150=1.50 (default: 150)
9212 .B bquant_offset=<\-1000\-1000>
9213 quantizer offset between B- and non-B-frames, 100=1.00 (default: 100)
9216 .B bf_threshold=<\-255\-255>
9217 This setting allows you to specify what priority to place on the use of
9218 B-frames.
9219 The higher the value, the higher the probability of B-frames being used
9220 (default: 0).
9221 Do not forget that B-frames usually have a higher quantizer, and therefore
9222 aggressive production of B-frames may cause worse visual quality.
9225 .B (no)closed_gop
9226 This option tells Xvid to close every GOP (Group Of Pictures bounded
9227 by two I-frames), which makes GOPs independent from each other.
9228 This just implies that the last frame of the GOP is either a P-frame or a
9229 N-frame but not a B-frame.
9230 It is usually a good idea to turn this option on (default: on).
9233 .B (no)packed
9234 This option is meant to solve frame-order issues when encoding to
9235 container formats like AVI that cannot cope with out-of-order frames.
9236 In practice, most decoders (both software and hardware) are able to deal
9237 with frame-order themselves, and may get confused when this option is
9238 turned on, so you can safely leave if off, unless you really know what
9239 you are doing.
9241 .I WARNING:
9242 This will generate an illegal bitstream, and will not be
9243 decodable by ISO-MPEG-4 decoders except DivX/\:libavcodec/\:Xvid.
9245 .I WARNING:
9246 This will also store a fake DivX version in the file so the bug
9247 autodetection of some decoders might be confused.
9250 .B frame_drop_ratio=<0\-100> (max_bframes=0 only)
9251 This setting allows the creation of variable framerate video streams.
9252 The value of the setting specifies a threshold under which, if the
9253 difference of the following frame to the previous frame is below or equal
9254 to this threshold, a frame gets not coded (a so called n-vop is placed
9255 in the stream).
9256 On playback, when reaching an n-vop the previous frame will be displayed.
9258 .I WARNING:
9259 Playing with this setting may result in a jerky video, so use it at your
9260 own risks!
9263 .B rc_reaction_delay_factor=<value>
9264 This parameter controls the number of frames the CBR rate controller
9265 will wait before reacting to bitrate changes and compensating for them
9266 to obtain a constant bitrate over an averaging range of frames.
9269 .B rc_averaging_period=<value>
9270 Real CBR is hard to achieve.
9271 Depending on the video material, bitrate can be variable, and hard to predict.
9272 Therefore Xvid uses an averaging period for which it guarantees a given
9273 amount of bits (minus a small variation).
9274 This settings expresses the "number of frames" for which Xvid averages
9275 bitrate and tries to achieve CBR.
9278 .B rc_buffer=<value>
9279 size of the rate control buffer
9282 .B curve_compression_high=<0\-100>
9283 This setting allows Xvid to take a certain percentage of bits away from
9284 high bitrate scenes and give them back to the bit reservoir.
9285 You could also use this if you have a clip with so many bits allocated
9286 to high-bitrate scenes that the low(er)-bitrate scenes start to look bad
9287 (default: 0).
9290 .B curve_compression_low=<0\-100>
9291 This setting allows Xvid to give a certain percentage of extra bits to the
9292 low bitrate scenes, taking a few bits from the entire clip.
9293 This might come in handy if you have a few low-bitrate scenes that are
9294 still blocky (default: 0).
9297 .B overflow_control_strength=<0\-100>
9298 During pass one of two pass encoding, a scaled bitrate curve is computed.
9299 The difference between that expected curve and the result obtained during
9300 encoding is called overflow.
9301 Obviously, the two pass rate controller tries to compensate for that overflow,
9302 distributing it over the next frames.
9303 This setting controls how much of the overflow is distributed every time
9304 there is a new frame.
9305 Low values allow lazy overflow control, big rate bursts are compensated for
9306 more slowly (could lead to lack of precision for small clips).
9307 Higher values will make changes in bit redistribution more abrupt, possibly
9308 too abrupt if you set it too high, creating artifacts (default: 5).
9310 .I NOTE:
9311 This setting impacts quality a lot, play with it carefully!
9314 .B max_overflow_improvement=<0\-100>
9315 During the frame bit allocation, overflow control may increase the frame
9316 size.
9317 This parameter specifies the maximum percentage by which the overflow
9318 control is allowed to increase the frame size, compared to the ideal curve
9319 allocation
9320 (default: 5).
9323 .B max_overflow_degradation=<0\-100>
9324 During the frame bit allocation, overflow control may decrease the frame
9325 size.
9326 This parameter specifies the maximum percentage by which the overflow
9327 control is allowed to decrease the frame size, compared to the ideal curve
9328 allocation
9329 (default: 5).
9332 .B container_frame_overhead=<0...>
9333 Specifies a frame average overhead per frame, in bytes.
9334 Most of the time users express their target bitrate for video w/o taking
9335 care of the video container overhead.
9336 This small but (mostly) constant overhead can cause the target file size
9337 to be exceeded.
9338 Xvid allows users to set the amount of overhead per frame the
9339 container generates (give only an average per frame).
9340 0 has a special meaning, it lets Xvid use its own default values
9341 (default: 24 \- AVI average overhead).
9344 .B profile=<profile_name>
9345 Restricts options and VBV (peak bitrate over a short period) according to
9346 the Simple, Advanced Simple and DivX profiles.
9347 The resulting videos should be playable on standalone players adhering to these
9348 profile specifications.
9349 .PD 0
9350 .RSs
9351 .IPs unrestricted
9352 no restrictions (default)
9353 .IPs "sp0\ \ "
9354 simple profile at level 0
9355 .IPs "sp1\ \ "
9356 simple profile at level 1
9357 .IPs "sp2\ \ "
9358 simple profile at level 2
9359 .IPs "sp3\ \ "
9360 simple profile at level 3
9361 .IPs "asp0\ "
9362 advanced simple profile at level 0
9363 .IPs "asp1\ "
9364 advanced simple profile at level 1
9365 .IPs "asp2\ "
9366 advanced simple profile at level 2
9367 .IPs "asp3\ "
9368 advanced simple profile at level 3
9369 .IPs "asp4\ "
9370 advanced simple profile at level 4
9371 .IPs "asp5\ "
9372 advanced simple profile at level 5
9373 .IPs dxnhandheld
9374 DXN handheld profile
9375 .IPs dxnportntsc
9376 DXN portable NTSC profile
9377 .IPs dxnportpal
9378 DXN portable PAL profile
9379 .IPs dxnhtntsc
9380 DXN home theater NTSC profile
9381 .IPs dxnhtpal
9382 DXN home theater PAL profile
9383 .IPs dxnhdtv
9384 DXN HDTV profile
9386 .PD 1
9388 .I NOTE:
9389 These profiles should be used in conjunction with an appropriate \-ffourcc.
9390 Generally DX50 is applicable, as some players do not recognize Xvid but
9391 most recognize DivX.
9395 .B par=<mode>
9396 Specifies the Pixel Aspect Ratio mode (not to be confused with DAR,
9397 the Display Aspect Ratio).
9398 PAR is the ratio of the width and height of a single pixel.
9399 So both are related like this: DAR = PAR * (width/height).
9401 MPEG-4 defines 5 pixel aspect ratios and one extended
9402 one, giving the opportunity to specify a specific pixel aspect
9403 ratio.
9404 5 standard modes can be specified:
9405 .PD 0
9406 .RSs
9407 .IPs vga11
9408 It is the usual PAR for PC content.
9409 Pixels are a square unit.
9410 .IPs pal43
9411 PAL standard 4:3 PAR.
9412 Pixels are rectangles.
9413 .IPs pal169
9414 same as above
9415 .IPs ntsc43
9416 same as above
9417 .IPs ntsc169
9418 same as above (Do not forget to give the exact ratio.)
9419 .IPs "ext\ \ "
9420 Allows you to specify your own pixel aspect ratio with par_width and
9421 par_height.
9423 .PD 1
9425 .I NOTE:
9426 In general, setting aspect and autoaspect options is enough.
9430 .B par_width=<1\-255> (par=ext only)
9431 Specifies the width of the custom pixel aspect ratio.
9434 .B par_height=<1\-255> (par=ext only)
9435 Specifies the height of the custom pixel aspect ratio.
9438 .B aspect=<x/y | f (float value)>
9439 Store movie aspect internally, just like MPEG files.
9440 Much nicer solution than rescaling, because quality is not decreased.
9441 MPlayer and a few others players will play these files correctly, others
9442 will display them with the wrong aspect.
9443 The aspect parameter can be given as a ratio or a floating point number.
9446 .B (no)autoaspect
9447 Same as the aspect option, but automatically computes aspect, taking
9448 into account all the adjustments (crop/\:expand/\:scale/\:etc.) made in the
9449 filter chain.
9452 .B "psnr\ \ \ "
9453 Print the PSNR (peak signal to noise ratio) for the whole video after encoding
9454 and store the per frame PSNR in a file with a name like 'psnr_hhmmss.log' in
9455 the current directory.
9456 Returned values are in dB (decibel), the higher the better.
9459 .B "debug\ \ "
9460 Save per-frame statistics in ./xvid.dbg. (This is not the two pass control
9461 file.)
9465 .sp 1
9466 The following option is only available in Xvid 1.1.x.
9469 .B bvhq=<0|1>
9470 This setting allows vector candidates for B-frames to be used for
9471 the encoding chosen using a rate distortion optimized operator,
9472 which is what is done for P-frames by the vhq option.
9473 This produces nicer-looking B-frames while incurring almost no
9474 performance penalty (default: 1).
9477 .sp 1
9478 The following option is only available in the 1.2.x version of Xvid.
9481 .B threads=<0\-n>
9482 Create n threads to run the motion estimation (default: 0).
9483 The maximum number of threads that can be used is the picture height
9484 divided by 16.
9487 .SS x264enc (\-x264encopts)
9490 .B bitrate=<value>
9491 Sets the average bitrate to be used in kbits/\:second (default: off).
9492 Since local bitrate may vary, this average may be inaccurate for
9493 very short videos (see ratetol).
9494 Constant bitrate can be achieved by combining this with vbv_maxrate,
9495 at significant reduction in quality.
9498 .B qp=<0\-51>
9499 This selects the quantizer to use for P-frames.
9500 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
9501 20\-40 is a useful range.
9502 Lower values result in better fidelity, but higher bitrates.
9503 0 is lossless.
9504 Note that quantization in H.264 works differently from MPEG-1/2/4:
9505 H.264's quantization parameter (QP) is on a logarithmic scale.
9506 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
9507 For example, MPEG at QP=2 is equivalent to H.264 at QP=18.
9510 .B crf=<1.0\-50.0>
9511 Enables constant quality mode, and selects the quality.
9512 The scale is similar to QP.
9513 Like the bitrate-based modes, this allows each frame to use a
9514 different QP based on the frame's complexity.
9517 .B pass=<1\-3>
9518 Enable 2 or 3-pass mode.
9519 It is recommended to always encode in 2 or 3-pass mode as it leads to a
9520 better bit distribution and improves overall quality.
9521 .PD 0
9522 .RSs
9523 .IPs 1
9524 first pass
9525 .IPs 2
9526 second pass (of two pass encoding)
9527 .IPs 3
9528 Nth pass (second and third passes of three pass encoding)
9531 Here is how it works, and how to use it:
9533 The first pass (pass=1) collects statistics on the video and writes them
9534 to a file.
9535 You might want to deactivate some CPU-hungry options, apart from the ones
9536 that are on by default.
9538 In two pass mode, the second pass (pass=2) reads the statistics file and
9539 bases ratecontrol decisions on it.
9541 In three pass mode, the second pass (pass=3, that is not a typo)
9542 does both: It first reads the statistics, then overwrites them.
9543 You can use all encoding options, except very CPU-hungry options.
9545 The third pass (pass=3) is the same as the second pass, except that it has
9546 the second pass' statistics to work from.
9547 You can use all encoding options, including CPU-hungry ones.
9549 The first pass may use either average bitrate or constant quantizer.
9550 ABR is recommended, since it does not require guessing a quantizer.
9551 Subsequent passes are ABR, and must specify bitrate.
9552 .REss
9555 .B turbo=<0\-2>
9556 Fast first pass mode.
9557 During the first pass of a two or more pass encode it is possible to gain
9558 speed by disabling some options with negligible or even no impact on the
9559 final pass output quality.
9560 .PD 0
9561 .RSs
9562 .IPs 0
9563 disabled (default)
9564 .IPs 1
9565 Reduce subq, frameref and disable some inter-macroblock partition analysis
9566 modes.
9567 .IPs 2
9568 Reduce subq and frameref to 1, use a diamond ME search and disable all
9569 partition analysis modes.
9572 Level 1 can increase first pass speed up to 2x with no change in the global
9573 PSNR of the final pass compared to a full quality first pass.
9575 Level 2 can increase first pass speed up to 4x with about +/\- 0.05dB change
9576 in the global PSNR of the final pass compared to a full quality first pass.
9577 .REss
9580 .B keyint=<value>
9581 Sets maximum interval between IDR-frames (default: 250).
9582 Larger values save bits, thus improve quality, at the cost of seeking
9583 precision.
9584 Unlike MPEG-1/2/4, H.264 does not suffer from DCT drift with large
9585 values of keyint.
9588 .B keyint_min=<1\-keyint/2>
9589 Sets minimum interval between IDR-frames (default: 25).
9590 If scenecuts appear within this interval, they are still encoded as
9591 I-frames, but do not start a new GOP.
9592 In H.264, I-frames do not necessarily bound a closed GOP because it is
9593 allowable for a P-frame to be predicted from more frames than just the one
9594 frame before it (also see frameref).
9595 Therefore, I-frames are not necessarily seekable.
9596 IDR-frames restrict subsequent P-frames from referring to any frame
9597 prior to the IDR-frame.
9600 .B scenecut=<\-1\-100>
9601 Controls how aggressively to insert extra I-frames (default: 40).
9602 With small values of scenecut, the codec often has to force an I-frame
9603 when it would exceed keyint.
9604 Good values of scenecut may find a better location for the I-frame.
9605 Large values use more I-frames than necessary, thus wasting bits.
9606 \-1 disables scene-cut detection, so I-frames are inserted only once
9607 every other keyint frames, even if a scene-cut occurs earlier.
9608 This is not recommended and wastes bitrate as scenecuts encoded as P-frames
9609 are just as big as I-frames, but do not reset the "keyint counter".
9612 .B frameref=<1\-16>
9613 Number of previous frames used as predictors in B- and P-frames (default: 1).
9614 This is effective in anime, but in live-action material the improvements
9615 usually drop off very rapidly above 6 or so reference frames.
9616 This has no effect on decoding speed, but does increase the memory needed for
9617 decoding.
9618 Some decoders can only handle a maximum of 15 reference frames.
9621 .B bframes=<0\-16>
9622 maximum number of consecutive B-frames between I- and P-frames (default: 0)
9625 .B (no)b_adapt
9626 Automatically decides when to use B-frames and how many, up to the maximum
9627 specified above (default: on).
9628 If this option is disabled, then the maximum number of B-frames is used.
9631 .B b_bias=<\-100\-100>
9632 Controls the decision performed by b_adapt.
9633 A higher b_bias produces more B-frames (default: 0).
9636 .B (no)b_pyramid
9637 Allows B-frames to be used as references for predicting other frames.
9638 For example, consider 3 consecutive B-frames: I0 B1 B2 B3 P4.
9639 Without this option, B-frames follow the same pattern as MPEG-[124].
9640 So they are coded in the order I0 P4 B1 B2 B3, and all the B-frames
9641 are predicted from I0 and P4.
9642 With this option, they are coded as I0 P4 B2 B1 B3.
9643 B2 is the same as above, but B1 is predicted from I0 and B2, and
9644 B3 is predicted from B2 and P4.
9645 This usually results in slightly improved compression, at almost no
9646 speed cost.
9647 However, this is an experimental option: it is not fully tuned and
9648 may not always help.
9649 Requires bframes >= 2.
9650 Disadvantage: increases decoding delay to 2 frames.
9653 .B (no)deblock
9654 Use deblocking filter (default: on).
9655 As it takes very little time compared to its quality gain, it is not
9656 recommended to disable it.
9659 .B deblock=<\-6\-6>,<\-6\-6>
9660 The first parameter is AlphaC0 (default: 0).
9661 This adjusts thresholds for the H.264 in-loop deblocking filter.
9662 First, this parameter adjusts the maximum amount of change that the filter is
9663 allowed to cause on any one pixel.
9664 Secondly, this parameter affects the threshold for difference across the
9665 edge being filtered.
9666 A positive value reduces blocking artifacts more, but will also smear details.
9668 The second parameter is Beta (default: 0).
9669 This affects the detail threshold.
9670 Very detailed blocks are not filtered, since the smoothing caused by the
9671 filter would be more noticeable than the original blocking.
9673 The default behavior of the filter almost always achieves optimal quality,
9674 so it is best to either leave it alone, or make only small adjustments.
9675 However, if your source material already has some blocking or noise which
9676 you would like to remove, it may be a good idea to turn it up a little bit.
9679 .B (no)cabac
9680 Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: on).
9681 Slightly slows down encoding and decoding, but should save 10\-15% bitrate.
9682 Unless you are looking for decoding speed, you should not disable it.
9685 .B qp_min=<1\-51> (ABR or two pass)
9686 Minimum quantizer, 10\-30 seems to be a useful range (default: 10).
9689 .B qp_max=<1\-51> (ABR or two pass)
9690 maximum quantizer (default: 51)
9693 .B qp_step=<1\-50> (ABR or two pass)
9694 maximum value by which the quantizer may be incremented/decremented between
9695 frames (default: 4)
9698 .B ratetol=<0.1\-100.0> (ABR or two pass)
9699 allowed variance in average bitrate (no particular units) (default: 1.0)
9702 .B vbv_maxrate=<value> (ABR or two pass)
9703 maximum local bitrate, in kbits/\:second (default: disabled)
9706 .B vbv_bufsize=<value> (ABR or two pass)
9707 averaging period for vbv_maxrate, in kbits
9708 (default: none, must be specified if vbv_maxrate is enabled)
9711 .B vbv_init=<0.0\-1.0> (ABR or two pass)
9712 initial buffer occupancy, as a fraction of vbv_bufsize (default: 0.9)
9715 .B ip_factor=<value>
9716 quantizer factor between I- and P-frames (default: 1.4)
9719 .B pb_factor=<value>
9720 quantizer factor between P- and B-frames (default: 1.3)
9723 .B qcomp=<0\-1> (ABR or two pass)
9724 quantizer compression (default: 0.6).
9725 A lower value makes the bitrate more constant,
9726 while a higher value makes the quantization parameter more constant.
9729 .B cplx_blur=<0\-999> (two pass only)
9730 Temporal blur of the estimated frame complexity, before curve compression
9731 (default: 20).
9732 Lower values allow the quantizer value to jump around more,
9733 higher values force it to vary more smoothly.
9734 cplx_blur ensures that each I-frame has quality comparable to the following
9735 P-frames, and ensures that alternating high and low complexity frames
9736 (e.g. low fps animation) do not waste bits on fluctuating quantizer.
9739 .B qblur=<0\-99> (two pass only)
9740 Temporal blur of the quantization parameter, after curve compression
9741 (default: 0.5).
9742 Lower values allow the quantizer value to jump around more,
9743 higher values force it to vary more smoothly.
9746 .B zones=<zone0>[/<zone1>[/...]]
9747 User specified quality for specific parts (ending, credits, ...).
9748 Each zone is <start-frame>,<end-frame>,<option> where option may be
9749 .PD 0
9750 .RSs
9751 .IPs "q=<0\-51>"
9752 quantizer
9753 .IPs "b=<0.01\-100.0>"
9754 bitrate multiplier
9756 .PD 1
9758 .I NOTE:
9759 The quantizer option is not strictly enforced.
9760 It affects only the planning stage of ratecontrol, and is still subject
9761 to overflow compensation and qp_min/qp_max.
9765 .B direct_pred=<name>
9766 Determines the type of motion prediction used for direct macroblocks
9767 in B-frames.
9768 .PD 0
9769 .RSs
9770 .IPs none
9771 Direct macroblocks are not used.
9772 .IPs spatial
9773 Motion vectors are extrapolated from neighboring blocks.
9774 (default)
9775 .IPs temporal
9776 Motion vectors are interpolated from the following P-frame.
9777 .IPs auto
9778 The codec selects between spatial and temporal for each frame.
9780 .PD 1
9782 Spatial and temporal are approximately the same speed and PSNR,
9783 the choice between them depends on the video content.
9784 Auto is slightly better, but slower.
9785 Auto is most effective when combined with multipass.
9786 direct_pred=none is both slower and lower quality.
9790 .B (no)weight_b
9791 Use weighted prediction in B-frames.
9792 Without this option, bidirectionally predicted macroblocks give
9793 equal weight to each reference frame.
9794 With this option, the weights are determined by the temporal position
9795 of the B-frame relative to the references.
9796 Requires bframes > 1.
9799 .B partitions=<list>
9800 Enable some optional macroblock types (default: p8x8,b8x8,i8x8,i4x4).
9801 .PD 0
9802 .RSs
9803 .IPs p8x8
9804 Enable types p16x8, p8x16, p8x8.
9805 .IPs p4x4
9806 Enable types p8x4, p4x8, p4x4.
9807 p4x4 is recommended only with subq >= 5, and only at low resolutions.
9808 .IPs b8x8
9809 Enable types b16x8, b8x16, b8x8.
9810 .IPs i8x8
9811 Enable type i8x8.
9812 i8x8 has no effect unless 8x8dct is enabled.
9813 .IPs i4x4
9814 Enable type i4x4.
9815 .IPs all
9816 Enable all of the above types.
9817 .IPs none
9818 Disable all of the above types.
9820 .PD 1
9822 Regardless of this option, macroblock types p16x16, b16x16, and i16x16
9823 are always enabled.
9825 The idea is to find the type and size that best describe a certain area
9826 of the picture.
9827 For example, a global pan is better represented by 16x16 blocks, while
9828 small moving objects are better represented by smaller blocks.
9832 .B (no)8x8dct
9833 Adaptive spatial transform size: allows macroblocks to choose between
9834 4x4 and 8x8 DCT.
9835 Also allows the i8x8 macroblock type.
9836 Without this option, only 4x4 DCT is used.
9839 .B me=<name>
9840 Select fullpixel motion estimation algorithm.
9841 .PD 0
9842 .RSs
9843 .IPs dia
9844 diamond search, radius 1 (fast)
9845 .IPs hex
9846 hexagon search, radius 2 (default)
9847 .IPs umh
9848 uneven multi-hexagon search (slow)
9849 .IPs esa
9850 exhaustive search (very slow, and no better than umh)
9852 .PD 1
9855 .B me_range=<4\-64>
9856 radius of exhaustive or multi-hexagon motion search (default: 16)
9859 .B subq=<1\-7>
9860 Adjust subpel refinement quality.
9861 This parameter controls quality versus speed tradeoffs involved in the motion
9862 estimation decision process.
9863 subq=5 can compress up to 10% better than subq=1.
9864 .PD 0
9865 .RSs
9866 .IPs 1
9867 Runs fullpixel precision motion estimation on all candidate
9868 macroblock types.
9869 Then selects the best type.
9870 Then refines the motion of that type to fast quarterpixel precision (fastest).
9871 .IPs 2
9872 Runs halfpixel precision motion estimation on all candidate macroblock types.
9873 Then selects the best type.
9874 Then refines the motion of that type to fast quarterpixel precision.
9875 .IPs 3
9876 As 2, but uses a slower quarterpixel refinement.
9877 .IPs 4
9878 Runs fast quarterpixel precision motion estimation on all candidate
9879 macroblock types.
9880 Then selects the best type.
9881 Then finishes the quarterpixel refinement for that type.
9882 .IPs 5
9883 Runs best quality quarterpixel precision motion estimation on all
9884 candidate macroblock types, before selecting the best type (default).
9885 .IPs 6
9886 Enables rate-distortion optimization of macroblock types in
9887 I- and P-frames.
9888 .IPs 7
9889 Enables rate-distortion optimization of motion vectors and intra modes. (best)
9891 .PD 1
9893 In the above, "all candidates" does not exactly mean all enabled types:
9894 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.
9898 .B (no)chroma_me
9899 Takes into account chroma information during subpixel motion search
9900 (default: enabled).
9901 Requires subq>=5.
9904 .B (no)mixed_refs
9905 Allows each 8x8 or 16x8 motion partition to independently select a
9906 reference frame.
9907 Without this option, a whole macroblock must use the same reference.
9908 Requires frameref>1.
9911 .B (no)brdo
9912 Enables rate-distortion optimization of macroblock types in B-frames.
9913 Requires subq>=6.
9916 .B (no)bime
9917 Refine the two motion vectors used in bidirectional macroblocks,
9918 rather than re-using vectors from the forward and backward searches.
9919 This option has no effect without B-frames.
9922 .B trellis=<0\-2>
9923 rate-distortion optimal quantization
9924 .PD 0
9925 .RSs
9926 .IPs 0
9927 disabled (default)
9928 .IPs 1
9929 enabled only for the final encode
9930 .IPs 2
9931 enabled during all mode decisions (slow, requires subq>=6)
9933 .PD 1
9936 .B deadzone_inter=<0\-32>
9937 Set the size of the inter luma quantization deadzone for non-trellis
9938 quantization (default: 21).
9939 Lower values help to preserve fine details and film grain (typically useful
9940 for high bitrate/quality encode), while higher values help filter out
9941 these details to save bits that can be spent again on other macroblocks
9942 and frames (typically useful for bitrate-starved encodes).
9943 It is recommended that you start by tweaking deadzone_intra before changing
9944 this parameter.
9947 .B deadzone_intra=<0\-32>
9948 Set the size of the intra luma quantization deadzone for non-trellis
9949 quantization (default: 11).
9950 This option has the same effect as deadzone_inter except that it affects
9951 intra frames.
9952 It is recommended that you start by tweaking this parameter before changing
9953 deadzone_inter.
9956 .B (no)fast_pskip
9957 Performs early skip detection in P-frames (default: enabled).
9958 This usually improves speed at no cost, but it can sometimes produce
9959 artifacts in areas with no details, like sky.
9962 .B (no)dct_decimate
9963 Eliminate dct blocks in P-frames containing only a small single coefficient
9964 (default: enabled).
9965 This will remove some details, so it will save bits that can be spent
9966 again on other frames, hopefully raising overall subjective quality.
9967 If you are compressing non-anime content with a high target bitrate, you
9968 may want to disable this to preserve as much detail as possible.
9971 .B nr=<0\-100000>
9972 Noise reduction, 0 means disabled.
9973 100\-1000 is a useful range for typical content, but you may want to turn it
9974 up a bit more for very noisy content (default: 0).
9975 Given its small impact on speed, you might want to prefer to use this over
9976 filtering noise away with video filters like denoise3d or hqdn3d.
9979 .B chroma_qp_offset=<\-12\-12>
9980 Use a different quantizer for chroma as compared to luma.
9981 Useful values are in the range <\-2\-2> (default: 0).
9984 .B cqm=<flat|jvt|<filename>>
9985 Either uses a predefined custom quantization matrix or loads a JM format
9986 matrix file.
9987 .PD 0
9988 .RSs
9989 .IPs "flat\ "
9990 Use the predefined flat 16 matrix (default).
9991 .IPs "jvt\ \ "
9992 Use the predefined JVT matrix.
9993 .IPs <filename>
9994 Use the provided JM format matrix file.
9995 .PD 1
9998 .I NOTE:
9999 Windows CMD.EXE users may experience problems with parsing the command line
10000 if they attempt to use all the CQM lists.
10001 This is due to a command line length limitation.
10002 In this case it is recommended the lists be put into a JM format CQM
10003 file and loaded as specified above.
10007 .B cqm4iy=<list> (also see cqm)
10008 Custom 4x4 intra luminance matrix, given as a list of 16 comma separated
10009 values in the 1\-255 range.
10012 .B cqm4ic=<list> (also see cqm)
10013 Custom 4x4 intra chrominance matrix, given as a list of 16 comma
10014 separated values in the 1\-255 range.
10017 .B cqm4py=<list> (also see cqm)
10018 Custom 4x4 inter luminance matrix, given as a list of 16 comma separated
10019 values in the 1\-255 range.
10022 .B cqm4pc=<list> (also see cqm)
10023 Custom 4x4 inter chrominance matrix, given as a list of 16 comma
10024 separated values in the 1\-255 range.
10027 .B cqm8iy=<list> (also see cqm)
10028 Custom 8x8 intra luminance matrix, given as a list of 64 comma separated
10029 values in the 1\-255 range.
10032 .B cqm8py=<list> (also see cqm)
10033 Custom 8x8 inter luminance matrix, given as a list of 64 comma separated
10034 values in the 1\-255 range.
10037 .B level_idc=<10\-51>
10038 Set the bitstream's level as defined by annex A of the H.264 standard
10039 (default: 51 \- level 5.1).
10040 This is used for telling the decoder what capabilities it needs to support.
10041 Use this parameter only if you know what it means,
10042 and you have a need to set it.
10045 .B threads=<0\-16>
10046 Spawn threads to encode in parallel on multiple CPUs (default: 1).
10047 This has a slight penalty to compression quality.
10048 0 or 'auto' tells x264 to detect how many CPUs you have and pick an
10049 appropriate number of threads.
10052 .B (no)global_header
10053 Causes SPS and PPS to appear only once, at the beginning of the bitstream
10054 (default: disabled).
10055 Some players, such as the Sony PSP, require the use of this option.
10056 The default behavior causes SPS and PPS to repeat prior to each IDR frame.
10059 .B (no)interlaced
10060 Treat the video content as interlaced.
10063 .B log=<\-1\-3>
10064 Adjust the amount of logging info printed to the screen.
10065 .PD 0
10066 .RSs
10067 .IPs "\-1"
10068 none
10069 .IPs " 0"
10070 Print errors only.
10071 .IPs " 1"
10072 warnings
10073 .IPs " 2"
10074 PSNR and other analysis statistics when the encode finishes (default)
10075 .IPs " 3"
10076 PSNR, QP, frametype, size, and other statistics for every frame
10078 .PD 1
10081 .B (no)psnr
10082 Print signal-to-noise ratio statistics.
10084 .I NOTE:
10085 The 'Y', 'U', 'V', and 'Avg' PSNR fields in the summary are not
10086 mathematically sound (they are simply the average of per-frame PSNRs).
10087 They are kept only for comparison to the JM reference codec.
10088 For all other purposes, please use either the 'Global' PSNR, or the per-frame
10089 PSNRs printed by log=3.
10092 .B (no)ssim
10093 Print the Structural Similarity Metric results.
10094 This is an alternative to PSNR, and may be better correlated with the
10095 perceived quality of the compressed video.
10098 .B (no)visualize
10099 Enable x264 visualizations during encoding.
10100 If the x264 on your system supports it, a new window will be opened during
10101 the encoding process, in which x264 will attempt to present an overview of
10102 how each frame gets encoded.
10103 Each block type on the visualized movie will be colored as follows:
10104 .PD 0
10105 .RSs
10106 .IPs red/pink
10107 intra block
10108 .IPs "blue\ "
10109 inter block
10110 .IPs green
10111 skip block
10112 .IPs yellow
10113 B-block
10115 .PD 1
10117 This feature can be considered experimental and subject to change.
10118 In particular, it depends on x264 being compiled with visualizations enabled.
10119 Note that as of writing this, x264 pauses after encoding and visualizing
10120 each frame, waiting for the user to press a key, at which point the next
10121 frame will be encoded.
10125 .SS xvfw (\-xvfwopts)
10127 Encoding with Video for Windows codecs is mostly obsolete unless you wish
10128 to encode to some obscure fringe codec.
10131 .B codec=<name>
10132 The name of the binary codec file with which to encode.
10135 .B compdata=<file>
10136 The name of the codec settings file (like firstpass.mcf) created by vfw2menc.
10139 .SS MPEG muxer (\-mpegopts)
10141 The MPEG muxer can generate 5 types of streams, each of which has reasonable
10142 default parameters that the user can override.
10143 Generally, when generating MPEG files, it is advisable to disable
10144 MEncoder's frame-skip code (see \-noskip, \-mc as well as the
10145 harddup and softskip video filters).
10147 .I EXAMPLE:
10148 .PD 0
10149 .RSs
10150 .IPs format=mpeg2:tsaf:vbitrate=8000
10152 .PD 1
10155 .B format=<mpeg1 | mpeg2 | xvcd | xsvcd | dvd | pes1 | pes2>
10156 stream format (default: mpeg2).
10157 pes1 and pes2 are very broken formats (no pack header and no padding),
10158 but VDR uses them; do not choose them unless you know exactly what you
10159 are doing.
10162 .B size=<up to 65535>
10163 Pack size in bytes, do not change unless you know exactly what
10164 you are doing (default: 2048).
10167 .B muxrate=<int>
10168 Nominal muxrate in kbit/s used in the pack headers (default: 1800 kb/s).
10169 Will be updated as necessary in the case of 'format=mpeg1' or 'mpeg2'.
10172 .B "tsaf\ \ \ "
10173 Sets timestamps on all frames, if possible; recommended when format=dvd.
10174 If dvdauthor complains with a message like "..audio sector out of range...",
10175 you probably did not enable this option.
10178 .B interleaving2
10179 Uses a better algorithm to interleave audio and video packets, based on the
10180 principle that the muxer will always try to fill the stream with the largest
10181 percentage of free space.
10184 .B vdelay=<1\-32760>
10185 Initial video delay time, in milliseconds (default: 0),
10186 use it if you want to delay video with respect to audio.
10187 It doesn't work with :drop.
10190 .B adelay=<1\-32760>
10191 Initial audio delay time, in milliseconds (default: 0),
10192 use it if you want to delay audio with respect to video.
10195 .B "drop\ \ \ "
10196 When used with vdelay the muxer drops the part of audio that was
10197 anticipated.
10200 .B vwidth, vheight=<1\-4095>
10201 Set the video width and height when video is MPEG-1/2.
10204 .B vpswidth, vpsheight=<1\-4095>
10205 Set pan and scan video width and height when video is MPEG-2.
10208 .B vaspect=<1 | 4/3 | 16/9 | 221/100>
10209 Sets the display aspect ratio for MPEG-2 video.
10210 Do not use it on MPEG-1 or the resulting aspect ratio will be completely wrong.
10213 .B vbitrate=<int>
10214 Sets the video bitrate in kbit/s for MPEG-1/2 video.
10217 .B vframerate=<24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >
10218 Sets the framerate for MPEG-1/2 video.
10219 This option will be ignored if used with the telecine option.
10222 .B telecine
10223 Enables 3:2 pulldown soft telecine mode: The muxer will make the
10224 video stream look like it was encoded at 30000/1001 fps.
10225 It only works with MPEG-2 video when the output framerate is
10226 24000/1001 fps, convert it with \-ofps if necessary.
10227 Any other framerate is incompatible with this option.
10230 .B film2pal
10231 Enables FILM to PAL and NTSC to PAL soft telecine mode: The muxer
10232 will make the video stream look like it was encoded at 25 fps.
10233 It only works with MPEG-2 video when the output framerate is
10234 24000/1001 fps, convert it with \-ofps if necessary.
10235 Any other framerate is incompatible with this option.
10238 .B tele_src and tele_dest
10239 Enables arbitrary telecining using Donand Graft's DGPulldown code.
10240 You need to specify the original and the desired framerate; the
10241 muxer will make the video stream look like it was encoded at
10242 the desired framerate.
10243 It only works with MPEG-2 video when the input framerate is smaller
10244 than the output framerate and the framerate increase is <= 1.5.
10245 .sp 1
10247 .I EXAMPLE:
10249 .PD 0
10250 .RSs
10251 .IPs tele_src=25,tele_dest=30000/1001
10252 PAL to NTSC telecining
10254 .PD 1
10257 .B vbuf_size=<40\-1194>
10258 Sets the size of the video decoder's buffer, expressed in kilobytes.
10259 Specify it only if the bitrate of the video stream is too high for
10260 the chosen format and if you know perfectly well what you are doing.
10261 A too high value may lead to an unplayable movie, depending on the player's
10262 capabilities.
10263 When muxing HDTV video a value of 400 should suffice.
10266 .B abuf_size=<4\-64>
10267 Sets the size of the audio decoder's buffer, expressed in kilobytes.
10268 The same principle as for vbuf_size applies.
10271 .SS FFmpeg libavformat demuxers (\-lavfdopts)
10274 .B analyzeduration=<value>
10275 Maximum length in seconds to analyze the stream properties.
10278 .B format=<value>
10279 Force a specific libavformat demuxer.
10282 .B probesize=<value>
10283 Maximum amount of data to probe during the detection phase.
10284 In the case of MPEG-TS this value identifies the maximum number
10285 of TS packets to scan.
10288 .B cryptokey=<hexstring>
10289 Encryption key the demuxer should use.
10290 This is the raw binary data of the key converted to a hexadecimal string.
10294 .SS FFmpeg libavformat muxers (\-lavfopts) (also see \-of lavf)
10297 .B delay=<value>
10298 Currently only meaningful for MPEG[12]: Maximum allowed distance,
10299 in seconds, between the reference timer of the output stream (SCR)
10300 and the decoding timestamp (DTS) for any stream present
10301 (demux to decode delay).
10302 Default is 0.7 (as mandated by the standards defined by MPEG).
10303 Higher values require larger buffers and must not be used.
10306 .B format=<container_format>
10307 Override which container format to mux into
10308 (default: autodetect from output file extension).
10309 .PD 0
10310 .RSs
10311 .IPs "mpg\ \ "
10312 MPEG-1 systems and MPEG-2 PS
10313 .IPs "asf\ \ "
10314 Advanced Streaming Format
10315 .IPs "avi\ \ "
10316 Audio Video Interleave file
10317 .IPs "wav\ \ "
10318 Waveform Audio
10319 .IPs "swf\ \ "
10320 Macromedia Flash
10321 .IPs "flv\ \ "
10322 Macromedia Flash video files
10323 .IPs "rm\ \ \ "
10324 RealAudio and RealVideo
10325 .IPs "au\ \ \ "
10326 SUN AU format
10327 .IPs "nut\ \ "
10328 NUT open container format (experimental)
10329 .IPs "mov\ \ "
10330 QuickTime
10331 .IPs "mp4\ \ "
10332 MPEG-4 format
10333 .IPs "dv\ \ \ "
10334 Sony Digital Video container
10336 .PD 1
10338 .B muxrate=<rate>
10339 Nominal bitrate of the multiplex, in bits per second;
10340 currently it is meaningful only for MPEG[12].
10341 Sometimes raising it is necessary in order to avoid "buffer underflows".
10344 .B packetsize=<size>
10345 Size, expressed in bytes, of the unitary packet for the chosen format.
10346 When muxing to MPEG[12] implementations the default values are:
10347 2324 for [S]VCD, 2048 for all others formats.
10350 .B preload=<distance>
10351 Currently only meaningful for MPEG[12]: Initial distance,
10352 in seconds, between the reference timer of the output stream (SCR)
10353 and the decoding timestamp (DTS) for any stream present
10354 (demux to decode delay).
10358 .\" --------------------------------------------------------------------------
10359 .\" environment variables
10360 .\" --------------------------------------------------------------------------
10362 .SH ENVIRONMENT VARIABLES
10364 There are a number of environment variables that can be used to
10365 control the behavior of MPlayer and MEncoder.
10368 .B MPLAYER_CHARSET (also see \-msgcharset)
10369 Convert console messages to the specified charset (default: autodetect).
10370 A value of "noconv" means no conversion.
10373 .B MPLAYER_HOME
10374 Directory where MPlayer looks for user settings.
10377 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
10378 Set the initial verbosity level across all message modules (default: 0).
10379 The resulting verbosity corresponds to that of \-msglevel 5 plus the
10380 value of MPLAYER_VERBOSE.
10382 .SS libaf:
10385 .B LADSPA_PATH
10386 If LADSPA_PATH is set, it searches for the specified file.
10387 If it is not set, you must supply a fully specified pathname.
10388 FIXME: This is also mentioned in the ladspa section.
10390 .SS libdvdcss:
10393 .B DVDCSS_CACHE
10394 Specify a directory in which to store title key values.
10395 This will speed up descrambling of DVDs which are in the cache.
10396 The DVDCSS_CACHE directory is created if it does not exist,
10397 and a subdirectory is created named after the DVD's title
10398 or manufacturing date.
10399 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
10400 the default value which is "${HOME}/.dvdcss/" under Unix and
10401 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
10402 The special value "off" disables caching.
10405 .B DVDCSS_METHOD
10406 Sets the authentication and decryption method that
10407 libdvdcss will use to read scrambled discs.
10408 Can be one of title, key or disc.
10409 .PD 0
10410 .RSs
10411 .IPs "key\ \ "
10412 is the default method.
10413 libdvdcss will use a set of calculated player keys to try and get the disc key.
10414 This can fail if the drive does not recognize any of the player keys.
10415 .IPs "disc\ "
10416 is a fallback method when key has failed.
10417 Instead of using player keys, libdvdcss will crack the disc key using
10418 a brute force algorithm.
10419 This process is CPU intensive and requires 64 MB of memory to store
10420 temporary data.
10421 .IPs title
10422 is the fallback when all other methods have failed.
10423 It does not rely on a key exchange with the DVD drive, but rather uses
10424 a crypto attack to guess the title key.
10425 On rare cases this may fail because there is not enough encrypted data
10426 on the disc to perform a statistical attack, but in the other hand it
10427 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
10428 the wrong region on an RPC2 drive.
10430 .PD 1
10433 .B DVDCSS_RAW_DEVICE
10434 Specify the raw device to use.
10435 Exact usage will depend on your operating system, the Linux
10436 utility to set up raw devices is raw(8) for instance.
10437 Please note that on most operating systems, using a raw device
10438 requires highly aligned buffers: Linux requires a 2048 bytes
10439 alignment (which is the size of a DVD sector).
10442 .B DVDCSS_VERBOSE
10443 Sets the libdvdcss verbosity level.
10444 .PD 0
10445 .RSs
10446 .IPs 0
10447 Outputs no messages at all.
10448 .IPs 1
10449 Outputs error messages to stderr.
10450 .IPs 2
10451 Outputs error messages and debug messages to stderr.
10453 .PD 1
10456 .B DVDREAD_NOKEYS
10457 Skip retrieving all keys on startup.
10458 Currently disabled.
10461 .B HOME
10462 FIXME: Document this.
10464 .SS libao2:
10467 .B AO_SUN_DISABLE_SAMPLE_TIMING
10468 FIXME: Document this.
10471 .B AUDIODEV
10472 FIXME: Document this.
10475 .B AUDIOSERVER
10476 Specifies the Network Audio System server to which the
10477 nas audio output driver should connect and the transport
10478 that should be used.
10479 If unset DISPLAY is used instead.
10480 The transport can be one of tcp and unix.
10481 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
10482 or [unix]:<instancenumber>.
10483 The NAS base port is 8000 and <instancenumber> is added to that.
10484 .sp 1
10486 .I EXAMPLES:
10488 .PD 0
10489 .RSs
10490 .IPs AUDIOSERVER=somehost:0
10491 Connect to NAS server on somehost using default port and transport.
10492 .IPs AUDIOSERVER=tcp/somehost:8000
10493 Connect to NAS server on somehost listening on TCP port 8000.
10494 .IPs AUDIOSERVER=(unix)?:0
10495 Connect to NAS server instance 0 on localhost using unix domain sockets.
10497 .PD 1
10500 .B DISPLAY
10501 FIXME: Document this.
10503 .SS vidix:
10506 .B VIDIX_CRT
10507 FIXME: Document this.
10509 .SS osdep:
10512 .B TERM
10513 FIXME: Document this.
10515 .SS libvo:
10518 .B DISPLAY
10519 FIXME: Document this.
10522 .B FRAMEBUFFER
10523 FIXME: Document this.
10526 .B HOME
10527 FIXME: Document this.
10529 .SS libmpdemux:
10532 .B HOME
10533 FIXME: Document this.
10536 .B HOMEPATH
10537 FIXME: Document this.
10540 .B http_proxy
10541 FIXME: Document this.
10544 .B LOGNAME
10545 FIXME: Document this.
10548 .B USERPROFILE
10549 FIXME: Document this.
10551 .SS libmpcodecs:
10554 .B XANIM_MOD_DIR
10555 FIXME: Document this.
10557 .SS GUI:
10560 .B CHARSET
10561 FIXME: Document this.
10564 .B DISPLAY
10565 FIXME: Document this.
10568 .B HOME
10569 FIXME: Document this.
10571 .SS libavformat:
10574 .B AUDIO_FLIP_LEFT
10575 FIXME: Document this.
10578 .B BKTR_DEV
10579 FIXME: Document this.
10582 .B BKTR_FORMAT
10583 FIXME: Document this.
10586 .B BKTR_FREQUENCY
10587 FIXME: Document this.
10590 .B http_proxy
10591 FIXME: Document this.
10594 .B no_proxy
10595 FIXME: Document this.
10599 .\" --------------------------------------------------------------------------
10600 .\" Files
10601 .\" --------------------------------------------------------------------------
10603 .SH FILES
10606 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
10607 MPlayer system-wide settings
10610 /usr/\:local/\:etc/\:mplayer/\:mencoder.conf
10611 MEncoder system-wide settings
10614 ~/.mplayer/\:config
10615 MPlayer user settings
10618 ~/.mplayer/\:mencoder.conf
10619 MEncoder user settings
10622 ~/.mplayer/\:input.conf
10623 input bindings (see '\-input keylist' for the full list)
10626 ~/.mplayer/\:gui.conf
10627 GUI configuration file
10630 ~/.mplayer/\:gui.pl
10631 GUI playlist
10634 ~/.mplayer/\:font/
10635 font directory (There must be a font.desc file and files with .RAW extension.)
10638 ~/.mplayer/\:DVDkeys/
10639 cached CSS keys
10642 Assuming that /path/\:to/\:movie.avi is played, MPlayer searches for sub files
10643 in this order:
10645 /path/\:to/\:movie.sub
10647 ~/.mplayer/\:sub/\:movie.sub
10649 .PD 1
10652 .\" --------------------------------------------------------------------------
10653 .\" Examples
10654 .\" --------------------------------------------------------------------------
10656 .SH EXAMPLES OF MPLAYER USAGE
10659 .B Quickstart DVD playing:
10661 mplayer dvd://1
10665 .B Play in Japanese with English subtitles:
10667 mplayer dvd://1 \-alang ja \-slang en
10671 .B Play only chapters 5, 6, 7:
10673 mplayer dvd://1 \-chapter 5\-7
10677 .B Play only titles 5, 6, 7:
10679 mplayer dvd://5\-7
10683 .B Play a multiangle DVD:
10685 mplayer dvd://1 \-dvdangle 2
10689 .B Play from a different DVD device:
10691 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
10695 .B Play DVD video from a directory with VOB files:
10697 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
10701 .B Copy a DVD title to hard disk, saving to file "title1.vob":
10703 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
10707 .B Stream from HTTP:
10709 mplayer http://mplayer.hq/example.avi
10713 .B Stream using RTSP:
10715 mplayer rtsp://server.example.com/streamName
10719 .B Convert subtitles to MPsub format:
10721 mplayer dummy.avi \-sub source.sub \-dumpmpsub
10725 .B Convert subtitles to MPsub format without watching the movie:
10727 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
10731 .B input from standard V4L:
10733 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
10737 .B Playback on Zoran cards (old style, deprecated):
10739 mplayer \-vo zr \-vf scale=352:288 file.avi
10743 .B Playback on Zoran cards (new style):
10745 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
10749 .B Play DTS-CD with passthrough:
10751 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
10754 You can also use \-afm hwac3 instead of \-ac hwdts.
10755 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
10756 If your external receiver supports decoding raw DTS streams,
10757 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
10760 .B Play a 6-channel AAC file with only two speakers:
10762 mplayer \-rawaudio format=0xff \-demuxer rawaudio \-af pan=2:.32:.32:.39:.06:.06:.39:.17:-.17:-.17:.17:.33:.33 adts_he-aac160_51.aac
10765 You might want to play a bit with the pan values (e.g multiply with a value) to
10766 increase volume or avoid clipping.
10769 .B checkerboard invert with geq filter:
10771 mplayer \-vf geq='128+(p(X\,Y)\-128)*(0.5\-gt(mod(X/SW\,128)\,64))*(0.5\-gt(mod(Y/SH\,128)\,64))*4'
10775 .SH EXAMPLES OF MENCODER USAGE
10778 .B Encode DVD title #2, only selected chapters:
10780 mencoder dvd://2 \-chapter 10\-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
10784 .B Encode DVD title #2, resizing to 640x480:
10786 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
10790 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
10792 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
10796 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
10798 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
10802 .B The same, but with MJPEG compression:
10804 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
10808 .B Encode all *.jpg files in the current directory:
10810 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
10814 .B Encode from a tuner (specify a format with \-vf format):
10816 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
10820 .B Encode from a pipe:
10822 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
10826 .\" --------------------------------------------------------------------------
10827 .\" Bugs, authors, standard disclaimer
10828 .\" --------------------------------------------------------------------------
10830 .SH BUGS
10831 Don't panic.
10832 If you find one, report it to us, but please make sure you have read all
10833 of the documentation first.
10834 Also look out for smileys. :)
10835 Many bugs are the result of incorrect setup or parameter usage.
10836 The bug reporting section of the documentation
10837 (http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:bugreports.html)
10838 explains how to create useful bug reports.
10842 .SH AUTHORS
10843 MPlayer was initially written by Arpad Gereoffy.
10844 See the AUTHORS file for a list of some of the many other contributors.
10846 MPlayer is (C) 2000\-2007 The MPlayer Team
10848 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
10849 It is maintained by Diego Biurrun.
10850 Please send mails about it to the MPlayer-DOCS mailing list.
10851 Translation specific mails belong on the MPlayer-translations mailing list.
10852 .\" end of file