From e32e273b6b349b37489fc38fd9b81dbf6ab58fc9 Mon Sep 17 00:00:00 2001 From: cantabile Date: Thu, 23 Aug 2012 10:03:03 +0300 Subject: manpage: --screenshot-template: update %n, add %{prop} Explanation of %{prop} taken from the commit message of commit 12c44610ad6963bb58c01cc4415cc7befef386e1 (screenshot: make screenshot filenames configurable). --- DOCS/man/en/options.rst | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'DOCS/man') 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. -- cgit v1.2.3