wlhe / uvc-gadget

enhance uvc-gadget test application
GNU General Public License v2.0
136 stars 140 forks source link

Streaming hangs and no data is received #16

Open Lavr18 opened 5 months ago

Lavr18 commented 5 months ago

Hi,

I've setup the UVC gadget on my arm-based embedded device. I've cross-compiled the uvc-gadget app and it runs OK, and seems to be working OK.

Also, I can see new /dev/video devices when I connect my embedded device to my Linux PC by USB. So seems to be working ok.

However, when I start the video stream on my PC, it just hangs and no video data is received.

These are the logs: of your app (seems to be ok):

[root@insp_bk7xxx:~]# ./uvc-gadget -f 1 -v /dev/video5 -u /dev/video7 -s 0 V4L2 device is HD WebCam on bus usb-ff540000.usb-1.1 V4L2: Getting current format: MJPG 640x480 V4L2: Setting format to: MJPG 640x480 V4L2: Getting current format: MJPG 640x480 v4l2 open succeeded, file descriptor = 3 uvc device is ff580000.usb on bus gadget uvc open succeeded, file descriptor = 4 V4L2: Buffer 0 mapped at address 0xb6c05000. V4L2: Buffer 1 mapped at address 0xb6a43000. V4L2: 2 buffers allocated. control request (req 86 cs 02) control request (req 86 cs 02) streaming request (req 87 cs 01) streaming request (req 01 cs 01) setting probe control, length = 26 streaming request (req 81 cs 01) control request (req 87 cs 02) control request (req 82 cs 02) control request (req 83 cs 02) control request (req 84 cs 02) control request (req 87 cs 02) control request (req 84 cs 02) streaming request (req 01 cs 01) setting probe control, length = 26 ... setting probe control, length = 26 streaming request (req 81 cs 01) streaming request (req 01 cs 02) setting commit control, length = 26 UVC: 2 buffers allocated. V4L2: Starting video stream. UVC: Starting video stream.

This is the log on my PC: image

And it hangs like this forever getting no data.

huochen1 commented 4 months ago

Have you solved it yet

gauthamkantharaju commented 2 months ago

@huochen1 Nope!