summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-20 23:55:29 +0200
committerwm4 <wm4@nowhere>2014-10-21 00:15:04 +0200
commit131633b4e5a378ce67ad7e04ca713097f0c01c71 (patch)
tree44f48ef4af18b7b845ab60899505640d51c88128 /DOCS
parentb79f291f4bb6f3f2efb24b9f03829784c17a0541 (diff)
downloadmpv-131633b4e5a378ce67ad7e04ca713097f0c01c71.tar.bz2
mpv-131633b4e5a378ce67ad7e04ca713097f0c01c71.tar.xz
command: extend sub_add command
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/input.rst18
1 files changed, 17 insertions, 1 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 7f141262a3..4d30a3cf43 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -260,10 +260,26 @@ List of Input Commands
will seek to the previous position on start. The (optional) argument is
exactly as in the ``quit`` command.
-``sub_add "<file>"``
+``sub_add "<file>" [<flags> [<title> [<lang>]]]``
Load the given subtitle file. It is selected as current subtitle after
loading.
+ The ``flags`` args is one of the following values:
+
+ <select>
+
+ Select the subtitle immediately.
+
+ <auto>
+
+ Don't select the subtitle. (Or in some special situations, let the
+ default stream selection mechanism decide.)
+
+ The ``title`` argument sets the track title in the UI.
+
+ The ``lang`` argument sets the track language, and can also influence
+ stream selection with ``flags`` set to ``auto``.
+
``sub_remove [<id>]``
Remove the given subtitle track. If the ``id`` argument is missing, remove
the current track. (Works on external subtitle files only.)