mpv-sub-scripts
mpv-sub-scripts copied to clipboard
sub-skip: subtitle timeout
About 40% of the time I don't get the benefit of sub-skip because the subtitles are timed by a machine or timed poorly. It would be nice if there was an option to only allow subtitle duration to be a maximum of x seconds. For example, 7 seconds
something like sub-end = sub-start + min(x, sub-end - sub-start) where x = 7
https://github.com/zenyd/mpv-scripts/issues/28
I made some changes to the script and it works for me: https://github.com/chapmanjacobd/computer/blob/main/.config/mpv/scripts/sub-skip.lua
but I'm not 100% confident that you will want to incorporate the get_selected_tracks code so I didn't make a PR but feel free to upstream any changes from my script