transitlab

18 Sep, 2008

processing as a quick video capture program on OSX

Posted by: brian In: electronics

Processing.org has a nice video capture library that is suitable for quick videos for documentation, I am using it to capture some arduino experiments with the external isight camera

call and response

code follows….

//import processing.video.*;

MovieMaker mm; //the moviemaker container
Capture myCapture; //your webcam, isight

void setup() {
size(320, 240);

myCapture = new Capture(this, width,height);
//myCapture.settings(); uncomment this if you want to select the video source
mm = new MovieMaker(this, width, height, “callandresponse2.mov”,30,MovieMaker.H263, MovieMaker.HIGH); // Save compressed, at 30 frames per second, h263, high quality

}

void captureEvent(Capture myCapture) {
myCapture.read();
}

void draw() {
image(myCapture,0,0);
// Add window’s pixels to movie
mm.addFrame();
}

void keyPressed() {
if (key == ‘ ‘) {
// Finish the movie if space bar is pressed
mm.finish();
// Quit running the sketch once the file is written
exit();
}
}

Share

No Responses to "processing as a quick video capture program on OSX"

Comment Form

About

Brian Degger is a technologist/artist, he writes, thinks and makes around themes of interactivity, biomimicracy, and collaboration

RSS 25sg residency

Asides

PDF import and editing in openoffice
One function I have found useful in openoffice is the ability to import pdfs. This is possible by downloading and installing the pdfimport plugin. This means that you can import a pdf, edit it then output it at a lower resolution for screen. (2)

miniFM

miniFM
In the foreground is a Tetsuo Kogawa version (built during RadioCraftLab, during AVFest08) and in the back the remix by sonodrome (built last week at Sonodrome Central). Both assembled by me.
Reblog this post [with Zemanta]
(0)

Bioplastic
Jay Cousins and friends had a hackday around bioplastics and laser cutting. Making the bioplastic from starch and glycerin (see this link for more details) and then laser cutting them. Cool stuff, they were even making different color ones. This is important as people move from using commercially sourced plastic in their makerbots to something else. Plastic is expensive to buy for these machines, but it is all around. SO be it bio-plastic or post waste plastic, ways of reusing these provide a compelling reason to throw away less waste. It is amazing that these materials are coming out of the factories, to be used in domestic situations. Together with polymorph and sugru, there are a variety of materials to play around for wearables, for prototypes and one offs. Bring on the future, with peer production.

Reblog this post [with Zemanta]
(0)

augmented foraging - cool use of layar -

augmented foraging Originally uploaded by _foam A mobile phone guide to edible urban wild-food sources.
Amsterdam urban_ edibles is developing Augmented_Foraging, a  mobile phone guide to wild-food sources using Layar. Much better use of this program than finding property in Amsterdam (unless you live there of course)!
Reblog this post [with Zemanta]
(2)