-
-
Notifications
You must be signed in to change notification settings - Fork 219
Recording (macOS): capture and tag BT.709 colour #943
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requeststatus: fixed in mainWork is merged into main but may not be in a downloadable release yet.Work is merged into main but may not be in a downloadable release yet.status: pending releaseMerged change is waiting for a packaged desktop release.Merged change is waiting for a packaged desktop release.
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requeststatus: fixed in mainWork is merged into main but may not be in a downloadable release yet.Work is merged into main but may not be in a downloadable release yet.status: pending releaseMerged change is waiting for a packaged desktop release.Merged change is waiting for a packaged desktop release.
Part of #920 (rank 16). Effort S, risk low.
Problem
kCVPixelFormatType_32BGRAwith nocolorSpaceName, and the writer sets noAVVideoColorPropertiesKey, so VideoToolbox picks the matrix and the tags (ScreenCaptureRecorder.swift). A P3 display adds a gamut question on top.queueDepth = 6: about 200 MB of buffers at 4K.Proposal
colorSpaceName) and setAVVideoColorPropertiesKeyto BT.709 primaries, transfer and matrix on the writer.kCVPixelFormatType_420YpCbCr8BiPlanarVideoRangewith a BT.709colorMatrix, which also divides buffer memory by about 2.7.Verify
ffprobe -show_streams | grep color_readstv / bt709 / bt709 / bt709; solid red read back as raw YUV gives Y≈63, Cb≈102, Cr≈240.