ben-kerman / mpv-sub-scripts Goto Github PK
View Code? Open in Web Editor NEWTwo mpv scripts for automatically pausing after each subtitle line and skipping intervals between subtitles.
Two mpv scripts for automatically pausing after each subtitle line and skipping intervals between subtitles.
I was trying to auto activate sub-skip, when I create a folder (script-opts) and conf file the script didn't work utterly. Could you please check it.
Also, you write "#default_state=no/yes",,, however, in the lua file "false/true". ?
Hi, I really like the idea to auto pause my videos so I have the time to read the translation. Nonetheless, I think that it would be nice if I could set that after X amount of time the video could continue automatically.
it fast-forwards to the next subtitle when I press ctrl+n, but when I press ctrl+alt+n nothing happens
it was working back around a few months ago but now when i tried to use it (pressing n) but nothing happens. i put all my script in
%AppData%\Roaming\mpv\scripts\sub_pause\sub-pause.lua
im assuming that n is the default key binding
other script are working fine
I'm using windows 10 mpv 0.35.1. i know that theres a new version but it was working before so its kinda weird its not working now.
any way i can debug where the issue lies?
thanks
Trying to rebind the sub-pause-toggle-end
in input.conf
only works when sent to all clients.
These work:
N script-binding sub-pause-toggle-end
N script-message sub-pause-toggle-end
These do not:
N script-binding sub-pause/sub-pause-toggle-end
N script-message-to sub-pause sub-pause-toggle-end
While I think it's quite unlikely that any other script would have a function specifically named sub-pause-toggle-end
, it would probably still be good practice to implement support for this in order to prevent name conflicts.
Would you be able to add keybindings so that you can change the lead-in/out times?
(Having to not ever open the the .lua to alter how you want it to work is just a nice convenience )
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
Hi there, great scripts!
I'm just wondering what is the difference between your sub-skip script and the speed transition script?
I've been using speed transition for over 2 months and I came across your script and it seems like the functionality is nearly identical.
Just wondering if there are any differences.
https://github.com/zenyd/mpv-scripts/blob/master/speed-transition.lua
So does https://github.com/zenyd/mpv-scripts/blob/master/speed-transition.lua cause the same issues.
edit: it was a conflict with blackout.lua sorry
I already tried pointing the script in my config file as like this.
script=/storage/emulated/0//sub-skip.lua
Doesn't work. I changed the load config to true. Didn't work. How do I get it to work?
It'd be nice if you were able to have the option to video pause at the start of the subtitles instead of just the end.
(and maybe even, have it pause at the start and end (though I'm not sure if anyone would use that))
Anyway great work :D
Similar to the option from speed-transition from zenyd, I just thought I'd suggest the option to ignore specific lines like โชโช so the music lines will also be skipped. I prefer sub-skip over speed-transition since sub-skip also fasts forward the audio while (as far as I could tell) speed-transition mutes when skipping, but anyways just a suggestion ๐
Hello,
It looks like the script doesn't work with mpv 0.32.0. Occasionally it stops the playback, but in most cases there's no effect, despite availability of subtitles and activation of pausing functionality using "n" shortcut.
OS: Debian 11.
When I need to offset the subs inside of mpv to fix mistimed subs, it seems to autopause at the original time rather than the re-aligned time. Is there any way to fix this?
A heavenly feature would be replay last, any chance that'd be added? I tried doing it myself quickly but wouldn't function
It would be nice if the sub-skip
lua script had an option similar to the --subs-with-matching-audio
mpv option but only for toggling subtitle visibility.
in other words: sub-visibility=if-not-matching-audio
Since .idx/.sub subtitles don't have the "sub-text" property, the current implementation doesn't work for them.
How about observing "sub-start" or "sub-end" instead of "sub-text"?
I tried a quick hack:
- mp.observe_property("sub-text", "string", handle_sub_text_change)
+ mp.observe_property("sub-start", "string", handle_sub_text_change)
, and it did the job for me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.