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
Macbook Pro internal Cam (Read 2296 times)
Macbook Pro internal Cam
Aug 31st, 2007, 12:32pm
 
pretty new in processing and tried to get a list of devices for my macbook pro (10.4) by typing:

println(Capture.list());

get this failure notice:
/tmp/build25137.tmp/Temporary_7870_2041.java:1:298:1:304: Semantic Error: No accessible field named "Capture" was found in type "Temporary_7870_2041"

i get this notice a lot of times...?!

Re: Macbook Pro internal Cam
Reply #1 - Aug 31st, 2007, 8:38pm
 
Hi, welcome to the processing community. Smiley

if you check in http://processing.org/reference/libraries/video/Capture_list_.html , you'll find an example that is working.
Re: Macbook Pro internal Cam
Reply #2 - Aug 31st, 2007, 10:35pm
 
well hi, thanks for the fast reply...

i tried the code shown on the link and i get a blank applet window and this error code:

Exception in thread "Thread-2" java.lang.NoClassDefFoundError: quicktime/internal/jdirect/Linker
at quicktime.jdirect.QTNative.linkNativeMethods(QTNative.java:15)
Re: Macbook Pro internal Cam
Reply #3 - Sep 1st, 2007, 3:52am
 
Try this code with Processing 125.

Quote:
import processing.video.*;

Capture video;

void setup() {
 size(640, 480, P3D);
 frameRate(25);
 
 // print(Capture.list());
 
 String myCam = "USB Video Class Video";
 // This is for the iSight but you can change
 // the above string value to any available
 // capture device connected to your computer
 // shown in your Processing Console.
 
 video = new Capture(this, 640, 480, myCam, 25);
 // For speed purpose you can replace
 // 640 and 480 to any other resolution.
}

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

void draw() {
background(0);
image(video,0,0,width,height);
}


If it doesn't work, you probably have a problem with QuickTime.

What is your OS X/JAVA/QT version ?
Re: Macbook Pro internal Cam
Reply #4 - Sep 1st, 2007, 8:45pm
 
this is what i get:

Exception in thread "Thread-2" java.lang.NoClassDefFoundError: quicktime/internal/jdirect/Linker at quicktime.jdirect.QTNative.linkNativeMethods(QTNative.java:15)


Damn. why has it allways to be my machine where nothing works.. maybe i screwed?

i put the processing app in the applications folder - nothing wrong with that?!

OS 10.4.10, QT 7.2, J2SE50 Release3 installed.
Re: Macbook Pro internal Cam
Reply #5 - Sep 2nd, 2007, 7:40am
 
Try to reinstall Quicktime

http://www.apple.com/support/downloads/quicktime72formac.html
Re: Macbook Pro internal Cam
Reply #6 - Sep 2nd, 2007, 8:49am
 
yeah!!!

working now after reinstall of qt...

thanks very much for your patience!

Re: Macbook Pro internal Cam
Reply #7 - Sep 2nd, 2007, 10:00am
 
Good news Wink

Most of the problems with video in Processing on Mac are related to Quicktime.

Reinstalling it often solve the issues.
bump
Reply #8 - Sep 23rd, 2007, 8:44pm
 
This was incredibly helpful to find. I had the same issue on my macbook pro (it crops up with any camera you plug in). Strangest part about the problem is it seemed to begin spontaneously, and never cropped up on the mac pros in my office that have the same software specs.
Page Index Toggle Pages: 1