It captures the image from a USB Camera, then applys some image processing on Raspberry Pi. Lastly, it creates a virtual camera that sends the output image to the PC.
I would like to achieve the same effect using OrangePi One (Armbian), and the only problem left is to simulate a virtual camera using the USB Gadget.
What I tried:
$ sudo modprobe g_webcam
musb-hdrc.4.auto: failed to start g_webcam: -22
According to this post, a more preferred way to do this is to use configfs:
USB Gadget as Camera usb_f_uvc: Invalid argument -22
in Allwinner sunxi
Posted · Edited by wuhanstudio
Hi,
I was trying to use OrangePi One to add a filter to my USB camera, so that I can apply some image processing to the original input image.
The original project uses raspberrypi: https://github.com/likeablob/rpi-wfh-webcam
It captures the image from a USB Camera, then applys some image processing on Raspberry Pi. Lastly, it creates a virtual camera that sends the output image to the PC.
I would like to achieve the same effect using OrangePi One (Armbian), and the only problem left is to simulate a virtual camera using the USB Gadget.
What I tried:
$ sudo modprobe g_webcam musb-hdrc.4.auto: failed to start g_webcam: -22
According to this post, a more preferred way to do this is to use configfs:
I followed instructions here:
https://developer.ridgerun.com/wiki/index.php?title=How_to_use_the_UVC_gadget_driver_in_Linux
But unfortunately, it returned with the same error: Invalid Argument:
Does this mean the Allwinner H2/H3 USB IP Core does not support g_webcam / usb_f_uvc ?
(Both g_serial and g_eth works, but not g_webcam)