summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido Cella <guidocella91@gmail.com>2020-11-01 12:23:16 +0100
committerDudemanguy <random342@airmail.cc>2020-11-11 18:20:33 +0000
commit5da326a8bb6a73cc6124570e8d347d0aefb1f576 (patch)
treefaa357ffb69b6a8e83f8f72396be8322037738c5
parent81dfaa496242a5905003ce5e83360f2634287259 (diff)
downloadmpv-5da326a8bb6a73cc6124570e8d347d0aefb1f576.tar.bz2
mpv-5da326a8bb6a73cc6124570e8d347d0aefb1f576.tar.xz
manpage: document demuxer-cache-state better
-rw-r--r--DOCS/man/input.rst15
1 files changed, 11 insertions, 4 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 34c408d8ff..0a88dfeecb 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -2079,10 +2079,9 @@ Property list
to the requested amount, and is currently not reading more data.
``demuxer-cache-state``
- Various undocumented or half-documented things.
-
Each entry in ``seekable-ranges`` represents a region in the demuxer cache
- that can be seeked to. If there are multiple demuxers active, this only
+ that can be seeked to, with a ``start`` and ``end`` fields containing the
+ respective timestamps. If there are multiple demuxers active, this only
returns information about the "main" demuxer, but might be changed in
future to return unified information about all demuxers. The ranges are in
arbitrary order. Often, ranges will overlap for a bit, before being joined.
@@ -2107,7 +2106,13 @@ Property list
``file-cache-bytes`` is the number of bytes stored in the file cache. This
includes all overhead, and possibly unused data (like pruned data). This
- member is missing if the file cache is not active.
+ member is missing if the file cache wasn't enabled with
+ ``--cache-on-disk=yes``.
+
+ ``cache-end`` is ``demuxer-cache-time``. Missing if unavailable.
+
+ ``reader-pts`` is the approximate timestamp of the start of the buffered
+ range. Missing if unavailable.
``cache-duration`` is ``demuxer-cache-duration``. Missing if unavailable.
@@ -2130,6 +2135,8 @@ Property list
"eof-cached" MPV_FORMAT_FLAG
"fw-bytes" MPV_FORMAT_INT64
"file-cache-bytes" MPV_FORMAT_INT64
+ "cache-end" MPV_FORMAT_DOUBLE
+ "reader-pts" MPV_FORMAT_DOUBLE
"cache-duration" MPV_FORMAT_DOUBLE
"raw-input-rate" MPV_FORMAT_INT64