We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Im running Processing v3.1.1 on a Raspberry Pi. Im really happy with it apart from one thing, playing video. I know this is possible in other software but Id really like to get it working.
Progress so far:
Added the video library and tried:
import processing.video.*;
Movie test;
void setup() {
size(1000,1000);
background(0);
test = new Movie(this, "launch1.mp4");
test.loop();
test.volume(0);
}
void movieEvent(Movie m) {
m.read();
}
void draw() {
image(test, 0, 0, width, height);
}
All I get is a blank screen. Also tried adding the GL video tool. Then tried the examples that come with it but every time, I get the following error message:
libEGL warning: DRI2: failed to authenticate
java.lang.RuntimeException: java.lang.ClassNotFoundException: Failed to find NEWT Display Class <.bcm.vc.iv.DisplayDriver>
at jogamp.newt.DisplayImpl.create(DisplayImpl.java:314)
at com.jogamp.newt.NewtFactory.createDisplay(NewtFactory.java:167)
at com.jogamp.newt.NewtFactory.createDisplay(NewtFactory.java:149)
at processing.opengl.PSurfaceJOGL.initDisplay(PSurfaceJOGL.java:150)
at processing.opengl.PSurfaceJOGL.initFrame(PSurfaceJOGL.java:136)
at processing.core.PApplet.initSurface(PApplet.java:10402)
at processing.core.PApplet.runSketch(PApplet.java:10289)
at processing.core.PApplet.main(PApplet.java:10024)
Caused by: java.lang.ClassNotFoundException: Failed to find NEWT Display Class <.bcm.vc.iv.DisplayDriver>
at jogamp.newt.DisplayImpl.getDisplayClass(DisplayImpl.java:277)
at jogamp.newt.DisplayImpl.create(DisplayImpl.java:285)
... 7 more
Im a bit lost now and would really appreciate it if someone could help! Many thanks!
Answers
have you read the comments on video here?:
https://github.com/processing/processing/wiki/Raspberry-Pi
example here
https://github.com/gohai/processing-glvideo/blob/master/examples/SingleVideo/SingleVideo.pde
uses gohai.glvideo video library rather than processing.video