diff options
author | wm4 <wm4@nowhere> | 2014-01-08 21:07:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-08 21:09:01 +0100 |
commit | 59c6fa220158794791b5e1674c4aa1e1a439c2c8 (patch) | |
tree | 192edbeeccc331ec509da91879a165b5d19fb90f /DOCS/man/en/options.rst | |
parent | 3e6fdc94d6b9f5ea4390f821c184b5e7a5e0d508 (diff) | |
download | mpv-59c6fa220158794791b5e1674c4aa1e1a439c2c8.tar.bz2 mpv-59c6fa220158794791b5e1674c4aa1e1a439c2c8.tar.xz |
screenshot: add format specifiers to get file directory path
Useful if you want to put the screenshot into the same directory as the
file that is being played.
Diffstat (limited to 'DOCS/man/en/options.rst')
-rw-r--r-- | DOCS/man/en/options.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index a6e70c0bd6..e49460ae02 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -1970,6 +1970,12 @@ OPTIONS Filename of the currently played video. ``%F`` Same as ``%f``, but strip the file extension, including the dot. + ``%x`` + Directory path of the currently played video. If the video is not on + the filesystem (but e.g. ``http://``), this expand to an empty string. + ``%X{fallback}`` + Same as ``%x``, but if the video file is not on the filesystem, return + the fallback string inside the ``{...}``. ``%p`` Current playback time, in the same format as used in the OSD. The result is a string of the form "HH:MM:SS". For example, if the video is |