Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming hangs and no data is received #16

Open
Lavr18 opened this issue Jan 31, 2024 · 2 comments
Open

Streaming hangs and no data is received #16

Lavr18 opened this issue Jan 31, 2024 · 2 comments

Comments

@Lavr18
Copy link

Lavr18 commented Jan 31, 2024

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
Copy link

Have you solved it yet

@gauthamkantharaju
Copy link

@huochen1 Nope!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants