mirror of
https://github.com/rehan-remade/universal-modder.git
synced 2026-11-05 01:37:40 +00:00
[PR #98] [MERGED] fix(win): record converts with the BT.709 matrix and tags it #122
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rehan-remade/universal-modder#122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rehan-remade/universal-modder/pull/98
Author: @AltDoug
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/6/2026
Merged by: @rehan-remade
Base:
main← Head:fix/record-bt709📝 Commits (2)
1a2087bfix(win): record converts with the BT.709 matrix and tags ite726b09Merge main into fix/record-bt709📊 Changes
2 files changed (+21 additions, -1 deletions)
View changed files
📝
tests/test_um.py(+18 -0)📝
um/win.py(+3 -1)📄 Description
um win recordturns the BGRA capture into yuv420p with-pix_fmt yuv420p, so ffmpeg's auto-inserted scaler uses its default BT.601 matrix, and the .mkv is left untagged (color_space=unknown). Browsers (Chromium) and many players assume BT.709 for HD video, so colours shift slightly in every recording. Measured on a solid (155, 70, 74):color_space=unknowncolor_space=bt709,color_range=tvFix: convert explicitly with
scale=out_color_matrix=bt709:out_range=tv,format=yuv420pand tag the stream-colorspace bt709 -color_range tv. I left primaries and transfer untagged on purpose: the frames are sRGB, and players already default those to BT.709.Tests: new
test_record_encodes_and_tags_bt709(fails before, passes after); full suite 59 passed on Windows 11, Python 3.12. By hand: the colour table above with libx264 and h264_nvenc, and a real 3 sum win record(gfxcapture + NVENC) probes ascolor_range=tv|color_space=bt709.Found and fixed with AI assistance (Claude Code); the repro and the fix were run by hand on Windows 11.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.