We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › connecting more than 3 cameras - QT error
Page Index Toggle Pages: 1
connecting more than 3 cameras - QT error (Read 1438 times)
connecting more than 3 cameras - QT error
Sep 6th, 2009, 3:27pm
 
I'm using multiple iSight cameras to provide simultaneous feeds into my sketch.

I'm able to connect 3 cameras with no problem, but the 4th camera causes an error.

when I call cam.settings() there are in fact 4 feeds to choose from (so the hardware is not the problem), but on instantiating the 4th Camera object in code, I get the following error before the settings window ever opens:

quicktime.std.StdQTException[QTJava:7.6.0g],-9402=cantDoThatInCurrentMode,QT.vers:7608000
     at quicktime.std.StdQTException.checkError(StdQTException.java:38)
     at quicktime.std.sg.SequenceGrabber.idle(SequenceGrabber.java:272)
     at processing.video.Capture.run(Capture.java:355)
     at java.lang.Thread.run(Thread.java:613)
quicktime.std.StdQTException[QTJava:7.6.0g],-2014=invalidDuration,QT.vers:7608000
     at quicktime.std.StdQTException.checkError(StdQTException.java:38)
     at quicktime.std.movies.Track.insertMedia(Track.java:675)
     at processing.video.MovieMaker.finish(MovieMaker.java:325)
     at processing.video.MovieMaker.dispose(MovieMaker.java:339)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:724)
     at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:717)
     at processing.core.PApplet.stop(PApplet.java:667)
     at processing.core.PApplet.die(PApplet.java:2191)
     at processing.core.PApplet.die(PApplet.java:2201)
     at processing.video.Capture.errorMessage(Capture.java:429)
     at processing.video.Capture.run(Capture.java:372)
     at java.lang.Thread.run(Thread.java:613)
quicktime.std.StdQTException[QTJava:7.6.0g],-9402=cantDoThatInCurrentMode,QT.vers:7608000
     at quicktime.std.StdQTException.checkError(StdQTException.java:38)
     at quicktime.std.sg.SequenceGrabber.stop(SequenceGrabber.java:343)
     at processing.video.Capture.stop(Capture.java:402)
     at processing.video.Capture.dispose(Capture.java:417)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:724)
     at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:717)
     at processing.core.PApplet.stop(PApplet.java:667)
     at processing.core.PApplet.die(PApplet.java:2191)
     at processing.core.PApplet.die(PApplet.java:2201)
     at processing.video.Capture.errorMessage(Capture.java:429)
     at processing.video.Capture.run(Capture.java:372)
     at java.lang.Thread.run(Thread.java:613)
Exception in thread "Animation Thread" java.lang.NullPointerException
     at processing.video.Capture.settings(Capture.java:486)
     at StillsToMovie.setup(StillsToMovie.java:58)
     at processing.core.PApplet.handleDraw(PApplet.java:1403)
     at processing.core.PApplet.run(PApplet.java:1328)
     at java.lang.Thread.run(Thread.java:613)
Exception in thread "Thread-5" java.lang.RuntimeException: Error inside Capture.run()
     at processing.core.PApplet.die(PApplet.java:2192)
     at processing.core.PApplet.die(PApplet.java:2201)
     at processing.video.Capture.errorMessage(Capture.java:429)
     at processing.video.Capture.run(Capture.java:372)
     at java.lang.Thread.run(Thread.java:613)


anyone ever encounter something like this?

many thanks in advance,
ron
Re: connecting more than 3 cameras - QT error
Reply #1 - Sep 15th, 2009, 9:12am
 
I am new to processing, and I am araid I can not help, however I was wondering if you could share your code as I am trying to do a similar thing but with only 2 cameras?
Re: connecting more than 3 cameras - QT error
Reply #2 - Oct 12th, 2009, 4:21am
 
Please share the camera code! I am going to connect 3 cameras to my sketch and then try 2 more with the help of a friend.

Will then share my code too!
Page Index Toggle Pages: 1