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.
Page Index Toggle Pages: 1
Trouble with a USB WebCam (Read 542 times)
Trouble with a USB WebCam
Aug 27th, 2007, 9:50pm
 
Hi,
I created a sketch using the video library, and am sure that the application is working correctly. It has been tested with about 6 cameras, three firewire DV camcorders and three firewire webcams. However I no longer have access to any of those cameras... I purchased a USB Logitech QuickCam Pro 5000; which does show up in Quicktimes File->New Movie Recording window, but in Processing it gives me the following error:

java.lang.RuntimeException: java.lang.NoClassDefFoundError: quicktime/internal/jdirect/Linker
at processing.opengl.PGraphicsOpenGL.requestDisplay(PGraphicsOpenGL.java:172)
at processing.core.PApplet.run(PApplet.java:1450)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoClassDefFoundError: quicktime/internal/jdirect/Linker
at quicktime.jdirect.QTNative.linkNativeMethods(QTNative.java:15)
at quicktime.QTSession$2.run(QTSession.java:121)
at java.security.AccessController.doPrivileged(Native Method)
at quicktime.QTSession$2PrivelegedAction.establish(QTSession.java:119)
at quicktime.QTSession.<clinit>(QTSession.java:126)
at processing.video.Capture.<init>(Capture.java:146)
at processing.video.Capture.<init>(Capture.java:114)
at Temporary_2565_9797$DetectMotion.<init>(Temporary_2565_9797.java:222)
at Temporary_2565_9797.setup(Temporary_2565_9797.java:67)
at processing.core.PApplet.handleDisplay(PApplet.java:1281)
at processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:221)
at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:281)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java
:298)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
69)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


It then highlights the line where I declare the capture... is it just this particular USB camera isn't compatible? what should I be looking for to see if a camera is compatible?

any help is greatly appreciated...
thanks.
Re: Trouble with a USB WebCam
Reply #1 - Aug 29th, 2007, 12:45am
 
it's a bug with apple's quicktime 7.2 update, reinstalling quicktime should fix it. if not, google for "NoClassDefFoundError: quicktime/internal/jdirect/Linker" which will turn up lots of reports of the bug causing trouble for others, and their solutions.
Page Index Toggle Pages: 1