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.
Page Index Toggle Pages: 1
Java problems related to video import (Read 523 times)
Java problems related to video import
Mar 28th, 2009, 3:15am
 
Attempting to read video using the following, worked momentarily then followed by a series of error messages.
Here's the code and the jave error
any assistance appreciated

import processing.video.*;
Movie myMovie;

void setup() {
 size(320, 240);
 background(0);
 myMovie = new Movie(this, "sequence 3.mov");
 myMovie.loop();
}

void draw() {
 image(myMovie, 0, 0);
}

// Called every time a new frame is available to read
void movieEvent(Movie m) {
 m.read();
}
Error Message
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
     at sun.awt.image.IntegerInterleavedRaster.setDataElements(IntegerInterleavedRaster.
java:416)
     at processing.core.PGraphicsJava2D$ImageCache.update(PGraphicsJava2D.java:930)
     at processing.core.PGraphicsJava2D.imageImpl(PGraphicsJava2D.java:808)
     at processing.core.PGraphics.image(PGraphics.java:2182)
Page Index Toggle Pages: 1