summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-14 18:32:58 +0200
committerwm4 <wm4@nowhere>2019-10-14 18:32:58 +0200
commitf0f13871453504767e0e9fed470853108cb8bbac (patch)
tree9f5e9cfad3bb375b2011c3cb7c40bb80f7a397d2
parent18bd768ecc8f197969d5771394b0a486f85ebb43 (diff)
downloadmpv-f0f13871453504767e0e9fed470853108cb8bbac.tar.bz2
mpv-f0f13871453504767e0e9fed470853108cb8bbac.tar.xz
etc/mpv.conf: update outdated use of cache options
The --cache option does not take a number anymore. (Oh boy, this is going to break a lot of user configs?) The cache site is now configured with those obscure-sounding --demuxer options. --cache-secs is not useful anymore. The default is very high, so the obscure-sounding --demuxer options determine how much is cached. Advertise the --cache-on-disk option a bit. I found it useful once, and it will trick users into wearing out their SSD for no gain, or so.
-rw-r--r--etc/mpv.conf17
1 files changed, 10 insertions, 7 deletions
diff --git a/etc/mpv.conf b/etc/mpv.conf
index de277fba8a..d067562f1e 100644
--- a/etc/mpv.conf
+++ b/etc/mpv.conf
@@ -95,18 +95,21 @@
# cache settings
#
-# Use 150MB input cache for everything, even local files.
-#cache=153600
+# Use a large seekable RAM cache even for local input.
+#cache=yes
+#
+# Use extra large RAM cache (needs cache=yes to make it useful).
+#demuxer-max-bytes=500M
+#demuxer-max-back-bytes=100M
#
# Disable the behavior that the player will pause if the cache goes below a
# certain fill size.
#cache-pause=no
#
-# Read ahead about 5 seconds of audio and video packets.
-#demuxer-readahead-secs=5.0
-#
-# Raise readahead from demuxer-readahead-secs to this value if a cache is active.
-#cache-secs=50.0
+# Store cache payload on the hard disk instead of in RAM. (This may negatively
+# impact performance unless used for slow input such as network.)
+#cache-dir=~/.cache/
+#cache-on-disk=yes
# Display English subtitles if available.
#slang=en