smacke / ffsubsync

Automagically synchronize subtitles with video.
MIT License
6.74k stars 278 forks source link

--apply-offset-seconds not applying set argument of 107 seconds #181

Open spirited1086 opened 1 year ago

spirited1086 commented 1 year ago

Merli1-2.avi.2023-08-27-20-23-48.tar.gz --apply-offset-seconds does not seem to function as expected. E.g., I set it to 107, i.e., 1 minute and 47 seconds, and the subtitles begin syncing to 1 minute and 37 seconds.

The video file begins with a review of the last episode, while the subtitle file ignores the dialogue in the review. I noted that the actual dialogue which corresponds to the subtitle file begins at 1 minute and 47 seconds, and therefore thought the --apply-offset-seconds would begin syncing from this point on, but it does not seem to function this way.

spirited1086 commented 1 year ago

Also, this can be fixed easily by using another program to manually offset the subtitles by the correct amount and then running ffsubsync while omitting parameter --apply-offset-seconds. In this case all I did was use an external program to offset the subtitles by +105 seconds instead of +107 (the original subtitle file begins at the ~2 second mark) then run the standard ffsubsync file.avi -i subtitle.srt -o subtitle.s.srt.