Hi, I found out I couldn’t run 4 USB cameras at the same time.
When I run 4 simple opencv code in four terminal, only 2 can run.
Note: individual code works fine. Only 1280 x 720 30 fps each 480M. And I connect each USB camera in separate 4 plug in AGX.
Is there any settinng I can change it? Thx
import cv2# current camera
cap = cv2.VideoCapture(0)
while (cap.isOpened()):
ret, frame = cap.read()
cv2.imshow('frame', frame)
key = cv2.waitKey(1)
# ESC
if key == 27:
breakcap.release()
cv2.destroyAllWindows()
import cv2# current camera
cap = cv2.VideoCapture(2)
while (cap.isOpened()):
ret, frame = cap.read()
cv2.imshow('frame', frame)
key = cv2.waitKey(1)
# ESC
if key == 27:
breakcap.release()
cv2.destroyAllWindows()
```
import cv2# current camera
cap = cv2.VideoCapture(4)
while (cap.isOpened()):
ret, frame = cap.read()
cv2.imshow('frame', frame)
key = cv2.waitKey(1)
# ESC
if key == 27:
breakcap.release()
cv2.destroyAllWindows()
import cv2# current camera
cap = cv2.VideoCapture(6)
while (cap.isOpened()):
ret, frame = cap.read()
cv2.imshow('frame', frame)
key = cv2.waitKey(1)
# ESC
if key == 27:
breakcap.release()
cv2.destroyAllWindows()
lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 10000M
|__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 10000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 480M
|__ Port 3: Dev 2, If 0, Class=Wireless, Driver=rtk_btusb, 12M
|__ Port 3: Dev 2, If 1, Class=Wireless, Driver=rtk_btusb, 12M
|__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 3: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 7, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 25, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 1: Dev 25, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 1: Dev 24, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 1: Dev 24, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 4: Dev 20, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 4: Dev 20, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 2: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 3: Dev 22, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 1: Dev 6, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 26, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 1: Dev 26, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 4: Dev 21, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 21, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'MJPG' (Motion-JPEG, compressed)
Size: Discrete 640x480
Interval: Discrete 0.040s (25.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.040s (25.000 fps)
[1]: 'YUYV' (YUYV 4:2:2)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.100s (10.000 fps)
I found this, I am surprised that two 10Gps USB can not support 4 USB cameras… Is it true?
And I saw this, but it said it can brick the Jetson…. I am scared to try unless it is working. And the file name does not match… Thx

