-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpv.conf
176 lines (145 loc) · 5.26 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
window-maximized=yes
profile=fast # fast, high-quality
##################
# Video Profiles #
##################
vo=gpu-next # gpu, gpu-next
# VULKAN
hwdec=no
gpu-api=vulkan
gpu-context=winvk
vulkan-async-compute=no # disable if using nvidia GPU
vulkan-device=NVIDIA GeForce RTX 3060 Ti
#################
# VIDEO SCALING #
#################
# Luma upscaler
scale=spline36
# Chroma up & downscaler
cscale=spline36
# Luma downscaler
dscale=hermite # https://github.com/mpv-player/mpv/wiki/Downscaling-with-Hermite
correct-downscaling=yes
linear-downscaling=yes
sigmoid-upscaling=yes
######################
# VIDEO ENHANCEMENTS #
######################
brightness=0
saturation=0
gamma=0
contrast=0
#############
# DITHERING #
#############
dither-depth=auto # auto, no, 8, 10
dither=fruit # no, fruit, error-diffusion
dither-size-fruit=8
temporal-dither=yes
temporal-dither-period=1
#############
# DEBANDING #
#############
deband=no # only turn on for videos with banding - reduces detail slightly..
# deband=yes # only turn on for videos with banding
# deband-iterations=4 # https://mpv.io/manual/stable/#options-deband-iterations
# deband-threshold=35 # https://mpv.io/manual/stable/#options-deband-threshold
# deband-range=24 # https://mpv.io/manual/stable/#options-deband-range
# deband-grain=5 # https://mpv.io/manual/stable/#options-deband-grain
#############
# INTERFACE #
#############
# border=no # show windows titlebar instead of mpv default
osd-font='Roboto' # ui font
osd-font-size=8
osd-bar=no # Don't show a huge volume box on screen when turning the volume up/down
osd-bold=yes
##########
# IMAGES #
##########
image-display-duration=inf # dont cycle through images
#########
# AUDIO #
#########
ao=wasapi
audio-channels=7.1,5.1,3.0,stereo # 7.1,5.1,3.0,stereo,empty
audio-exclusive=yes # requires wasapi - avoid windows resampling
# set initial and maximum volume
volume=85 # based on MPC-HC's warning (apparently avoids distortion)
volume-max=100
# based on # https://blog.otterbro.com/ffmpeg-audio-channel-manipulation/
# downmix to 3.0
af-append=pan="3.0|FL=FL+0.5*SL+0.5*BL+0.5*LFE|FR=FR+0.5*SR+0.5*BR+0.5*LFE|FC=FC"
# manual loudnorm filter
# af-toggle=lavfi=[loudnorm=I=-16:TP=-1.5:LRA=7:measured_I=-16.5:measured_LRA=23.6:measured_TP=-0.0:measured_thresh=-29.3]
# https://github.com/mpv-player/mpv/issues/8418#issuecomment-2466772516
# https://ffmpeg.org/ffmpeg-filters.html#dynaudnorm
af-append=lavfi="dynaudnorm=targetrms=0.5:framelen=1000"
# https://ffmpeg.org/ffmpeg-filters.html#acompressor
# copy of VLC's acompressor - https://www.vlchelp.com/fix-movies-loud-music-low-dialogue/
# note: value = 10**(dB/20)
# af-append=acompressor=threshold=0.06456542290346556:ratio=20:attack=24.9:release=262.9:knee=1.1885022274370185 # :makeup=2.371373705661655
# https://www.reddit.com/r/VLC/comments/sr7oyh/movies_dialogues_are_too_quiet_and_sound_effects
# af-append=acompressor=threshold=0.06456542290346556:ratio=20:attack=25:release=260.5:knee=1.202264434617413 # :makeup=2.371373705661655
#############
# SUBTITLES #
#############
# sid=no # disable showing subtitles by default
sub-ass-override=force # force styling
blend-subtitles=yes
sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
sub-font="Roboto"
sub-font-size=30
sub-border-size=2
# BLURAY-esque style # https://www.reddit.com/r/mpv/comments/uzvm8i/comment/iaj43n3/
# sub-font='Arial Regular'
# sub-border-size=1
# sub-color='#CDCDCD'
# sub-shadow=3
# sub-shadow-color='#000000'
# sub-shadow-offset=2
######################
# LANGUAGE SELECTION
######################
# For anime we want to load JP audio with ENG subs.
# alang=English,eng,en
# slang=English,eng,en
alang=Japanese,jpn,ja,English,eng,en
slang=Japanese,jpn,ja,English,eng,en # for immersion learning
#################
# INTERPOLATION #
#################
video-sync=display-resample # audio, display-resample, display-vdrop, display-tempo
interpolation=yes
tscale=gaussian
scale-param1=0.36787944117144233 # 1/e
tscale-clamp=0
tscale-antiring=0
tscale-blur=0.5
tscale-radius=2.718281828459045
####################
# DISPLAY SETTINGS #
####################
# set appropiate targets tailored for !!!!OUTPUT DISPLAY!!!!
target-prim=bt.709 # bt.2020, dci-p3, bt.709
# older movies mastered with gamma2.2, newer bt1886
target-trc=bt.1886 # bt.1886, gamma2.2
# https://kodi.wiki/view/Video_levels_and_color_space
# following "limited -> full -> limited" chain
video-output-levels=limited # full, limited, auto
#######
# HDR #
#######
[HDR]
osd-playing-msg = "HDR"
profile-cond=get("video-params/primaries") == "bt.2020"
profile-restore=copy
# only change for HDR/tone-mapping
target-peak=203 # 203 default for SDR
target-contrast=4000 # 4723, inf
# libplacebo-opts=color_map_preset=high_quality,lut3d_tricubic=yes,gamut_expansion=yes
libplacebo-opts=peak_detect=yes,peak_detection_preset=high_quality,peak_percentile=99.995,contrast_recovery=0
libplacebo-opts=gamut_mapping=perceptual,tone_mapping=spline,knee_adaptation=0.5,knee_minimum=0,knee_maximum=1,knee_default=0.5,slope_tuning=0,slope_offset=0
# target-colorspace-hint=auto
# disable DV
# vf-add=format:dolbyvision=no