]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - multimedia/mpv/mpv.conf
multimedia: mpv: save secondary-sid to watch-later
[config/dotfiles.git] / multimedia / mpv / mpv.conf
index eb4ff5ca9f8123f56cf0349a54043037080c9562..31d6c8eff88e8d3cd104b4d24ddbab37fd6fec40 100644 (file)
@@ -1,6 +1,6 @@
 # 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
@@ -16,6 +16,9 @@
 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
 
+# Use hardware decoding if possible
+hwdec=auto
+
 # Use ALSA as audio driver.
 ao=alsa
 # Set default value of internal mixer (0-100). Since 0.18.1 mpv has no access
@@ -59,9 +62,21 @@ osc=no
 
 # 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