uvc-gadget
uvc-gadget copied to clipboard
Support H264
Would be a great addition and maybe a better performance than MJPEG.
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
Here is some patch for adding framebased formats, but i don't test it yet, and it requires changes in uvc-gadget too. https://lore.kernel.org/patchwork/patch/1023642/