MPlayer(1) The Movie Player MPlayer(1) NAME mplayer - movie player mencoder - movie encoder SYNOPSIS mplayer [options] [file|URL|playlist|-] mplayer [options] file1 [specific options] [file2] [specific options] mplayer [options] {group of files and options} [group-specific options] mplayer [br]://[title][/device] [options] mplayer [dvd|dvdnav]://[title|[start_title]-end_title][/device] [options] mplayer vcd://track[/device] mplayer tv://[channel][/input_id] [options] mplayer radio://[channel|frequency][/capture] [options] mplayer pvr:// [options] mplayer dvb://[card_number@]channel [options] mplayer mf://[filemask|@listfile] [-mf options] [options] mplayer [cdda|cddb]://track[-endtrack][:speed][/device] [options] mplayer cue://file[:track] [options] mplayer [file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|icyx|noicyx|smb]:// [user:pass@]URL[:port] [options] mplayer sdp://file [options] mplayer mpst://host[:port]/URL [options] mplayer tivo://host/[list|llist|fsid] [options] gmplayer [options] [file|URL|playlist] [-skin skin] mencoder [options] file [file|URL|-] [-o file | file://file | smb://[user:pass@]host/filepath] mencoder [options] file1 [specific options] [file2] [specific options] DESCRIPTION mplayer is a movie player for Linux (runs on many other platforms and CPU architectures, see the documentation). It plays most MPEG/VOB, AVI, ASF/WMA/WMV, RM, QT/MOV/MP4, Ogg/OGM, MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many native and binary codecs. You can watch VCD, SVCD, DVD, Blu-ray, 3ivx, DivX 3/4/5, WMV and even H.264 movies, too. MPlayer supports a wide range of video and audio output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, Di‐ rectFB, Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers), VESA (on every VESA-compatible card, even without X11), some low-level card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder boards, such as the Siemens DVB, Haup‐ pauge PVR (IVTV), DXR2 and DXR3/Hollywood+. Most of them support soft‐ ware or hardware scaling, so you can enjoy movies in fullscreen mode. MPlayer has an onscreen display (OSD) for status information, nice big antialiased shaded subtitles and visual feedback for keyboard controls. European/ISO8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Ko‐ rean fonts are supported along with 12 subtitle formats (MicroDVD, Sub‐ Rip, OGM, SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and DVD subtitles (SPU streams, VOBsub and Closed Cap‐ tions). mencoder (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode MPlayer-playable movies (see above) to other MPlayer-playable formats (see below). It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and PCM/MP3/VBRMP3 audio in 1, 2 or 3 passes. Fur‐ thermore it has stream copying abilities, a powerful filter system (crop, expand, flip, postprocess, rotate, scale, noise, RGB/YUV conver‐ sion) and more. gmplayer is MPlayer with a graphical user interface. Besides some own options (stored in gui.conf), it has the same options as MPlayer, how‐ ever some MPlayer options will be stored in gui.conf so that they can be chosen independently from MPlayer. (See GUI CONFIGURATION FILE be‐ low.) Usage examples to get you started quickly can be found at the end of this man page. Also see the HTML documentation! INTERACTIVE CONTROL MPlayer has a fully configurable, command-driven control layer which allows you to control MPlayer using keyboard, mouse, joystick or remote control (with LIRC). See the -input option for ways to customize it. keyboard control LEFT and RIGHT Seek backward/forward 10 seconds. UP and DOWN Seek forward/backward 1 minute. PGUP and PGDWN Seek forward/backward 10 minutes. [ and ] Decrease/increase current playback speed by 10%. { and } Halve/double current playback speed. BACKSPACE Reset playback speed to normal. < and > Go backward/forward in the playlist. ENTER Go forward in the playlist, even over the end. HOME and END next/previous playtree entry in the parent list INS and DEL (ASX playlist only) next/previous alternative source. p / SPACE Pause (pressing again unpauses). . Step forward. Pressing once will pause movie, every con‐ secutive press will play one frame and then go into pause mode again (any other key unpauses). q / ESC Stop playing and quit. U Stop playing (and quit if -idle is not used). + and - Adjust audio delay by +/- 0.1 seconds. / and * Decrease/increase volume. 9 and 0 Decrease/increase volume. ( and ) Adjust audio balance in favor of left/right channel. m Mute sound. _ (MPEG-TS, AVI and libavformat only) Cycle through the available video tracks. # (DVD, Blu-ray, MPEG, Matroska, AVI and libavformat only) Cycle through the available audio tracks. TAB (MPEG-TS and libavformat only) Cycle through the available programs. f Toggle fullscreen (also see -fs). T Toggle stay-on-top (also see -ontop). w and e Decrease/increase pan-and-scan range. o Toggle OSD states: none / seek / seek + timer / seek + timer + total time. d Toggle frame dropping states: none / skip display / skip decoding (see -framedrop and -hardframedrop). v Toggle subtitle visibility. j and J Cycle through the available subtitles. y and g Step forward/backward in the subtitle list. F Toggle displaying "forced subtitles". a Toggle subtitle alignment: top / middle / bottom. x and z Adjust subtitle delay by +/- 0.1 seconds. c (-capture only) Start/stop capturing the primary stream. r and t Move subtitles up/down. i (-edlout mode only) Set start or end of an EDL skip and write it out to the given file. s (-vf screenshot only) Take a screenshot. S (-vf screenshot only) Start/stop taking screenshots. I Show filename on the OSD. P Show progression bar, elapsed time and total duration on the OSD. ! and @ Seek to the beginning of the previous/next chapter. D (-vo xvmc, -vo vdpau, -vf yadif, -vf kerndeint only) Activate/deactivate deinterlacer. A Cycle through the available DVD angles. (The following keys are valid only when using a hardware accel‐ erated video output (xv, (x)vidix, (x)mga, etc), the software equalizer (-vf eq or -vf eq2) or hue filter (-vf hue).) 1 and 2 Adjust contrast. 3 and 4 Adjust brightness. 5 and 6 Adjust hue. 7 and 8 Adjust saturation. (The following keys are valid only when using the quartz or corevideo video output driver.) command + 0 Resize movie window to half its original size. command + 1 Resize movie window to its original size. command + 2 Resize movie window to double its original size. command + f Toggle fullscreen (also see -fs). command + [ and command + ] Set movie window alpha. (The following keys are valid only when using the sdl video out‐ put driver.) c Cycle through available fullscreen modes. n Restore original mode. (The following keys are valid if you have a keyboard with multi‐ media keys.) PAUSE Pause. STOP Stop playing and quit. PREVIOUS and NEXT Seek backward/forward 1 minute. (The following keys are only valid if you compiled with TV or DVB input support and will take precedence over the keys defined above.) h and k Select previous/next channel. n Change norm. u Change channel list. (The following keys are only valid if you compiled with dvdnav support: They are used to navigate the menus.) keypad 8 Select button up. keypad 2 Select button down. keypad 4 Select button left. keypad 6 Select button right. keypad 5 Return to main menu. keypad 7 Return to nearest menu (the order of preference is: chap‐ ter->title->root). keypad ENTER Confirm choice. (The following keys are used for controlling TV teletext. The data may come from either an analog TV source or an MPEG trans‐ port stream.) X Switch teletext on/off. Q and W Go to next/prev teletext page. mouse control button 3 and button 4 Seek backward/forward 1 minute. button 5 and button 6 Decrease/increase volume. joystick control left and right Seek backward/forward 10 seconds. up and down Seek forward/backward 1 minute. button 1 Pause. button 2 Toggle OSD states: none / seek / seek + timer / seek + timer + total time. button 3 and button 4 Decrease/increase volume. USAGE Every 'flag' option has a 'noflag' counterpart, e.g. the opposite of the -fs option is -nofs. If an option is marked as (XXX only), it will only work in combination with the XXX option or if XXX is compiled in. NOTE: The suboption parser (used for example for -ao pcm suboptions) supports a special kind of string-escaping intended for use with exter‐ nal GUIs. It has the following format: %n%string_of_length_n EXAMPLES: mplayer -ao pcm:file=%10%C:test.wav test.avi Or in a script: mplayer -ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi CONFIGURATION FILES You can put all of the options in configuration files which will be read every time MPlayer/MEncoder is run. The system-wide configuration file 'mplayer.conf' is in your configuration directory (e.g. /etc/ mplayer or /usr/local/etc/mplayer), the user specific one is '~/.mplay‐ er/config'. The configuration file for MEncoder is 'mencoder.conf' in your configuration directory (e.g. /etc/mplayer or /usr/local/etc/ mplayer), the user specific one is '~/.mplayer/mencoder.conf'. User specific options override system-wide options (in case of gmplayer, gui.conf options override user specific options) and options given on the command line override all. The syntax of the configuration files is 'option=', everything after a '#' is considered a comment. Options that work without values can be enabled by setting them to 'yes' or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'. Even suboptions can be specified in this way. You can also write file-specific configuration files. If you wish to have a configuration file for a file called 'movie.avi', create a file named 'movie.avi.conf' with the file-specific options in it and put it in ~/.mplayer/. You can also put the configuration file in the same directory as the file to be played, as long as you give the -use-filedir-conf option (either on the command line or in your global config file). If a file-specific configuration file is found in the same directory, no file-specific configuration is loaded from ~/.mplay‐ er. In addition, the -use-filedir-conf option enables directory-spe‐ cific configuration files. For this, MPlayer first tries to load a mplayer.conf from the same directory as the file played and then tries to load any file-specific configuration. EXAMPLE MPLAYER CONFIGURATION FILE: # Use Matrox driver by default. vo=xmga # I love practicing handstands while watching videos. flip=yes # Decode/encode multiple files from PNG, # start with mf://filemask mf=type=png:fps=25 # Eerie negative images are cool. vf=eq2=1.0:-0.8 # OSD progress bar vertical alignment progbar-align=50 EXAMPLE MENCODER CONFIGURATION FILE: # Make MEncoder output to a default filename. o=encoded.avi # The next 4 lines allow mencoder tv:// to start capturing immediately. oac=pcm=yes ovc=lavc=yes lavcopts=vcodec=mjpeg tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000 # more complex default encoding option set lavcopts=vcodec=mpeg4:autoaspect=1 lameopts=aq=2:vbr=4 ovc=lavc=1 oac=lavc=1 passlogfile=pass1stats.log noautoexpand=1 subfont-autoscale=3 subfont-osd-scale=6 subfont-text-scale=4 subalign=2 subpos=96 spuaa=20 GUI CONFIGURATION FILE GUI's own options are (MPlayer option names in parentheses): ao_al‐ sa_device (alsa:device=) (ALSA only), ao_alsa_mixer (mixer) (ALSA on‐ ly), ao_alsa_mixer_channel (mixer-channel) (ALSA only), ao_esd_device (esd:) (ESD only), ao_extra_stereo (af extrastereo) (default: 1.0), ao_extra_stereo_coefficient (af extrastereo=), ao_oss_device (oss:) (OSS only), ao_oss_mixer (mixer) (OSS only), ao_oss_mixer_channel (mix‐ er-channel) (OSS only), ao_sdl_subdriver (sdl:) (SDL only), ao_surround (unused), ao_volnorm (af volnorm), autosync (enable/disable), au‐ tosync_size (autosync), cache (enable/disable), cache_size (cache), en‐ able_audio_equ (af equalizer), equ_band_00 ... equ_band_59, (af equal‐ izer=), equ_channel_1 ... equ_channel_6 (af channels=), gui_main_pos_x, gui_main_pos_y, gui_save_pos (yes/no), gui_tv_digital (yes/no), gui_video_out_pos_x, gui_video_out_pos_y, playbar (enable/disable), re‐ play_gain (enable/disable), replay_gain_adjustment (-30..10), show_videowin (yes/no), vf_lavc (vf lavc) (DXR3 only), vf_pp (vf pp), vo_dxr3_device (unused) (DXR3 only). MPlayer options stored in gui.conf (GUI option names, MPlayer option names in parentheses) are: a_afm (afm), ao_driver (ao), ass_bottom_mar‐ gin (ass-bottom-margin) (ASS only), ass_enabled (ass) (ASS only), ass_top_margin (ass-top-margin) (ASS only), ass_use_margins (ass-use- margins) (ASS only), cdrom_device (cdrom-device), dvd_device (dvd-de‐ vice), font_autoscale (subfont-autoscale) (FreeType only), font_blur (subfont-blur) (FreeType only), font_encoding (subfont-encoding), font_factor (ffactor), font_name (font), font_osd_scale (subfont-osd- scale) (FreeType only), font_outline (subfont-outline) (FreeType only), font_text_scale (subfont-text-scale) (FreeType only), gui_skin (skin), idle (idle), load_fullscreen (fs), osd_level (osdlevel), playlist_sup‐ port (allow-dangerous-playlist-parsing), softvol (softvol), stopxscreensaver (stop-xscreensaver), sub_auto_load (autosub), sub_cp (subcp) (iconv only), sub_overlap (overlapsub), sub_pos (subpos), sub_unicode (unicode), sub_utf8 (utf8), v_flip (flip), v_framedrop (framedrop), v_idx (idx), v_ni (ni), v_vfm (vfm), vf_autoq (autoq), vo_direct_render (panscan), vo_doublebuffering (dr), vo_driver (vo), vo_panscan (double). PROFILES To ease working with different configurations profiles can be defined in the configuration files. A profile starts with its name between square brackets, e.g. '[my-profile]'. All following options will be part of the profile. A description (shown by -profile help) can be de‐ fined with the profile-desc option. To end the profile, start another one or use the profile name 'default' to continue with normal options. EXAMPLE MPLAYER PROFILE: [protocol.dvd] profile-desc="profile for dvd:// streams" vf=pp=hb/vb/dr/al/fd alang=en [protocol.dvdnav] profile-desc="profile for dvdnav:// streams" profile=protocol.dvd mouse-movements=yes nocache=yes [extension.flv] profile-desc="profile for .flv files" flip=yes [vo.pnm] outdir=/tmp [ao.alsa] device=spdif EXAMPLE MENCODER PROFILE: [mpeg4] profile-desc="MPEG4 encoding" ovc=lacv=yes lavcopts=vcodec=mpeg4:vbitrate=1200 [mpeg4-hq] profile-desc="HQ MPEG4 encoding" profile=mpeg4 lavcopts=mbd=2:trell=yes:v4mv=yes GENERAL OPTIONS -codecpath Specify a directory for binary codecs. -codecs-file (also see -afm, -ac, -vfm, -vc) Override the standard search path and use the specified file in‐ stead of the builtin codecs.conf. -include (also see -gui-include) Specify configuration file to be parsed after the default ones. -list-options Prints all available options. -msgcharset Convert console messages to the specified character set (de‐ fault: autodetect). Text will be in the encoding specified with the --charset configure option. Set this to "noconv" to disable conversion (for e.g. iconv problems). NOTE: The option takes effect after command line parsing has finished. The MPLAYER_CHARSET environment variable can help you get rid of the first lines of garbled output. -msgcolor Enable colorful console output on terminals that support ANSI color. -msglevel :=:...> Control verbosity directly for each module. The 'all' module changes the verbosity of all the modules not explicitly speci‐ fied on the command line. See '-msglevel help' for a list of all modules. NOTE: Some messages are printed before the command line is parsed and are therefore not affected by -msglevel. To control these messages you have to use the MPLAYER_VERBOSE environment variable, see its description below for details. Available levels: -1 complete silence 0 fatal messages only 1 error messages 2 warning messages 3 short hints 4 informational messages 5 status messages (default) 6 verbose messages 7 debug level 2 8 debug level 3 9 debug level 4 -msgmodule Prepend module name in front of each console message. -noconfig Do not parse selected configuration files. NOTE: If -include or -use-filedir-conf options are specified at the command line, they will be honoured. Available options are: all all configuration files gui (GUI only) GUI configuration file system system configuration file user user configuration file -quiet Make console output less verbose; in particular, prevents the status line (i.e. A: 0.7 V: 0.6 A-V: 0.068 ...) from being displayed. Particularly useful on slow terminals or broken ones which do not properly handle carriage return (i.e. \r). -priority (Windows and OS/2 only) Set process priority for MPlayer according to the predefined priorities available under Windows and OS/2. Possible values of : idle|belownormal|normal|abovenormal|high|realtime WARNING: Using realtime priority can cause system lockup. -profile Use the given profile(s), -profile help displays a list of the defined profiles. -really-quiet (also see -quiet) Display even less output and status messages than with -quiet. Also suppresses the GUI error message boxes. -show-profile Show the description and content of a profile. -use-filedir-conf Look for a file-specific configuration file in the same directo‐ ry as the file that is being played. WARNING: May be dangerous if playing from untrusted media. -v Increment verbosity level, one level for each -v found on the command line. PLAYER OPTIONS (MPLAYER ONLY) -autoq (use with -vf [s]pp) Dynamically changes the level of postprocessing depending on the available spare CPU time. The number you specify will be the maximum level used. Usually you can use some big number. You have to use -vf [s]pp without parameters in order for this to work. -autosync Gradually adjusts the A/V sync based on audio delay measure‐ ments. Specifying -autosync 0, the default, will cause frame timing to be based entirely on audio delay measurements. Speci‐ fying -autosync 1 will do the same, but will subtly change the A/V correction algorithm. An uneven video framerate in a movie which plays fine with -nosound can often be helped by setting this to an integer value greater than 1. The higher the value, the closer the timing will be to -nosound. Try -autosync 30 to smooth out problems with sound drivers which do not implement a perfect audio delay measurement. With this value, if large A/V sync offsets occur, they will only take about 1 or 2 seconds to settle out. This delay in reaction time to sudden A/V offsets should be the only side-effect of turning this option on, for all sound drivers. -benchmark Prints some statistics on CPU usage and dropped frames at the end of playback. Use in combination with -nosound and -vo null for benchmarking only the video codec. NOTE: With this option MPlayer will also ignore frame duration when playing only video (you can think of that as infinite fps). -colorkey Changes the colorkey to an RGB value of your choice. 0x000000 is black and 0xffffff is white. Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix, xover, xv (see -vo xv:ck), xvmc (see -vo xv:ck) and directx video output drivers. -nocolorkey Disables colorkeying. Only supported by the cvidix, fbdev, sv‐ ga, vesa, winvidix, xmga, xvidix, xover, xv (see -vo xv:ck), xvmc (see -vo xv:ck) and directx video output drivers. -correct-pts (EXPERIMENTAL) Switches MPlayer to an experimental mode where timestamps for video frames are calculated differently and video filters which add new frames or modify timestamps of existing ones are sup‐ ported. The more accurate timestamps can be visible for example when playing subtitles timed to scene changes with the -ass op‐ tion. Without -correct-pts the subtitle timing will typically be off by some frames. This option does not work correctly with some demuxers and codecs. -crash-debug (DEBUG CODE) Automatically attaches gdb upon crash or SIGTRAP. Support must be compiled in by configuring with --enable-crash-debug. -doubleclick-time Time in milliseconds to recognize two consecutive button presses as a double-click (default: 300). Set to 0 to let your window‐ ing system decide what a double-click is (-vo directx only). NOTE: You will get slightly different behaviour depending on whether you bind MOUSE_BTN0_DBL or MOUSE_BTN0-MOUSE_BTN0_DBL. -edlout Creates a new file and writes edit decision list (EDL) records to it. During playback, the user hits 'i' to mark the start or end of a skip block. This provides a starting point from which the user can fine-tune EDL entries later. See http://www.mplay‐ erhq.hu/DOCS/HTML/en/edl.html for details. -edl-backward-delay When using EDL during playback and jumping backwards it is pos‐ sible to end up in the middle of an EDL record. In that case MPlayer will seek further backwards to the start position of the EDL record and then immediately skip the scene specified in the EDL record. To avoid this kind of behavior, MPlayer jumps to a fixed time interval before the start of the EDL record. This parameter allows you to specify that time interval in seconds (default: 2 seconds). -edl-start-pts Adjust positions in EDL records according to playing file's start time. Some formats, especially MPEG TS usually start with non-zero PTS values and when producing EDL file with -edlout op‐ tion, EDL records contain absolute values that are correct only for this particular file. If re-encoded into a different for‐ mat, this EDL file no longer applies. Specifying -edl-start-pts will automatically adjust EDL positions according to start time: when producing EDL file, it will substract start time from every EDL record, when playing with EDL file, it will add file's start time to every EDL position. -noedl-start-pts Disable adjusting EDL positions. -enqueue (GUI only) Enqueue files given on the command line in the playlist instead of playing them immediately. -fixed-vo Enforces a fixed video system for multiple files (one (un)ini‐ tialization for all files). Therefore only one window will be opened for all files. Currently the following drivers are fixed-vo compliant: gl, gl_tiled, mga, svga, x11, xmga, xv, xvidix and dfbmga. -framedrop (also see -hardframedrop, experimental without -nocor‐ rect-pts) Skip displaying some frames to maintain A/V sync on slow sys‐ tems. Video filters are not applied to such frames. For B- frames even decoding is skipped completely. -(no)gui Enable or disable the GUI interface (default depends on binary name). Only works as the first argument on the command line. Does not work as a config-file option. -gui-include (also see -include) (GUI only) Specify a GUI configuration file to be parsed after the default gui.conf. -h, -help, --help Show short summary of options. -hardframedrop (experimental without -nocorrect-pts) More intense frame dropping (breaks decoding). Leads to image distortion! Note that especially the libmpeg2 decoder may crash with this, so consider using "-vc ffmpeg12,". -heartbeat-cmd Command that is executed every 30 seconds during playback via system() - i.e. using the shell. NOTE: MPlayer uses this command without any checking, it is your responsibility to ensure it does not cause security problems (e.g. make sure to use full paths if "." is in your path like on Windows). It also only works when playing video (i.e. not with -novideo but works with -vo null). This can be "misused" to disable screensavers that do not sup‐ port the proper X API (also see -stop-xscreensaver). If you think this is too complicated, ask the author of the screensaver program to support the proper X APIs. EXAMPLE for xscreensaver: mplayer -heartbeat-cmd "xscreen‐ saver-command -deactivate" file EXAMPLE for GNOME screensaver: mplayer -heartbeat-cmd "gnome-screensaver-command -p" file -heartbeat-interval Specify how often the -heartbeat-cmd should be executed, in sec‐ onds between executions (default: 30.0). -identify Shorthand for -msglevel identify=6. Show file parameters in an easily parseable format. Also prints more detailed information about subtitle and audio track languages and IDs. For example, for a DVD or Blu-ray it will list the chapters and time length of each title, as well as a disk ID. Combine this with -frames 0 to suppress all video output. The wrapper script TOOLS/miden‐ tify.sh suppresses the other MPlayer output and (hopefully) shellescapes the filenames. You can get less information by us‐ ing -msglevel identify=4. -idle (also see -slave) Makes MPlayer wait idly instead of quitting when there is no file to play. Mostly useful in slave mode where MPlayer can be controlled through input commands. For gmplayer -idle is the default, -noidle will quit the GUI af‐ ter all files have been played. -input This option can be used to configure certain parts of the input system. Paths are relative to ~/.mplayer/. NOTE: Autorepeat is currently only supported by joysticks. Available commands are: conf= Specify input configuration file other than the default ~/.mplayer/input.conf. ~/.mplayer/ is assumed if no full path is given. ar-dev= Device to be used for Apple IR Remote (default is au‐ todetected, Linux only). ar-delay Delay in milliseconds before we start to autorepeat a key (0 to disable). ar-rate Number of key presses to generate per second on autore‐ peat. (no)default-bindings Use the key bindings that MPlayer ships with by default. keylist Prints all keys that can be bound to commands. cmdlist Prints all commands that can be bound to keys. js-dev Specifies the joystick device to use (default: /dev/in‐ put/js0). file= Read commands from the given file. Mostly useful with a FIFO. NOTE: When the given file is a FIFO MPlayer opens both ends so you can do several 'echo "seek 10" > mp_pipe' and the pipe will stay valid. -key-fifo-size <2-65000> Specify the size of the FIFO that buffers key events (default: 7). A FIFO of size n can buffer (n-1) events. If it is too small some events may be lost. If it is too big, MPlayer may seem to hang while it processes the buffered events. To get the same behavior as before this option was introduced, set it to 2 for Linux or 1024 for Windows. For small value you should dis‐ able double-clicks by setting -doubleclick-time to 0 so they do not compete with regular events for buffer space. -lircconf (LIRC only) Specifies a configuration file for LIRC (default: ~/.lircrc). -list-properties Print a list of the available properties. -loop Loops movie playback times. 0 means forever. Use -loop 0 to automatically reconnect to live streaming URLs. -menu (OSD menu only) Turn on OSD menu support. -menu-cfg (OSD menu only) Use an alternative menu.conf. -menu-chroot (OSD menu only) Chroot the file selection menu to a specific location. EXAMPLE: -menu-chroot /home Will restrict the file selection menu to /home and down‐ ward (i.e. no access to / will be possible, but /home/user_name will). -menu-keepdir (OSD menu only) File browser starts from the last known location instead of cur‐ rent directory. -menu-root (OSD menu only) Specify the main menu. -menu-startup (OSD menu only) Display the main menu at MPlayer startup. -mouse-movements Permit MPlayer to receive pointer events reported by the video output driver. Necessary to select the buttons in DVD menus. Supported for X11-based VOs (x11, xv, xvmc, etc) and the gl, gl_tiled, direct3d and corevideo VOs. -noar Turns off AppleIR remote support. -noconsolecontrols Prevent MPlayer from reading key events from standard input. Useful when reading data from standard input. This is automati‐ cally enabled when - is found on the command line. There are situations where you have to set it manually, e.g. if you open /dev/stdin (or the equivalent on your system), use stdin in a playlist or intend to read from stdin later on via the loadfile or loadlist slave commands. -nojoystick Turns off joystick support. -nolirc Turns off LIRC support. -nomouseinput Disable mouse button press/release input (mozplayerxp's context menu relies on this option). -rtc (RTC only) Turns on usage of the Linux RTC (realtime clock - /dev/rtc) as timing mechanism. This wakes up the process every 1/1024 sec‐ onds to check the current time. Useless with modern Linux ker‐ nels configured for desktop use as they already wake up the process with similar accuracy when using normal timed sleep. -pausing <0-3> (MPlayer only) Specifies the default pausing behaviour of commands, i.e. whether MPlayer will continue playback or stay paused after the command has finished. See DOCS/tech/slave.txt for further de‐ tails. 0 resume 1 pause (pausing) 2 keep the paused / playing status (pausing_keep) 3 toggle the paused / playing status (pausing_toggle) 4 pause without frame step (experimental) (paus‐ ing_keep_force) -playing-msg Print out a string before starting playback. The following ex‐ pansions are supported: ${NAME} Expand to the value of the property NAME. ?(NAME:TEXT) Expand TEXT only if the property NAME is available. ?(!NAME:TEXT) Expand TEXT only if the property NAME is not available. -playlist Play files according to a playlist file (ASX, Winamp, SMIL, or one-file-per-line format). WARNING: The way MPlayer parses and uses playlist files is not safe against maliciously constructed files. Such files may trigger harmful actions. This has been the case for all MPlayer versions, but unfortunately this fact was not well documented earlier, and some people have even misguidedly recommended use of -playlist with untrusted sources. Do NOT use -playlist with random internet sources or files you don't trust! NOTE: This option is considered an entry so options found after it will apply only to the elements of this playlist. FIXME: This needs to be clarified and documented thoroughly. -allow-dangerous-playlist-parsing This enables parsing any file as a playlist if e.g. a server ad‐ vertises a file as playlist. Only enable if you know all servers involved are trustworthy. MPlayer's playlist code is not designed to handle malicious playlist files. -rtc-device Use the specified device for RTC timing. -shuffle Play files in random order. -skin (GUI only) Loads a skin from the directory given as parameter below the de‐ fault skin directories, ~/.mplayer/skins/ and /usr/local/share/ mplayer/skins/. EXAMPLE: -skin fittyfene Tries ~/.mplayer/skins/fittyfene and afterwards /usr/lo‐ cal/share/mplayer/skins/fittyfene. -slave (also see -input) Switches on slave mode, in which MPlayer works as a backend for other programs. Instead of intercepting keyboard events, MPlay‐ er will read commands separated by a newline (\n) from stdin. NOTE: See -input cmdlist for a list of slave commands and DOCS/tech/slave.txt for their description. Also, this is not intended to disable other inputs, e.g. via the video window, use some other method like -input nodefault-bindings:conf=/dev/null for that. -softsleep Time frames by repeatedly checking the current time instead of asking the kernel to wake up MPlayer at the correct time. Use‐ ful if your kernel timing is imprecise and you cannot use the RTC either. Comes at the price of higher CPU consumption. -sstep Skip seconds after every frame. The normal framerate of the movie is kept, so playback is accelerated. Since MPlayer can only seek to the next keyframe this may be inexact. -udp-ip Sets the destination address for datagrams sent by the -udp-mas‐ ter. Setting it to a broadcast address allows multiple slaves having the same broadcast address to sync to the master (de‐ fault: 127.0.0.1). -udp-master Send a datagram to -udp-ip on -udp-port just before playing each frame. The datagram indicates the master's position in the file. -udp-port Sets the destination port for datagrams sent by the -udp-master, and the port a -udp-slave listens on (default: 23867). -udp-seek-threshold When the master seeks, the slave has to decide whether to seek as well, or to catch up by decoding frames without pausing be‐ tween frames. If the master is more than seconds away from the slave, the slave seeks. Otherwise, it "runs" to catch up or waits for the master. This should almost always be left at its default setting of 1 second. -udp-slave Listen on -udp-port and match the master's position. DEMUXER/STREAM OPTIONS -a52drc Select the Dynamic Range Compression level for AC-3 audio streams. is a float value ranging from 0 to 1, where 0 means no compression and 1 (which is the default) means full compression (make loud passages more silent and vice versa). Values up to 2 are also accepted, but are purely experimental. This option only shows an effect if the AC-3 stream contains the required range compression information. -aid (also see -alang) Select audio channel (MPEG: 0-31, AVI/OGM: 1-99, ASF/RM: 0-127, VOB(AC-3): 128-159, VOB(LPCM): 160-191, MPEG-TS 17-8190). MPlayer prints the available audio IDs when run in verbose (-v) mode. When playing an MPEG-TS stream, MPlayer/MEncoder will use the first program (if present) with the chosen audio stream. -ausid (also see -alang) Select audio substream channel. Currently the valid range is 0x55..0x75 and applies only to MPEG-TS when handled by the na‐ tive demuxer (not by libavformat). The format type may not be correctly identified because of how this information (or lack thereof) is embedded in the stream, but it will demux correctly the audio streams when multiple substreams are present. MPlayer prints the available substream IDs when run with -identify. -alang (also see -aid) Specify a priority list of audio languages to use. Different container formats employ different language codes. DVDs use ISO 639-1 two letter language codes, Matroska, MPEG-TS and NUT use ISO 639-2 three letter language codes while OGM uses a free-form identifier. MPlayer prints the available languages when run in verbose (-v) mode. EXAMPLE: mplayer dvd://1 -alang hu,en Chooses the Hungarian language track on a DVD and falls back on English if Hungarian is not available. mplayer -alang jpn example.mkv Plays a Matroska file in Japanese. -audio-demuxer <[+]name> (-audiofile only) Force audio demuxer type for -audiofile. Use a '+' before the name to force it, this will skip some checks! Give the demuxer name as printed by -audio-demuxer help. For backward compati‐ bility it also accepts the demuxer ID as defined in libmpdemux/ demuxer.h. -audio-demuxer audio or -audio-demuxer 17 forces MP3. -audiofile Play audio from an external file (WAV, MP3 or Ogg Vorbis) while viewing a movie. -audiofile-cache Enables caching for the stream used by -audiofile, using the specified amount of memory. -reuse-socket (udp:// only) Allows a socket to be reused by other processes as soon as it is closed. -bandwidth (network only) Specify the maximum bandwidth for network streaming (for servers that are able to send content in different bitrates). Useful if you want to watch live streamed media behind a slow connection. With Real RTSP streaming, it is also used to set the maximum de‐ livery bandwidth allowing faster cache filling and stream dump‐ ing. -bluray-angle (Blu-ray only) Some Blu-ray discs contain scenes that can be viewed from multi‐ ple angles. Here you can tell MPlayer which angles to use (de‐ fault: 1). -bluray-device (Blu-ray only) Specify the Blu-ray disc location. Must be a directory with Blu-ray structure. -cache This option specifies how much memory (in kBytes) to use when precaching a file or URL. Especially useful on slow media. -nocache Turns off caching. -cache-min Playback will start when the cache has been filled up to of the total. -cache-seek-min If a seek is to be made to a position within of the cache size from the current position, MPlayer will wait for the cache to be filled to this position rather than performing a stream seek (default: 50). -capture (MPlayer only) Allows capturing the primary stream (not additional audio tracks or other kind of streams) into the file specified by -dumpfile or by default. If this option is given, capturing can be start‐ ed and stopped by pressing the key bound to this function (see section INTERACTIVE CONTROL). Same as for -dumpstream, this will likely not produce usable results for anything else than MPEG streams. Note that, due to cache latencies, captured data may begin and end somewhat delayed compared to what you see dis‐ played. -cdda (CDDA only) This option can be used to tune the CD Audio reading feature of MPlayer. Available options are: speed= Set CD spin speed. paranoia=<0-2> Set paranoia level. Values other than 0 seem to break playback of anything but the first track. 0: disable checking (default) 1: overlap checking only 2: full data correction and verification generic-dev= Use specified generic SCSI device. sector-size= Set atomic read size. overlap= Force minimum overlap search during verification to sectors. toc-bias Assume that the beginning offset of track 1 as reported in the TOC will be addressed as LBA 0. Some Toshiba drives need this for getting track boundaries correct. toc-offset= Add sectors to the values reported when address‐ ing tracks. May be negative. (no)skip (Never) accept imperfect data reconstruction. -cdrom-device Specify the CD-ROM device (default: /dev/cdrom). -channels (also see -af channels) Request the number of playback channels (default: 2). MPlayer asks the decoder to decode the audio into as many channels as specified. Then it is up to the decoder to fulfill the require‐ ment. This is usually only important when playing videos with AC-3 audio (like DVDs). In that case liba52 does the decoding by default and correctly downmixes the audio into the requested number of channels. To directly control the number of output channels independently of how many channels are decoded, use the channels filter. NOTE: This option is honored by codecs (AC-3 only), filters (surround) and audio output drivers (OSS at least). Available options are: 2 stereo 4 surround 6 full 5.1 8 full 7.1 -chapter [-] Specify which chapter to start playing at. Optionally specify which chapter to end playing at (default: 1). -cookies (network only) Send cookies when making HTTP requests. -cookies-file (network only) Read HTTP cookies from (default: ~/.mozilla/ and ~/.netscape/) and skip reading from default locations. The file is assumed to be in Netscape format. -delay audio delay in seconds (positive or negative float value) Negative values delay the audio, and positive values delay the video. Note that this is the exact opposite of the -audio-delay MEncoder option. NOTE: When used with MEncoder, this is not guaranteed to work correctly with -ovc copy; use -audio-delay instead. -ignore-start Ignore the specified starting time for streams in AVI files. In MPlayer, this nullifies stream delays in files encoded with the -audio-delay option. During encoding, this option prevents MEn‐ coder from transferring original stream start times to the new file; the -audio-delay option is not affected. Note that MEn‐ coder sometimes adjusts stream starting times automatically to compensate for anticipated decoding delays, so do not use this option for encoding without testing it first. -demuxer <[+]name> Force demuxer type. Use a '+' before the name to force it, this will skip some checks! Give the demuxer name as printed by -de‐ muxer help. For backward compatibility it also accepts the de‐ muxer ID as defined in libmpdemux/demuxer.h. -dumpaudio (MPlayer only) Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/AC-3, in most other cases the resulting file will not be playable). If you give more than one of -dumpaudio, -dumpvideo, -dumpstream on the command line only the last one will work. -dumpfile (MPlayer only) Specify which file MPlayer should dump to. Should be used to‐ gether with -dumpaudio / -dumpvideo / -dumpstream / -capture. -dumpstream (MPlayer only) Dumps the raw stream to ./stream.dump. Useful when ripping from DVD or network. If you give more than one of -dumpaudio, -dumpvideo, -dumpstream on the command line only the last one will work. -dumpvideo (MPlayer only) Dump raw compressed video stream to ./stream.dump (not very us‐ able). If you give more than one of -dumpaudio, -dumpvideo, -dumpstream on the command line only the last one will work. -dvbin (DVB only) Pass the following parameters to the DVB input module, in order to override the default ones: card=<1-4> Specifies using card number 1-4 (default: 1). file= Instructs MPlayer to read the channels list from . Default is ~/.mplayer/chan‐ nels.conf.{sat,ter,cbl,atsc} (based on your card type) or ~/.mplayer/channels.conf as a last resort. timeout=<1-240> Maximum number of seconds to wait when trying to tune a frequency before giving up (default: 30). -dvd-device (DVD only) Specify the DVD device or .iso filename (default: /dev/dvd). You can also specify a directory that contains files previously copied directly from a DVD (with e.g. vobcopy). -dvd-speed (DVD only) Try to limit DVD speed (default: 0, no change). DVD base speed is about 1350KB/s, so a 8x drive can read at speeds up to 10800KB/s. Slower speeds make the drive more quiet, for watch‐ ing DVDs 2700KB/s should be quiet and fast enough. MPlayer re‐ sets the speed to the drive default value on close. Values less than 100 mean multiples of 1350KB/s, i.e. -dvd-speed 8 selects 10800KB/s. NOTE: You need write access to the DVD device to change the speed. -dvdangle (DVD only) Some DVD discs contain scenes that can be viewed from multiple angles. Here you can tell MPlayer which angles to use (default: 1). -edl Enables edit decision list (EDL) actions during playback. Video will be skipped over and audio will be muted and unmuted accord‐ ing to the entries in the given file. See http://www.mplayer‐ hq.hu/DOCS/HTML/en/edl.html for details on how to use this. -endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see -ss and -sb) Stop at given time or byte position. NOTE: Byte position may not be accurate, as it can only stop at a frame boundary. When used in conjunction with -ss option, -endpos time will shift forward by seconds specified with -ss if not a byte position. In addition it may not work well or not at all when used with any of the -dump options. EXAMPLE: -endpos 56 Stop at 56 seconds. -endpos 01:10:00 Stop at 1 hour 10 minutes. -ss 10 -endpos 56 Stop at 1 minute 6 seconds. mplayer -endpos 100mb Stop playback after reading 100MB of the input file. mencoder -endpos 100mb Encode only 100 MB. -forceidx Force index rebuilding. Useful for files with broken index (A/V desync, etc). This will enable seeking in files where seeking was not possible. You can fix the index permanently with MEn‐ coder (see the documentation). NOTE: This option only works if the underlying media supports seeking (i.e. not with stdin, pipe, etc). -fps Override video framerate. Useful if the original value is wrong or missing. -frames Play/convert only first frames, then quit. -hr-mp3-seek (MP3 only) Hi-res MP3 seeking. Enabled when playing from an external MP3 file, as we need to seek to the very exact position to keep A/V sync. Can be slow especially when seeking backwards since it has to rewind to the beginning to find an exact frame position. -http-header-fields Set custom HTTP fields when accessing HTTP stream. EXAMPLE: mplayer -http-header-fields 'Field1: value1','Field2: value2' http://localhost:1234 Will generate HTTP request: GET / HTTP/1.0 Host: localhost:1234 User-Agent: MPlayer Icy-MetaData: 1 Field1: value1 Field2: value2 Connection: close -idx (also see -forceidx) Rebuilds index of files if no index was found, allowing seeking. Useful with broken/incomplete downloads, or badly created files. NOTE: This option only works if the underlying media supports seeking (i.e. not with stdin, pipe, etc). -noidx Skip rebuilding index file. MEncoder skips writing the index with this option. -ipv4-only-proxy (network only) Skip the proxy for IPv6 addresses. It will still be used for IPv4 connections. -lavfstreamopts Specify extra options for libavformat based streams. -loadidx The file from which to read the video index data saved by -saveidx. This index will be used for seeking, overriding any index data contained in the AVI itself. MPlayer will not pre‐ vent you from loading an index file generated from a different AVI, but this is sure to cause unfavorable results. NOTE: This option is obsolete now that MPlayer has OpenDML sup‐ port. -mc maximum A-V sync correction per frame (in seconds) -mc 0 should always be combined with -noskip for mencoder, oth‐ erwise it will almost certainly cause A-V desync. -mf Used when decoding from multiple PNG or JPEG files. Available options are: w= input file width (default: autodetect) h= input file height (default: autodetect) fps= output fps (default: 25) type= input file type (available: jpeg, png, tga, sgi) -ni Force treating files as non-interleaved. In particular forces usage of non-interleaved AVI parser (fixes playback of some bad AVI files). Can also help playing files that otherwise play au‐ dio and video alternating instead of at the same time. This can significantly increase memory usage, thus it would be preferable to fix interleaving of affected files. -nobps (AVI only) Do not use average byte/second value for A-V sync. Helps with some AVI files with broken header. -noextbased Disables extension-based demuxer selection. By default, when the file type (demuxer) cannot be detected reliably (the file has no header or it is not reliable enough), the filename exten‐ sion is used to select the demuxer. Always falls back on con‐ tent-based demuxer selection. -passwd (also see -user) (network only) Specify password for HTTP authentication. -prefer-ipv4 (network only) Use IPv4 on network connections. Falls back on IPv6 automati‐ cally. -prefer-ipv6 (IPv6 network only) Use IPv6 on network connections. Falls back on IPv4 automati‐ cally. -psprobe When playing an MPEG-PS or MPEG-PES streams, this option lets you specify how many bytes in the stream you want MPlayer to scan in order to identify the video codec used. This option is needed to play EVO or VDR files containing H.264 streams. -pvr (PVR only) This option tunes various encoding properties of the PVR capture module. It has to be used with any hardware MPEG encoder based card supported by the V4L2 driver. The Hauppauge WinTV PVR-150/250/350/500 and all IVTV based cards are known as PVR capture cards. Be aware that only Linux 2.6.18 kernel and above is able to handle MPEG stream through V4L2 layer. For hardware capture of an MPEG stream and watching it with MPlayer/MEncoder, use 'pvr://' as a movie URL. Available options are: aspect=<0-3> Specify input aspect ratio: 0: 1:1 1: 4:3 (default) 2: 16:9 3: 2.21:1 arate=<32000-48000> Specify encoding audio rate (default: 48000 Hz, avail‐ able: 32000, 44100 and 48000 Hz). alayer=<1-5> Specify MPEG audio layer encoding (default: 2). abitrate=<32-448> Specify audio encoding bitrate in kbps (default: 384). amode= Specify audio encoding mode. Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (de‐ fault: stereo). vbitrate= Specify average video bitrate encoding in Mbps (default: 6). vmode= Specify video encoding mode: vbr: Variable BitRate (default) cbr: Constant BitRate vpeak= Specify peak video bitrate encoding in Mbps (only useful for VBR encoding, default: 9.6). fmt= Choose an MPEG format for encoding: ps: MPEG-2 Program Stream (default) ts: MPEG-2 Transport Stream mpeg1: MPEG-1 System Stream vcd: Video CD compatible stream svcd: Super Video CD compatible stream dvd: DVD compatible stream -radio (radio only) These options set various parameters of the radio capture mod‐ ule. For listening to radio with MPlayer use 'radio://' (if channels option is not given) or 'radio://' (if channels option is given) as a movie URL. You can see allowed frequency range by running MPlayer with '-v'. To start the grabbing subsystem, use 'radio:///cap‐ ture'. If the capture keyword is not given you can listen to radio using the line-in cable only. Using capture to listen is not recommended due to synchronization problems, which makes this process uncomfortable. Available options are: device= Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD). driver= Radio driver to use (default: v4l2 if available, other‐ wise v4l). Currently, v4l and v4l2 drivers are support‐ ed. volume=<0..100> sound volume for radio device (default 100) freq_min= (*BSD BT848 only) minimum allowed frequency (default: 87.50) freq_max= (*BSD BT848 only) maximum allowed frequency (default: 108.00) channels=-,-,... Set channel list. Use _ for spaces in names (or play with quoting ;-). The channel names will then be writ‐ ten using OSD and the slave commands radio_step_channel and radio_set_channel will be usable for a remote con‐ trol (see LIRC). If given, number in movie URL will be treated as channel position in channel list. EXAMPLE: radio://1, radio://104.4, radio_set_channel 1 adevice= (radio capture only) Name of device to capture sound from. Without such a name capture will be disabled, even if the capture key‐ word appears in the URL. For ALSA devices use it in the form hw=.. If the device name contains a '=', the module will use ALSA to capture, otherwise OSS. arate= (radio capture only) Rate in samples per second (default: 44100). NOTE: When using audio capture set also -rawaudio rate= option with the same value as arate. If you have problems with sound speed (runs too quickly), try to play with different rate values (e.g. 48000,44100,32000,...). achannels= (radio capture only) Number of audio channels to capture. -rawaudio This option lets you play raw audio files. You have to use -de‐ muxer rawaudio as well. It may also be used to play audio CDs which are not 44kHz 16-bit stereo. For playing raw AC-3 streams use -rawaudio format=0x2000 -demuxer rawaudio. Available options are: channels= number of channels rate= rate in samples per second samplesize= sample size in bytes bitrate= bitrate for rawaudio files format= fourcc in hex -rawvideo This option lets you play raw video files. You have to use -de‐ muxer rawvideo as well. Available options are: fps= rate in frames per second (default: 25.0) sqcif|qcif|cif|4cif|pal|ntsc set standard image size w= image width in pixels h= image height in pixels i420|yv12|yuy2|y8 set colorspace format= colorspace (fourcc) in hex or string constant. Use -rawvideo format=help for a list of possible strings. size= frame size in Bytes EXAMPLE: mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif Play the famous "foreman" sample video. mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576 Play a raw YUV sample. -referrer (network only) Specify a referrer path or URL for HTTP requests. -rtsp-port Used with 'rtsp://' URLs to force the client's port number. This option may be useful if you are behind a router and want to forward the RTSP stream from the server to a specific client. -rtsp-destination Used with 'rtsp://' URLs to force the destination IP address to be bound. This option may be useful with some RTSP server which do not send RTP packets to the right interface. If the connec‐ tion to the RTSP server fails, use -v to see which IP address MPlayer tries to bind to and try to force it to one assigned to your computer instead. -rtsp-stream-over-tcp (LIVE555 and NEMESI only) Used with 'rtsp://' URLs to specify that the resulting incoming RTP and RTCP packets be streamed over TCP (using the same TCP connection as RTSP). This option may be useful if you have a broken internet connection that does not pass incoming UDP pack‐ ets (see http://www.live555.com/mplayer/). -rtsp-stream-over-http (LIVE555 only) Used with 'http://' URLs to specify that the resulting incoming RTP and RTCP packets be streamed over HTTP. -saveidx Force index rebuilding and dump the index to . Cur‐ rently this only works with AVI files. NOTE: This option is obsolete now that MPlayer has OpenDML sup‐ port. -sb (also see -ss) Seek to byte position. Useful for playback from CD-ROM images or VOB files with junk at the beginning. -speed <0.01-100> Slow down or speed up playback by the factor given as parameter. Not guaranteed to work correctly with -oac copy. Add -af scaletempo to get past the 4x limit on playback. -srate Select the output sample rate to be used (of course sound cards have limits on this). If the sample frequency selected is dif‐ ferent from that of the current media, the resample or lavcre‐ sample audio filter will be inserted into the audio filter layer to compensate for the difference. The type of resampling can be controlled by the -af-adv option. The default is fast resam‐ pling that may cause distortion. -ss