Go to file
zenyd f428b3f6b3 Properly handle delayed subtitles
Delayed subtitles where working properly for negative values. Positive delay values wheren't handled correctly.
2017-09-14 20:27:40 +02:00
LICENSE Initial commit 2017-09-05 18:48:07 +02:00
README.md Update README.md 2017-09-06 00:25:13 +02:00
speed-transition.lua Properly handle delayed subtitles 2017-09-14 20:27:40 +02:00

README.md

speed-transition

This is a lua script for the mpv media player. The purpose of this script is to speed up the video if no subtitles are visible for a certain amount of (user configurable) time. It is inspired by the speed-between-subs script.

how it works

the script looks for the next subtitle and if it is ahead by 5 (default) seconds the video gets sped up and resumes normal playback just before the subtitle becomes visible. This is done to prevent audio glitches when speech starts.

usage

for the script to work it is necessary to have an appropriate 'text' subtitle selected and visible. Pressing ctrl+j toggles it on/off.

If you want to use it with local files it is necessary to either have --cache=yes or --demuxer-readahead-secs=10 options enabled in your config/cli. A value of demuxer-readahead-secs>=10 is recommended. The same applies to --cache-secs option if it has been set.

The script has sensible defaults, but if you want to change the lookahead value take care to not set it larger than what the buffers can provide. This applies to embedded subtitles and not external.