Replies: 1 comment 4 replies
-
|
Did you tried |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My workflow has me run
faster-whisper-xxl.exe $media_dir --language en --model large-v2 --batch_recursive --skip -ppand this works great to generate subs for any new media files while ignoring the previous-generated subtitle files.However, my media player platform infers the language of the subtitle files from the file extension and files that are just
<media_file>.srtare labeled as "Unknown" language. This would be fine, except it will only default to enable subtitles on playback if the language code preset matches my default language, so having an option for Whisper to output the files as<media_file>.<lang>.srt(eg.big_buck_bunny.en.srt) would be super helpful.I have tried just scripting a rename of the srt files after running the subtitle generation, which works fine for playback, but breaks the
--skipoption in step 1.Alternatively, instead of changing the output file name pattern, it would also be acceptable to have the
--skipbehavior consider files with extension.<lang>.srtto be matching, so it would still skip reprocessing those media files.I looked through the source code of
faster-whisperbriefly to see if I could tweak either of these places for my own custom build, but didn't see anything obvious where this could be done.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions