In this article I’ll show you how to setup mpv and arm it up with the best mpv.config file (in terms of performance and resource usage).
emerge --sync && emerge -av media-video/mpv
xbps-install -Su && xbps-install -S mpv
pacman -Syu mpv
mkdir ~/.config/mpv && cd ~/.config/mpv
Now we’ll have to create two files. The first being mpv.conf which controls mpv’s settings and the second being input.conf which controls mpv’s key bindings:
touch ~/.config/mpv/mpv.conf ~/.config/mpv/input.conf
profile=opengl-hq scale=ewa_lanczossharp cscale=ewa_lanczossoft dscale=mitchell scale-antiring=0.7 cscale-antiring=0.7 dither-depth=auto correct-downscaling=yes sigmoid-upscaling=yes deband=no volume-max=100 hwdec=auto
However, if you were on a laptop and wanted the best quality settings with the least CPU usage, you have to enable VAAPI (for example on your integrated Intel Graphics Card), which will result in lower resource usage, smaller memory footprint and the videos will still look as good. To do that just change line 12 from hwdec=auto to hwdec=vaapi:
profile=opengl-hq scale=ewa_lanczossharp cscale=ewa_lanczossoft dscale=mitchell scale-antiring=0.7 cscale-antiring=0.7 dither-depth=auto correct-downscaling=yes sigmoid-upscaling=yes deband=no volume-max=100 hwdec=vaapi
Please do note that using vo=opengl-hq is deprecated. Use profile=opengl-hq instead.
MOUSE_BTN3 add volume 5 MOUSE_BTN4 add volume -5
In my case MOUSE_BTN3 and MOUSE_BTN4 referred to scrolling up and down respectively.
To help keep DOTSLASHLINUX up and running and ads free, kindly consider supporting it on Patreon.
Thanks a lot for your support!
Apart from the comments' section, if you wanted to see an article on how to configure a certain application for a GNU/Linux distro, or wanted to share one (perhaps one that you've written), feel free to send me an email on: