-
Notifications
You must be signed in to change notification settings - Fork 0
/
mpv.conf.before.debloat
303 lines (237 loc) · 9.8 KB
/
mpv.conf.before.debloat
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
# vim: syntax=config
###########
# General #
###########
input-ipc-server=/tmp/mpvsocket # listen for IPC on this socket
#load-stats-overlay=no # use local stats.lua
script-opts=ytdl_hook-ytdl_path=yt-dlp
# # For mpv-gestures.lua
# no-window-dragging
# required so that the 2 UIs don't fight each other
# about scripts/modern.lua and script-opts/osc.conf
osc=no
video-sync=display-resample
interpolation=yes
tscale=mitchell
#[Idle]
#profile-cond=p["idle-active"]
#profile-restore=copy-equal
#title=' '
#keepaspect=no
#background=1
# uosc provides its own seeking/volume indicators, so you also don't need this
#osd-bar=no
osd-playing-msg=${path}
# uosc will draw its own window controls if you disable window border
border=yes
fullscreen=yes
##############
# Colorspace #
##############
# see https://github.com/mpv-player/mpv/wiki/Video-output---shader-stage-diagram
#target-prim=auto
# target-prim=bt.709 # target Rec.709 for SDR TVs
# target-prim=bt.2020 # target Rec.2020 (wide color gamut) for HDR TVs
#target-trc=auto
#gamma-auto
#vf=format=colorlevels=full:colormatrix=auto
#video-output-levels=full
icc-profile=/var/lib/colord/icc/edid-de9290ae82f47a5d0d1a441711f083ee.icc
profile=gpu-hq
#glsl-shaders="~/.config/mpv/shaders/Anime4K_Darken_VeryFast.glsl"
#glsl-shaders-append="~/.config/mpv/shaders/Anime4K_Clamp_Highlights.glsl"
#glsl-shaders-append="~/.config/mpv/shaders/Anime4K_Restore_CNN_M.glsl"
#glsl-shaders-append="~/.config/mpv/shaders/Anime4K_Upscale_CNN_x2_M.glsl"
#glsl-shaders-append="~/.config/mpv/shaders/Anime4K_Restore_CNN_S.glsl"
#glsl-shaders-append="~/.config/mpv/shaders/Anime4K_AutoDownscalePre_x2.glsl"
#glsl-shaders-append=~"/.config/mpv/shaders/Anime4K_AutoDownscalePre_x4.glsl"
#glsl-shaders-append="~/.config/mpv/shaders/Anime4K_Upscale_CNN_x2_S.glsl"
#glsl-shaders-append="~/.config/mpv/shaders/SSimDownscaler.glsl"
#glsl-shaders-append="~~/shaders/ravu-lite-r3.hook"
#glsl-shaders-append="~~/shaders/ravu-lite-r3.hook"
#glsl-shaders-append="~~/shaders/ravu-lite-r3.hook"
#glsl-shaders-append="~~/shaders/ravu-lite-r3.hook"
#glsl-shaders-append="~~/shaders/ravu-lite-r3.hook"
#glsl-shaders-append="/home/rex/.config/mpv/shaders/noise_static_luma.hook"
#glsl-shaders-append="/home/rex/.config/mpv/shaders/antiring.hook"
#glsl-shaders-append="/home/rex/.config/mpv/shaders/noise_static_chroma.hook"
#glsl-shaders-append=".config/mpv/shaders/KrigBilateral.glsl"
--sub-auto=all
--audio-file-paths=**
--sub-file-paths=**
# vo=gpu
# hwdec=cuda
# gpu-api=vulkan
# hwdec-codecs=all
# cuda-decode-device=auto
# ao=pipewire
pipewire-buffer=100
vo=gpu
# gpu-context=vaapi
hwdec=auto
hwdec-codecs=all
# framedrop=decoder
# vd-lavc-skipframe=nonref
# autosync=30
[vaapi]
# backend=drm
#no-border # no window title bar
msg-module # prepend module name to log messages
msg-color # color log messages on terminal
term-osd-bar # display a progress bar on the terminal
use-filedir-conf # look for additional config files in the directory of the opened file
#pause # no autoplay
#keep-open # keep the player open when a file's end is reached
autofit-larger=100%x95% # resize window in case it's larger than W%xH% of the screen
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=1500 # autohide the curser after 1s
prefetch-playlist=yes
force-seekable=yes
screenshot-format=png
screenshot-png-compression=8
screenshot-template='~/Desktop/%F (%P) %n'
hls-bitrate=max # use max quality for HLS streams
[ytdl-desktop]
profile-desc=cond:dedicated_gpu()
ytdl-format=bestvideo[height<=?1080][vcodec!=?vp9]+bestaudio/best
[ytdl-laptop]
profile-desc=cond:not dedicated_gpu()
ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9][protocol!=http_dash_segments]+bestaudio/best
[default]
ytdl-format=bestvideo[height<=?1080][vcodec!=?vp9]+bestaudio/best
ytdl-raw-options=geo-bypass-country=IN
#########
# Cache #
#########
cache=yes
demuxer-max-bytes=400MiB
demuxer-max-back-bytes=150MiB
#############
# OSD / OSC #
#############
osd-level=1 # enable osd and display --osd-status-msg on interaction
osd-duration=2500 # hide the osd after x ms
osd-status-msg='${time-pos} / ${duration}${?percent-pos: (${percent-pos}%)}${?frame-drop-count:${!frame-drop-count==0: Dropped: ${frame-drop-count}}}\n${?chapter:Chapter: ${chapter}}'
#osd-font='Source Sans Pro'
osd-font-size=32
#osd-font-color='#4D18D1'
#osd-color='#4D18D1'
osd-color='#ff0000' # ARGB format
osd-border-color='#DD322640' # ARGB format
osd-shadow-offset=0 # pixel width for osd text and progress bar
osd-bar-align-y=1 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
osd-border-size=0 # size for osd text and progress bar
osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
osd-bar-w=100 # width of " " "
#############
# Subtitles #
#############
demuxer-mkv-subtitle-preroll=yes # try to show embedded subs when seeking even when no index information is present
demuxer-mkv-subtitle-preroll-secs=2
sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
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
embeddedfonts=yes # use embedded fonts for SSA/ASS subs
sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
sub-use-margins
sub-ass-force-margins
# the following options only apply to subtitles without own styling (i.e. not ASS but e.g. SRT)
sub-font="Source Sans Pro Semibold"
sub-font-size=36
sub-color="#FFFFFFFF"
sub-border-color="#FF262626"
sub-border-size=3.2
sub-shadow-offset=1
sub-shadow-color="#33000000"
sub-spacing=0.5
#############
# Languages #
#############
# slang=en,EN,ENG,eng,English,english,enm,de,deu,ger # automatically select these subtitles (decreasing priority)
# alang=en,EN,ENG,eng,ja,jp,jpn,de,deu,ger # automatically select these audio tracks (decreasing priority)
alang=en,jpn # automatically select these audio tracks (decreasing priority)
#########
# Audio #
#########
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=200 # maximum volume in %, everything above 100 results in amplification
volume=95 # default volume, 100 = unchanged
################
# Video Output #
################
# Active VO options are set conditionally and require my slightly modified
# `scripts/auto-profiles.lua` as well as `scripts/auto-profiles-functions.lua`.
# More information about auto-profiles in general: https://github.com/wiiaboo/mpv-scripts/blob/master/auto-profiles.lua
# on_battery() and dedicated_gpu() are my own functions in `scripts/auto-profiles-functions.lua`
# and might need to be adjusted for your system/setup.
# Defaults for all profiles
tscale=oversample # [sharp] oversample <-> linear (triangle) <-> catmull_rom <-> mitchell <-> gaussian <-> bicubic [smooth]
opengl-early-flush=no
opengl-pbo=yes # "yes" is currently bugged: https://github.com/mpv-player/mpv/issues/4988
icc-profile-auto
#icc-contrast=1000 # silence some warning because the profile is bad
#hwdec=yes
[high-quality]
profile-desc=cond:is_high(get('width', 0), get('height', 0), get('estimated-vf-fps', 0))
# hanning with this radius is broken on OSX due to OpenGL driver bug
#scale=ewa_hanning
#scale-radius=3.2383154841662362
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
dscale=mitchell
scale-antiring=0
cscale-antiring=0
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
#glsl-shaders-append="~/.mpv/shaders/KrigBilateral.glsl"
#glsl-shaders-append="~/.mpv/shaders/ravu-lite-r4.hook"
#glsl-shaders-append="~/.mpv/shaders/ravu-lite-r4.hook"
#glsl-shaders-append="~/.mpv/shaders/ravu-lite-r4.hook"
[mid-quality]
profile-desc=cond:is_mid(get('width', 0), get('height', 0), get('estimated-vf-fps', 0))
scale=spline36
cscale=bicubic
dscale=mitchell
scale-antiring=1.0
cscale-antiring=1.0
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
#glsl-shaders-set=""
[low-quality]
profile-desc=cond:is_low(get('width', 0), get('height', 0), get('estimated-vf-fps', 0))
scale=bilinear
cscale=bilinear
dscale=bilinear
scale-antiring=0
cscale-antiring=0
dither-depth=no
correct-downscaling=no
sigmoid-upscaling=no
deband=no
glsl-shaders-set=""
[4K-lavc-threads]
profile-desc=cond:get('width', -math.huge) >= 3840
vd-lavc-threads=32
[4K-lavc-threads-inverted]
profile-desc=cond:get('width', math.huge) < 3840
vd-lavc-threads=0
###################################
# Protocol Specific Configuration #
###################################
[protocol.https]
cache=yes
user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:57.0) Gecko/20100101 Firefox/58.0'
[protocol.http]
cache=yes
user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:57.0) Gecko/20100101 Firefox/58.0'
script-opts-add=osc-title=${media-title}${?chapter-metadata/title: [${chapter-metadata/title}]}