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 › Storing a single frame of video to PImage instance
Page Index Toggle Pages: 1
Storing a single frame of video to PImage instance (Read 654 times)
Storing a single frame of video to PImage instance
Jul 14th, 2009, 2:36pm
 
Beginner question here:
I am trying to store a single frame of a Quicktime movie to a PImage object. I can load the video into a Movie variable, and then I tried using the movie.jump() and movie.get() to store a frame inside the PImage, but it always seems to just insert the playing video into the PImage variable.
Do I need to use movie.loadPixels() and store each pixel of the frame to a PImage to get it to stick?
My goal is create a simple program to read through a series of video frames and create a poster sized image of the frames in set number of rows and columns.
Re: Storing a single frame of video to PImage instance
Reply #1 - Jul 14th, 2009, 4:15pm
 
i think i cannot understand what are you trying to do.
anyway, do you know movie object will call movieEvent() every time a new frame from any of your movie instances is available?

may be you can get any movie frame there:

Code:

void movieEvent( Movie m )
{
yourMovie.read();
yourPImage = m;
}
Page Index Toggle Pages: 1