Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sub-skip: subtitle timeout #15

Open
chapmanjacobd opened this issue Sep 15, 2022 · 1 comment
Open

sub-skip: subtitle timeout #15

chapmanjacobd opened this issue Sep 15, 2022 · 1 comment

Comments

@chapmanjacobd
Copy link

chapmanjacobd commented Sep 15, 2022

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

zenyd/mpv-scripts#28

@chapmanjacobd
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant