If subtitles appear at the wrong position after editing, compare a prominent sentence at the beginning with one further along. If both sentences shift by the same amount, a common time offset may be possible. If something only shifts after a specific cut point, you must examine the segments individually.
A new intro shifts the entire clip.
In a local test, a WebVTT file contained two text blocks. The first lasted between 3 and 5 seconds, the second between 8 and 10 seconds. To extend the introduction by exactly two seconds, we used FFmpeg to shift both text blocks forward by two seconds. FFprobe then reported durations of 5 to 7 seconds and 10 to 12 seconds. The text content and display duration remained unchanged.
WebVTT assigns a start and end timestamp to each block. When a fixed offset is applied, both timestamps must shift accordingly. If you remove content at the beginning, check whether a block would start before zero seconds or if its spoken content would entirely vanish. Then, you must also verify its text or duration.
W3C on the formatting of time stamps in WebVTT
When cutting mid-video, resume subtitle timing from the point of change.
Use the same start times, but instead remove a pause of 6,000 to 7,500 seconds and close the gap. The first block, lasting 3 to 5 seconds, remains stationary. The second block shifts forward by 1.5 seconds and falls between 6.5 and 8.5 seconds. This is a model calculation. If the cut divides a sentence, listen to the transition and reposition the subtitles there.
Take the new version from the player
- Check at the beginning, immediately before and after the cut, as well as towards the end. Compare the display with audible word starts, sentence endings, and significant sounds.
- Save the corrected track along with the new video version. Check the other audio tracks separately if their text is structured differently.
- Open the actually published version and enable the desired track. Read a section without sound and then recheck with sound to ensure the text and action match properly.
W3C WAI on synchronized subtitles and significant sounds