From 10a5e6b42fa1657e3a03456898800c21432f283b Mon Sep 17 00:00:00 2001 From: liyp Date: Thu, 16 Feb 2023 17:15:35 +0800 Subject: [PATCH] change config --- input.conf | 2 -- mpv.conf | 20 ++++++-------------- profiles.conf | 6 ------ scripts/mpv_inhibit_gnome.so | Bin 0 -> 22328 bytes 4 files changed, 6 insertions(+), 22 deletions(-) create mode 100644 scripts/mpv_inhibit_gnome.so diff --git a/input.conf b/input.conf index a70de46..4624dc4 100644 --- a/input.conf +++ b/input.conf @@ -34,8 +34,6 @@ ##清空所有已加载的着色器 CTRL+` change-list glsl-shaders clr "" # 清空列表(视频着色器) - - ############## ## 滤镜列表 ## ############## diff --git a/mpv.conf b/mpv.conf index 1c6f019..95e7456 100644 --- a/mpv.conf +++ b/mpv.conf @@ -10,7 +10,7 @@ # 基础 # ######## -# vo = gpu # 视频输出驱动。许多后续选项也只能在此三项下正常工作。当前版本默认值即gpu + vo = gpu-next # 视频输出驱动。许多后续选项也只能在此三项下正常工作。当前版本默认值即gpu # gpu最高普适性和完成度;gpu-next查看此处讨论 https://github.com/hooke007/MPV_lazy/discussions/39 #gpu-context = vulkan # 选择输出后端,默认auto(此项的值与 --gpu-api 相关联,通常只需设置其中一项即可) gpu-api = vulkan # 选择图形绘制接口,默认auto。非特殊情况下win10用户始终应首选d3d11 @@ -20,7 +20,7 @@ #d3d11-flip = no # [通常发生在 --d3d11-exclusive-fs=yes 和 --on-top 一起使用时] 可用于避免MPV全屏时的冻屏问题 # 如果存在上述问题则启用该参数,否则不应该使用,因为d3d11下的翻转模型性能最好 - hwdec = vaapi # 指定应使用的硬件视频解码API。软解改为 no(默认)。硬解建议使用 d3d11va-copy。10系以上N卡强烈建议使用 nvdec-copy + hwdec = vaapi-copy # 指定应使用的硬件视频解码API。软解改为 no(默认)。硬解建议使用 d3d11va-copy。10系以上N卡强烈建议使用 nvdec-copy # 当 --gpu-api=d3d11 时,值 auto 首选 d3d11va ;值 auto-copy 首选 dxva2-copy;当 --gpu-api=vulkan 时,值 auto 首选 nvdec # 值 auto 等效 yes。不推荐选用理论上解码效率最高的 无-copy 的原生硬解 ,目的是确保全部设置/滤镜/着色器正常作用(有些不支持) # 在部分机器上 dxva2-copy 的占用可能远低于 d3d11va-copy @@ -67,7 +67,7 @@ #loop-playlist = no # 播放列表循环 keep-open = no # 默认情况下播完列表所有文件MPV自动关闭,设置为 yes 所有播放完毕不退出,设置为 always 可以实现类似“每个文件播完都暂停”的效果 hr-seek-framedrop = no # [SVP补帧时推荐设置为no] 跳转时丢帧,关闭利于修正音频延迟 - save-position-on-quit = yes # 退出时记住播放状态 + save-position-on-quit = no # 退出时记住播放状态 watch-later-options = vid,aid,sid # [SVP补帧时推荐设置为留空] 稍后观看的白名单(留空即只保存播放位置) # 当 --save-position-on-quit=yes 或使用退出时保存到稍后观看的功能时,如果不使用白名单,滤镜列表、音量、速率等其它状态也会被保存并在下次启动时恢复 @@ -78,7 +78,7 @@ #demuxer-max-bytes = 200MiB # 播放网络视频时的向后缓存大小(KiB或MiB) icc-cache-dir = "~~exe_dir/_cache/icc" # 指定目录存储和加载从ICC配置文件创建的3D LUT,可以用来加快加载速度。未压缩的LUT的大小取决于 --icc-3dlut-size= - gpu-shader-cache-dir = "~~exe_dir/_cache/shader" +# gpu-shader-cache-dir = "~~exe_dir/_cache/shader" # 在此目录中存储和加载已编译的GLSL着色器缓存,可以提高启动性能。 watch-later-directory = "~~exe_dir/_cache" # 在此目录中存储 "watch_later" 文件夹,其中的文件记录 --watch-later-options 指定的选项。默认路径为 "~~/watch_later" @@ -91,7 +91,7 @@ ##⇘⇘OSD 即 On-Screen-Display ,通常为屏幕上弹出显示的信息。 OSC 即 on-screen-controller ,MPV中指的是简易操控界面 osd-on-seek = msg-bar # 在跳转时间轴时显示的信息类型 -#osd-blur = 0 +#osd-blur = 1 osd-bar-w = 100 osd-bar-h = 2 osd-bar-align-y = -1 @@ -115,7 +115,7 @@ # 改具体值示例 --audio-device="wasapi/{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}",设备名获取方式见发布页FAQ图文或官方手册 #audio-exclusive = yes # 音频通道独占 volume-max = 120 # <100.0-1000.0> 最大音量。默认值130(130的响度约为100的两倍) -#volume = 100 # 播放器启动音量。0为静音,默认100 + volume = 90 # 播放器启动音量。0为静音,默认100 #audio-channels = stereo # 强制多声道音源下混为双声道输出(避免可能的7.1/5.1→2.0声音丢失和音量过小) #audio-pitch-correction = yes # [--af=scaletempo/scaletempo2/rubberband 的前置条件] 变速播放时的音调修正,默认开启。自动插入前三项音频滤镜中其一(更多信息见滤镜区) audio-file-auto = fuzzy # <默认no|exact|fuzzy|all> 自动加载同名外挂音轨(fuzzy为模糊名,exact为精确名) @@ -224,14 +224,6 @@ ##此处的 --glsl-shaders= 用于指定每次随MPV共同启动的着色器(支持多项)。更多详细着色器信息参见手册[01] ##--glsl-shaders-append 等效 --glsl-shader= (注意和上行说明中参数的区别),表示追加着色器(单次仅能追加一项),并不会覆盖第一条 --glsl-shaders= 指定的着色器,可无限追加该命令。 -CTRL+1 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Restore_CNN_VL.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl;~~/shaders/Anime4K_AutoDownscalePre_x2.glsl;~~/shaders/Anime4K_AutoDownscalePre_x4.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode A (HQ)" -CTRL+2 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Restore_CNN_Soft_VL.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl;~~/shaders/Anime4K_AutoDownscalePre_x2.glsl;~~/shaders/Anime4K_AutoDownscalePre_x4.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode B (HQ)" -CTRL+3 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Upscale_Denoise_CNN_x2_VL.glsl;~~/shaders/Anime4K_AutoDownscalePre_x2.glsl;~~/shaders/Anime4K_AutoDownscalePre_x4.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode C (HQ)" -CTRL+4 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Restore_CNN_VL.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl;~~/shaders/Anime4K_Restore_CNN_M.glsl;~~/shaders/Anime4K_AutoDownscalePre_x2.glsl;~~/shaders/Anime4K_AutoDownscalePre_x4.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode A+A (HQ)" -CTRL+5 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Restore_CNN_Soft_VL.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl;~~/shaders/Anime4K_AutoDownscalePre_x2.glsl;~~/shaders/Anime4K_AutoDownscalePre_x4.glsl;~~/shaders/Anime4K_Restore_CNN_Soft_M.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode B+B (HQ)" -CTRL+6 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Upscale_Denoise_CNN_x2_VL.glsl;~~/shaders/Anime4K_AutoDownscalePre_x2.glsl;~~/shaders/Anime4K_AutoDownscalePre_x4.glsl;~~/shaders/Anime4K_Restore_CNN_M.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode C+A (HQ)" - -CTRL+0 no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared" ##初始加载多个着色器的示例写法 #glsl-shaders = "~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Restore_CNN_M.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_S.glsl" diff --git a/profiles.conf b/profiles.conf index ebeb222..049a3fc 100644 --- a/profiles.conf +++ b/profiles.conf @@ -48,9 +48,6 @@ tone-mapping = bt.2390 # 色调映射算法,其他推荐能用的有mobius/reinhard/hable/gamma,默认 bt.2390 tone-mapping-param = default # 上项的小参。默认值default根据算法的不同变化mobius默认0.3/reinhard默认0.5/gamma默认1.8,其它算法无参。 hdr-compute-peak = yes # 此选项基本上提供了动态的基于场景的色调映射(较老的显卡不支持此参数,此时画面将变得惨白) - gamut-clipping = no # 通过降低色域外颜色的饱和度,进行色度裁剪。此处关闭以避免色度偏移(使用ICC的用户不受该参数影响) - tone-mapping-desaturate = 0.9 # <0.0-1.0> (默认0.75)高光去饱和度 - tone-mapping-desaturate-exponent = 0 # <0.0-20.0> (默认1.5)去饱和指数 [H2S-DTM] @@ -62,9 +59,6 @@ tone-mapping = bt.2390 tone-mapping-param = default hdr-compute-peak = yes - gamut-clipping = no - tone-mapping-desaturate = 0.25 - tone-mapping-desaturate-exponent = 0 ##⇘⇘文件名匹配的示例写法:根据文件名中的特定字符触发配置 diff --git a/scripts/mpv_inhibit_gnome.so b/scripts/mpv_inhibit_gnome.so new file mode 100644 index 0000000000000000000000000000000000000000..3b5077181df1eb51a4db58466abee8d310e7208a GIT binary patch literal 22328 zcmeHP4RjROb$%-$kP~2q4UYVW7YD~CHj6OefD?kiEFKcDWw08ju{*4!k+eqIRd#3j z@rl}Xg;H(SI#rs`x=GzQvE74vl7^gP6XFJ2_y>`5NFwJK=cksPn5-&N%Q6A+V{gCv z-n*lj(XLNVPtR$3s?pKjx!?VH_uYB#&Ft*V{fo$^4P}9V;H_MIR1jA?S0S}puX=q4w=zbGb00YecfyYH@?YKfFmKWAl{yalb-$VF^vZma z4;nMK-Ci%C)=#nU;i7#Svc!}8%O^g)F~94r1t-q*KYi$pFFf0KdgqrQlJd(zshJrB zh(IQ@cHwkU_2Nza(`))jHXr}j;J^9)zklIJ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