Resync subtitles

1. Prerequesites

  • The video file
  • Subtitles (in doubt get them from Addic7ed.com)
  • aegisub (available from your favorite linux distribution)
  • my handy little script timediff.pl (WordPress thinks that perl-Scripts are dangerous, so you’ll get a text file. Copy and paste the content and make it executable)

2. Getting ready

  1. Load the subtitles: File -> Open subtitles… Select the .srt-File
  2. Load the video: Viedo -> Open video… Select the mkv-File
  3. Load audio: Audio -> Open audio from video
  4. Start timediff.pl in a Konsole-Window

Now you’re all set.

3. How to do it

  • Select the first subtitle line on the lower bar and copy the start time into timediff.pl
  • Adjust the red bar in the top right widget to match the start:aegisub
  • Copy the new start time into timediff.pl
  • Select the next subtitle line and then Timing -> Shift Times…
  • Insert the result from timediff.pl into the Time: Field and select the direction (Forward or Backward). Then select “Selection onward”
  • Press OK
  • Check the result.
  • Search for ad breaks and repeat