hi, i'm can't able to open dual usb camera at same time but it is working well for single usb camera .i have connected these usb camera through usb hub 3.0
This is the code i run in terminal
import cv2
cap1 = cv2.VideoCapture(0)
cap2 = cv2.VideoCapture(1)
while True:
ret1, frame1 = cap1.read()
ret2, frame2 = cap2.read()
if ret1:
cv2.imshow('Camera 1', frame1)
else:
print('Error reading frame from camera 1')
break
if ret2:
cv2.imshow('Camera 2', frame2)
else:
print('Error reading frame from camera 2')
break
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap1.release()
cap2.release()
cv2.destroyAllWindows()
-------------
it shows following error message that :
1. not enough bandwidth for new state
2. not enough bandwidth for altsetting 11.
3. gstreamer warning : embedded video playback halted ; module v4l2src1 reported : Failed to allocate required memory.
4. gstreamer warning : unable to start pipeline
and i have attached pic for your reference . please guide me how to connect dual usb camera at same time in imx8