MPV HDR Direct Playback via Script (Auto Switch HDR) #17780
yosh-wang
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since mpv currently does not support automatically toggling the Windows HDR switch based on video content, developer dyphore created a script to implement this functionality — automatically turning the system HDR mode on/off and enabling HDR passthrough. The script is integrated into: mpv-config https://github.com/dyphire/mpv-config/releases — ready to use out of the box, just configure
hdr_mode.confwith your display parameters.mpv.conf settings:
vo=gpu-nexthdr_mode.conf settings:
These three files are indispensable:
\portable_config\script-opts\hdr_mode.conf 【hdr_mode.conf】
\portable_config\scripts\hdr-mode.lua 【hdr-mode.lua】
\portable_config\scripts\display-info.dll 【display-info.dll】
How it works:
hdr_mode.confhdr_mode=switch,target_peak=400, etc. The script reads this file at startup to apply your settings.hdr-mode.luadisplay-info.dll由于mpv目前不支持根据视频内容自动切换Windows HDR开关,开发者 dyphire 编写了一个脚本来实现此功能——通过脚本自动开关系统HDR模式及实现HDR直通。该脚本已整合至:mpv-config https://github.com/dyphire/mpv-config/releases ,开箱即用,只需根据你的显示器参数配置hdr_mode.conf即可。
mpv.conf设置如下:
hdr_mode.conf设置如下:
以下三个文件缺一不可:
\portable_config\script-opts\hdr_mode.conf 【hdr_mode.conf】
\portable_config\scripts\hdr-mode.lua 【hdr-mode.lua】
\portable_config\scripts\display-info.dll 【display-info.dll】
工作原理:
hdr_mode.confhdr_mode=switch、target_peak=400等。脚本启动时会读取此文件中的设置。hdr-mode.luadisplay-info.dllBeta Was this translation helpful? Give feedback.
All reactions