diff options
author | wm4 <wm4@nowhere> | 2014-06-22 02:50:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-22 05:04:05 +0200 |
commit | 5b8298376b3ea548b21b652c495b5fcf3d4b5e78 (patch) | |
tree | a02fd4a94abc0c75b953fb8d2cad55894c3de305 /DOCS/man/options.rst | |
parent | ea1650fcc338a11adfbbbf950719c65f33acc574 (diff) | |
download | mpv-5b8298376b3ea548b21b652c495b5fcf3d4b5e78.tar.bz2 mpv-5b8298376b3ea548b21b652c495b5fcf3d4b5e78.tar.xz |
stream: add a file cache
For remarks, pretty much see the manpage additions. Could help with
network streams that require too much seeking (maybe), or might be
extended to help with the use case of watching and downloading a file
at the same time.
In general, it might be a useless feature and could be removed again.
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r-- | DOCS/man/options.rst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index b6b08d7d6e..d67d93c592 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -428,6 +428,31 @@ OPTIONS on the situation, either of these might be slower than the other method. This option allows control over this. +``--cache-file=<path>`` + Create a cache file on the filesystem with the given name. The file is + always overwritten. When the general cache is enabled, this file cache + will be used to store whatever is read from the source stream. + + This will always overwrite the cache file, and you can't use an existing + cache file to resume playback of a stream. (Technically, mpv wouldn't + even know which blocks in the file are valid and which not.) + + The resulting file will not necessarily contain all data of the source + stream. For example, if you seek, the parts that were skipped over are + never read and consequently are not written to the cache. The skipped over + parts are filled with zeros. This means that the cache file doesn't + necessarily correspond to a full download of the source stream. + + Both of these issues could be improved if there is any user interest. + + Also see ``--cache-file-size``. + +``--cache-file-size=<kBytes>`` + Maximum size of the file created with ``--cache-file``. For read accesses + above this size, the cache is simply not used. + + (Default: 1048576, 1 GB.) + ``--cdda-...`` These options can be used to tune the CD Audio reading feature of mpv. |