Skip to content

Fix half-rate MXF video downscale#42

Closed
bjay-wk wants to merge 1 commit into
mainfrom
codex/fix-half-rate-mxf-speed-clean
Closed

Fix half-rate MXF video downscale#42
bjay-wk wants to merge 1 commit into
mainfrom
codex/fix-half-rate-mxf-speed-clean

Conversation

@bjay-wk

@bjay-wk bjay-wk commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Detect MXF MPEG-2 sources whose probed video timing reports r_frame_rate at half of avg_frame_rate, matching the PC-... sample pattern.
  • During local downscale, extract the video essence before transcoding and force the corrected output frame rate so the downscaled MP4 keeps the expected duration and frame count.
  • Bypass stale rendition-cache reuse for detected half-rate sources and add unit coverage for the detection path plus the Avid-style metadata case that should not be corrected.

Validation

  • cargo test media::transcode
  • cargo test
  • Manual ffmpeg check against V...: extracted 1573 video frames and downscaled to a 25 fps, 62.92s, 1280x720 MP4.

Note: the temporary clean worktree used for the PR branch could not run Cargo because generated/tellers_api_client is not present in that worktree; validation was run from the primary workspace where the generated dependency exists.

@bjay-wk bjay-wk closed this May 27, 2026
@bjay-wk bjay-wk deleted the codex/fix-half-rate-mxf-speed-clean branch May 27, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant