summaryrefslogtreecommitdiffstats
path: root/DOCS/man/osc.rst
diff options
context:
space:
mode:
authorSagnac <83491030+Sagnac@users.noreply.github.com>2021-06-14 16:37:10 +0000
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2021-06-16 02:04:28 +0300
commit96b246d9283da99b82800bbd576037d115e3c6e9 (patch)
treebb63fb2e72cfe1690a273ee54f60f31b37d23c80 /DOCS/man/osc.rst
parentbc9d556f3a890cf5f99e9dced0117e2d8a91ff09 (diff)
downloadmpv-96b246d9283da99b82800bbd576037d115e3c6e9.tar.bz2
mpv-96b246d9283da99b82800bbd576037d115e3c6e9.tar.xz
osc: update chapter marker positions when duration changes
Commit 6abb7e3 updates the markers when the chapters change, but it doesn't update their relative position at the bar when the duration changes. This means that adding chapters to a live stream would result in corresponding chapter markers which were static while the duration changed and thus their positions became incorrect over time until the OSC was reinitialized. This is fixed by observing the duration property if chapters are present and reinitializing the OSC when the duration changes. The live_markers user option, which determines whether the duration property is observed when there are chapters, has been added in order to allow disabling this behaviour as calling request_init() frequently might have some impact on low-end systems. The impact of request_init() on render() was measured to increase from 1-1.5 ms to 2-3 ms on a 2010 MacBook Air, while the impact was neglible on a 2016 Surface Book (increasing only to an average of 1.4 ms from 1.3 ms for n=1500 render cycles). The live_markers option is enabled by default.
Diffstat (limited to 'DOCS/man/osc.rst')
-rw-r--r--DOCS/man/osc.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/DOCS/man/osc.rst b/DOCS/man/osc.rst
index eabc230253..236a3dd3cb 100644
--- a/DOCS/man/osc.rst
+++ b/DOCS/man/osc.rst
@@ -375,6 +375,12 @@ Configurable Options
Set to ``yes`` to reduce festivity (i.e. disable santa hat in December.)
+``livemarkers``
+ Default: yes
+
+ Update chapter markers positions on duration changes, e.g. live streams.
+ The updates are unoptimized - consider disabling it on very low-end systems.
+
Script Commands
~~~~~~~~~~~~~~~