How to install mpv media player in ubuntu 17.04

How to install mpv media player in ubuntu 17.04

MPV media player is a fork of MPlayer / Mplayer2 and it has recently released the version 0.24 . It is very simple to install mpv media player on Ubuntu 17.04 and this article sheds light on it. Moreover, the new version has several additional features and bug fixes.

New in mpv 0.24

  • add experimental C plugin interface
  • add experimental stream recording feature
  • add prefetching of the next playlist entry
  • VA-API now supports 10-bit video formats
  • X11 pseudo HiDPI scaling support.
  • fix high CPU usage under Wayland
  • improved OpenGL video output

Installing mpv player

Before you begin with the installation of mpv player, make sure you add its repo by using &ldquo add-apt-repository&rdquo command in your machine.


root@linuxhelp:~# 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
 
\*New -
Now uses a default profile named pseudo-gui
This is used via mpv.desktop, mainly for playback from context menu,
  mime associations &  DnD on a launcher icon.
The upstream default is idle=once, I' ve set these builds to idle=yes
 
\*re vapoursynth support\*
remove this ppa, remove mpv &  use this ppa
https://launchpad.net/~djcj/+archive/ubuntu/vapoursynth
Do note that vapoursynth-extra-plugins should be installed to make that mpv build useful, not currently a recommend..
 
\*re: cuda\*
Now using SDK 8, requires nvidia-378.13 at a min.
Can be gotten here - https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
If any initial issues try,
Remove mpv, install new drivers, reboot, re-install mpv
 More info: https://launchpad.net/~mc3man/+archive/ubuntu/mpv-tests
Press \[ENTER\] to continue or ctrl-c to cancel adding it
 
gpg: keybox ' /tmp/tmp2wiofss6/pubring.gpg'  created
gpg: /tmp/tmp2wiofss6/trustdb.gpg: trustdb created
gpg: key 90BD7EACED8E640A: public key " Launchpad PPA for Doug McMahon"  imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1
OK



Once it is done, update the newly added repo by invoking the following command.


root@linuxhelp:~# apt-get update Hit:1 http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu zesty InRelease         
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease                      
Get:3 http://security.ubuntu.com/ubuntu zesty-security InRelease \[89.2 kB\]
Get:4 http://security.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata \[11.7 kB\]
Get:5 http://security.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons \[9,219 B\]
Get:6 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease \[89.2 kB\]
Get:7 http://security.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata \[14.4 kB\]
Get:8 http://security.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons \[31.0 kB\]
Get:9 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease \[89.2 kB\]
Get:10 http://in.archive.ubuntu.com/ubuntu zesty-updates/main amd64 DEP-11 Metadata \[51.9 kB\]
Get:11 http://in.archive.ubuntu.com/ubuntu zesty-updates/main DEP-11 64x64 Icons \[23.9 kB\]
Get:12 http://in.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 DEP-11 Metadata \[71.4 kB\]
Get:13 http://in.archive.ubuntu.com/ubuntu zesty-updates/universe DEP-11 64x64 Icons \[80.8 kB\]
Get:14 http://in.archive.ubuntu.com/ubuntu zesty-updates/multiverse amd64 DEP-11 Metadata \[5,840 B\]
Get:15 http://in.archive.ubuntu.com/ubuntu zesty-backports/universe amd64 DEP-11 Metadata \[4,688 B\]
Fetched 572 kB in 7s (76.2 kB/s)                                               
Reading package lists... Done

Now is the time to install the MPV player. Run the following command for the same purpose.


root@linuxhelp:~# apt-get install mpv Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  i965-va-driver libaacs0 libaec0 libbdplus0 libbluray2 libbs2b0 libdvdnav4
  libdvdread4 libfdk-aac1 libgfortran3 libgme0 libgsm1 libhdf5-100 liblua5.2-0
  libmodplug1 libmp3lame0 libnetcdf11 librubberband2v5 libsoxr0 libsz2
  libtwolame0 libuchardet0 libva-drm1 libva-wayland1 libva-x11-1 libva1
  libvdpau1 libxvidcore4 mesa-va-drivers mesa-vdpau-drivers va-driver-all
  vdpau-driver-all
Suggested packages:
  libbluray-bdj libdvdcss2 libfglrx-amdxvba1 libvdpau-va-gl1
  nvidia-vdpau-driver nvidia-legacy-340xx-vdpau-driver
The following NEW packages will be installed:
  i965-va-driver libaacs0 libaec0 libbdplus0 libbluray2 libbs2b0 libdvdnav4
.
.
.
.
Setting up libsz2:amd64 (0.3.2-1) ...
Setting up libhdf5-100:amd64 (1.10.0-patch1+docs-3) ...
Setting up libva-wayland1:amd64 (1.7.3-2) ...
Setting up libdvdnav4:amd64 (5.0.3-3) ...
Setting up mesa-vdpau-drivers:amd64 (17.0.3-1ubuntu1) ...
Setting up va-driver-all:amd64 (1.7.3-2) ...
Setting up vdpau-driver-all:amd64 (1.1.1-3ubuntu1) ...
Setting up libnetcdf11 (1:4.4.1.1-1build1) ...
Setting up mpv (2:0.24.0+ppa2~zesty1) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...

< ads2>


When the application icon appear on your screen, click on it to launch mpv player.

The application looks like the one in the following image.

And drag and drop to the media file on mpv player


With this, the installation of mpv player is complete.

FAQ
Q
How can I find out the names and commands associated with each key?
A
Run mpv in input test mode:

mpv --input-test --force-window --idle
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 add volume -2
Q
How can I change video quality on YouTube?
A
Check available format of video by youtube-dl:

youtube-dl --list-formats
Q
What are its features assosiated with it?
A
add experimental C plugin interface add experimental stream recording feature add prefetching of the next playlist entry VA-API now supports 10-bit video formats X11 pse
Q
What is the stable ppa to be used with this?
A
run the command as follow "add-apt-repository ppa:mc3man/mpv-tests".