Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avfoundation: set videoSettings explicitly #151

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

yamt
Copy link
Contributor

@yamt yamt commented Oct 17, 2023

It seems by default AVCaptureVideoDataOutput converts frames to kCMVideoCodecType_422YpCbCr8. (= kCMPixelFormat_422YpCbCr8) Unfortunately it doesn't match what nokhwa decides to use on my environment. (kCMPixelFormat_422YpCbCr8_yuvs)

This commit configures AVCaptureVideoDataOutput to use the same pixel format. (Thus no conversions)

Only tested for kCMPixelFormat_422YpCbCr8_yuvs.

It seems by default AVCaptureVideoDataOutput converts frames to
kCMVideoCodecType_422YpCbCr8. (= kCMPixelFormat_422YpCbCr8)
Unfortunately it doesn't match what nokhwa decides to use
on my environment. (kCMPixelFormat_422YpCbCr8_yuvs)

This commit configures AVCaptureVideoDataOutput to use the same
pixel format. (Thus no conversions)

Only tested for kCMPixelFormat_422YpCbCr8_yuvs.
@l1npengtul l1npengtul merged commit 8ed702e into l1npengtul:0.10 Oct 17, 2023
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.

None yet

2 participants