Hi,
i'm trying to crop a Movie.
i searched a lot on this topic but i couldnt get an anserwer hopefully someone here can help me.
I have an ArrayList of Movies to switch between them. Playing the movies is no problem but when I try to corp them and play the croped video only the first frame is displayed.
My attempt(Processing 2.0.3):
import processing.video.*;
ArrayList<Movie> movies;
int activeMovie = 0;
void setup ()
{
movies = new ArrayList<Movie>();
movies.add(new Movie(this, "flickerConverted.mov"));
float percent = 0.5;
}
void draw ()
{
PImage temp = movies.get(activeMovie).get(0,0,1920,(int)(1080 * percent));
image(temp,0,img_height/2f, img_width,img_height/2f);
}
void movieEvent(Movie m) {
m.read();
}
Thanks!
i'm trying to crop a Movie.
i searched a lot on this topic but i couldnt get an anserwer hopefully someone here can help me.
I have an ArrayList of Movies to switch between them. Playing the movies is no problem but when I try to corp them and play the croped video only the first frame is displayed.
My attempt(Processing 2.0.3):
import processing.video.*;
ArrayList<Movie> movies;
int activeMovie = 0;
void setup ()
{
movies = new ArrayList<Movie>();
movies.add(new Movie(this, "flickerConverted.mov"));
float percent = 0.5;
}
void draw ()
{
PImage temp = movies.get(activeMovie).get(0,0,1920,(int)(1080 * percent));
image(temp,0,img_height/2f, img_width,img_height/2f);
}
void movieEvent(Movie m) {
m.read();
}
Thanks!