MPlayer is a free and open-source media player software application. It is available for Linux, OS X and Microsoft Windows. Versions for OS/2, Syllable, AmigaOS, MorphOS and AROS Research Operating System are also available. A port for DOS using DJGPP is also available.
- But, surprisingly, you can run mplayer at the same time when mpv is running. Mpv blocks one output and mplayer uses another one that's still available. So if you have just one card you can do this (a hacky solution): $ mpv -vo drm -drm-connector HDMI-A-1 movie1.mp4 & $ mplayer -vo fbdev2 movie2.mp4.
- Mpv is a free and open-source media player software that runs on several operating systems including Linux, macOS, and Windows. Based on the MPlayer, the program also has an Android port called mpv-android.
MPlayer is a popular movie player for GNU/Linux. It has support for most video and audio formats and is thus highly versatile, even if it is mostly used for viewing videos.
Install the mplayer package, or mplayer-svnAUR for the development version.
Notable variants are:
- MPlayer-VAAPI — VAAPI-enabled version
- http://gitorious.org/vaapi/mplayer mplayer-vaapiAUR
- MPlayer2 — Fork of MPlayer
- https://github.com/nezumisama/mplayer2 mplayer2AUR
See List of applications/Multimedia#MPlayer-based.
System-wide configuration files are located in the
/etc/mplayer/, whereas the user-local settings are stored in
~/.mplayer/ directory.The default files in the
codecs.conf- Contains configuration of codecs.
example.conf- Is an example of mplayer.conf, which is not automatically created after installation.
input.conf- Contains configuration of a hotkeys.
config is created in the
~/.mplayer/ directory by default.
See also: Example MPlayer configuration file, mplayer(1).
System key bindings are configured via
/etc/mplayer/input.conf. Personal key bindings are stored in
~/.mplayer/input.conf. For a complete list of keyboard shortcuts look at mplayer(1).
See also: XF86 keyboard symbols
Tips and tricks
Hardware video acceleration
See Hardware video acceleration.
Append the following to either the system-wide (
/etc/mplayer/mplayer.conf) or user-specific (
~/.mplayer/config) configuration files:
- The trailing commas are important! They tell MPlayer to fall back on other drivers and codecs should the specified ones not be found.
-vooption selects VDPAU video output driver,
-vcoption selects VDPAU video codecs.
ffodivxvdpaucodec is only supported by the most recent series of NVIDIA hardware. Consider omitting it based on your specific hardware. See Hardware video acceleration#NVIDIA for more information.
This requires mplayer-vaapiAUR from the AUR.
Mpv Player Apk
- -vo - Select vaapi video output driver
- -va - Select vaapi video decoder driver
MPlayer based players:
- gnome-mplayer: To enable hardware acceleration: Edit > Preferences > Player, then set Video Output to
- smplayer: To enable hardware acceleration: Options > Preferences > General > Video, then set Output driver to
Translucent video with Radeon cards and Composite enabled
To get translucent video output in X you have to enable textured video in MPlayer:
Or add the following line to
You can use
xvinfo to check which video modes your graphic card supports.
Watching streamed video
If you want to play a video stream (e.g an
ASX link) use:
-playlist option is necessary because these streams are actually playlists and cannot be played without it.
To play a DVD with MPlayer:
where N is the desired title number. Start at 1 and work up if unsure. To start at a specific chapter use the '-chapter' flag. For example, adding '-chapter 5' to the command starts the dvd playing at chapter five of the title.
/dev/dvd by default. Tell it to use
/dev/sr0 with the
dvd-device option at the command line, or the
dvd-device variable in
To play a DVD image file:
To enable the DVD menu use:
Enterkey to choose.
Anki Mpv Mplayer
To enable mouse support in DVD menus use:
To find the audio language, start MPlayer with the
-v switch to output audio IDs. An audio track is selected with
-aid audio_id. Set a default audio language by editing
~/.mplayer/config and adding the line
alang=en for English.
With MPlayer, the DVD could be set to a low volume. To increase the maximum volume to 400%, use
softvol-max=400. The startup volume defaults to 100% of software volume and the global mixer levels will remain untouched. Using the
0 keys, volume can be adjusted between 0 and 400 percent.
See DVB-T for more info.
To have MPlayer audio output directed to JACK as its default behavior, edit
~/.mplayer/config and add:
If you do not have JACK running all the time, you can have MPlayer output to JACK on an as-needed basis by invoking MPlayer from the command line as such:
In order to get Advanced SubStation Alpha (ass) or SubStation Alpha (ssa) formatted subtitles to display properly you need to either edit
~/.mplayer/config and add:
or add -ass to the command line:
One possible indication of needing to enable this flag is if you get numbers appearing with your subtitles. This is caused by the positioning information being interpreted as something to be displayed. Mplayer will also complain about subtitles being either too long or having too many lines.
ass also enables any embedded fonts. As per the note in the mplayer's man adding
embeddedfonts=true is unneeded if fontconfig is version 2.4.2 or newer. Fontconfig will also be used to select which font to use when there are no embedded fonts. This may result in a different font being used than the OSD subtitle renderer.
Here is an example of a script for an easy start/stop of playing a predefined radio station. 
For more details on a running mplayer instance:
Additional binary codecs
If you need to play media encoded with the cook, drvc or sipr codecs, you can install the 'essentials' binary codec pack with the codecs64AUR package. See http://www.mplayerhq.hu/design7/dload.html for more information.
MPlayer fails to open files with spaces
MPlayer can fail to open a file with spaces (e.g. 'The Movie') by saying that it could not open the file
file:///The%20Movie (where all spaces are converted to
%20). This can be fixed by editing
/usr/share/applications/mplayer.desktop to changing the following line from:
If you use a frontend/GUI for MPlayer, enter its name in
MPlayer has black or strange colored font for OSD and Subtitles
There appears to be an issue with OSD and Subtitle colors when using vdpau output, which mplayer may be using by default. You can get around this issue by using xv instead of vdpau:
As a command line option:
Adding the following line to your
See the original forums thread for details.
SMPlayer: No video issue
SMPlayer may have trouble opening some
MP4 (and probably
FLV) videos. If it plays only audio without any video, a possible fix is to add the following lines to your
If problem persists after doing so, it is because SMPlayer is keeping settings for that specific file. Deleting the settings for all the files that SMPlayer is keeping will solve this problem:
SMPlayer: fail to resume playback after pause
SMPlayer might stop playing a video after pausing it if your audio output driver is incorrectly set. You can fix this by specifically setting your audio driver. For example, if you use PulseAudio, this can be done by starting MPlayer with the
-ao pulse argument or by addingthe following to your
You can also change this from SMPlayer by going to Options > Preferences > General > Audio and setting the Output Driver option to pulse.
SMPlayer: no video when using transparency in GNOME
This problem may arise under GNOME when using Compiz to provide transparency: SMPlayer starts with a transparent screen with audio playing, but no video. To fix this, create (as root) a file with the contents:
Then do the following:
SMPlayer: OSD font too big / subtitle text too small
Since SMPlayer 0.8.2.1 (with MPlayer2 20121128-1), the ratio of the subtitle font to the OSD font is very strange. This can result in the OSD text filling the whole screen while the subtitles are very small and unreadable. This problem can be solved by adding:
or to the extra options passed to MPlayer from SMPlayer. These options are found in Options > Preferences > Advanced > Options for MPlayer. This can also be achieved by adding the following line to
Mplayer shows question marks for some characters on subtitle
If the codepage of the subtitles is utf8, try using:
Mpv Player Vr
You can find the codepage of the subtitles with:
Choppy audio CD playback
CDDA playback may be interrupted every few seconds as the CDROM spins down the CD. To get around this you need to cache or buffer in advance using the
:1 is to lower the CDROM speed for a constant spin and less noise.
Mpv Vs Mplayer Vs Vlc
- playerctl: A command-line utility and library for controlling media players