-
Notifications
You must be signed in to change notification settings - Fork 0
/
mpv.conf
206 lines (171 loc) · 5.1 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
#
# Example mpv configuration file
#
# Warning:
#
# The commented example options usually do _not_ set the default values. Call
# mpv with --list-options to see the default values for most options. There is
# no builtin or example mpv.conf with all the defaults.
#
#
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
# system-wide settings, all of which are overridden by the command line.
#
# Configuration file settings and the command line options use the same
# underlying mechanisms. Most options can be put into the configuration file
# by dropping the preceding '--'. See the man page for a complete list of
# options.
#
# Lines starting with '#' are comments and are ignored.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
#
# Profiles should be placed at the bottom of the configuration file to ensure
# that settings wanted as defaults are not restricted to specific profiles.
x11-name=MPVfloat
##################
# video settings #
##################
# Specify high quality video rendering preset (for --vo=gpu only)
# Can cause performance problems with some drivers and GPUs.
# profile=gpu-hq
##################
# audio settings #
##################
audio-format=float
audio-samplerate=48000
audio-channels=stereo
#audio-wait-open=3
#no
##################
# other settings #
##################
no-input-default-bindings
# Pretend to be a web browser. Might fix playback with some streaming sites,
# but also will break with shoutcast streams.
user-agent="Mozilla/5.0"
#osd scale
osd-font-size=24
sub-pos=95
sub-font-size=24
sub-fix-timing=yes
sub-auto=fuzzy
audio-file-auto=fuzzy
# en subs if available, fall back to ru otherwise.
slang=en,eng,english,ru,rus,russian
alang=en,eng,english,ru,rus,russian
# sub-file-paths=sub/**:subs/**:subtitle/**:subtitles/**:
# audio-file-paths=snd/**:sound/**:sounds/**:
sub-file-paths=sub/**:subs/**:subtitle/**:subtitles/**:ENG/**:RUS/**:Eng/**:Rus/**:eng/**:rus/**:ENG Subs/**:RUS Subs/**:ENG subs/**:RUS subs/**:eng subs/**:rus subs/**:
audio-file-paths=snd/**:sound/**:Sound/**:sounds/**:Sounds/**:ENG Sound/**:RUS Sound/**:ENG sound/**:RUS sound/**:eng sound/**:rus sound/**:
autofit-larger=30%x30%
screenshot-format=jpg
screenshot-template="mpv_%ty-%tm-%td_%tT_%F"
screenshot-directory="~/Downloads/Pictures/mpv_screen"
# Don't touch IMPORTANT For thumbnails
osc=no
# You can also include other configuration files.
#include=/path/to/the/file/you/want/to/include
############
# Profiles #
############
# sane startup defaults
volume=45
gamma=+20
contrast=-20
# The options declared as part of profiles override global default settings,
# but only take effect when the profile is active.
# The following profile can be enabled on the command line with: --profile=eye-cancer
[eye-cancer]
sharpen=5
[cache]
profile-desc="profile with cache options"
cache=yes
cache-pause=yes
[big-cache]
cache=yes
demuxer-max-bytes=248MiB
demuxer-readahead-secs=180
[huge-cache]
cache=yes
cache-pause=yes
cache-pause-wait=10
demuxer-max-bytes=500MiB
demuxer-readahead-secs=6000
[common]
profile-desc="general profile for other profiles"
profile=cache
#force-window=immediate
force-window=yes # Fix potential issue with "Audio only" streams
hr-seek-framedrop=yes
hr-seek=yes
ontop=no # Keep the player window on top of all other windows.
script-opts=osc-visibility=auto
[stream]
x11-name=MPVstream
profile-desc="live stream specific profile for streamlink and twitch"
profile=enc-f-mp4
profile=common
script-opts=osc-visibility=never
cache=yes
cache-pause=yes
cache-pause-initial=yes
# set the same value
demuxer-readahead-secs=5
cache-secs=5
cache-pause-wait=5
[ytdl]
x11-name=MPVytdl
profile-desc="ytdl profile mainly designed for youtube videos"
profile=enc-f-webm
profile=common
profile=big-cache
volume=85
script-opts=osc-visibility=always
pause=yes
title="${media-title} [.6]" # => +=
[vods]
x11-name=MPVvod
profile-desc="ytdl profile mainly designed for twitch vods"
profile=enc-f-mp4
profile=common
profile=big-cache
pause=yes
volume=85
script-opts=osc-visibility=always
loop-playlist=inf
loop-file=inf
[audio]
x11-name=MPVaudio
profile-desc="profile mainly designed for audio only content"
profile=common
profile=huge-cache
osd-level=1
## 'https://mpv.io/manual/master/#command-interface-osd-ass-cc'
## 'https://aegisub.org/docs/latest/ass_tags/'
# osd-msg1="${osd-ass-cc/0}{\\an9}${media-title} [${playlist-pos-1}/${playlist-count}] [${time-pos} / ${duration}] \n${playlist}"
osd-msg1="${osd-ass-cc/0}{\\an9}{\\b1} [${time-pos} / ${duration}]\\N {\\1c&5E26C4&} ${media-title}{\\b0} [${playlist-pos-1}/${playlist-count}] {\\r}${osd-ass-cc/1}"
volume=85
script-opts=osc-visibility=always
# FIXME: loop-playlist option does not apply for some reason...
# but if supplied in the command line it works! --loop-playlist
loop-playlist=inf
# audio files only
[extension.mp2]
profile=audio
[extension.mp3]
profile=audio
[extension.m4a]
profile=audio
[extension.ogg]
profile=audio
[extension.opus]
profile=audio
[extension.flac]
profile=audio
[extension.wav]
profile=audio
[extension.wma]
profile=audio