Video Library -- don't work ,why?
in
Core Library Questions
•
3 years ago
I can't work a movie file.
mov file is (H.263,176x144,MP3,128kbps)
---Scetch---
import processing.video.*;
Movie myMovie;
void setup() {
size(500, 500);
myMovie = new Movie(this, "pfm.mov");
myMovie.play();
//myMovie.play();
}
void draw() {
//tint(255, 20);
image(myMovie, 10, 10);
}
// Called every time a new frame is available to read
void movieEvent(Movie m) {
m.read();
}
--error message--
processing.app.debug.RunnerException: ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:582)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at sun.awt.image.IntegerInterleavedRaster.setDataElements(IntegerInterleavedRaster.java:404)
at processing.core.PGraphicsJava2D$ImageCache.update(Unknown Source)
at processing.core.PGraphicsJava2D.imageImpl(Unknown Source)
at processing.core.PGraphics.image(Unknown Source)
at processing.core.PApplet.image(Unknown Source)
at movie_test.draw(movie_test.java:34)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
mov file is (H.263,176x144,MP3,128kbps)
---Scetch---
import processing.video.*;
Movie myMovie;
void setup() {
size(500, 500);
myMovie = new Movie(this, "pfm.mov");
myMovie.play();
//myMovie.play();
}
void draw() {
//tint(255, 20);
image(myMovie, 10, 10);
}
// Called every time a new frame is available to read
void movieEvent(Movie m) {
m.read();
}
--error message--
processing.app.debug.RunnerException: ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:582)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at sun.awt.image.IntegerInterleavedRaster.setDataElements(IntegerInterleavedRaster.java:404)
at processing.core.PGraphicsJava2D$ImageCache.update(Unknown Source)
at processing.core.PGraphicsJava2D.imageImpl(Unknown Source)
at processing.core.PGraphics.image(Unknown Source)
at processing.core.PApplet.image(Unknown Source)
at movie_test.draw(movie_test.java:34)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
3