]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - multimedia/mpv/mpv.conf
multimedia: mpv: use hardware decoding if possible
[config/dotfiles.git] / multimedia / mpv / mpv.conf
index eb4ff5ca9f8123f56cf0349a54043037080c9562..94f86f785c1da5d6cde42209a764e2af3cb0ebd4 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,7 +62,7 @@ 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