MPV is a free and open-source cross-platform media player forked from MPlayer2. It is based on MPlayer, mplayer2 and Ffmpeg. It was forked in 2012 from mplayer2, which was forked in 2010 from Mplayer. This was aimed at encouraging developer activity by removing unmaintainable code and dropping support for very old systems. Mpv supports a wide variety of video file formats, audio and video codecs, and subtitle types. Special input URL types are available to read input from a variety of sources other than disk files. Depending on platform, a variety of different video and audio output methods are supported.
Features of MPV media player
- Powerful scripting capabilities
- High quality video output
- GPU video encoding
- On-screen controller
- MPV can be used directly by other applications through a library interface called libmpv.
Install MPV media player on Linux Mint 20
Follow the below few steps to install MPV media player on Linux Mint 20
Step 1: Update Linux Mint repository
First, let us ensure that our Linux mint packages are updated before any installation.
$ sudo apt-get update
Step 2: Add MPV repository
Next, we need to add MPV repository to Linux mint to be used for installation. Run the commands below:
$ sudo add-apt-repository ppa:mc3man/mpv-tests
When prompted as to whether you want to continue, press Enter. The prompt will look as below:
More info: https://launchpad.net/~mc3man/+archive/ubuntu/mpv-tests Press Enter to continue or Ctrl+C to cancel
Remember to update the packages again
$ sudo apt-get update
Step 3: Install MPV player on Linux Mint 20
After adding MPV repository, run the below command to install MPV media player on Linux Mint 20
$ sudo apt-get install mpv
Step 4: Launch MPV media player on Linux Mint 20
Once successfully installed, you can go ahead to launch and use MPV media player. Search from your Linux Mint applications and you will notice it already included.
Click on it to launch. It will ask you to drop files.
Step 5: Configure MPV media player on Linux Mint 20
The global MPV configuration file is in /etc/mpv path. However user specific configurations are found in ~/.config/mpv/mpv.conf. Note that user specific configurations override system wide options. Open the configuration file and make the changes as you wish. The syntax of the configuration files is option=value
$ sudo vim ~/.config/mpv/mpv.conf
Add the following content to the config file. Note that you can customize further to suit your preference but the following settings are standard for Linux.
# Player # border=no msg-color=yes msg-module=yes # OSC/OSD # osc=yes osd-bar=yes # Do not remove/comment if mpv_thumbnail_script_client_osc.lua is being used. osd-font='Source Sans Pro' # Set a font for OSC osd-font-size=22 # Set a font size osd-color='#CCFFFFFF' # ARGB format osd-border-color='#DD322640' # ARGB format osd-bar-align-y=-1 # progress bar y alignment (-1 top, 0 centered, 1 bottom) osd-border-size=1 # size for osd text and progress bar osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height osd-bar-w=60 # width of " " " # Audio # volume-max=200 # maximum volume in %, everything above 100 results in amplification audio-stream-silence # fix audio popping on random seek audio-file-auto=fuzzy # external audio doesn't has to match the file name exactly to autoload audio-pitch-correction=yes # automatically insert scaletempo when playing with higher speed # Languages # alang=jpn,jp,eng,en,enUS,en-US,de,ger slang=eng,en,und,de,ger,jp,jap # Video Profiles # [vulkan] gpu-api=vulkan hwdec=no vulkan-async-compute=yes vulkan-async-transfer=yes vulkan-queue-count=1 [vo] dither=error-diffusion deband=yes deband-iterations=2 deband-threshold=20 deband-range=16 scale=haasnsoft scale-clamp=0.2 cscale=ewa_lanczos correct-downscaling=yes linear-downscaling=yes sigmoid-upscaling=yes video-sync=display-resample tscale=box tscale-window=quadric tscale-radius=1.1 tscale-clamp=0.0 interpolation blend-subtitles=no hdr-compute-peak=yes tone-mapping=mobius [video-linux] profile=vo profile=vulkan autofit=85%x85% [protocol.file] network-timeout=0 force-window=yes cache=yes demuxer-max-bytes=2000MiB demuxer-readahead-secs=300 force-seekable=yes [protocol-network] network-timeout=5 force-window=immediate hls-bitrate=max cache=yes demuxer-max-bytes=2000MiB demuxer-readahead-secs=300 [protocol.http] profile=protocol-network [protocol.https] profile=protocol-network
That’s it. Enjoy using MPV media player on Linux Mint 20. Also check more interesting Linux guides below: