Play Local Media with mpv on Linux
Wanted a quick way to play local music on Linux without messing with heavy GUI apps. After trying a few options, mpv won out. It’s simple, fast, and handles pretty much any media format, audio or video.
Installation
On Ubuntu or Debian:
sudo apt install mpv
Other distros have it too. Check your package manager.
Basic Usage
-
Play everything in a folder:
mpv . -
Play a specific file (music or video):
mpv ./file.mp3 mpv ./file.mp4
Handy mpv Controls
- Play/Pause:
Space - Next:
>(Shift + .) orEnter - Previous:
<(Shift + ,) - Volume Up/Down:
0/9 - Mute:
m - Seek: Arrow keys (Right/Left for 5s, Up/Down for 1 min)
- Quit:
qorCtrl+C
Extra Notes
- Playlists work too:
mpv playlist.m3u - Custom settings go in
~/.config/mpv/mpv.conf -
To hide album art when playing audio files:
mpv --no-audio-display ./file.mp3
mpv has been the go-to for local media ever since. No media library to maintain, no app to babysit.