Linux Mint

How to Install MPV Player on Linux Mint 21

MPV is an open-source, multi-platform, versatile media player having different video-based file formats, audio and video codecs, and video control options. Its other interesting features include powerful scripting capabilities, video scaling, frame timing, color management, interpolation, and many more. It comes with compatibility that ensures its powerful integration with other applications and support multiple platforms including Linux systems.

How to Install MPV Media Player on Linux Mint 21

It is the beauty of the Linux system that you always get multiple solutions to a single problem. Similarly, to install the MPV media player, you would get the following easiest ways in this guideline:

  • Using the Default Apt Repository
  • Using the PPA Repository
  • Using the Flatpak
  • Using GUI

1: Install MPV Media Player Using Default Repository

Before installing any task on Linux system, it is good to update its repository first. This will let the system packages up to date and install the required tool with the latest release:

$ sudo apt update && sudo apt upgrade

Now, run the following command to install the MPV player on Linux Mint 21 system:

$ sudo apt install mpv

Run the version command to check if the system has installed the latest update of MPV player:

$ mpv --version

If you want to uninstall the player from the Linux system, you can do so by typing the below-mentioned command:

$ sudo apt remove mpv

2: Install MPV Media Player Using PPA Repository

Another way to install the MPV media player is through the PPA repository. For this, you need to install the required dependencies to the Linux Mint 21 system using the below-mentioned command:

sudo apt install dirmngr ca-certificates software-properties-common gnupg gnupg2 apt-transport-https

Import the key through the given command:

sudo gpg --no-default-keyring --keyring /usr/share/keyrings/rob-savoury.gpg --keyserver keyserver.ubuntu.com --recv-keys E996735927E427A733BB653E374C7797FB006459

Now, you’re required to add MPV repository in the next move which is mentioned below:

echo 'deb [signed-by=/usr/share/keyrings/rob-savoury.gpg] https://ppa.launchpadcontent.net/savoury1/mpv/ubuntu jammy main' | sudo tee -a /etc/apt/sources.list.d/mpv-rob-savoury.list

Update the system repository to make all changes successfully:

$ sudo apt update

Now, you can install the MPV player by executing the given command:

$ sudo apt install mpv

However, if you want to remove the MPV player, run the following command:

$ sudo apt purge --autoremove mpv

3: Install MPV Media Player Using Flatpak

Flatpak is the third-party tool used to install Linux packages and is pre-installed on Linux Mint systems.

First, you need to enable it on the system by making use of mentioned command:

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Execute the command to install the player on your system:

flatpak install flathub io.mpv.Mpv

You can also remove this media player using the third-party tool i-e, flatpak by typing:

$ flatpak remove flathub io.mpv.Mpv

4: Install MPV Media Player Using GUI

GUI is an alternative way to install any package for users who don’t wish to run commands. You can also install MPV using this approach by opening the Software Manager, search MPV and select the right application:

Click on the Install button after getting the MPV screen:

The process requires sudo privileges, type the password, and select the Authenticate option:

And it will install the program:

To run the application, select the Launch button:

(You can also remove it by clicking on Remove button)

Conclusion

MPV is an open-source media player used for playing audio and video files on your system. It is popular among users for being a simple yet powerful player. This guide has explained many useful ways to install MPV player on Linux Mint 21 system. These ways include the default APT repository, PPA repository, Snap store, and the Flatpak. Select any method that best suits you and enjoy playing audio and video files on your system.

About the author

Syeda Wardah Batool

I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.