How to Fix AI Subtitles Lagging After Editing

Vladimir Lomtev•
How to Fix AI Subtitles Lagging After Editing

If AI subtitles matched the original webinar, but after editing they started lagging, compare the same lines before and after the nearest cut. The same delay across the entire recording indicates a global offset. A jump in delay after a cut indicates a removed or added segment. For each remaining segment, you then need its own shift, and the lines at the boundaries need to be listened to separately.

This breakdown is suitable for learning and marketing teams that have the source video, a proofread SRT, and the final edit. The example is for a video that was only trimmed, while preserving the order of segments and playback speed.

How to tell a shift from an edit-point error

In SRT, each block has a start and end display time. For example, exporting SRT in Whisper takes these values from the recognition output. If the file was created before editing, its numbers refer to the timeline of the original recording. Moving an SRT to a new export does not change those numbers by itself. SubRip format, Whisper export code.

Take noticeable phrase starts from both sides of each cut and one line closer to the end. Find the same phrases in the source and the final export. For each one, calculate the difference “final time minus source time”. Source SRT timestamps can be off a little on their own, so for diagnosis compare the audible speech in the two videos.

What the lines show Possible cause What to do
All differences are roughly the same The time scale start changed. For example, the intro was removed Shift the remaining blocks by the same amount. Delete the subtitles for the intro and listen to anything that crosses the boundary
The difference stays within the segment, then changes suddenly after the cut A middle section was cut out Take the boundaries of the preserved segments from the edit and recalculate the time for each one
The difference changes gradually within a continuous segment Playback speed may have changed Check the clip speed. If the drift is gradual, match two distant anchor lines and check the ones in between
A different line is audible, or part of the words disappeared An SRT from a different version is attached, or part of the phrase was cut out Verify the original "video + SRT" pair. Rewrite the affected blocks based on the final audio

For a constant shift, Subtitle Edit documentation lists the option Synchronization → Adjust all times, and for increasing drift — Visual sync or Point sync. If the cut is known, work from its boundary. If you align the whole file by the start and end, the intermediate lines can get incorrect offsets. Subtitle Edit FAQ.

How to recalculate time after two cuts

Suppose the first 12 seconds and the pause between 00:40 and 00:50 were removed from the webinar. The final version ends at the original mark 01:15. Two segments remain on the edit timeline.

Preserved segment in the source Where it starts in the final version Subtitle shift
00:12–00:40 00:00 −12 s
00:50–01:15 00:28 −22 s

The first segment is 28 seconds long, so the second part starts in the final version at 00:28. For a mark inside it, the new timecode equals the segment start in the final version plus the time from the start of that same segment in the source. Recalculate both the start and end of each block.

Block 00:00:54,000 → 00:00:56,300 falls entirely within the second segment and becomes 00:00:32,000 → 00:00:34,300. If you subtract 12 seconds from all timestamps, this line will appear at 00:42 and will still be 10 seconds late.

Take the cut points from the timeline or the list of edit intervals. Record them on a single source timeline. If the editor shows frames, convert them to milliseconds using its timeline. Rounding to whole seconds is only appropriate for the example.

What to do with a subtitle at the boundary

Block 00:39–00:51 crosses the removed segment 00:40–00:50. The numbers alone do not tell you which words remained in the final version. Open the cut at 00:28, listen to the speech on both sides, and split or edit the block again. If the speech was cut out completely, delete its subtitle.

The function below takes the start and end of one block and a list of preserved pairs [start, end) in integer milliseconds from the source. The pairs must be in time order, and touching segments should be merged in advance. Output keep gives new timing, drop means there is no overlap with the saved video, review marks partial overlap. The function works with already read numbers and does not write SRT.

def remap_cue(start, end, retained):
    """Return (status, new_start, new_end); all times are integer ms."""
    if type(start) is not int or type(end) is not int or not 0 <= start < end:
        raise ValueError("Invalid cue interval")
    if not retained:
        raise ValueError("No retained intervals")

    total = 0
    previous_end = -1
    found_overlap = False
    mapped = None
    for left, right in retained:
        if (type(left) is not int or type(right) is not int
                or not 0 <= left < right or left <= previous_end):
            raise ValueError("Use sorted, disjoint spans. Merge adjacent spans.")

        if left <= start and end <= right:
            mapped = (total + start - left, total + end - left)
        if max(left, start) < min(right, end):
            found_overlap = True

        total += right - left
        previous_end = right

    if mapped is not None:
        return ("keep", *mapped)
    return ("review" if found_overlap else "drop", None, None)

On Python 3.14.3, this listing was tested in one local run against ten synthetic inputs. These included blocks within each segment, a phrase cut out entirely, overlap at a splice, an exact boundary match, and invalid intervals. For the example input shown here, 54000, 56300, [(12000, 40000), (50000, 75000)] returned ("keep", 32000, 34300). The check covered number shifting. Video playback, Subtitle Edit export, and speech recognition were not included.

How to make sure the subtitles still line up

Attach the new SRT to the final export in the player your audience will use to watch the recording. First open the beginning and end, then play a few seconds on both sides of each splice. Check that the retained line appears next to its phrase, and that the text of the removed line is gone. Make sure the corrected block can be read in time and does not cover the next line.

If the middle still lags even when the start and end match, compare the problem segment with the list of editing spans. If there was a reorder, insertion, overlap transition, or speed change, the timing recalculation model from the example does not apply. For a more complex version, you can re-run speech recognition on the final audio and compare the new text with the proofread SRT, paying attention to names, numbers, and terminology.

When preparing multiple language tracks, first sync the original one, and then translate the SRT while preserving timecodes. If you decide to re-recognize the final audio, a comparison of local transcription models will be useful.

Automating subtitle production

Vladimir Lomtev's AI studio helps break down the video preparation process, connect speech recognition with subtitle production, and set up routing of questionable lines for proofreading. For an initial review, take one webinar, its final export, the proofread SRT, and the list of edit points. Record who checks lines at splices before the video is uploaded.

Discuss the project

Conclusion

For videos with cuts, match each retained segment to its place in the final version. Move both timestamps for a block inside a segment. Remove blocks that were cut entirely, and check overlaps at splices against the audio in the final export.

Official documentation checked on November 23, 2026.

Request an audit

Share your contact details and we will follow up.

← All articles

Comments (0)

Loading comments…

Leave a comment
No registration required

Book a strategy call
for agentic operations

Tell us which workflow you want to improve. We will map feasibility, risks, and the fastest MVP path.

By submitting, you agree to our privacy policy

Contacts

Global Operations

Serving U.S. clients remotely
with private cloud and on-prem options

Strategy calls by request

We respond after reviewing your workflow context.

info@agentsunrise.pro

For partnership inquiries

Have a proposal?

Write to us in messengers

© 2026 AgentSunrise