-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmpv.conf
163 lines (140 loc) · 6.11 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
###General
profile=gpu-hq
vo=gpu
gpu-api=vulkan
vulkan-async-compute=yes
vulkan-async-transfer=yes
vulkan-queue-count=1
vd-lavc-dr=yes
hwdec=auto-copy
priority=high # Makes PC prioritize MPV for allocating resources.
cursor-autohide-fs-only
reset-on-next-file=pause # Resumes playback when skip to next file
volume=100 # Set volume to 100% on startup.
volume-max=200 # Set player max vol to 200%.
border=no # uosc will draw its own window controls if you disable window border
no-hidpi-window-scale # This Disables High DPI scaling
audio-pitch-correction=yes # automatically insert scaletempo when playing with higher speed
fs=yes
snap-window
write-filename-in-watch-later-config
#audio-exclusive=yes # Allow only mpv to send direct audio signals to the soundbar
#audio-channels=stereo,5.1,7.1 # Allow more than just one audio channel
###Interpolation (May increase CPU usage)
interpolation=yes
video-sync=display-resample
tscale=box
tscale-window=quadric
tscale-clamp=0.0
tscale-radius=1.025
###Subtitles
alang = 'jpn,jp,ja,eng,en'
slang = 'eng,en,enUS,enm,en-GB,en-US,bn,ben' # enUS for Crunchyroll and enm for honorifics
subs-with-matching-audio=no # Won't ignore subtitles tagged as "Forced"
sub-fix-timing=yes
sub-scale=1
sub-auto=fuzzy
sub-gray=yes # Monochrome subs makes yellow font grey
sub-font='Trebuchet MS'
sub-bold=yes # Set the font to bold.
sub-file-paths=** # This is for fuzzy-dir script to work
#sub-font-size=55 # Set default subtitle size if not specified.
###Youtube-dl settings
ytdl-format=bestvideo[height<=?1080]+bestaudio/best # Set max streaming quality as 1080p.
#Default demuxer is 150/75 MB, note that this uses RAM so set a reasonable amount.
demuxer-mkv-subtitle-preroll=yes
demuxer-max-bytes=150000000 # 150MB, Max pre-load for network streams (1 MiB = 1048576 Bytes).
demuxer-max-back-bytes=75000000 # 75MB, Max loaded video kept after playback.
stream-buffer-size=5MiB
dither-depth=auto
###OSC / OSD
osc=no # required so that the 2 UIs don't fight each other
osd-bar=no # uosc provides its own seeking/volume indicators, so you also don't need this
osd-font="Inter Regular"
osd-font-size=30
###Profiles
[Web]
profile-cond=string.match(p.filename, "HorribleSubs")~=nil or string.match(p.filename, "Erai%-raws")~=nil or string.match(p.filename, "SubsPlease")~=nil
profile-restore=copy-equal
deband=yes
[Mini-Encode #1]
profile-cond=string.match(p.filename, "ASW")~=nil or string.match(p.filename, "DKB")~=nil or string.match(p.filename, "Judas")~=nil
profile-restore=copy-equal
deband=yes
[Mini-Encode #2]
profile-cond=string.match(p.filename, "Cerberus")~=nil or string.match(p.filename, "Nep%_Blanc")~=nil or string.match(p.filename, "Reaktor")~=nil
profile-restore=copy-equal
deband=yes
[Mini-Encode #3]
profile-cond=string.match(p.filename, "Cleo")~=nil or string.match(p.filename, "Akihito")~=nil or string.match(p.filename, "Reaktor")~=nil
profile-restore=copy-equal
deband=yes
[Mini-Encode #4]
profile-cond=string.match(p.filename, "Ember")~=nil
profile-restore=copy-equal
deband=yes
[Twitch]
profile-cond=get("path", ""):find("^https://www.twitch.tv/") ~= nil
profile-restore=copy-equal
sub-font-size=30
sub-align-x=right
sub-align-y=top
sub-scale=0.5
[Youtube]
profile-cond=get("path", ""):find("^https://www.youtube.com/") ~= nil or get("path", ""):find("^https://youtu.be/") ~= nil
profile-restore=copy-equal
ytdl-raw-options=sub-langs=[en.*,ben.*],write-sub=,write-auto-sub=,ignore-config=,embed-metadata=,yes-playlist=
sub-font=Liberation Sans Narrow
sub-scale=0.5
sub-bold=yes
sub-shadow-color="#ff000000"
sub-shadow-offset=2.5
sub-back-color="#aa000000"
sub-border-color="#ff0a0a0a"
sub-border-size=0.75
[Anime]
profile-cond=require 'mp.utils'.join_path(working_directory, path):match('Anime') ~= nil
profile-restore=copy-equal
deband=yes #Default values are 1:64:16:48
deband-iterations=2 # Range 1-16.
deband-threshold=35 # Range 0-4096.
deband-range=20 # Range 1-64.
deband-grain=5 # Range 0-4096.
glsl-shaders-clr
glsl-shaders="~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Restore_CNN_VL.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl;~~/shaders/Anime4K_Restore_CNN_M.glsl;~~/shaders/Anime4K_AutoDownscalePre_x2.glsl;~~/shaders/Anime4K_AutoDownscalePre_x4.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"
[NotAnime]
profile-cond=(working_directory .. path):match('Anime') == nil
profile-restore=copy-equal
fbo-format=rgba16hf
glsl-shaders-clr
glsl-shaders="~~/shaders/SSimDownscaler.glsl;~~/shaders/FSRCNNX_x2_8-0-4-1.glsl;~~/shaders/KrigBilateral.glsl"
scale=ewa_lanczos
dscale=mitchell
linear-downscaling=no
cscale=mitchell # ignored with gpu-next
sigmoid-upscaling=yes
[Audio]
profile-cond=string.match(p.filename, "%.mp3$")~=nil or string.match(p.filename, "%.ogg$")~=nil or string.match(p.filename, "%.wav$")~=nil or string.match(p.filename, "%.flac$")~=nil or string.match(p.filename, "%.aac$")~=nil or string.match(p.filename, "%.wma$")~=nil or string.match(p.filename, "%.m4a$")~=nil or string.match(p.filename, "%.opus$")~=nil or string.match(p.filename, "%.vorbis$")~=nil or string.match(p.filename, "%.alac$")~=nil# ("%.flac$" and "%.mp3$" are lua string patterns that match strings only if they ends in ".flac" or ".mp3" respectively).
fs=no
geometry=20%+100%+0% # the syntax here is: <size of the window>+<x value of the position>+<y value of the position>
[Video]
profile-cond=get("current-tracks/video/albumart") == false
profile-restore=copy-equal
save-position-on-quit
watch-later-options-add=video-zoom
[autoloop]
profile-cond=duration <= 60
profile-restore=copy-equal
loop-file=inf
[protocol.http]
hls-bitrate=max # use max quality for HLS streams
force-seekable=yes # Force stream to be seekable even if disabled.
cache=yes
no-cache-pause # don't pause when the cache runs low
[protocol.https]
profile=protocol.http
[protocol.ytdl]
profile=protocol.http
[Dolby Vision]
target-trc=pq
target-prim=bt.2020