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

Add image/jpeg caps to device filter to support MJPEG webcams #237

Merged
merged 2 commits into from
Jun 5, 2022

Conversation

marbetschar
Copy link
Member

Turned out there is another capability needed to support some webcams which produce MJPEG streams. They don't advertise the video/x-raw capability but support image/jpeg instead: https://oz9aec.net/software/gstreamer/webcam-pixel-formats-and-gstreamer-caps-filters

This PR makes sure we are filtering for any one of those two capabilities when looking for a supported device. This fixes #236 (see screenshot below) and might fix as well (needs testing from the corresponding users): #175, #151, #149, #121, #115

Screenshot from 2022-06-04 21 12 20@2x

@marbetschar marbetschar added the Bitesize Small, self-contained issue. Good for newcomers, and/or should be an easy fix. label Jun 4, 2022
@marbetschar marbetschar requested a review from a team June 4, 2022 19:21
Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No regressions found so seems safe to merge. Needs confirmation from each issue author whether their issue is actually fixed by this.

@jeremypw jeremypw merged commit 2159d41 into master Jun 5, 2022
@jeremypw jeremypw deleted the support-mjpeg-webcams branch June 5, 2022 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bitesize Small, self-contained issue. Good for newcomers, and/or should be an easy fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VirtualBox: Webcam not recognized
2 participants