here, with this code:
- import processing.video.*;
- Capture video;
- void setup()
- {
- size(960,720,P2D);
- println(Capture.list());
- video = new Capture(this, width, height, 24);
- frameRate(24);
- }
- void draw()
- {
- image(video,0,0);
- if(video.available())
- {
- video.read();
- }
- }
i get this output in console and a frame with video from built in camera of my mac book
[0] "DV Video"
[1] "DVCPRO HD (1080i50)"
[2] "DVCPRO HD (1080i60)"
[3] "DVCPRO HD (720p25/50)"
[4] "DVCPRO HD (720p60)"
[5] "IIDC FireWire Video"
[6] "USB Video Class Video"
2012-09-25 23:02:48.419 java[4950:14f37] WebKit Threading Violation - initial use of WebKit from a secondary thread.
DVFreeThread - CFMachPortCreateWithPort hack = 0x1e51b0, fPowerNotifyPort= 0x1e4b00
DVFreeThread - CFMachPortCreateWithPort hack = 0x1ecb50, fPowerNotifyPort= 0x1ecc60
DVFreeThread - CFMachPortCreateWithPort hack = 0x12242f0, fPowerNotifyPort= 0x1220c10
Same result changing line 10 to:
- video = new Capture(this, width, height,"USB Video Class Video", 24);
I assume those are the like "ports" that may have video attached to, they won't change if u plug or unplug stuff. In my setup the video (built in camera) works with almost all the list. They sure fail with "DV Video"...
anyone about this error (things works beside this...
2012-09-25 23:02:48.419 java[4950:14f37] WebKit Threading Violation - initial use of WebKit from a secondary thread.