summaryrefslogtreecommitdiffstats
path: root/DOCS/man/options.rst
diff options
context:
space:
mode:
authorRipose <ripose@protonmail.com>2023-11-22 20:13:57 -0700
committersfan5 <sfan5@live.de>2023-11-26 23:22:05 +0100
commitdea512ea38605b6e203e98c1684f819e4aa465f1 (patch)
treebd9f62b46f2a976debdf41b9c9f9e937f38be892 /DOCS/man/options.rst
parenta3f505d4cb2ca70071bbe849d9cf5859802ff608 (diff)
downloadmpv-dea512ea38605b6e203e98c1684f819e4aa465f1.tar.bz2
mpv-dea512ea38605b6e203e98c1684f819e4aa465f1.tar.xz
options: add secondary-sub-delay
Add --secondary-sub-delay option and decouple --sub-delay from secondary subtitles. This produces desirable behavior in most cases as secondary and primary subtitles tracks tend to be timed independently of one another. This feature is implemented by turning the sub_delay field in mp_subtitle_opts into an array of 2 floats. From here the track index is either passed around or derived when sub_delay is needed. There are some cases in dec_sub.c where it is possible for dec_sub.order (equivalent to track index) to be -1. In these cases, sub_delay is inferred as 0.
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r--DOCS/man/options.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 6025705a99..f80fc77904 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -2312,7 +2312,10 @@ Subtitles
printed by ``--sub-demuxer=help``.
``--sub-delay=<sec>``
- Delays subtitles by ``<sec>`` seconds. Can be negative.
+ Delays primary subtitles by ``<sec>`` seconds. Can be negative.
+
+``--secondary-sub-delay=<sec>``
+ Delays secondary subtitles by ``<sec>`` seconds. Can be negative.
``--sub-files=<file-list>``, ``--sub-file=<filename>``
Add a subtitle file to the list of external subtitles.