TECHNOLOGY

WebVTT dataset captions: cue timing, overlaps and clip offsets

In this article
THE QUICK TAKE

A subtitle cue is a timed text unit; its display interval is not automatically a word alignment or a clip-local timestamp.

Cue text and cue timing are separate data

WebVTT defines timed cue blocks with start and end offsets. Its payload can include supported markup rather than only plain sentences. A dataset extractor should preserve timing fields before flattening presentation syntax into text.

Define whether the output unit is a cue, a merged passage or a fixed media segment. Concatenating all text into a document loses the direct mapping back to intervals unless that relationship is stored separately.

Overlapping cues are allowed

The specification allows different cues to overlap while ordering them by start time. An importer that assumes each cue begins after the preceding one ends can reject valid material or rewrite its timing incorrectly.

Keep overlapping intervals visible. They may reflect the authored track’s presentation rather than duplicate text. A proposed merge policy should explain whether simultaneous cues are combined, retained separately or flagged, especially when speaker information matters to retrieval or multimodal interpretation.

Clip extraction changes the time origin

A cue timed against a full recording is not automatically timed against a derived clip. Cropping the media creates a new local origin. If the dataset exports a clip and its subtitles, record the offset between parent-media time and clip time.

Handle cues crossing a clip boundary with an explicit rule. Clipping the interval without reviewing text can leave words whose audio lies outside the exported segment. Keeping the entire cue can create timestamps outside the clip. Neither choice should happen as an undocumented side effect.

Display intervals are not word-level alignment

A cue’s start and end describe its display interval. The browser VTTCue interface exposes those times and text, but their existence does not establish the timing of every word inside the cue. A language-model task requiring exact spoken-word evidence needs an appropriate alignment source.

Also preserve language and track identity. Translated captions can convey corresponding meaning while differing in word order and timing granularity. Sharing a media file does not make two language tracks interchangeable annotations for every evaluation task.

Validate against the media timeline

The HTML media standard relates active text cues to media playback time. A dataset transformation should retain that relationship through cropping, concatenation or retiming instead of treating subtitle timestamps as independent decoration.

A proposed check samples beginning, middle, overlapping and boundary-crossing cues against the actual derivative media. Save cue identifiers, original intervals, transformation offsets and output intervals. This creates inspectable provenance without claiming a completed subtitle alignment audit or automatically deriving precise speech timing from display-oriented captions.

Primary references

WebVTT specification.

HTML media and text tracks.

Mozilla VTTCue documentation.

Related explanations: Visual and text evidence; Timed transcript evidence.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles