Coder Social home page Coder Social logo

ben-kerman / mpv-sub-scripts Goto Github PK

View Code? Open in Web Editor NEW
67.0 2.0 9.0 36 KB

Two mpv scripts for automatically pausing after each subtitle line and skipping intervals between subtitles.

Lua 100.00%
mpv-script language-learning condensed-audio subtitles

mpv-sub-scripts's People

Contributors

artjomsr avatar ben-kerman avatar peldas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mpv-sub-scripts's Issues

Config files problem !

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". ?

Feature request: resume after X seconds in auto-pause

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.

script suddenly stopped working

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

[sub-pause] Rebinding key only works when sent to all clients (script can't be targeted)

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.

Sub-Skip Keybindings

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 )

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

zenyd/mpv-scripts#28

Possible to get it working on android?

I already tried pointing the script in my config file as like this.

Android mpv-android:

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?

[sub-skip] skip music/ignore music lines

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 ๐Ÿ‘

Doesn't Stop Playback

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.

Replay Last Sub

A heavenly feature would be replay last, any chance that'd be added? I tried doing it myself quickly but wouldn't function

[sub-pause] Make it work for .idx/.sub subtitles

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.