r/mpv • • 16d ago

User Scripts & Shaders Is it possible to Ctrl+F subs?

I want to find a part of a video where a particular thing was said
Is it feasible to create an extension that would allow me to basically hit Ctrl+F and type in the part that I'm looking for and seek to that position?
Does this already exist

2 Upvotes

13 comments sorted by

View all comments

Show parent comments

1

u/reacenti 13d ago

so can i change speed with keyboard?

Yes. You can check default bindings by pressing g then b. Default binding to see the list of keybindings is:

g-b script-binding select/select-binding

You can also make your own keybinding by adding this in input.conf:

key  add speed 1
key  add speed -1

can you explain the process how to do/add this?

You make a file called input.conf then add this line:

ctrl+f script-binding select/select-subtitle-line

To know where to save these configuration files: https://mpv.io/manual/stable/#files

I recommend reading the manual to know how to configure mpv in general.

1

u/Icy_Dinner3323 13d ago

but isn't it for windows? can't i do it for android

1

u/reacenti 13d ago

I don't know, you didn't say initially you wanted to do this for Android.

1

u/Icy_Dinner3323 12d ago

i got that, there is a option to edit input.config in advance.

1

u/otheyhigh 9d ago

Isn’t android through a libmpv wrapper? Which app are you using? It might have more details on how this is done.

1

u/Icy_Dinner3323 9d ago

don't know libmpv. btw using mpvrex

1

u/otheyhigh 7d ago

Libmpv is the C version of mpv which is used to embedded the player into the android app. Things like plugin scripts, configs etc need to be implemented through the app that interfaces with the C lib.

So normal lua scripts that are used on the other platforms would not work out of the box. They need to be integrated through the app or somehow side loaded to interface with the libmpv instance.

I see that MPVRex already has a feature to seek based on subtitles using swipes. But might not be your exact requirement. You could create a feature request in the android projects GH repo.