X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=multimedia%2Fmpv%2Fmpv.conf;h=fdb610c39a087fd17978e1c27e4e22c9c76226f4;hb=HEAD;hp=eb4ff5ca9f8123f56cf0349a54043037080c9562;hpb=416ce61606a742ea16b9e121b2e279416375860a;p=config%2Fdotfiles.git diff --git a/multimedia/mpv/mpv.conf b/multimedia/mpv/mpv.conf index eb4ff5c..fdb610c 100644 --- a/multimedia/mpv/mpv.conf +++ b/multimedia/mpv/mpv.conf @@ -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,8 +16,9 @@ # along with this file. If not, see . -# 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 @@ -59,9 +60,23 @@ 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 +# Also keep play/pause state (necessary since 0.37). +watch-later-options-append=pause + # vim: ft=mplayerconf