Processing has
one video library for
.mov only. JMyron and LibCV are for capturing data from web cams and video cameras.
Open your version of Procesing. Goto the menu bar and select:
File > Sketchbook > Examples > Library-Video > Movie
This loads a sketch with a .mov file for you to work on. From the menu bar goto Sketch > Show Sketch Folder or press Ctrl+K. Note that the .mov file is in a folder called "data". The .mov you will work on is going to go here.
Replace the code you have loaded with this:
Code:
import processing.video.*;
Movie myMovie;
float pos = 0.0;
float step = 1.0 / 24;
void setup()
{
size(200, 200);
background(0);
// Load and play the video in a loop
myMovie = new Movie(this, "station.mov");
myMovie.loop();
// The pause() command is problematic for frame advance,
// use this syntax instead.
myMovie.speed(0);
}
void movieEvent(Movie myMovie) {
myMovie.read();
}
void draw() {
image(myMovie, 20, 40);
}
void mousePressed(){
// This code advances the movie by 1/24 of a second.
pos = (pos + step) % myMovie.duration();
myMovie.jump(pos);
}
Use your 3rd party software to convert your movies to .mov or export them as frames and tackle the frames one by one.
Few people have tackled .mov file analysis in Processing but if you look up projects involving web-cams you will find yourself at the precipice of a chasm full of projects. Hands up who's done a Processing web-cam project (*sea of hands go up).
Shiffman has a
library for recording sketches as movies if you want to export back out as a movie.