summaryrefslogtreecommitdiffstats
path: root/DOCS/man/options.rst
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-03-01 17:38:35 -0600
committerDudemanguy <random342@airmail.cc>2024-03-21 14:48:53 +0000
commit91489c946689763c36e4d720d6048037252818f7 (patch)
treed6dcbf5aa8d09f8ff6c572b52ff56114704bcf0e /DOCS/man/options.rst
parent46a35e2edc1905a9cbe4674f454ef056a6d1eef4 (diff)
downloadmpv-91489c946689763c36e4d720d6048037252818f7.tar.bz2
mpv-91489c946689763c36e4d720d6048037252818f7.tar.xz
options: add --input-commands option
Basically a simple way to perform any command/property action from the command line. This takes the exact same syntax as input.conf but not including the key naturally. Potentially useful for weird properties that don't map well to options (like ao-volume). Fixes #12353.
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r--DOCS/man/options.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 2299e3f14b..1b6e1465de 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -4101,6 +4101,21 @@ Input
``--input-cmdlist``
Prints all commands that can be bound to keys.
+``--input-commands=<cmd1,cmd2,...>``
+ Define a list of commands for mpv to run. The syntax is the same as format
+ as ``input.conf`` but without the key binding argument at the beginning.
+ When this option is set at startup, the commands will run after audio and
+ video playback are about to begin if applicable (in idle mode with no file,
+ it will run immediately). When changing values at runtime, the commands will
+ also run as soon as possible.
+
+ This is a string list option. See `List Options`_ for details.
+
+ .. admonition:: Example
+
+ ``--input-commands="playlist-play-index 1,set ao-volume 40"``
+ sets the playlist index to 1 and the ao-volume to 40
+
``--input-doubleclick-time=<milliseconds>``
Time in milliseconds to recognize two consecutive button presses as a
double-click (default: 300).