video-accessibility/backend/app/services
michael 37f5e8d1b0 fix: validate pause points and frame extraction
- Get video duration BEFORE the render loop (not after)
- Clamp pause_point to 100ms before video end if it exceeds duration
- Add validation in _extract_frame() to verify frame was created
- Add debug logging for frame extraction timestamps

This prevents "Frame file not found" errors when pause points
calculated by Whisper refinement exceed the source video duration.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 09:32:13 -06:00
..
__pycache__ better tts config for worker 2025-10-08 18:47:28 -05:00
audit_logger.py initial commit 2025-08-24 16:28:33 -05:00
emailer.py initial commit 2025-08-24 16:28:33 -05:00
gcs.py initial commit 2025-08-24 16:28:33 -05:00
gemini.py feat: add accessible video (MP4 with embedded audio descriptions) 2025-12-26 11:06:41 -06:00
gemini_tts.py feat: add TTS settings panel with model, speed, and style options 2025-12-22 15:22:14 -06:00
microsoft_auth.py added MSAL microsoft authentication 2025-10-10 09:19:39 -05:00
secrets_manager.py initial commit 2025-08-24 16:28:33 -05:00
translate.py add support for non-English original video uploads 2025-12-22 10:33:58 -06:00
tts.py feat: add accessible video (MP4 with embedded audio descriptions) 2025-12-26 11:06:41 -06:00
validation.py feat: add accessible video validation, remove AI confidence check 2025-12-26 16:41:57 -06:00
video_renderer.py fix: validate pause points and frame extraction 2025-12-29 09:32:13 -06:00
vtt_retimer.py feat: implement full-gap-overlap algorithm for AD pause insertion 2025-12-28 22:51:49 -06:00
websocket.py wrote docker files and deployment instructions 2025-10-08 16:00:12 -05:00
websocket_publisher.py wrote docker files and deployment instructions 2025-10-08 16:00:12 -05:00
whisper_service.py refactor: rewrite pause point refinement algorithm with ordered logic 2025-12-29 08:19:03 -06:00