video-accessibility/backend/tests/unit
michael add958008a fix: use actual freeze segment durations for VTT subtitle retiming
Subtitles were appearing progressively out of sync (~1.0s early per AD)
because the VTT retimer calculated freeze durations theoretically
rather than using actual rendered segment durations.

Changes:
- video_renderer: Measure actual freeze segment duration after creation
- video_renderer: Return updated placements with actual_freeze_duration
- vtt_retimer: Prefer actual_freeze_duration over calculated values
- render_task: Pass actual durations to VTT retimer

This ensures subtitle timing matches the real video timeline regardless
of any FFmpeg encoding variations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 15:52:57 -06:00
..
test_emailer.py initial commit 2025-08-24 16:28:33 -05:00
test_gcs.py initial commit 2025-08-24 16:28:33 -05:00
test_gemini.py feat: add video-native translation mode for multi-language content 2025-12-31 13:50:05 -06:00
test_models.py initial commit 2025-08-24 16:28:33 -05:00
test_security.py initial commit 2025-08-24 16:28:33 -05:00
test_tts.py initial commit 2025-08-24 16:28:33 -05:00
test_vtt.py initial commit 2025-08-24 16:28:33 -05:00
test_vtt_retimer.py fix: use actual freeze segment durations for VTT subtitle retiming 2026-01-05 15:52:57 -06:00