What happens to captions when you cut a shorter clip?

A video can start on the right frame and still lose the caption that should appear at its new start.

8 cuts from one captioned video, tested with FFmpeg 8.1.2

Abstract

We made 8 cuts from a synthetic captioned video with FFmpeg 8.1.2. Every output matched the intended video frame sequence and timestamps. Placing -ss before -i gave the expected captions in 4 of 8 cases. Placing it after -i matched 2 of 8. Both commands dropped the cue in all 3 cases that started inside one. Explicitly clipping and retiming the captions matched all 8 cases. Check the first and last captions in the exact clip you plan to publish. [1][2]

You cut a short excerpt from a longer video. Its first frame looks right. The opening cue may still be absent from the exported subtitle track. The original caption may have started before the new cut and continued into it.

A caption cue is a piece of text with a start and end time. For an excerpt, keep the portion that overlaps the chosen video. Give those surviving cues times relative to the new start. That is the editing intent tested here.

Caption cues can cross a cut

Two dashed lines mark a selected section of a filmstrip. A caption bar crosses each line.
The illustration shows how a cue can extend past the part of the video you want to keep.

The picture and captions can land on different clocks

Both FFmpeg forms re-encoded the picture and subtitle tracks from one Matroska file. The only command change was where -ss appeared. The before-input form seeks in the source. The after-input form decodes and discards input up to the requested time. In our runs, both produced the intended frames. The file checks treated cue times separately. [1][2]

A clip starting inside a cue can need text at its first frame, even though that cue started earlier in the source. Both FFmpeg forms dropped the active cue in the 3 cases that began inside one. A separate cut that ended inside a cue retained its original end beyond the new picture. [1]

Count exact cases only when every expected cue appears with both times correct. The table includes a full-length control and a cut through a gap. The counts describe these selected cases.

Cases in which every cue matched

Exact match means every expected cue kept its text, start and end times.

Exact cases by export method
Export methodExact cases
FFmpeg -ss before -i4
FFmpeg -ss after -i2
Explicit cue clipping and retiming8
Each method was tested on 8 cuts, including a full-length control and a gap.

One cut shows both problems

We cut from 3.2 to 10.0 seconds, leaving 6.8 seconds of video. The opening cue should run from 0 to 1.6 seconds. A later cue should start at 4.8 seconds and end at 6.8 seconds.

With -ss before -i, the opening cue was absent and the later cue’s recorded end was 8.8 seconds. With -ss after -i, the opening cue was also absent, and the later cue’s recorded start was 8.0 seconds. That timestamp falls after the last video frame.

The practical check is to play the first line after the cut and review the final cue against the new ending. A correct-looking thumbnail or running time is insufficient evidence for text timing.

Retain the part of the caption that belongs in the clip

Open the source timeline with captions enabled. Mark the in and out points for the excerpt. Find any cue crossing either mark and keep its portion inside the selected window. A cue that only touches a cut point has no time inside it.

Move the kept cues onto the new timeline. First clip each cue to the selected window, then subtract the original cut start from each retained time. Editing tools with a caption track can expose cue handles for this kind of check. [3]

Open the exact export and its associated caption track. Watch the opening, check a cue in the middle, then inspect the final cue against the last frames. If your destination uses a separate caption file, pair it with the exported excerpt and preview them together.

Check captions before handing off a cut

A filmstrip with trim handles, scissors cutting a caption bar, and a video preview with a caption bar.
  1. Mark the excerpt

    Find any caption cue that crosses the start or end of the selection.

  2. Clip and retime the cues

    Keep the portion that overlaps the excerpt and make its start relative to the new video.

  3. Preview the export

    Check the opening cue, a cue in the middle and the last caption.

Check the edited clip with captions enabled.

The ZIP includes synthetic cue timings, results and replay instructions in English.

Methods

We generated one 24-second, 25 fps video with 5 original one-letter cues. The Matroska input contained a lossless FFV1 picture and a SubRip track, with no audio. The 8 cut windows were set before running the comparison.

For each cut we compared FFmpeg 8.1.2 with -ss before or after -i, using -t for the output length. In a third pass we clipped and retimed the cues explicitly, then attached them to the shorter video. All 24 outputs matched the intended decoded frames, their presentation times and checksums. FFprobe 8.1.2 packet times agreed with the decoded subtitle times. [1][2]

The exact counts apply to the specified commands, formats and cuts. The replay includes the original timing fixture and recreates the source video. The experiment measured the exported files. Social platform imports and player behavior were outside its scope.

Sources and notes

  1. FFmpeg manual, input and output options for -ss and -t.
  2. FFmpeg 8.1 source documentation, seek and duration option definitions.
  3. Apple Final Cut Pro guide, adjusting and arranging captions.

All editions use the same synthetic video and 8 FFmpeg cut cases.

Related guides