Skip to content

fix: preserve color metadata during FFmpeg playback - #551

Merged
devopvoid merged 1 commit into
mainfrom
fix-ffmpeg-color-metadata
Nov 5, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix-ffmpeg-color-metadata

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

FFmpeg playback could lose color matrix and full/limited-range information during I420 conversion and native delivery, producing incorrect colors or washed-out black levels.

Preserve matrix, range, primaries and transfer characteristics through decoding, hardware readback and conversion into the native WebRTC frame. Use FFmpeg's frame-aware scaler and append a color-aware push function to the native extension table while keeping existing callers compatible. Document the defaults for missing metadata and add reference coverage for BT.601, BT.709, full/limited range, RGB conversion and JPEG range inference.

Both native libraries build successfully. The WebRTC and media suites completed with 1,315 tests, no failures or errors, and 32 skipped tests.

@devopvoid
devopvoid merged commit bffb0c2 into main Nov 5, 2026
26 checks passed
@devopvoid
devopvoid deleted the fix-ffmpeg-color-metadata branch November 5, 2026 17:36
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