Hi, I’m trying to resize a video before displaying it.
The original video is 100x200px.
If I resize to 100x100px it crops the top part, looks good.
If I resize to 50x100px (50% proportionally for each dimension), it crops one part instead of resizing and it looks it’s doing some interlacing.
Why is cropping instead of resizing, and what can this interlacing effect be due to?
That’s the code:
import processing.video.*;
Movie movie;
void setup() {
size(320, 640);
noStroke();
noSmooth();
movie = new Movie(this, "waves3.mp4");
movie.loop();
}
void movieEvent(Movie m) {
m.read();
m.resize(50, 100);
}
void draw() {
background(0);
movie.resize(50, 100);
image(movie, 0, 0);
}