A mpv lua script to generate subtitles at runtime with whisper.cpp main #843
GhostNaN
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Hi @GhostNaN , the readme suggests that variables TMP_WAV_PATH, TMP_SUB_PATH, TMP_STREAM_PATH can be left as they are. Am I right to say that for Windows environment they would definitely need to be changed? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Do you like watching videos with mpv, but don't like waiting around while whisper.cpp generates subtitles for you?
Well, I made WhisperSubs to fix this very niche issue.
Check it out here: https://github.com/GhostNaN/whisper-subs
I originally planned on making a whole C++ program to make this process faster.
But as it turns out, you can speed up the processing time by making the wav file smaller and processing in chunks instead.
So, I just used the provided main example that comes with whisper.cpp and created this instead.
My PC is good enough to run the medium model fast enough to keep up, but your PC might vary.
Also please read the README on GitHub as I also explain the other static variables you will want to change.
In any case, I hope this weird lua script is at least interesting to some of you.
Beta Was this translation helpful? Give feedback.
All reactions