Post

Replies

Boosts

Views

Activity

Reply to Empty space with Screen Capture kit full screen window recording
It seems when window is in full screen the CMSampleBuffer returned has different video dimensions in CMVideoFormatDescription and the Content Rect. CMSampleBuffer formatDescription = <CMVideoFormatDescription 0x6000027066d0 [0x7ff8558ff750]> { mediaType:'vide' mediaSubType:'420v' mediaSpecific: { codecType: '420v' dimensions: 3584 x 2240 } } sampleAttachmentsArray[0] = { sample 0: SCStreamUpdateFrameDisplayResolution = 2 SCStreamUpdateFrameContentRect = { Height = "1120.000020503998"; Width = "1724.261199951172"; X = 0; Y = 0; } } It seems video dimension gives the correct rect which excludes the empty space. So having ContentRectHeight * DisplayRes - (ContentRectHeight * DisplayRes - VideoDimensionheight) from content rect will give the actual content rect.
May ’24