Josè
2012-08-16
I'm using the suggested win capture example:
/**
* Getting Started with Capture.
*
* GSVideo version by Andres Colubri.
*
* Reading and displaying an image from an attached Capture device.
*/
import codeanticode.gsvideo.*;
GSCapture cam;
void setup() {
size(720, 576);
String cameras = GSCapture.list();
if (cameras.length == 0)
{
println("There are no cameras available for capture.");
exit();
} else {
println("Available cameras:");
for (int i = 0; i < cameras.length; i++) {
println(cameras_);
}
// cam = new GSCapture(this, 320, 240, cameras);
cam = new GSCapture(this, 720, 576, cameras);
cam.start();
// println(cam.getSource());
/*
// You can get the resolutions supported by the
// capture device using the resolutions() method.
// It must be called after creating the capture
// object.
int res = cam.resolutions();
for (int i = 0; i < res.length; i++) {
println(res + "x" + res);
}
*/
/*
// You can also get the framerates supported by the
// capture device:
String fps = cam.framerates();
for (int i = 0; i < fps.length; i++) {
println(fps);
}
*/
}
}
void draw() {
// println(int(cam.ready()));
println(int(cam.available()));
if (cam.available() == true) {
cam.read();
image(cam, 0, 0,720,576);
// The following does the same, and is faster when just drawing the image
// without any additional resizing, transformations, or tint.
//set(100, 100, cam);
}
}
When I connect an USB webCam the video is captured very well
but when I connect an EasyCAP USB video grabber
if I print cameras list by:GSCapture.list() :
Available cameras:
OEM Capture
no error message
but the in draw section cam.avalaible() return always false and no frame are displayed
System = win7 32 bit _