From 118baad7bcdd70aa78865489cb1b766ae2e70dba Mon Sep 17 00:00:00 2001 From: Aria Date: Wed, 30 Apr 2025 11:43:13 +1000 Subject: [PATCH] Update MPV for HDR --- mpv/mpv.conf | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/mpv/mpv.conf b/mpv/mpv.conf index a3586e9..647ccb2 100755 --- a/mpv/mpv.conf +++ b/mpv/mpv.conf @@ -49,10 +49,8 @@ blend-subtitles hls-bitrate=max -hwdec=auto-safe -vo=gpu-next +hwdec=vulkan,vulkan-copy,auto-safe profile=gpu-hq -gpu-context=wayland screenshot-directory="/home/buymymojo/Pictures/MPV/" @@ -60,11 +58,12 @@ screenshot-directory="/home/buymymojo/Pictures/MPV/" # Cache # ######### cache=yes -cache-secs=300 # how many seconds of audio/video to prefetch if the cache is active +cache-secs=600 # how many seconds of audio/video to prefetch if the cache is active +vo=gpu-next # vo=dmabuf-wayland -# gpu-api=vulkan -# gpu-context=waylandvk +gpu-api=vulkan +gpu-context=waylandvk # vulkan-async-compute # gpu-context=winvk spirv-compiler=auto @@ -80,7 +79,7 @@ temporal-dither # interpolation-threshold=0.0001 # video-sync=audio # video-sync=display -# video-sync=display-resample-vdrop +video-sync=display-resample video-crop=0x0+0+0 deband=yes @@ -108,18 +107,25 @@ scale-blur=0.981251 # [HDR] - -# profile-decs=HDR_Content # profile-cond=p["video-params/gamma"] == "pq" # profile-restore=copy -# target-colorspace-hint=yes +target-colorspace-hint=auto # tone-mapping=spline -# tone-mapping-mode=auto # hdr-compute-peak=yes # target-peak=auto # gamut-mapping-mode=perceptual # hdr-contrast-recovery=1.0 -# disable icc-profile +# +# [HDR_MODE:DOVI] +# profile-restore=copy +# #Automatically enables profile if DoVi video is played. Seems to work but maybe there a better way? +# profile-cond=(p["video-dec-params/gamma"] == "auto") +# target-trc=pq +# target-prim=bt.2020 +# #Adjust this to the peak brightness of your display. e.g. 800 for LG CX +# target-peak=1500 +# #Only necessary if you are switching between different profiles like me SDR_TO_HDR tonemap profile +# tone-mapping-mode=auto ################################### # Protocol Specific Configuration #