Log in

View Full Version : Generate subtitle timing from audio?


marsoupilami
9th January 2021, 13:39
Hi there!

I'm trying to write subtitles from scratch for a foreign language movie. As I know a very hard work is generating the "time framework" and synchronizing.
In my imagination it should be possible to analyze the audio e.g. using FFT for detecting spoken passages - maybe individual speakers. Exact start and end timing could be detected that way for creating an empty (time marks only) .srt file.

Any suggestions for a software doing this is welcome!

Thanks & kind regards!

Nikse555
9th January 2021, 13:54
Perhaps https://github.com/saurabhshri/CCAligner

You might also be able to find another subtitle for this movie with time codes that you can use.

In Subtitle Edit, it's possible generate time codes via volume, if there's not too much background noise (open video and generate waveform, right click in waveform and choose "Guess time codes"):
https://www.nikse.dk/se-guess-time-codes.png

marsoupilami
9th January 2021, 14:17
Many thanks for your fast response!

If I could find subs in any language for this specific movie it would be easy. For this purpose I've written the little helper tool SubPaster for copy/pasting text subs through an online translator.

In this case there are no subs available - neither on the original dvd nor somewhere on the web.
I'll try out your great SubEdit - I didn't know about this feature.

Thanks again and kind regards!