X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=multimedia%2Fmpv%2Fmpv.conf;h=15936e16e33eb7b5306638c1cfc15d075d7f05fc;hb=6bd2f6fb7f4d5b936c1f08eabc97c3be7625b3d7;hp=19eeaa3203f9fc522ae2995bc624ceea2a79bb6a;hpb=8442aaf94abd0faeda81b6d2700c5e81a3357649;p=config%2Fdotfiles.git diff --git a/multimedia/mpv/mpv.conf b/multimedia/mpv/mpv.conf index 19eeaa3..15936e1 100644 --- a/multimedia/mpv/mpv.conf +++ b/multimedia/mpv/mpv.conf @@ -1,6 +1,6 @@ # Mpv (mplayer2 fork) configuration file. -# Copyright (C) 2011-2015 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,10 +16,12 @@ # along with this file. If not, see . -# Use ALSA as audio driver, use PCM for volume control. -ao=alsa:mixer-name=PCM -# Use the audio driver volume control if possible. -softvol=no +# 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 # Fullscreen playback. fs=yes @@ -39,26 +41,40 @@ demuxer-mkv-subtitle-preroll=yes sub-visibility=no # Reduce subtitle size (default is 45). -sub-text-font-size=33 +sub-font-size=33 # Increase bottom margin for subtitles (default is 10). Makes them more # pleasant to read for me. -sub-text-margin-y=30 +sub-margin-y=30 + +# Try to find subtitles in similar-looking file names. +sub-auto=fuzzy # Disable the mouse as I don't use it. input-cursor=no -# Always hide the cursor when playing a movie in fullscreen movie. +# Always hide the cursor. cursor-autohide=always -cursor-autohide-fs-only # Disable "on screen controller". I use the keyboard only. 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} / ${length} (${percent-pos}%)${?cache: Cache: ${cache}%}" +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