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
Fix OBS Virtual Camera capture. #23460
Fix OBS Virtual Camera capture. #23460
Conversation
if (checkSingleByteFormat(VD->pAmMediaType->subtype) || (VD->pAmMediaType->subtype == MEDIASUBTYPE_Y16)) { | ||
if (checkSingleByteFormat(VD->pAmMediaType->subtype) || | ||
(VD->pAmMediaType->subtype == MEDIASUBTYPE_Y16 || VD->pAmMediaType->subtype == MEDIASUBTYPE_YUY2)) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Converting from YUY2 to BGR manually instead of using DirectShow helps with making the OBS Virtual Camera work. But I am not sure whether it is a bug in the OBS Virtual Camera or in cap_dhow.cpp
.
@mshabunin Could you take a look and comment? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Validated with OBS
Thank you for the contribution! LGTM 👍
Streamlabs Desktop has the same issue in opencv#19746. This fixes it using opencv#23460 method.
Streamlabs Desktop has the same issue in opencv#19746. This fixes it using opencv#23460 method. Add getMatInblob function e
Streamlabs Desktop has the same issue in opencv#19746. This fixes it using opencv#23460 method.
Fixes #19746
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request