Problems playing video on Raspberry Pi

edited December 2016 in Raspberry PI

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

Sign In or Register to comment.