video-accessibility/backend/app
michael 54667fbcb8 fix: resolve audio/video sync issues in accessible video renderer
- Update _get_video_properties() to extract audio sample_rate, channels,
  and pix_fmt in addition to video properties
- Add _extract_segment_reencoded() for frame-accurate cuts using
  re-encoding instead of stream copy (fixes keyframe-only cut limitation)
- Add _create_freeze_segment_matched() to enforce source audio property
  matching (fixes silent pauses caused by sample rate mismatch)
- Update _render_pause_insert_method() to use new methods with uniform
  encoding parameters
- Add -video_track_timescale 90000 for consistent timebase across segments

Root causes fixed:
1. -c copy could only cut at keyframes, causing audio dropouts
2. Sample rate mismatch (48kHz source vs 44.1kHz MP3) caused silent
   freeze-frame segments when concatenated

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 12:05:32 -06:00
..
__pycache__ fixed middleware silent swallowing of exceptions FINALLY 2025-10-08 18:19:59 -05:00
api/v1 feat: add accessible video (MP4 with embedded audio descriptions) 2025-12-26 11:06:41 -06:00
core feat: add TTS settings panel with model, speed, and style options 2025-12-22 15:22:14 -06:00
lib initial commit 2025-08-24 16:28:33 -05:00
middleware fixed overly aggressive security algorithm 2025-10-08 17:49:20 -05:00
migrations add approved_source and qc_feedback job statuses to MongoDB schema 2025-12-22 13:12:14 -06:00
models feat: add accessible video (MP4 with embedded audio descriptions) 2025-12-26 11:06:41 -06:00
prompts feat: add accessible video (MP4 with embedded audio descriptions) 2025-12-26 11:06:41 -06:00
schemas feat: add accessible video (MP4 with embedded audio descriptions) 2025-12-26 11:06:41 -06:00
services fix: resolve audio/video sync issues in accessible video renderer 2025-12-26 12:05:32 -06:00
tasks feat: add accessible video (MP4 with embedded audio descriptions) 2025-12-26 11:06:41 -06:00
telemetry initial commit 2025-08-24 16:28:33 -05:00
main.py upgrade TTS to Gemini TTS with voice selection and preview 2025-12-22 14:41:57 -06:00