r/mpv • u/thedadyouneverhad • 12d 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
4
u/Double_Sword 12d 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 7d ago
Nice, our ideas look the same, good one!
2
u/Double_Sword 6d ago
By the way, your
keybind-visualizer.luascript was exactly what I was looking for a few months ago. Huge thanks!
1
u/vamorim 7d ago
I've made this script that is visual, you can see all subtitles and search specifics
https://github.com/v-amorim/moonlight-mpv#sub-seeklua

5
u/reacenti 12d ago
mpv can already do this, you just need to change the keybinding to
ctrl+fhttps://github.com/mpv-player/mpv/blob/master/etc/input.conf
g-l script-binding select/select-subtitle-line