Mike's avatar Mike's Blog

Nov 12, 2022

Configuring mpv

What is mpv?

mpv is a media player based on MPlayer and mplayer2. It supports a wide variety of video file formats, audio and video codecs, and subtitle types. You can download it from here.

Why mpv?

I have tried with VLC, PotPlayer, MPC-HC. I found that mpv is the best media player for me. It’s lightweight, fast, and has a lot of features.

My configuration

I use mpv on Windows, so I will show you my configuration on Windows under portable_config folder.

profile=gpu-hq
vo=gpu-next # enable playback for dolby vision
hwdec=nvdec
gpu-api=vulkan

scale=ewa_lanczos
scale-blur=0.981251
video-sync=display-resample
interpolation=yes
tscale=sphinx
tscale-blur=0.6991556596428412

sub-auto=fuzzy
blend-subtitles=video
audio-exclusive=yes
target-colorspace-hint=yes
slang=chi, zh-Hans, eng

[SDR]
profile-cond=p["video-params/primaries"] and p["video-params/primaries"] ~= "bt.2020"
icc-profile-auto=yes
vf=format:gamma=gamma2.2 # use gamma 2.2 for SDR
# glsl-shaders="~~/shaders/Anime4K_Restore_CNN_UL.glsl"

[HDR]
profile-cond=p["video-params/primaries"] == "bt.2020"