I works!!

... on my Work iMac as opposed to my MacBook Air which I have been trying on all day :/
I have no idea what "component/framework/library/woodoo" I have installed on my iMac as opposed to my MacBook Air.
Same OS and version.
Same Java version.
Same Macam app.
Same Macam component.
Same Processing Libraries.
The only difference I can find is the plugin components in the Library/quicktime/ folder, there are a few more on the iMac. I will try copying all the components to the MacBook to see if that does anything.
Anyways.. any ideas as how to test the fps in Processing, now that I got the camera working.
I did this sketch, but I fear that video.available() does not change from true to false fast enough, leaving time for me to ask for a new picture more than once before it gets locked:
Code:/**
* PS3 EYE Speed Test
* by Ricki Gregersen (www.rickigregersen.com)
*
* Measure the frameRate possible with the Playstation EYE camera
*/
import processing.video.*;
Capture video;
float currentTime = 0.0;
float previousTime = 0.0;
int frame = 0;
float fps;
void setup()
{
size(320, 240);
frameRate(1000);
video = new Capture(this, width, height, "Sony HD Eye for PS3 (SLEH 00201)", 1000);
}
void draw()
{
currentTime = millis();
if (video.available())
{
video.read(); // Read a new video frame
frame++;
if( currentTime > previousTime + 1000 )
{
println(frame);
frame = 0;
previousTime = currentTime;
}
}
image(video, 0, 0);
}
Any good ways of measuring the fps, without affecting the result?
Cheers!