* use sub-end instead of sub-text. Disadvantage is that ignoring subtitles is broken right now. Advantage: image based subtitles are working.
For dvd subtitles (that's what I tested) it can happen that some subtitle lines, get 'eaten'. They don't show even though they should.
* implement sub-timeout: when subtitles are displayed without change for some time (5s) -> speedup. (Useful for autogenerated subtitles)
* improvements to skip mode:
- better behaviour if next subtitle is not in cache
- option for non-exact skips. This also implements seek-back since a skip is not guaranteed to end at the next line. It might skip over it.
* users can now supply a script configuration file (speed_transition.conf)
* remove key binding for sub visibility. Pressing v seems to handle this nicely.
* change key binding for skip mode to alt + j
* added bunch of debugging code to better debug issues
* Document user options and add some new features
I realized I've been adding to and adjusting this script for a while now and almost lost it in a reformat. I also included some requested feature's from the issue tracker. I'll comment inline to clarify some changes.
* Update speed-transition.lua
* Update README.md
* Update speed-transition.lua
* Update speed-transition.lua
If avdesync > leadin then we resume too late after the subtitle should have been shown. When mpv plays with no audio, subtitles are timed to video instead of audio. This change removes audio in this case to ensure we resume on time.
When seeking in a speedup zone the code would transition from state
1 to 0 and again to 1 restoring normal speed and speeding up again. This is not really visible but it introduced a slight delay when seeking.
This change prevents the speed transition when seeking within the same
zone and when seeking to different zones by storing the begin and end of
such a zone.
Fixes commits d8738984 and 759bd191, which were reverted.
When seeking from one speedup zone to a different speedup zone, which
lies in the past, the code would not reset early. So check for this case
and update the corresponding variables.
* attempts to add my optional leadin
speed will return to normal an optional number of seconds before the subs appear. Has worked for me so far, would you mind testing?
* Update speed-transition.lua
* Update speed-transition.lua