hathach / tinyusb

An open source cross-platform USB stack for embedded system
https://www.tinyusb.org
MIT License
4.66k stars 997 forks source link

feat(uvc): support format frame based #2656

Open lijunru-hub opened 1 month ago

lijunru-hub commented 1 month ago

Describe the PR Add support for UVC frame-based

Transmitting H264 video streams using frame-based transfer on the ESP32-S3 has been very successful.

image

lijunru-hub commented 1 month ago

@kkitayam PTAL! If you need any examples, I will provide them to you ASAP

kkitayam commented 1 month ago

@kkitayam PTAL! If you need any examples, I will provide them to you ASAP

Sorry for late response. And, thank you for your suggestion. Could you share the example for this PR? I will try the example.

lijunru-hub commented 4 weeks ago

@kkitayam PTAL! If you need any examples, I will provide them to you ASAP

Sorry for late response. And, thank you for your suggestion. Could you share the example for this PR? I will try the example.

Please try example with https://github.com/lijunru-hub/esp-iot-solution/tree/feat/usb_uvc_support_h265_trans/examples/usb/device/usb_dual_uvc_device.

You need to set up the ESP-IDF environment and use an ESP32S2/3 development board to flash this project. Please change the format of UVC1 to H264 in the menuconfig. This will simulate two UVC devices on the computer, playing one H264 stream and one JPG stream.

image