elementary / camera

Camera app designed for elementary OS
https://elementary.io
GNU General Public License v3.0
65 stars 18 forks source link

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

Closed marbetschar closed 2 years ago

marbetschar commented 2 years ago

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): https://github.com/elementary/camera/issues/175, https://github.com/elementary/camera/issues/151, https://github.com/elementary/camera/issues/149, https://github.com/elementary/camera/issues/121, https://github.com/elementary/camera/issues/115

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