⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mplayer.1

📁 Mplayer源码
💻 1
📖 第 1 页 / 共 5 页
字号:
You can put all of the options in configuration files which will be readevery time MPlayer/MEncoder is run.The system-wide configuration file 'mplayer.conf' is in your configurationdirectory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the userspecific one is '~/\:.mplayer/\:config'.The configuration file for MEncoder is 'mencoder.conf' in your configurationdirectory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), theuser specific one is '~/\:.mplayer/\:mencoder.conf.User specific options override system-wide options and options given on thecommand line override either.The syntax of the configuration files is 'option=<value>', everything aftera '#' 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..PPYou can also write file-specific configuration files.If you wish to have a configuration file for a file called 'movie.avi', create a filenamed '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 tobe played, as long as you give the \-use-filedir-conf option (either on thecommand line or in your global config file)..PP.I EXAMPLE MPLAYER CONFIGURATION FILE:.sp 1.nf# 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://filemaskmf=type=png:fps=25# Eerie negative images are cool.vf=eq2=1.0:-0.8.fi.PP.I "EXAMPLE MENCODER CONFIGURATION FILE:".sp 1.nf# Make MEncoder output to a default filename.o=encoded.avi# The next 4 lines allow mencoder tv:// to start capturing immediately.oac=pcm=yesovc=lavc=yeslavcopts=vcodec=mjpegtv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000# more complex default encoding option setlavcopts=vcodec=mpeg4:autoaspect=1lameopts=aq=2:vbr=4ovc=lavc=1oac=lavc=1passlogfile=pass1stats.lognoautoexpand=1subfont-autoscale=3subfont-osd-scale=6subfont-text-scale=4subalign=2subpos=96spuaa=20.fi..\" --------------------------------------------------------------------------.\" Profiles.\" --------------------------------------------------------------------------..SH "PROFILES"To ease working with different configurations profiles can be defined in theconfiguration 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 defined with the profile-descoption.To end the profile, start another one or use the profile name 'default'to continue with normal options..fi.PP.I "EXAMPLE MENCODER PROFILE:".sp 1.nf[mpeg4]profile-desc="MPEG4 encoding"ovc=lacv=yeslavcopts=vcodec=mpeg4:vbitrate=1200[mpeg4-hq]profile-desc="HQ MPEG4 encoding"profile=mpeg4lavcopts=mbd=2:trell=yes:v4mv=yes.fi..\" --------------------------------------------------------------------------.\" Options.\" --------------------------------------------------------------------------..SH "GENERAL OPTIONS"..TP.B \-codecs-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)Override the standard search path and use the specified fileinstead of the builtin codecs.conf...TP.B \-include <configuration file>Specify configuration file to be parsed after the default ones...TP.B \-list-optionsPrints all available options...TP.B \-msgcharset <charset>Convert console messages to the specified character set (default: 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)..br.I NOTE:The option takes effect after command line parsing has finished.The MPLAYER_CHARSET environment variable can help you get rid ofthe first lines of garbled output...TP.B \-msglevel <all=<level>:<module>=<level>:...>Control verbosity directly for each module.The 'all' module changes the verbosity of all the modules notexplicitly specified on the command line.See '\-msglevel help' for a list of all modules..br.I NOTE:Messages printed before the command line is parsed can be controlled onlyby the MPLAYER_VERBOSE environment variable, which applies to all modules..brAvailable levels:.PD 0.RSs.IPs "-1"complete silence.IPs " 0"fatal messages only.IPs " 1"error messages.IPs " 2"warning messages.IPs " 3"short hints.IPs " 4"informational messages.IPs " 5"status messages (those hidden by \-quiet).IPs " 6"verbose messages.IPs " 7"debug level 2.IPs " 8"debug level 3.IPs " 9"debug level 4.RE.PD 1..TP.B "\-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 properlyhandle carriage return (i.e.\& \\r)...TP.B \-priority <prio> (Windows only)Set process priority for MPlayer according to the predefinedpriorities available under Windows.Possible values of <prio>:.RSsidle|belownormal|normal|abovenormal|high|realtime.RE.sp 1.RS.I WARNING:Using realtime priority can cause system lockup..RE..TP.B \-profile <profile1,profile2,...>Use the given profile(s), \-profile help displays a list of the defined profiles...TP.B \-really-quiet (also see \-quiet)Display even less output and status messages than with \-quiet...TP.B \-show-profile <profile>Show the description and content of a profile...TP.B \-use-filedir-confLook for a file-specific configuration file in the same directory asthe file that is being played..br.I WARNING:may be dangerous if playing from untrusted media...TP.B "\-v\ \ \ \ \ "Increment verbosity level, one level for each \-vfound on the command line.....SH "PLAYER OPTIONS (MPLAYER ONLY)"..TP.B \-autoq <quality> (use with \-vf [s]pp)Dynamically changes the level of postprocessing depending on the available spareCPU 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...TP.B \-autosync <factor>Gradually adjusts the A/V sync based on audio delay measurements.Specifying \-autosync 0, the default, will cause frame timing to be basedentirely on audio delay measurements.Specifying \-autosync 1 will do the same, but will subtly change the A/Vcorrection algorithm.An uneven video framerate in a movie which plays fine with \-nosound canoften 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 donot implement a perfect audio delay measurement.With this value, if large A/V sync offsets occur, they will only take about1 or 2 seconds to settle out.This delay in reaction time to sudden A/V offsets should be the onlyside-effect of turning this option on, for all sound drivers...TP.B \-benchmarkPrints some statistics on CPU usage and dropped frames at the end of playback.Use in combination with \-nosound and \-vo null for benchmarking only thevideo codec..br.I NOTE:With this option MPlayer will also ignore frame duration when playingonly video (you can think of that as infinite fps)...TP.B \-colorkey <number>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 outputdrivers...TP.B \-nocolorkeyDisables colorkeying.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 outputdrivers...TP.B \-crash-debug (DEBUG CODE)Automatically attaches gdb upon crash or SIGTRAP.Support must be compiled in by configuring with \-\-enable-crash-debug...TP.B \-edlout <filename>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 entrieslater.See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details...TP.B \-enqueue (GUI only)Enqueue files given on the command line in the playlist instead of playing themimmediately...TP.B \-fixed-voEnforces a fixed video system for multiple files (one (un)initialization forall files).Therefore only one window will be opened for all files.Currently the following drivers are fixed-vo compliant: gl, gl2, mga, svga, x11,xmga, xv, xvidix and dfbmga...TP.B \-framedrop (also see \-hardframedrop)Skip displaying some frames to maintain A/V sync on slow systems.Video filters are not applied to such frames.For B-frames even decoding is skipped completely...TP.B \-(no)guiEnable 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...TP.B \-h, \-help, \-\-helpShow short summary of options...TP.B \-hardframedropMore intense frame dropping (breaks decoding).Leads to image distortion!..TP.B \-identifyShorthand for \-msglevel identify=4.Show file parameters in an easily parseable format.Also prints more detailed information about subtitle and audiotrack languages and IDs.In some cases you can get more information by using \-msglevel identify=6.For example, for a DVD it will list the time length of each title, as wellas a disk ID.The wrapper script TOOLS/\:midentify suppresses the other MPlayer output and(hopefully) shellescapes the filenames...TP.B \-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 controlledthrough input commands...TP.B \-input <commands>This option can be used to configure certain parts of the input system.Paths are relative to ~/.mplayer/..br.I NOTE:Autorepeat is currently only supported by joysticks..sp 1Available commands are:.sp 1.PD 0.RSs.IPs conf=<filename>Specify input configuration file other than the default~/\:.mplayer/\:input.conf.~/\:.mplayer/\:<filename> is assumed if no full path is given..IPs ar-delayDelay in milliseconds before we start to autorepeat a key (0 to disable)..IPs ar-rateNumber of key presses to generate per second on autorepeat..IPs keylistPrints all keys that can be bound to commands..IPs cmdlistPrints all commands that can be bound to keys..IPs js-devSpecifies the joystick device to use (default: /dev/\:input/\:js0)..IPs file=<filename>Read commands from the given file.Mostly useful with a FIFO..br.I NOTE:When the given file is a FIFO MPlayer opens both ends so you can doseveral 'echo "seek 10" > mp_pipe' and the pipe will stay valid..RE.PD 1..TP.B \-key-fifo-size <2\-65000>Specify the size of the FIFO that buffers key events (default: 10).A FIFO of size n can buffer (n-1) events.If it is too small some events may be lost(leading to "stuck mouse buttons" and similar effects).If it is too big, MPlayer may seem to hang while itprocesses the buffered events.To get the same behavior as before this option was introduced,set it to 2 for Linux or 1024 for Windows...TP.B \-lircconf <filename> (LIRC only)Specifies a configuration file for LIRC (default: ~/.lircrc)...TP.B \-list-propertiesPrint a list of the available properties...TP.B \-loop <number>Loops movie playback <number> times.0 means forever...TP.B \-menu (OSD menu only)Turn on OSD menu support...TP.B \-menu-cfg <filename> (OSD menu only)Use an alternative menu.conf...TP.B \-menu-root <value> (OSD menu only)Specify the main menu...TP.B \-menu-startup (OSD menu only)Display the main menu at MPlayer startup...TP.B \-mouse-movementsPermit MPlayer to receive pointer events reported by the videooutput driver (currently only derivatives of X11 are supported).Necessary to select the buttons in DVD menus...TP.B \-noconsolecontrolsPrevent MPlayer from reading key events from standard input.Useful when reading data from standard input.This is automatically 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 stdinin a playlist or intend to read from stdin later on via the loadfile orloadlist slave commands...TP.B \-nojoystickTurns off joystick support...TP.B \-nolircTurns off LIRC support...TP.B \-nomouseinput (X11 only)Disable mouse button press/\:release input (mozplayerxp's context menu relieson this option)...TP.B \-rtc (RTC only)Turns on usage of the Linux RTC (realtime clock \- /dev/\:rtc) as timingmechanism.This wakes up the process every 1/1024 seconds to check the current time.Useless with modern Linux kernels configured for desktop use as they alreadywake up the process with similar accuracy when using normal timed sleep...TP.B \-playing-msg <string>Print out a string before starting playback.The following expansions are supported:.RSs.IPs ${NAME}Expand to the value of the property NAME..IPs $(NAME:TEXT)Expand TEXT only if the property NAME is available..RE..TP.B \-playlist <filename>Play files according to a playlist file (ASX, Winamp, SMIL, orone-file-per-line format)..br.I NOTE:This option is considered an entry so options found after it will applyonly to the elements of this playlist..brFIXME: This needs to be clarified and documented thoroughly...TP.B \-rtc-device <device>Use the specified device for RTC timing...TP.B \-shufflePlay files in random order...TP.B \-skin <name> (GUI only)Loads a skin from the directory given as parameter below the default skindirectories, /usr/\:local/\:share/\:mplayer/\:skins/\: and ~/.mplayer/\:skins/..sp 1.I EXAMPLE:.PD 0.RSs.IPs "\-skin fittyfene"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -