Skip to content

Commit c1aa59a

Browse files
committed
同步与整合上游
核心: mpv 缓存选项细化 input_easy 快捷键中的个别数值修改为浮点 脚本: osc_plus 的局部渲染优化 thumbfast 修正预览精度,增加预览质量的选择 uosc 启用空闲界面;翻译词条增补修正;修复一个原因未知的崩溃 着色器: nlmeans_hqx 取代 nlmeans_hq;增加 nlmeans_2x
1 parent 531a9fb commit c1aa59a

30 files changed

+4650
-3664
lines changed

portable_config/input_easy.conf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
o show-progress # 临时显示时间码/进度条
3333
O no-osd cycle-values osd-level 3 1 # 常驻显示时间码
3434

35-
1 add contrast -1 # 对比度 -
36-
2 add contrast 1 # 对比度 +
37-
3 add brightness -1 # 明度 -
38-
4 add brightness 1 # 明度 +
39-
5 add gamma -1 # 伽马 -
40-
6 add gamma 1 # 伽马 +
41-
7 add saturation -1 # 饱和度/纯度 -
42-
8 add saturation 1 # 饱和度/纯度 +
43-
9 add hue -1 # 色相 -
44-
0 add hue 1 # 色相 +
35+
1 add contrast -0.5 # 对比度 -
36+
2 add contrast 0.5 # 对比度 +
37+
3 add brightness -0.5 # 明度 -
38+
4 add brightness 0.5 # 明度 +
39+
5 add gamma -0.5 # 伽马 -
40+
6 add gamma 0.5 # 伽马 +
41+
7 add saturation -0.5 # 饱和度/纯度 -
42+
8 add saturation 0.5 # 饱和度/纯度 +
43+
9 add hue -0.5 # 色相 -
44+
0 add hue 0.5 # 色相 +
4545
Ctrl+BS set contrast 0 ; set brightness 0 ; set gamma 0 ; set saturation 0 ; set hue 0 # 重置(视频)均衡器
4646

4747
##当输出旋转之后,垂直方向因跟随输出方向的变化而改变。输出旋转操作会启动缩略图重建进程

portable_config/mpv.conf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,14 @@
8383
##⇘⇘缓存相关
8484

8585
demuxer-max-bytes = 150MiB # 播放网络视频时的向后缓存大小(KiB或MiB),默认 150MiB
86-
icc-cache-dir =
87-
# 指定目录存储和加载从ICC配置文件创建的3dlut缓存(例值 "~~/_cache/icc"),默认为空(内存)
86+
icc-cache = no # 是否在本地存储ICC配置文件的3dlut缓存,默认 no
8887
# 可以用来加快加载速度,未压缩的LUT的大小取决于 --icc-3dlut-size
88+
icc-cache-dir =
89+
# 指定ICC配置文件的3dlut缓存目录(例值 "~~/_cache/icc"),WIN平台默认为主设置路径
90+
91+
gpu-shader-cache = no # 是否在本地存储GLSL着色器的编译缓存,可以提高启动性能,默认 no
8992
gpu-shader-cache-dir =
90-
# 在此目录中存储和加载已编译的GLSL着色器缓存,可以提高启动性能(例值 "~~/_cache/shader"),默认为空(内存)
93+
# 指定GLSL着色器的编译缓存目录(例值 "~~/_cache/shader"),WIN平台默认为主设置路径
9194
watch-later-directory =
9295
# 稍后观看功能的缓存目录,其中的文件记录 --watch-later-options 指定的项。默认为空(实际路径为 "~~/watch_later")
9396

portable_config/script-opts.conf

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
# 控制台 #
1111
##########
1212

13-
script-opts-append = console-scale=1 # 字体缩放。当 --hidpi-window-scale=no 时,不再考量显示缩放率
14-
script-opts-append = console-font= # 指定控制台的字体
15-
script-opts-append = console-font_size=24 # 字体大小默认16。最终大小将与缩放率相乘
13+
script-opts-append = console-scale=1 # 字体缩放(当 --hidpi-window-scale=no 时,不再考量DPI的影响),默认 1
14+
script-opts-append = console-font= # 指定控制台的字体,默认为空
15+
script-opts-append = console-font_size=16 # 字体大小,默认 16(最终大小将与前项之中的 scale 相乘)
16+
script-opts-append = console-border_size=1 # 字体边框宽度,默认 1
17+
18+
script-opts-append = console-history_dedup=yes # 移除历史记录中的重复条目,只保留最新的一项,默认 yes
1619

1720

1821

@@ -149,7 +152,7 @@
149152

150153
script-opts-append = ytdl_hook-try_ytdl_first=no # 首选尝试用YTDL解析(默认 no)
151154

152-
script-opts-append = ytdl_hook-exclude="%.avi$|%.flac$|%.flv$|%.mp3$|%.m3u$|%.m3u8$|%.m4a$|%.m4v$|%.mkv$|%.mp4$|%.ts$|%.VOB$|%.wav$|%.webm$|%.wmw$"
155+
script-opts-append = ytdl_hook-exclude="%.avi$|%.flac$|%.flv$|%.mp3$|%.m3u$|%.m3u8$|%.m4a$|%.m4v$|%.mkv$|%.mp4$|%.ts$|%.VOB$|%.wav$|%.webm$|%.wmv$"
153156
# 解析地址黑名单,格式解释见 https://mpv.io/manual/master/#options-exclude
154157
# 推荐在 try_ytdl_first=yes 的情况下使用,可合理加速部分地址的解析
155158
script-opts-append = ytdl_hook-all_formats=no # 默认 no https://mpv.io/manual/master/#options-all-formats
@@ -425,26 +428,28 @@
425428
################
426429

427430
script-opts-append = thumbfast-socket=
428-
# Socket 路径,留空即自动
431+
# Socket 路径,留空即自动
429432
script-opts-append = thumbfast-tnpath=
430-
# 缩略图缓存路径,留空即自动
431-
script-opts-append = thumbfast-max_height=300 # 缩略图的尺寸,以像素为单位,默认 300 300
433+
# 缩略图缓存路径,留空即自动
434+
script-opts-append = thumbfast-max_height=300 # 缩略图的尺寸,以像素为单位,默认 300 300
432435
script-opts-append = thumbfast-max_width=300
433436

434-
script-opts-append = thumbfast-overlay_id=42 # 勿改
437+
script-opts-append = thumbfast-overlay_id=42 # 勿改
435438

436-
script-opts-append = thumbfast-spawn_first=no # 加载文件时就开始生成缩略图,默认 no
437-
script-opts-append = thumbfast-network=no # 是否对流媒体启用,默认 no
438-
script-opts-append = thumbfast-audio=no # 是否对音频文件启用,默认 no
439-
script-opts-append = thumbfast-hwdec=yes # 是否使用硬解加速,默认 yes
440-
script-opts-append = thumbfast-direct_io=yes # [仅Windows且LuaJIT] 使用Windows的原生API来写入pipe。默认 yes
439+
script-opts-append = thumbfast-spawn_first=no # 加载文件时就开始生成缩略图,默认 no
440+
script-opts-append = thumbfast-quit_after_inactivity=0 # 是否退出超时未活动的缩略图进程(秒),默认 0 即禁用
441+
script-opts-append = thumbfast-network=no # 是否对流媒体启用,默认 no
442+
script-opts-append = thumbfast-audio=no # 是否对音频文件启用,默认 no
443+
script-opts-append = thumbfast-hwdec=yes # 是否使用硬解加速,默认 yes
444+
script-opts-append = thumbfast-direct_io=yes # [仅Windows且LuaJIT] 使用Windows的原生API来写入pipe。默认 yes
441445

442-
script-opts-append = thumbfast-sw_threads=2 # 软解线程数,默认 2
443-
script-opts-append = thumbfast-binpath=mpv # 自定义mpv路径,Mac使用bundle-app用户可选值为bundle,默认 mpv
444-
script-opts-append = thumbfast-min_duration=0 # 是否只对时长高于该值的视频启用(秒),默认 0 即禁用
445-
script-opts-append = thumbfast-precise=auto # <默认auto|yes|no> 启用高精度预览,yes即始终精确帧,no即始终关键帧,默认即仅光标静止时为精确帧
446-
script-opts-append = thumbfast-frequency=0.1 # 解码频率(秒),默认 0.1
447-
script-opts-append = thumbfast-auto_run=yes # 自动运行,默认 yes
446+
script-opts-append = thumbfast-sw_threads=2 # 软解线程数,默认 2
447+
script-opts-append = thumbfast-binpath=mpv # 自定义mpv路径,Mac使用bundle-app用户可选值为bundle,默认 mpv
448+
script-opts-append = thumbfast-min_duration=0 # 是否只对时长高于该值的视频启用(秒),默认 0 即禁用
449+
script-opts-append = thumbfast-precise=0 # <默认0|1|2> 预览精度。0 为自动(仅光标静止时为精确帧),1 为始终关键帧,2 为始终精确帧
450+
script-opts-append = thumbfast-quality=1 # <0|默认1|2> 预览质量。0 为自动,1 为不映射hdr,2 为减少锯齿并支持将一般hdr源映射到sdr
451+
script-opts-append = thumbfast-frequency=0.1 # 解码频率(秒),默认 0.1
452+
script-opts-append = thumbfast-auto_run=yes # 自动运行,默认 yes
448453

449454

450455

@@ -562,5 +567,7 @@
562567
script-opts-append = uosc-chapter_range_patterns=openings:オープニング;endings:エンディング
563568
# 补充额外的lua模式来识别简单章节范围的起始点(除 ads 外的所有章节)。示例即默认值
564569

570+
script-opts-append = uosc-idlescreen=yes # 空闲是否显示图标,默认 yes
571+
script-opts-append = uosc-idlemsg=default # 空闲显示的文字信息,默认 default
565572
script-opts-append = uosc-idle_call_menu=0 # 空闲自动弹出上下文菜单。设置为 <0.02-2> 之间的数为延迟触发的时间,否则禁用(默认 0)
566573
script-opts-append = custom_font=default # 自定义界面字体,默认值 default 即使用 mpv.conf 中 --osd-font 的字体

portable_config/script-opts/console.conf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33

44
scale=1
55
##字体缩放率。当 --hidpi-window-scale=no 时,不再考量显示缩放率
6-
76
font=
87
##指定控制台的字体
8+
font_size=16
9+
##字体大小,默认16。最终大小将与 --scale 相乘
10+
border_size=1
11+
##字体边框宽度,默认1。
912

10-
font_size=24
11-
##字体大小默认16。最终大小将与 --scale 相乘
13+
history_dedup=yes
14+
##移除历史记录中的重复条目,只保留最新的一项,默认yes。

portable_config/script-opts/thumbfast.conf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ overlay_id=42
1616

1717
# 加载文件时就开始生成缩略图,默认 no
1818
spawn_first=no
19+
# 是否退出超时未活动的缩略图进程(秒),默认 0 即禁用
20+
quit_after_inactivity=0
1921
# 是否对流媒体启用,默认 no
2022
network=no
2123
# 是否对音频文件启用,默认 no
@@ -31,8 +33,10 @@ sw_threads=2
3133
binpath=mpv
3234
# 是否只对时长高于该值的视频启用(秒),默认 0 即禁用
3335
min_duration=0
34-
# <默认auto|yes|no> 启用高精度预览,yes即始终精确帧,no即始终关键帧,默认即仅光标静止时为精确帧
35-
precise=auto
36+
# <默认0|1|2> 预览精度。0 为自动(仅光标静止时为精确帧),1 为始终关键帧,2 为始终精确帧
37+
precise=0
38+
# <0|默认1|2> 预览质量。0 为自动,1 为不映射hdr,2 为减少锯齿并支持将一般hdr源映射到sdr
39+
quality=1
3640
# 解码频率(秒),默认 0.1
3741
frequency=0.1
3842
# 自动运行,默认 yes

portable_config/script-opts/uosc.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ adjust_osd_margins=no
148148
chapter_ranges=openings:30ABF964,endings:30ABF964,ads:C54E4E80
149149
chapter_range_patterns=openings:オープニング;endings:エンディング
150150

151+
# 空闲是否显示logo(默认 yes),和自定义的文字信息(默认值 default 即不显示文字)
152+
idlescreen=yes
153+
idlemsg=default
151154
# 空闲自动弹出上下文菜单。设置为 <0.02-2> 之间的数为延迟触发的时间,否则禁用(默认)
152155
idle_call_menu=0
153156
# 自定义界面字体,默认值 default 即使用主设置中 --osd-font 的字体

portable_config/script-opts/uosc_lang.conf

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
11

22
## context menu default
3-
_load=load
4-
_file_browser=file browser
5-
_import_sid=import sid
6-
_navigation=navigation
7-
_playlist=playlist
8-
_edition_list=edition list
9-
_chapter_list=chapter list
10-
_vid_list=vid list
11-
_aid_list=aid list
12-
_sid_list=sid list
13-
_playlist_shuffle=playlist shuffle
14-
_ushot=uscreenshot
15-
_VIDEO=VIDEO
16-
_decoding_api=hwdec cycle
17-
_deband_toggle=deband toggle
18-
_deint_toggle=deint toggle
19-
_icc_toggle=icc auto toggle
20-
_corpts_toggle=correct pts toggle
21-
_TOOLS=TOOLS
22-
_stats_toggle=stats toggle
23-
_console_on=console on
24-
_border_toggle=border toggle
25-
_ontop_toggle=ontop toggle
26-
_audio_device=audio device
27-
_stream_quality=stream quality
28-
_show_file_dir=show file dir
29-
_show_config_dir=show config dir
30-
_stop=stop
31-
_quit=quit
3+
_cm_load=Load
4+
_cm_file_browser=File Browser
5+
_cm_import_sid=Import SID
6+
_cm_navigation=Navigation
7+
_cm_playlist=Playlist
8+
_cm_edition_list=Edition-list
9+
_cm_chapter_list=Chapter-list
10+
_cm_vid_list=VID-list
11+
_cm_aid_list=AID-list
12+
_cm_sid_list=SID-list
13+
_cm_playlist_shuffle=Playlist Shuffle
14+
_cm_ushot=uScreenshot
15+
_cm_video=VIDEO
16+
_cm_decoding_api=hwdec cycle
17+
_cm_deband_toggle=deband toggle
18+
_cm_deint_toggle=deint toggle
19+
_cm_icc_toggle=icc auto toggle
20+
_cm_corpts_toggle=correct pts toggle
21+
_cm_tools=TOOLS
22+
_cm_stats_toggle=stats toggle
23+
_cm_console_on=console on
24+
_cm_border_toggle=border toggle
25+
_cm_ontop_toggle=ontop toggle
26+
_cm_audio_device=audio device
27+
_cm_stream_quality=Stream Quality
28+
_cm_show_file_dir=show file dir
29+
_cm_show_config_dir=show config dir
30+
_cm_stop=Stop
31+
_cm_quit=Quit
32+
33+
## no_border_title
34+
_border_title=No File
3235

3336
## track_loaders sub_menu
3437
_sid_menu=subtitle track
@@ -41,22 +44,25 @@ _aid_submenu_title=aid list
4144
_vid_submenu_title=vid list
4245
_playlist_submenu_title=playlist
4346
_chapter_list_submenu_title=chapter list
47+
_chapter_list_submenu_item_title=unnamed chapter
4448
_edition_list_submenu_title=edition list
4549
_edition_list_submenu_item_title=edition
4650
_stream_quality_submenu_title=stream quality list
4751
_audio_device_submenu_title=audio device list
52+
_audio_device_submenu_item_title=Autoselect device
4853

4954
_submenu_import=import
5055
_submenu_load_file=load file
5156
_submenu_id_disabled=disabled
57+
_submenu_id_hint=channel(s)
5258
_submenu_id_forced=forced
5359
_submenu_id_default=default
5460
_submenu_id_external=external
5561
_submenu_id_title=track
62+
_submenu_file_browser_item_hint=driver list
63+
_submenu_file_browser_item_hint2=parent dir
64+
_submenu_file_browser_item2_hint=driver
5665
_submenu_file_browser_title=driver list
57-
_submenu_file_browser_item_title=parent dir
58-
_submenu_file_browser_item2_title=driver
59-
_submenu_file_browser_item3_title=driver list
6066

6167
## built-in_shortcut
6268
_button01=MENU

portable_config/script-opts/ytdl_hook.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ try_ytdl_first=no
66

77
##解析地址黑名单,格式解释见 https://mpv.io/manual/master/#options-exclude
88
##推荐在 try_ytdl_first=yes 的情况下使用,可合理加速网络地址的解析
9-
exclude="%.avi$|%.flac$|%.flv$|%.mp3$|%.m3u$|%.m3u8$|%.m4a$|%.m4v$|%.mkv$|%.mp4$|%.ts$|%.VOB$|%.wav$|%.webm$|%.wmw$"
9+
exclude="%.avi$|%.flac$|%.flv$|%.mp3$|%.m3u$|%.m3u8$|%.m4a$|%.m4v$|%.mkv$|%.mp4$|%.ts$|%.VOB$|%.wav$|%.webm$|%.wmv$"
1010

1111
##https://mpv.io/manual/master/#options-all-formats
1212
all_formats=no

0 commit comments

Comments
 (0)