LinuxCommandLibrary

mplayer

TLDR

Play video file

$ mplayer [video.mp4]
copy
Play audio file
$ mplayer [audio.mp3]
copy
Play fullscreen
$ mplayer -fs [video.mp4]
copy
Specify audio output
$ mplayer -ao [alsa] [file]
copy
Loop playback
$ mplayer -loop [0] [file]
copy
Set start position
$ mplayer -ss [00:01:30] [video.mp4]
copy
Dump audio stream
$ mplayer -dumpaudio -dumpfile [out.mp3] [video.mp4]
copy

SYNOPSIS

mplayer [options] file

DESCRIPTION

mplayer is a powerful media player. It plays almost any audio and video format.
The tool supports many codecs. Keyboard controlled with extensive command-line options.
mplayer is versatile media player.

PARAMETERS

FILE

Media file to play.
-fs
Fullscreen mode.
-ao DRIVER
Audio output driver.
-vo DRIVER
Video output driver.
-loop N
Loop count (0=infinite).
-ss TIME
Seek to position.
--help
Display help information.

CAVEATS

Legacy player. Consider mpv as successor. Keyboard controls in terminal.

HISTORY

MPlayer was created in 2000 as an open-source media player, becoming foundational for mpv and others.

SEE ALSO

mpv(1), vlc(1), ffplay(1)

Copied to clipboard