-
Notifications
You must be signed in to change notification settings - Fork 3
/
mpv.conf
183 lines (155 loc) · 7.41 KB
/
mpv.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# mpv configuration file by snad
# https://github.com/thisisshihan/mpv-player-config-snad
# player / window configuration
# -----------------------------
border=yes # Border at startup (default:yes)
autofit-larger=90%x82% # resize window in case it's larger than W%xH% of the screen 100%x95%
autofit-smaller=65%x65% # resize window in case it's smaller
geometry=50%:50% # Window geometry (default:50%:50%)
cursor-autohide-fs-only # don't autohide the cursor in window mode, only fullscreen
input-media-keys=no # enable/disable OSX media keys
cursor-autohide=5000 # autohide the curser after 1s
ontop=no # always on top enable when open
snap-window=yes
prefetch-playlist=yes
force-seekable=yes # Flag (default: no)
framedrop=no
# no-window-dragging # use for gestures.lua
# fit-border=yes
# screensot configuration
# -----------------------
screenshot-format=jpeg # screenshot format (default: jpeg) <png, jpeg>
screenshot-template=mpv%n-%f # screenshot file name
screenshot-jpeg-quality=90 # Set the JPEG quality level. Higher means better quality. The default is 90 <1-100>
screenshot-png-compression=7 # Set the PNG quality level. Higher means better quality. The default is 7 <1-9>
# cache
# -----
# cache=no
cache-default=8000000 # size in KB
cache-backbuffer=25000 # size in KB
cache-initial=0 # start playback when your cache is filled up with x kB
cache-secs=7200 # how many seconds of audio/video to prefetch if the cache is active
# osd configuration
# -----------------
osd-level=1 # enable osd and display --osd-status-msg on interaction
osd-duration=2000 # hide the osd after x ms
osd-font="SamsungOne-400" # fonts directo (../mpv/fonts)
osd-font-size=36
osd-spacing=0.5
osd-color="#FFFFFFFF"
osd-border-color="#80262626"
osd-border-size=2.5 # Float (0 to 10) (default: 3.000000)
osd-shadow-offset=1.5
osd-shadow-color="#33000000" # Transparent ARGB (33:20%) hex value
osd-border-color="#80262626" # Transparent ARGB (80:50%) hex value
osd-blur=0 # Float (0 to 20) (default: 0.000000) Gaussian blur factor applied to the OSD font border
osd-margin-x=25
osd-margin-y=22
osd-align-x=left #left|center|right
osd-align-y=top #top|center|bottom
osd-status-msg=${?playlist-pos:[${playlist-pos-1}/${playlist-count}] ${time-pos} / ${duration} ${?percent-pos:(${percent-pos}%)} #${filename} #${?frame-drop-count:${!frame-drop-count==0: Dropped: ${frame-drop-count}}}${?chapter: \n Chapter: ${chapter}}
# osd-playing-msg =${?playlist-pos: [${playlist-pos-1}/${playlist-count}] ▶ ${filename} ~ [${width}x${height}] \n\n${?chapter:Chapter: ${chapter}}
# osd bar configuration
# ---------------------
osd-bar-h=0.8 # Float (0.1 to 50) (default: 3.125000)
osd-bar-w=99 # Float (1 to 100) (default: 75.000000)
osd-bar-align-x=0 # Float (-1 to 1) (default: 0.000000)
osd-bar-align-y=-0.988 # Float (-1 to 1) (default: 0.500000)
osd-bar-border-size=0.5 # Float (0 to 10) (default: 3.000000)
osd-scale-by-window=no # Flag (default: yes)
# osc configuration
# -----------------
osc=yes
# sub configuration
# -----------------
slang=eng,spn # automatically select these subtitles (decreasing priority)
sub=yes # enable subtitle when open
sub-font="SamsungOne-400" # fonts directo (../mpv/fonts)
sub-font-size=36
sub-color="#FFFFFFFF"
sub-border-color="#80262626"
sub-border-size=2
sub-shadow-offset=1.5
sub-shadow-color="#33000000"
sub-spacing=1
sub-scale-by-window=No # Flag (default: yes)
sub-scale-with-window=No # Flag (default: yes)
sub-auto=Fuzzy # all - external subs don't have to match the file name exactly to autoload #Fuzzy
sub-file-paths-append=ass # search for external subs in these relative subdirectories
sub-file-paths-append=srt
sub-file-paths-append=sub
sub-file-paths-append=subs
sub-file-paths-append=subtitles
sub-file-paths-append=english subtitles
# sub-ass-style-override=force # Override ASS sub font styles
# ass-force-style='Default.Bold=1,Default.FontSize=22,Shadow=1.5,BackColour=White'
title=mpv.snad ~ ${?filename:[${playlist-pos-1}/${playlist-count}] ${time-pos} / ${duration} (${percent-pos}%) ~ ${filename} ~ [${width}x${height}] ~ ${file-size}}${!filename:No file.} #String (default: mpv - ${?media-title:${media-title}}${!media-title:No file.})
# audio
# -----
alang=eng,spn # automatically select these audio tracks (decreasing priority)
audio-file-auto=fuzzy # external audio doesn't has to match the file name exactly to autoload
audio-pitch-correction=yes # automatically insert scaletempo when playing with higher speed
volume-max=120 # maximum volume in %, everything above 100 results in amplification
volume=50 # default volume, 100 = unchanged
# af=acompressor # fix amplification noise (utilize dynamic range compression)
# video Output
# ------------
# Active VOs (and some other options) are set conditionally
# See here for more information: https://github.com/wm4/mpv-scripts/blob/master/auto-profiles.lua
# The script was slightly modified, functions from scripts/auto-profiles-functions.lua are imported
# Defaults for all profiles
# High quality video rendering for fast computer.
# profile=gpu-hq
# deband=no
# vo=gl:force-pbo
[high-quality]
profile-desc=cond:is_desktop() and get('width', math.huge) < 3840
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
dscale=mitchell
scale-antiring=0.7
cscale-antiring=0.7
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
[mid-quality]
profile-desc=cond:(is_laptop() and not on_battery() and get('width', math.huge) < 1920) or (is_desktop() and get('width', math.huge) >= 3840)
scale=spline36
cscale=bilinear
dscale=mitchell
scale-antiring=1.0
cscale-antiring=1.0
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
[low-quality]
profile-desc=cond:is_laptop() and (on_battery() or get('width', math.huge) >= 1920)
scale=bilinear
cscale=bilinear
dscale=bilinear
scale-antiring=0.0
cscale-antiring=0.0
dither-depth=no
correct-downscaling=no
sigmoid-upscaling=no
deband=no
[60FPS]
profile-desc=cond:is_laptop() and get('container-fps', 0) >= 59
scale=bilinear
cscale=bilinear
[4K]
profile-desc=cond:get('width', -math.huge) >= 3840
vd-lavc-threads=32
[4K-inverted]
profile-desc=cond:get('width', -math.huge) < 3840
vd-lavc-threads=0
# AMD FidelityFX FSR/CAS and NVIDIA Image Scaling
# -----------------------------------------------
# profile=gpu-hq
# glsl-shader="~~/shaders/FSR.glsl"
# glsl-shader="~~/shaders/NVScaler.glsl"
# glsl-shader="~~/shaders/NVSharpen.glsl"
# glsl-shader="~~/shaders/CAS.glsl"
# glsl-shader="~~/shaders/CAS-scaled.glsl"