Linux command
mplayer 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Play video file
mplayer [video.mp4]
Play audio file
mplayer [audio.mp3]
Play fullscreen
mplayer -fs [video.mp4]
Specify audio output
mplayer -ao [alsa] [file]
Loop playback
mplayer -loop [0] [file]
Set start position
mplayer -ss [00:01:30] [video.mp4]
Dump audio stream
mplayer -dumpaudio -dumpfile [out.mp3] [video.mp4]
说明
mplayer is a powerful, command-line media player that supports a vast range of audio and video formats. It uses FFmpeg's libavcodec and libavformat for decoding, along with native codecs for some formats. Keyboard shortcuts control playback: arrow keys seek, p pauses, q quits, f toggles fullscreen, and +/- adjusts audio delay. The player can also be controlled via a FIFO pipe or slave mode for scripting.
参数
- -fs
- Fullscreen mode.
- -ao _DRIVER_
- Audio output driver.
- -vo _DRIVER_
- Video output driver.
- -loop _N_
- Loop count (0=infinite).
- -ss _TIME_
- Seek to position.
- -dumpaudio
- Dump raw audio stream to a file.
- -dumpfile _FILE_
- Filename for dumped audio/video stream.
- -speed _FACTOR_
- Playback speed multiplier (0.01-100, default: 1.0).
- -quiet
- Suppress most status messages.
- -identify
- Print media properties (useful for scripting).
FAQ
What is the mplayer command used for?
mplayer is a powerful, command-line media player that supports a vast range of audio and video formats. It uses FFmpeg's libavcodec and libavformat for decoding, along with native codecs for some formats. Keyboard shortcuts control playback: arrow keys seek, p pauses, q quits, f toggles fullscreen, and +/- adjusts audio delay. The player can also be controlled via a FIFO pipe or slave mode for scripting.
How do I run a basic mplayer example?
Run `mplayer [video.mp4]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -fs do in mplayer?
Fullscreen mode.