mpv-sub-scripts icon indicating copy to clipboard operation
mpv-sub-scripts copied to clipboard

sub-skip: subtitle timeout

Open chapmanjacobd opened this issue 3 years ago • 1 comments

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

chapmanjacobd avatar Sep 15 '22 21:09 chapmanjacobd

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

chapmanjacobd avatar Nov 21 '22 07:11 chapmanjacobd