m1guelpf / auto-subtitle

Automatically generate and overlay subtitles for any video.
MIT License
1.49k stars 236 forks source link

Generate SRT without overlaying video? #46

Open tonyxiao opened 1 year ago

tonyxiao commented 1 year ago

I just want the SRT file. Is that possible?

arebokert commented 1 year ago

Yes, use the --srt_only flag.

Also a side note, auto-subtitle passes all supplied parameters to whisper so you can use whisper specific flags as well if you want to. Scratch that, the code passes all command line params to whisper but the argparser won't allow you to add unrecognized parameters. I personally modified this locally to accept any parameters. Either way, this is not needed for the --srt_only flag which is supported by auto-subtitle.

mrhhats commented 9 months ago

Hey, trying this as well. If i run --srt_only it says "expected one argument" - could anyone give me an example full command?

tomma365 commented 8 months ago

Hey, trying this as well. If i run --srt_only it says "expected one argument" - could anyone give me an example full command?

Its a bollean, so just typing "true" at the end will work:

--srt_only true