USB camera not working with CameraBin (gstreamer 1.18.5)
I have an USB camera called "SVPRO 1080p" with IMX322 sensor.
This is what lsusb
says:
Bus 005 Device 088: ID 32e4:9422 H264 USB Camera H264 USB Camera
And this is the dmesg
output:
[165510.353317] usb 5-1: new high-speed USB device number 88 using xhci_hcd
[165510.544822] usb 5-1: New USB device found, idVendor=32e4, idProduct=9422, bcdDevice= 1.00
[165510.544827] usb 5-1: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[165510.544828] usb 5-1: Product: H264 USB Camera
[165510.544829] usb 5-1: Manufacturer: H264 USB Camera
[165510.544830] usb 5-1: SerialNumber: 2020032801
[165510.550954] uvcvideo: Found UVC 1.00 device H264 USB Camera (32e4:9422)
[165510.600230] input: H264 USB Camera: USB Camera as /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/usb5/5-1/5-1:1.0/input/input48
v4l2-ctl
says:
$ v4l2-ctl -d /dev/video0 -D
Driver Info:
Driver name : uvcvideo
Card type : H264 USB Camera: USB Camera
Bus info : usb-0000:02:00.0-1
Driver version : 5.11.22
Capabilities : 0x84a00001
Video Capture
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
The camera works well with guvcview
.
I have some simple camera capture code using Qt5, which is itself using gstreamer
(1.18.5).
When trying to use the camera, I get this error:
CameraBin error: "GStreamer error: negotiation problem."
That's before capturing the video and just getting the camera properties. I tried different kernel versions, e.g. 5.11.0 and 5.13.0.
Any ideas how to get further with this?
I can do some debugging if you send me the gst-launch
commands I should try.