UVC Complaint Camera not working

Hi,

I’m using USB3 uvc complaint camera, which gives an error when i open with cheese and gstreamer

Error with Cheese
$ cheese -d /dev/video4
** (cheese:1076): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: rockchip_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: rockchip
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: rockchip_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: rockchip
(cheese:1076): Gtk-WARNING **: Theme parsing error: cheese.css:7:35: The style property GtkScrollbar:min-slider-length is deprecated and shouldn’t be used anymore. It will be removed in a future version
Using mplane plugin for capture
Using mplane plugin for capture
Segmentation fault

with gstreamer

gst-launch-1.0 v4l2src device=/dev/video4 ! video/x-raw,framerate=30/1,width=1280,height=960,format=YUY2 ! videoconvert ! xvimagesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
libv4l2: error turning on stream: Input/output error
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not read from resource.
Additional debug info:
gstv4l2bufferpool.c(1058): gst_v4l2_buffer_pool_poll (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
poll error 1: Input/output error (5)
Execution ended after 0:00:01.309585761
Setting pipeline to PAUSED …
Setting pipeline to READY …
libv4l2: error turning on stream: Input/output error
Setting pipeline to NULL …
Freeing pipeline …

Hi,

Do you have the camera model? Normal UVC camera should work out of box. We can test here for you.

Hi Jack,

Here the model

Bus 002 Device 003: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera

Have you tried with a different camera to see if it works? I’d be inclined to try both a USB2 and a USB3 just to isolate as many variables as possible.

And are you sure its a USB3 camera? The identifications seem to say its a USB2. Check the color of the plastic inside the plug. USB2 = white, USB3 = blue. Typically. There are also a different number of contact pads in the connector. USB2 = 4, USB3 = 9.

It’s USB 3 only the wire is in blue colour

Camera is working in Jetson Nano & Raspberry Pi4 Devices

That is not the test I suggested you to perform.

Hi Ibdriodman,

I attached another cam from Logitech to USB2 port still not working, when I open cheese GUI system get freeze. But in a terminal, it throws below error

libGL error: MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: rockchip_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: rockchip
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: rockchip_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: rockchip

Mesa is on the playback side. Can you try just a simple capture to file using ffmpeg?

ffmpeg command working for logitech cam but not other.

Other cam is working with jetson & pi4 using the following fix
sudo modprobe -r uvcvideo
sudo modprobe uvcvideo nodrop=1 quirks=0x10

and above fix is not working in rockpi4
it says module uvcvideo is inbuilt

Ok, so now we are starting to get somewhere.

Was the quirk actually necessary for the camera to work on those other 2 devices? If so, then the solution may be pretty easy – just add the kernel parameter “uvcvideo.quirks=0x10”. I doubt that the nodrop parameter was necessary, but you can add it as well in the same way.

Also, what kernel versions were running on the jetson and pi4?