We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Basic Video Capture help please! (Read 921 times)
Basic Video Capture help please!
Nov 24th, 2008, 9:56pm
 
Hi, I'm trying to run some code that will just capture video into a quicktime file. Basic stuff, right?

I'm using the code below (a mix of movie maker/capture event stuff) and I get this error when it runs:

[000:001] Error(magiccammac.cc:265): MagicCam 0: MagicCamOpen: Not an allowed process!

[000:000] Error(magiccammac.cc:265): MagicCam 1: MagicCamOpen: Not an allowed process!

Here's my code:

import processing.video.*;
Capture cam;
MovieMaker mm;  // Declare MovieMaker object

void setup() {
 size(320, 240);
 // Create MovieMaker object with size, filename,
 // compression codec and quality, framerate
 mm = new MovieMaker(this, width, height, "drawing.mov",
                      30, MovieMaker.H263,MovieMaker.HIGH);
 cam = new Capture(this, 320, 240);
}

void draw() {
 if (cam.available() == true) {
   cam.read();
 image(cam, 0, 0);
 
 mm.addFrame();  // Add window's pixels to movie
 }
}

void keyPressed() {
 if (key == ' ') {
   mm.finish();  // Finish the movie if space bar is pressed!
 }
}

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



Any thoughts on what I'm doing wrong or what that error means?

Thanks so much for your help!!
Re: Basic Video Capture help please!
Reply #1 - Dec 2nd, 2008, 4:32am
 
Weird! It works for me.  Do you have WINDVIG installed?  that might be it, but Im NO expert.

Good luck

M
Page Index Toggle Pages: 1