summaryrefslogtreecommitdiffstats
path: root/DOCS/man
diff options
context:
space:
mode:
authorcantabile <cantabile.desu@gmail.com>2012-08-23 10:03:03 +0300
committercantabile <cantabile.desu@gmail.com>2012-08-24 14:43:51 +0300
commite32e273b6b349b37489fc38fd9b81dbf6ab58fc9 (patch)
treee850beeddc0ea54001a08a31156c9612f792cadb /DOCS/man
parentd6d2c5e9df5de15333721daf4f8458048167f4cf (diff)
downloadmpv-e32e273b6b349b37489fc38fd9b81dbf6ab58fc9.tar.bz2
mpv-e32e273b6b349b37489fc38fd9b81dbf6ab58fc9.tar.xz
manpage: --screenshot-template: update %n, add %{prop}
Explanation of %{prop} taken from the commit message of commit 12c44610ad6963bb58c01cc4415cc7befef386e1 (screenshot: make screenshot filenames configurable).
Diffstat (limited to 'DOCS/man')
-rw-r--r--DOCS/man/en/options.rst20
1 files changed, 14 insertions, 6 deletions
diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst
index 31825581ef..0d183cff53 100644
--- a/DOCS/man/en/options.rst
+++ b/DOCS/man/en/options.rst
@@ -1651,11 +1651,15 @@
Allowed format specifiers:
- ``%nX``
- A sequence number, padded with zeros to length X. E.g. passing the
- format ``%n4`` will yield ``0012`` on the 12th screenshot. The number is
- incremented every time a screenshot is taken, or if the file already
- exists. The length ``X`` must be in the range 0-9.
+ ``%[#][0X]n``
+ A sequence number, padded with zeros to length X (default: 04). E.g.
+ passing the format ``%04n`` will yield ``0012`` on the 12th screenshot.
+ The number is incremented every time a screenshot is taken, or if the
+ file already exists. The length ``X`` must be in the range 0-9. With
+ the optional # sign mplayer will use the lowest available number. For
+ example, if you take three screenshots--0001, 0002, 0003--and delete
+ the first two, the next two screenshots won't be 0004 and 0005, but
+ 0001 and 0002 again.
``%f``
Filename of the currently played video.
``%F``
@@ -1673,11 +1677,15 @@
are not easily implementable, because container formats usually use
time stamps for identifying frames.)
``%tX``
- Specify the current local date/time using he format ``X``. This format
+ Specify the current local date/time using the format ``X``. This format
specifier uses the UNIX ``strftime()`` function internally, and inserts
the result of passing "%X" to ``strftime``. For example, ``%tm`` will
insert the number of the current month as number. You have to use
multiple ``%tX`` specifiers to build a full date/time string.
+ ``%{prop[:fallback text]}``
+ Insert the value of the slave property 'prop'. E.g. %{filename} is the
+ same as %f. If the property doesn't exist or is not available, nothing
+ is inserted, unless a fallback is specified.
``%%``
Replaced with the ``%`` character itself.