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 & HelpIntegration › camera - error: StdQTException
Page Index Toggle Pages: 1
camera - error: StdQTException (Read 3115 times)
camera - error: StdQTException
Oct 22nd, 2006, 2:14pm
 
hej all: I have problems with using the video library. I have quicktime 7 & WinVDIG 1.01 installed but things don't run:


I tried the example:



import processing.video.*;
Capture myCapture;

void setup()
{
 size(200, 200);
 // The name of the capture device is dependent those
 // plugged into the computer. To get a list of the
 // choices, uncomment the following line
 // println(Capture.list());
 String s = "Logitech QuickCam Messenger-WDM";
 myCapture = new Capture(this, s, width, height, 30);
}

void captureEvent(Capture myCapture) {
 myCapture.read();
}

void draw() {
 image(myCapture, 0, 0);
}



and I got this error message:



quicktime.std.StdQTException[QTJava:6.1.5g],-50=paramErr,QT.vers:7138000
at quicktime.std.StdQTException.checkError(StdQTException.java:38)


any suggestions?

thanks in advance:
koji
Re: camera - error: StdQTException
Reply #1 - Oct 23rd, 2006, 3:46pm
 
do you have a "Logitech QuickCam Messenger-WDM"? if not, you need to follow the instructions in the code and put in the name of your camera that shows up from Capture.list().

or, you can remove the 's' parameter altogether, and it will use the default input.
Re: camera - error: StdQTException
Reply #2 - Oct 23rd, 2006, 6:28pm
 
hej fry, thanks for your reply. I tested the code today again in the processing ide and strangly enough it works, but I use eclipse for programming processing and there is still the error message:

java.lang.NoClassDefFoundError: quicktime/std/StdQTException
at myClasses.Core.setup(Core.java:14)
at processing.core.PApplet.handleDisplay(PApplet.java:1237)
at processing.core.PGraphics.requestDisplay(PGraphics.java:568)
at processing.core.PApplet.run(PApplet.java:1406)
at java.lang.Thread.run(Unknown Source)


it stucks already at the println( Capture.list() );:

import processing.video.*;
Capture myCapture;

void setup()  
{
 size(200, 200);  
 println(Capture.list());

}


thanks & best regards,
koji.
java.lang.UnsatisfiedLinkError: no QTJava in java
Reply #3 - Oct 25th, 2006, 2:40am
 
hello again, I steped one step closer but there is still a problem. I forgot to specify the QTJava.zip to the library. now I get this errormessage:

Error while running applet.
java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: no QTJava in java.library.path
     at processing.opengl.PGraphicsOpenGL.requestDisplay(PGraphicsOpenGL.java:245)
     at processing.core.PApplet.run(PApplet.java:1406)
     at java.lang.Thread.run(Unknown Source)


would be thankfull for help. koji





EDIT: CLOSE;

I PUT THE QTJAVA.DLL IN THE FOLDER YOU GET WITH THIS:
System.out.println(System.getProperty("java.library.path"));
NOW IT WORKS.
Re: camera - error: StdQTException
Reply #4 - Mar 15th, 2008, 10:32pm
 
Judging by:
http://www.oreillynet.com/mac/blog/2006/12/explaining_the_quartz_composer.html

On mac use:

import quicktime.*;
void setup(){
try{
// initialise qt - on a mac only?
           QTSession.open();
}
catch (Exception e) {
           e.printStackTrace();
}
}
Page Index Toggle Pages: 1