MPV media player released new 0.36.0 version a few days ago. Here’s how to install it for those sticking to the classic
.deb package format.
MPV does not provide official packages for Ubuntu Linux. It’s however easy to install the latest version via different sources.
Linux Mint 21 can directly search for and install VLC Flatpak package from software manager. And, Ubuntu can install the Snap package from Ubuntu Software. Though, both of them run in sandbox.
For those sticking to the classic
.deb package, I’ve upload MPV 0.36 into this unofficial PPA. It supports Ubuntu 22.04, Ubuntu 23.04, Ubuntu 20.04 on both x86_64 and arm64/armhf CPU architecture types.
Install MPV 0.36 via Ubuntu PPA
The PPA package is a backport from non-gnu.uvt.nl. It has FFmpeg 6.0 (5.1.2 for 20.04) bundle in the source to avoid dependency issues! You may say thank you to the upstream maintainers: Joost van Baal and Wessel Dankers.
1. Add the PPA
Firstly, press Ctrl+Alt+T on keyboard to open a terminal window. When it opens, paste the command below and hit run:
sudo add-apt-repository ppa:ubuntuhandbook1/mpv
Type user password (no asterisk feedback) when it asks and hit Enter to continue.
2. Update package cache
Since Ubuntu 20.04, it automatically updates the package cache while adding PPA. Though, Linux Mint user needs to do it manually.
To do so, run command in terminal:
sudo apt update
3. Install MPV 0.36
Finally, install mpv media player v0.36 by running command:
sudo apt install mpv
To verify, run
mpv --version command in terminal.
The PPA package is built without
libmpv library, so you won’t be able to use it as backend for any other applications.
Drag and drop files into mpv app window does not work, due to Wayland. Though, you may right-click on media file to open with mpv.
For hardware video acceleration, first make sure your graphics driver support it, then edit ‘
/etc/mpv/mpv.conf‘ file and add hwdec=auto.
You can choose to purge the PPA repository, which will also downgrade mpv to the stock version in system repository. To do so, open terminal and run command:
sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntuhandbook1/mpv
Or, remove PPA by running command:
sudo add-apt-repository --remove ppa:ubuntuhandbook1/mpv
To remove the mpv media player, use command:
sudo apt remove --autoremove mpv