Caption cuts: timing replay

This experiment uses a generated 24-second test video and five synthetic SRT cues. The eight cut windows, cue times and exact FFmpeg commands are in replay.py. expected.csv lists the intended cue intervals relative to each cut; the gap case has no rows. results.csv records the observed cues, differences from the intended intervals and decoded video frame checks.

Requirements: Python 3, FFmpeg 8.1.2 and FFprobe 8.1.2 on PATH. The script generates temporary media, deletes it after the run and writes the requested CSV. It rejects other FFmpeg or FFprobe versions.

  python3 replay.py reproduced.csv
  cmp results.csv reproduced.csv

Compare expected.csv with the decoded_cues column to inspect cue-level timing. A cue is included when it has a positive overlap with the half-open cut window; its retained endpoints are clipped and shifted by the cut start. The explicit-cue-clipping method generates a new subtitle track from those intervals. The gap output has no subtitle track. Frame matching compares decoded frames with the corresponding source slice. These results describe the specified synthetic fixture, Matroska/SubRip format and commands; they do not measure a platform's caption display.

FFmpeg documentation:
https://ffmpeg.org/ffmpeg.html
https://ffmpeg.org/ffprobe.html
