Introduction
mpv is an open source multimedia player that has earned a reputation for its light performance, wide codecs support and its focus on command line reproduction. Unlike players with heavy graphical interface, mpv focuses on providing a minimum but highly configurable experience, ideal for Linux users who prefer to control their environment from the terminal. In this article we will explore how to install mpv in the most popular distributions, their basic playback options and how to customize it to suit your daily needs.
Installation
The installation of mpv is easy thanks to its presence in the official repositories of most Linux distributions. In Ubuntu and its derivatives it is enough to run sudo apt update followed by sudo apt install mpv. In Fedora it is used sudo dnf install mpv, while in Arch Linux the command is sudo pacman -S mpv. For those who prefer the latest version, it is possible to compile from the source code available in GitHub, enabling specific compilation options such as Vulkan support or libplacebo integration. After installation, check the version with mpv -version ensures that everything is ready to start.
Basic use
Once installed, playing a file is as simple as writing mpv route / to / archivo.mkv in the terminal. mpv automatically detects the file type and selects the best decoder available. Options can be passed directly into the command line, for example -fs for full screen, -scale = ewa _ lanczossharp for a high quality climbing or -vo = gpu to use the GPU backend. In addition, mpv supports the reproduction of DVDs, Blu-rays and network flows like YouTube by using auxiliary scripts such as youtube-dl or ytdl-patch. The lower state bar shows useful information such as time, bitrate and fps, while the Space key alternates between pause and reproduction.
shortcuts and input settings
mpv comes with a set of intuitive keyboard shortcuts that allow you to control the playback without leaving the keyboard. The left and right arrows back or advance 5 seconds, while Shift + left / right arrow jumps 1 minute. The keys 9 and 0 decrease and increase the volume, and m silence the audio. To change the audio track or subtitles are used # and * respectively. The full screen mode is altered with f, and can be displayed or hidden the options menu with i. These shortcuts can be redefined by editing the input.conf file, which provides an additional customization layer to adapt the player to specific workflows.
Video and scaling filters
Image quality is one of the strengths of mpv thanks to its wide range of video filters and climbing algorithms. The -vf parameter allows to channel filters such as scale, cut, color correction and disfocus. For example, -vf = scale = 1920: 1080: filter = lanczos, eq = Brightness = 0.1: saturation = 1.2 adjusts the resolution, applies a lanczos filter and modifies brightness and saturation. Users looking for the latest in processing can activate the GPU backend with -vo = gpu and combine it with shakers such as deband or upscale-spline36 to reduce band artifacts and improve details. In addition, the frame interpolation mode (-interpolation) can generate a more fluid experience in low-rate frame content, while the mapped tone mode (-tone-mapping) helps preserve the dynamic range in HDR content.
Audio Options
In the field of audio, mpv is not left behind. The player supports a wide variety of codecs, from AAC and MP3 to loss-free formats such as FLAC and DSD. The volume can be adjusted with the keys 9 and 0, but there is also a 10-band equalizer accessible by the -af = equalizer filter =... For example, -af = equalizer = 11: 5: 0: 0: 0: 0: 0: 0: 0: 0: 0 enhance the bass. Audio channels can be reordered or downloaded with options such as -audio-channels = stereo or -audio-channels = 5.1. For those using advanced audio systems, mpv allows the passthurgh output of formats such as Dolby TrueHD and DTS-HD by -audio-spdif = dts-hd, which sends the signal without decoding to a compatible receiver. In addition, predefined equalizer files can be loaded using the mpv.conf file or Lua scripts that adjust the equalizer dynamically according to the music genre.
Lists, flows and networks
mpv also stands out for its ability to handle playlists and network flows without complications. You can create a simple list in a text file with a route per line and pass it with -playlist = lista.txt. To play content from services such as YouTube, Vimeo or Twitter, simply install an extraction script such as youtube-dl and then use the URL directly: mpv https: / / www.youtube.com / watch? v = ID. The player will recognize the script call and download the best available format before starting the play. In addition, mpv supports protocols such as HTTP, HLS, DASH and RTSP, making it a viable option to watch live transmissions or security cameras. The -ytdl-format option allows to specify the desired quality, while -ytdl-raw-options =... provides granular control over youtube-dl options.
Conclusion
In short, mpv stands out as a versatile and light multimedia player that adapts to both occasional users and deep customization enthusiasts. Its management from the terminal, its powerful video and audio filters, and the ability to extend its functionality through scripts make it ideal for any Linux environment. We invite you to experiment with the configuration options, test different profiles and share your discoveries in the community to further improve your multimedia experience.


