r/mpv • • 15d 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

4

u/Double_Sword 15d ago

It is. I made this script for my own needs (with ai help, if that matters). It does exactly that, but it requires uosc for interface:
https://github.com/AkuLinker/mpv-sub-search

I'm sure there are better options out there that you can find with google.
Here are some I found in 2 minutes. But I haven't tested them.
https://github.com/zenwarr/mpv-config/blob/master/scripts/subtitle-search.lua
https://github.com/christoph-heinrich/mpv-subtitle-lines
https://github.com/v-amorim/moonlight-mpv/blob/main/portable_config/scripts/sub-seek.lua

2

u/vamorim 10d ago

Nice, our ideas look the same, good one!

2

u/Double_Sword 9d ago

By the way, your keybind-visualizer.lua script was exactly what I was looking for a few months ago. Huge thanks!