How to install mpv media player on Linux PC | Free and Open Source Video Players for Linux in 2024

Mastering MPV on Linux: A Comprehensive Installation Guide

MPV, the mighty media player, reigns supreme in the world of Linux for its versatility, efficiency, and customization options. Here’s a detailed guide to installing MPV on your favorite Linux distribution, ensuring you can play your favorite media files with ease.

Choosing Your Installation Method:

There are several ways to install MPV on Linux, each with its advantages:

  1. Package Manager (Recommended): This is the simplest and most recommended method for most users. It leverages your distro’s built-in package management system to install and update MPV seamlessly.

  2. Building from Source: This method offers the most up-to-date version and greater control over the compilation process. However, it requires more technical knowledge and can be time-consuming.

  3. Third-Party Repositories (PPAs): While convenient, this method uses repositories not maintained by your distro. It might lead to compatibility issues or delays in updates. Use PPAs with caution.

Installation via Package Manager:

Here’s a breakdown for the most popular distros:

  • Debian & Ubuntu:

    1. Open a terminal window (Ctrl + Alt + T).

    2. Update package lists:

    Bash
    sudo apt update
    
    1. Install MPV:
    Bash
    sudo apt install mpv
    
  • Fedora & CentOS:

    1. Open a terminal window (Ctrl + Alt + T).

    2. Update package lists:

    Bash
    sudo dnf update
    
    1. Install MPV:
    Bash
    sudo dnf install mpv
    
  • Arch Linux:

    1. Open a terminal window (Ctrl + Alt + T).

    2. Update package lists:

    Bash
    sudo pacman -Syu
    
    1. Install MPV:
    Bash
    sudo pacman -S mpv
    

Verification:

Once the installation is complete, open a terminal and type:

Bash
mpv --version

This should display the installed MPV version, confirming successful installation.

Building from Source (For Advanced Users):

  1. Download the latest MPV source code from the official website github.com/mpv-player.

  2. Extract the downloaded archive.

  3. Navigate to the extracted directory in your terminal.

  4. Compile and install MPV (refer to the official build instructions for detailed commands specific to your system).

Using Third-Party Repositories (Use with Caution):

  1. Add the desired PPA repository to your system’s sources list (instructions specific to the chosen PPA).

  2. Update package lists.

  3. Install MPV using the package manager commands mentioned earlier.

Playing Media with MPV:

Once installed, you can play media files by opening a terminal and navigating to the directory containing the file. Then, type:

Bash
mpv <filename.extension>

Replace <filename.extension> with the actual file name and extension (e.g., mpv video.mp4).

Additional Tips:

  • GUI Integration: Most desktop environments allow integrating MPV for right-click context menu options to play media files. Explore your desktop environment’s settings for such options.

  • Configuration: MPV offers extensive customization options through its configuration file. Explore the official documentation for details on customizing playback behavior, keyboard shortcuts, and more https://mpv.io/manual/stable/.

With this comprehensive guide, you’re now equipped to install and utilize MPV on your Linux PC. Enjoy the smooth playback and vast customization options this powerful media player offers!