# Mpv (mplayer2 fork) configuration file.
-# Copyright (C) 2011-2016 Simon Ruderich
+# Copyright (C) 2011-2023 Simon Ruderich
#
# This file is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# along with this file. If not, see <http://www.gnu.org/licenses/>.
-# Use ALSA as audio driver.
-ao=alsa
+# Use hardware decoding if possible
+hwdec=auto
+
# Set default value of internal mixer (0-100). Since 0.18.1 mpv has no access
# to hardware mixer.
volume=50
# Display position/length and cache in the progress overlay ("P" binding).
# Thanks to wm4 in $mpv-player on Freenode (2014-08-18 01:24 CEST).
-osd-status-msg="${time-pos} / ${duration} (${percent-pos}%)${?cache-percent: Cache: ${cache-percent}%}"
+osd-status-msg="${time-pos} / ${duration} (${percent-pos}%)${?demuxer-cache-duration: Cache: ${demuxer-cache-duration}s}"
# Don't display attached pictures in sound files.
audio-display=no
+# Increase cache size
+demuxer-max-bytes=300MiB
+
+# Load and cache next title in playlist before the current file is ending.
+# Very useful when watching series.
+prefetch-playlist=yes
+
+# Save secondary-sid to watch-later state files. Note that this won't work if
+# --secondary-sid is used on the command line (mpv only saves settings with a
+# different value).
+watch-later-options-append=secondary-sid
+
# vim: ft=mplayerconf