]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - multimedia/mpv/mpv.conf
96ebf6d680f24e60769f941120e67f4b580e994c
[config/dotfiles.git] / multimedia / mpv / mpv.conf
1 # Mpv (mplayer2 fork) configuration file.
2
3 # Copyright (C) 2011-2023  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 # Use hardware decoding if possible
20 hwdec=auto
21
22 # Use ALSA as audio driver.
23 ao=alsa
24 # Set default value of internal mixer (0-100). Since 0.18.1 mpv has no access
25 # to hardware mixer.
26 volume=50
27
28 # Fullscreen playback.
29 fs=yes
30
31 # Prefer English and German audio and subtitles.
32 alang=jpn,en,eng,de,ger
33 slang=en,eng,de,ger
34
35 # When playing MKV files try to always display the subtitle at the exact seek
36 # position by seeking a little further when looking for it. Otherwise only the
37 # next subtitle will be displayed. Thanks to lachs0r in #mpv on Freenode
38 # (2015-03-10 02:16 CET).
39 demuxer-mkv-subtitle-preroll=yes
40
41 # But don't display subtitles by default. Thanks to wm4 in #mpv-player on
42 # Freenode (2013-10-09 23:42 CEST) for this idea.
43 sub-visibility=no
44
45 # Reduce subtitle size (default is 45).
46 sub-font-size=33
47 # Increase bottom margin for subtitles (default is 10). Makes them more
48 # pleasant to read for me.
49 sub-margin-y=30
50
51 # Try to find subtitles in similar-looking file names.
52 sub-auto=fuzzy
53
54 # Disable the mouse as I don't use it.
55 input-cursor=no
56
57 # Always hide the cursor.
58 cursor-autohide=always
59
60 # Disable "on screen controller". I use the keyboard only.
61 osc=no
62
63 # Display position/length and cache in the progress overlay ("P" binding).
64 # Thanks to wm4 in $mpv-player on Freenode (2014-08-18 01:24 CEST).
65 osd-status-msg="${time-pos} / ${duration} (${percent-pos}%)${?demuxer-cache-duration: Cache: ${demuxer-cache-duration}s}"
66
67 # Don't display attached pictures in sound files.
68 audio-display=no
69
70 # Increase cache size
71 demuxer-max-bytes=300MiB
72
73 # Load and cache next title in playlist before the current file is ending.
74 # Very useful when watching series.
75 prefetch-playlist=yes
76
77 # vim: ft=mplayerconf