I have two USB 3.0 1080p ELP cameras that I am trying to use on my Xavier NX board. I’ve previously tried them with a Nano, and got an error that indicated that the board was running out of bandwidth (likely a problem with uvc video driver). This time, I am not getting this error, but a problem nevertheless occurs.
If I use gstreamer to open a stream, via
gst-launch-1.0 v4l2src device=/dev/video0 ! xvimagesink, the first camera starts fine. The second stream however always shows a frozen screen with the contents of the desktop when I initiate it. If I close one of the gstreamer windows, the second one unfreezes and works normally. No error occurs, just the freeze, so I’m not sure what is causing this behavior.
If I use python and opencv, a single camera again works fine. However, when allocating for a second video capture, python gives the following error:
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
No video opens. This occurs at the second of the following two lines:
cap1 = cv2.VideoCapture(0)
cap2 = cv2.VideoCapture(1)
I have no idea whether this is related to the Nano’s problem of bandwidth being exceeded, or if it’s completely different. Would greatly appreciate any input.
Edit: I’ve accidentally created this post in the wrong branch. If possible, could an admin move this to the Xavier NX forum? Thank you.