My team this year wants to have two cameras streaming simultaneously to shuffleboard. We want to use megapixel usb cameras over lifecams. We can stream two lifecams simultaneously to the shuffleboard, but we get ERROR: : could not start streaming due to USB bandwidth limitations when we try streaming two megapixel cams even after reducing resolution to the lowest supported. The weird thing is that we can stream two megapixel cam in labview code, but not in java code.
This is our code in robotInit()
CameraServer camera1;
CameraServer camera2;
UsbCamera usb1 = new UsbCamera(“front camera”, 0);
usb1.setFPS(30);
usb1.setPixelFormat(PixelFormat.kMJPEG);
usb1.setResolution(160, 120);
camera1.startAutomaticCapture(usb1);
camera2 = CameraServer.getInstance();
UsbCamera usb2 = new UsbCamera(“back camera”, 1);
usb2.setFPS(30);
usb2.setResolution(160,120);
usb2.setPixelFormat(PixelFormat.kMJPEG);
camera2.startAutomaticCapture(usb2);