ofVideoGrabber on mac

setDeviceID() and listDevices() don’t seem to work. I’ve a macbook pro, two external webcams phillips SPC1000NC and I cannot decide which of them should be associated to the ofVideoGrabber instance. Funny enough they always get selected in my stereovision test and I never get iSight (which is good) but I wouldn’t mind being able to set which should be the left and which the right. Is maybe a problem with Macam?

Cheers, chr

Try setVerbose(true);
It should then tell you what device ID your webcams are - usually it will be over 2 or 3 as there is some built in mac ones that usually get listed first.

http://www.openframeworks.cc/documentat-…-setVerbose

Cheers,
Theo

Hi Theo, creating two instances where each initialize itself in this way:

  
vidGrabber.setDeviceID(cameraId);  
vidGrabber.setVerbose(true);  
vidGrabber.listDevices();  
vidGrabber.initGrabber(width,height);  

in the output I get:

error in list devices, couldn’t allocate grabbing component
listing available capture devices
device[0] DV Video
device[1] IIDC FireWire Video
device[2] USB Video Class Video
device[0] in use - using next default device
device[1] in use - using next default device
attempting to setup device[2] - USB Video Class Video
using device[2] - USB Video Class Video
end setup ofVideoGrabber

error in list devices, couldn’t allocate grabbing component
listing available capture devices
device[0] DV Video
device[1] IIDC FireWire Video
device[2] USB Video Class Video
device[0] in use - using next default device
device[1] in use - using next default device
attempting to setup device[2] - USB Video Class Video
using device[2] - USB Video Class Video
end setup ofVideoGrabber

Does it means they have the same ID? If I remember well also iSight is managed by the USB Video Class. Any suggestions? I presume I could easily update a setting files based on the behavior of the computer but it sounds a bit as a bad hack.

Cheers, chr