subs: options: add -sub-paths
[mplayer/greg.git] / DOCS / man / en / mplayer.1
blobea237fd84e83ed167a05ea3045290b73d6360d9f
1 .\" $Revision$
2 .\" MPlayer (C) 2000-2010 MPlayer Team
3 .\" This man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
5 .\" --------------------------------------------------------------------------
6 .\" Macro definitions
7 .\" --------------------------------------------------------------------------
9 .\" define indentation for suboptions
10 .nr SS 5
11 .\" add new suboption
12 .de IPs
13 .IP "\\$1" \n(SS
15 .\" begin of first level suboptions, end with .RE
16 .de RSs
17 .RS 10
19 .\" begin of 2nd level suboptions
20 .de RSss
21 .PD 0
22 .RS \n(SS+3
24 .\" end of 2nd level suboptions
25 .de REss
26 .RE
27 .PD 1
30 .\" --------------------------------------------------------------------------
31 .\" Title
32 .\" --------------------------------------------------------------------------
34 .TH MPlayer 1 "2009-03-25" "The MPlayer Project" "The Movie Player"
36 .SH NAME
37 mplayer \- movie player
39 .\" --------------------------------------------------------------------------
40 .\" Synopsis
41 .\" --------------------------------------------------------------------------
43 .SH SYNOPSIS
44 .na
45 .nh
46 .B mplayer
47 [options] [file|URL|playlist|\-]
49 .br
50 .B mplayer
51 [options] file1
52 [specific options] [file2] [specific options]
54 .br
55 .B mplayer
56 [options]
57 {group of files and options}
58 [group-specific options]
60 .br
61 .B mplayer
62 [br]://[title][/device]
63 [options]
65 .br
66 .B mplayer
67 [dvd|dvdnav]://[title|[start_title]\-end_title][/device]
68 [options]
70 .br
71 .B mplayer
72 vcd://track[/device]
74 .br
75 .B mplayer
76 tv://[channel][/input_id]
77 [options]
79 .br
80 .B mplayer
81 radio://[channel|frequency][/capture]
82 [options]
84 .br
85 .B mplayer
86 pvr://
87 [options]
89 .br
90 .B mplayer
91 dvb://[card_number@]channel
92 [options]
94 .br
95 .B mplayer
96 mf://[filemask|@listfile]
97 [\-mf options] [options]
99 .br
100 .B mplayer
101 [cdda|cddb]://track[\-endtrack][:speed][/device]
102 [options]
105 .B mplayer
106 cue://file[:track]
107 [options]
110 .B mplayer
111 [file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|icyx|noicyx|smb]://
112 [user:pass@]URL[:port] [options]
115 .B mplayer
116 sdp://file
117 [options]
120 .B mplayer
121 mpst://host[:port]/URL
122 [options]
125 .B mplayer
126 tivo://host/[list|llist|fsid]
127 [options]
131 .\" --------------------------------------------------------------------------
132 .\" Description
133 .\" --------------------------------------------------------------------------
135 .SH DESCRIPTION
136 .B mplayer
137 is a movie player for Linux (runs on many other platforms and CPU
138 architectures, see the documentation).
139 It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM,
140 MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
141 native and binary codecs.
142 You can watch VCD, SVCD, DVD, Blu\-ray, 3ivx, DivX 3/4/5, WMV and even H.264 movies,
143 too.
145 MPlayer supports a wide range of video and audio output drivers.
146 It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
147 Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers),
148 VESA (on every VESA-compatible card, even without X11), some low-level
149 card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder
150 boards, such as the Siemens DVB, Hauppauge PVR (IVTV) and DXR3/\:Hollywood+.
151 Most of them support software or hardware scaling, so you can enjoy movies in
152 fullscreen mode.
154 MPlayer has an onscreen display (OSD) for status information, nice big
155 antialiased shaded subtitles and visual feedback for keyboard controls.
156 European/\:ISO8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean
157 fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM,
158 SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and
159 DVD subtitles (SPU streams, VOBsub and Closed Captions).
161 Usage examples to get you started quickly can be found at the end
162 of this man page.
164 .B Also see the HTML documentation!
167 .\" --------------------------------------------------------------------------
168 .\" interactive control
169 .\" --------------------------------------------------------------------------
171 .SH "INTERACTIVE CONTROL"
172 MPlayer has a fully configurable, command-driven control layer
173 which allows you to control MPlayer using keyboard, mouse, joystick
174 or remote control (with LIRC).
175 See the \-input option for ways to customize it.
178 .B keyboard control
179 .PD 0
181 .IPs "<\- and \->"
182 Seek backward/\:forward 10 seconds.
183 Shift+arrow does a 1 second exact seek (see \-hr\-seek; currently modifier
184 keys like shift only work if used in an X output window).
185 .IPs "up and down"
186 Seek forward/\:backward 1 minute.
187 Shift+arrow does a 5 second exact seek (see \-hr\-seek; currently modifier
188 keys like shift only work if used in an X output window).
189 .IPs "pgup and pgdown"
190 Seek forward/\:backward 10 minutes.
191 .IPs "[ and ]"
192 Decrease/increase current playback speed by 10%.
193 .IPs "{ and }"
194 Halve/double current playback speed.
195 .IPs "backspace"
196 Reset playback speed to normal.
197 .IPs "< and >"
198 Go backward/\:forward in the playlist.
199 .IPs "ENTER"
200 Go forward in the playlist, even over the end.
201 .IPs "HOME and END"
202 next/\:previous playtree entry in the parent list
203 .IPs "INS and DEL (ASX playlist only)"
204 next/\:previous alternative source.
205 .IPs "p / SPACE"
206 Pause (pressing again unpauses).
207 .IPs ".\ \ \ \ "
208 Step forward.
209 Pressing once will pause movie, every consecutive press will play one frame
210 and then go into pause mode again.
211 .IPs "q / ESC"
212 Stop playing and quit.
213 .IPs "U\ \ \ \ "
214 Stop playing (and quit if \-idle is not used).
215 .IPs "+ and \-"
216 Adjust audio delay by +/\- 0.1 seconds.
217 .IPs "/ and *"
218 Decrease/\:increase volume.
219 .IPs "9 and 0"
220 Decrease/\:increase volume.
221 .IPs "( and )"
222 Adjust audio balance in favor of left/\:right channel.
223 .IPs "m\ \ \ \ "
224 Mute sound.
225 .IPs "_ (MPEG-TS, AVI and libavformat only)"
226 Cycle through the available video tracks.
227 .IPs "# (DVD, Blu-ray, MPEG, Matroska, AVI and libavformat only)"
228 Cycle through the available audio tracks.
229 .IPs "TAB (MPEG-TS and libavformat only)"
230 Cycle through the available programs.
231 .IPs "f\ \ \ \ "
232 Toggle fullscreen (also see \-fs).
233 .IPs "T\ \ \ \ "
234 Toggle stay-on-top (also see \-ontop).
235 .IPs "w and e"
236 Decrease/\:increase pan-and-scan range.
237 .IPs "o\ \ \ \ "
238 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
239 .IPs "d\ \ \ \ "
240 Toggle frame dropping states: none / skip display / skip decoding
241 (see \-framedrop and \-hardframedrop).
242 .IPs "v\ \ \ \ "
243 Toggle subtitle visibility.
244 .IPs "j and J"
245 Cycle through the available subtitles.
246 .IPs "y and g"
247 Step forward/backward in the subtitle list.
248 .IPs "F\ \ \ \ "
249 Toggle displaying "forced subtitles".
250 .IPs "a\ \ \ \ "
251 Toggle subtitle alignment: top / middle / bottom.
252 .IPs "x and z"
253 Adjust subtitle delay by +/\- 0.1 seconds.
254 .IPs "C (\-capture only)"
255 Start/stop capturing the primary stream.
256 .IPs "r and t"
257 Move subtitles up/down.
258 .IPs "i (\-edlout mode only)"
259 Set start or end of an EDL skip and write it out to the given file.
260 .IPs "s (\-vf screenshot only)"
261 Take a screenshot.
262 .IPs "S (\-vf screenshot only)"
263 Start/stop taking screenshots.
264 .IPs "I\ \ \ \ "
265 Show filename on the OSD.
266 .IPs "P\ \ \ \ "
267 Show progression bar, elapsed time and total duration on the OSD.
268 .IPs "! and @"
269 Seek to the beginning of the previous/next chapter.
270 .IPs "D (\-vo xvmc, \-vo vdpau, \-vf yadif, \-vf kerndeint only)"
271 Activate/deactivate deinterlacer.
272 .IPs "A\ \ \ \ "
273 Cycle through the available DVD angles.
274 .IPs "c (currently -vo vdpau and -vo xv only)"
275 Change YUV colorspace.
277 .PD 1
280 (The following keys are valid only when using a video output that supports
281 the corresponding adjustment, the software equalizer
282 (\-vf eq or \-vf eq2) or hue filter (\-vf hue).)
285 .PD 0
287 .IPs "1 and 2"
288 Adjust contrast.
289 .IPs "3 and 4"
290 Adjust brightness.
291 .IPs "5 and 6"
292 Adjust hue.
293 .IPs "7 and 8"
294 Adjust saturation.
296 .PD 1
299 (The following keys are valid only when using the quartz or corevideo
300 video output driver.)
303 .PD 0
305 .IPs "command + 0"
306 Resize movie window to half its original size.
307 .IPs "command + 1"
308 Resize movie window to its original size.
309 .IPs "command + 2"
310 Resize movie window to double its original size.
311 .IPs "command + f"
312 Toggle fullscreen (also see \-fs).
313 .IPs "command + [ and command + ]"
314 Set movie window alpha.
316 .PD 1
319 (The following keys are valid only when using the sdl
320 video output driver.)
323 .PD 0
325 .IPs "c\ \ \ \ "
326 Cycle through available fullscreen modes.
327 .IPs "n\ \ \ \ "
328 Restore original mode.
330 .PD 1
333 (The following keys are valid if you have a keyboard
334 with multimedia keys.)
337 .PD 0
339 .IPs PAUSE
340 Pause.
341 .IPs "STOP\ "
342 Stop playing and quit.
343 .IPs "PREVIOUS and NEXT"
344 Seek backward/\:forward 1 minute.
346 .PD 1
349 (The following keys are only valid if you compiled with TV or DVB input
350 support and will take precedence over the keys defined above.)
353 .PD 0
355 .IPs "h and k"
356 Select previous/\:next channel.
357 .IPs "n\ \ \ \ "
358 Change norm.
359 .IPs "u\ \ \ \ "
360 Change channel list.
362 .PD 1
365 (The following keys are only valid if you compiled with dvdnav
366 support: They are used to navigate the menus.)
369 .PD 0
371 .IPs "keypad 8"
372 Select button up.
373 .IPs "keypad 2"
374 Select button down.
375 .IPs "keypad 4"
376 Select button left.
377 .IPs "keypad 6"
378 Select button right.
379 .IPs "keypad 5"
380 Return to main menu.
381 .IPs "keypad 7"
382 Return to nearest menu (the order of preference is: chapter->title->root).
383 .IPs "keypad ENTER"
384 Confirm choice.
386 .PD 1
390 (The following keys are used for controlling TV teletext. The data may
391 come from either an analog TV source or an MPEG transport stream.)
394 .PD 0
396 .IPs "X\ \ \ \ "
397 Switch teletext on/\:off.
398 .IPs "Q and W"
399 Go to next/\:prev teletext page.
401 .PD 1
404 .B mouse control
405 .PD 0
407 .IPs "button 3 and button 4"
408 Seek backward/\:forward 1 minute.
409 .IPs "button 5 and button 6"
410 Decrease/\:increase volume.
412 .PD 1
415 .B joystick control
416 .PD 0
418 .IPs "left and right"
419 Seek backward/\:forward 10 seconds.
420 .IPs "up and down"
421 Seek forward/\:backward 1 minute.
422 .IPs "button 1"
423 Pause.
424 .IPs "button 2"
425 Toggle OSD states: none / seek / seek + timer / seek + timer + total time.
426 .IPs "button 3 and button 4"
427 Decrease/\:increase volume.
429 .PD 1
432 .\" --------------------------------------------------------------------------
433 .\" Usage
434 .\" --------------------------------------------------------------------------
436 .SH "USAGE"
437 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
438 \-fs option is \-nofs.
440 If an option is marked as (XXX only), it will only work in combination with
441 the XXX option or if XXX is compiled in.
443 .I NOTE:
444 The suboption parser (used for example for \-ao pcm suboptions) supports
445 a special kind of string-escaping intended for use with external GUIs.
447 It has the following format:
449 %n%string_of_length_n
451 .I EXAMPLES:
453 mplayer \-ao pcm:file=%10%C:test.wav test.avi
455 Or in a script:
457 mplayer \-ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
460 .\" --------------------------------------------------------------------------
461 .\" Configuration files
462 .\" --------------------------------------------------------------------------
464 .SH "CONFIGURATION FILES"
465 You can put all of the options in configuration files which will be read
466 every time MPlayer is run.
467 The system-wide configuration file 'mplayer.conf' is in your configuration
468 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
469 specific one is '~/\:.mplayer/\:config'.
470 User specific options override system-wide options and options given on the
471 command line override either.
472 The syntax of the configuration files is 'option=<value>', everything after
473 a '#' is considered a comment.
474 Options that work without values can be enabled by setting them to 'yes'
475 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
476 Even suboptions can be specified in this way.
478 You can also write file-specific configuration files.
479 If you wish to have a configuration file for a file called 'movie.avi', create a file
480 named 'movie.avi.conf' with the file-specific options in it and put it in
481 ~/.mplayer/.
482 You can also put the configuration file in the same directory as the file to
483 be played, as long as you give the \-use\-filedir\-conf option (either on the
484 command line or in your global config file).
485 If a file-specific configuration file is found in the same directory, no
486 file-specific configuration is loaded from ~/.mplayer.
487 In addition, the \-use\-filedir\-conf option enables directory-specific
488 configuration files.
489 For this, MPlayer first tries to load a mplayer.conf from the same directory as
490 the file played and then tries to load any file-specific configuration.
492 .I EXAMPLE MPLAYER CONFIGURATION FILE:
493 .sp 1
495 # Use Matrox driver by default.
496 vo=xmga
497 # I love practicing handstands while watching videos.
498 flip=yes
499 # Decode multiple files from PNG,
500 # start with mf://filemask
501 mf=type=png:fps=25
502 # Eerie negative images are cool.
503 vf=eq2=1.0:\-0.8
506 .\" --------------------------------------------------------------------------
507 .\" Profiles
508 .\" --------------------------------------------------------------------------
510 .SH "PROFILES"
511 To ease working with different configurations profiles can be defined in the
512 configuration files.
513 A profile starts with its name between square brackets, e.g.\& '[my-profile]'.
514 All following options will be part of the profile.
515 A description (shown by \-profile help) can be defined with the profile-desc
516 option.
517 To end the profile, start another one or use the profile name 'default'
518 to continue with normal options.
521 .I "EXAMPLE MPLAYER PROFILE:"
522 .sp 1
525 [protocol.dvd]
526 profile-desc="profile for dvd:// streams"
527 vf=pp=hb/vb/dr/al/fd
528 alang=en
530 [protocol.dvdnav]
531 profile-desc="profile for dvdnav:// streams"
532 profile=protocol.dvd
533 mouse-movements=yes
534 nocache=yes
536 [extension.flv]
537 profile-desc="profile for .flv files"
538 flip=yes
540 [vo.pnm]
541 outdir=/tmp
543 [ao.alsa]
544 device=spdif
547 .\" --------------------------------------------------------------------------
548 .\" Options
549 .\" --------------------------------------------------------------------------
551 .SH "GENERAL OPTIONS"
554 .B \-codecpath <dir>
555 Specify a directory for binary codecs.
558 .B \-codecs\-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)
559 Override the standard search path and use the specified file
560 instead of the builtin codecs.conf.
563 .B \-include <configuration file>
564 Specify configuration file to be parsed after the default ones.
567 .B \-list\-options
568 Prints all available options.
571 .B \-msgcharset <charset>
572 Convert console messages to the specified character set (default: autodetect).
573 Text will be in the encoding specified with the \-\-charset configure option.
574 Set this to "noconv" to disable conversion (for e.g.\& iconv problems).
576 .I NOTE:
577 The option takes effect after command line parsing has finished.
578 The MPLAYER_CHARSET environment variable can help you get rid of
579 the first lines of garbled output.
582 .B \-msgcolor
583 Enable colorful console output on terminals that support ANSI color.
586 .B \-msglevel <all=<level>:<module>=<level>:...>
587 Control verbosity directly for each module.
588 The 'all' module changes the verbosity of all the modules not
589 explicitly specified on the command line.
590 See '\-msglevel help' for a list of all modules.
592 .I NOTE:
593 Some messages are printed before the command line is parsed and are
594 therefore not affected by \-msglevel.
595 To control these messages you have to use the MPLAYER_VERBOSE environment
596 variable, see its description below for details.
598 Available levels:
599 .PD 0
600 .RSs
601 .IPs "\-1"
602 complete silence
603 .IPs " 0"
604 fatal messages only
605 .IPs " 1"
606 error messages
607 .IPs " 2"
608 warning messages
609 .IPs " 3"
610 short hints
611 .IPs " 4"
612 informational messages
613 .IPs " 5"
614 status messages (default)
615 .IPs " 6"
616 verbose messages
617 .IPs " 7"
618 debug level 2
619 .IPs " 8"
620 debug level 3
621 .IPs " 9"
622 debug level 4
624 .PD 1
627 .B \-msgmodule
628 Prepend module name in front of each console message.
631 .B \-noconfig <options>
632 Do not parse selected configuration files.
634 .I NOTE:
635 If \-include or \-use\-filedir\-conf options are
636 specified at the command line, they will be honoured.
637 .sp 1
638 Available options are:
639 .PD 0
640 .RSs
641 .IPs "all\ \ "
642 all configuration files
643 .IPs system
644 system configuration file
645 .IPs "user\ "
646 user configuration file
648 .PD 1
651 .B "\-quiet\ "
652 Make console output less verbose; in particular, prevents the status line
653 (i.e.\& A:   0.7 V:   0.6 A-V:  0.068 ...) from being displayed.
654 Particularly useful on slow terminals or broken ones which do not properly
655 handle carriage return (i.e.\& \\r).
658 .B \-priority <prio> (Windows and OS/2 only)
659 Set process priority for MPlayer according to the predefined
660 priorities available under Windows and OS/2.
661 Possible values of <prio>:
662 .RSs
663 idle|belownormal|normal|abovenormal|high|realtime
665 .sp 1
667 .I WARNING:
668 Using realtime priority can cause system lockup.
672 .B \-profile <profile1,profile2,...>
673 Use the given profile(s), \-profile help displays a list of the defined profiles.
676 .B \-really\-quiet (also see \-quiet)
677 Display even less output and status messages than with \-quiet.
680 .B \-show\-profile <profile>
681 Show the description and content of a profile.
684 .B \-use\-filedir\-conf
685 Look for a file-specific configuration file in the same directory as
686 the file that is being played.
688 .I WARNING:
689 May be dangerous if playing from untrusted media.
692 .B "\-v\ \ \ \ \ "
693 Increment verbosity level, one level for each \-v
694 found on the command line.
698 .SH "PLAYER OPTIONS"
701 .B \-autoq <quality> (use with \-vf [s]pp)
702 Dynamically changes the level of postprocessing depending on the available spare
703 CPU time.
704 The number you specify will be the maximum level used.
705 Usually you can use some big number.
706 You have to use \-vf [s]pp without parameters in order for this to work.
709 .B \-autosync <factor>
710 Gradually adjusts the A/V sync based on audio delay measurements.
711 Specifying \-autosync 0, the default, will cause frame timing to be based
712 entirely on audio delay measurements.
713 Specifying \-autosync 1 will do the same, but will subtly change the A/V
714 correction algorithm.
715 An uneven video framerate in a movie which plays fine with \-nosound can
716 often be helped by setting this to an integer value greater than 1.
717 The higher the value, the closer the timing will be to \-nosound.
718 Try \-autosync 30 to smooth out problems with sound drivers which do
719 not implement a perfect audio delay measurement.
720 With this value, if large A/V sync offsets occur, they will only take about
721 1 or 2 seconds to settle out.
722 This delay in reaction time to sudden A/V offsets should be the only
723 side-effect of turning this option on, for all sound drivers.
726 .B \-benchmark
727 Prints some statistics on CPU usage and dropped frames at the end of playback.
728 Use in combination with \-nosound and \-vo null for benchmarking only the
729 video codec.
731 .I NOTE:
732 With this option MPlayer will also ignore frame duration when playing
733 only video (you can think of that as infinite fps).
736 .B \-chapter\-merge\-threshold <number>
737 Threshold for merging almost consecutive ordered chapter parts
738 in milliseconds (default: 100).
739 Some Matroska files with ordered chapters have inaccurate chapter
740 end timestamps, causing a small gap between the end of one chapter and
741 the start of the next one when they should match.
742 If the end of one playback part is less than the given threshold away
743 from the start of the next one then keep playing video normally over the
744 chapter change instead of doing a seek.
747 .B \-colorkey <number>
748 Changes the colorkey to an RGB value of your choice.
749 0x000000 is black and 0xffffff is white.
750 Only supported by the fbdev, svga, vesa, xmga,
751 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
752 drivers.
755 .B \-nocolorkey
756 Disables colorkeying.
757 Only supported by the fbdev, svga, vesa, xmga,
758 xover, xv (see \-vo xv:ck), xvmc (see \-vo xv:ck) and directx video output
759 drivers.
762 .B \-correct\-pts, \-nocorrect\-pts
763 Switches MPlayer to a mode where timestamps for video frames
764 are calculated differently and video filters which add new frames or
765 modify timestamps of existing ones are supported.
766 Now enabled automatically for most common file formats.
767 The more accurate timestamps can be visible for example when playing
768 subtitles timed to scene changes with the \-ass option.
769 Without \-correct\-pts the subtitle timing will typically be off by some frames.
770 This option does not work correctly with some demuxers and codecs.
773 .B \-crash\-debug (DEBUG CODE)
774 Automatically attaches gdb upon crash or SIGTRAP.
775 Support must be compiled in by configuring with \-\-enable\-crash\-debug.
778 .B \-doubleclick\-time
779 Time in milliseconds to recognize two consecutive button presses as
780 a double-click (default: 300).
781 Set to 0 to let your windowing system decide what a double-click is
782 (\-vo directx only).
784 .I NOTE:
785 You will get slightly different behaviour depending on whether you bind
786 MOUSE_BTN0_DBL or MOUSE_BTN0\-MOUSE_BTN0_DBL.
789 .B \-edlout <filename>
790 Creates a new file and writes edit decision list (EDL) records to it.
791 During playback, the user hits 'i' to mark the start or end of a skip block.
792 This provides a starting point from which the user can fine-tune EDL entries
793 later.
794 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details.
797 .B \-fixed\-vo, \-nofixed\-vo
798 \-fixed\-vo enforces a fixed video system for multiple files (one
799 (un)initialization for all files).
800 Therefore only one window will be opened for all files.
801 Now enabled by default, use \-nofixed\-vo to disable and create a new window
802 whenever the video stream changes.
803 Some of the older drivers may not be fixed-vo compliant.
806 .B \-framedrop (also see \-hardframedrop, experimental without \-nocorrect\-pts)
807 Skip displaying some frames to maintain A/V sync on slow systems.
808 Video filters are not applied to such frames.
809 For B-frames even decoding is skipped completely.
812 .B \-h, \-help, \-\-help
813 Show short summary of options.
816 .B \-hardframedrop (experimental without \-nocorrect\-pts)
817 More intense frame dropping (breaks decoding).
818 Leads to image distortion!
819 Note that especially the libmpeg2 decoder may crash with this,
820 so consider using "\-vc ffmpeg12,".
823 .B \-heartbeat\-cmd
824 Command that is executed every 30 seconds during playback via system() -
825 i.e.\& using the shell.
826 .sp 1
827 .I NOTE:
828 MPlayer uses this command without any checking, it is your responsibility
829 to ensure it does not cause security problems (e.g.\& make sure to use full
830 paths if "." is in your path like on Windows).
831 It also only works when playing video (i.e.\& not with \-novideo but works with \-vo null).
832 .sp 1
833 This can be "misused" to disable screensavers that do not support the proper
834 X API (also see \-stop\-xscreensaver).
835 If you think this is too complicated, ask the author of the screensaver
836 program to support the proper X APIs.
837 .sp 1
838 .I EXAMPLE for xscreensaver:
839 mplayer \-heartbeat\-cmd "xscreensaver\-command \-deactivate" file
840 .sp 1
841 .I EXAMPLE for GNOME screensaver:
842 mplayer \-heartbeat\-cmd "gnome\-screensaver\-command \-p" file
844 .PD 1
847 .B \-hr\-seek off|absolute|always
848 Select when to use precise seeks that are not limited to keyframes.
849 Such seeks require decoding video from the previous keyframe up to the target
850 position and so can take some time depending on decoding performance.
851 For some video formats precise seeks are disabled. This option selects the
852 default choice to use for seeks; it's possible to explicitly override that
853 default in the definition of key bindings and in slave mode commands.
854 .PD 0
855 .RSs
856 .IPs off
857 Never use precise seeks.
858 .IPs absolute
859 Use precise seeks if the seek is to an absolute position in the file,
860 such as a chapter seek, but not for relative seeks like the default
861 behavior of arrow keys (default).
862 .IPs always
863 Use precise seeks whenever possible.
865 .PD 1
868 .B \-identify
869 Shorthand for \-msglevel identify=4.
870 Show file parameters in an easily parseable format.
871 Also prints more detailed information about subtitle and audio
872 track languages and IDs.
873 In some cases you can get more information by using \-msglevel identify=6.
874 For example, for a DVD or Blu\-ray it will list the chapters and time length
875 of each title, as well as a disk ID.
876 Combine this with \-frames 0 to suppress all video output.
877 The wrapper script TOOLS/\:midentify.sh suppresses the other MPlayer output and
878 (hopefully) shellescapes the filenames.
881 .B \-idle (also see \-slave)
882 Makes MPlayer wait idly instead of quitting when there is no file to play.
883 Mostly useful in slave mode where MPlayer can be controlled
884 through input commands.
887 .B \-input <commands>
888 This option can be used to configure certain parts of the input system.
889 Paths are relative to ~/.mplayer/.
891 .I NOTE:
892 Autorepeat is currently only supported by joysticks.
893 .sp 1
894 Available commands are:
895 .sp 1
896 .PD 0
897 .RSs
898 .IPs conf=<filename>
899 Specify input configuration file other than the default
900 ~/\:.mplayer/\:input.conf.
901 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
902 .IPs ar-dev=<device>
903 Device to be used for Apple IR Remote (default is autodetected, Linux only).
904 .IPs ar-delay
905 Delay in milliseconds before we start to autorepeat a key (0 to disable).
906 .IPs ar-rate
907 Number of key presses to generate per second on autorepeat.
908 .IPs (no)default-bindings
909 Use the key bindings that MPlayer ships with by default.
910 .IPs keylist
911 Prints all keys that can be bound to commands.
912 .IPs cmdlist
913 Prints all commands that can be bound to keys.
914 .IPs js-dev
915 Specifies the joystick device to use (default: /dev/\:input/\:js0).
916 .IPs file=<filename>
917 Read commands from the given file.
918 Mostly useful with a FIFO.
920 .I NOTE:
921 When the given file is a FIFO MPlayer opens both ends so you can do
922 several 'echo "seek 10" > mp_pipe' and the pipe will stay valid.
924 .PD 1
927 .B \-key\-fifo\-size <2\-65000>
928 Specify the size of the FIFO that buffers key events (default: 7).
929 A FIFO of size n can buffer (n\-1) events.
930 If it is too small some events may be lost
931 (leading to "stuck mouse buttons" and similar effects).
932 If it is too big, MPlayer may seem to hang while it
933 processes the buffered events.
934 To get the same behavior as before this option was introduced,
935 set it to 2 for Linux or 1024 for Windows.
938 .B \-lircconf <filename> (LIRC only)
939 Specifies a configuration file for LIRC (default: ~/.lircrc).
942 .B \-list\-properties
943 Print a list of the available properties.
946 .B \-loop <number>
947 Loops movie playback <number> times.
948 0 means forever.
951 .B \-menu (OSD menu only)
952 Turn on OSD menu support.
955 .B \-menu\-cfg <filename> (OSD menu only)
956 Use an alternative menu.conf.
959 .B \-menu\-chroot <path> (OSD menu only)
960 Chroot the file selection menu to a specific location.
961 .sp 1
962 .I EXAMPLE:
963 .PD 0
964 .RSs
965 .IPs "\-menu\-chroot /home"
966 Will restrict the file selection menu to /\:home and downward (i.e.\& no
967 access to / will be possible, but /home/user_name will).
969 .PD 1
972 .B \-menu\-keepdir (OSD menu only)
973 File browser starts from the last known location instead of current directory.
976 .B \-menu\-root <value> (OSD menu only)
977 Specify the main menu.
980 .B \-menu\-startup (OSD menu only)
981 Display the main menu at MPlayer startup.
984 .B \-mouse\-movements
985 Permit MPlayer to receive pointer events reported by the video
986 output driver.
987 Necessary to select the buttons in DVD menus.
988 Supported for X11-based VOs (x11, xv, xvmc, etc) and the gl, gl2, direct3d and
989 corevideo VOs.
992 .B \-noar
993 Turns off AppleIR remote support.
996 .B \-noconsolecontrols
997 Prevent MPlayer from reading key events from standard input.
998 Useful when reading data from standard input.
999 This is automatically enabled when \- is found on the command line.
1000 There are situations where you have to set it manually, e.g.\&
1001 if you open /dev/\:stdin (or the equivalent on your system), use stdin
1002 in a playlist or intend to read from stdin later on via the loadfile or
1003 loadlist slave commands.
1006 .B \-noinitial-audio-sync
1007 When starting a video file or after events such as seeking MPlayer will by
1008 default modify the audio stream to make it start from the same timestamp as
1009 video, by either inserting silence at the start or cutting away the first
1010 samples.
1011 This option disables that functionality and makes the player behave like
1012 older MPlayer versions did: video and audio are both started immediately
1013 even if their start timestamps differ, and then video timing is gradually
1014 adjusted if necessary to reach correct synchronization later.
1017 .B \-nojoystick
1018 Turns off joystick support.
1021 .B \-nolirc
1022 Turns off LIRC support.
1025 .B \-nomouseinput
1026 Disable mouse button press/\:release input (mozplayerxp's context menu relies
1027 on this option).
1029 .B \-noordered\-chapters
1030 Disable support for Matroska ordered chapters.
1031 MPlayer will not load or search for video segments from other files,
1032 and will also ignore any chapter order specified for the main file.
1035 .B \-pts\-association\-mode auto|decode|sort
1036 Select the method used to determine which container packet timestamp
1037 corresponds to a particular output frame from the video decoder.
1038 Normally you shouldn't need to change this option.
1039 .PD 0
1040 .RSs
1041 .IPs auto
1042 Try to pick a working mode from the ones below automatically (default)
1043 .IPs decoder
1044 Use decoder reordering functionality.
1045 .IPs sort
1046 Maintain a buffer of unused pts values and use the lowest value for the frame.
1048 .PD 1
1051 .B \-rtc (RTC only)
1052 Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timing
1053 mechanism.
1054 This wakes up the process every 1/1024 seconds to check the current time.
1055 Useless with modern Linux kernels configured for desktop use as they already
1056 wake up the process with similar accuracy when using normal timed sleep.
1059 .B \-playing\-msg <string>
1060 Print out a string before starting playback.
1061 The following expansions are supported:
1062 .RSs
1063 .IPs ${NAME}
1064 Expand to the value of the property NAME.
1065 .IPs ?(NAME:TEXT)
1066 Expand TEXT only if the property NAME is available.
1067 .IPs ?(!NAME:TEXT)
1068 Expand TEXT only if the property NAME is not available.
1072 .B \-playlist <filename>
1073 Play files according to a playlist file (ASX, Winamp, SMIL, or
1074 one-file-per-line format).
1076 .I WARNING:
1077 The way MPlayer parses and uses playlist files is not safe against
1078 maliciously constructed files.
1079 Such files may trigger harmful actions.
1080 This has been the case for all MPlayer versions, but unfortunately this
1081 fact was not well documented earlier, and some people have even misguidedly
1082 recommended use of -playlist with untrusted sources.
1083 Do NOT use -playlist with random internet sources or files you don't trust!
1085 .I NOTE:
1086 This option is considered an entry so options found after it will apply
1087 only to the elements of this playlist.
1089 FIXME: This needs to be clarified and documented thoroughly.
1092 .B \-rtc\-device <device>
1093 Use the specified device for RTC timing.
1096 .B \-shuffle
1097 Play files in random order.
1100 .B \-slave (also see \-input)
1101 Switches on slave mode, in which MPlayer works as a backend for other programs.
1102 Instead of intercepting keyboard events, MPlayer will read commands separated
1103 by a newline (\\n) from stdin.
1105 .I NOTE:
1106 See \-input cmdlist for a list of slave commands and DOCS/tech/slave.txt
1107 for their description.
1108 Also, this is not intended to disable other inputs, e.g.\& via the video window,
1109 use some other method like \-input nodefault\-bindings:conf=/dev/null for that.
1112 .B \-softsleep
1113 Time frames by repeatedly checking the current time instead of asking the
1114 kernel to wake up MPlayer at the correct time.
1115 Useful if your kernel timing is imprecise and you cannot use the RTC either.
1116 Comes at the price of higher CPU consumption.
1119 .B \-sstep <sec>
1120 Skip <sec> seconds after every frame.
1121 The normal framerate of the movie is kept, so playback is accelerated.
1122 Since MPlayer can only seek to the next keyframe this may be inexact.
1126 .SH "DEMUXER/STREAM OPTIONS"
1129 .B \-a52drc <level>
1130 Select the Dynamic Range Compression level for AC-3 audio streams.
1131 <level> is a float value ranging from 0 to 1, where 0 means no compression
1132 and 1 (which is the default) means full compression (make loud passages more
1133 silent and vice versa).
1134 Values up to 2 are also accepted, but are purely experimental.
1135 This option only shows an effect if the AC-3 stream contains the required range
1136 compression information.
1139 .B \-aid <ID> (also see \-alang)
1140 Select audio channel (MPEG: 0\-31, AVI/\:OGM: 1\-99, ASF/\:RM: 0\-127,
1141 VOB(AC-3): 128\-159, VOB(LPCM): 160\-191, MPEG-TS 17\-8190).
1142 MPlayer prints the available audio IDs when run in verbose (\-v) mode.
1143 When playing an MPEG-TS stream, MPlayer will use the first program (if present)
1144 with the chosen audio stream.
1147 .B \-ausid <ID> (also see \-alang)
1148 Select audio substream channel.
1149 Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled
1150 by the native demuxer (not by libavformat).
1151 The format type may not be correctly identified because of how this information
1152 (or lack thereof) is embedded in the stream, but it will demux correctly the
1153 audio streams when multiple substreams are present.
1154 MPlayer prints the available substream IDs when run with \-identify.
1157 .B \-alang <language code[,language code,...]> (also see \-aid)
1158 Specify a priority list of audio languages to use.
1159 Different container formats employ different language codes.
1160 DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT
1161 use ISO 639-2 three letter language codes while OGM uses a free-form identifier.
1162 MPlayer prints the available languages when run in verbose (\-v) mode.
1163 .sp 1
1164 .I EXAMPLE:
1165 .PD 0
1166 .RSs
1167 .IPs "mplayer dvd://1 \-alang hu,en"
1168 Chooses the Hungarian language track on a DVD and falls back on English if
1169 Hungarian is not available.
1170 .IPs "mplayer \-alang jpn example.mkv"
1171 Plays a Matroska file in Japanese.
1173 .PD 1
1176 .B \-audio\-demuxer <[+]name> (\-audiofile only)
1177 Force audio demuxer type for \-audiofile.
1178 Use a '+' before the name to force it, this will skip some checks!
1179 Give the demuxer name as printed by \-audio\-demuxer help.
1180 \-audio\-demuxer audio forces MP3.
1183 .B \-audiofile <filename>
1184 Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a
1185 movie.
1188 .B \-audiofile\-cache <kBytes>
1189 Enables caching for the stream used by \-audiofile, using the specified
1190 amount of memory.
1193 .B \-reuse\-socket (udp:// only)
1194 Allows a socket to be reused by other processes as soon as it is closed.
1197 .B \-bandwidth <Bytes> (network only)
1198 Specify the maximum bandwidth for network streaming (for servers that are
1199 able to send content in different bitrates).
1200 Useful if you want to watch live streamed media behind a slow connection.
1201 With Real RTSP streaming, it is also used to set the maximum delivery
1202 bandwidth allowing faster cache filling and stream dumping.
1205 .B \-bluray\-angle <angle ID> (Blu\-ray only)
1206 Some Blu\-ray discs contain scenes that can be viewed from multiple angles.
1207 Here you can tell MPlayer which angles to use (default: 1).
1210 .B \-bluray\-chapter <chapter ID> (Blu\-ray only)
1211 Tells MPlayer which Blu\-ray chapter to start the current title from (default: 1).
1214 .B \-bluray\-device <path to disc> (Blu\-ray only)
1215 Specify the Blu\-ray disc location. Must be a directory with Blu\-ray structure.
1218 .B \-cache <kBytes>
1219 This option specifies how much memory (in kBytes) to use when precaching a
1220 file or URL.
1221 Especially useful on slow media.
1224 .B \-nocache
1225 Turns off caching.
1228 .B \-cache\-min <percentage>
1229 Playback will start when the cache has been filled up to <percentage>
1230 of the total.
1233 .B \-cache\-seek\-min <percentage>
1234 If a seek is to be made to a position within <percentage> of the cache size
1235 from the current position, MPlayer will wait for the cache to be filled to
1236 this position rather than performing a stream seek (default: 50).
1239 .B \-capture
1240 Allows capturing the primary stream (not additional audio tracks or other
1241 kind of streams) into the file specified by \-dumpfile or \"stream.dump\"
1242 by default.
1243 If this option is given, capturing can be started and stopped by pressing
1244 the key bound to this function (see section INTERACTIVE CONTROL).
1245 Same as for \-dumpstream, this will likely not produce usable results for
1246 anything else than MPEG streams.
1247 Note that, due to cache latencies, captured data may begin and end
1248 somewhat delayed compared to what you see displayed.
1251 .B \-cdda <option1:option2> (CDDA only)
1252 This option can be used to tune the CD Audio reading feature of MPlayer.
1253 .sp 1
1254 Available options are:
1255 .RSs
1256 .IPs speed=<value>
1257 Set CD spin speed.
1258 .IPs paranoia=<0\-2>
1259 Set paranoia level.
1260 Values other than 0 seem to break playback of anything but the first track.
1261 .RSss
1262 0: disable checking (default)
1264 1: overlap checking only
1266 2: full data correction and verification
1267 .REss
1268 .IPs generic-dev=<value>
1269 Use specified generic SCSI device.
1270 .IPs sector-size=<value>
1271 Set atomic read size.
1272 .IPs overlap=<value>
1273 Force minimum overlap search during verification to <value> sectors.
1274 .IPs toc-bias
1275 Assume that the beginning offset of track 1 as reported in the TOC will be
1276 addressed as LBA 0.
1277 Some Toshiba drives need this for getting track boundaries correct.
1278 .IPs toc-offset=<value>
1279 Add <value> sectors to the values reported when addressing tracks.
1280 May be negative.
1281 .IPs (no)skip
1282 (Never) accept imperfect data reconstruction.
1286 .B \-cdrom\-device <path to device>
1287 Specify the CD-ROM device (default: /dev/\:cdrom).
1290 .B \-channels <number> (also see \-af channels)
1291 Request the number of playback channels (default: 2).
1292 MPlayer asks the decoder to decode the audio into as many channels as
1293 specified.
1294 Then it is up to the decoder to fulfill the requirement.
1295 This is usually only important when playing videos with AC-3 audio (like DVDs).
1296 In that case liba52 does the decoding by default and correctly downmixes the
1297 audio into the requested number of channels.
1298 To directly control the number of output channels independently of how many
1299 channels are decoded, use the channels filter.
1301 .I NOTE:
1302 This option is honored by codecs (AC-3 only), filters (surround) and audio
1303 output drivers (OSS at least).
1304 .sp 1
1305 Available options are:
1306 .sp 1
1307 .PD 0
1308 .RSs
1309 .IPs 2
1310 stereo
1311 .IPs 4
1312 surround
1313 .IPs 6
1314 full 5.1
1315 .IPs 8
1316 full 7.1
1318 .PD 1
1321 .B \-chapter <chapter ID>[\-<endchapter ID>] (dvd:// and dvdnav:// only)
1322 Specify which chapter to start playing at.
1323 Optionally specify which chapter to end playing at (default: 1).
1326 .B \-edition <edition ID> (Matroska only)
1327 Specify the edition (set of chapters) to use, where 0 is the first. If set to
1328 -1 (the default), MPlayer will choose the first edition declared as a default,
1329 or if there is no default, the first edition defined.
1332 .B \-cookies (network only)
1333 Send cookies when making HTTP requests.
1336 .B \-cookies\-file <filename> (network only)
1337 Read HTTP cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/)
1338 and skip reading from default locations.
1339 The file is assumed to be in Netscape format.
1342 .B \-delay <sec>
1343 audio delay in seconds (positive or negative float value)
1345 Negative values delay the audio, and positive values delay the video.
1348 .B \-ignore\-start
1349 Ignore the specified starting time for streams in AVI files.
1350 This nullifies stream delays.
1353 .B \-demuxer <[+]name>
1354 Force demuxer type.
1355 Use a '+' before the name to force it, this will skip some checks!
1356 Give the demuxer name as printed by \-demuxer help.
1359 .B \-dumpaudio
1360 Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/\:AC-3,
1361 in most other cases the resulting file will not be playable).
1362 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1363 on the command line only the last one will work.
1366 .B \-dumpfile <filename>
1367 Specify which file MPlayer should dump to.
1368 Should be used together with \-dumpaudio / \-dumpvideo / \-dumpstream /
1369 \-capture.
1372 .B \-dumpstream
1373 Dumps the raw stream to ./stream.dump.
1374 Useful when ripping from DVD or network.
1375 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1376 on the command line only the last one will work.
1379 .B \-dumpvideo
1380 Dump raw compressed video stream to ./stream.dump (not very usable).
1381 If you give more than one of \-dumpaudio, \-dumpvideo, \-dumpstream
1382 on the command line only the last one will work.
1385 .B \-dvbin <options> (DVB only)
1386 Pass the following parameters to the DVB input module, in order to override
1387 the default ones:
1388 .sp 1
1389 .PD 0
1390 .RSs
1391 .IPs card=<1\-4>
1392 Specifies using card number 1\-4 (default: 1).
1393 .IPs file=<filename>
1394 Instructs MPlayer to read the channels list from <filename>.
1395 Default is ~/.mplayer/\:channels.conf.{sat,ter,cbl,atsc} (based on your card type)
1396 or ~/.mplayer/\:channels.conf as a last resort.
1397 .IPs timeout=<1\-30>
1398 Maximum number of seconds to wait when trying to tune a
1399 frequency before giving up (default: 30).
1401 .PD 1
1404 .B \-dvd\-device <path to device> (DVD only)
1405 Specify the DVD device or .iso filename (default: /dev/\:dvd).
1406 You can also specify a directory that contains files previously copied directly
1407 from a DVD (with e.g.\& vobcopy).
1410 .B \-dvd\-speed <factor or speed in KB/s> (DVD only)
1411 Try to limit DVD speed (default: 0, no change).
1412 DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to
1413 10800KB/s.
1414 Slower speeds make the drive more quiet, for watching DVDs 2700KB/s should be
1415 quiet and fast enough.
1416 MPlayer resets the speed to the drive default value on close.
1417 Values less than 100 mean multiples of 1350KB/s, i.e.\& \-dvd\-speed 8 selects
1418 10800KB/s.
1420 .I NOTE:
1421 You need write access to the DVD device to change the speed.
1424 .B \-dvdangle <angle ID> (DVD only)
1425 Some DVD discs contain scenes that can be viewed from multiple angles.
1426 Here you can tell MPlayer which angles to use (default: 1).
1429 .B \-edl <filename>
1430 Enables edit decision list (EDL) actions during playback.
1431 Video will be skipped over and audio will be muted and unmuted according to
1432 the entries in the given file.
1433 See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details
1434 on how to use this.
1437 .B \-endpos <[[hh:]mm:]ss[.ms]> (also see \-ss and \-sb)
1438 Stop at given time.
1440 .I NOTE:
1441 When used in conjunction with \-ss option, \-endpos time will shift forward by
1442 seconds specified with \-ss.
1443 .sp 1
1444 .I EXAMPLE:
1445 .PD 0
1446 .RSs
1447 .IPs "\-endpos 56"
1448 Stop at 56 seconds.
1449 .IPs "\-endpos 01:10:00"
1450 Stop at 1 hour 10 minutes.
1451 .IPs "\-ss 10 \-endpos 56"
1452 Stop at 1 minute 6 seconds.
1454 .PD 1
1457 .B \-forceidx
1458 Force index rebuilding.
1459 Useful for files with broken index (A/V desync, etc).
1460 This will enable seeking in files where seeking was not possible.
1462 .I NOTE:
1463 This option only works if the underlying media supports seeking
1464 (i.e.\& not with stdin, pipe, etc).
1467 .B \-fps <float value>
1468 Override video framerate.
1469 Useful if the original value is wrong or missing.
1472 .B \-frames <number>
1473 Play/\:convert only first <number> frames, then quit.
1476 .B \-hr\-mp3\-seek (MP3 only)
1477 Hi-res MP3 seeking.
1478 Enabled when playing from an external MP3 file, as we need to seek
1479 to the very exact position to keep A/V sync.
1480 Can be slow especially when seeking backwards since it has to rewind
1481 to the beginning to find an exact frame position.
1484 .B \-idx (also see \-forceidx)
1485 Rebuilds index of files if no index was found, allowing seeking.
1486 Useful with broken/\:incomplete downloads, or badly created files.
1488 .I NOTE:
1489 This option only works if the underlying media supports seeking
1490 (i.e.\& not with stdin, pipe, etc).
1493 .B \-noidx
1494 Skip rebuilding index file.
1497 .B \-ipv4\-only\-proxy (network only)
1498 Skip the proxy for IPv6 addresses.
1499 It will still be used for IPv4 connections.
1502 .B \-loadidx <index file>
1503 The file from which to read the video index data saved by \-saveidx.
1504 This index will be used for seeking, overriding any index data
1505 contained in the AVI itself.
1506 MPlayer will not prevent you from loading an index file generated
1507 from a different AVI, but this is sure to cause unfavorable results.
1509 .I NOTE:
1510 This option is obsolete now that MPlayer has OpenDML support.
1513 .B \-mc <seconds/frame>
1514 maximum A-V sync correction per frame (in seconds)
1517 .B \-mf <option1:option2:...>
1518 Used when decoding from multiple PNG or JPEG files.
1519 .sp 1
1520 Available options are:
1521 .sp 1
1522 .PD 0
1523 .RSs
1524 .IPs w=<value>
1525 input file width (default: autodetect)
1526 .IPs h=<value>
1527 input file height (default: autodetect)
1528 .IPs fps=<value>
1529 output fps (default: 25)
1530 .IPs type=<value>
1531 input file type (available: jpeg, png, tga, sgi)
1533 .PD 1
1536 .B \-ni (AVI only)
1537 Force usage of non-interleaved AVI parser (fixes playback
1538 of some bad AVI files).
1541 .B \-nobps (AVI only)
1542 Do not use average byte/\:second value for A-V sync.
1543 Helps with some AVI files with broken header.
1546 .B \-noextbased
1547 Disables extension-based demuxer selection.
1548 By default, when the file type (demuxer) cannot be detected reliably
1549 (the file has no header or it is not reliable enough), the filename
1550 extension is used to select the demuxer.
1551 Always falls back on content-based demuxer selection.
1554 .B \-passwd <password> (also see \-user) (network only)
1555 Specify password for HTTP authentication.
1558 .B \-prefer\-ipv4 (network only)
1559 Use IPv4 on network connections.
1560 Falls back on IPv6 automatically.
1563 .B \-prefer\-ipv6 (IPv6 network only)
1564 Use IPv6 on network connections.
1565 Falls back on IPv4 automatically.
1568 .B \-psprobe <byte position>
1569 When playing an MPEG-PS or MPEG-PES streams, this option lets you specify
1570 how many bytes in the stream you want MPlayer to scan in order to identify
1571 the video codec used.
1572 This option is needed to play EVO or VDR files containing H.264 streams.
1575 .B \-pvr <option1:option2:...> (PVR only)
1576 This option tunes various encoding properties of the PVR capture module.
1577 It has to be used with any hardware MPEG encoder based card supported by the
1578 V4L2 driver.
1579 The Hauppauge WinTV PVR\-150/250/350/500 and all IVTV based
1580 cards are known as PVR capture cards.
1581 Be aware that only Linux 2.6.18 kernel
1582 and above is able to handle MPEG stream through V4L2 layer.
1583 For hardware capture of an MPEG stream and watching it with
1584 MPlayer, use 'pvr://' as a movie URL.
1585 .sp 1
1586 Available options are:
1587 .RSs
1588 .IPs aspect=<0\-3>
1589 Specify input aspect ratio:
1590 .RSss
1591 0: 1:1
1593 1: 4:3 (default)
1595 2: 16:9
1597 3: 2.21:1
1598 .REss
1599 .IPs arate=<32000\-48000>
1600 Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100
1601 and 48000 Hz).
1602 .IPs alayer=<1\-3>
1603 Specify MPEG audio layer encoding (default: 2).
1604 .IPs abitrate=<32\-448>
1605 Specify audio encoding bitrate in kbps (default: 384).
1606 .IPs amode=<value>
1607 Specify audio encoding mode.
1608 Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
1609 .IPs vbitrate=<value>
1610 Specify average video bitrate encoding in Mbps (default: 6).
1611 .IPs vmode=<value>
1612 Specify video encoding mode:
1613 .RSss
1614 vbr: Variable BitRate (default)
1616 cbr: Constant BitRate
1617 .REss
1618 .IPs vpeak=<value>
1619 Specify peak video bitrate encoding in Mbps
1620 (only useful for VBR encoding, default: 9.6).
1621 .IPs fmt=<value>
1622 Choose an MPEG format for encoding:
1623 .RSss
1624 ps:    MPEG-2 Program Stream (default)
1626 ts:    MPEG-2 Transport Stream
1628 mpeg1: MPEG-1 System Stream
1630 vcd:   Video CD compatible stream
1632 svcd:  Super Video CD compatible stream
1634 dvd:   DVD compatible stream
1635 .REss
1637 .PD 1
1640 .B \-radio <option1:option2:...> (radio only)
1641 These options set various parameters of the radio capture module.
1642 For listening to radio with MPlayer use 'radio://<frequency>'
1643 (if channels option is not given) or 'radio://<channel_number>'
1644 (if channels option is given) as a movie URL.
1645 You can see allowed frequency range by running MPlayer with '\-v'.
1646 To start the grabbing subsystem, use 'radio://<frequency or channel>/capture'.
1647 If the capture keyword is not given you can listen to radio
1648 using the line-in cable only.
1649 Using capture to listen is not recommended due to synchronization
1650 problems, which makes this process uncomfortable.
1651 .sp 1
1652 Available options are:
1653 .RSs
1654 .IPs device=<value>
1655 Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
1656 .IPs driver=<value>
1657 Radio driver to use (default: v4l2 if available, otherwise v4l).
1658 Currently, v4l and v4l2 drivers are supported.
1659 .IPs volume=<0..100>
1660 sound volume for radio device (default 100)
1661 .IPs "freq_min=<value> (*BSD BT848 only)"
1662 minimum allowed frequency (default: 87.50)
1663 .IPs "freq_max=<value> (*BSD BT848 only)"
1664 maximum allowed frequency (default: 108.00)
1665 .IPs channels=<frequency>\-<name>,<frequency>\-<name>,...
1666 Set channel list.
1667 Use _ for spaces in names (or play with quoting ;-).
1668 The channel names will then be written using OSD and the slave commands
1669 radio_step_channel and radio_set_channel will be usable for
1670 a remote control (see LIRC).
1671 If given, number in movie URL will be treated as channel position in
1672 channel list.
1674 .I EXAMPLE:
1675 radio://1, radio://104.4, radio_set_channel 1
1676 .IPs "adevice=<value> (radio capture only)"
1677 Name of device to capture sound from.
1678 Without such a name capture will be disabled,
1679 even if the capture keyword appears in the URL.
1680 For ALSA devices use it in the form hw=<card>.<device>.
1681 If the device name contains a '=', the module will use
1682 ALSA to capture, otherwise OSS.
1683 .IPs "arate=<value> (radio capture only)"
1684 Rate in samples per second (default: 44100).
1686 .I NOTE:
1687 When using audio capture set also \-rawaudio rate=<value> option
1688 with the same value as arate.
1689 If you have problems with sound speed (runs too quickly), try to play
1690 with different rate values (e.g.\& 48000,44100,32000,...).
1691 .IPs "achannels=<value> (radio capture only)"
1692 Number of audio channels to capture.
1696 .B \-rawaudio <option1:option2:...>
1697 This option lets you play raw audio files.
1698 You have to use \-demuxer rawaudio as well.
1699 It may also be used to play audio CDs which are not 44kHz 16-bit stereo.
1700 For playing raw AC-3 streams use \-rawaudio format=0x2000 \-demuxer rawaudio.
1701 .sp 1
1702 Available options are:
1703 .sp 1
1704 .PD 0
1705 .RSs
1706 .IPs channels=<value>
1707 number of channels
1708 .IPs rate=<value>
1709 rate in samples per second
1710 .IPs samplesize=<value>
1711 sample size in bytes
1712 .IPs bitrate=<value>
1713 bitrate for rawaudio files
1714 .IPs format=<value>
1715 fourcc in hex
1717 .PD 1
1720 .B \-rawvideo <option1:option2:...>
1721 This option lets you play raw video files.
1722 You have to use \-demuxer rawvideo as well.
1723 .sp 1
1724 Available options are:
1725 .sp 1
1726 .PD 0
1727 .RSs
1728 .IPs fps=<value>
1729 rate in frames per second (default: 25.0)
1730 .IPs sqcif|qcif|cif|4cif|pal|ntsc
1731 set standard image size
1732 .IPs w=<value>
1733 image width in pixels
1734 .IPs h=<value>
1735 image height in pixels
1736 .IPs i420|yv12|yuy2|y8
1737 set colorspace
1738 .IPs format=<value>
1739 colorspace (fourcc) in hex or string constant.
1740 Use \-rawvideo format=help for a list of possible strings.
1741 .IPs size=<value>
1742 frame size in Bytes
1743 .REss
1744 .sp 1
1746 .I EXAMPLE:
1748 .PD 0
1749 .RSs
1750 .IPs "mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif"
1751 Play the famous "foreman" sample video.
1752 .IPs "mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576"
1753 Play a raw YUV sample.
1755 .PD 1
1758 .B \-referrer <string> (network only)
1759 Specify a referrer path or URL for HTTP requests.
1762 .B \-rtsp\-port
1763 Used with 'rtsp://' URLs to force the client's port number.
1764 This option may be useful if you are behind a router and want to forward
1765 the RTSP stream from the server to a specific client.
1768 .B \-rtsp\-destination
1769 Used with 'rtsp://' URLs to force the destination IP address to be bound.
1770 This option may be useful with some RTSP server which do not
1771 send RTP packets to the right interface.
1772 If the connection to the RTSP server fails, use \-v to see
1773 which IP address MPlayer tries to bind to and try to force
1774 it to one assigned to your computer instead.
1777 .B \-rtsp\-stream\-over\-tcp (LIVE555 and NEMESI only)
1778 Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP
1779 packets be streamed over TCP (using the same TCP connection as RTSP).
1780 This option may be useful if you have a broken internet connection that does
1781 not pass incoming UDP packets (see http://www.live555.com/\:mplayer/).
1784 .B \-rtsp\-stream\-over\-http (LIVE555 only)
1785 Used with 'http://' URLs to specify that the resulting incoming RTP and RTCP
1786 packets be streamed over HTTP.
1789 .B \-saveidx <filename>
1790 Force index rebuilding and dump the index to <filename>.
1791 Currently this only works with AVI files.
1793 .I NOTE:
1794 This option is obsolete now that MPlayer has OpenDML support.
1797 .B \-sb <byte position> (also see \-ss)
1798 Seek to byte position.
1799 Useful for playback from CD-ROM images or VOB files with junk at the beginning.
1802 .B \-speed <0.01\-100>
1803 Slow down or speed up playback by the factor given as parameter.
1806 .B \-srate <Hz>
1807 Select the output sample rate to be used
1808 (of course sound cards have limits on this).
1809 If the sample frequency selected is different from that
1810 of the current media, the resample or lavcresample audio filter will be inserted
1811 into the audio filter layer to compensate for the difference.
1812 The type of resampling can be controlled by the \-af\-adv option.
1813 The default is fast resampling that may cause distortion.
1816 .B \-ss <time> (also see \-sb)
1817 Seek to given time position.
1818 .sp 1
1819 .I EXAMPLE:
1820 .PD 0
1821 .RSs
1822 .IPs "\-ss 56"
1823 Seeks to 56 seconds.
1824 .IPs "\-ss 01:10:00"
1825 Seeks to 1 hour 10 min.
1827 .PD 1
1830 .B \-tskeepbroken
1831 Tells MPlayer not to discard TS packets reported as broken in the stream.
1832 Sometimes needed to play corrupted MPEG-TS files.
1835 .B \-tsprobe <byte position>
1836 When playing an MPEG-TS stream, this option lets you specify how many
1837 bytes in the stream you want MPlayer to search for the desired
1838 audio and video IDs.
1841 .B \-tsprog <1\-65534>
1842 When playing an MPEG-TS stream, you can specify with this option which
1843 program (if present) you want to play.
1844 Can be used with \-vid and \-aid.
1847 .B \-tv <option1:option2:...> (TV/\:PVR only)
1848 This option tunes various properties of the TV capture module.
1849 For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>'
1850 or even 'tv://<channel_name> (see option channels for channel_name below)
1851 as a movie URL.
1852 You can also use 'tv:///<input_id>' to start watching a
1853 movie from a composite or S-Video input (see option input for details).
1854 .sp 1
1855 Available options are:
1856 .RSs
1857 .IPs noaudio
1858 no sound
1859 .IPs "automute=<0\-255> (v4l and v4l2 only)"
1860 If signal strength reported by device is less than this value,
1861 audio and video will be muted.
1862 In most cases automute=100 will be enough.
1863 Default is 0 (automute disabled).
1864 .IPs driver=<value>
1865 See \-tv driver=help for a list of compiled-in TV input drivers.
1866 available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
1867 .IPs device=<value>
1868 Specify TV device (default: /dev/\:video0).
1869 .I NOTE:
1870 For the bsdbt848 driver you can provide both bktr and tuner device
1871 names separating them with a comma, tuner after
1872 bktr (e.g.\& -tv device=/dev/bktr1,/dev/tuner1).
1873 .IPs input=<value>
1874 Specify input (default: 0 (TV), see console output for available inputs).
1875 .IPs freq=<value>
1876 Specify the frequency to set the tuner to (e.g.\& 511.250).
1877 Not compatible with the channels parameter.
1878 .IPs outfmt=<value>
1879 Specify the output format of the tuner with a preset value supported by the
1880 V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an
1881 arbitrary format given as hex value.
1882 Try outfmt=help for a list of all available formats.
1883 .IPs width=<value>
1884 output window width
1885 .IPs height=<value>
1886 output window height
1887 .IPs fps=<value>
1888 framerate at which to capture video (frames per second)
1889 .IPs buffersize=<value>
1890 maximum size of the capture buffer in megabytes (default: dynamical)
1891 .IPs norm=<value>
1892 For bsdbt848 and v4l, PAL, SECAM, NTSC are available.
1893 For v4l2, see the console output for a list of all available norms,
1894 also see the normid option below.
1895 .IPs "normid=<value> (v4l2 only)"
1896 Sets the TV norm to the given numeric ID.
1897 The TV norm depends on the capture card.
1898 See the console output for a list of available TV norms.
1899 .IPs channel=<value>
1900 Set tuner to <value> channel.
1901 .IPs chanlist=<value>
1902 available: argentina, australia, china-bcast, europe-east, europe-west, france,
1903 ireland, italy, japan-bcast, japan-cable, newzealand, russia, southafrica,
1904 us-bcast, us-cable, us-cable-hrc
1905 .IPs channels=<chan>\-<name>[=<norm>],<chan>\-<name>[=<norm>],...
1906 Set names for channels.
1907 .I NOTE:
1908 If <chan> is an integer greater than 1000, it will be treated as frequency (in kHz)
1909 rather than channel name from frequency table.
1911 Use _ for spaces in names (or play with quoting ;-).
1912 The channel names will then be written using OSD, and the slave commands
1913 tv_step_channel, tv_set_channel and tv_last_channel will be usable for
1914 a remote control (see LIRC).
1915 Not compatible with the frequency parameter.
1917 .I NOTE:
1918 The channel number will then be the position in the 'channels' list,
1919 beginning with 1.
1921 .I EXAMPLE:
1922 tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1
1923 .IPs [brightness|contrast|hue|saturation]=<\-100\-100>
1924 Set the image equalizer on the card.
1925 .IPs audiorate=<value>
1926 Set input audio sample rate.
1927 .IPs forceaudio
1928 Capture audio even if there are no audio sources reported by v4l.
1929 .IPs "alsa\ "
1930 Capture from ALSA.
1931 .IPs amode=<0\-3>
1932 Choose an audio mode:
1933 .RSss
1934 0: mono
1936 1: stereo
1938 2: language 1
1940 3: language 2
1941 .REss
1942 .IPs forcechan=<1\-2>
1943 By default, the count of recorded audio channels is determined automatically
1944 by querying the audio mode from the TV card.
1945 This option allows forcing stereo/\:mono recording regardless of the amode
1946 option and the values returned by v4l.
1947 This can be used for troubleshooting when the TV card is unable to report the
1948 current audio mode.
1949 .IPs adevice=<value>
1950 Set an audio device.
1951 <value> should be /dev/\:xxx for OSS and a hardware ID for ALSA.
1952 You must replace any ':' by a '.' in the hardware ID for ALSA.
1953 .IPs audioid=<value>
1954 Choose an audio output of the capture card, if it has more than one.
1955 .IPs "[volume|bass|treble|balance]=<0\-65535> (v4l1)"
1956 .IPs "[volume|bass|treble|balance]=<0\-100> (v4l2)"
1957 These options set parameters of the mixer on the video capture card.
1958 They will have no effect, if your card does not have one.
1959 For v4l2 50 maps to the default value of the
1960 control, as reported by the driver.
1961 .IPs "gain=<0\-100> (v4l2)"
1962 Set gain control for video devices (usually webcams) to the desired
1963 value and switch off automatic control.
1964 A value of 0 enables automatic control.
1965 If this option is omitted, gain control will not be modified.
1966 .IPs immediatemode=<bool>
1967 A value of 0 means capture and buffer audio and video together.
1968 A value of 1 (default) means to do video capture only and let the
1969 audio go through a loopback cable from the TV card to the sound card.
1970 .IPs mjpeg
1971 Use hardware MJPEG compression (if the card supports it).
1972 When using this option, you do not need to specify the width and height
1973 of the output window, because MPlayer will determine it automatically
1974 from the decimation value (see below).
1975 .IPs decimation=<1|2|4>
1976 choose the size of the picture that will be compressed by hardware
1977 MJPEG compression:
1978 .RSss
1979 1: full size
1980     704x576    PAL
1981     704x480    NTSC
1983 2: medium size
1984     352x288    PAL
1985     352x240    NTSC
1987 4: small size
1988     176x144    PAL
1989     176x120    NTSC
1990 .REss
1991 .IPs quality=<0\-100>
1992 Choose the quality of the JPEG compression
1993 (< 60 recommended for full size).
1994 .IPs tdevice=<value>
1995 Specify TV teletext device (example: /dev/\:vbi0) (default: none).
1996 .IPs tformat=<format>
1997 Specify TV teletext display format (default: 0):
1998 .RSss
1999 0: opaque
2001 1: transparent
2003 2: opaque with inverted colors
2005 3: transparent with inverted colors
2006 .REss
2007 .IPs tpage=<100\-899>
2008 Specify initial TV teletext page number (default: 100).
2009 .IPs tlang=<\-1\-127>
2010 Specify default teletext language code (default: 0), which will be used
2011 as primary language until a type 28 packet is received.
2012 Useful when the teletext system uses a non-latin character set, but language
2013 codes are not transmitted via teletext type 28 packets for some reason.
2014 To see a list of supported language codes set this option to \-1.
2015 .IPs "hidden_video_renderer (dshow only)"
2016 Terminate stream with video renderer instead of Null renderer (default: off).
2017 Will help if video freezes but audio does not.
2018 .I NOTE:
2019 May not work with \-vo directx and \-vf crop combination.
2020 .IPs "hidden_vp_renderer (dshow only)"
2021 Terminate VideoPort pin stream with video renderer
2022 instead of removing it from the graph (default: off).
2023 Useful if your card has a VideoPort pin and video is choppy.
2024 .I NOTE:
2025 May not work with \-vo directx and \-vf crop combination.
2026 .IPs "system_clock (dshow only)"
2027 Use the system clock as sync source instead of the default graph clock
2028 (usually the clock from one of the live sources in graph).
2029 .IPs "normalize_audio_chunks (dshow only)"
2030 Create audio chunks with a time length equal to
2031 video frame time length (default: off).
2032 Some audio cards create audio chunks about 0.5s in size, resulting in
2033 choppy video when using immediatemode=0.
2037 .B \-tvscan <option1:option2:...> (TV only)
2038 Tune the TV channel scanner.
2039 MPlayer will also print value for "-tv channels=" option,
2040 including existing and just found channels.
2041 .sp 1
2042 Available suboptions are:
2043 .RSs
2044 .IPs autostart
2045 Begin channel scanning immediately after startup (default: disabled).
2046 .IPs period=<0.1\-2.0>
2047 Specify delay in seconds before switching to next channel (default: 0.5).
2048 Lower values will cause faster scanning, but can detect
2049 inactive TV channels as active.
2050 .IPs threshold=<1\-100>
2051 Threshold value for the signal strength (in percent), as reported
2052 by the device (default: 50).
2053 A signal strength higher than this value will indicate that the
2054 currently scanning channel is active.
2058 .B \-user <username> (also see \-passwd) (network only)
2059 Specify username for HTTP authentication.
2062 .B \-user\-agent <string>
2063 Use <string> as user agent for HTTP streaming.
2066 .B \-vid <ID>
2067 Select video channel (MPG: 0\-15, ASF: 0\-255, MPEG-TS: 17\-8190).
2068 When playing an MPEG-TS stream, MPlayer will use the first program (if present)
2069 with the chosen video stream.
2072 .B \-vivo <suboption> (DEBUG CODE)
2073 Force audio parameters for the VIVO demuxer (for debugging purposes).
2074 FIXME: Document this.
2078 .SH "OSD/SUBTITLE OPTIONS"
2079 .I NOTE:
2080 Also see \-vf expand.
2083 .B \-ass, \-noass (FreeType only)
2084 Use libass to render all text subtitles.
2085 This enables support for the native styling of SSA/ASS subtitles,
2086 and also support for some styling features in other subtitle formats by
2087 conversion to ASS markup.
2088 Enabled by default if the player was compiled with libass support.
2090 .I NOTE:
2091 Some of the other subtitle options were written for the old non-libass
2092 subtitle rendering system and may not work the same way or at all with
2093 libass rendering enabled.
2096 .B \-ass\-border\-color <value>
2097 Sets the border (outline) color for text subtitles.
2098 The color format is RRGGBBAA.
2101 .B \-ass\-bottom\-margin <value>
2102 Adds a black band at the bottom of the frame.
2103 The SSA/ASS renderer can place subtitles there (with \-ass\-use\-margins).
2106 .B \-ass\-color <value>
2107 Sets the color for text subtitles.
2108 The color format is RRGGBBAA.
2111 .B \-ass\-font\-scale <value>
2112 Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
2115 .B \-ass\-force\-style <[Style.]Param=Value[,...]>
2116 Override some style or script info parameters.
2118 .I EXAMPLE:
2119 .PD 0
2120 .RSs
2121 \-ass\-force\-style FontName=Arial,Default.Bold=1
2123 \-ass\-force\-style PlayResY=768
2125 .PD 1
2128 .B \-ass\-hinting <type>
2129 Set hinting type.
2130 <type> can be:
2131 .PD 0
2132 .RSs
2133 .IPs 0
2134 no hinting
2135 .IPs 1
2136 FreeType autohinter, light mode
2137 .IPs 2
2138 FreeType autohinter, normal mode
2139 .IPs 3
2140 font native hinter
2141 .IPs "0-3 + 4"
2142 The same, but hinting will only be performed if the OSD is rendered at
2143 screen resolution and will therefore not be scaled.
2145 .RSs
2146 The default value is 5 (use light hinter for unscaled OSD and no hinting otherwise).
2148 .PD 1
2151 .B \-ass\-line\-spacing <value>
2152 Set line spacing value for SSA/ASS renderer.
2155 .B \-ass\-styles <filename>
2156 Load all SSA/ASS styles found in the specified file and use them for
2157 rendering text subtitles.
2158 The syntax of the file is exactly like the
2159 [V4 Styles] / [V4+ Styles] section of SSA/ASS.
2162 .B \-ass\-top\-margin <value>
2163 Adds a black band at the top of the frame.
2164 The SSA/ASS renderer can place toptitles there (with \-ass\-use\-margins).
2167 .B \-ass\-use\-margins
2168 Enables placing toptitles and subtitles in black borders when they
2169 are available.
2172 .B \-dumpjacosub
2173 Convert the given subtitle (specified with the \-sub option) to the time-based
2174 JACOsub subtitle format.
2175 Creates a dumpsub.js file in the current directory.
2178 .B \-dumpmicrodvdsub
2179 Convert the given subtitle (specified with the \-sub option) to the
2180 MicroDVD subtitle format.
2181 Creates a dumpsub.sub file in the current directory.
2184 .B \-dumpmpsub
2185 Convert the given subtitle (specified with the \-sub option) to MPlayer's
2186 subtitle format, MPsub.
2187 Creates a dump.mpsub file in the current directory.
2190 .B \-dumpsami
2191 Convert the given subtitle (specified with the \-sub option) to the time-based
2192 SAMI subtitle format.
2193 Creates a dumpsub.smi file in the current directory.
2196 .B \-dumpsrtsub
2197 Convert the given subtitle (specified with the \-sub option) to the time-based
2198 SubViewer (SRT) subtitle format.
2199 Creates a dumpsub.srt file in the current directory.
2201 .I NOTE:
2202 Some broken hardware players choke on SRT subtitle files with Unix
2203 line endings.
2204 If you are unlucky enough to have such a box, pass your subtitle
2205 files through unix2dos or a similar program to replace Unix line
2206 endings with DOS/Windows line endings.
2209 .B \-dumpsub (BETA CODE)
2210 Dumps the subtitle substream from VOB streams.
2211 Also see the \-dump*sub options.
2214 .B \-noembeddedfonts
2215 Disables use of fonts embedded in Matroska containers and ASS scripts (default: enabled).
2216 These fonts can be used for SSA/ASS subtitle
2217 rendering (\-ass option).
2220 .B \-ffactor <number>
2221 Resample the font alphamap.
2222 Can be:
2223 .PD 0
2224 .RSs
2225 .IPs 0
2226 plain white fonts
2227 .IPs 0.75
2228 very narrow black outline (default)
2229 .IPs 1
2230 narrow black outline
2231 .IPs 10
2232 bold black outline
2234 .PD 1
2237 .B \-flip\-hebrew (FriBiDi only)
2238 Turns on flipping subtitles using FriBiDi.
2241 .B \-noflip\-hebrew\-commas
2242 Change FriBiDi's assumptions about the placements of commas in subtitles.
2243 Use this if commas in subtitles are shown at the start of a sentence
2244 instead of at the end.
2247 .B \-font <path to font.desc file, path to font (FreeType), font pattern (Fontconfig)>
2248 Search for the OSD/\:SUB fonts in an alternative directory (default for normal
2249 fonts: ~/\:.mplayer/\:font/\:font.desc, default for FreeType fonts:
2250 ~/.mplayer/\:subfont.ttf).
2252 .I NOTE:
2253 With FreeType, this option determines the path to the text font file.
2254 With Fontconfig, this option determines the Fontconfig font pattern.
2255 .sp 1
2256 .I EXAMPLE:
2257 .PD 0
2258 .RSs
2259 \-font ~/\:.mplayer/\:arial-14/\:font.desc
2261 \-font ~/\:.mplayer/\:arialuni.ttf
2263 \-font 'Bitstream Vera Sans'
2265 \-font 'Bitstream Vera Sans:style=Bold'
2267 .PD 1
2270 .B \-fontconfig, \-nofontconfig (fontconfig only)
2271 Enables the use of fontconfig managed fonts. Enabled by default.
2274 .B \-forcedsubsonly
2275 Display only forced subtitles for the DVD subtitle stream selected by e.g.\&
2276 \-slang.
2279 .B \-fribidi\-charset <charset name> (FriBiDi only)
2280 Specifies the character set that will be passed to FriBiDi when
2281 decoding non-UTF-8 subtitles (default: ISO8859-8).
2284 .B \-ifo <VOBsub IFO file>
2285 Indicate the file that will be used to load palette and frame size for VOBsub
2286 subtitles.
2289 .B \-noautosub
2290 Turns off automatic subtitle file loading.
2293 .B \-osd\-duration <time>
2294 Set the duration of the OSD messages in ms (default: 1000).
2297 .B \-osdlevel <0\-3>
2298 Specifies which mode the OSD should start in.
2299 .PD 0
2300 .RSs
2301 .IPs 0
2302 subtitles only
2303 .IPs 1
2304 volume + seek (default)
2305 .IPs 2
2306 volume + seek + timer + percentage
2307 .IPs 3
2308 volume + seek + timer + percentage + total time
2310 .PD 1
2313 .B \-overlapsub
2314 Allows the next subtitle to be displayed while the current one is
2315 still visible (default is to enable the support only for specific
2316 formats).
2319 .B \-sid <ID> (also see \-slang, \-vobsubid)
2320 Display the subtitle stream specified by <ID> (0\-31).
2321 MPlayer prints the available subtitle IDs when run in verbose (\-v) mode.
2322 If you cannot select one of the subtitles on a DVD, also try \-vobsubid.
2325 .B \-nosub
2326 Disables any otherwise auto-selected internal subtitles (as e.g.\& the Matroska/mkv
2327 demuxer supports).
2328 Use \-noautosub to disable the loading of external subtitle files.
2331 .B \-slang <language code[,language code,...]> (also see \-sid)
2332 Specify a priority list of subtitle languages to use.
2333 Different container formats employ different language codes.
2334 DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2
2335 three letter language codes while OGM uses a free-form identifier.
2336 MPlayer prints the available languages when run in verbose (\-v) mode.
2337 .sp 1
2338 .I EXAMPLE:
2339 .PD 0
2340 .RSs
2341 .IPs "mplayer dvd://1 \-slang hu,en"
2342 Chooses the Hungarian subtitle track on a DVD and falls back on English if
2343 Hungarian is not available.
2344 .IPs "mplayer \-slang jpn example.mkv"
2345 Plays a Matroska file with Japanese subtitles.
2347 .PD 1
2350 .B \-spuaa <mode>
2351 Antialiasing/\:scaling mode for DVD/\:VOBsub.
2352 A value of 16 may be added to <mode> in order to force scaling even
2353 when original and scaled frame size already match.
2354 This can be employed to e.g.\& smooth subtitles with gaussian blur.
2355 Available modes are:
2356 .PD 0
2357 .RSs
2358 .IPs 0
2359 none (fastest, very ugly)
2360 .IPs 1
2361 approximate (broken?)
2362 .IPs 2
2363 full (slow)
2364 .IPs 3
2365 bilinear (default, fast and not too bad)
2366 .IPs 4
2367 uses swscaler gaussian blur (looks very good)
2369 .PD 1
2372 .B \-spualign <\-1\-2>
2373 Specify how SPU (DVD/\:VOBsub) subtitles should be aligned.
2374 .PD 0
2375 .RSs
2376 .IPs "\-1"
2377 original position
2378 .IPs " 0"
2379 Align at top (original behavior, default).
2380 .IPs " 1"
2381 Align at center.
2382 .IPs " 2"
2383 Align at bottom.
2385 .PD 1
2388 .B \-spugauss <0.0\-3.0>
2389 Variance parameter of gaussian used by \-spuaa 4.
2390 Higher means more blur (default: 1.0).
2393 .B \-sub <subtitlefile1,subtitlefile2,...>
2394 Use/\:display these subtitle files.
2395 Only one file can be displayed at the same time.
2398 .B \-sub\-bg\-alpha <0\-255>
2399 Specify the alpha channel value for subtitles and OSD backgrounds.
2400 Big values mean more transparency.
2401 0 means completely transparent.
2404 .B \-sub\-bg\-color <0\-255>
2405 Specify the color value for subtitles and OSD backgrounds.
2406 Currently subtitles are grayscale so this value is equivalent to the
2407 intensity of the color.
2408 255 means white and 0 black.
2411 .B \-sub\-demuxer <[+]name> (\-subfile only) (BETA CODE)
2412 Force subtitle demuxer type for \-subfile.
2413 Use a '+' before the name to force it, this will skip some checks!
2414 Give the demuxer name as printed by \-sub\-demuxer help.
2417 .B \-sub\-fuzziness <mode>
2418 Adjust matching fuzziness when searching for subtitles:
2419 .PD 0
2420 .RSs
2421 .IPs 0
2422 exact match
2423 .IPs 1
2424 Load all subs containing movie name.
2425 .IPs 2
2426 Load all subs in the current and \-sub\-paths directories.
2428 .PD 1
2431 .B \-sub\-no\-text\-pp
2432 Disables any kind of text post processing done after loading the subtitles.
2433 Used for debug purposes.
2436 .B \-subalign <0\-2>
2437 Specify which edge of the subtitles should be aligned at the height
2438 given by \-subpos.
2439 .PD 0
2440 .RSs
2441 .IPs 0
2442 Align subtitle top edge (original behavior).
2443 .IPs 1
2444 Align subtitle center.
2445 .IPs 2
2446 Align subtitle bottom edge (default).
2448 .PD 1
2451 .B "\-subcc <1\-4>\ "
2452 Display DVD Closed Caption (CC) subtitles from the specified channel.
2453 These are
2454 .B not
2455 the VOB subtitles, these are special ASCII subtitles for the
2456 hearing impaired encoded in the VOB userdata stream on most region 1 DVDs.
2457 CC subtitles have not been spotted on DVDs from other regions so far.
2460 .B \-subcp <codepage> (iconv only)
2461 If your system supports iconv(3), you can use this option to
2462 specify the subtitle codepage.
2463 .sp 1
2464 .I EXAMPLE:
2465 .PD 0
2466 .RSs
2467 \-subcp latin2
2469 \-subcp cp1250
2471 .PD 1
2474 .B \-subcp enca:<language>:<fallback codepage> (ENCA only)
2475 You can specify your language using a two letter language code to
2476 make ENCA detect the codepage automatically.
2477 If unsure, enter anything and watch mplayer \-v output for available
2478 languages.
2479 Fallback codepage specifies the codepage to use, when autodetection fails.
2480 .sp 1
2481 .I EXAMPLE:
2482 .PD 0
2483 .RSs
2484 .IPs "\-subcp enca:cs:latin2"
2485 Guess the encoding, assuming the subtitles are Czech, fall back on
2486 latin 2, if the detection fails.
2487 .IPs "\-subcp enca:pl:cp1250"
2488 Guess the encoding for Polish, fall back on cp1250.
2490 .PD 1
2493 .B \-sub\-paths <path1:path2:...>
2494 Specify extra directories where to search for subtitles matching the video.
2495 Multiple directories can be separated by ":" (";" on Windows).
2496 Paths can be relative or absolute.
2497 Relative paths are interpreted relative to video file directory.
2499 .sp 1
2500 .I EXAMPLE:
2501 Assuming that /path/\:to/\:movie/\:movie.avi is played and \-sub\-paths
2502 sub:subtitles:/tmp/subs is specified, MPlayer searches for subtitle files in
2503 these directories:
2504 .RSs
2505 /path/\:to/\:movie/
2507 /path/\:to/\:movie/\:sub/
2509 /path/\:to/\:movie/\:subtitles/
2511 /tmp/\:subs/
2513 ~/.mplayer/\:sub/
2515 .PD 1
2518 .B \-subdelay <sec>
2519 Delays subtitles by <sec> seconds.
2520 Can be negative.
2523 .B \-subfile <filename> (BETA CODE)
2524 Currently useless.
2525 Same as \-audiofile, but for subtitle streams (OggDS?).
2528 .B \-subfont <path to font (FreeType), font pattern (Fontconfig)> (FreeType only)
2529 Sets the subtitle font (see \-font).
2530 If no \-subfont is given, \-font is used.
2533 .B \-subfont\-autoscale <0\-3> (FreeType only)
2534 Sets the autoscale mode.
2536 .I NOTE:
2537 0 means that text scale and OSD scale are font heights in points.
2538 .sp 1
2539 The mode can be:
2540 .sp 1
2541 .PD 0
2542 .RSs
2543 .IPs 0
2544 no autoscale
2545 .IPs 1
2546 proportional to movie height
2547 .IPs 2
2548 proportional to movie width
2549 .IPs 3
2550 proportional to movie diagonal (default)
2552 .PD 1
2555 .B \-subfont\-blur <0\-8> (FreeType only)
2556 Sets the font blur radius (default: 2).
2559 .B \-subfont\-encoding <value> (FreeType only)
2560 Sets the font encoding.
2561 When set to 'unicode', all the glyphs from the font file will be rendered and
2562 unicode will be used (default: unicode).
2565 .B \-subfont\-osd\-scale <0\-100> (FreeType only)
2566 Sets the autoscale coefficient of the OSD elements (default: 6).
2569 .B \-subfont\-outline <0\-8> (FreeType only)
2570 Sets the font outline thickness (default: 2).
2573 .B \-subfont\-text\-scale <0\-100> (FreeType only)
2574 Sets the subtitle text autoscale coefficient as percentage of the
2575 screen size (default: 5).
2578 .B \-subfps <rate>
2579 Specify the framerate of the subtitle file (default: movie fps).
2581 .I NOTE:
2582 <rate> > movie fps speeds the subtitles up for frame-based subtitle files and
2583 slows them down for time-based ones.
2586 .B \-subpos <0\-100> (useful with \-vf expand)
2587 Specify the position of subtitles on the screen.
2588 The value is the vertical position of the subtitle in % of the screen height.
2591 .B \-subwidth <10\-100>
2592 Specify the maximum width of subtitles on the screen.
2593 Useful for TV-out.
2594 The value is the width of the subtitle in % of the screen width.
2597 .B \-noterm\-osd
2598 Disable the display of OSD messages on the console when no video output is
2599 available.
2602 .B \-term\-osd\-esc <escape sequence>
2603 Specify the escape sequence to use before writing an OSD message on the
2604 console.
2605 The escape sequence should move the pointer to the beginning of the line
2606 used for the OSD and clear it (default: ^[[A\\r^[[K).
2609 .B \-unicode
2610 Tells MPlayer to handle the subtitle file as unicode.
2613 .B \-unrarexec <path to unrar executable> (not supported on MingW)
2614 Specify the path to the unrar executable so MPlayer can use it to access
2615 rar-compressed VOBsub files (default: not set, so the feature is off).
2616 The path must include the executable's filename, i.e.\& /usr/local/bin/unrar.
2619 .B "\-utf8 \ \ "
2620 Tells MPlayer to handle the subtitle file as UTF-8.
2623 .B \-vobsub <VOBsub file without extension>
2624 Specify a VOBsub file to use for subtitles.
2625 Has to be the full pathname without extension, i.e.\& without
2626 the '.idx', '.ifo' or '.sub'.
2629 .B \-vobsubid <0\-31>
2630 Specify the VOBsub subtitle ID.
2634 .SH "AUDIO OUTPUT OPTIONS"
2637 .B \-abs <value> (\-ao oss only) (OBSOLETE)
2638 Override audio driver/\:card buffer size detection.
2641 .B \-format <format> (also see the format audio filter)
2642 Select the sample format used for output from the audio filter
2643 layer to the sound card.
2644 The values that <format> can adopt are listed below in the
2645 description of the format audio filter.
2648 .B \-gapless\-audio
2649 Try to play consecutive audio files with no silence or disruption
2650 at the point of file change.
2651 This feature is implemented in a simple manner and relies on audio output
2652 device buffering to continue playback while moving from one file to another.
2653 If playback of the new file starts slowly, for example because it's played from
2654 a remote network location or because you have specified cache settings that
2655 require time for the initial cache fill, then the buffered audio may run out
2656 before playback of the new file can start.
2659 .B \-mixer <device>
2660 Use a mixer device different from the default /dev/\:mixer.
2661 For ALSA this is the mixer name.
2664 .B \-mixer\-channel <mixer line>[,mixer index] (\-ao oss and \-ao alsa only)
2665 This option will tell MPlayer to use a different channel for controlling
2666 volume than the default PCM.
2667 Options for OSS include
2668 .B vol, pcm, line.
2669 For a complete list of options look for SOUND_DEVICE_NAMES in
2670 /usr/\:include/\:linux/\:soundcard.h.
2671 For ALSA you can use the names e.g.\& alsamixer displays, like
2672 .B Master, Line, PCM.
2674 .I NOTE:
2675 ALSA mixer channel names followed by a number must be specified in the
2676 <name,number> format, i.e.\& a channel labeled 'PCM 1' in alsamixer must
2677 be converted to
2678 .BR PCM,1 .
2681 .B \-softvol
2682 Force the use of the software mixer, instead of using the sound card
2683 mixer.
2686 .B \-softvol\-max <10.0\-10000.0>
2687 Set the maximum amplification level in percent (default: 110).
2688 A value of 200 will allow you to adjust the volume up to a maximum of
2689 double the current level.
2690 With values below 100 the initial volume (which is 100%) will be above
2691 the maximum, which e.g.\& the OSD cannot display correctly.
2694 .B \-volstep <0\-100>
2695 Set the step size of mixer volume changes in percent of the whole range
2696 (default: 3).
2699 .B \-volume <-1\-100> (also see \-af volume)
2700 Set the startup volume in the mixer, either hardware or software (if
2701 used with \-softvol).
2702 A value of -1 (the default) will not change the volume.
2706 .SH "AUDIO OUTPUT DRIVERS"
2707 Audio output drivers are interfaces to different audio output facilities.
2708 The syntax is:
2711 .B \-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
2712 Specify a priority list of audio output drivers to be used.
2714 If the list has a trailing ',' MPlayer will fall back on drivers not
2715 contained in the list.
2716 Suboptions are optional and can mostly be omitted.
2718 .I NOTE:
2719 See \-ao help for a list of compiled-in audio output drivers.
2720 .sp 1
2721 .I EXAMPLE:
2722 .PD 0
2723 .RSs
2724 .IPs "\-ao alsa,oss,"
2725 Try the ALSA driver, then the OSS driver, then others.
2726 .IPs "\-ao alsa:noblock:device=hw=0.3"
2727 Sets noblock-mode and the device-name as first card, fourth device.
2729 .PD 1
2730 .sp 1
2731 Available audio output drivers are:
2734 .B "alsa\ \ \ "
2735 ALSA 0.9/1.x audio output driver
2736 .PD 0
2737 .RSs
2738 .IPs noblock
2739 Sets noblock-mode.
2740 .IPs device=<device>
2741 Sets the device name.
2742 Replace any ',' with '.' and any ':' with '=' in the ALSA device name.
2743 For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless
2744 you really know how to set it correctly.
2746 .PD 1
2749 .B "alsa5\ \ "
2750 ALSA 0.5 audio output driver
2753 .B "oss\ \ \ \ "
2754 OSS audio output driver
2755 .PD 0
2756 .RSs
2757 .IPs <dsp-device>
2758 Sets the audio output device (default: /dev/\:dsp).
2759 .IPs <mixer-device>
2760 Sets the audio mixer device (default: /dev/\:mixer).
2761 .IPs <mixer-channel>
2762 Sets the audio mixer channel (default: pcm).
2764 .PD 1
2767 .B sdl (SDL only)
2768 highly platform independent SDL (Simple Directmedia Layer) library
2769 audio output driver
2770 .PD 0
2771 .RSs
2772 .IPs <driver>
2773 Explicitly choose the SDL audio driver to use (default: let SDL choose).
2775 .PD 1
2778 .B "arts\ \ \ "
2779 audio output through the aRts daemon
2782 .B "esd\ \ \ \ "
2783 audio output through the ESD daemon
2784 .PD 0
2785 .RSs
2786 .IPs <server>
2787 Explicitly choose the ESD server to use (default: localhost).
2789 .PD 1
2792 .B "jack\ \ \ \ "
2793 audio output through JACK (Jack Audio Connection Kit)
2794 .PD 0
2795 .RSs
2796 .IPs port=<name>
2797 Connects to the ports with the given name (default: physical ports).
2798 .IPs name=<client name>
2799 Client name that is passed to JACK (default: MPlayer [<PID>]).
2800 Useful if you want to have certain connections established automatically.
2801 .IPs (no)estimate
2802 Estimate the audio delay, supposed to make the video playback smoother
2803 (default: enabled).
2804 .IPs (no)autostart
2805 Automatically start jackd if necessary (default: disabled).
2806 Note that this seems unreliable and will spam stdout with server messages.
2808 .PD 1
2811 .B "nas\ \ \ \ "
2812 audio output through NAS
2815 .B coreaudio (Mac OS X only)
2816 native Mac OS X audio output driver
2817 .PD 0
2818 .RSs
2819 .IPs device_id=<id>
2820 ID of output device to use (0 = default device)
2821 .IPs help
2822 List all available output devices with their IDs.
2824 .PD 1
2827 .B "openal\ "
2828 Experimental OpenAL audio output driver
2831 .B "pulse\ \ "
2832 PulseAudio audio output driver
2833 .PD 0
2834 .RSs
2835 .IPs "[<host>][:<output sink>]"
2836 Specify the host and optionally output sink to use.
2837 An empty <host> string uses a local connection, "localhost"
2838 uses network transfer (most likely not what you want).
2840 .PD 1
2843 .B sgi (SGI only)
2844 native SGI audio output driver
2845 .PD 0
2846 .RSs
2847 .IPs "<output device name>"
2848 Explicitly choose the output device/\:interface to use
2849 (default: system-wide default).
2850 For example, 'Analog Out' or 'Digital Out'.
2852 .PD 1
2855 .B sun (Sun only)
2856 native Sun audio output driver
2857 .PD 0
2858 .RSs
2859 .IPs <device>
2860 Explicitly choose the audio device to use (default: /dev/\:audio).
2862 .PD 1
2865 .B win32 (Windows only)
2866 native Windows waveout audio output driver
2869 .B dsound (Windows only)
2870 DirectX DirectSound audio output driver
2871 .PD 0
2872 .RSs
2873 .IPs device=<devicenum>
2874 Sets the device number to use.
2875 Playing a file with \-v will show a list of available devices.
2877 .PD 1
2880 .B kai (OS/2 only)
2881 OS/2 KAI audio output driver
2882 .PD 0
2883 .RSs
2884 .IPs uniaud
2885 Force UNIAUD mode.
2886 .IPs dart
2887 Force DART mode.
2888 .IPs (no)share
2889 Open audio in shareable or exclusive mode.
2890 .IPs bufsize=<size>
2891 Set buffer size to <size> in samples (default: 2048).
2893 .PD 1
2896 .B dart (OS/2 only)
2897 OS/2 DART audio output driver
2898 .PD 0
2899 .RSs
2900 .IPs (no)share
2901 Open DART in shareable or exclusive mode.
2902 .IPs bufsize=<size>
2903 Set buffer size to <size> in samples (default: 2048).
2905 .PD 1
2908 .B ivtv (IVTV only)
2909 IVTV specific MPEG audio output driver.
2910 Works with \-ac hwmpa only.
2913 .B v4l2 (requires Linux 2.6.22+ kernel)
2914 Audio output driver for V4L2 cards with hardware MPEG decoder.
2917 .B mpegpes (DVB only)
2918 Audio output driver for DVB cards that writes the output to an MPEG-PES
2919 file if no DVB card is installed.
2920 .PD 0
2921 .RSs
2922 .IPs card=<1\-4>
2923 DVB card to use if more than one card is present.
2924 If not specified MPlayer will search the first usable card.
2925 .IPs file=<filename>
2926 output filename
2928 .PD 1
2931 .B "null\ \ \ "
2932 Produces no audio output but maintains video playback speed.
2933 Use \-nosound for benchmarking.
2936 .B "pcm\ \ \ \ "
2937 raw PCM/wave file writer audio output
2938 .PD 0
2939 .RSs
2940 .IPs (no)waveheader
2941 Include or do not include the wave header (default: included).
2942 When not included, raw PCM will be generated.
2943 .IPs file=<filename>
2944 Write the sound to <filename> instead of the default
2945 audiodump.wav.
2946 If nowaveheader is specified, the default is audiodump.pcm.
2947 .IPs "fast\ "
2948 Try to dump faster than realtime.
2949 Make sure the output does not get truncated (usually with
2950 "Too many video packets in buffer" message).
2951 It is normal that you get a "Your system is too SLOW to play this!" message.
2953 .PD 1
2956 .B "plugin\ \ "
2957 plugin audio output driver
2961 .SH "VIDEO OUTPUT OPTIONS"
2964 .B \-adapter <value>
2965 Set the graphics card that will receive the image.
2966 You can get a list of available cards when you run this option with \-v.
2967 Currently only works with the directx video output driver.
2970 .B \-bpp <depth>
2971 Override the autodetected color depth.
2972 Only supported by the fbdev, dga, svga, vesa video output drivers.
2975 .B \-border
2976 Play movie with window border and decorations.
2977 Since this is on by default, use \-noborder to disable the standard window
2978 decorations.
2981 .B \-brightness <\-100\-100>
2982 Adjust the brightness of the video signal (default: 0).
2983 Not supported by all video output drivers.
2986 .B \-contrast <\-100\-100>
2987 Adjust the contrast of the video signal (default: 0).
2988 Not supported by all video output drivers.
2991 .B \-display <name> (X11 only)
2992 Specify the hostname and display number of the X server you want to display
2994 .sp 1
2995 .I EXAMPLE:
2996 .PD 0
2997 .RSs
2998 \-display xtest.localdomain:0
3000 .PD 1
3003 .B "\-dr \ \ \ "
3004 Turns on direct rendering (not supported by all codecs and video outputs)
3006 .I WARNING:
3007 May cause OSD/SUB corruption!
3010 .B \-fbmode <modename> (\-vo fbdev only)
3011 Change video mode to the one that is labeled as <modename> in
3012 /etc/\:fb.modes.
3014 .I NOTE:
3015 VESA framebuffer does not support mode changing.
3018 .B \-fbmodeconfig <filename> (\-vo fbdev only)
3019 Override framebuffer mode configuration file (default: /etc/\:fb.modes).
3022 .B \-force\-window\-position
3023 Forcefully move MPlayer's video output window to default location whenever
3024 there is a change in video parameters, video stream or file.
3025 This used to be the default behavior.
3026 Currently only affects X11 VOs.
3029 .B \-fs (also see \-zoom)
3030 Fullscreen playback (centers movie, and paints black bands around it).
3031 Not supported by all video output drivers.
3034 .B \-fsmode\-dontuse <0\-31> (OBSOLETE, use the \-fs option)
3035 Try this option if you still experience fullscreen problems.
3038 .B \-fstype <type1,type2,...> (X11 only)
3039 Specify a priority list of fullscreen modes to be used.
3040 You can negate the modes by prefixing them with '\-'.
3041 If you experience problems like the fullscreen window being covered
3042 by other windows try using a different order.
3044 .I NOTE:
3045 See \-fstype help for a full list of available modes.
3046 .sp 1
3047 The available types are:
3048 .sp 1
3049 .PD 0
3050 .RSs
3051 .IPs above
3052 Use the _NETWM_STATE_ABOVE hint if available.
3053 .IPs below
3054 Use the _NETWM_STATE_BELOW hint if available.
3055 .IPs fullscreen
3056 Use the _NETWM_STATE_FULLSCREEN hint if available.
3057 .IPs layer
3058 Use the _WIN_LAYER hint with the default layer.
3059 .IPs layer=<0...15>
3060 Use the _WIN_LAYER hint with the given layer number.
3061 .IPs netwm
3062 Force NETWM style.
3063 .IPs "none\ "
3064 Clear the list of modes; you can add modes to enable afterward.
3065 .IPs stays_on_top
3066 Use _NETWM_STATE_STAYS_ON_TOP hint if available.
3067 .REss
3068 .sp 1
3070 .I EXAMPLE:
3072 .PD 0
3073 .RSs
3074 .IPs layer,stays_on_top,above,fullscreen
3075 Default order, will be used as a fallback if incorrect or
3076 unsupported modes are specified.
3077 .IPs \-fullscreen
3078 Fixes fullscreen switching on OpenBox 1.x.
3080 .PD 1
3083 .B \-geometry x[%][:y[%]] or [WxH][+-x+-y]
3084 Adjust where the output is on the screen initially.
3085 The x and y specifications are in pixels measured from the top-left of the
3086 screen to the top-left of the image being displayed, however if a percentage
3087 sign is given after the argument it turns the value into a percentage of the
3088 screen size in that direction.
3089 It also supports the standard X11 \-geometry option format, in which e.g.
3090 +10-50 means "place 10 pixels from the left border and 50 pixels from the lower
3091 border" and "--20+-10" means "place 20 pixels beyond the right and 10 pixels
3092 beyond the top border".
3093 If an external window is specified using the \-wid option, then the x and
3094 y coordinates are relative to the top-left corner of the window rather
3095 than the screen.
3096 The coordinates are relative to the screen given with \-xineramascreen for
3097 the video output drivers that fully support \-xineramascreen (direct3d, gl, gl2,
3098 vdpau, x11, xv, xvmc, corevideo).
3100 .I NOTE:
3101 May not be supported by some of the older VO drivers.
3102 .sp 1
3103 .I EXAMPLE:
3104 .PD 0
3105 .RSs
3106 .IPs 50:40
3107 Places the window at x=50, y=40.
3108 .IPs 50%:50%
3109 Places the window in the middle of the screen.
3110 .IPs "100%\ "
3111 Places the window at the middle of the right edge of the screen.
3112 .IPs 100%:100%
3113 Places the window at the bottom right corner of the screen.
3115 .PD 1
3118 .B \-hue <\-100\-100>
3119 Adjust the hue of the video signal (default: 0).
3120 You can get a colored negative of the image with this option.
3121 Not supported by all video output drivers.
3124 .B \-monitor\-dotclock <range[,range,...]> (\-vo fbdev and vesa only)
3125 Specify the dotclock or pixelclock range of the monitor.
3128 .B \-monitor\-hfreq <range[,range,...]> (\-vo fbdev and vesa only)
3129 Specify the horizontal frequency range of the monitor.
3132 .B \-monitor\-vfreq <range[,range,...]> (\-vo fbdev and vesa only)
3133 Specify the vertical frequency range of the monitor.
3136 .B \-monitoraspect <ratio> (also see \-aspect)
3137 Set the aspect ratio of your monitor or TV screen.
3138 A value of 0 disables a previous setting (e.g.\& in the config file).
3139 Overrides the \-monitorpixelaspect setting if enabled.
3140 .sp 1
3141 .I EXAMPLE:
3142 .PD 0
3143 .RSs
3144 \-monitoraspect 4:3  or 1.3333
3146 \-monitoraspect 16:9 or 1.7777
3148 .PD 1
3151 .B \-monitorpixelaspect <ratio> (also see \-aspect)
3152 Set the aspect of a single pixel of your monitor or TV screen (default: 1).
3153 A value of 1 means square pixels
3154 (correct for (almost?) all LCDs).
3157 .B \-name (X11 only)
3158 Set the window class name.
3161 .B \-nodouble
3162 Disables double buffering, mostly for debugging purposes.
3163 Double buffering fixes flicker by storing two frames in memory, and
3164 displaying one while decoding another.
3165 It can affect OSD negatively, but often removes OSD flickering.
3168 .B \-nograbpointer
3169 Do not grab the mouse pointer after a video mode change (\-vm).
3170 Useful for multihead setups.
3173 .B \-nokeepaspect
3174 Do not keep window aspect ratio when resizing windows.
3175 By default MPlayer tries to keep the correct video aspect ratio by
3176 instructing the window manager to maintain window aspect when resizing,
3177 and by adding black bars if the window manager nevertheless allows
3178 window shape to change.
3179 This option disables window manager aspect hints and scales the video
3180 to completely fill the window without regard for aspect ratio.
3183 .B "\-ontop\ "
3184 Makes the player window stay on top of other windows.
3185 Supported by video output drivers which use X11, except SDL,
3186 as well as directx, corevideo, quartz, ggi and gl2.
3189 .B \-panscan <0.0\-1.0>
3190 Enables pan-and-scan functionality (cropping the sides of e.g.\& a 16:9
3191 movie to make it fit a 4:3 display without black bands).
3192 The range controls how much of the image is cropped.
3193 May not work with all video output drivers.
3195 .I NOTE:
3196 Values between \-1 and 0 are allowed as well, but highly experimental
3197 and may crash or worse.
3198 Use at your own risk!
3201 .B \-panscanrange <\-19.0\-99.0> (experimental)
3202 Change the range of the pan-and-scan functionality (default: 1).
3203 Positive values mean multiples of the default range.
3204 Negative numbers mean you can zoom in up to a factor of \-panscanrange+1.
3205 E.g.\& \-panscanrange \-3 allows a zoom factor of up to 4.
3206 This feature is experimental.
3207 Do not report bugs unless you are using \-vo gl.
3210 .B \-refreshrate <Hz>
3211 Set the monitor refreshrate in Hz.
3212 Currently only supported by \-vo directx combined with the \-vm option.
3215 .B \-rootwin
3216 Play movie in the root window (desktop background).
3217 Desktop background images may cover the movie window, though.
3218 May not work with all video output drivers.
3221 .B \-saturation <\-100\-100>
3222 Adjust the saturation of the video signal (default: 0).
3223 You can get grayscale output with this option.
3224 Not supported by all video output drivers.
3227 .B \-screenh <pixels>
3228 Specify the screen height for video output drivers which
3229 do not know the screen resolution like fbdev, x11 and TV-out.
3232 .B \-screenw <pixels>
3233 Specify the screen width for video output drivers which
3234 do not know the screen resolution like fbdev, x11 and TV-out.
3237 .B \-stop\-xscreensaver (X11 only)
3238 Turns off xscreensaver at startup and turns it on again on exit.
3239 If your screensaver supports neither the XSS nor XResetScreenSaver
3240 API please use \-heartbeat\-cmd instead.
3243 .B \-title (also see \-use\-filename\-title)
3244 Set the window title.
3245 Supported by X11-based video output drivers.
3248 .B \-use\-filename\-title (also see \-title)
3249 Set the window title using the media filename, when not set with \-title.
3250 Supported by X11-based video output drivers.
3253 .B "\-vm \ \ \ "
3254 Try to change to a different video mode.
3255 Supported by the dga, x11, xv, sdl and directx video output drivers.
3256 If used with the directx video output driver the \-screenw,
3257 \-screenh, \-bpp and \-refreshrate options can be used to set
3258 the new display mode.
3261 .B "\-vsync \ \ "
3262 Enables VBI for the vesa, dfbmga and svga video output drivers.
3265 .B \-wid <window ID> (X11, OpenGL and DirectX only)
3266 This tells MPlayer to attach to an existing window.
3267 Useful to embed MPlayer in a browser (e.g.\& the plugger extension).
3268 This option fills the given window completely, thus aspect scaling,
3269 panscan, etc are no longer handled by MPlayer but must be managed by the
3270 application that created the window.
3273 .B \-xineramascreen <\-2\-...>
3274 In Xinerama configurations (i.e.\& a single desktop that spans across multiple
3275 displays) this option tells MPlayer which screen to display the movie on.
3276 A value of \-2 means fullscreen across the whole virtual display (in this case
3277 Xinerama information is completely ignored), \-1 means
3278 fullscreen on the display the window currently is on.
3279 The initial position set via the \-geometry option is relative to the
3280 specified screen.
3281 Will usually only work with "\-fstype \-fullscreen" or "\-fstype none".
3282 This option is not suitable to only set the startup screen (because
3283 it will always display on the given screen in fullscreen mode),
3284 \-geometry is the best that is available for that purpose
3285 currently.
3286 Supported by at least the direct3d, gl, gl2, x11, xv and corevideo video output
3287 drivers.
3291 .SH "VIDEO OUTPUT DRIVERS"
3292 Video output drivers are interfaces to different video output facilities.
3293 The syntax is:
3296 .B \-vo <driver1[:suboption1[=value]:...],driver2,...[,]>
3297 Specify a priority list of video output drivers to be used.
3299 If the list has a trailing ',' MPlayer will fall back on drivers not
3300 contained in the list.
3301 Suboptions are optional and can mostly be omitted.
3303 .I NOTE:
3304 See \-vo help for a list of compiled-in video output drivers.
3305 .sp 1
3306 .I EXAMPLE:
3307 .PD 0
3308 .RSs
3309 .IPs "\-vo xmga,xv,"
3310 Try the Matrox X11 driver, then the Xv driver, then others.
3311 .IPs "\-vo directx:noaccel"
3312 Uses the DirectX driver with acceleration features turned off.
3314 .PD 1
3315 .sp 1
3316 Available video output drivers are:
3319 .B xv (X11 only)
3320 Uses the XVideo extension of XFree86 4.x to enable hardware
3321 accelerated playback.
3322 If you cannot use a hardware specific driver, this is probably
3323 the best option.
3324 For information about what colorkey is used and how it is drawn run MPlayer
3325 with \-v option and look out for the lines tagged with [xv common] at the
3326 beginning.
3327 .PD 0
3328 .RSs
3329 .IPs adaptor=<number>
3330 Select a specific XVideo adaptor (check xvinfo results).
3331 .IPs port=<number>
3332 Select a specific XVideo port.
3333 .IPs ck=<cur|use|set>
3334 Select the source from which the colorkey is taken (default: cur).
3335 .RSss
3336 .IPs cur
3337 The default takes the colorkey currently set in Xv.
3338 .IPs use
3339 Use but do not set the colorkey from MPlayer (use \-colorkey option to change
3340 it).
3341 .IPs set
3342 Same as use but also sets the supplied colorkey.
3344 .IPs ck-method=<man|bg|auto>
3345 Sets the colorkey drawing method (default: man).
3346 .RSss
3347 .IPs man
3348 Draw the colorkey manually (reduces flicker in some cases).
3349 .IPs bg
3350 Set the colorkey as window background.
3351 .IPs auto
3352 Let Xv draw the colorkey.
3355 .PD 1
3358 .B x11 (X11 only)
3359 Shared memory video output driver without hardware acceleration that
3360 works whenever X11 is present.
3363 .B xover (X11 only)
3364 Adds X11 support to all overlay based video output drivers.
3365 Currently only supported by tdfx_vid.
3366 .PD 0
3367 .RSs
3368 .IPs <vo_driver>
3369 Select the driver to use as source to overlay on top of X11.
3371 .PD 1
3374 .B vdpau (X11 only)
3375 Uses the VDPAU interface to display and optionally also decode video.
3376 Hardware decoding is used with \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau, ffh264vdpau or ffodivxvdpau.
3377 .PD 0
3378 .RSs
3379 .IPs sharpen=<\-1\-1>
3380 For positive values, apply a sharpening algorithm to the video,
3381 for negative values a blurring algorithm (default: 0).
3382 .IPs denoise=<0\-1>
3383 Apply a noise reduction algorithm to the video (default: 0, no noise reduction).
3384 .IPs deint=<-4\-4>
3385 Select deinterlacing mode (default: -3).
3386 Positive values choose mode and enable deinterlacing.
3387 Corresponding negative values select the same deinterlacing mode,
3388 but do not enable deinterlacing on startup (useful in configuration files
3389 to specify what mode will be enabled by the "D" key).
3390 All modes respect \-field\-dominance.
3391 .RSss
3392 .IPs 0
3393 same as -3
3394 .IPs 1
3395 Show only first field, similar to \-vf field.
3396 .IPs 2
3397 Bob deinterlacing, similar to \-vf tfields=1.
3398 .IPs 3
3399 motion adaptive temporal deinterlacing.
3400 May lead to A/V desync with slow video hardware and/or high resolution.
3401 .IPs 4
3402 motion adaptive temporal deinterlacing with edge-guided spatial interpolation.
3403 Needs fast video hardware.
3405 .IPs chroma\-deint
3406 Makes temporal deinterlacers operate both on luma and chroma (default).
3407 Use nochroma\-deint to solely use luma and speed up advanced deinterlacing.
3408 Useful with slow video memory.
3409 .IPs pullup
3410 Try to apply inverse telecine, needs motion adaptive temporal deinterlacing.
3411 .IPs colorspace=<0-3>
3412 Select the color space for YUV to RGB conversion.
3413 In general BT.601 should be used for standard definition (SD) content and
3414 BT.709 for high definition (HD) content.
3415 Using incorrect color space results in slightly under or over saturated and
3416 shifted colors.
3417 .RSss
3418 .IPs 0
3419 Guess the color space based on video resolution.
3420 Video with width >= 1280 or height > 576 is assumed to be HD and BT.709 color
3421 space will be used.
3422 .IPs 1
3423 Use ITU-R BT.601 color space (default).
3424 .IPs 2
3425 Use ITU-R BT.709 color space.
3426 .IPs 3
3427 Use SMPTE-240M color space.
3429 .IPs hqscaling=<0-9>
3430 .RSss
3431 .IPs 0
3432 Use default VDPAU scaling (default).
3433 .IPs 1\-9
3434 Apply high quality VDPAU scaling (needs capable hardware).
3436 .IPs studio
3437 Output video in studio level RGB (16-235).
3438 This is what TVs and video monitors generally expect.
3439 By default PC level RGB (0-255) suitable for PC monitors is used.
3440 Providing studio level output to a device expecting PC level input results in
3441 grey blacks and dim whites, the reverse in crushed blacks and whites.
3442 .IPs fps=<number>
3443 Override autodetected display refresh rate value (the value is needed for framedrop to allow video playback rates higher than display refresh rate, and for vsync-aware frame timing adjustments).
3444 Default 0 means use autodetected value.
3445 A positive value is interpreted as a refresh rate in Hz and overrides the autodetected value.
3446 A negative value disables all timing adjustment and framedrop logic.
3447 .IPs queuetime_windowed=<number>
3448 .IPs queuetime_fs=<number>
3449 Use VDPAU's presentation queue functionality to queue future video frame
3450 changes at most this many milliseconds in advance (default: 50).
3451 See below for additional information.
3452 .IPs output_surfaces=<2-15>
3453 Allocate this many output surfaces to display video frames (default: 3).
3454 See below for additional information.
3457 .sp 1
3458 Using the VDPAU frame queueing functionality controlled by the queuetime
3459 options makes MPlayer's frame flip timing less sensitive to system CPU load
3460 and allows MPlayer to start decoding the next frame(s) slightly earlier
3461 which can reduce jitter caused by individual slow-to-decode frames.
3462 However the NVIDIA graphics drivers can make other window behavior such as
3463 window moves choppy if VDPAU is using the blit queue (mainly happens
3464 if you have the composite extension enabled) and this feature is active.
3465 If this happens on your system and it bothers you then you can set the
3466 queuetime value to 0 to disable this feature.
3467 The settings to use in windowed and fullscreen mode are separate because there
3468 should be less reason to disable this for fullscreen mode (as the driver issue
3469 shouldn't affect the video itself).
3470 .sp 1
3471 You can queue more frames ahead by increasing the queuetime values and the
3472 output_surfaces count (to ensure enough surfaces to buffer video for a
3473 certain time ahead you need at least as many surfaces as the video has
3474 frames during that time, plus two).
3475 This could help make video smoother in some cases.
3476 The main downsides are increased video RAM requirements for the surfaces
3477 and laggier display response to user commands (display changes only become
3478 visible some time after they're queued). The graphics driver implementation may
3479 also have limits on the length of maximum queuing time or number of queued
3480 surfaces that work well or at all.
3482 .PD 1
3485 .B xvmc (X11 with \-vc ffmpeg12mc only)
3486 Video output driver that uses the XvMC (X Video Motion Compensation)
3487 extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 decoding.
3488 .PD 0
3489 .RSs
3490 .IPs adaptor=<number>
3491 Select a specific XVideo adaptor (check xvinfo results).
3492 .IPs port=<number>
3493 Select a specific XVideo port.
3494 .IPs (no)benchmark
3495 Disables image display.
3496 Necessary for proper benchmarking of drivers that change
3497 image buffers on monitor retrace only (nVidia).
3498 Default is not to disable image display (nobenchmark).
3499 .IPs (no)bobdeint
3500 Very simple deinterlacer.
3501 Might not look better than \-vf tfields=1,
3502 but it is the only deinterlacer for xvmc (default: nobobdeint).
3503 .IPs (no)queue
3504 Queue frames for display to allow more parallel work of the video hardware.
3505 May add a small (not noticeable) constant A/V desync (default: noqueue).
3506 .IPs (no)sleep
3507 Use sleep function while waiting for rendering to finish
3508 (not recommended on Linux) (default: nosleep).
3509 .IPs ck=cur|use|set
3510 Same as \-vo xv:ck (see \-vo xv).
3511 .IPs ck-method=man|bg|auto
3512 Same as \-vo xv:ck-method (see \-vo xv).
3514 .PD 1
3517 .B dga (X11 only)
3518 Play video through the XFree86 Direct Graphics Access extension.
3519 Considered obsolete.
3522 .B sdl (SDL only, buggy/outdated)
3523 Highly platform independent SDL (Simple Directmedia Layer) library
3524 video output driver.
3525 Since SDL uses its own X11 layer, MPlayer X11 options do not have
3526 any effect on SDL.
3527 Note that it has several minor bugs (\-vm/\-novm is mostly ignored,
3528 \-fs behaves like \-novm should, window is in top-left corner when
3529 returning from fullscreen, panscan is not supported, ...).
3530 .PD 0
3531 .RSs
3532 .IPs driver=<driver>
3533 Explicitly choose the SDL driver to use.
3534 .IPs (no)forcexv
3535 Use XVideo through the sdl video output driver (default: forcexv).
3536 .IPs (no)hwaccel
3537 Use hardware accelerated scaler (default: hwaccel).
3539 .PD 1
3542 .B direct3d (Windows only) (BETA CODE!)
3543 Video output driver that uses the Direct3D interface (useful for Vista).
3546 .B directx (Windows only)
3547 Video output driver that uses the DirectX interface.
3548 .PD 0
3549 .RSs
3550 .IPs noaccel
3551 Turns off hardware acceleration.
3552 Try this option if you have display problems.
3554 .PD 1
3557 .B kva (OS/2 only)
3558 Video output driver that uses the libkva interface.
3559 .PD 0
3560 .RSs
3561 .IPs snap
3562 Force SNAP mode.
3563 .IPs wo
3564 Force WarpOverlay! mode.
3565 .IPs dive
3566 Force DIVE mode.
3567 .IPs (no)t23
3568 Enable or disable workaround for T23 laptop (default: disabled).
3569 Try to enable this option if your video card supports upscaling only.
3571 .PD 1
3574 .B quartz (Mac OS X only)
3575 Mac OS X Quartz video output driver.
3576 Under some circumstances, it might be more efficient to force a
3577 packed YUV output format, with e.g.\& \-vf format=yuy2.
3578 .PD 0
3579 .RSs
3580 .IPs device_id=<number>
3581 Choose the display device to use in fullscreen.
3582 .IPs fs_res=<width>:<height>
3583 Specify the fullscreen resolution (useful on slow systems).
3585 .PD 1
3588 .B corevideo (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
3589 Mac OS X CoreVideo video output driver
3590 .PD 0
3591 .RSs
3592 .IPs device_id=<number>
3593 Choose the display device to use for fullscreen or set it to \-1 to
3594 always use the same screen the video window is on (default: \-1 \- auto).
3595 .IPs shared_buffer
3596 Write output to a shared memory buffer instead of displaying it and
3597 try to open an existing NSConnection for communication with a GUI.
3598 .IPs buffer_name=<name>
3599 Name of the shared buffer created with shm_open as well as the name of
3600 the NSConnection MPlayer will try to open (default: "mplayerosx").
3601 Setting buffer_name implicitly enables shared_buffer.
3603 .PD 1
3606 .B fbdev (Linux only)
3607 Uses the kernel framebuffer to play video.
3608 .PD 0
3609 .RSs
3610 .IPs <device>
3611 Explicitly choose the fbdev device name to use (e.g.\& /dev/\:fb0).
3613 .PD 1
3616 .B fbdev2 (Linux only)
3617 Uses the kernel framebuffer to play video,
3618 alternative implementation.
3619 .PD 0
3620 .RSs
3621 .IPs <device>
3622 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
3624 .PD 1
3627 .B "vesa\ \ \ "
3628 Very general video output driver that should work on any VESA VBE 2.0
3629 compatible card.
3630 .PD 0
3631 .RSs
3632 .IPs (no)dga
3633 Turns DGA mode on or off (default: on).
3634 .IPs neotv_pal
3635 Activate the NeoMagic TV out and set it to PAL norm.
3636 .IPs neotv_ntsc
3637 Activate the NeoMagic TV out and set it to NTSC norm.
3638 .IPs "lvo:\ \ \ "
3639 Activate the Linux Video Overlay on top of VESA mode.
3641 .PD 1
3644 .B "svga\ \ \ "
3645 Play video using the SVGA library.
3646 .PD 0
3647 .RSs
3648 .IPs "<video mode>"
3649 Specify video mode to use.
3650 The mode can be given in a <width>x<height>x<colors> format,
3651 e.g.\& 640x480x16M or be a graphics mode number, e.g.\& 84.
3652 .IPs bbosd
3653 Draw OSD into black bands below the movie (slower).
3654 .IPs native
3655 Use only native drawing functions.
3656 This avoids direct rendering, OSD and hardware acceleration.
3657 .IPs retrace
3658 Force frame switch on vertical retrace.
3659 Usable only with \-double.
3660 It has the same effect as the \-vsync option.
3661 .IPs "sq\ \ \ "
3662 Try to select a video mode with square pixels.
3664 .PD 1
3667 .B "gl\ \ \ \ \ "
3668 OpenGL video output driver, simple version.
3669 Video size must be smaller than
3670 the maximum texture size of your OpenGL implementation.
3671 Intended to work even with the most basic OpenGL implementations,
3672 but also makes use of newer extensions, which allow support for more
3673 colorspaces and direct rendering.
3674 For optimal speed try adding the options
3676 \-dr \-noslices
3678 The code performs very few checks, so if a feature does not work, this
3679 might be because it is not supported by your card/OpenGL implementation
3680 even if you do not get any error message.
3681 Use glxinfo or a similar tool to display the supported OpenGL extensions.
3682 .PD 0
3683 .RSs
3684 .IPs (no)ati\-hack
3685 ATI drivers may give a corrupted image when PBOs are used (when using \-dr
3686 or force\-pbo).
3687 This option fixes this, at the expense of using a bit more memory.
3688 .IPs (no)force\-pbo
3689 Always uses PBOs to transfer textures even if this involves an extra copy.
3690 Currently this gives a little extra speed with NVidia drivers and a lot more
3691 speed with ATI drivers.
3692 May need \-noslices and the ati\-hack suboption to work correctly.
3693 .IPs (no)scaled-osd
3694 Changes the way the OSD behaves when the size of the
3695 window changes (default: disabled).
3696 When enabled behaves more like the other video output drivers,
3697 which is better for fixed-size fonts.
3698 Disabled looks much better with FreeType fonts and uses the
3699 borders in fullscreen mode.
3700 Does not work correctly with ass subtitles (see \-ass), you can instead
3701 render them without OpenGL support via \-vf ass.
3702 .IPs osdcolor=<0xAARRGGBB>
3703 Color for OSD (default: 0x00ffffff, corresponds to non-transparent white).
3704 .IPs rectangle=<0,1,2>
3705 Select usage of rectangular textures which saves video RAM, but often is
3706 slower (default: 0).
3707 .RSss
3708 0: Use power-of-two textures (default).
3710 1: Use the GL_ARB_texture_rectangle extension.
3712 2: Use the GL_ARB_texture_non_power_of_two extension.
3713 In some cases only supported in software and thus very slow.
3715 .IPs swapinterval=<n>
3716 Minimum interval between two buffer swaps, counted in
3717 displayed frames (default: 1).
3718 1 is equivalent to enabling VSYNC, 0 to disabling VSYNC.
3719 Values below 0 will leave it at the system default.
3720 This limits the framerate to (horizontal refresh rate / n).
3721 Requires GLX_SGI_swap_control support to work.
3722 With some (most/all?) implementations this only works in fullscreen mode.
3723 .IPs ycbcr
3724 Use the GL_MESA_ycbcr_texture extension to convert YUV to RGB.
3725 In most cases this is probably slower than doing software conversion to RGB.
3726 .IPs yuv=<n>
3727 Select the type of YUV to RGB conversion.
3728 The default is auto-detection deciding between values 0 and 2.
3729 .RSss
3730 0: Use software conversion.
3731 Compatible with all OpenGL versions.
3732 Provides brightness, contrast and saturation control.
3734 1: Use register combiners.
3735 This uses an nVidia-specific extension (GL_NV_register_combiners).
3736 At least three texture units are needed.
3737 Provides saturation and hue control.
3738 This method is fast but inexact.
3740 2: Use a fragment program.
3741 Needs the GL_ARB_fragment_program extension and at least three texture units.
3742 Provides brightness, contrast, saturation and hue control.
3744 3: Use a fragment program using the POW instruction.
3745 Needs the GL_ARB_fragment_program extension and at least three texture units.
3746 Provides brightness, contrast, saturation, hue and gamma control.
3747 Gamma can also be set independently for red, green and blue.
3748 Method 4 is usually faster.
3750 4: Use a fragment program with additional lookup.
3751 Needs the GL_ARB_fragment_program extension and at least four texture units.
3752 Provides brightness, contrast, saturation, hue and gamma control.
3753 Gamma can also be set independently for red, green and blue.
3755 5: Use ATI-specific method (for older cards).
3756 This uses an ATI-specific extension (GL_ATI_fragment_shader \- not
3757 GL_ARB_fragment_shader!).
3758 At least three texture units are needed.
3759 Provides saturation and hue control.
3760 This method is fast but inexact.
3762 6: Use a 3D texture to do conversion via lookup.
3763 Needs the GL_ARB_fragment_program extension and at least four texture units.
3764 Extremely slow (software emulation) on some (all?) ATI cards since it uses
3765 a texture with border pixels.
3766 Provides brightness, contrast, saturation, hue and gamma control.
3767 Gamma can also be set independently for red, green and blue.
3768 Speed depends more on GPU memory bandwidth than other methods.
3770 .IPs colorspace
3771 Select the color space for YUV to RGB conversion.
3772 .RSss
3773 .IPs 0
3774 Use the formula used normally by MPlayer (default).
3775 .IPs 1
3776 Use ITU-R BT.601 color space.
3777 .IPs 2
3778 Use ITU-R BT.709 color space.
3779 .IPs 3
3780 Use SMPTE-240M color space.
3782 .IPs levelconv=<n>
3783 Select the brightness level conversion to use for the YUV to RGB conversion
3784 .RSss
3785 .IPs 0
3786 Convert TV to PC levels (default).
3787 .IPs 1
3788 Convert PC to TV levels.
3789 .IPs 2
3790 Do not do any conversion.
3792 .IPs lscale=<n>
3793 Select the scaling function to use for luminance scaling.
3794 Only valid for yuv modes 2, 3, 4 and 6.
3795 .RSss
3796 0: Use simple linear filtering (default).
3798 1: Use bicubic B-spline filtering (better quality).
3799 Needs one additional texture unit.
3800 Older cards will not be able to handle this for chroma at least in fullscreen mode.
3802 2: Use cubic filtering in horizontal, linear filtering in vertical direction.
3803 Works on a few more cards than method 1.
3805 3: Same as 1 but does not use a lookup texture.
3806 Might be faster on some cards.
3808 4: Use experimental unsharp masking with 3x3 support and a default strength of 0.5 (see filter-strength).
3810 5: Use experimental unsharp masking with 5x5 support and a default strength of 0.5 (see filter-strength).
3812 .IPs cscale=<n>
3813 Select the scaling function to use for chrominance scaling.
3814 For details see lscale.
3815 .IPs filter-strength=<value>
3816 Set the effect strength for the lscale/cscale filters that support it.
3817 .IPs stereo=<value>
3818 Select a method for stereo display.
3819 You may have to use -aspect to fix the aspect value.
3820 Experimental, do not expect too much from it.
3821 .RSss
3822 0: Normal 2D display
3824 1: left-right split input to full-color red-cyan stereo.
3826 2: left-right split input to full-color red-cyan stereo.
3828 3: left-right split input to quadbuffered stereo.
3829 Only supported by very few OpenGL cards.
3832 .sp 1
3834 The following options are only useful if writing your own fragment programs.
3836 .sp 1
3837 .RSs
3838 .IPs customprog=<filename>
3839 Load a custom fragment program from <filename>.
3840 See TOOLS/edgedect.fp for an example.
3841 .IPs customtex=<filename>
3842 Load a custom "gamma ramp" texture from <filename>.
3843 This can be used in combination with yuv=4 or with the customprog option.
3844 .IPs (no)customtlin
3845 If enabled (default) use GL_LINEAR interpolation, otherwise use GL_NEAREST
3846 for customtex texture.
3847 .IPs (no)customtrect
3848 If enabled, use texture_rectangle for customtex texture.
3849 Default is disabled.
3850 .IPs (no)mipmapgen
3851 If enabled, mipmaps for the video are automatically generated.
3852 This should be useful together with the customprog and the TXB
3853 instruction to implement blur filters with a large radius.
3854 For most OpenGL implementations this is very slow for any non-RGB
3855 formats.
3856 Default is disabled.
3858 .sp 1
3860 Normally there is no reason to use the following options, they mostly
3861 exist for testing purposes.
3863 .sp 1
3864 .RSs
3865 .IPs (no)glfinish
3866 Call glFinish() before swapping buffers.
3867 Slower but in some cases more correct output (default: disabled).
3868 .IPs (no)manyfmts
3869 Enables support for more (RGB and BGR) color formats (default: enabled).
3870 Needs OpenGL version >= 1.2.
3871 .IPs slice-height=<0\-...>
3872 Number of lines copied to texture in one piece (default: 0).
3873 0 for whole image.
3875 .I NOTE:
3876 If YUV colorspace is used (see yuv suboption), special rules apply:
3877 .RSss
3878 If the decoder uses slice rendering (see \-noslices), this setting
3879 has no effect, the size of the slices as provided by the decoder is used.
3881 If the decoder does not use slice rendering, the default is 16.
3883 .IPs (no)osd
3884 Enable or disable support for OSD rendering via OpenGL (default: enabled).
3885 This option is for testing; to disable the OSD use \-osdlevel 0 instead.
3886 .IPs (no)aspect
3887 Enable or disable aspect scaling and pan-and-scan support (default: enabled).
3888 Disabling might increase speed.
3889 .REss
3891 .PD 1
3894 .B "gl2\ \ \ \ "
3895 Variant of the OpenGL video output driver.
3896 Supports videos larger than the maximum texture size but lacks many of the
3897 advanced features and optimizations of the gl driver and is unlikely to be
3898 extended further.
3899 .PD 0
3900 .RSs
3901 .IPs (no)glfinish
3902 same as gl (default: enabled)
3903 .IPs yuv=<n>
3904 Select the type of YUV to RGB conversion.
3905 If set to anything except 0 OSD will be disabled and brightness, contrast and
3906 gamma setting is only available via the global X server settings.
3907 Apart from this the values have the same meaning as for \-vo gl.
3908 .REss
3911 .B matrixview
3912 OpenGL-based renderer creating a Matrix-like running-text effect.
3913 .PD 0
3914 .RSs
3915 .IPs cols=<n>
3916 Number of text columns to display.
3917 Very low values (< 16) will probably fail due to scaler limitations.
3918 Values not divisible by 16 may cause issues as well.
3919 .IPs rows=<n>
3920 Number of text rows to display.
3921 Very low values (< 16) will probably fail due to scaler limitations.
3922 Values not divisible by 16 may cause issues as well.
3923 .REss
3926 .B "null\ \ \ "
3927 Produces no video output.
3928 Useful for benchmarking.
3931 .B "aa\ \ \ \ \ "
3932 ASCII art video output driver that works on a text console.
3933 You can get a list and an explanation of available suboptions
3934 by executing 'mplayer \-vo aa:help'.
3936 .I NOTE:
3937 The driver does not handle \-aspect correctly.
3939 .I HINT:
3940 You probably have to specify \-monitorpixelaspect.
3941 Try 'mplayer \-vo aa \-monitorpixelaspect 0.5'.
3944 .B "caca\ \ \ "
3945 Color ASCII art video output driver that works on a text console.
3948 .B "bl\ \ \ \ \ "
3949 Video playback using the Blinkenlights UDP protocol.
3950 This driver is highly hardware specific.
3951 .PD 0
3952 .RSs
3953 .IPs <subdevice>
3954 Explicitly choose the Blinkenlights subdevice driver to use.
3955 It is something like arcade:host=localhost:2323 or
3956 hdl:file=name1,file=name2.
3957 You must specify a subdevice.
3959 .PD 1
3962 .B "ggi\ \ \ \ "
3963 GGI graphics system video output driver
3964 .PD 0
3965 .RSs
3966 .IPs <driver>
3967 Explicitly choose the GGI driver to use.
3968 Replace any ',' that would appear in the driver string by a '.'.
3970 .PD 1
3973 .B directfb
3974 Play video using the DirectFB library.
3975 .PD 0
3976 .RSs
3977 .IPs (no)input
3978 Use the DirectFB instead of the MPlayer keyboard code (default: enabled).
3979 .IPs buffermode=single|double|triple
3980 Double and triple buffering give best results if you want to avoid tearing issues.
3981 Triple buffering is more efficient than double buffering as it does
3982 not block MPlayer while waiting for the vertical retrace.
3983 Single buffering should be avoided (default: single).
3984 .IPs fieldparity=top|bottom
3985 Control the output order for interlaced frames (default: disabled).
3986 Valid values are top = top fields first, bottom = bottom fields first.
3987 This option does not have any effect on progressive film material
3988 like most MPEG movies are.
3989 You need to enable this option if you have tearing issues or unsmooth
3990 motions watching interlaced film material.
3991 .IPs layer=N
3992 Will force layer with ID N for playback (default: \-1 \- auto).
3993 .IPs dfbopts=<list>
3994 Specify a parameter list for DirectFB.
3996 .PD 1
3999 .B "dfbmga\ "
4000 Matrox G400/\:G450/\:G550 specific video output driver that uses the
4001 DirectFB library to make use of special hardware features.
4002 Enables CRTC2 (second head), displaying video independently of the first head.
4003 .PD 0
4004 .RSs
4005 .IPs (no)input
4006 same as directfb (default: disabled)
4007 .IPs buffermode=single|double|triple
4008 same as directfb (default: triple)
4009 .IPs fieldparity=top|bottom
4010 same as directfb
4011 .IPs (no)bes
4012 Enable the use of the Matrox BES (backend scaler) (default: disabled).
4013 Gives very good results concerning speed and output quality as interpolated
4014 picture processing is done in hardware.
4015 Works only on the primary head.
4016 .IPs (no)spic
4017 Make use of the Matrox sub picture layer to display the OSD (default: enabled).
4018 .IPs (no)crtc2
4019 Turn on TV-out on the second head (default: enabled).
4020 The output quality is amazing as it is a full interlaced picture
4021 with proper sync to every odd/\:even field.
4022 .IPs tvnorm=pal|ntsc|auto
4023 Will set the TV norm of the Matrox card without the need
4024 for modifying /etc/\:directfbrc (default: disabled).
4025 Valid norms are pal = PAL, ntsc = NTSC.
4026 Special norm is auto (auto-adjust using PAL/\:NTSC) because it decides
4027 which norm to use by looking at the framerate of the movie.
4029 .PD 1
4032 .B mga (Linux only)
4033 Matrox specific video output driver that makes use of the YUV back
4034 end scaler on Gxxx cards through a kernel module.
4035 If you have a Matrox card, this is the fastest option.
4036 .PD 0
4037 .RSs
4038 .IPs <device>
4039 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4041 .PD 1
4044 .B xmga (Linux, X11 only)
4045 The mga video output driver, running in an X11 window.
4046 .PD 0
4047 .RSs
4048 .IPs <device>
4049 Explicitly choose the Matrox device name to use (default: /dev/\:mga_vid).
4051 .PD 1
4054 .B s3fb (Linux only) (also see \-dr)
4055 S3 Virge specific video output driver.
4056 This driver supports the card's YUV conversion and scaling, double
4057 buffering and direct rendering features.
4058 Use \-vf format=yuy2 to get hardware-accelerated YUY2 rendering, which is
4059 much faster than YV12 on this card.
4060 .PD 0
4061 .RSs
4062 .IPs <device>
4063 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4065 .PD 1
4068 .B wii (Linux only)
4069 Nintendo Wii/GameCube specific video output driver.
4072 .B 3dfx (Linux only)
4073 3dfx-specific video output driver that directly uses
4074 the hardware on top of X11.
4075 Only 16 bpp are supported.
4078 .B tdfxfb (Linux only)
4079 This driver employs the tdfxfb framebuffer driver to play movies with
4080 YUV acceleration on 3dfx cards.
4081 .PD 0
4082 .RSs
4083 .IPs <device>
4084 Explicitly choose the fbdev device name to use (default: /dev/\:fb0).
4086 .PD 1
4089 .B tdfx_vid (Linux only)
4090 3dfx-specific video output driver that works in combination with
4091 the tdfx_vid kernel module.
4092 .PD 0
4093 .RSs
4094 .IPs <device>
4095 Explicitly choose the device name to use (default: /dev/\:tdfx_vid).
4097 .PD 1
4100 .B dxr3 (DXR3 only)
4101 Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Designs
4102 Hollywood Plus) specific video output driver.
4103 Also see the lavc video filter.
4104 .PD 0
4105 .RSs
4106 .IPs overlay
4107 Activates the overlay instead of TV-out.
4108 .IPs prebuf
4109 Turns on prebuffering.
4110 .IPs "sync\ "
4111 Will turn on the new sync-engine.
4112 .IPs norm=<norm>
4113 Specifies the TV norm.
4114 .RSss
4115 0: Does not change current norm (default).
4117 1: Auto-adjust using PAL/\:NTSC.
4119 2: Auto-adjust using PAL/\:PAL-60.
4121 3: PAL
4123 4: PAL-60
4125 5: NTSC
4127 .IPs <0\-3>
4128 Specifies the device number to use if you have more than one em8300 card.
4130 .PD 1
4133 .B ivtv (IVTV only)
4134 Conexant CX23415 (iCompression iTVC15) or Conexant CX23416 (iCompression
4135 iTVC16) MPEG decoder chip (Hauppauge WinTV PVR-150/250/350/500)
4136 specific video output driver for TV-out.
4137 Also see the lavc video filter.
4138 .PD 0
4139 .RSs
4140 .IPs <device>
4141 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4142 .IPs <output>
4143 Explicitly choose the TV-out output to be used for the video signal.
4145 .PD 1
4148 .B v4l2 (requires Linux 2.6.22+ kernel)
4149 Video output driver for V4L2 compliant cards with built-in hardware MPEG decoder.
4150 Also see the lavc video filter.
4151 .PD 0
4152 .RSs
4153 .IPs <device>
4154 Explicitly choose the MPEG decoder device name to use (default: /dev/video16).
4155 .IPs <output>
4156 Explicitly choose the TV-out output to be used for the video signal.
4158 .PD 1
4161 .B mpegpes (DVB only)
4162 Video output driver for DVB cards that writes the output to an MPEG-PES file
4163 if no DVB card is installed.
4164 .PD 0
4165 .RSs
4166 .IPs card=<1\-4>
4167 Specifies the device number to use if you have more than one DVB output card
4168 (V3 API only, such as 1.x.y series drivers).
4169 If not specified MPlayer will search the first usable card.
4170 .IPs <filename>
4171 output filename (default: ./grab.mpg)
4173 .PD 1
4176 .B "md5sum\ "
4177 Calculate MD5 sums of each frame and write them to a file.
4178 Supports RGB24 and YV12 colorspaces.
4179 Useful for debugging.
4180 .PD 0
4181 .RSs
4182 .IPs outfile=<value>
4183 Specify the output filename (default: ./md5sums).
4185 .PD 1
4188 .B yuv4mpeg
4189 Transforms the video stream into a sequence of uncompressed YUV 4:2:0
4190 images and stores it in a file (default: ./stream.yuv).
4191 The format is the same as the one employed by mjpegtools, so this is
4192 useful if you want to process the video with the mjpegtools suite.
4193 It supports the YV12 format.
4194 If your source file has a different format and is interlaced, make sure
4195 to use -vf scale=::1 to ensure the conversion uses interlaced mode.
4196 You can combine it with the \-fixed\-vo option to concatenate files
4197 with the same dimensions and fps value.
4198 .PD 0
4199 .RSs
4200 .IPs interlaced
4201 Write the output as interlaced frames, top field first.
4202 .IPs interlaced_bf
4203 Write the output as interlaced frames, bottom field first.
4204 .IPs file=<filename>
4205 Write the output to <filename> instead of the default stream.yuv.
4206 .REss
4207 .PD 1
4209 .sp 1
4210 .I NOTE:
4211 If you do not specify any option the output is progressive
4212 (i.e.\& not interlaced).
4216 .B "gif89a\ "
4217 Output each frame into a single animated GIF file in the current directory.
4218 It supports only RGB format with 24 bpp and the output is converted to 256
4219 colors.
4220 .PD 0
4221 .RSs
4222 .IPs <fps>
4223 Float value to specify framerate (default: 5.0).
4224 .IPs <output>
4225 Specify the output filename (default: ./out.gif).
4226 .REss
4227 .PD 1
4229 .sp 1
4230 .I NOTE:
4231 You must specify the framerate before the filename or the framerate will
4232 be part of the filename.
4233 .sp 1
4234 .I EXAMPLE:
4236 .PD 0
4237 .RSs
4238 mplayer video.nut \-vo gif89a:fps=15:output=test.gif
4240 .PD 1
4243 .B "jpeg\ \ \ "
4244 Output each frame into a JPEG file in the current directory.
4245 Each file takes the frame number padded with leading zeros as name.
4246 .PD 0
4247 .RSs
4248 .IPs [no]progressive
4249 Specify standard or progressive JPEG (default: noprogressive).
4250 .IPs [no]baseline
4251 Specify use of baseline or not (default: baseline).
4252 .IPs optimize=<0\-100>
4253 optimization factor (default: 100)
4254 .IPs smooth=<0\-100>
4255 smooth factor (default: 0)
4256 .IPs quality=<0\-100>
4257 quality factor (default: 75)
4258 .IPs outdir=<dirname>
4259 Specify the directory to save the JPEG files to (default: ./).
4260 .IPs subdirs=<prefix>
4261 Create numbered subdirectories with the specified prefix to
4262 save the files in instead of the current directory.
4263 .IPs "maxfiles=<value> (subdirs only)"
4264 Maximum number of files to be saved per subdirectory.
4265 Must be equal to or larger than 1 (default: 1000).
4267 .PD 1
4270 .B "pnm\ \ \ \ "
4271 Output each frame into a PNM file in the current directory.
4272 Each file takes the frame number padded with leading zeros as name.
4273 It supports PPM, PGM and PGMYUV files in both raw and ASCII mode.
4274 Also see pnm(5), ppm(5) and pgm(5).
4275 .PD 0
4276 .RSs
4277 .IPs "ppm\ \ "
4278 Write PPM files (default).
4279 .IPs "pgm\ \ "
4280 Write PGM files.
4281 .IPs pgmyuv
4282 Write PGMYUV files.
4283 PGMYUV is like PGM, but it also contains the U and V plane, appended at the
4284 bottom of the picture.
4285 .IPs "raw\ \ "
4286 Write PNM files in raw mode (default).
4287 .IPs ascii
4288 Write PNM files in ASCII mode.
4289 .IPs outdir=<dirname>
4290 Specify the directory to save the PNM files to (default: ./).
4291 .IPs subdirs=<prefix>
4292 Create numbered subdirectories with the specified prefix to
4293 save the files in instead of the current directory.
4294 .IPs "maxfiles=<value> (subdirs only)"
4295 Maximum number of files to be saved per subdirectory.
4296 Must be equal to or larger than 1 (default: 1000).
4298 .PD 1
4301 .B "png\ \ \ \ "
4302 Output each frame into a PNG file in the current directory.
4303 Each file takes the frame number padded with leading zeros as name.
4304 24bpp RGB and BGR formats are supported.
4305 .PD 0
4306 .RSs
4307 .IPs z=<0\-9>
4308 Specifies the compression level.
4309 0 is no compression, 9 is maximum compression.
4310 .IPs alpha (default: noalpha)
4311 Create PNG files with an alpha channel.
4312 Note that MPlayer in general does not support alpha, so this will only
4313 be useful in some rare cases.
4315 .PD 1
4318 .B "tga\ \ \ \ "
4319 Output each frame into a Targa file in the current directory.
4320 Each file takes the frame number padded with leading zeros as name.
4321 The purpose of this video output driver is to have a simple lossless
4322 image writer to use without any external library.
4323 It supports the BGR[A] color format, with 15, 24 and 32 bpp.
4324 You can force a particular format with the format video filter.
4325 .sp 1
4326 .I EXAMPLE:
4328 .PD 0
4329 .RSs
4330 mplayer video.nut \-vf format=bgr15 \-vo tga
4332 .PD 1
4336 .SH "DECODING/FILTERING OPTIONS"
4339 .B \-ac <[\-|+]codec1,[\-|+]codec2,...[,]>
4340 Specify a priority list of audio codecs to be used, according to their codec
4341 name in codecs.conf.
4342 Use a '\-' before the codec name to omit it.
4343 Use a '+' before the codec name to force it, this will likely crash!
4344 If the list has a trailing ',' MPlayer will fall back on codecs not
4345 contained in the list.
4347 .I NOTE:
4348 See \-ac help for a full list of available codecs.
4349 .sp 1
4350 .I EXAMPLE:
4351 .PD 0
4352 .RSs
4353 .IPs "\-ac mp3acm"
4354 Force the l3codeca.acm MP3 codec.
4355 .IPs "\-ac mad,"
4356 Try libmad first, then fall back on others.
4357 .IPs "\-ac hwac3,a52,"
4358 Try hardware AC-3 passthrough, software AC-3, then others.
4359 .IPs "\-ac hwdts,"
4360 Try hardware DTS passthrough, then fall back on others.
4361 .IPs "\-ac \-ffmp3,"
4362 Skip FFmpeg's MP3 decoder.
4364 .PD 1
4367 .B \-af\-adv <force=(0\-7):list=(filters)> (also see \-af)
4368 Specify advanced audio filter options:
4369 .RSs
4370 .IPs force=<0\-7>
4371 Forces the insertion of audio filters to one of the following:
4372 .RSss
4373 0: Use completely automatic filter insertion (currently identical to 1).
4375 1: Optimize for accuracy (default).
4377 2: Optimize for speed.
4378 .I Warning:
4379 Some features in the audio filters may silently fail,
4380 and the sound quality may drop.
4382 3: Use no automatic insertion of filters and no optimization.
4383 .I Warning:
4384 It may be possible to crash MPlayer using this setting.
4386 4: Use automatic insertion of filters according to 0 above,
4387 but use floating point processing when possible.
4389 5: Use automatic insertion of filters according to 1 above,
4390 but use floating point processing when possible.
4392 6: Use automatic insertion of filters according to 2 above,
4393 but use floating point processing when possible.
4395 7: Use no automatic insertion of filters according to 3 above,
4396 and use floating point processing when possible.
4397 .REss
4398 .IPs list=<filters>
4399 Same as \-af.
4403 .B \-afm <driver1,driver2,...>
4404 Specify a priority list of audio codec families to be used, according
4405 to their codec name in codecs.conf.
4406 Falls back on the default codecs if none of the given codec families work.
4408 .I NOTE:
4409 See \-afm help for a full list of available codec families.
4410 .sp 1
4411 .I EXAMPLE:
4412 .PD 0
4413 .RSs
4414 .IPs "\-afm ffmpeg"
4415 Try FFmpeg's libavcodec codecs first.
4416 .IPs "\-afm acm,dshow"
4417 Try Win32 codecs first.
4419 .PD 1
4422 .B \-aspect <ratio> (also see \-zoom)
4423 Override movie aspect ratio, in case aspect information is
4424 incorrect or missing in the file being played.
4425 .sp 1
4426 .I EXAMPLE:
4427 .PD 0
4428 .RSs
4429 \-aspect 4:3  or \-aspect 1.3333
4431 \-aspect 16:9 or \-aspect 1.7777
4433 .PD 1
4436 .B \-noaspect
4437 Disable automatic movie aspect ratio compensation.
4440 .B "\-field\-dominance <\-1\-1>"
4441 Set first field for interlaced content.
4442 Useful for deinterlacers that double the framerate: \-vf tfields=1,
4443 \-vf yadif=1, \-vo vdpau:deint and \-vo xvmc:bobdeint.
4444 .PD 0
4445 .RSs
4446 .IPs \-1
4447 auto (default): If the decoder does not export the appropriate information,
4448 it falls back to 0 (top field first).
4449 .IPs 0
4450 top field first
4451 .IPs 1
4452 bottom field first
4454 .PD 1
4457 .B "\-flip \ "
4458 Flip image upside-down.
4461 .B \-lavdopts <option1:option2:...> (DEBUG CODE)
4462 Specify libavcodec decoding parameters.
4463 Separate multiple options with a colon.
4464 .sp 1
4465 .I EXAMPLE:
4466 .PD 0
4467 .RSs
4468 \-lavdopts gray:skiploopfilter=all:skipframe=nonref
4470 .PD 1
4471 .sp 1
4473 Available options are:
4475 .RSs
4476 .IPs bitexact
4477 Only use bit-exact algorithms in all decoding steps (for codec testing).
4478 .IPs bug=<value>
4479 Manually work around encoder bugs.
4480 .RSss
4481 0: nothing
4483 1: autodetect bugs (default)
4485 2 (msmpeg4v3): some old lavc generated msmpeg4v3 files (no autodetection)
4487 4 (mpeg4): Xvid interlacing bug (autodetected if fourcc==XVIX)
4489 8 (mpeg4): UMP4 (autodetected if fourcc==UMP4)
4491 16 (mpeg4): padding bug (autodetected)
4493 32 (mpeg4): illegal vlc bug (autodetected per fourcc)
4495 64 (mpeg4): Xvid and DivX qpel bug (autodetected per fourcc/\:version)
4497 128 (mpeg4): old standard qpel (autodetected per fourcc/\:version)
4499 256 (mpeg4): another qpel bug (autodetected per fourcc/\:version)
4501 512 (mpeg4): direct-qpel-blocksize bug (autodetected per fourcc/\:version)
4503 1024 (mpeg4): edge padding bug (autodetected per fourcc/\:version)
4504 .REss
4505 .IPs debug=<value>
4506 Display debugging information.
4507 .RSss
4509 0: disabled
4511 1: picture info
4513 2: rate control
4515 4: bitstream
4517 8: macroblock (MB) type
4519 16: per-block quantization parameter (QP)
4521 32: motion vector
4523 0x0040: motion vector visualization (use \-noslices)
4525 0x0080: macroblock (MB) skip
4527 0x0100: startcode
4529 0x0200: PTS
4531 0x0400: error resilience
4533 0x0800: memory management control operations (H.264)
4535 0x1000: bugs
4537 0x2000: Visualize quantization parameter (QP), lower QP are tinted greener.
4539 0x4000: Visualize block types.
4540 .REss
4541 .IPs ec=<value>
4542 Set error concealment strategy.
4543 .RSss
4544 1: Use strong deblock filter for damaged MBs.
4546 2: iterative motion vector (MV) search (slow)
4548 3: all (default)
4549 .REss
4550 .IPs er=<value>
4551 Set error resilience strategy.
4552 .RSss
4554 0: disabled
4556 1: careful (Should work with broken encoders.)
4558 2: normal (default) (Works with compliant encoders.)
4560 3: aggressive (More checks, but might cause problems even for valid bitstreams.)
4562 4: very aggressive
4563 .REss
4564 .IPs "fast (MPEG-2, MPEG-4, and H.264 only)"
4565 Enable optimizations which do not comply to the specification and might
4566 potentially cause problems, like simpler dequantization, simpler motion
4567 compensation, assuming use of the default quantization matrix, assuming
4568 YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
4569 .IPs "gray\ "
4570 grayscale only decoding (a bit faster than with color)
4571 .IPs "idct=<0\-99> (see \-lavcopts)"
4572 For best decoding quality use the same IDCT algorithm for decoding and encoding.
4573 This may come at a price in accuracy, though.
4574 .IPs lowres=<number>[,<w>]
4575 Decode at lower resolutions.
4576 Low resolution decoding is not supported by all codecs, and it will
4577 often result in ugly artifacts.
4578 This is not a bug, but a side effect of not decoding at full resolution.
4579 .RSss
4581 0: disabled
4583 1: 1/2 resolution
4585 2: 1/4 resolution
4587 3: 1/8 resolution
4588 .REss
4590 If <w> is specified lowres decoding will be used only if the width of the
4591 video is major than or equal to <w>.
4593 .B o=<key>=<value>[,<key>=<value>[,...]]
4594 Pass AVOptions to libavcodec decoder.
4595 Note, a patch to make the o= unneeded and pass all unknown options through
4596 the AVOption system is welcome.
4597 A full list of AVOptions can be found in the FFmpeg manual.
4598 .sp 1
4600 .I EXAMPLE:
4602 .RSs
4603 .PD 0
4604 .IPs o=debug=pict
4605 .PD 1
4607 .IPs "sb=<number> (MPEG-2 only)"
4608 Skip the given number of macroblock rows at the bottom.
4609 .IPs "st=<number> (MPEG-2 only)"
4610 Skip the given number of macroblock rows at the top.
4611 .IPs "skiploopfilter=<skipvalue> (H.264 only)"
4612 Skips the loop filter (AKA deblocking) during H.264 decoding.
4613 Since the filtered frame is supposed to be used as reference
4614 for decoding dependent frames this has a worse effect on quality
4615 than not doing deblocking on e.g.\& MPEG-2 video.
4616 But at least for high bitrate HDTV this provides a big speedup with
4617 no visible quality loss.
4618 .sp 1
4619 <skipvalue> can be either one of the following:
4620 .RSss
4622 none: Never skip.
4624 default: Skip useless processing steps (e.g.\& 0 size packets in AVI).
4626 nonref: Skip frames that are not referenced (i.e.\& not used for
4627 decoding other frames, the error cannot "build up").
4629 bidir: Skip B-Frames.
4631 nonkey: Skip all frames except keyframes.
4633 all: Skip all frames.
4634 .REss
4635 .IPs "skipidct=<skipvalue> (MPEG-1/2 only)"
4636 Skips the IDCT step.
4637 This degrades quality a lot of in almost all cases
4638 (see skiploopfilter for available skip values).
4639 .IPs skipframe=<skipvalue>
4640 Skips decoding of frames completely.
4641 Big speedup, but jerky motion and sometimes bad artifacts
4642 (see skiploopfilter for available skip values).
4643 .IPs "threads=<0\-16>"
4644 Number of threads to use for decoding.
4645 Whether threading is actually supported depends on codec.
4646 0 means autodetect number of cores on the machine and use that, up to the
4647 maximum of 16.
4648 (default: 0)
4649 .IPs vismv=<value>
4650 Visualize motion vectors.
4651 .RSss
4653 0: disabled
4655 1: Visualize forward predicted MVs of P-frames.
4657 2: Visualize forward predicted MVs of B-frames.
4659 4: Visualize backward predicted MVs of B-frames.
4660 .REss
4661 .IPs vstats
4662 Prints some statistics and stores them in ./vstats_*.log.
4666 .B \-noslices
4667 Disable drawing video by 16-pixel height slices/\:bands, instead draws the
4668 whole frame in a single run.
4669 May be faster or slower, depending on video card and available cache.
4670 It has effect only with libmpeg2 and libavcodec codecs.
4673 .B \-nosound
4674 Do not play sound.
4675 Useful for benchmarking.
4678 .B \-novideo
4679 Do not play video.
4680 With some demuxers this may not work. In those cases you can try \-vc null \-vo null instead; but "\-vc null" is always unreliable.
4683 .B \-pp <quality> (also see \-vf pp)
4684 Set the DLL postprocess level.
4685 This option is no longer usable with \-vf pp.
4686 It only works with Win32 DirectShow DLLs with internal postprocessing routines.
4687 The valid range of \-pp values varies by codec, it is mostly
4688 0\-6, where 0=disable, 6=slowest/\:best.
4691 .B \-pphelp (also see \-vf pp)
4692 Show a summary about the available postprocess filters and their usage.
4695 .B \-ssf <mode>
4696 Specifies software scaler parameters.
4697 .sp 1
4698 .I EXAMPLE:
4699 .PD 0
4700 .RSs
4701 \-vf scale \-ssf lgb=3.0
4703 .PD 1
4704 .PD 0
4705 .RSs
4706 .IPs lgb=<0\-100>
4707 gaussian blur filter (luma)
4708 .IPs cgb=<0\-100>
4709 gaussian blur filter (chroma)
4710 .IPs ls=<\-100\-100>
4711 sharpen filter (luma)
4712 .IPs cs=<\-100\-100>
4713 sharpen filter (chroma)
4714 .IPs chs=<h>
4715 chroma horizontal shifting
4716 .IPs cvs=<v>
4717 chroma vertical shifting
4719 .PD 1
4722 .B \-stereo <mode>
4723 Select type of MP2/\:MP3 stereo output.
4724 .PD 0
4725 .RSs
4726 .IPs 0
4727 stereo
4728 .IPs 1
4729 left channel
4730 .IPs 2
4731 right channel
4733 .PD 1
4736 .B \-sws <software scaler type> (also see \-vf scale and \-zoom)
4737 Specify the software scaler algorithm to be used with the \-zoom option.
4738 This affects video output drivers which lack hardware acceleration, e.g.\& x11.
4739 .sp 1
4740 Available types are:
4741 .sp 1
4742 .PD 0
4743 .RSs
4744 .IPs 0
4745 fast bilinear
4746 .IPs 1
4747 bilinear
4748 .IPs 2
4749 bicubic (good quality) (default)
4750 .IPs 3
4751 experimental
4752 .IPs 4
4753 nearest neighbor (bad quality)
4754 .IPs 5
4755 area
4756 .IPs 6
4757 luma bicubic / chroma bilinear
4758 .IPs 7
4759 gauss
4760 .IPs 8
4761 sincR
4762 .IPs 9
4763 lanczos
4764 .IPs 10
4765 natural bicubic spline
4767 .PD 1
4768 .sp 1
4770 .I NOTE:
4771 Some \-sws options are tunable.
4772 The description of the scale video filter has further information.
4776 .B \-vc <[\-|+]codec1,[\-|+]codec2,...[,]>
4777 Specify a priority list of video codecs to be used, according to their codec
4778 name in codecs.conf.
4779 Use a '\-' before the codec name to omit it.
4780 Use a '+' before the codec name to force it, this will likely crash!
4781 If the list has a trailing ',' MPlayer will fall back on codecs not
4782 contained in the list.
4784 .I NOTE:
4785 See \-vc help for a full list of available codecs.
4786 .sp 1
4787 .I EXAMPLE:
4788 .PD 0
4789 .RSs
4790 .IPs "\-vc divx"
4791 Force Win32/\:VfW DivX codec, no fallback.
4792 .IPs "\-vc \-divxds,\-divx,"
4793 Skip Win32 DivX codecs.
4794 .IPs "\-vc ffmpeg12,mpeg12,"
4795 Try libavcodec's MPEG-1/2 codec, then libmpeg2, then others.
4797 .PD 1
4800 .B \-vfm <driver1,driver2,...>
4801 Specify a priority list of video codec families to be used, according
4802 to their names in codecs.conf.
4803 Falls back on the default codecs if none of the given codec families work.
4805 .I NOTE:
4806 See \-vfm help for a full list of available codec families.
4807 .sp 1
4808 .I EXAMPLE:
4809 .PD 0
4810 .RSs
4811 .IPs "\-vfm ffmpeg,dshow,vfw"
4812 Try the libavcodec, then Directshow, then VfW codecs and fall back
4813 on others, if they do not work.
4814 .IPs "\-vfm xanim"
4815 Try XAnim codecs first.
4817 .PD 1
4820 .B \-x <x> (also see \-zoom)
4821 Scale image to width <x> (if software/\:hardware scaling is available).
4822 Disables aspect calculations.
4825 .B \-xvidopts <option1:option2:...>
4826 Specify additional parameters when decoding with Xvid.
4828 .I NOTE:
4829 Since libavcodec is faster than Xvid you might want to use the libavcodec
4830 postprocessing filter (\-vf pp) and decoder (\-vfm ffmpeg) instead.
4831 .sp 1
4832 Xvid's internal postprocessing filters:
4833 .PD 0
4834 .RSs
4835 .IPs "deblock-chroma (also see \-vf pp)"
4836 chroma deblock filter
4837 .IPs "deblock-luma (also see \-vf pp)"
4838 luma deblock filter
4839 .IPs "dering-luma (also see \-vf pp)"
4840 luma deringing filter
4841 .IPs "dering-chroma (also see \-vf pp)"
4842 chroma deringing filter
4843 .IPs "filmeffect (also see \-vf noise)"
4844 Adds artificial film grain to the video.
4845 May increase perceived quality, while lowering true quality.
4847 .sp 1
4849 rendering methods:
4851 .PD 0
4852 .RSs
4853 .IPs "dr2\ \ "
4854 Activate direct rendering method 2.
4855 .IPs nodr2
4856 Deactivate direct rendering method 2.
4858 .PD 1
4861 .B \-xy <value> (also see \-zoom)
4862 .PD 0
4863 .RSs
4864 .IPs value<=8
4865 Scale image by factor <value>.
4866 .IPs value>8
4867 Set width to value and calculate height to keep correct aspect ratio.
4869 .PD 1
4872 .B \-y <y> (also see \-zoom)
4873 Scale image to height <y> (if software/\:hardware scaling is available).
4874 Disables aspect calculations.
4877 .B "\-zoom\ \ "
4878 Allow software scaling, where available.
4879 This will allow scaling with output drivers (like x11, fbdev) that
4880 do not support hardware scaling where MPlayer disables scaling by
4881 default for performance reasons.
4885 .SH "AUDIO FILTERS"
4886 Audio filters allow you to modify the audio stream and its properties.
4887 The syntax is:
4890 .B \-af <filter1[=parameter1:parameter2:...],filter2,...>
4891 Setup a chain of audio filters.
4893 .I NOTE:
4894 To get a full list of available audio filters, see \-af help.
4895 .sp 1
4896 Audio filters are managed in lists.
4897 There are a few commands to manage the filter list.
4900 .B \-af\-add <filter1[,filter2,...]>
4901 Appends the filters given as arguments to the filter list.
4904 .B \-af\-pre <filter1[,filter2,...]>
4905 Prepends the filters given as arguments to the filter list.
4908 .B \-af\-del <index1[,index2,...]>
4909 Deletes the filters at the given indexes.
4910 Index numbers start at 0, negative numbers address the end of the
4911 list (\-1 is the last).
4914 .B \-af\-clr
4915 Completely empties the filter list.
4917 Available filters are:
4920 .B resample[=srate[:sloppy[:type]]]
4921 Changes the sample rate of the audio stream.
4922 Can be used if you have a fixed frequency sound card or if you are
4923 stuck with an old sound card that is only capable of max 44.1kHz.
4924 This filter is automatically enabled if necessary.
4925 It only supports 16-bit integer and float in native-endian format as input.
4926 .PD 0
4927 .RSs
4928 .IPs <srate>
4929 output sample frequency in Hz.
4930 The valid range for this parameter is 8000 to 192000.
4931 If the input and output sample frequency are the same or if this
4932 parameter is omitted the filter is automatically unloaded.
4933 A high sample frequency normally improves the audio quality,
4934 especially when used in combination with other filters.
4935 .IPs <sloppy>
4936 Allow (1) or disallow (0) the output frequency to differ slightly
4937 from the frequency given by <srate> (default: 1).
4938 Can be used if the startup of the playback is extremely slow.
4939 .IPs <type>
4940 Select which resampling method to use.
4941 .RSss
4942 0: linear interpolation (fast, poor quality especially when upsampling)
4944 1: polyphase filterbank and integer processing
4946 2: polyphase filterbank and floating point processing (slow, best quality)
4947 .REss
4948 .PD 1
4950 .sp 1
4952 .I EXAMPLE:
4954 .PD 0
4955 .RSs
4956 .IPs "mplayer \-af resample=44100:0:0"
4957 would set the output frequency of the resample filter to 44100Hz using
4958 exact output frequency scaling and linear interpolation.
4960 .PD 1
4963 .B lavcresample[=srate[:length[:linear[:count[:cutoff]]]]]
4964 Changes the sample rate of the audio stream to an integer <srate> in Hz.
4965 It only supports the 16-bit native-endian format.
4966 .PD 0
4967 .RSs
4968 .IPs <srate>
4969 the output sample rate
4970 .IPs <length>
4971 length of the filter with respect to the lower sampling rate (default: 16)
4972 .IPs <linear>
4973 if 1 then filters will be linearly interpolated between polyphase entries
4974 .IPs <count>
4975 log2 of the number of polyphase entries
4976 (..., 10->1024, 11->2048, 12->4096, ...)
4977 (default: 10->1024)
4978 .IPs <cutoff>
4979 cutoff frequency (0.0\-1.0), default set depending upon filter length
4981 .PD 1
4984 .B lavcac3enc[=tospdif[:bitrate[:minchn]]]
4985 Encode multi-channel audio to AC-3 at runtime using libavcodec.
4986 Supports 16-bit native-endian input format, maximum 6 channels.
4987 The output is big-endian when outputting a raw AC-3 stream,
4988 native-endian when outputting to S/PDIF.
4989 The output sample rate of this filter is same with the input sample rate.
4990 When input sample rate is 48kHz, 44.1kHz, or 32kHz, this filter directly use it.
4991 Otherwise a resampling filter is auto-inserted before this filter to make
4992 the input and output sample rate be 48kHz.
4993 You need to specify '\-channels N' to make the decoder decode audio into
4994 N-channel, then the filter can encode the N-channel input to AC-3.
4996 .PD 0
4997 .RSs
4998 .IPs <tospdif>
4999 Output raw AC-3 stream if zero or not set,
5000 output to S/PDIF for passthrough when <tospdif> is set non-zero.
5001 .IPs <bitrate>
5002 The bitrate to encode the AC-3 stream.
5003 Set it to either 384 or 384000 to get 384kbits.
5004 Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
5005               320, 384, 448, 512, 576, 640
5006 Default bitrate is based on the input channel number:
5007 1ch: 96,  2ch: 192,  3ch: 224,  4ch: 384,  5ch: 448,  6ch: 448
5008 .IPs <minchn>
5009 If the input channel number is less than <minchn>, the filter will
5010 detach itself (default: 5).
5012 .PD 1
5015 .B sweep[=speed]
5016 Produces a sine sweep.
5017 .PD 0
5018 .RSs
5019 .IPs <0.0\-1.0>
5020 Sine function delta, use very low values to hear the sweep.
5022 .PD 1
5025 .B sinesuppress[=freq:decay]
5026 Remove a sine at the specified frequency.
5027 Useful to get rid of the 50/60Hz noise on low quality audio equipment.
5028 It probably only works on mono input.
5029 .PD 0
5030 .RSs
5031 .IPs <freq>
5032 The frequency of the sine which should be removed (in Hz) (default: 50)
5033 .IPs <decay>
5034 Controls the adaptivity (a larger value will make the filter adapt to
5035 amplitude and phase changes quicker, a smaller value will make the
5036 adaptation slower) (default: 0.0001).
5037 Reasonable values are around 0.001.
5039 .PD 1
5042 .B bs2b[=option1:option2:...]
5043 Bauer stereophonic to binaural transformation using libbs2b.
5044 Improves the headphone listening experience by making the sound
5045 similar to that from loudspeakers, allowing each ear to hear both
5046 channels and taking into account the distance difference and the
5047 head shadowing effect.
5048 It is applicable only to 2 channel audio.
5049 .PD 0
5050 .RSs
5051 .IPs fcut=<300\-1000>
5052 Set cut frequency in Hz.
5053 .IPs feed=<10\-150>
5054 Set feed level for low frequencies in 0.1*dB.
5055 .IPs profile=<value>
5056 Several profiles are available for convenience:
5057 .PD 0
5058 .RSs
5059 .IPs default
5060 will be used if nothing else was specified (fcut=700, feed=45)
5061 .IPs "cmoy\ "
5062 Chu Moy circuit implementation (fcut=700, feed=60)
5063 .IPs jmeier
5064 Jan Meier circuit implementation (fcut=650, feed=95)
5067 .sp 1
5069 If fcut or feed options are specified together with a profile, they
5070 will be applied on top of the selected profile.
5072 .PD 1
5075 .B hrtf[=flag]
5076 Head-related transfer function: Converts multichannel audio to
5077 2 channel output for headphones, preserving the spatiality of the sound.
5078 .sp 1
5079 .PD 0
5081 .IPs "Flag  Meaning"
5082 .IPs "m     matrix decoding of the rear channel"
5083 .IPs "s     2-channel matrix decoding"
5084 .IPs "0     no matrix decoding (default)"
5086 .PD 1
5089 .B equalizer=[g1:g2:g3:...:g10]
5090 10 octave band graphic equalizer, implemented using 10 IIR band pass filters.
5091 This means that it works regardless of what type of audio is being played back.
5092 The center frequencies for the 10 bands are:
5093 .sp 1
5094 .PD 0
5096 .IPs "No. frequency"
5097 .IPs "0    31.25 Hz"
5098 .IPs "1    62.50 Hz"
5099 .IPs "2   125.00 Hz"
5100 .IPs "3   250.00 Hz"
5101 .IPs "4   500.00 Hz"
5102 .IPs "5    1.00 kHz"
5103 .IPs "6    2.00 kHz"
5104 .IPs "7    4.00 kHz"
5105 .IPs "8    8.00 kHz"
5106 .IPs "9   16.00 kHz"
5108 .PD 1
5109 .sp 1
5111 If the sample rate of the sound being played is lower than the center
5112 frequency for a frequency band, then that band will be disabled.
5113 A known bug with this filter is that the characteristics for the
5114 uppermost band are not completely symmetric if the sample
5115 rate is close to the center frequency of that band.
5116 This problem can be worked around by upsampling the sound
5117 using the resample filter before it reaches this filter.
5119 .PD 0
5120 .RSs
5121 .IPs <g1>:<g2>:<g3>:...:<g10>
5122 floating point numbers representing the gain in dB
5123 for each frequency band (\-12\-12)
5125 .sp 1
5127 .I EXAMPLE:
5129 .RSs
5130 .IPs "mplayer \-af equalizer=11:11:10:5:0:\-12:0:5:12:12 media.avi"
5131 Would amplify the sound in the upper and lower frequency region
5132 while canceling it almost completely around 1kHz.
5134 .PD 1
5137 .B channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
5138 Can be used for adding, removing, routing and copying audio channels.
5139 If only <nch> is given the default routing is used, it works as
5140 follows: If the number of output channels is bigger than the number of
5141 input channels empty channels are inserted (except mixing from mono to
5142 stereo, then the mono channel is repeated in both of the output
5143 channels).
5144 If the number of output channels is smaller than the number
5145 of input channels the exceeding channels are truncated.
5146 .PD 0
5147 .RSs
5148 .IPs <nch>
5149 number of output channels (1\-8)
5150 .IPs "<nr>\ "
5151 number of routes (1\-8)
5152 .IPs <from1:to1:from2:to2:from3:to3:...>
5153 Pairs of numbers between 0 and 7 that define where to route each channel.
5155 .sp 1
5157 .I EXAMPLE:
5159 .RSs
5160 .IPs "mplayer \-af channels=4:4:0:1:1:0:2:2:3:3 media.avi"
5161 Would change the number of channels to 4 and set up 4 routes that
5162 swap channel 0 and channel 1 and leave channel 2 and 3 intact.
5163 Observe that if media containing two channels was played back, channels
5164 2 and 3 would contain silence but 0 and 1 would still be swapped.
5165 .IPs "mplayer \-af channels=6:4:0:0:0:1:0:2:0:3 media.avi"
5166 Would change the number of channels to 6 and set up 4 routes
5167 that copy channel 0 to channels 0 to 3.
5168 Channel 4 and 5 will contain silence.
5170 .PD 1
5173 .B format[=format] (also see \-format)
5174 Convert between different sample formats.
5175 Automatically enabled when needed by the sound card or another filter.
5176 .PD 0
5177 .RSs
5178 .IPs <format>
5179 Sets the desired format.
5180 The general form is 'sbe', where 's' denotes the sign (either 's' for signed
5181 or 'u' for unsigned), 'b' denotes the number of bits per sample (16, 24 or 32)
5182 and 'e' denotes the endianness ('le' means little-endian, 'be' big-endian
5183 and 'ne' the endianness of the computer MPlayer is running on).
5184 Valid values (amongst others) are: 's16le', 'u32be' and 'u24ne'.
5185 Exceptions to this rule that are also valid format specifiers: u8, s8,
5186 floatle, floatbe, floatne, mulaw, alaw, mpeg2, ac3 and imaadpcm.
5188 .PD 1
5191 .B volume[=v[:sc]]
5192 Implements software volume control.
5193 Use this filter with caution since it can reduce the signal
5194 to noise ratio of the sound.
5195 In most cases it is best to set the level for the PCM sound to max,
5196 leave this filter out and control the output level to your
5197 speakers with the master volume control of the mixer.
5198 In case your sound card has a digital PCM mixer instead of an analog
5199 one, and you hear distortion, use the MASTER mixer instead.
5200 If there is an external amplifier connected to the computer (this
5201 is almost always the case), the noise level can be minimized by
5202 adjusting the master level and the volume knob on the amplifier
5203 until the hissing noise in the background is gone.
5205 This filter has a second feature: It measures the overall maximum
5206 sound level and prints out that level when MPlayer exits.
5207 This feature currently only works with floating-point data,
5208 use e.g. \-af\-adv force=5, or use \-af stats.
5210 .I NOTE:
5211 This filter is not reentrant and can therefore only be enabled
5212 once for every audio stream.
5213 .PD 0
5214 .RSs
5215 .IPs "<v>\ \ "
5216 Sets the desired gain in dB for all channels in the stream
5217 from \-200dB to +60dB, where \-200dB mutes the sound
5218 completely and +60dB equals a gain of 1000 (default: 0).
5219 .IPs "<sc>\ "
5220 Turns soft clipping on (1) or off (0).
5221 Soft-clipping can make the sound more smooth if very
5222 high volume levels are used.
5223 Enable this option if the dynamic range of the
5224 loudspeakers is very low.
5226 .I WARNING:
5227 This feature creates distortion and should be considered a last resort.
5229 .sp 1
5231 .I EXAMPLE:
5233 .RSs
5234 .IPs "mplayer \-af volume=10.1:0 media.avi"
5235 Would amplify the sound by 10.1dB and hard-clip if the
5236 sound level is too high.
5238 .PD 1
5241 .B pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...]
5242 Mixes channels arbitrarily.
5243 Basically a combination of the volume and the channels filter
5244 that can be used to down-mix many channels to only a few,
5245 e.g.\& stereo to mono or vary the "width" of the center
5246 speaker in a surround sound system.
5247 This filter is hard to use, and will require some tinkering
5248 before the desired result is obtained.
5249 The number of options for this filter depends on
5250 the number of output channels.
5251 An example how to downmix a six-channel file to two channels with
5252 this filter can be found in the examples section near the end.
5253 .PD 0
5254 .RSs
5255 .IPs "<n>\ \ "
5256 number of output channels (1\-8)
5257 .IPs <Lij>
5258 How much of input channel i is mixed into output channel j (0\-1).
5259 So in principle you first have n numbers saying what to do with the
5260 first input channel, then n numbers that act on the second input channel
5261 etc.
5262 If you do not specify any numbers for some input channels, 0 is assumed.
5264 .sp 1
5266 .I EXAMPLE:
5268 .RSs
5269 .IPs "mplayer \-af pan=1:0.5:0.5 media.avi"
5270 Would down-mix from stereo to mono.
5271 .IPs "mplayer \-af pan=3:1:0:0.5:0:1:0.5 media.avi"
5272 Would give 3 channel output leaving channels 0 and 1 intact,
5273 and mix channels 0 and 1 into output channel 2 (which could
5274 be sent to a subwoofer for example).
5276 .PD 1
5279 .B sub[=fc:ch]
5280 Adds a subwoofer channel to the audio stream.
5281 The audio data used for creating the subwoofer channel is
5282 an average of the sound in channel 0 and channel 1.
5283 The resulting sound is then low-pass filtered by a 4th order
5284 Butterworth filter with a default cutoff frequency of 60Hz
5285 and added to a separate channel in the audio stream.
5287 .I Warning:
5288 Disable this filter when you are playing DVDs with Dolby
5289 Digital 5.1 sound, otherwise this filter will disrupt
5290 the sound to the subwoofer.
5291 .PD 0
5292 .RSs
5293 .IPs "<fc>\ "
5294 cutoff frequency in Hz for the low-pass filter (20Hz to 300Hz) (default: 60Hz)
5295 For the best result try setting the cutoff frequency as low as possible.
5296 This will improve the stereo or surround sound experience.
5297 .IPs "<ch>\ "
5298 Determines the channel number in which to insert the sub-channel audio.
5299 Channel number can be between 0 and 7 (default: 5).
5300 Observe that the number of channels will automatically
5301 be increased to <ch> if necessary.
5303 .sp 1
5305 .I EXAMPLE:
5307 .RSs
5308 .IPs "mplayer \-af sub=100:4 \-channels 5 media.avi"
5309 Would add a sub-woofer channel with a cutoff frequency of
5310 100Hz to output channel 4.
5312 .PD 1
5315 .B "center\ "
5316 Creates a center channel from the front channels.
5317 May currently be low quality as it does not implement a
5318 high-pass filter for proper extraction yet, but averages and
5319 halves the channels instead.
5320 .PD 0
5321 .RSs
5322 .IPs "<ch>\ "
5323 Determines the channel number in which to insert the center channel.
5324 Channel number can be between 0 and 7 (default: 5).
5325 Observe that the number of channels will automatically
5326 be increased to <ch> if necessary.
5328 .PD 1
5331 .B surround[=delay]
5332 Decoder for matrix encoded surround sound like Dolby Surround.
5333 Many files with 2 channel audio actually contain matrixed surround sound.
5334 Requires a sound card supporting at least 4 channels.
5335 .PD 0
5336 .RSs
5337 .IPs <delay>
5338 delay time in ms for the rear speakers (0 to 1000) (default: 20)
5339 This delay should be set as follows: If d1 is the distance
5340 from the listening position to the front speakers and d2 is the distance
5341 from the listening position to the rear speakers, then the delay should
5342 be set to 15ms if d1 <= d2 and to 15 + 5*(d1-d2) if d1 > d2.
5344 .sp 1
5346 .I EXAMPLE:
5348 .RSs
5349 .IPs "mplayer \-af surround=15 \-channels 4 media.avi"
5350 Would add surround sound decoding with 15ms delay for the sound to the
5351 rear speakers.
5353 .PD 1
5356 .B delay[=ch1:ch2:...]
5357 Delays the sound to the loudspeakers such that the sound from the
5358 different channels arrives at the listening position simultaneously.
5359 It is only useful if you have more than 2 loudspeakers.
5360 .PD 0
5361 .RSs
5362 .IPs ch1,ch2,...
5363 The delay in ms that should be imposed on each channel
5364 (floating point number between 0 and 1000).
5366 .PD 1
5367 .sp 1
5369 To calculate the required delay for the different channels do as follows:
5370 .IP 1. 3
5371 Measure the distance to the loudspeakers in meters in relation
5372 to your listening position, giving you the distances s1 to s5
5373 (for a 5.1 system).
5374 There is no point in compensating for the subwoofer (you will not hear the
5375 difference anyway).
5376 .IP 2. 3
5377 Subtract the distances s1 to s5 from the maximum distance,
5378 i.e.\& s[i] = max(s) \- s[i]; i = 1...5.
5379 .IP 3.
5380 Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.
5382 .PD 0
5383 .sp 1
5385 .I EXAMPLE:
5387 .RSs
5388 .IPs "mplayer \-af delay=10.5:10.5:0:0:7:0 media.avi"
5389 Would delay front left and right by 10.5ms, the two rear channels
5390 and the sub by 0ms and the center channel by 7ms.
5392 .PD 1
5395 .B export[=mmapped_file[:nsamples]]
5396 Exports the incoming signal to other processes using memory mapping (mmap()).
5397 Memory mapped areas contain a header:
5398 .sp 1
5400 int nch                      /*number of channels*/
5401 int size                     /*buffer size*/
5402 unsigned long long counter   /*Used to keep sync, updated every
5403                                time new data is exported.*/
5405 .sp 1
5406 The rest is payload (non-interleaved) 16 bit data.
5407 .PD 0
5408 .RSs
5409 .IPs <mmapped_file>
5410 file to map data to (default: ~/.mplayer/\:mplayer-af_export)
5411 .IPs <nsamples>
5412 number of samples per channel (default: 512)
5414 .sp 1
5416 .I EXAMPLE:
5418 .RSs
5419 .IPs "mplayer \-af export=/tmp/mplayer-af_export:1024 media.avi"
5420 Would export 1024 samples per channel to '/tmp/mplayer-af_export'.
5422 .PD 1
5425 .B extrastereo[=mul]
5426 (Linearly) increases the difference between left and right channels
5427 which adds some sort of "live" effect to playback.
5428 .PD 0
5429 .RSs
5430 .IPs <mul>
5431 Sets the difference coefficient (default: 2.5).
5432 0.0 means mono sound (average of both channels), with 1.0 sound will be
5433 unchanged, with \-1.0 left and right channels will be swapped.
5435 .PD 1
5438 .B volnorm[=method:target]
5439 Maximizes the volume without distorting the sound.
5440 .PD 0
5441 .RSs
5442 .IPs <method>
5443 Sets the used method.
5444 .RSss
5445 1: Use a single sample to smooth the variations via the standard
5446 weighted mean over past samples (default).
5448 2: Use several samples to smooth the variations via the standard
5449 weighted mean over past samples.
5450 .REss
5451 .IPs <target>
5452 Sets the target amplitude as a fraction of the maximum for the
5453 sample type (default: 0.25).
5455 .PD 1
5458 .B ladspa=file:label[:controls...]
5459 Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
5460 This filter is reentrant, so multiple LADSPA plugins can be used at once.
5461 .PD 0
5462 .RSs
5463 .IPs <file>
5464 Specifies the LADSPA plugin library file.
5465 If LADSPA_PATH is set, it searches for the specified file.
5466 If it is not set, you must supply a fully specified pathname.
5467 .IPs <label>
5468 Specifies the filter within the library.
5469 Some libraries contain only one filter, but others contain many of them.
5470 Entering 'help' here, will list all available filters within the specified
5471 library, which eliminates the use of 'listplugins' from the LADSPA SDK.
5472 .IPs <controls>
5473 Controls are zero or more floating point values that determine the
5474 behavior of the loaded plugin (for example delay, threshold or gain).
5475 In verbose mode (add \-v to the MPlayer command line), all available controls
5476 and their valid ranges are printed.
5477 This eliminates the use of 'analyseplugin' from the LADSPA SDK.
5479 .PD 1
5482 .B "comp\ \ \ "
5483 Compressor/expander filter usable for microphone input.
5484 Prevents artifacts on very loud sound and raises the volume on
5485 very low sound.
5486 This filter is untested, maybe even unusable.
5489 .B "gate\ \ \ "
5490 Noise gate filter similar to the comp audio filter.
5491 This filter is untested, maybe even unusable.
5494 .B karaoke
5495 Simple voice removal filter exploiting the fact that voice is
5496 usually recorded with mono gear and later 'center' mixed onto
5497 the final audio stream.
5498 Beware that this filter will turn your signal into mono.
5499 Works well for 2 channel tracks; do not bother trying it
5500 on anything but 2 channel stereo.
5503 .B scaletempo[=option1:option2:...]
5504 Scales audio tempo without altering pitch, optionally synced to playback
5505 speed (default).
5507 This works by playing \'stride\' ms of audio at normal speed then
5508 consuming \'stride*scale\' ms of input audio.
5509 It pieces the strides together by blending \'overlap\'% of stride with
5510 audio following the previous stride.
5511 It optionally performs a short statistical analysis on the next \'search\'
5512 ms of audio to determine the best overlap position.
5513 .PD 0
5514 .RSs
5515 .IPs scale=<amount>
5516 Nominal amount to scale tempo.
5517 Scales this amount in addition to speed.
5518 (default: 1.0)
5519 .IPs stride=<amount>
5520 Length in milliseconds to output each stride.
5521 Too high of value will cause noticable skips at high scale amounts and
5522 an echo at low scale amounts.
5523 Very low values will alter pitch.
5524 Increasing improves performance.
5525 (default: 60)
5526 .IPs overlap=<percent>
5527 Percentage of stride to overlap.
5528 Decreasing improves performance.
5529 (default: .20)
5530 .IPs search=<amount>
5531 Length in milliseconds to search for best overlap position.
5532 Decreasing improves performance greatly.
5533 On slow systems, you will probably want to set this very low.
5534 (default: 14)
5535 .IPs speed=<tempo|pitch|both|none>
5536 Set response to speed change.
5537 .RSss
5538 .IPs tempo
5539 Scale tempo in sync with speed (default).
5540 .IPs pitch
5541 Reverses effect of filter.
5542 Scales pitch without altering tempo.
5543 Add \'[ speed_mult 0.9438743126816935\' and \'] speed_mult 1.059463094352953\'
5544 to your input.conf to step by musical semi-tones.
5545 .I WARNING:
5546 Loses sync with video.
5547 .IPs both
5548 Scale both tempo and pitch.
5549 .IPs none
5550 Ignore speed changes.
5553 .sp 1
5555 .I EXAMPLE:
5557 .RSs
5558 .IPs "mplayer \-af scaletempo \-speed 1.2 media.ogg"
5559 Would playback media at 1.2x normal speed, with audio at normal pitch.
5560 Changing playback speed, would change audio tempo to match.
5561 .IPs "mplayer \-af scaletempo=scale=1.2:speed=none \-speed 1.2 media.ogg"
5562 Would playback media at 1.2x normal speed, with audio at normal pitch,
5563 but changing playback speed has no effect on audio tempo.
5564 .IPs "mplayer \-af scaletempo=stride=30:overlap=.50:search=10 media.ogg"
5565 Would tweak the quality and performace parameters.
5566 .IPs "mplayer \-af format=floatne,scaletempo media.ogg"
5567 Would make scaletempo use float code.
5568 Maybe faster on some platforms.
5569 .IPs "mplayer \-af scaletempo=scale=1.2:speed=pitch audio.ogg"
5570 Would playback audio file at 1.2x normal speed, with audio at normal pitch.
5571 Changing playback speed, would change pitch, leaving audio tempo at 1.2x.
5573 .PD 1
5576 .B "stats\ \ "
5577 Collects and prints statistics about the audio stream, especially the volume.
5578 These statistics are especially intended to help adjusting the volume while
5579 avoiding clipping.
5580 The volumes are printed in dB and compatible with the volume audio filter.
5584 .SH "VIDEO FILTERS"
5585 Video filters allow you to modify the video stream and its properties.
5586 The syntax is:
5589 .B \-vf <filter1[=parameter1:parameter2:...],filter2,...>
5590 Setup a chain of video filters.
5592 Many parameters are optional and set to default values if omitted.
5593 To explicitly use a default value set a parameter to '\-1'.
5594 Parameters w:h means width x height in pixels, x:y means x;y position counted
5595 from the upper left corner of the bigger image.
5597 .I NOTE:
5598 To get a full list of available video filters, see \-vf help.
5599 .sp 1
5600 Video filters are managed in lists.
5601 There are a few commands to manage the filter list.
5604 .B \-vf\-add <filter1[,filter2,...]>
5605 Appends the filters given as arguments to the filter list.
5608 .B \-vf\-pre <filter1[,filter2,...]>
5609 Prepends the filters given as arguments to the filter list.
5612 .B \-vf\-del <index1[,index2,...]>
5613 Deletes the filters at the given indexes.
5614 Index numbers start at 0, negative numbers address the end of the
5615 list (\-1 is the last).
5618 .B \-vf\-clr
5619 Completely empties the filter list.
5621 With filters that support it, you can access parameters by their name.
5624 .B \-vf <filter>=help
5625 Prints the parameter names and parameter value ranges for a particular
5626 filter.
5629 .B \-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
5630 Sets a named parameter to the given value.
5631 Use on and off or yes and no to set flag parameters.
5633 Available filters are:
5636 .B crop[=w:h:x:y]
5637 Crops the given part of the image and discards the rest.
5638 Useful to remove black bands from widescreen movies.
5639 .PD 0
5640 .RSs
5641 .IPs <w>,<h>
5642 Cropped width and height, defaults to original width and height.
5643 .IPs <x>,<y>
5644 Position of the cropped picture, defaults to center.
5646 .PD 1
5649 .B cropdetect[=limit:round[:reset]]
5650 Calculates necessary cropping parameters and prints the recommended parameters
5651 to stdout.
5652 .PD 0
5653 .RSs
5654 .IPs <limit>
5655 Threshold, which can be optionally specified from nothing (0) to
5656 everything (255) (default: 24).
5658 .IPs <round>
5659 Value which the width/\:height should be divisible by (default: 16).
5660 The offset is automatically adjusted to center the video.
5661 Use 2 to get only even dimensions (needed for 4:2:2 video).
5662 16 is best when encoding to most video codecs.
5664 .IPs <reset>
5665 Counter that determines after how many frames cropdetect will reset the
5666 previously detected largest video area and start over to detect the current
5667 optimal crop area (default: 0).
5668 This can be useful when channel logos distort the video area.
5669 0 indicates never reset and return the largest area encountered during playback.
5671 .PD 1
5674 .B rectangle[=w:h:x:y]
5675 Draws a rectangle of the requested width and height at the specified
5676 coordinates over the image and prints current rectangle parameters
5677 to the console.
5678 This can be used to find optimal cropping parameters.
5679 If you bind the input.conf directive 'change_rectangle' to keystrokes,
5680 you can move and resize the rectangle on the fly.
5681 .PD 0
5682 .RSs
5683 .IPs <w>,<h>
5684 width and height (default: \-1, maximum possible width where boundaries
5685 are still visible.)
5686 .IPs <x>,<y>
5687 top left corner position (default: \-1, uppermost leftmost)
5689 .PD 1
5692 .B expand[=w:h:x:y:o:a:r]
5693 Expands (not scales) movie resolution to the given value and places the
5694 unscaled original at coordinates x, y.
5695 Can be used for placing subtitles/\:OSD in the resulting black bands.
5696 .RSs
5697 .IPs <w>,<h>
5698 Expanded width,height (default: original width,height).
5699 Negative values for w and h are treated as offsets to the original size.
5700 .sp 1
5701 .I EXAMPLE:
5702 .PD 0
5703 .RSs
5704 .IP expand=0:\-50:0:0
5705 Adds a 50 pixel border to the bottom of the picture.
5707 .PD 1
5708 .IPs <x>,<y>
5709 position of original image on the expanded image (default: center)
5710 .IPs "<o>\ \ "
5711 OSD/\:subtitle rendering
5712 .RSss
5713 0: disable (default)
5715 1: enable
5716 .REss
5717 .IPs "<a>\ \ "
5718 Expands to fit an aspect instead of a resolution (default: 0).
5719 .sp 1
5720 .I EXAMPLE:
5721 .PD 0
5722 .RSs
5723 .IP expand=800:::::4/3
5724 Expands to 800x600, unless the source is higher resolution, in which
5725 case it expands to fill a 4/3 aspect.
5727 .PD 1
5728 .IPs "<r>\ \ "
5729 Rounds up to make both width and height divisible by <r> (default: 1).
5733 .B flip (also see \-flip)
5734 Flips the image upside down.
5737 .B "mirror\ "
5738 Mirrors the image on the Y axis.
5741 .B rotate[=<0\-7>]
5742 Rotates the image by 90 degrees and optionally flips it.
5743 For values between 4\-7 rotation is only done if the movie geometry is
5744 portrait and not landscape.
5745 .RSs
5746 .IPs 0
5747 Rotate by 90 degrees clockwise and flip (default).
5748 .IPs 1
5749 Rotate by 90 degrees clockwise.
5750 .IPs 2
5751 Rotate by 90 degrees counterclockwise.
5752 .IPs 3
5753 Rotate by 90 degrees counterclockwise and flip.
5757 .B scale[=w:h[:interlaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]
5758 Scales the image with the software scaler (slow) and performs a YUV<\->RGB
5759 colorspace conversion (also see \-sws).
5760 .RSs
5761 .IPs <w>,<h>
5762 scaled width/\:height (default: original width/\:height)
5764 .I NOTE:
5765 If \-zoom is used, and underlying filters (including libvo) are
5766 incapable of scaling, it defaults to d_width/\:d_height!
5767 .RSss
5768  0:   scaled d_width/\:d_height
5770 \-1:   original width/\:height
5772 \-2:   Calculate w/h using the other dimension and the prescaled aspect ratio.
5774 \-3:   Calculate w/h using the other dimension and the original aspect ratio.
5776 \-(n+8): Like \-n above, but rounding the dimension to the closest multiple of 16.
5777 .REss
5778 .IPs <interlaced>
5779 Toggle interlaced scaling.
5780 .RSss
5781 0: off (default)
5783 1: on
5784 .REss
5785 .IPs <chr_drop>
5786 chroma skipping
5787 .RSss
5788 0: Use all available input lines for chroma.
5790 1: Use only every 2. input line for chroma.
5792 2: Use only every 4. input line for chroma.
5794 3: Use only every 8. input line for chroma.
5795 .REss
5796 .IPs "<par>[:<par2>] (also see \-sws)"
5797 Set some scaling parameters depending on the type of scaler selected
5798 with \-sws.
5799 .RSss
5800 \-sws 2 (bicubic):  B (blurring) and C (ringing)
5802 0.00:0.60 default
5804 0.00:0.75 VirtualDub's "precise bicubic"
5806 0.00:0.50 Catmull-Rom spline
5808 0.33:0.33 Mitchell-Netravali spline
5810 1.00:0.00 cubic B-spline
5812 \-sws 7 (gaussian): sharpness (0 (soft) \- 100 (sharp))
5814 \-sws 9 (lanczos):  filter length (1\-10)
5815 .REss
5816 .IPs <presize>
5817 Scale to preset sizes.
5818 .RSss
5819 qntsc:   352x240 (NTSC quarter screen)
5821 qpal:    352x288 (PAL quarter screen)
5823 ntsc:    720x480 (standard NTSC)
5825 pal:     720x576 (standard PAL)
5827 sntsc:   640x480 (square pixel NTSC)
5829 spal:    768x576 (square pixel PAL)
5830 .REss
5831 .IPs <noup>
5832 Disallow upscaling past the original dimensions.
5833 .RSss
5834 0: Allow upscaling (default).
5836 1: Disallow upscaling if one dimension exceeds its original value.
5838 2: Disallow upscaling if both dimensions exceed their original values.
5839 .REss
5840 .IPs <arnd>
5841 Accurate rounding for the vertical scaler, which may be faster
5842 or slower than the default rounding.
5843 .RSss
5844 0: Disable accurate rounding (default).
5846 1: Enable accurate rounding.
5847 .REss
5851 .B dsize[=aspect|w:h:aspect-method:r]
5852 Changes the intended display size/\:aspect at an arbitrary point in the
5853 filter chain.
5854 Aspect can be given as a fraction (4/3) or floating point number
5855 (1.33).
5856 Alternatively, you may specify the exact display width and height
5857 desired.
5858 Note that this filter does
5859 .B not
5860 do any scaling itself; it just affects
5861 what later scalers (software or hardware) will do when auto-scaling to
5862 correct aspect.
5863 .RSs
5864 .IPs <w>,<h>
5865 New display width and height.
5866 Can also be these special values:
5867 .RSss
5868  0:   original display width and height
5870 \-1:   original video width and height (default)
5872 \-2:   Calculate w/h using the other dimension and the original display
5873 aspect ratio.
5875 \-3:   Calculate w/h using the other dimension and the original video
5876 aspect ratio.
5877 .REss
5878 .sp 1
5879 .I EXAMPLE:
5880 .PD 0
5881 .RSs
5882 .IP dsize=800:\-2
5883 Specifies a display resolution of 800x600 for a 4/3 aspect video, or
5884 800x450 for a 16/9 aspect video.
5886 .IPs <aspect-method>
5887 Modifies width and height according to original aspect ratios.
5888 .RSss
5889 \-1: Ignore original aspect ratio (default).
5891  0: Keep display aspect ratio by using <w> and <h> as maximum
5892 resolution.
5894  1: Keep display aspect ratio by using <w> and <h> as minimum
5895 resolution.
5897  2: Keep video aspect ratio by using <w> and <h> as maximum
5898 resolution.
5900  3: Keep video aspect ratio by using <w> and <h> as minimum
5901 resolution.
5902 .REss
5903 .sp 1
5904 .I EXAMPLE:
5905 .PD 0
5906 .RSs
5907 .IP dsize=800:600:0
5908 Specifies a display resolution of at most 800x600, or smaller, in order
5909 to keep aspect.
5911 .PD 1
5912 .IPs "<r>\ \ "
5913 Rounds up to make both width and height divisible by <r> (default: 1).
5917 .B "yvu9\ \ \ "
5918 Forces software YVU9 to YV12 colorspace conversion.
5919 Deprecated in favor of the software scaler.
5922 .B "yuvcsp\ "
5923 Clamps YUV color values to the CCIR 601 range without doing real conversion.
5926 .B palette
5927 RGB/BGR 8 \-> 15/16/24/32bpp colorspace conversion using palette.
5930 .B format[=fourcc[:outfourcc]]
5931 Restricts the colorspace for the next filter without doing any conversion.
5932 Use together with the scale filter for a real conversion.
5934 .I NOTE:
5935 For a list of available formats see format=fmt=help.
5936 .PD 0
5937 .RSs
5938 .IPs <fourcc>
5939 format name like rgb15, bgr24, yv12, etc (default: yuy2)
5940 .IPs <outfourcc>
5941 Format name that should be substituted for the output.
5942 If this is not 100% compatible with the <fourcc> value it will crash.
5944 Valid examples:
5946 format=rgb24:bgr24 format=yuyv:yuy2
5948 Invalid examples (will crash):
5950 format=rgb24:yv12
5952 .PD 1
5955 .B noformat[=fourcc]
5956 Restricts the colorspace for the next filter without doing any conversion.
5957 Unlike the format filter, this will allow any colorspace
5958 .B except
5959 the one you specify.
5961 .I NOTE:
5962 For a list of available formats see noformat=fmt=help.
5963 .PD 0
5964 .RSs
5965 .IPs <fourcc>
5966 format name like rgb15, bgr24, yv12, etc (default: yv12)
5968 .PD 1
5971 .B pp[=filter1[:option1[:option2...]]/[\-]filter2...] (also see \-pphelp)
5972 Enables the specified chain of postprocessing subfilters.
5973 Subfilters must be separated by '/' and can be disabled by
5974 prepending a '\-'.
5975 Each subfilter and some options have a short and a long name that can be
5976 used interchangeably, i.e.\& dr/dering are the same.
5977 All subfilters share common options to determine their scope:
5978 .PD 0
5979 .RSs
5980 .IPs a/autoq
5981 Automatically switch the subfilter off if the CPU is too slow.
5982 .IPs c/chrom
5983 Do chrominance filtering, too (default).
5984 .IPs y/nochrom
5985 Do luminance filtering only (no chrominance).
5986 .IPs n/noluma
5987 Do chrominance filtering only (no luminance).
5989 .PD 1
5990 .sp 1
5993 .I NOTE:
5994 \-pphelp shows a list of available subfilters.
5995 .sp 1
5996 Available subfilters are
5998 .RSs
5999 .IPs hb/hdeblock[:difference[:flatness]]
6000 horizontal deblocking filter
6001 .RSss
6002 <difference>: Difference factor where higher values mean
6003 more deblocking (default: 32).
6005 <flatness>: Flatness threshold where lower values mean
6006 more deblocking (default: 39).
6007 .REss
6008 .IPs vb/vdeblock[:difference[:flatness]]
6009 vertical deblocking filter
6010 .RSss
6011 <difference>: Difference factor where higher values mean
6012 more deblocking (default: 32).
6014 <flatness>: Flatness threshold where lower values mean
6015 more deblocking (default: 39).
6016 .REss
6017 .IPs ha/hadeblock[:difference[:flatness]]
6018 accurate horizontal deblocking filter
6019 .RSss
6020 <difference>: Difference factor where higher values mean
6021 more deblocking (default: 32).
6023 <flatness>: Flatness threshold where lower values mean
6024 more deblocking (default: 39).
6025 .REss
6026 .IPs va/vadeblock[:difference[:flatness]]
6027 accurate vertical deblocking filter
6028 .RSss
6029 <difference>: Difference factor where higher values mean
6030 more deblocking (default: 32).
6032 <flatness>: Flatness threshold where lower values mean
6033 more deblocking (default: 39).
6034 .REss
6035 .sp 1
6036 The horizontal and vertical deblocking filters share the
6037 difference and flatness values so you cannot set
6038 different horizontal and vertical thresholds.
6039 .sp 1
6040 .IPs h1/x1hdeblock
6041 experimental horizontal deblocking filter
6042 .IPs v1/x1vdeblock
6043 experimental vertical deblocking filter
6044 .IPs dr/dering
6045 deringing filter
6046 .IPs tn/tmpnoise[:threshold1[:threshold2[:threshold3]]]
6047 temporal noise reducer
6048 .RSss
6049 <threshold1>: larger -> stronger filtering
6051 <threshold2>: larger -> stronger filtering
6053 <threshold3>: larger -> stronger filtering
6054 .REss
6055 .IPs al/autolevels[:f/fullyrange]
6056 automatic brightness / contrast correction
6057 .RSss
6058 f/fullyrange: Stretch luminance to (0\-255).
6059 .REss
6060 .IPs lb/linblenddeint
6061 Linear blend deinterlacing filter that deinterlaces the given block
6062 by filtering all lines with a (1 2 1) filter.
6063 .IPs li/linipoldeint
6064 Linear interpolating deinterlacing filter that deinterlaces the given block
6065 by linearly interpolating every second line.
6066 .IPs ci/cubicipoldeint
6067 Cubic interpolating deinterlacing filter deinterlaces the given block
6068 by cubically interpolating every second line.
6069 .IPs md/mediandeint
6070 Median deinterlacing filter that deinterlaces the given block
6071 by applying a median filter to every second line.
6072 .IPs fd/ffmpegdeint
6073 FFmpeg deinterlacing filter that deinterlaces the given block
6074 by filtering every second line with a (\-1 4 2 4 \-1) filter.
6075 .IPs l5/lowpass5
6076 Vertically applied FIR lowpass deinterlacing filter that deinterlaces
6077 the given block by filtering all lines with a (\-1 2 6 2 \-1) filter.
6078 .IPs fq/forceQuant[:quantizer]
6079 Overrides the quantizer table from the input with the constant
6080 quantizer you specify.
6081 .RSss
6082 <quantizer>: quantizer to use
6083 .REss
6084 .IPs de/default
6085 default pp filter combination (hb:a,vb:a,dr:a)
6086 .IPs fa/fast
6087 fast pp filter combination (h1:a,v1:a,dr:a)
6088 .IPs "ac\ \ \ "
6089 high quality pp filter combination (ha:a:128:7,va:a,dr:a)
6092 .sp 1
6093 .I EXAMPLE:
6095 .PD 0
6096 .RSs
6097 .IPs "\-vf pp=hb/vb/dr/al"
6098 horizontal and vertical deblocking, deringing and automatic
6099 brightness/\:contrast
6100 .IPs "\-vf pp=de/\-al"
6101 default filters without brightness/\:contrast correction
6102 .IPs "\-vf pp=default/tmpnoise:1:2:3"
6103 Enable default filters & temporal denoiser.
6104 .IPs "\-vf pp=hb:y/vb:a"
6105 Horizontal deblocking on luminance only, and switch vertical deblocking
6106 on or off automatically depending on available CPU time.
6108 .PD 1
6111 .B spp[=quality[:qp[:mode]]]
6112 Simple postprocessing filter that compresses and decompresses the
6113 image at several (or \- in the case of quality level 6 \- all)
6114 shifts and averages the results.
6115 .RSs
6116 .IPs <quality>
6117 0\-6 (default: 3)
6118 .IPs "<qp>\ "
6119 Force quantization parameter (default: 0, use QP from video).
6120 .IPs <mode>
6121 0: hard thresholding (default)
6123 1: soft thresholding (better deringing, but blurrier)
6125 4: like 0, but also use B-frames' QP (may cause flicker)
6127 5: like 1, but also use B-frames' QP (may cause flicker)
6131 .B uspp[=quality[:qp]]
6132 Ultra simple & slow postprocessing filter that compresses and
6133 decompresses the image at several (or \- in the case of quality
6134 level 8 \- all) shifts and averages the results.
6135 The way this differs from the behavior of spp is that uspp actually
6136 encodes & decodes each case with libavcodec Snow, whereas spp uses
6137 a simplified intra only 8x8 DCT similar to MJPEG.
6138 .RSs
6139 .IPs <quality>
6140 0\-8 (default: 3)
6141 .IPs "<qp>\ "
6142 Force quantization parameter (default: 0, use QP from video).
6146 .B fspp[=quality[:qp[:strength[:bframes]]]]
6147 faster version of the simple postprocessing filter
6148 .RSs
6149 .IPs <quality>
6150 4\-5 (equivalent to spp; default: 4)
6151 .IPs "<qp>\ "
6152 Force quantization parameter (default: 0, use QP from video).
6153 .IPs <\-15\-32>
6154 Filter strength, lower values mean more details but also more artifacts,
6155 while higher values make the image smoother but also blurrier (default:
6156 0 \- PSNR optimal).
6157 .IPs <bframes>
6158 0: do not use QP from B-frames (default)
6160 1: use QP from B-frames too (may cause flicker)
6164 .B pp7[=qp[:mode]]
6165 Variant of the spp filter, similar to spp=6 with 7 point DCT where
6166 only the center sample is used after IDCT.
6167 .RSs
6168 .IPs "<qp>\ "
6169 Force quantization parameter (default: 0, use QP from video).
6170 .IPs <mode>
6171 0: hard thresholding
6173 1: soft thresholding (better deringing, but blurrier)
6175 2: medium thresholding (default, good results)
6179 .B qp=equation
6180 quantization parameter (QP) change filter
6181 .RSs
6182 .IPs <equation>
6183 some equation like "2+2*sin(PI*qp)"
6187 .B geq=equation
6188 generic equation change filter
6189 .RSs
6190 .IPs <equation>
6191 Some equation, e.g.\&  'p(W-X\\,Y)' to flip the image horizontally.
6192 You can use whitespace to make the equation more readable.
6193 There are a couple of constants that can be used in the equation:
6194 .RSss
6195 PI: the number pi
6197 E: the number e
6199 X / Y: the coordinates of the current sample
6201 W / H: width and height of the image
6203 SW / SH: width/height scale depending on the currently filtered plane, e.g.\&
6204 1,1 and 0.5,0.5 for YUV 4:2:0.
6206 p(x,y): returns the value of the pixel at location x/y of the current plane.
6207 .REss
6211 .B "test\ \ \ "
6212 Generate various test patterns.
6215 .B rgbtest[=width:height]
6216 Generate an RGB test pattern useful for detecting RGB vs BGR issues.
6217 You should see a red, green and blue stripe from top to bottom.
6218 .RSs
6219 .IPs <width>
6220 Desired width of generated image (default: 0).
6221 0 means width of input image.
6223 .IPs <height>
6224 Desired height of generated image (default: 0).
6225 0 means height of input image.
6229 .B lavc[=quality:fps]
6230 Fast software YV12 to MPEG-1 conversion with libavcodec for use with DVB/\:DXR3/\:IVTV/\:V4L2.
6231 .RSs
6232 .IPs <quality>
6233 1\-31: fixed qscale
6235 32\-:  fixed bitrate in kbits
6236 .IPs <fps>
6237 force output fps (float value) (default: 0, autodetect based on height)
6241 .B dvbscale[=aspect]
6242 Set up optimal scaling for DVB cards, scaling the x axis in hardware and
6243 calculating the y axis scaling in software to keep aspect.
6244 Only useful together with expand and scale.
6245 .RSs
6246 .IPs <aspect>
6247 Control aspect ratio, calculate as DVB_HEIGHT*ASPECTRATIO (default:
6248 576*4/3=768), set it to 576*(16/9)=1024 for a 16:9 TV.
6250 .sp 1
6252 .I EXAMPLE:
6254 .PD 0
6255 .RSs
6256 .IPs "\-vf dvbscale,scale=\-1:0,expand=\-1:576:\-1:\-1:1,lavc"
6257 FIXME: Explain what this does.
6259 .PD 1
6262 .B noise[=luma[u][t|a][h][p]:chroma[u][t|a][h][p]]
6263 Adds noise.
6264 .PD 0
6265 .RSs
6266 .IPs <0\-100>
6267 luma noise
6268 .IPs <0\-100>
6269 chroma noise
6270 .IPs u
6271 uniform noise (gaussian otherwise)
6272 .IPs t
6273 temporal noise (noise pattern changes between frames)
6274 .IPs a
6275 averaged temporal noise (smoother, but a lot slower)
6276 .IPs h
6277 high quality (slightly better looking, slightly slower)
6278 .IPs p
6279 mix random noise with a (semi)regular pattern
6281 .PD 1
6284 .B denoise3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6285 This filter aims to reduce image noise producing smooth images and making still
6286 images really still (This should enhance compressibility.).
6287 .PD 0
6288 .RSs
6289 .IPs <luma_spatial>
6290 spatial luma strength (default: 4)
6291 .IPs <chroma_spatial>
6292 spatial chroma strength (default: 3)
6293 .IPs <luma_tmp>
6294 luma temporal strength (default: 6)
6295 .IPs <chroma_tmp>
6296 chroma temporal strength (default: luma_tmp*chroma_spatial/luma_spatial)
6298 .PD 1
6301 .B hqdn3d[=luma_spatial:chroma_spatial:luma_tmp:chroma_tmp]
6302 High precision/\:quality version of the denoise3d filter.
6303 Parameters and usage are the same.
6306 .B ow[=depth[:luma_strength[:chroma_strength]]]
6307 Overcomplete Wavelet denoiser.
6308 .PD 0
6309 .RSs
6310 .IPs <depth>
6311 Larger depth values will denoise lower frequency components more, but
6312 slow down filtering (default: 8).
6313 .IPs <luma_strength>
6314 luma strength (default: 1.0)
6315 .IPs <chroma_strength>
6316 chroma strength (default: 1.0)
6318 .PD 1
6321 .B eq[=brightness:contrast] (OBSOLETE)
6322 Software equalizer with interactive controls just like the hardware
6323 equalizer, for cards/\:drivers that do not support brightness and
6324 contrast controls in hardware.
6325 .PD 0
6326 .RSs
6327 .IPs <\-100\-100>
6328 initial brightness
6329 .IPs <\-100\-100>
6330 initial contrast
6332 .PD 1
6335 .B eq2[=gamma:contrast:brightness:saturation:rg:gg:bg:weight]
6336 Alternative software equalizer that uses lookup tables (very slow),
6337 allowing gamma correction in addition to simple brightness
6338 and contrast adjustment.
6339 Note that it uses the same MMX optimized code as \-vf eq if all
6340 gamma values are 1.0.
6341 The parameters are given as floating point values.
6342 .PD 0
6343 .RSs
6344 .IPs <0.1\-10>
6345 initial gamma value (default: 1.0)
6346 .IPs <\-2\-2>
6347 initial contrast, where negative values result in a
6348 negative image (default: 1.0)
6349 .IPs <\-1\-1>
6350 initial brightness (default: 0.0)
6351 .IPs <0\-3>
6352 initial saturation (default: 1.0)
6353 .IPs <0.1\-10>
6354 gamma value for the red component (default: 1.0)
6355 .IPs <0.1\-10>
6356 gamma value for the green component (default: 1.0)
6357 .IPs <0.1\-10>
6358 gamma value for the blue component (default: 1.0)
6359 .IPs <0\-1>
6360 The weight parameter can be used to reduce the effect of a high gamma value on
6361 bright image areas, e.g.\& keep them from getting overamplified and just plain
6362 white.
6363 A value of 0.0 turns the gamma correction all the way down while 1.0 leaves it
6364 at its full strength (default: 1.0).
6366 .PD 1
6369 .B hue[=hue:saturation]
6370 Software equalizer with interactive controls just like the hardware
6371 equalizer, for cards/\:drivers that do not support hue and
6372 saturation controls in hardware.
6373 .PD 0
6374 .RSs
6375 .IPs <\-180\-180>
6376 initial hue (default: 0.0)
6377 .IPs <\-100\-100>
6378 initial saturation, where negative values result
6379 in a negative chroma (default: 1.0)
6381 .PD 1
6384 .B halfpack[=f]
6385 Convert planar YUV 4:2:0 to half-height packed 4:2:2, downsampling luma but
6386 keeping all chroma samples.
6387 Useful for output to low-resolution display devices when hardware downscaling
6388 is poor quality or is not available.
6389 Can also be used as a primitive luma-only deinterlacer with very low CPU
6390 usage.
6391 .PD 0
6392 .RSs
6393 .IPs "<f>\ \ "
6394 By default, halfpack averages pairs of lines when downsampling.
6395 Any value different from 0 or 1 gives the default (averaging) behavior.
6396 .RSss
6397 0: Only use even lines when downsampling.
6399 1: Only use odd lines when downsampling.
6400 .REss
6402 .PD 1
6405 .B ilpack[=mode]
6406 When interlaced video is stored in YUV 4:2:0 formats, chroma
6407 interlacing does not line up properly due to vertical downsampling of
6408 the chroma channels.
6409 This filter packs the planar 4:2:0 data into YUY2 (4:2:2) format with
6410 the chroma lines in their proper locations, so that in any given
6411 scanline, the luma and chroma data both come from the same field.
6412 .PD 0
6413 .RSs
6414 .IPs <mode>
6415 Select the sampling mode.
6416 .RSss
6417 0: nearest-neighbor sampling, fast but incorrect
6419 1: linear interpolation (default)
6420 .REss
6422 .PD 1
6425 .B decimate[=max:hi:lo:frac]
6426 Drops frames that do not differ greatly from the previous frame in
6427 order to reduce framerate.
6428 The main use of this filter is for very-low-bitrate encoding (e.g.\&
6429 streaming over dialup modem), but it could in theory be used for
6430 fixing movies that were inverse-telecined incorrectly.
6431 .PD 0
6432 .RSs
6433 .IPs <max>
6434 Sets the maximum number of consecutive frames which can be
6435 dropped (if positive), or the minimum interval between
6436 dropped frames (if negative).
6437 .IPs <hi>,<lo>,<frac>
6438 A frame is a candidate for dropping if no 8x8 region differs by more
6439 than a threshold of <hi>, and if not more than <frac> portion (1
6440 meaning the whole image) differs by more than a threshold of <lo>.
6441 Values of <hi> and <lo> are for 8x8 pixel blocks and represent actual
6442 pixel value differences, so a threshold of 64 corresponds to 1 unit of
6443 difference for each pixel, or the same spread out differently over the
6444 block.
6446 .PD 1
6449 .B dint[=sense:level]
6450 The drop-deinterlace (dint) filter detects and drops the first from a set
6451 of interlaced video frames.
6452 .PD 0
6453 .RSs
6454 .IPs <0.0\-1.0>
6455 relative difference between neighboring pixels (default: 0.1)
6456 .IPs <0.0\-1.0>
6457 What part of the image has to be detected as interlaced to
6458 drop the frame (default: 0.15).
6460 .PD 1
6463 .B lavcdeint (OBSOLETE)
6464 FFmpeg deinterlacing filter, same as \-vf pp=fd
6467 .B kerndeint[=thresh[:map[:order[:sharp[:twoway]]]]]
6468 Donald Graft's adaptive kernel deinterlacer.
6469 Deinterlaces parts of a video if a configurable threshold is exceeded.
6470 .PD 0
6471 .RSs
6472 .IPs <0\-255>
6473 threshold (default: 10)
6474 .IPs <map>
6475 .RSss
6476 0: Ignore pixels exceeding the threshold (default).
6478 1: Paint pixels exceeding the threshold white.
6479 .REss
6480 .IPs <order>
6481 .RSss
6482 0: Leave fields alone (default).
6484 1: Swap fields.
6485 .REss
6486 .IPs <sharp>
6487 .RSss
6488 0: Disable additional sharpening (default).
6490 1: Enable additional sharpening.
6491 .REss
6492 .IPs <twoway>
6493 .RSss
6494 0: Disable twoway sharpening (default).
6496 1: Enable twoway sharpening.
6497 .REss
6499 .PD 1
6502 .B unsharp[=l|cWxH:amount[:l|cWxH:amount]]
6503 unsharp mask / gaussian blur
6504 .RSs
6505 .IPs "l\ \ \ \ "
6506 Apply effect on luma component.
6507 .IPs "c\ \ \ \ "
6508 Apply effect on chroma components.
6509 .IPs <width>x<height>
6510 width and height of the matrix, odd sized in both directions
6511 (min = 3x3, max = 13x11 or 11x13, usually something between 3x3 and 7x7)
6512 .IPs amount
6513 Relative amount of sharpness/\:blur to add to the image
6514 (a sane range should be \-1.5\-1.5).
6515 .RSss
6516 <0: blur
6518 >0: sharpen
6519 .REss
6523 .B "swapuv\ "
6524 Swap U & V plane.
6527 .B il[=d|i][s][:[d|i][s]]
6528 (De)interleaves lines.
6529 The goal of this filter is to add the ability to process interlaced images
6530 pre-field without deinterlacing them.
6531 You can filter your interlaced DVD and play it on a TV without breaking the
6532 interlacing.
6533 While deinterlacing (with the postprocessing filter) removes interlacing
6534 permanently (by smoothing, averaging, etc) deinterleaving splits the frame into
6535 2 fields (so called half pictures), so you can process (filter) them
6536 independently and then re-interleave them.
6537 .PD 0
6538 .RSs
6539 .IPs d
6540 deinterleave (placing one above the other)
6541 .IPs i
6542 interleave
6543 .IPs s
6544 swap fields (exchange even & odd lines)
6546 .PD 1
6549 .B fil[=i|d]
6550 (De)interleaves lines.
6551 This filter is very similar to the il filter but much faster, the main
6552 disadvantage is that it does not always work.
6553 Especially if combined with other filters it may produce randomly messed
6554 up images, so be happy if it works but do not complain if it does not for
6555 your combination of filters.
6556 .PD 0
6557 .RSs
6558 .IPs d
6559 Deinterleave fields, placing them side by side.
6560 .IPs i
6561 Interleave fields again (reversing the effect of fil=d).
6563 .PD 1
6566 .B field[=n]
6567 Extracts a single field from an interlaced image using stride arithmetic
6568 to avoid wasting CPU time.
6569 The optional argument n specifies whether to extract the even or the odd
6570 field (depending on whether n is even or odd).
6573 .B detc[=var1=value1:var2=value2:...]
6574 Attempts to reverse the 'telecine' process to recover a clean,
6575 non-interlaced stream at film framerate.
6576 This was the first and most primitive inverse telecine filter to be
6577 added to MPlayer.
6578 It works by latching onto the telecine 3:2 pattern and following it as
6579 long as possible.
6580 This makes it suitable for perfectly-telecined material, even in the
6581 presence of a fair degree of noise, but it will fail in the presence
6582 of complex post-telecine edits.
6583 Development on this filter is no longer taking place, as ivtc, pullup,
6584 and filmdint are better for most applications.
6585 The following arguments (see syntax above) may be used to control
6586 detc's behavior:
6587 .RSs
6588 .IPs "<dr>\ "
6589 Set the frame dropping mode.
6590 .RSss
6591 0: Do not drop frames to maintain fixed output framerate (default).
6593 1: Always drop a frame when there have been no drops or telecine
6594 merges in the past 5 frames.
6596 2: Always maintain exact 5:4 input to output frame ratio.
6597 .REss
6598 .IPs "<am>\ "
6599 Analysis mode.
6600 .RSss
6601 0: Fixed pattern with initial frame number specified by <fr>.
6603 1: aggressive search for telecine pattern (default)
6604 .REss
6605 .IPs "<fr>\ "
6606 Set initial frame number in sequence.
6607 0\-2 are the three clean progressive frames; 3 and 4 are the two
6608 interlaced frames.
6609 The default, \-1, means 'not in telecine sequence'.
6610 The number specified here is the type for the imaginary previous
6611 frame before the movie starts.
6612 .IPs "<t0>, <t1>, <t2>, <t3>"
6613 Threshold values to be used in certain modes.
6617 .B ivtc[=1]
6618 Experimental 'stateless' inverse telecine filter.
6619 Rather than trying to lock on to a pattern like the detc filter does,
6620 ivtc makes its decisions independently for each frame.
6621 This will give much better results for material that has undergone
6622 heavy editing after telecine was applied, but as a result it is not as
6623 forgiving of noisy input, for example TV capture.
6624 The optional parameter (ivtc=1) corresponds to the dr=1 option for the
6625 detc filter, and should not be used with MPlayer.
6626 Further development on ivtc has stopped, as the pullup and filmdint
6627 filters appear to be much more accurate.
6630 .B pullup[=jl:jr:jt:jb:sb:mp]
6631 Third-generation pulldown reversal (inverse telecine) filter,
6632 capable of handling mixed hard-telecine, 24000/1001 fps progressive, and 30000/1001
6633 fps progressive content.
6634 The pullup filter is designed to be much more robust than detc or
6635 ivtc, by taking advantage of future context in making its decisions.
6636 Like ivtc, pullup is stateless in the sense that it does not lock onto
6637 a pattern to follow, but it instead looks forward to the following
6638 fields in order to identify matches and rebuild progressive frames.
6639 It is still under development, but believed to be quite accurate.
6640 .RSs
6641 .IPs "jl, jr, jt, and jb"
6642 These options set the amount of "junk" to ignore at
6643 the left, right, top, and bottom of the image, respectively.
6644 Left/\:right are in units of 8 pixels, while top/\:bottom are in units of
6645 2 lines.
6646 The default is 8 pixels on each side.
6648 .IPs "sb (strict breaks)"
6649 Setting this option to 1 will reduce the chances of
6650 pullup generating an occasional mismatched frame, but it may also
6651 cause an excessive number of frames to be dropped during high motion
6652 sequences.
6653 Conversely, setting it to \-1 will make pullup match fields more
6654 easily.
6655 This may help processing of video where there is slight blurring
6656 between the fields, but may also cause there to be interlaced frames
6657 in the output.
6659 .IPs "mp (metric plane)"
6660 This option may be set to 1 or 2 to use a chroma
6661 plane instead of the luma plane for doing pullup's computations.
6662 This may improve accuracy on very clean source material, but more
6663 likely will decrease accuracy, especially if there is chroma noise
6664 (rainbow effect) or any grayscale video.
6665 The main purpose of setting mp to a chroma plane is to reduce CPU load
6666 and make pullup usable in realtime on slow machines.
6667 .REss
6670 .B filmdint[=options]
6671 Inverse telecine filter, similar to the pullup filter above.
6672 It is designed to handle any pulldown pattern, including mixed soft and
6673 hard telecine and limited support for movies that are slowed down or sped
6674 up from their original framerate for TV.
6675 Only the luma plane is used to find the frame breaks.
6676 If a field has no match, it is deinterlaced with simple linear
6677 approximation.
6678 If the source is MPEG-2, this must be the first filter to allow
6679 access to the field-flags set by the MPEG-2 decoder.
6680 Depending on the source MPEG, you may be fine ignoring this advice, as
6681 long as you do not see lots of "Bottom-first field" warnings.
6682 With no options it does normal inverse telecine.
6683 When this filter is used with MPlayer, it will result in an uneven
6684 framerate during playback, but it is still generally better than using
6685 pp=lb or no deinterlacing at all.
6686 Multiple options can be specified separated by /.
6687 .RSs
6688 .IPs crop=<w>:<h>:<x>:<y>
6689 Just like the crop filter, but faster, and works on mixed hard and soft
6690 telecined content as well as when y is not a multiple of 4.
6691 If x or y would require cropping fractional pixels from the chroma
6692 planes, the crop area is extended.
6693 This usually means that x and y must be even.
6694 .IPs io=<ifps>:<ofps>
6695 For each ifps input frames the filter will output ofps frames.
6696 This could be used to filter movies that are broadcast on TV at a frame
6697 rate different from their original framerate.
6698 .IPs luma_only=<n>
6699 If n is nonzero, the chroma plane is copied unchanged.
6700 This is useful for YV12 sampled TV, which discards one of the chroma
6701 fields.
6702 .IPs mmx2=<n>
6703 On x86, if n=1, use MMX2 optimized functions, if n=2, use 3DNow!
6704 optimized functions, otherwise, use plain C.
6705 If this option is not specified, MMX2 and 3DNow! are auto-detected, use
6706 this option to override auto-detection.
6707 .IPs fast=<n>
6708 The larger n will speed up the filter at the expense of accuracy.
6709 The default value is n=3.
6710 If n is odd, a frame immediately following a frame marked with the
6711 REPEAT_FIRST_FIELD MPEG flag is assumed to be progressive, thus filter
6712 will not spend any time on soft-telecined MPEG-2 content.
6713 This is the only effect of this flag if MMX2 or 3DNow! is available.
6714 Without MMX2 and 3DNow, if n=0 or 1, the same calculations will be used
6715 as with n=2 or 3.
6716 If n=2 or 3, the number of luma levels used to find the frame breaks is
6717 reduced from 256 to 128, which results in a faster filter without losing
6718 much accuracy.
6719 If n=4 or 5, a faster, but much less accurate metric will be used to
6720 find the frame breaks, which is more likely to misdetect high vertical
6721 detail as interlaced content.
6722 .IPs verbose=<n>
6723 If n is nonzero, print the detailed metrics for each frame.
6724 Useful for debugging.
6725 .IPs dint_thres=<n>
6726 Deinterlace threshold.
6727 Used during de-interlacing of unmatched frames.
6728 Larger value means less deinterlacing, use n=256 to completely turn off
6729 deinterlacing.
6730 Default is n=8.
6731 .IPs comb_thres=<n>
6732 Threshold for comparing a top and bottom fields.
6733 Defaults to 128.
6734 .IPs diff_thres=<n>
6735 Threshold to detect temporal change of a field.
6736 Default is 128.
6737 .IPs sad_thres=<n>
6738 Sum of Absolute Difference threshold, default is 64.
6742 .B divtc[=options]
6743 Inverse telecine for deinterlaced video.
6744 If 3:2-pulldown telecined video has lost one of the fields or is deinterlaced
6745 using a method that keeps one field and interpolates the other, the result is
6746 a juddering video that has every fourth frame duplicated.
6747 This filter is intended to find and drop those duplicates and restore the
6748 original film framerate.
6749 Two different modes are available:
6750 One pass mode is the default and is straightforward to use,
6751 but has the disadvantage that any changes in the telecine
6752 phase (lost frames or bad edits) cause momentary judder
6753 until the filter can resync again.
6754 Two pass mode avoids this by analyzing the whole video
6755 beforehand so it will have forward knowledge about the
6756 phase changes and can resync at the exact spot.
6757 These passes do
6758 .B not
6759 correspond to pass one and two of the encoding process.
6760 You must run an extra pass using divtc pass one before the
6761 actual encoding throwing the resulting video away.
6762 Use \-nosound \-ovc raw \-o /dev/null to avoid
6763 wasting CPU power for this pass.
6764 You may add something like crop=2:2:0:0 after divtc
6765 to speed things up even more.
6766 Then use divtc pass two for the actual encoding.
6767 If you use multiple encoder passes, use divtc
6768 pass two for all of them.
6769 The options are:
6770 .RSs
6771 .IPs pass=1|2
6772 Use two pass mode.
6773 .IPs file=<filename>
6774 Set the two pass log filename (default: "framediff.log").
6775 .IPs threshold=<value>
6776 Set the minimum strength the telecine pattern must have for the filter to
6777 believe in it (default: 0.5).
6778 This is used to avoid recognizing false pattern from the parts of the video
6779 that are very dark or very still.
6780 .IPs window=<numframes>
6781 Set the number of past frames to look at when searching for pattern
6782 (default: 30).
6783 Longer window improves the reliability of the pattern search, but shorter
6784 window improves the reaction time to the changes in the telecine phase.
6785 This only affects the one pass mode.
6786 The two pass mode currently uses fixed window that extends to both future
6787 and past.
6788 .IPs phase=0|1|2|3|4
6789 Sets the initial telecine phase for one pass mode (default: 0).
6790 The two pass mode can see the future, so it is able to use the correct
6791 phase from the beginning, but one pass mode can only guess.
6792 It catches the correct phase when it finds it, but this option can be used
6793 to fix the possible juddering at the beginning.
6794 The first pass of the two pass mode also uses this, so if you save the output
6795 from the first pass, you get constant phase result.
6796 .IPs deghost=<value>
6797 Set the deghosting threshold (0\-255 for one pass mode, \-255\-255 for two pass
6798 mode, default 0).
6799 If nonzero, deghosting mode is used.
6800 This is for video that has been deinterlaced by blending the fields
6801 together instead of dropping one of the fields.
6802 Deghosting amplifies any compression artifacts in the blended frames, so the
6803 parameter value is used as a threshold to exclude those pixels from
6804 deghosting that differ from the previous frame less than specified value.
6805 If two pass mode is used, then negative value can be used to make the
6806 filter analyze the whole video in the beginning of pass-2 to determine
6807 whether it needs deghosting or not and then select either zero or the
6808 absolute value of the parameter.
6809 Specify this option for pass-2, it makes no difference on pass-1.
6813 .B phase[=t|b|p|a|u|T|B|A|U][:v]
6814 Delay interlaced video by one field time so that the field order
6815 changes.
6816 The intended use is to fix PAL movies that have been captured with the
6817 opposite field order to the film-to-video transfer.
6818 The options are:
6819 .RSs
6820 .IPs t
6821 Capture field order top-first, transfer bottom-first.
6822 Filter will delay the bottom field.
6823 .IPs b
6824 Capture bottom-first, transfer top-first.
6825 Filter will delay the top field.
6826 .IPs p
6827 Capture and transfer with the same field order.
6828 This mode only exists for the documentation of the other options to refer to,
6829 but if you actually select it, the filter will faithfully do nothing ;-)
6830 .IPs a
6831 Capture field order determined automatically by field flags, transfer opposite.
6832 Filter selects among t and b modes on a frame by frame basis using field flags.
6833 If no field information is available, then this works just like u.
6834 .IPs u
6835 Capture unknown or varying, transfer opposite.
6836 Filter selects among t and b on a frame by frame basis by analyzing the
6837 images and selecting the alternative that produces best match between the
6838 fields.
6839 .IPs T
6840 Capture top-first, transfer unknown or varying.
6841 Filter selects among t and p using image analysis.
6842 .IPs B
6843 Capture bottom-first, transfer unknown or varying.
6844 Filter selects among b and p using image analysis.
6845 .IPs A
6846 Capture determined by field flags, transfer unknown or varying.
6847 Filter selects among t, b and p using field flags and image analysis.
6848 If no field information is available, then this works just like U.
6849 This is the default mode.
6850 .IPs U
6851 Both capture and transfer unknown or varying.
6852 Filter selects among t, b and p using image analysis only.
6853 .IPs v
6854 Verbose operation.
6855 Prints the selected mode for each frame and the average squared difference
6856 between fields for t, b, and p alternatives.
6860 .B telecine[=start]
6861 Apply 3:2 'telecine' process to increase framerate by 20%.
6862 This most likely will not work correctly with MPlayer.
6863 The optional start parameter tells the filter where in the telecine
6864 pattern to start (0\-3).
6867 .B tinterlace[=mode]
6868 Temporal field interlacing \- merge pairs of frames into an interlaced
6869 frame, halving the framerate.
6870 Even frames are moved into the upper field, odd frames to the lower field.
6871 This can be used to fully reverse the effect of the tfields filter (in mode 0).
6872 Available modes are:
6873 .PD 0
6874 .RSs
6875 .IPs 0
6876 Move odd frames into the upper field, even into the lower field, generating
6877 a full-height frame at half framerate.
6878 .IPs 1
6879 Only output odd frames, even frames are dropped; height unchanged.
6880 .IPs 2
6881 Only output even frames, odd frames are dropped; height unchanged.
6882 .IPs 3
6883 Expand each frame to full height, but pad alternate lines with black;
6884 framerate unchanged.
6885 .IPs 4
6886 Interleave even lines from even frames with odd lines from odd frames.
6887 Height unchanged at half framerate.
6889 .PD 1
6892 .B tfields[=mode[:field_dominance]]
6893 Temporal field separation \- split fields into frames, doubling the
6894 output framerate.
6895 .PD 0
6896 .RSs
6897 .IPs <mode>
6898 0: Leave fields unchanged (will jump/\:flicker).
6900 1: Interpolate missing lines. (The algorithm used might not be so good.)
6902 2: Translate fields by 1/4 pixel with linear interpolation (no jump).
6904 4: Translate fields by 1/4 pixel with 4tap filter (higher quality) (default).
6905 .IPs <field_dominance>\ (DEPRECATED)
6906 \-1: auto (default)
6907 Only works if the decoder exports the appropriate information and
6908 no other filters which discard that information come before tfields
6909 in the filter chain, otherwise it falls back to 0 (top field first).
6911 0: top field first
6913 1: bottom field first
6915 .I NOTE:
6916 This option will possibly be removed in a future version.
6917 Use \-field\-dominance instead.
6919 .PD 1
6922 .B yadif=[mode[:field_dominance]]
6923 Yet another deinterlacing filter
6924 .PD 0
6925 .RSs
6926 .IPs <mode>
6927 0: Output 1 frame for each frame.
6929 1: Output 1 frame for each field.
6931 2: Like 0 but skips spatial interlacing check.
6933 3: Like 1 but skips spatial interlacing check.
6934 .IPs <field_dominance>\ (DEPRECATED)
6935 Operates like tfields.
6937 .I NOTE:
6938 This option will possibly be removed in a future version.
6939 Use \-field\-dominance instead.
6941 .PD 1
6944 .B mcdeint=[mode[:parity[:qp]]]
6945 Motion compensating deinterlacer.
6946 It needs one field per frame as input and must thus be used together
6947 with tfields=1 or yadif=1/3 or equivalent.
6948 .PD 0
6949 .RSs
6950 .IPs <mode>
6951 0: fast
6953 1: medium
6955 2: slow, iterative motion estimation
6957 3: extra slow, like 2 plus multiple reference frames
6958 .IPs <parity>
6959 0 or 1 selects which field to use (note: no autodetection yet!).
6960 .IPs "<qp>\ "
6961 Higher values should result in a smoother motion vector
6962 field but less optimal individual vectors.
6964 .PD 1
6967 .B boxblur=radius:power[:radius:power]
6968 box blur
6969 .PD 0
6970 .RSs
6971 .IPs <radius>
6972 blur filter strength
6973 .IPs <power>
6974 number of filter applications
6976 .PD 1
6979 .B sab=radius:pf:colorDiff[:radius:pf:colorDiff]
6980 shape adaptive blur
6981 .PD 0
6982 .RSs
6983 .IPs <radius>
6984 blur filter strength (~0.1\-4.0) (slower if larger)
6985 .IPs "<pf>\ "
6986 prefilter strength (~0.1\-2.0)
6987 .IPs <colorDiff>
6988 maximum difference between pixels to still be considered (~0.1\-100.0)
6990 .PD 1
6993 .B smartblur=radius:strength:threshold[:radius:strength:threshold]
6994 smart blur
6995 .PD 0
6996 .RSs
6997 .IPs <radius>
6998 blur filter strength (~0.1\-5.0) (slower if larger)
6999 .IPs <strength>
7000 blur (0.0\-1.0) or sharpen (\-1.0\-0.0)
7001 .IPs <threshold>
7002 filter all (0), filter flat areas (0\-30) or filter edges (\-30\-0)
7004 .PD 1
7007 .B perspective=x0:y0:x1:y1:x2:y2:x3:y3:t
7008 Correct the perspective of movies not filmed perpendicular to the screen.
7009 .PD 0
7010 .RSs
7011 .IPs <x0>,<y0>,...
7012 coordinates of the top left, top right, bottom left, bottom right corners
7013 .IPs "<t>\ \ "
7014 linear (0) or cubic resampling (1)
7016 .PD 1
7019 .B "2xsai\ \ "
7020 Scale and smooth the image with the 2x scale and interpolate algorithm.
7023 .B "1bpp\ \ \ "
7024 1bpp bitmap to YUV/\:BGR 8/\:15/\:16/\:32 conversion
7027 .B down3dright[=lines]
7028 Reposition and resize stereoscopic images.
7029 Extracts both stereo fields and places them side by side, resizing
7030 them to maintain the original movie aspect.
7031 .PD 0
7032 .RSs
7033 .IPs <lines>
7034 number of lines to select from the middle of the image (default: 12)
7036 .PD 1
7039 .B bmovl=hidden:opaque:fifo
7040 The bitmap overlay filter reads bitmaps from a FIFO and displays them
7041 on top of the movie, allowing some transformations on the image.
7042 Also see TOOLS/bmovl-test.c for a small bmovl test program.
7043 .PD 0
7044 .RSs
7045 .IPs <hidden>
7046 Set the default value of the 'hidden' flag (0=visible, 1=hidden).
7047 .IPs <opaque>
7048 Set the default value of the 'opaque' flag (0=transparent, 1=opaque).
7049 .IPs <fifo>
7050 path/\:filename for the FIFO (named pipe connecting 'mplayer \-vf bmovl' to the
7051 controlling application)
7053 .PD 1
7054 .sp 1
7056 FIFO commands are:
7058 .PD 0
7059 .RSs
7060 .IPs "RGBA32 width height xpos ypos alpha clear"
7061 followed by width*height*4 Bytes of raw RGBA32 data.
7062 .IPs "ABGR32 width height xpos ypos alpha clear"
7063 followed by width*height*4 Bytes of raw ABGR32 data.
7064 .IPs "RGB24 width height xpos ypos alpha clear"
7065 followed by width*height*3 Bytes of raw RGB24 data.
7066 .IPs "BGR24 width height xpos ypos alpha clear"
7067 followed by width*height*3 Bytes of raw BGR24 data.
7068 .IPs "ALPHA width height xpos ypos alpha"
7069 Change alpha transparency of the specified area.
7070 .IPs "CLEAR width height xpos ypos"
7071 Clear area.
7072 .IPs OPAQUE
7073 Disable all alpha transparency.
7074 Send "ALPHA 0 0 0 0 0" to enable it again.
7075 .IPs "HIDE\ "
7076 Hide bitmap.
7077 .IPs "SHOW\ "
7078 Show bitmap.
7080 .PD 1
7081 .sp 1
7083 Arguments are:
7085 .PD 0
7086 .RSs
7087 .IPs "<width>, <height>"
7088 image/area size
7089 .IPs "<xpos>, <ypos>"
7090 Start blitting at position x/y.
7091 .IPs <alpha>
7092 Set alpha difference.
7093 If you set this to \-255 you can then send a sequence of ALPHA-commands to set
7094 the area to \-225, \-200, \-175 etc for a nice fade-in-effect! ;)
7095 .RSss
7096 0:    same as original
7098 255:  Make everything opaque.
7100 \-255: Make everything transparent.
7101 .REss
7102 .IPs <clear>
7103 Clear the framebuffer before blitting.
7104 .RSss
7105 0: The image will just be blitted on top of the old one, so you do not need to
7106 send 1.8MB of RGBA32 data every time a small part of the screen is updated.
7108 1: clear
7109 .REss
7111 .PD 1
7114 .B framestep=I|[i]step
7115 Renders only every nth frame or every intra frame (keyframe).
7116 .sp 1
7117 If you call the filter with I (uppercase) as the parameter, then
7118 .B only
7119 keyframes are rendered.
7120 For DVDs it generally means one in every 15/12 frames (IBBPBBPBBPBBPBB),
7121 for AVI it means every scene change or every keyint value.
7122 .sp 1
7123 When a keyframe is found, an 'I!' string followed by a newline character is
7124 printed, leaving the current line of MPlayer output on the screen, because it
7125 contains the time (in seconds) and frame number of the keyframe (You can use
7126 this information to split the AVI.).
7127 .sp 1
7128 If you call the filter with a numeric parameter 'step' then only one in
7129 every 'step' frames is rendered.
7130 .sp 1
7131 If you put an 'i' (lowercase) before the number then an 'I!' is printed
7132 (like the I parameter).
7133 .sp 1
7134 If you give only the i then nothing is done to the frames, only I! is
7135 printed.
7138 .B tile=xtiles:ytiles:output:start:delta
7139 Tile a series of images into a single, bigger image.
7140 If you omit a parameter or use a value less than 0, then the default
7141 value is used.
7142 You can also stop when you are satisfied (... \-vf tile=10:5 ...).
7143 It is probably a good idea to put the scale filter before the tile :-)
7144 .sp 1
7145 The parameters are:
7146 .sp 1
7147 .PD 0
7148 .RSs
7149 .IPs <xtiles>
7150 number of tiles on the x axis (default: 5)
7151 .IPs <ytiles>
7152 number of tiles on the y axis (default: 5)
7153 .IPs <output>
7154 Render the tile when 'output' number of frames are reached, where 'output'
7155 should be a number less than xtile * ytile.
7156 Missing tiles are left blank.
7157 You could, for example, write an 8 * 7 tile every 50 frames to have one
7158 image every 2 seconds @ 25 fps.
7159 .IPs <start>
7160 outer border thickness in pixels (default: 2)
7161 .IPs <delta>
7162 inner border thickness in pixels (default: 4)
7164 .PD 1
7167 .B delogo[=x:y:w:h:t]
7168 Suppresses a TV station logo by a simple interpolation of the
7169 surrounding pixels.
7170 Just set a rectangle covering the logo and watch it disappear (and
7171 sometimes something even uglier appear \- your mileage may vary).
7172 .PD 0
7173 .RSs
7174 .IPs <x>,<y>
7175 top left corner of the logo
7176 .IPs <w>,<h>
7177 width and height of the cleared rectangle
7178 .IPs <t>
7179 Thickness of the fuzzy edge of the rectangle (added to w and h).
7180 When set to \-1, a green rectangle is drawn on the screen to
7181 simplify finding the right x,y,w,h parameters.
7183 .PD 1
7186 .B remove\-logo=/path/to/logo_bitmap_file_name.pgm
7187 Suppresses a TV station logo, using a PGM or PPM image
7188 file to determine which pixels comprise the logo.
7189 The width and height of the image file must match
7190 those of the video stream being processed.
7191 Uses the filter image and a circular blur
7192 algorithm to remove the logo.
7193 .RSs
7194 .IPs /path/to/logo_bitmap_file_name.pgm
7195 [path] + filename of the filter image.
7199 .B screenshot
7200 Allows acquiring screenshots of the movie using slave mode
7201 commands that can be bound to keypresses.
7202 See the slave mode documentation and the INTERACTIVE CONTROL
7203 section for details.
7204 Files named 'shotNNNN.png' will be saved in the working directory,
7205 using the first available number \- no files will be overwritten.
7206 The filter has no overhead when not used and accepts an arbitrary
7207 colorspace, so it is safe to add it to the configuration file.
7208 Make sure that the screenshot filter is added after all other filters
7209 whose effect you want to record on the saved image.
7210 E.g.\& it should be the last filter if you want to have an exact
7211 screenshot of what you see on the monitor.
7215 .B "ass\ \ \ \ "
7216 Moves SSA/ASS subtitle rendering to an arbitrary point in the filter chain.
7217 Only useful with the \-ass option.
7218 .sp 1
7219 .I EXAMPLE:
7220 .PD 0
7221 .RSs
7222 .IPs "\-vf ass,screenshot"
7223 Moves SSA/ASS rendering before the screenshot filter.
7224 Screenshots taken this way will contain subtitles.
7226 .PD 1
7229 .B blackframe[=amount:threshold]
7230 Detect frames that are (almost) completely black.
7231 Can be useful to detect chapter transitions or commercials.
7232 Output lines consist of the frame number of the detected frame, the
7233 percentage of blackness, the frame type and the frame number of the last
7234 encountered keyframe.
7235 .RSs
7236 .IPs <amount>
7237 Percentage of the pixels that have to be below the threshold (default: 98).
7238 .IPs <threshold>
7239 Threshold below which a pixel value is considered black (default: 32).
7241 .PD 1
7244 .B stereo3d[=in:out]
7245 Stereo3d converts between different stereoscopic image formats.
7246 .RSs
7247 .IPs <in>
7248 Stereoscopic image format of input. Possible values:
7250 .B sbsl or side_by_side_left_first
7252 side by side parallel (left eye left, right eye right)
7254 .B sbsr or side_by_side_right_first
7256 side by side crosseye (right eye left, left eye right)
7258 .B abl or above_below_left_first
7260 above-below (left eye above, right eye below)
7262 .B abl or above_below_right_first
7264 above-below (right eye above, left eye below)
7266 .B ab2l or above_below_half_height_left_first
7268 above-below with half height resolution (left eye above, right eye below)
7270 .B ab2r or above_below_half_height_right_first
7272 above-below with half height resolution (right eye above, left eye below)
7275 .IPs <out>
7276 Stereoscopic image format of output. Possible values are all the input formats
7277 as well as:
7279 .B arcg or anaglyph_red_cyan_gray
7281 anaglyph red/cyan gray (red filter on left eye, cyan filter on right eye)
7283 .B arch or anaglyph_red_cyan_half_color
7285 anaglyph red/cyan half colored (red filter on left eye, cyan filter on right
7286 eye)
7288 .B arcc or anaglyph_red_cyan_color
7290 anaglyph red/cyan color (red filter on left eye, cyan filter on right eye)
7292 .B arcd or anaglyph_red_cyan_dubois
7294 anaglyph red/cyan color optimized with the least squares projection of dubois
7295 (red filter on left eye, cyan filter on right eye)
7297 .B agmg or anaglyph_green_magenta_gray
7299 anaglyph green/magenta gray (green filter on left eye, magenta filter on right
7300 eye)
7302 .B agmh or anaglyph_green_magenta_half_color
7304 anaglyph green/magenta half colored (green filter on left eye, magenta filter on
7305 right eye)
7307 .B agmc or anaglyph_green_magenta_color
7309 anaglyph green/magenta colored (green filter on left eye, magenta filter on
7310 right eye)
7312 .B aybg or anaglyph_yellow_blue_gray
7314 anaglyph yellow/blue gray (yellow filter on left eye, blue filter on right eye)
7316 .B aybh or anaglyph_yellow_blue_half_color
7318 anaglyph yellow/blue half colored (yellow filter on left eye, blue filter on
7319 right eye)
7321 .B aybc or anaglyph_yellow_blue_color
7323 anaglyph yellow/blue colored (yellow filter on left eye, blue filter on right
7324 eye)
7326 .B ml or mono_left
7328 mono output (left eye only)
7330 .B mr or mono_right
7332 mono output (right eye only)
7336 .PD 1
7339 .B gradfun[=strength[:radius]]
7340 Fix the banding artifacts that are sometimes introduced into nearly flat
7341 regions by truncation to 8bit colordepth.
7342 Interpolates the gradients that should go where the bands are, and
7343 dithers them.
7344 .sp 1
7345 This filter is designed for playback only.
7346 Do not use it prior to lossy compression, because compression tends
7347 to lose the dither and bring back the bands.
7348 .RSs
7349 .IPs <strength>
7350 Maximum amount by which the filter will change any one pixel.
7351 Also the threshold for detecting nearly flat regions (default: 1.2).
7352 .IPs <radius>
7353 Neighborhood to fit the gradient to.
7354 Larger radius makes for smoother gradients, but also prevents the filter
7355 from modifying pixels near detailed regions (default: 16).
7359 .B fixpts[=options]
7360 Fixes the presentation timestamps (PTS) of the frames.
7361 By default, the PTS passed to the next filter is dropped, but the following
7362 options can change that:
7363 .RSs
7364 .IPs print
7365 Print the incoming PTS.
7366 .IPs fps=<fps>
7367 Specify a frame per second value.
7368 .IPs start=<pts>
7369 Specify an initial value for the PTS.
7370 .IPs autostart=<n>
7371 Uses the
7372 .IR n th
7373 incoming PTS as the initial PTS.
7374 All previous PTS are kept, so setting a huge value or \-1 keeps the PTS
7375 intact.
7376 .IPs autofps=<n>
7377 Uses the
7378 .IR n th
7379 incoming PTS after the end of autostart to determine the framerate.
7381 .sp 1
7383 .I EXAMPLE:
7385 .PD 0
7386 .RSs
7387 .IPs "\-vf fixpts=fps=24000/1001,ass,fixpts"
7388 Generates a new sequence of PTS, uses it for ASS subtitles, then drops it.
7389 Generating a new sequence is useful when the timestamps are reset during the
7390 program; this is frequent on DVDs.
7391 Dropping it may be necessary to avoid confusing encoders.
7393 .PD 1
7394 .sp 1
7396 .I NOTE:
7397 Using this filter together with any sort of seeking (including -ss and EDLs)
7398 may make demons fly out of your nose.
7402 .\" --------------------------------------------------------------------------
7403 .\" environment variables
7404 .\" --------------------------------------------------------------------------
7406 .SH ENVIRONMENT VARIABLES
7408 There are a number of environment variables that can be used to
7409 control the behavior of MPlayer.
7412 .B MPLAYER_CHARSET (also see \-msgcharset)
7413 Convert console messages to the specified charset (default: autodetect).
7414 A value of "noconv" means no conversion.
7417 .B MPLAYER_HOME
7418 Directory where MPlayer looks for user settings.
7421 .B MPLAYER_LOCALEDIR
7422 Directory where MPlayer looks for gettext translation files (if enabled).
7425 .B MPLAYER_VERBOSE (also see \-v and \-msglevel)
7426 Set the initial verbosity level across all message modules (default: 0).
7427 The resulting verbosity corresponds to that of \-msglevel 5 plus the
7428 value of MPLAYER_VERBOSE.
7430 .SS libaf:
7433 .B LADSPA_PATH
7434 If LADSPA_PATH is set, it searches for the specified file.
7435 If it is not set, you must supply a fully specified pathname.
7436 FIXME: This is also mentioned in the ladspa section.
7438 .SS libdvdcss:
7441 .B DVDCSS_CACHE
7442 Specify a directory in which to store title key values.
7443 This will speed up descrambling of DVDs which are in the cache.
7444 The DVDCSS_CACHE directory is created if it does not exist,
7445 and a subdirectory is created named after the DVD's title
7446 or manufacturing date.
7447 If DVDCSS_CACHE is not set or is empty, libdvdcss will use
7448 the default value which is "${HOME}/.dvdcss/" under Unix and
7449 "C:\\Documents and Settings\\$USER\\Application Data\\dvdcss\\" under Win32.
7450 The special value "off" disables caching.
7453 .B DVDCSS_METHOD
7454 Sets the authentication and decryption method that
7455 libdvdcss will use to read scrambled discs.
7456 Can be one of title, key or disc.
7457 .PD 0
7458 .RSs
7459 .IPs "key\ \ "
7460 is the default method.
7461 libdvdcss will use a set of calculated player keys to try and get the disc key.
7462 This can fail if the drive does not recognize any of the player keys.
7463 .IPs "disc\ "
7464 is a fallback method when key has failed.
7465 Instead of using player keys, libdvdcss will crack the disc key using
7466 a brute force algorithm.
7467 This process is CPU intensive and requires 64 MB of memory to store
7468 temporary data.
7469 .IPs title
7470 is the fallback when all other methods have failed.
7471 It does not rely on a key exchange with the DVD drive, but rather uses
7472 a crypto attack to guess the title key.
7473 On rare cases this may fail because there is not enough encrypted data
7474 on the disc to perform a statistical attack, but in the other hand it
7475 is the only way to decrypt a DVD stored on a hard disc, or a DVD with
7476 the wrong region on an RPC2 drive.
7478 .PD 1
7481 .B DVDCSS_RAW_DEVICE
7482 Specify the raw device to use.
7483 Exact usage will depend on your operating system, the Linux
7484 utility to set up raw devices is raw(8) for instance.
7485 Please note that on most operating systems, using a raw device
7486 requires highly aligned buffers: Linux requires a 2048 bytes
7487 alignment (which is the size of a DVD sector).
7490 .B DVDCSS_VERBOSE
7491 Sets the libdvdcss verbosity level.
7492 .PD 0
7493 .RSs
7494 .IPs 0
7495 Outputs no messages at all.
7496 .IPs 1
7497 Outputs error messages to stderr.
7498 .IPs 2
7499 Outputs error messages and debug messages to stderr.
7501 .PD 1
7504 .B DVDREAD_NOKEYS
7505 Skip retrieving all keys on startup.
7506 Currently disabled.
7509 .B HOME
7510 FIXME: Document this.
7512 .SS libao2:
7515 .B AO_SUN_DISABLE_SAMPLE_TIMING
7516 FIXME: Document this.
7519 .B AUDIODEV
7520 FIXME: Document this.
7523 .B AUDIOSERVER
7524 Specifies the Network Audio System server to which the
7525 nas audio output driver should connect and the transport
7526 that should be used.
7527 If unset DISPLAY is used instead.
7528 The transport can be one of tcp and unix.
7529 Syntax is tcp/<somehost>:<someport>, <somehost>:<instancenumber>
7530 or [unix]:<instancenumber>.
7531 The NAS base port is 8000 and <instancenumber> is added to that.
7532 .sp 1
7534 .I EXAMPLES:
7536 .PD 0
7537 .RSs
7538 .IPs AUDIOSERVER=somehost:0
7539 Connect to NAS server on somehost using default port and transport.
7540 .IPs AUDIOSERVER=tcp/somehost:8000
7541 Connect to NAS server on somehost listening on TCP port 8000.
7542 .IPs AUDIOSERVER=(unix)?:0
7543 Connect to NAS server instance 0 on localhost using unix domain sockets.
7545 .PD 1
7548 .B DISPLAY
7549 FIXME: Document this.
7551 .SS osdep:
7554 .B TERM
7555 FIXME: Document this.
7557 .SS libvo:
7560 .B DISPLAY
7561 FIXME: Document this.
7564 .B FRAMEBUFFER
7565 FIXME: Document this.
7568 .B HOME
7569 FIXME: Document this.
7571 .SS libmpdemux:
7574 .B HOME
7575 FIXME: Document this.
7578 .B HOMEPATH
7579 FIXME: Document this.
7582 .B http_proxy
7583 FIXME: Document this.
7586 .B LOGNAME
7587 FIXME: Document this.
7590 .B USERPROFILE
7591 FIXME: Document this.
7593 .SS GUI:
7596 .B CHARSET
7597 FIXME: Document this.
7600 .B DISPLAY
7601 FIXME: Document this.
7604 .B HOME
7605 FIXME: Document this.
7607 .SS libavformat:
7610 .B AUDIO_FLIP_LEFT
7611 FIXME: Document this.
7614 .B BKTR_DEV
7615 FIXME: Document this.
7618 .B BKTR_FORMAT
7619 FIXME: Document this.
7622 .B BKTR_FREQUENCY
7623 FIXME: Document this.
7626 .B http_proxy
7627 FIXME: Document this.
7630 .B no_proxy
7631 FIXME: Document this.
7635 .\" --------------------------------------------------------------------------
7636 .\" Files
7637 .\" --------------------------------------------------------------------------
7639 .SH FILES
7642 /usr/\:local/\:etc/\:mplayer/\:mplayer.conf
7643 MPlayer system-wide settings
7646 ~/.mplayer/\:config
7647 MPlayer user settings
7650 ~/.mplayer/\:input.conf
7651 input bindings (see '\-input keylist' for the full list)
7654 ~/.mplayer/\:font/
7655 font directory (There must be a font.desc file and files with .RAW extension.)
7658 ~/.mplayer/\:DVDkeys/
7659 cached CSS keys
7661 .PD 1
7664 .\" --------------------------------------------------------------------------
7665 .\" Examples
7666 .\" --------------------------------------------------------------------------
7668 .SH EXAMPLES OF MPLAYER USAGE
7671 .B Quickstart Blu\-ray playing:
7673 mplayer br:////path/to/disc
7674 mplayer br:// \-bluray\-device /path/to/disc
7678 .B Quickstart DVD playing:
7680 mplayer dvd://1
7684 .B Play in Japanese with English subtitles:
7686 mplayer dvd://1 \-alang ja \-slang en
7690 .B Play only chapters 5, 6, 7:
7692 mplayer dvd://1 \-chapter 5\-7
7696 .B Play only titles 5, 6, 7:
7698 mplayer dvd://5\-7
7702 .B Play a multiangle DVD:
7704 mplayer dvd://1 \-dvdangle 2
7708 .B Play from a different DVD device:
7710 mplayer dvd://1 \-dvd\-device /dev/\:dvd2
7714 .B Play DVD video from a directory with VOB files:
7716 mplayer dvd://1 \-dvd\-device /path/\:to/\:directory/
7720 .B Copy a DVD title to hard disk, saving to file "title1.vob":
7722 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
7726 .B Play a DVD with dvdnav from path /dev/sr1:
7728 mplayer dvdnav:////dev/sr1
7732 .B Stream from HTTP:
7734 mplayer http://mplayer.hq/example.avi
7738 .B Stream using RTSP:
7740 mplayer rtsp://server.example.com/streamName
7744 .B Convert subtitles to MPsub format:
7746 mplayer dummy.avi \-sub source.sub \-dumpmpsub
7750 .B Convert subtitles to MPsub format without watching the movie:
7752 mplayer /dev/\:zero \-rawvideo pal:fps=xx \-demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
7756 .B input from standard V4L:
7758 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
7762 .B Play DTS-CD with passthrough:
7764 mplayer \-ac hwdts \-rawaudio format=0x2001 \-cdrom\-device /dev/cdrom cdda://
7767 You can also use \-afm hwac3 instead of \-ac hwdts.
7768 Adjust '/dev/cdrom' to match the CD-ROM device on your system.
7769 If your external receiver supports decoding raw DTS streams,
7770 you can directly play it via cdda:// without setting format, hwac3 or hwdts.
7773 .B Play a 6-channel AAC file with only two speakers:
7775 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
7778 You might want to play a bit with the pan values (e.g multiply with a value) to
7779 increase volume or avoid clipping.
7782 .B checkerboard invert with geq filter:
7784 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'
7788 .\" --------------------------------------------------------------------------
7789 .\" Bugs, authors, standard disclaimer
7790 .\" --------------------------------------------------------------------------
7792 .SH AUTHORS
7793 MPlayer was initially written by Arpad Gereoffy.
7794 See the AUTHORS file for a list of some of the many other contributors.
7796 MPlayer is (C) 2000\-2011 The MPlayer Team
7798 This man page was written mainly by Gabucino, Jonas Jermann and Diego Biurrun.
7799 .\" end of file