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.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › Video Capture without displaying it on the stage
Page Index Toggle Pages: 1
Video Capture without displaying it on the stage (Read 871 times)
Video Capture without displaying it on the stage
Feb 22nd, 2008, 8:55am
 
Im working on a project right now that I would like to capture video when audio reaches a certain level. This works for the most part thanks to the sonia library.

However, I'm wondering if theres a way I can record what the webcam sees without actually displaying it on the screen. Right now Im looking at the MovieMaker which is just taking everything and dumping it into a quicktime movie.

Any suggestions?
Re: Video Capture without displaying it on the sta
Reply #1 - Feb 27th, 2008, 2:15am
 
well, there's (http://dev.processing.org/reference/everything/javadoc/processing/video/MovieMaker.html )
public void addFrame(int[] _pixels, int w, int h), so maybe you can feed it with the cam-image directly...
addFrame(cam.pixels, cam.width, cam.height);
haven't tried this though.
Re: Video Capture without displaying it on the sta
Reply #2 - Mar 25th, 2009, 8:50pm
 
if people are trying to change the width or the hight for the capture movie, you will get the error; "Animation Thread"java.lang.ArrayIndexOutOfBoundsException"

use this; addFrame(int[] _pixels,int w,int h) and it will work
Page Index Toggle Pages: 1