Wednesday, March 3, 2010

Looking Back at Almost perfect...


Hey I'm on TV.... ;)

Ladybug Woes on a Mac




http://sourceforge.net/projects/libdc1394/files/

Been working with the Libdc1394 version 2 library thanks to a tip (thanks Louis!) and am trying to get the ladybug working with Max/MSP. The OSX port of Libdc seems fine until you try to capture a series of images and I get a "bus Error". Tried posting to the forums, no luck, but I solved it, it seems there's an error in the "BASENAME" string in the Sprintf function. If you change:
sprintf(filename,"%s-%05d-%d-%d.jpg",BASENAME,i,cam,k);
to
sprintf(filename,"%04d-%d-%d.jpg",i,cam,k);

AND
sprintf(filename,"%s-%05d.raw",BASENAME,i);
to
sprintf(filename,"%04d.raw",i);

Tah-Dah, it works (though it drops all your frames in your current folder... sorry about that). Will try and figure out how to get that running soon, and then, on to getting it running with Max/MSP.