How to install MPV Media Player in Ubuntu

To Install MPV Media Player in Ubuntu 16.04

In this article we will learn how to install MPV media player in Ubuntu 16.04. It is a part of mplayer2 and MPlayer.


Features

  • Streamlined CLI options
  • Provides a high quality video output
  • GPU video decoding is supported.
  • Supports On Screen Controls.

To install MPV Media Player

Utilise the following command to add MPV package into repository.

root@linuxhelp:/home/user1# add-apt-repository ppa:mc3man/mpv-tests
*Note - mpv.conf is the new default for a config file
Best, new default location is ~/.config/mpv/ using mpv.conf
.
.
.
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

Update the machine to make the changes permanent.

root@linuxhelp:/home/user1# apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:2 http://ppa.launchpad.net/formorer/icinga/ubuntu xenial InRelease
.
.
.
Fetched 282 kB in 2s (119 kB/s)
Reading package lists... Done

After updating, run the following command to install the MPV Package.

root@linuxhelp:/home/user1# apt-get install mpv
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
.
.
Setting up mpv (2:0.18.1~xenial1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...

Search for the MVP player on your Ubuntu Dashboard

Drag and Drop the video file to play.

To remove MPV package

Run the following command to remove MPV player.

root@linuxhelp:/home/user1# apt-get remove mpv
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
.
.
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...

To Remove Packages Without Configuration, utilise the following command.

root@linuxhelp:/home/user1# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
.
.
Removing libva-drm1:amd64 (1.7.1-1~ppa) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
FAQ
Q
Does FFmpeg or Libav preferred for use with mpv player?
A
Generally FFmpeg, simply because it has more features. Don't expect subtitles to work on Libav
Q
How can I find out the names and commands associated with each key on mpv media player?
A
find out the names and commands associated with each key on mpv media player

Run mpv in input test mode

mpv --input-test --force-window --idle
Q
How can I change video quality on YouTube?
A
Check available format of video by youtube-dl: youtube-dl --list-formats
Q
How can I change volume using the mouse wheel?
A
By default, volume is changed by scrolling horizontally. If you want to use vertical scrolling for that (rather than seeking), put this in your input.conf: AXIS_UP add volume 2 AXIS_DOWN
Q
Is FFmpeg or Libav preferred for use with mpv?
A
Generally FFmpeg, simply because it has more features. Don't expect subtitles to work on Libav.