mencoder

flash视频专区   2008-11-18 17:02   阅读135   评论0  
字号:    

NAME

mplayer - movie player

mencoder - movie encoder 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|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] [-skin skin]

mencoder [options] file [file|URL|-] [-o file | file://file | smb://[user:pass@]host/filepath]

mencoder [options] file1 [specific options] [file2] [specific options] http://www.mplayerhq.hu/:DOCS/:HTML/:en/:edl for details.

-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)initialization for all 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.
-framedrop (also see -hardframedrop, experimental without -no-correct-pts)
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.
-(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.
-h, -help, --help
Show short summary of options.
-hardframedrop (experimental without -no-correct-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).

This can be "misused" to disable screensavers that do not support the proper X API for this. If you think this is too complicated ask the author of the screensaver program to support the proper X APIs for this.

EXAMPLE for xscreensaver: mplayer -heartbeat-cmd "xscreensaver-command -deactivate" file

EXAMPLE for gnome screensaver: mplayer -heartbeat-cmd "gnome-screensaver-command -p" file

-identify
Shorthand for -msglevel identify=4. Show file parameters in an easily parseable format. Also prints more detailed information about subtitle and audio track 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 chapters and time length of each title, as well as a disk ID. Combine this with -frames 0 to suppress all output. The wrapper script TOOLS/:midentify suppresses the other MPlayer output and (hopefully) shellescapes the filenames.
-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.
-input <commands>
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:

s
Specify input configuration file other than the default ~/:.mplayer/:input.conf. ~/:.mplayer/:<filename> is assumed if no full path is given.
s
Delay in milliseconds before we start to autorepeat a key (0 to disable).
s
Number of key presses to generate per second on autorepeat.
s
Prints all keys that can be bound to commands.
s
Prints all commands that can be bound to keys.
s
Specifies the joystick device to use (default: /dev/:input/:js0).
s
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 (leading to "stuck mouse buttons" and similar effects). 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.
-lircconf <filename> (LIRC only)
Specifies a configuration file for LIRC (default: ~/.lircrc).
-list-properties
Print a list of the available properties.
-loop <number>
Loops movie playback <number> times. 0 means forever.
-menu (OSD menu only)
Turn on OSD menu support.
-menu-cfg <filename> (OSD menu only)
Use an alternative menu.conf.
-menu-chroot <path> (OSD menu only)
Chroot the file selection menu to a specific location.

EXAMPLE:

s
Will restrict the file selection menu to /:home and downward (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 current directory.
-menu-root <value> (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 (currently only derivatives of X11 are supported). Necessary to select the buttons in DVD menus.
-noconsolecontrols
Prevent 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 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 seconds to check the current time. Useless with modern Linux kernels configured for desktop use as they already wake up the process with similar accuracy when using normal timed sleep.
-playing-msg <string>
Print out a string before starting playback. The following expansions are supported:
s
Expand to the value of the property NAME.
s
Expand TEXT only if the property NAME is available.
s
Expand TEXT only if the property NAME is not available.
-playlist <filename>
Play files according to a playlist file (ASX, Winamp, SMIL, or one-file-per-line format).

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.

-rtc-device <device>
Use the specified device for RTC timing.
-shuffle
Play files in random order.
-skin <name> (GUI only)
Loads a skin from the directory given as parameter below the default skin directories, /usr/:local/:share/:mplayer/:skins/: and ~/.mplayer/:skins/.

EXAMPLE:

s
Tries /usr/:local/:share/:mplayer/:skins/:fittyfene and afterwards ~/.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, MPlayer will read commands separated by a newline (

) from stdin.

NOTE: See -input cmdlist for a list of slave commands and DOCS/tech/slave.txt for their description.

-softsleep
Time frames by repeatedly checking the current time instead of asking the kernel to wake up MPlayer at the correct time. Useful if your kernel timing is imprecise and you cannot use the RTC either. Comes at the price of higher CPU consumption.
-sstep <sec>
Skip <sec> 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.
http://www.mplayerhq.hu/:DOCS/:HTML/:en/:edl 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 is enabled only for MEncoder and will 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.

EXAMPLE:

s
Stop at 56 seconds.
s
Stop at 1 hour 10 minutes.
s
Stop at 1 minute 6 seconds.
s
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 MEncoder (see the documentation).

NOTE: This option only works if the underlying media supports seeking (i.e. not with stdin, pipe, etc).

-fps <float value>
Override video framerate. Useful if the original value is wrong or missing.
-frames <number>
Play/:convert only first <number> 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.
-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.
-loadidx <index file>
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 prevent 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 support.

-mc <seconds/frame>
maximum A-V sync correction per frame (in seconds)
-mf <option1:option2:...>
Used when decoding from multiple PNG or JPEG files.

Available options are:

s
input file width (default: autodetect)
s
input file height (default: autodetect)
s
output fps (default: 25)
s
input file type (available: jpeg, png, tga, sgi)
-ni (AVI only)
Force usage of non-interleaved AVI parser (fixes playback of some bad AVI 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 extension is used to select the demuxer. Always falls back on content-based demuxer selection.
-passwd <password> (also see -user) (network only)
Specify password for HTTP authentication.
-prefer-ipv4 (network only)
Use IPv4 on network connections. Falls back on IPv6 automatically.
-prefer-ipv6 (IPv6 network only)
Use IPv6 on network connections. Falls back on IPv4 automatically.
-psprobe <byte position>
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 <option1:option2:...> (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:

s
Specify input aspect ratio:
0: 1:1

1: 4:3 (default)

2: 16:9

3: 2.21:1

s
Specify encoding audio rate (default: 48000 Hz, available: 32000, 44100 and 48000 Hz).
s
Specify MPEG audio layer encoding (default: 2).
s
Specify audio encoding bitrate in kbps (default: 384).
s
Specify audio encoding mode. Available preset values are 'stereo', 'joint_stereo', 'dual' and 'mono' (default: stereo).
s
Specify average video bitrate encoding in Mbps (default: 6).
s
Specify video encoding mode:
vbr: Variable BitRate (default)

cbr: Constant BitRate

s
Specify peak video bitrate encoding in Mbps (only useful for VBR encoding, default: 9.6).
s
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 <option1:option2:...> (radio only)
These options set various parameters of the radio capture module. For listening to radio with MPlayer use 'radio://<frequency>' (if channels option is not given) or 'radio://<channel_number>' (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://<frequency or channel>/capture'. 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:

s
Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).
s
Radio driver to use (default: v4l2 if available, otherwise v4l). Currently, v4l and v4l2 drivers are supported.
s
sound volume for radio device (default 100)
s
minimum allowed frequency (default: 87.50)
s
maximum allowed frequency (default: 108.00)
s
Set channel list. Use _ for spaces in names (or play with quoting ;-). The channel names will then be written using OSD and the slave commands radio_step_channel and radio_set_channel will be usable for a remote control (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

s
Name of device to capture sound from. Without such a name capture will be disabled, even if the capture keyword appears in the URL. For ALSA devices use it in the form hw=<card>.<device>. If the device name contains a '=', the module will use ALSA to capture, otherwise OSS.
s
Rate in samples per second (default: 44100).

NOTE: When using audio capture set also -rawaudio rate=<value> 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,...).

s
Number of audio channels to capture.
-rawaudio <option1:option2:...>
This option lets you play raw audio files. You have to use -demuxer 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:

s
number of channels
s
rate in samples per second
s
sample size in bytes
s
bitrate for rawaudio files
s
fourcc in hex
-rawvideo <option1:option2:...>
This option lets you play raw video files. You have to use -demuxer rawvideo as well.

Available options are:

s
rate in frames per second (default: 25.0)
s
set standard image size
s
image width in pixels
s
image height in pixels
s
set colorspace
s
colorspace (fourcc) in hex or string constant. Use -rawvideo format=help for a list of possible strings.
s
frame size in Bytes

EXAMPLE:
s
Play the famous "foreman" sample video.
s
Play a raw YUV sample.
-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 connection 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 packets (see http://www.live555.com/:mplayer/).
-saveidx <filename>
Force index rebuilding and dump the index to <filename>. Currently this only works with AVI files.

NOTE: This option is obsolete now that MPlayer has OpenDML support.

-sb <byte position> (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.
-srate <Hz>
Selects the output sample rate to be used (of course sound cards have limits on this). If the sample frequency selected is different from that of the current media, the resample or lavcresample 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 resampling that may cause distortion.
-ss <time> (also see -sb)
Seek to given time position.

EXAMPLE:

s
Seeks to 56 seconds.
s
Seeks to 1 hour 10 min.
-tskeepbroken
Tells MPlayer not to discard TS packets reported as broken in the stream. Sometimes needed to play corrupted MPEG-TS files.
-tsprobe <byte position>
When playing an MPEG-TS stream, this option lets you specify how many bytes in the stream you want MPlayer to search for the desired audio and video IDs.
-tsprog <1-65534>
When playing an MPEG-TS stream, you can specify with this option which program (if present) you want to play. Can be used with -vid and -aid.
-tv <option1:option2:...> (TV/:PVR only)
This option tunes various properties of the TV capture module. For watching TV with MPlayer, use 'tv://' or 'tv://<channel_number>' or even 'tv://<channel_name> (see option channels for channel_name below) as a movie URL. You can also use 'tv:///<input_id>' to start watching a movie from a composite or S-Video input (see option input for details).

Available options are:

s
no sound
s
If signal strength reported by device is less than this value, audio and video will be muted. In most cases automute=100 will be enough. Default is 0 (automute disabled).
s
See -tv driver=help for a list of compiled-in TV input drivers. available: dummy, v4l, v4l2, bsdbt848 (default: autodetect)
s
Specify TV device (default: /dev/:video0). NOTE: For the bsdbt848 driver you can provide both bktr and tuner device names separating them with a comma, tuner after bktr (e.g. -tv device=/dev/bktr1,/dev/tuner1).
s
Specify input (default: 0 (TV), see console output for available inputs).
s
Specify the frequency to set the tuner to (e.g. 511.250). Not compatible with the channels parameter.
s
Specify the output format of the tuner with a preset value supported by the V4L driver (yv12, rgb32, rgb24, rgb16, rgb15, uyvy, yuy2, i420) or an arbitrary format given as hex value. Try outfmt=help for a list of all available formats.
s
output window width
s
output window height
s
framerate at which to capture video (frames per second)
s
maximum size of the capture buffer in megabytes (default: dynamical)
s
For bsdbt848 and v4l, PAL, SECAM, NTSC are available. For v4l2, see the console output for a list of all available norms, also see the normid option below.
s
Sets the TV norm to the given numeric ID. The TV norm depends on the capture card. See the console output for a list of available TV norms.
s
Set tuner to <value> channel.
s
available: europe-east, europe-west, us-bcast, us-cable, etc
s
Set names for channels. NOTE: If <channel> is an integer greater than 1000, it will be treated as frequency (in kHz) rather than channel name from frequency table.

Use _ for spaces in names (or play with quoting ;-). The channel names will then be written using OSD, and the slave commands tv_step_channel, tv_set_channel and tv_last_channel will be usable for a remote control (see LIRC). Not compatible with the frequency parameter.

NOTE: The channel number will then be the position in the 'channels' list, beginning with 1.

EXAMPLE: tv://1, tv://TV1, tv_set_channel 1, tv_set_channel TV1

s
Set the image equalizer on the card.
s
Set audio capture bitrate.
s
Capture audio even if there are no audio sources reported by v4l.
s
Capture from ALSA.
s
Choose an audio mode:
0: mono

1: stereo

2: language 1

3: language 2

s
By default, the count of recorded audio channels is determined automatically by querying the audio mode from the TV card. This option allows forcing stereo/:mono recording regardless of the amode option and the values returned by v4l. This can be used for troubleshooting when the TV card is unable to report the current audio mode.
s
Set an audio device. <value> should be /dev/:xxx for OSS and a hardware ID for ALSA. You must replace any ':' by a '.' in the hardware ID for ALSA.
s
Choose an audio output of the capture card, if it has more than one.
s
s
These options set parameters of the mixer on the video capture card. They will have no effect, if your card does not have one. For v4l2 50 maps to the default value of the control, as reported by the driver.
s
Set gain control for video devices (usually webcams) to the desired value and switch off automatic control. A value of 0 enables automatic control. If this option is omitted, gain control will not be modified.
s
A value of 0 means capture and buffer audio and video together (default for MEncoder). A value of 1 (default for MPlayer) means to do video capture only and let the audio go through a loopback cable from the TV card to the sound card.
s
Use hardware MJPEG compression (if the card supports it). When using this option, you do not need to specify the width and height of the output window, because MPlayer will determine it automatically from the decimation value (see below).
s
choose the size of the picture that will be compressed by hardware MJPEG compression:
1: full size

    704x576    PAL

    704x480    NTSC

2: medium size

    352x288    PAL

    352x240    NTSC

4: small size

    176x144    PAL

    176x120    NTSC

s
Choose the quality of the JPEG compression (< 60 recommended for full size).
s
Specify TV teletext device (example: /dev/:vbi0) (default: none).
s
Specify TV teletext display format (default: 0):
0: opaque

1: transparent

2: opaque with inverted colors

3: transparent with inverted colors

s
Specify initial TV teletext page number (default: 100).
s
Specify default teletext language code (default: 0), which will be used as primary language until a type 28 packet is received. Useful when the teletext system uses a non-latin character set, but language codes are not transmitted via teletext type 28 packets for some reason. To see a list of supported language codes set this option to -1.
s
Terminate stream with video renderer instead of Null renderer (default: off). Will help if video freezes but audio does not. NOTE: May not work with -vo directx and -vf crop combination.
s
Terminate VideoPort pin stream with video renderer instead of removing it from the graph (default: off). Useful if your card has a VideoPort pin and video is choppy. NOTE: May not work with -vo directx and -vf crop combination.
s
Use the system clock as sync source instead of the default graph clock (usually the clock from one of the live sources in graph).
s
Create audio chunks with a time length equal to video frame time length (default: off). Some audio cards create audio chunks about 0.5s in size, resulting in choppy video when using immediatemode=0.
-tvscan <option1:option2:...> (TV and MPlayer only)
Tune the TV channel scanner. MPlayer will also print value for "-tv channels=" option, including existing and just found channels.

Available suboptions are:

s
Begin channel scanning immediately after startup (default: disabled).
s
Specify delay in seconds before switching to next channel (default: 0.5). Lower values will cause faster scanning, but can detect inactive TV channels as active.
s
Threshold value for the signal strength (in percent), as reported by the device (default: 50). A signal strength higher than this value will indicate that the currently scanning channel is active.
-user <username> (also see -passwd) (network only)
Specify username for HTTP authentication.
-user-agent <string>
Use <string> as user agent for HTTP streaming.
-vid <ID>
Select video channel (MPG: 0-15, ASF: 0-255, MPEG-TS: 17-8190). When playing an MPEG-TS stream, MPlayer/:MEncoder will use the first program (if present) with the chosen video stream.
-vivo <suboption> (DEBUG CODE)
Force audio parameters for the VIVO demuxer (for debugging purposes). FIXME: Document this.
iconv(3), you can use this option to specify the subtitle codepage.

EXAMPLE:

-subcp latin2

-subcp cp1250

-subcp enca:<language>:<fallback codepage> (ENCA only)
You can specify your language using a two letter language code to make ENCA detect the codepage automatically. If unsure, enter anything and watch mplayer -v output for available languages. Fallback codepage specifies the codepage to use, when autodetection fails.

EXAMPLE:

s
Guess the encoding, assuming the subtitles are Czech, fall back on latin 2, if the detection fails.
s
Guess the encoding for Polish, fall back on cp1250.
-subdelay <sec>
Delays subtitles by <sec> seconds. Can be negative.
-subfile <filename> (BETA CODE)
Currently useless. Same as -audiofile, but for subtitle streams (OggDS?).
-subfont <filename> (FreeType only)
Sets the subtitle font. If no -subfont is given, -font is used.
-subfont-autoscale <0-3> (FreeType only)
Sets the autoscale mode.

NOTE: 0 means that text scale and OSD scale are font heights in points.

The mode can be:

s
no autoscale
s
proportional to movie height
s
proportional to movie width
s
proportional to movie diagonal (default)
-subfont-blur <0-8> (FreeType only)
Sets the font blur radius (default: 2).
-subfont-encoding <value> (FreeType only)
Sets the font encoding. When set to 'unicode', all the glyphs from the font file will be rendered and unicode will be used (default: unicode).
-subfont-osd-scale <0-100> (FreeType only)
Sets the autoscale coefficient of the OSD elements (default: 6).
-subfont-outline <0-8> (FreeType only)
Sets the font outline thickness (default: 2).
-subfont-text-scale <0-100> (FreeType only)
Sets the subtitle text autoscale coefficient as percentage of the screen size (default: 5).
-subfps <rate>
Specify the framerate of the subtitle file (default: movie fps).

NOTE: <rate> > movie fps speeds the subtitles up for frame-based subtitle files and slows them down for time-based ones.

-subpos <0-100> (useful with -vf expand)
Specify the position of subtitles on the screen. The value is the vertical position of the subtitle in % of the screen height.
-subwidth <10-100>
Specify the maximum width of subtitles on the screen. Useful for TV-out. The value is the width of the subtitle in % of the screen width.
-noterm-osd
Disable the display of OSD messages on the console when no video output is available.
-term-osd-esc <escape sequence>
Specify the escape sequence to use before writing an OSD message on the console. The escape sequence should move the pointer to the beginning of the line used for the OSD and clear it (default: ^[[A\r^[[K).
-unicode
Tells MPlayer to handle the subtitle file as unicode.
-unrarexec <path to unrar executable> (not supported on MingW)
Specify the path to the unrar executable so MPlayer can use it to access rar-compressed VOBsub files (default: not set, so the feature is off). The path must include the executable's filename, i.e. /usr/local/bin/unrar.
-utf8   
Tells MPlayer to handle the subtitle file as UTF-8.
-vobsub <VOBsub file without extension>
Specify a VOBsub file to use for subtitles. Has to be the full pathname without extension, i.e. without the '.idx', '.ifo' or '.sub'.
-vobsubid <0-31>
Specify the VOBsub subtitle ID.
pnm(5), ppm(5) and pgm(5).
s
Write PPM files (default).
s
Write PGM files.
s
Write PGMYUV files. PGMYUV is like PGM, but it also contains the U and V plane, appended at the bottom of the picture.
s
Write PNM files in raw mode (default).
s
Write PNM files in ASCII mode.
s
Specify the directory to save the PNM files to (default: ./).
s
Create numbered subdirectories with the specified prefix to save the files in instead of the current directory.
s
Maximum number of files to be saved per subdirectory. Must be equal to or larger than 1 (default: 1000).
png    
Output each frame into a PNG file in the current directory. Each file takes the frame number padded with leading zeros as name. 24bpp RGB and BGR formats are supported.
s
Specifies the compression level. 0 is no compression, 9 is maximum compression.
tga    
Output each frame into a Targa file in the current directory. Each file takes the frame number padded with leading zeros as name. The purpose of this video output driver is to have a simple lossless image writer to use without any external library. It supports the BGR[A] color format, with 15, 24 and 32 bpp. You can force a particular format with the format video filter.

EXAMPLE:

mplayer video.nut -vf format=bgr15 -vo tga
raw(8) for instance. Please note that on most operating systems, using a raw device requires highly aligned buffers: Linux requires a 2048 bytes alignment (which is the size of a DVD sector).
DVDCSS_VERBOSE
Sets the libdvdcss verbosity level.
s
Outputs no messages at all.
s
Outputs error messages to stderr.
s
Outputs error messages and debug messages to stderr.
DVDREAD_NOKEYS
Skip retrieving all keys on startup. Currently disabled.
HOME
FIXME: Document this.
dvd://1

Play in Japanese with English subtitles:

mplayer dvd://1 -alang ja -slang en

Play only chapters 5, 6, 7:

mplayer dvd://1 -chapter 5-7

Play only titles 5, 6, 7:

mplayer dvd://5-7

Play a multiangle DVD:

mplayer dvd://1 -dvdangle 2

Play from a different DVD device:

mplayer dvd://1 -dvd-device /dev/:dvd2

Play DVD video from a directory with VOB files:

mplayer dvd://1 -dvd-device /path/:to/:directory/

Copy a DVD title to hard disk, saving to file title1.vob:

mplayer dvd://1 -dumpstream -dumpfile title1.vob

Play a DVD with dvdnav from path /dev/sr1:

mplayer dvdnav:////dev/sr1

Stream from HTTP:

mplayer http://mplayer.hq/example.avi

Stream using RTSP:

mplayer rtsp://server.example.com/streamName

Convert subtitles to MPsub format:

mplayer dummy.avi -sub source.sub -dumpmpsub

Convert subtitles to MPsub format without watching the movie:

mplayer /dev/:zero -rawvideo pal:fps=xx -demuxer rawvideo -vc null -vo null -noframedrop -benchmark -sub source.sub -dumpmpsub

input from standard V4L:

mplayer tv:// -tv driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv

Playback on Zoran cards (old style, deprecated):

mplayer -vo zr -vf scale=352:288 file.avi

Playback on Zoran cards (new style):

mplayer -vo zr2 -vf scale=352:288,zrmjpeg file.avi

Play DTS-CD with passthrough:

mplayer -ac hwdts -rawaudio format=0x2001 -cdrom-device /dev/cdrom cdda://

You can also use -afm hwac3 instead of -ac hwdts. Adjust '/dev/cdrom' to match the CD-ROM device on your system. If your external receiver supports decoding raw DTS streams, you can directly play it via cdda:// without setting format, hwac3 or hwdts.

Play a 6-channel AAC file with only two speakers:

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

You might want to play a bit with the pan values (e.g multiply with a value) to increase volume or avoid clipping.

checkerboard invert with geq filter:

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'dvd://2 -chapter 10-15 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4

Encode DVD title #2, resizing to 640x480:

mencoder dvd://2 -vf scale=640:480 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4

Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):

mencoder dvd://2 -vf scale -zoom -xy 512 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4

The same, but with bitrate set to 1800kbit and optimized macroblocks:

mencoder dvd://2 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800

The same, but with MJPEG compression:

mencoder dvd://2 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800

Encode all *.jpg files in the current directory:

mencoder "mf://*.jpg" -mf fps=25 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4

Encode from a tuner (specify a format with -vf format):

mencoder -tv driver=v4l:width=640:height=480 tv:// -o tv.avi -ovc raw

Encode from a pipe:

rar p test-SVCD.rar | mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800 -ofps 24 - 

评论(?)
阅读(?)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
网易公司版权所有 ©1997-2009