diff options
author | Ripose <ripose@protonmail.com> | 2023-11-22 20:13:57 -0700 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-11-26 23:22:05 +0100 |
commit | dea512ea38605b6e203e98c1684f819e4aa465f1 (patch) | |
tree | bd9f62b46f2a976debdf41b9c9f9e937f38be892 /DOCS/interface-changes.rst | |
parent | a3f505d4cb2ca70071bbe849d9cf5859802ff608 (diff) | |
download | mpv-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/interface-changes.rst')
-rw-r--r-- | DOCS/interface-changes.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 53975f2a3a..94bc6772f2 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -28,6 +28,8 @@ Interface changes --- mpv 0.38.0 --- - remove shared-script-properties (user-data is a replacement) + - add `--secondary-sub-delay`, decouple secondary subtitles from + `--sub-delay` --- mpv 0.37.0 --- - `--save-position-on-quit` and its associated commands now store state files in %LOCALAPPDATA% instead of %APPDATA% directory by default on Windows. |