Petr Vavrin
Petr Vavrin
@geerlingguy - documentation and wiki pages are been on my TODO list. Both of these tasks are limited by my free time and my knowledge of English.
I started writing documentation. This is the beginning and I will gradually add more information - [uvc-gadget - documentation](https://github.com/peterbay/uvc-gadget/tree/master/doc)
And why don't make it simpler? Preparation: - create a binary file with filesystem FAT32 in firmware Steps: - connect to showmewebcam and initialize firmware upgrade - mount prepared binary...
Great, looks good, but - 1. Camera controls must be obtained from v4l2. Each camera module has implemented a different set of controls. 2. Each control has min, max, default...
If you set the framebuffer as an input device, then you must set uvc gadget as an output device. v4l2-ctl --list-device 20980000.usb (gadget): /dev/video0 uvc-gadget -f /dev/fb0 -u /dev/video0 In...
Manual for installation of uvc-gadget you can found at [http://www.davidhunt.ie/raspberry-pi-zero-with-pi-camera-as-usb-webcam/](http://www.davidhunt.ie/raspberry-pi-zero-with-pi-camera-as-usb-webcam/). My version of uvc-gadget is based on David Hunt repo. You can check your configuration with a script gadget-check.sh. Here...
USB gadget driver under Linux at this time support only two formats - V4L2_PIX_FMT_MJPEG and V4L2_PIX_FMT_YUYV. [https://github.com/raspberrypi/linux/blob/rpi-5.4.y/drivers/usb/gadget/function/uvc_v4l2.c#L59](https://github.com/raspberrypi/linux/blob/rpi-5.4.y/drivers/usb/gadget/function/uvc_v4l2.c#L59) Here is some patch for adding framebased formats, but i don't test it...
Here is the documentation for extended video control - [Video controls](https://github.com/peterbay/uvc-gadget/blob/master/doc/src/video-controls.md)
UVC camera controls initialization has several steps. 1. UVC gadget has defined available controls in f_uvc.c and host computer read these settings after gadget initialization. 2. uvc-gadget obtains available and...