summaryrefslogtreecommitdiffstats
path: root/DOCS/man/input.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-04 17:21:02 +0100
committerwm4 <wm4@nowhere>2015-03-04 17:31:36 +0100
commit5c49fe97cba11bf6cd58b6e18577dbf8095a5222 (patch)
tree359c365054e7e44372e57cea404c5288e199ad64 /DOCS/man/input.rst
parent9e1866af1ecb8faf2b3e913eaca60c4a36911108 (diff)
downloadmpv-5c49fe97cba11bf6cd58b6e18577dbf8095a5222.tar.bz2
mpv-5c49fe97cba11bf6cd58b6e18577dbf8095a5222.tar.xz
input: use flag option type for some input commands
This gets rid of the need for a second (or more) parameters; instead it can be all in one parameter. The (now) redundant parameter is still parsed for compatibility, though. The way the flags make each other conflict is a bit tricky: they have overlapping bits, and the option parser disallows setting already set bits.
Diffstat (limited to 'DOCS/man/input.rst')
-rw-r--r--DOCS/man/input.rst31
1 files changed, 15 insertions, 16 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 8a6ac915ba..badf5ed08a 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -86,11 +86,11 @@ List of Input Commands
disabling default bindings, without disabling all bindings with
``--no-input-default-bindings``.
-``seek <seconds> [relative|absolute|absolute-percent|- [default-precise|exact|keyframes]]``
+``seek <seconds> [relative|absolute|absolute-percent|exact|keyframes]``
Change the playback position. By default, seeks by a relative amount of
seconds.
- The second argument sets the seek mode:
+ The second argument consists of flags controlling the seek mode:
relative (default)
Seek relative to current position (a negative value seeks backwards).
@@ -98,16 +98,19 @@ List of Input Commands
Seek to a given time.
absolute-percent
Seek to a given percent position.
-
- The third argument defines how exact the seek is:
-
- default-precise (default)
- Follow the default behavior as set by ``--hr-seek``, which by default
- does imprecise seeks (like ``keyframes``).
- exact
- Always do exact/hr/precise seeks (slow).
keyframes
Always restart playback at keyframe boundaries (fast).
+ exact
+ Always do exact/hr/precise seeks (slow).
+
+ Multiple flags can be combined, e.g.: ``absolute+keyframes``.
+
+ By default, ``keyframes`` is used for relative seeks, and ``exact`` is used
+ for absolute seeks.
+
+ Before mpv 0.9, the ``keyframes`` and ``exact`` flags had to be passed as
+ 3rd parameter (essentially using a space instead of ``+``). The 3rd
+ parameter is still parsed, but is considered deprecated.
``revert_seek [mode]``
Undoes the ``seek`` command, and some other commands that seek (but not
@@ -170,16 +173,12 @@ List of Input Commands
Save the contents of the mpv window. Typically scaled, with OSD and
subtitles. The exact behavior depends on the selected video output, and
if no support is available, this will act like ``video``.
-
- Second argument:
-
- <single> (default)
- Take a single screenshot.
<each-frame>
Take a screenshot each frame. Issue this command again to stop taking
screenshots. Note that you should disable frame-dropping when using
this mode - or you might receive duplicate images in cases when a
- frame was dropped.
+ frame was dropped. This flag can be combined with the other flags,
+ e.h. ``video+each-frame``.
``screenshot_to_file "<filename>" [subtitles|video|window]``
Take a screenshot and save it to a given file. The format of the file will