Re:Show HN: Automatically synchronize subtitles with video
by smacke on Monday February 25, 2019 @05:13PM
(#19249968)
Thanks for flagging -- this seems to be a common point of confusion; I'll work on updating the readme.
Let's say reference.srt is a set of English subtitles, and you have an out-of-alignment French subtitles file unsynchronized.srt. You could use the video directly as a reference in order to synchronize the French subtitles, but it will take a bit longer since we need to extract audio and perform voice detection over the whole video file. In this case, it will be faster to use your already-synchronized English subtitles file reference.srt.
Re:Show HN: Automatically synchronize subtitles with video
by Outpox on Monday February 25, 2019 @04:55PM
(#19249847)
I believe it's a typo and should read "Although it can usually work if all you have is the subtitles file [...]".
This means that you would use a reference file that would allow you to synchronize your subtitles.
Re:Show HN: Automatically synchronize subtitles with video
by jmkb on Monday February 25, 2019 @05:15PM
(#19249988)
I could imagine having a file with correctly-synced subs in the wrong language. Maybe that would be a good reference file.
(I think you're correct subbing "subtitles file" for "video file".)
subsync reference.srt -i unsynchronized.srt -o synchronized.srt"
I really don't understand what the reference.srt is supposed to be here.
Edit: If I have a "reference" which is synchronized why do I have to do anything at all? Why would I need to synchronize anything then?
Edit2: If the French titles are a translation of the English ones, how wouldn't copying the timestamps from one to another be enough? Or do you want to say that the program can match the subtitles which aren't based on the English ones and have different number of sentences etc? But how can it then know which part of translation belongs to what? What's short in one language isn't in another etc.