-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathprofiles.conf
104 lines (88 loc) · 5.28 KB
/
profiles.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
### 文档_ https://github.com/hooke007/MPV_lazy/blob/main/portable_config/profiles.conf
##############
# 配置预设组 #
##############
[speed-limit]
profile-desc = 速度变化下限的控制
profile-cond = p.speed<0.1
speed = 0.1
[ontop-playback]
profile-desc = 基于播放状态的自动置顶
#profile-cond = not pause # 未自动启用
profile-restore = copy
ontop = yes
## https://github.com/mpv-player/mpv/issues/11122
[vsync-auto]
profile-desc = 基于帧率或垂直同步率的自动视频同步
profile-cond = p.container_fps>32 or (p.display_fps/container_fps) > 32
profile-restore = copy
interpolation = no
video-sync = audio
[deband-bitrate]
profile-desc = 基于码率的自动去色带
profile-cond = ((p.file_size/1024)*8)/p.duration<=3000
profile-restore = copy
deband = yes
[save-props-auto]
profile-desc = 基于进度或时长或视频轨类型的自动保存属性
profile-cond = p.percent_pos>=90 or p.duration<=300 or not vid or p["current-tracks/video/albumart"] or p["current-tracks/video/image"]
profile-restore = copy
save-position-on-quit = no
[HDR-generic]
profile-desc = hdr通用
profile-cond = p["video-params/sig-peak"]>1
profile-restore = copy
blend-subtitles = no
#target-peak = 100
#sub-color = 0.7
#sub-border-color = 0.1
#sub-back-color = "#00000000"
#sub-shadow-offset = 0
[SRT-Drama]
profile-desc = "SRT-Drama"
#sub-codepage = utf-8 # 指定字幕编码,默认auto
#sub-scale-with-window = no # 按窗口而不是视频缩放字幕,默认yes
#sub-use-margins = no # 是否使纯文本字幕输出在黑边上,默认yes
sub-font = "sans-serif"
# 指定纯文本字幕的默认字体
# 该参数本应对ASS字幕无效,但实际影响了ASS的后备字体 https://github.com/mpv-player/mpv/issues/8637
sub-font-size = 55 # 字体大小,默认55
sub-color = "#FFFFFFFF" # 字体颜色。颜色格式皆为(AA)RRGGBB
sub-border-size = 0.5 # 字体边框大小,0禁用边框,默认3
sub-border-color = "#FF303030" # 字体边框颜色
#sub-back-color = "#00000000" # 字幕背景色(用 --sub-shadow-offset 控制到背景边框到字体的内边距)
#sub-shadow-color = "#FF303030" # [须 --sub-shadow-offset 不为0;须禁用 --sub-back-color 或设为完全透明]
#sub-shadow-offset = 1.5 # 背景内边距/阴影偏移,默认0(关联 --sub-back-color 时有效值≥0;关联 --sub-shadow-offset 时可为负数)
sub-blur = 1 # <0-20> 字体有边时模糊边框(和阴影),无边则模糊字体本身,默认0关闭模糊
#sub-bold = yes # 强制粗体
#sub-italic = yes # 强制斜体
#sub-spacing = 0 # <-10-10> 字符间距,默认0
sub-margin-x = 55 # <0-300> 水平边距,默认25
sub-margin-y = 55 # <0-600> 垂直边距,默认22
#sub-align-x = center # <left|center默认|right> 水平对齐
#sub-align-y = bottom # <top|center|bottom默认> 垂直对齐
#sub-justify = auto # <auto默认|left|center|right> 多行对齐方式,默认选择 --sub-align-x 的值
[SRT-Anime]
profile-desc = "SRT-Anime"
#sub-codepage = utf-8 # 指定字幕编码,默认auto
#sub-scale-with-window = no # 按窗口而不是视频缩放字幕,默认yes
sub-use-margins = no # 尽可能输出在黑边,默认yes
sub-font = "方正准圆_GBK"
# 指定纯文本字幕的默认字体
# 该参数本应对ASS字幕无效,但实际影响了ASS的后备字体 https://github.com/mpv-player/mpv/issues/8637
sub-font-size = 45 # 字体大小,默认55
sub-color = "#FFFFFFFF" # 字体颜色。颜色格式皆为(AA)RRGGBB
sub-border-size = 2 # 字体边框大小,0禁用边框,默认3
sub-border-color = "#FF654321" # 字体边框颜色
sub-back-color = "#00000000" # 字幕背景色(用 --sub-shadow-offset 控制到背景边框到字体的内边距)
sub-shadow-color = "#FF303030" # [须 --sub-shadow-offset 不为0;须禁用 --sub-back-color 或设为完全透明]
sub-shadow-offset = 0 # 背景内边距/阴影偏移,默认0(关联 --sub-back-color 时有效值≥0;关联 --sub-shadow-offset 时可为负数)
#sub-blur = 0 # <0-20> 字体有边时模糊边框(和阴影),无边则模糊字体本身,默认0关闭模糊
sub-bold = yes # 强制粗体
#sub-italic = yes # 强制斜体
#sub-spacing = 0 # <-10-10> 字符间距,默认0
sub-margin-x = 35 # <0-300> 水平边距,默认25
sub-margin-y = 35 # <0-600> 垂直边距,默认22
#sub-align-x = center # <left|center默认|right> 水平对齐
#sub-align-y = bottom # <top|center|bottom默认> 垂直对齐
#sub-justify = auto # <auto默认|left|center|right> 多行对齐方式,默认选择 --sub-align-x 的值