diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-09-11 18:07:49 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-09-11 18:07:49 -0700 |
| commit | b7dd0a51cbd6d886cb421bacc8fbbfc3a8a8a883 (patch) | |
| tree | 1828cab97461342076e630af8cb1923223ff11c0 /tests/opencode/setup.sh | |
| parent | ae559110ce89a9cc95da71a3a35c2463399cb0d4 (diff) | |
Fix inserted narration and movie audio subtitle checks
Address the final three review findings on PR #2214, as approved by Drew. Count both sides of every non-equal transcript span so a short insertion or expanded replacement cannot evade the drift gate on a longer script. Preserve the existing length and run thresholds.
Honor --no-expect-audio for encoded silent tracks. Base subtitle requirements on detected audible speech so opting out of expected audio does not suppress captions for speech that is present.
Extract the first embedded subtitle stream as SRT when no sidecar is present and apply the same cue-end check to either source. Empty cues fail even for short narration, and extraction or malformed timing errors are reported as failures. Preserve the silent end-card allowance.
Validation: the new tests first reproduced ten failing cases across narration insertion, silent-track opt-out, and embedded subtitle handling. All 35 focused narration, checker-policy, and subtitle-text tests now pass. External media commands, audio and picture sampling, contact-sheet creation, synthesis, and ASR were mocked; no actual media inspection or live ASR was performed. Drew retains final video acceptance.
Diffstat (limited to 'tests/opencode/setup.sh')
0 files changed, 0 insertions, 0 deletions
