Multi-Webcam Woes (USB Hubs)
in
Integration and Hardware
•
2 years ago
Hello,
I've been writing some software for a sculpture piece that involves a few webcams doing tracking.
The code is running on a macbook pro, and so I only have two built in usb ports, and I want to use three cameras plus some other usb devices and so I added a usb hub (built by targus).
I can get multiple webcams running in processing just fine (three including the macbooks built in camera) when each is plugged into its own usb port.
However, when I plug multiple cameras into the hub (it can run one camera just fine) processing throws the error:
Error inside Capture.run()
I've tried it with a few different types of cameras (the microsoft life cams and their cinema cam).
Is this some kind of hardware problem with the HUB perhaps? I know that I can have a camera plugged into the hub, running, and upload to an arduino at the same time. I have not been able to pull video from two cameras at the same time on the hub by, for instance, using quicktime video record and processing for just one of the cameras.
If it is a problem with a hub, do you think an express card with USB ports will allow me to use three webcams on one machine?
Many thanks!
Here's the more detailed error:
- quicktime.std.StdQTException[QTJava:7.6.6g],-9402=cantDoThatInCurrentMode,QT.vers:7668000
- at quicktime.std.StdQTException.checkError(StdQTException.java:40)
- at quicktime.std.sg.SequenceGrabber.idle(SequenceGrabber.java:273)
- at processing.video.Capture.run(Capture.java:357)
- at java.lang.Thread.run(Thread.java:680)
- quicktime.std.StdQTException[QTJava:7.6.6g],-9402=cantDoThatInCurrentMode,QT.vers:7668000
- at quicktime.std.StdQTException.checkError(StdQTException.java:40)
- at quicktime.std.sg.SequenceGrabber.stop(SequenceGrabber.java:344)
- at processing.video.Capture.stop(Capture.java:404)
- at processing.video.Capture.dispose(Capture.java:419)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:851)
- at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:844)
- at processing.core.PApplet.stop(PApplet.java:794)
- at processing.core.PApplet.die(PApplet.java:2547)
- at processing.core.PApplet.die(PApplet.java:2557)
- at processing.video.Capture.errorMessage(Capture.java:431)
- at processing.video.Capture.run(Capture.java:374)
- at java.lang.Thread.run(Thread.java:680)
- Exception in thread "Thread-3" java.lang.RuntimeException: Error inside Capture.run()
- at processing.core.PApplet.die(PApplet.java:2548)
- at processing.core.PApplet.die(PApplet.java:2557)
- at processing.video.Capture.errorMessage(Capture.java:431)
- at processing.video.Capture.run(Capture.java:374)
- at java.lang.Thread.run(Thread.java:680)
1