2 ms·
Is there any way to use the usb-gadget-mode to have a Linux machine become a webcam?
by therein 2y ago
Is there any way to use the usb-gadget-mode to have a Linux machine become a webcam?
- jauntywundrkind 2y agoSure! There's a USB "uvc" (USB Video Class device) gadget in Linux. https://docs.kernel.org/usb/gadget_uvc.html https://docs.kernel.org/usb/gadget_uvc.html There is support in gstreamer. The example shows piping the standard test signal out as uvc gadget. https://gstreamer.freedesktop.org/documentation/uvcgadget/index.html?gi-language=c https://gstreamer.freedesktop.org/documentation/uvcgadget/in... There's various write-ups out there for example using a RPi as a USB webcam, using this. These write-ups cover more of the details of - as an end user - setting up/configuring the gadget device. https://github.com/geerlingguy/pi-webcam?tab=readme-ov-file#raspberry-pi-webcam https://github.com/geerlingguy/pi-webcam?tab=readme-ov-file#...