How to Fix Subtitles That Are Out of Sync

Compare the first spoken line with the last one. If the subtitles are off by the same amount at both ends, it's a constant offset: shift every line by that amount in the opposite direction. If the gap grows toward the end, it's a drift: rescale the timing from two reference lines with new = a × old + b. Then check the start, middle and end, and burn the captions into the video if you want them to stay fixed.

Quick answer

By Artem Shtanov. Updated . We rebuilt both problems on one test clip (1080×1920, 23.976 fps, 62 seconds) with ffmpeg 5.1.9 on 24 November 2026: a constant 2.5-second offset and a drift from an SRT timed for 25 fps. We then fixed each one and checked the first, middle and last line on screen.

Last tested: November 24, 2026, by the ReelsCut team. Test conditions are in the first section.

Constant offset versus progressive drift

Subtitles out of sync come in two kinds, and each needs its own fix. You can tell which one you have in a few minutes.

For the main steps you need your SRT, the matching video, a plain-text editor, a calculator and the local browser preview linked below. You'll correct and verify a separate SRT, not overwrite your video. An optional export step shows how to make a new MP4 with the corrected captions drawn into it.

For each line you check, you need two time values: when the SRT says the caption starts, and when the line is actually spoken.

  1. Open the SRT in a plain-text editor. Each caption (a "cue") has three parts: a number, a time line such as `00:00:03,700 --> 00:00:05,900`, and the text. The time before the arrow is the start. It reads hours:minutes:seconds,milliseconds, so `00:00:03,700` is 3.700 seconds and `00:01:00,900` is 60.900 seconds.
  2. Play the video, pause where the first word of that same line begins, and write down the time the player shows, in seconds. That's the spoken moment. If your player shows only whole seconds, your mark can be off by up to a second, and the fix inherits that error.
  3. Subtract: SRT start time minus the spoken moment. A positive number means the captions are late; a negative one means they're early.
  4. Do the same for the last line, and for one line in the middle as a control.

If the three numbers match, you have a constant offset. If they differ, and especially if they grow toward the end, you have a progressive drift. Mark the spoken moments as precisely as your player allows: a mistake in a mark carries into the fix (the two-reference-line section shows by how much).

We built both problems on one test clip and measured them. In the offset file, for example, the first cue starts at `00:00:03,700` and the line is spoken at 1.200 s, so the gap is 3.700 − 1.200 = +2.500 s. In the drift file, the last cue starts at `00:00:56,008` and the line is spoken at 58.400 s: 56.008 − 58.400 = −2.392 s.

The drift is easy to miss. At the first line it's 49 ms, which no one can see. By the last line, at the 58th second of a 62-second clip, it's 2.4 seconds, about 41 ms for every second of video. That's why subtitles that work in the beginning and then go out of sync fool people who only check the opening. Shifting everything to fix the first line doesn't help either: the middle is still off by 1.2 seconds and the end by 2.3. Subtitling.net makes the same point in its FAQ: if subtitles "start in sync but fall out of sync over time", one global shift won't fix them.

Test clip with the subtitle number matching the spoken line at the first, middle and last lineZoom image
Baseline: three frames at the 1st, 12th and 23rd line of our test clip. The yellow label shows the line being "spoken" and the white caption comes from the SRT. Rendered with ffmpeg 5.1.9 (libass), November 24, 2026.
Subtitles 2.5 seconds late: the previous line is still on screen at the start, middle and endZoom image
Constant offset: every cue moved +2.5 s. No caption at the first line, LINE 11 under spoken line 12, LINE 22 under spoken line 23. Same clip and tools, November 24, 2026.
Drifting subtitles: in sync at the first line, one line ahead in the middle and at the endZoom image
Simulated drift from a 25-to-23.976 fps slowdown. The gap is barely noticeable at line 1, but the captions are one line ahead at lines 12 and 22. The end frame uses line 22 because the caption for line 23 has already disappeared before that line starts. November 24, 2026.

How we tested. We made a 62-second, 1080 × 1920 test clip at 23.976 fps. Tones, not real dialogue, marked 23 lines. We read their starts with FFmpeg's `silencedetect` filter. The offset file shifted each cue 2.5 seconds later. For the drift file, we multiplied the original SRT times by `(24000/1001) ÷ 25` to simulate a speed mismatch; we did not shoot or export a separate 25 fps video. We rendered the resulting files over the same test clip and checked frames near the beginning, middle and end.

CaseFirst lineMiddle (12th line)Last lineWhat you see
Constant offset (+2.5 s)+2500 ms+2500 ms+2500 msThe previous line is still on screen; at the very start there is no caption yet
Drift (SRT timed for 25 fps, video at 23.976 fps)−49 ms−1221 ms−2392 msThe next line is already on screen
Drift "fixed" by shifting to the first line only0 ms−1172 ms−2343 msThe mistake of treating drift as an offset

Why subtitles go out of sync

If you're asking "why are my subtitles out of sync", the answer usually follows from the kind of problem you just found.

  • The SRT was made for a different version of the video → constant offset. You trimmed the start, added or removed an intro, or generated captions from a trimmed clip and then put them on the full one (or the reverse). Subtitling.net lists exactly these cases and notes that adding or removing a segment at the beginning "shifts every subsequent subtitle by exactly that duration."
  • The video plays at a different speed → progressive drift. In our test we simulated the same frames playing at 25 fps versus 23.976 fps. The subtitles ended up about 2.4 seconds early by the 58th second. A video exported at a different frame rate but with the same playback speed does not need this timing correction just because its FPS changed.
  • Variable frame rate or breaks in the audio and video tracks → the gap jumps around. Subtitling.net names these as reasons a single shift doesn't work. We didn't test this case.
  • Re-encoding added a small delay to the audio → constant offset. Subtitling.net says some encoding pipelines add "a small consistent delay." We didn't test this either.
  • Individual AI captions are mistimed → neither offset nor drift. A post on r/davinciresolve describes a subtitle that appears "as soon as the clip begins" even though the line comes later. If only some lines are wrong and the error isn't steady or growing, the problem is the timing of those lines, not the file as a whole.

Editing after you've made the SRT changes timing too. Cutting at the start moves every line. By the same logic, cutting pauses or a retake in the middle should only move the lines after the cut, which looks like a sudden jump rather than a steady offset; that's our reasoning, not something we measured. If you're still cutting pauses and filler words or choosing between retakes, finish the edit before you generate captions.

Check frame rate and timecodes

You don't need to know any frame rate to fix a drift: the two-reference-line method below works without it. This section explains why frame rate matters and how to check it if you're curious.

An SRT stores time in hours, minutes, seconds and milliseconds (`00:00:29,800`), not in frames. One r/VLC commenter put it as: "My subtitle files use real time… not frames." So the useful question isn't "what frame rate is my SRT" but "which version of the video was it timed against."

Frame rate matters here only if it changed the playback speed. In our simulated slowdown, the error grew steadily to about 2.4 seconds. If you're not sure whether playback speed changed, measure two lines instead of guessing from the files' frame rates.

To check your video's frame rate:

  • In VLC on desktop, an r/VLC user found it under Tools → Codec Information. We didn't check the menu on a Mac.
  • If you already use the command-line tool `ffprobe`, it reports the rate as `r_frame_rate` (ours read `24000/1001`, which is 23.976 fps).

When timing differs by a constant speed factor, the error grows with time. In the simulated example, fitting two rounded SRT times recovered a factor of about 1.04271, close to the reciprocal of the multiplier applied to those timestamps. This checks the calculation; the value is not an independent measurement of another video.

If you don't know the exact rates, guessing is slow. One r/VLC user changed the frame rate in Subtitle Edit (Synchronisation → Change Frame Rate) from 23.95 to 25, which "almost did the trick". At minute 90 the subtitles were still a few seconds off, so they tried 24.95 and then 24.97. We didn't test that pair of rates. On our file, two reference points gave the exact answer without knowing either rate.

Read the video time in a browser: Download the local timing preview, unzip it and open `subtitle-timing-preview.html` in Chrome or Edge. Under Video choose the original MP4 and under Subtitle file choose the original SRT. Play to the first word of a line and pause. The number under Video time (seconds) is your video position; use Back 0.04 s or Forward 0.04 s for smaller adjustments. Write down the start for the first, middle and last lines. The positions are your observations, not automatic speech measurements. Files stay in your tab.

Shift or rescale subtitle timing

This is how to fix an SRT file that's out of sync. The fix goes into the SRT itself, so it travels with the video. The main path needs only a plain-text editor and a calculator, nothing to install. It suits a short clip: our 62-second test file has 23 cues, so 46 times to retype. For longer files, see the optional tools at the end of this section.

On a Mac: Open the SRT copy in TextEdit. If needed, choose Format → Make Plain Text. In TextEdit → Settings → Open and Save, turn off Add “.txt” extension to plain text files before saving. Check that the filename ends in `.srt`, not `.srt.txt`. See Apple’s TextEdit format guide and Open and Save settings.

Use one of these formulas. Here, s1 and s2 are the start times in the SRT, and v1 and v2 are when those lines are spoken in the video. Use seconds for all four:

  • Constant offset: a = 1, b = −gap. The gap is the SRT start time minus the spoken moment. If the captions are late, the gap is positive and the correction moves them earlier.
  • Progressive drift: a = (v2 − v1) / (s2 − s1), b = v1 − a × s1. Pick two different captions far apart and check a third one in the middle after the correction.
  1. Make a copy of your SRT and name it, for example, `captions-fixed.srt`. Edit only the copy; the original is your way back.
  2. From the check in the first section, take two lines far apart, ideally the first and the last. Write down their SRT start times, s1 and s2, and their spoken moments, v1 and v2, all in seconds.
  3. Calculate a and b with the appropriate formula above.
  4. Open the copy in a plain-text editor. For every cue, convert the start and end times to seconds and use new time = a × old time + b. Round to three decimals and type the result back in the 00:00:00,000 format. Change only the times: leave the cue numbers, arrow, text and blank lines as they are.
  5. Save the file as plain text, keeping the `.srt` ending.
  6. Run the check in Verify the whole video: the new start times of the first, middle and last cue should equal the spoken moments you wrote down.
  7. In the local preview, choose `captions-fixed.srt` under Subtitle file without changing the video. Play the first, middle and last cues again. As each line starts, its words should match the caption. Your deliverable is the corrected SRT; the export section below is only for making a new video with the text in the picture.

The two worked examples below run these steps on our test files. With the same numbers in, you should get the same numbers out.

Shift every line by a fixed amount (constant offset)

The inputs: the first cue starts at s1 = 3.700 s, and the line is spoken at v1 = 1.200 s. The SRT times are read straight from the file; the spoken moments come from our audio measurement (see "How we tested"), where you would use your player marks. The gap is 3.700 − 1.200 = +2.500 s at the first, middle and last line, so the captions are 2.5 seconds late. That gives a = 1 and b = −2.500. (Our test script used the unrounded audio measurement, −2.4997 s; after rounding to milliseconds the result is the same.)

Before, in the offset file:

1
00:00:03,700 --> 00:00:05,900
LINE 1: Hi, quick tip today

12
00:00:32,300 --> 00:00:34,500
LINE 12: Pick two lines

23
00:01:00,900 --> 00:01:03,100
LINE 23: Thanks for watching

After subtracting 2.500 from every time:

1
00:00:01,200 --> 00:00:03,400
LINE 1: Hi, quick tip today

12
00:00:29,800 --> 00:00:32,000
LINE 12: Pick two lines

23
00:00:58,400 --> 00:01:00,600
LINE 23: Thanks for watching

The last cue shows the minute carry: 60.900 − 2.500 = 58.400 s, which is written `00:00:58,400`. Across all 23 lines, the shifted file matched the reference to 0 ms.

On the sign: late captions need a negative shift (earlier), and early captions need a positive shift (later). We checked this on the file: adding time moves a line later and subtracting moves it earlier.

After shifting all subtitles by −2.5 seconds, the subtitle matches the spoken line at the start, middle and endZoom image
Offset fixed: every cue shifted by −2.5 s. LINE 1, 12 and 23 sit under the matching spoken line. ffmpeg 5.1.9, November 24, 2026.

Rescale with two reference lines (progressive drift)

This is a linear correction: it stretches or squeezes the whole timeline and shifts it at the same time. A plain shift can't do that, because it adds the same number to every line.

The inputs from our drift file: the first cue starts at s1 = 1.151 s and the last at s2 = 56.008 s; the lines are spoken at v1 = 1.200 s and v2 = 58.400 s.

  • a = (58.400 − 1.200) / (56.008 − 1.151) = 57.200 / 54.857 = 1.04271
  • b = 1.200 − 1.04271 × 1.151 ≈ −0.0002 s

b comes out at under a millisecond (with our unrounded measurements it's +0.00013 s), because this file only drifted. So we use b = 0, and every time is simply multiplied by 1.04271. For the middle cue: 28.579 × 1.04271 = 29.7996, which rounds to 29.800 and is written `00:00:29,800`.

Before, in the drift file:

1
00:00:01,151 --> 00:00:03,261
LINE 1: Hi, quick tip today

12
00:00:28,579 --> 00:00:30,689
LINE 12: Pick two lines

23
00:00:56,008 --> 00:00:58,118
LINE 23: Thanks for watching

After `new = 1.04271 × old`:

1
00:00:01,200 --> 00:00:03,400
LINE 1: Hi, quick tip today

12
00:00:29,800 --> 00:00:32,000
LINE 12: Pick two lines

23
00:00:58,400 --> 00:01:00,600
LINE 23: Thanks for watching

The middle line wasn't used to compute a and b, and it landed exactly on time. Across all 23 lines, the largest error was 0 ms after rounding to milliseconds.

The same formula also handles a constant offset that comes together with a drift: b then carries the offset. That follows from the math; our test file had a drift only. You don't need to know any frame rate.

How careful do you have to be when marking the reference moments? We recalculated with the last reference marked late. One frame late (42 ms) left 21 ms of error in the middle and 42 ms at the end; 100 ms late left 50 ms and 100 ms. The error is zero at the correct reference line and grows in a straight line to the full amount at the line you marked late. Between the two reference lines, it never gets bigger than your marking mistake.

Drift fixed with a two-point correction: first, middle and end lines in syncZoom image
Drift fixed with the two-point formula: LINE 1, 12 and 22 under the matching spoken line. ffmpeg 5.1.9, November 24, 2026.

Use the frame-rate ratio for a confirmed speed change

Use a frame-rate ratio only if the same sequence of frames was played at a different speed. It does not apply to an export that adds, drops or interpolates frames to keep the original timing. If you only know that the two files have different FPS, use two reference lines instead.

For a confirmed slowdown from 25 fps to 24000/1001 fps (roughly 23.976), multiply each time by the original rate divided by the new rate: 25 / (24000/1001) = 1.0427083. With no separate offset, that's a = 1.0427083 and b = 0. On our simulated file this matched the reference to within 1 ms.

MethodWhat you need to knowAlso removes a constant offsetError on our file
Shift by a constantOne gapYesDoesn't fix drift: −1172 ms middle, −2343 ms end
Two reference linesTwo moments in the videoYes0 ms
Frame-rate ratioSame frame sequence, confirmed speed change and both frame ratesNo0–1 ms

Optional: tools for longer files

These routes save typing on a long file. Apart from `silencedetect`, which we used in our test, we didn't try them, so treat the steps as what their makers or other users describe.

  • A browser shifter, for a constant offset only. Subtitling.net describes an SRT Editor that runs in the browser with no account and no upload. Per its guide, you load the video and the SRT, open the Shift timing panel from the timer icon in the toolbar, enter the offset in seconds (negative if the captions are late, for example `-2.5`), check a few cues and click Download SRT. Its sign rule matches ours ("subtitles appear 3 seconds after the audio, type -3"). SubtitleTools has a similar online shifter that takes the amount in milliseconds: a negative amount makes lines "appear earlier", a positive one "later". Shifters add one number to every line, so they can't fix a drift.
  • A player, to find the offset. SubtitleTools says VLC's G and H keys change the subtitle delay in 50 ms steps; Leawo describes a menu path, Tools → Track Synchronization → Subtitle track synchronization, where you type the value in milliseconds. Shortcuts on a Mac may differ. A player setting only lives in that player, so put the number you found into the file.
  • Precise spoken moments from the audio, if you have ffmpeg. This is how we got v1 and v2. Run `ffmpeg -hide_banner -i video.mp4 -af silencedetect=noise=-40dB:d=0.2 -f null -` in a terminal opened in the video's folder. Each `silence_end:` value in the output is a moment where sound starts after at least 0.2 s of quiet. On our tones, the values for the first and last line were within 1 ms of where we had placed those lines. Real speech has breaths and background noise, so match the values to your lines by ear and expect to adjust the `-40dB` threshold.
  • A short Python script, if you already use a terminal. It applies `new = a × old + b` to every time in the file. It isn't the script from our test: we wrote this shorter version for the guide and haven't run it ourselves, so keep your original SRT and run the check in the next section on the result.

To use the script:

  1. Put your subtitle file in a folder and name it `captions.srt`.
  2. Save the code below in the same folder as `fix_srt.py`.
  3. Set `a` and `b` from step 3 of the main path. For a plain shift, use `a = 1` and `b = -2.5` (or whatever your offset is).
  4. Open a terminal in that folder and run `python3 fix_srt.py`. It needs Python 3 installed; `python3 --version` tells you if it is.
  5. The script writes `captions-fixed.srt` and leaves `captions.srt` untouched.
import re

a, b = 1.04271, 0.0  # a = scale, b = shift in seconds

def fix(m):
    h, mi, s, ms = map(int, m.groups())
    t = a * (h * 3600 + mi * 60 + s + ms / 1000) + b
    if t < 0:
        print("Warning: a time fell before 0:00 and was set to 0:00")
        t = 0.0
    ms = round(t * 1000)
    h, ms = divmod(ms, 3_600_000)
    mi, ms = divmod(ms, 60_000)
    s, ms = divmod(ms, 1000)
    return f"{h:02}:{mi:02}:{s:02},{ms:03}"

srt = open("captions.srt", encoding="utf-8").read()
fixed = re.sub(r"(\d{2}):(\d{2}):(\d{2}),(\d{3})", fix, srt)
open("captions-fixed.srt", "w", encoding="utf-8").write(fixed)
print("Saved captions-fixed.srt")

A time can't go below 0:00. If you shift early lines further back than that, the script sets them to 0:00 and prints a warning; check those lines by eye.

Software for correcting subtitle timing. Subtitle Edit has a Change Frame Rate command (per the r/VLC thread) and a Visual Sync feature (per YouTube tutorial titles). Aegisub and online shifters also show up in search results. We didn't open these programs, so there are no button-by-button steps for them here.

Verify the whole video

Check three places: the first line, one in the middle and the last line. The opening alone isn't enough, because a drift was 49 ms at the start of our clip and 2.4 seconds at the end.

The main check needs nothing new: the corrected copy, `captions-fixed.srt`, the spoken moments you wrote down in the first section, and the same plain-text editor.

  1. Open `captions-fixed.srt` and find three cues: the first, the middle line you used as a control, and the last.
  2. Convert the new start time of each to seconds, the same way as in the first section (`00:00:29,800` is 29.800 s).
  3. Subtract: new start time minus the spoken moment for that line.
  4. Compare with the expected result. Each difference should be 0, or no bigger than how far off your marks could be. With the last mark off by one frame (42 ms), our leftover error was up to 42 ms. The middle line is the real test, because the correction wasn't computed from it.
  5. If a difference is bigger and the same at all three lines, apply one more shift with a = 1 and b = −difference. If it grows toward the end, mark the two reference lines again and redo the calculation.

The expected result for our worked examples. The offset fix and the drift fix both end with these start times:

To make sure you have the method right before you touch your own file, do a practice run on our numbers. Paste the "Before" block of the drift example into an empty plain-text file. Multiply each of its six times by 1.04271, round to three decimals and type them back in. Then compare with the "After" block: all six times should match it to the millisecond. For example, 58.118 × 1.04271 = 60.6002, written `00:01:00,600`.

Once the file check passes, the SRT itself is fixed.

LineSpoken momentStart time after the fixDifference
1 (first)1.200 s`00:00:01,200`0 ms
12 (middle)29.800 s`00:00:29,800`0 ms
23 (last)58.400 s`00:00:58,400`0 ms

Preview the corrected captions over the picture

  1. Go back to the local preview with the same video loaded.
  2. Under Subtitle file, choose `captions-fixed.srt` in place of the original SRT. Check that the status reads Loaded with a cue count.
  3. Play through the same first, middle and last lines and listen for the words as the captions appear. The finished SRT is separate from the video; the preview doesn't burn in subtitles or upload a new video.
  4. If all three still have the same gap, apply the remaining offset. If they drift apart, check the two spoken reference points again and recalculate. Keep the original video and SRT until you are happy with the result.

Optional: burn the captions into the picture

Use this route if you want a new MP4 with the captions visible without a separate SRT. On a Mac, open Terminal from Spotlight. If you already have Homebrew, install the build with subtitle support by following the FFmpeg Full formula page. If you don't have Homebrew, use its official setup guide before that. The main SRT fix and browser check do not need FFmpeg.

  1. Put your video (named `video.mp4` here) and `captions-fixed.srt` in the same folder.
  2. Open that folder in Terminal (`cd ` followed by the folder path, then Enter). Run the command below. With the Homebrew `ffmpeg-full` build, replace the initial `ffmpeg` in the command with `"$(brew --prefix ffmpeg-full)/bin/ffmpeg"` if `ffmpeg` is not on your PATH.
  3. When ffmpeg finishes, a new file, `video-captioned.mp4`, is in the folder. Your original video isn't changed.
  4. To check the export, reopen the local preview and choose only `video-captioned.mp4` under Video. Leave Subtitle file empty. Watch the first, middle and last captions on the picture. This is the MP4 to take to your upload step if you need the captions embedded.
ffmpeg -i video.mp4 -vf "subtitles=captions-fixed.srt" -c:v libx264 -crf 20 -c:a copy video-captioned.mp4

This is the core of what we ran; we also set the font and outline with `force_style` and added `-preset veryfast`. Our export kept the same resolution, frame rate and length as the source (1080×1920, 23.976 fps, 62.02 s). Frames pulled from it without any SRT showed LINE 1, 12 and 23 under the right spoken lines. To publish the result as a Reel, see adding captions on Instagram.

Frames from the exported video with burned-in subtitles, in sync at the first, middle and last lineZoom image
The exported file with burned-in captions, no SRT loaded: in sync at lines 1, 12 and 23. ffmpeg 5.1.9, November 24, 2026.

Next time: add captions after the final cut

Subtitling.net's FAQ names an SRT made for a different version of the video as the most common cause of subtitles being out of sync. For a short talking-head video, you can avoid that by adding captions only once the edit is final. ReelsCut generates captions from the video you upload. It's a web app for vertical 9:16 talking-head video in MP4 or MOV: you upload the raw recording, and it picks the best take, cuts the stumbles and pauses, and adds captions and a title to that same video. There are 25 caption styles, 23 fonts and 26 colors, and speech works in 90+ languages. You ask for changes in plain words. More on the full workflow: how to shoot and edit a talking-head video.

Frequently asked questions

My captions went out of sync after I edited the text in CapCut. Why?

A post on r/aitubers describes this: the timestamps stayed the same and only the text was fixed, yet after re-importing the SRT into CapCut the captions slipped after 20–30 seconds and got worse from there. We haven't tested CapCut, so we can't name the cause. Run the first-and-last-line check from the top of this guide on what you see. If the gap is the same at both ends, shift; if it grows, use two reference lines.

What if the delay changes in the middle of the video?

For example, 5 seconds off in the first half and 10 in the second. SubtitleTools says a single shift won't work in that case and offers a separate partial shifter. Find the line where the gap jumps, then fix each part on its own: leave the lines before the jump alone (or fix them with their own shift) and shift only the lines after it. We didn't test this case.

Can drop-frame vs non-drop-frame timecode make subtitles out of sync?

An SRT stores milliseconds, not frame numbers, so the time in the file doesn't depend on the timecode mode. We didn't test subtitle formats that count frames, so we can't say how drop-frame timecode behaves there.

Why do AI captions appear before I start talking, and how do I fix that?

If only some lines start too early, for example at the start of a clip before you speak, the generator mistimed those lines. A shift or a rescale won't help. Move those lines by hand in the SRT, or generate captions again from the final version of the video. We didn't test any captioning tool's line timing.