Raspberry Pi

How to Install MPV Player on Raspberry Pi

MPV is a command-line player that runs audio and video files on the system terminal. The application doesn’t have any GUI interface; instead, it runs on the terminal through command, putting fewer resources on a low-powered device like Raspberry Pi. It supports various audio and video player formats and codecs, allowing users the freedom to run audio easily and video files on their systems.

If you want to install this application on your Raspberry Pi system, follow this article’s guidelines for an easy installation process.

How to Install MPV on Raspberry Pi

The Raspberry Pi repository includes the files required to install MPV on your Raspberry system; thus, you can perform the following easy steps to install this application.

Step 1: Update Raspberry Pi Repository

Since you are installing MPV from the Raspberry Pi repository, you should update it from the following command:

$ sudo apt update && sudo apt upgrade

Enter “Y” to begin upgrading the packages on the Raspberry Pi system.

Step 2: Install MPV on Raspberry Pi

To install MPV on Raspberry Pi, you should follow the below-mentioned command that installs the application from the Raspberry Pi repository.

$ sudo apt install mpv -y

Step 3: Check MPV Version on Raspberry Pi

To confirm the MPV version, use the following command:

$ mpv --version

Run Audio and Video Files on Raspberry Pi Through MPV

To run audio files on your Raspberry Pi system through MPV, you can use the following syntax.

$ mpv <filename>

You can use the same command as mentioned above just by replacing the name of the video file to run the video on the Raspberry Pi system.

You can double-click on the video to open the full-screen mode and there you will find several options like forwarding the video, playing the next video, or stopping the current video.

To stop audio or video files from playing, you can use the “CTRL+C” key from the keyboard.

Remove MPV Player From Raspberry Pi

Removing the MPV player is straightforward as you just need to run the following command in your Raspberry Pi system terminal:

$ sudo apt remove mpv -y

Conclusion

MPV is a lightweight command-line player for running audio and video files on your system in several formats and codecs. You can install this player directly from the Raspberry Pi source repository. To run the audio or video file, you must apply the “mpv” command with the file name to run the file on your Raspberry Pi system. To close the file, you should use the “CTRL+C” key from your Raspberry Pi keyboard.

About the author

Awais Khan

I'm an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.