Expand description
Subtitle-to-timecode synchronization utilities.
Provides tools for aligning subtitle cue timestamps with SMPTE timecodes, applying linear and offset corrections, and detecting drift between subtitle streams and the master timecode.
Structs§
- Subtitle
Cue - A single subtitle cue with in/out timecodes.
Functions§
- apply_
frame_ offset - Offset correction: shift all cues by a fixed number of frames.
- apply_
linear_ stretch - Linear time-stretch: scale all cue times relative to
anchor_framebyfactor. - compute_
average_ drift - Compute the average drift (in frames) between subtitle cue-in times and a set of expected reference timecodes.
- find_
overlaps - Detect overlapping cues and return pairs of indices.
- sort_
cues_ by_ in - Sort a list of cues by their in-timecode.