-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmpv.conf
More file actions
195 lines (165 loc) · 5.58 KB
/
mpv.conf
File metadata and controls
195 lines (165 loc) · 5.58 KB
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
profile=high-quality
### General
osc=no
title-bar=no
keep-open=yes
input-default-bindings=no
title=${?filename:${!playlist-count==1:[${playlist-pos-1}/${playlist-count}] }${filename/no-ext}}${!filename:No file - mpv}
autofit=80%x80%
autofit-larger=80%x80%
geometry=50%:50%
keepaspect-window=no
cursor-autohide=1000
cursor-autohide-fs-only=yes
ordered-chapters=no
save-position-on-quit=no
watch-later-dir="~~/cache/watch_later"
write-filename-in-watch-later-config=yes
watch-later-options-remove=sub-pos
watch-later-options-remove=osd-margin-y
reset-on-next-file=video-zoom,panscan,video-unscaled,video-align-x,video-align-y,video-rotate
### OSD
osd-level=1
osd-font=Montserrat
osd-font-size=25
osd-outline-size=0
osd-shadow-offset=4
osd-back-color=0/0.5
osd-border-style=background-box
osd-playing-msg="${!playlist-count==1:${playlist-pos-1}/${playlist-count}}"
### Terminal
msg-color=yes
msg-module=yes
term-osd-bar=yes
### Playlist
directory-mode=ignore
prefetch-playlist=yes
autocreate-playlist=filter
osd-playlist-entry=filename
directory-filter-types=video
image-exts=apng,avif,bmp,heic,heif,j2k,jp2,jpeg,jpg,jxl,png,qoi,svg,tga,tif,tiff,webp
audio-exts=aac,ac3,aiff,ape,au,dsf,dts,flac,m4a,mid,midi,mka,mp1,mp2,mp3,mpc,oga,ogg,ogm,opus,tak,thd,tta,wav,wma,wv
video-exts=3g2,3gp,asf,avi,f4v,flv,gif,h264,h265,ivf,m2ts,m4v,mj2,mkv,mov,mp4,mp4v,mpeg,mpg,mxf,ogv,rmvb,ts,webm,wmv,y4m
### Screenshots
screenshot-format=png
screenshot-png-compression=6
screenshot-template="~/Desktop/%F-(%P)-%n"
### Cache
cache=yes
demuxer-max-bytes=400MiB
demuxer-max-back-bytes=200MiB
### Video
vo=gpu-next
hwdec=d3d11va
deband=yes
temporal-dither=yes
sigmoid-upscaling=yes
correct-downscaling=yes
### Audio
volume=20
volume-max=150
audio-file-auto=fuzzy
audio-pitch-correction=yes
### Subtitles
sub-auto=all
blend-subtitles=yes
sub-vsfilter-bidi-compat=yes
demuxer-mkv-subtitle-preroll=yes
demuxer-mkv-subtitle-preroll-secs=2
embeddedfonts=yes
sub-fix-timing=no
sub-use-margins=yes
sub-ass-force-margins=yes
sub-ass-style-overrides=Kerning=yes
sub-font=Montserrat
sub-font-size=30
sub-outline-size=0
sub-shadow-offset=4
sub-back-color=0/0.6
sub-border-style=background-box
sub-file-paths=sub;subs;subtitles;srt;ass
### Languages
slang=en,enm,ar
alang=ja,jp,en
### yt-dlp
ytdl=yes
script-opt=ytdl_hook-all_formats=yes
### Profiles
[Autofit-Normal]
autofit=80%x80%
autofit-larger=80%x80%
[Autofit-Small]
autofit=50%x50%
autofit-larger=50%x50%
[Window-PiP]
profile-desc=Custom options for PiP mode
profile-cond=ontop == true and not fullscreen
profile-restore=copy-equal
script-opts-append=modernz-scalewindowed=1.8
script-opts-append=modernz-persistent_progress=yes
border=no
[Minimized]
profile-desc=Pause when minimized
profile-cond=window_minimized and vid and not p["current-tracks/video/albumart"]
profile-restore=copy-equal
pause
[Video]
profile-desc=Apply options for videos
profile-cond=duration and duration > 0 and p["current-tracks/video"] and not p["current-tracks/video"].image
profile-restore=copy-equal
input-commands=disable-section image
taskbar-progress=yes
# https://github.com/mpv-player/mpv/pull/15346
# --show-profile=builtin-image
# --apply-image-profile=no
[Image]
profile-desc=Apply options for images
profile-cond=p["current-tracks/video"] and p["current-tracks/video"].image and not p["current-tracks/video"].albumart
profile-restore=copy-equal
video-recenter=yes
taskbar-progress=no
stop-screensaver=no
prefetch-playlist=yes
input-preprocess-wheel=no
image-display-duration=inf
video-aspect-method=ignore
title=${media-title} [${?width:${width}x${height}}]
input-commands=enable-section image allow-hide-cursor
script-opts-append=modernz-deadzonesize=0.9
script-opts-append=modernz-osc_fade_strength=20
script-opts-append=modernz-show_window_title=yes
[Stream]
profile-desc=Apply options when opening a URL
profile-cond=get("path", ""):match("^[%a][%a%d+.-]*://")
profile-restore=copy-equal
demuxer-max-bytes=200MiB
demuxer-max-back-bytes=50MiB
force-seekable=yes
title=${media-title}
osd-playlist-entry=title
script-opts-append=modernz-title=${media-title}
script-opts-append=modernz-cache_info=yes
script-opts-append=modernz-cache_info_speed=yes
user-agent="Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120 Safari/537.36"
[Media]
profile-desc=Apply options for Movies and TV Shows directories
profile-cond=get("path", ""):lower():match("\\movies\\") or get("path", ""):lower():match("\\tv shows\\") or get("path", ""):lower():match("^x:\\")
profile-restore=copy-equal
demuxer-max-bytes=1500MiB
demuxer-max-back-bytes=500MiB
# Info: https://github.com/mpv-player/mpv/issues/8418#issuecomment-2466772516
audio-channels=stereo
af="lowshelf=frequency=100:gain=-2.5,dynaudnorm=compress=27.0:gausssize=53"
[Slideshow]
profile-desc=Apply options for slideshow directories
profile-cond=get("path", ""):lower():match("\\z\\") or get("path", ""):lower():match("\\other\\") or get("path", ""):lower():match("\\slides\\")
profile-restore=copy-equal
image-display-duration=5
#input-commands=quit
title-bar=yes
volume=0
[2K+]
profile-desc=Apply options for 2k+ videos
profile-cond=vid and duration and duration > 0 and p["video-params/h"] and p["video-params/h"] >= 1440
profile-restore=copy
blend-subtitles=no