-
Notifications
You must be signed in to change notification settings - Fork 2
/
mpv.conf
136 lines (113 loc) · 4.9 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
# -*- mode: conf; -*-
#+DEST=$HOME/.config/mpv/
#+FNAME=mpv.conf
# ontop # T to toggle
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
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
cursor-autohide=1000 # autohide the curser after 1s
prefetch-playlist=yes
force-seekable=yes
hls-bitrate=max # use max quality for HLS streams
[ytdl-desktop]
profile-desc=cond:is_desktop()
ytdl-format=bestvideo[height<=?1080][fps<=?30][protocol!=http_dash_segments]+bestaudio/best
[ytdl-laptop]
profile-desc=cond:is_laptop()
ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9][protocol!=http_dash_segments]+bestaudio/best
[default]
## cache settings
cache=yes
cache-secs=10 # how many seconds of audio/video to prefetch if the cache is active
# cache-default=5000000 # size in KB
# cache-backbuffer=25000 # size in KB
# cache-initial=0 # start playback when your cache is filled up with x kB
# OSD.
# osc=no
term-osd-bar=yes
osd-level=1 # enable osd and display --osd-status-msg on interaction
osd-duration=2500 # hide the osd after x ms
osd-font='Source Sans Pro'
osd-font-size=32
osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
osd-bar-w=80 # width of " " "
osd-bar-align-y=0.9 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
msg-color=yes
osd-color='#CCFFFFFF' # ARGB format
osd-border-color='#DD322640' # ARGB format
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}}'
###Subtitles###
slang=ptBR,por,pt
demuxer-mkv-subtitle-preroll=yes
sub-gauss=.4 # default: 0
sub-codepage=utf8:cp1256 # If the file seems to be valid UTF-8, prefer UTF-8.
demuxer-mkv-subtitle-preroll # try to correctly show embedded subs when seeking
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
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
# 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=1.2
sub-shadow-offset=1
sub-shadow-color="#33000000"
sub-spacing=0.5
# Languages
alang=en,eng,English,te,Telugu,hi,Hindi,ja,jpn,Japanese,
slang=enm,en,eng # automatically select these subtitles (decreasing priority)
## Audio
af=scaletempo # Scale audio tempo by playback speed without altering pitch.
audio-channels=auto # can be 5.1
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=90 # default volume, 100 = unchanged
###Video###
vo=opengl
fs=yes
hwdec=auto
opengl-early-flush=no
opengl-pbo=yes
sigmoid-slope=10
framedrop=vo
# force starting with centered window
# geometry=50%:50%
# scale
tscale=oversample
# scale=ewa_lanczossharp
# scale-antiring=0.7
# cscale-antiring=0.7
# cscale=ewa_lanczossoft
# dscale=mitchell
# #
# video-sync=display-resample
# target-prim=bt.709
# target-trc=bt.1886
# af=lavfi=[dynaudnorm=f=100:p=0.6]
###Screenshot###
screenshot-format=png
screenshot-png-compression=9
screenshot-template=~/Desktop/mpv_ss/%F_%n
## Other
keep-open=always
input-ipc-server=~/.mpv/socket
# Protocol
[protocol.https]
cache-secs=20 # how many seconds of audio/video to prefetch
user-agent="Mozilla/5.0"
[protocol.http]
cache-secs=20 # how many seconds of audio/video to prefetch
user-agent="Mozilla/5.0"