2

I'm trying to play a video on Processing 3.5.3 with the GLvideo library, but I am getting an error message that Processing cannot load GStreamer.

import gohai.glvideo.*;
GLMovie video;
boolean forward = true;
void setup() {
 size(560, 406, P3D);
 video = new GLMovie(this, "vid.mp4");
 video.loop();
}
void draw() {
 background(0);
 if (video.available()) {
 video.read();
 }
 image(video, 0, 0, width, height);
}
void mousePressed() {
 forward = !forward;
 if (forward == true) {
 video.speed(1.0);
 } else {
 video.speed(-1.0);
 }
}

the error message reads

GLVideo requires the P2D or P3D renderer.
(java:8347): GLib-CRITICAL **: 21:49:40.265: g_error_free: assertion 'error != NULL' failed
RuntimeException: Could not load GStreamer

I'm new to working with Processing on Raspberry Pi, so it may be a simple fix that I'm missing.

any insight? thanks!

Ingo
43k20 gold badges87 silver badges207 bronze badges
asked Feb 10, 2020 at 3:05
2
  • Where is the problem with Raspberry Pi? Commented Feb 10, 2020 at 13:20
  • @Ingo the same sketch runs fine on my mac, I'm using GLVideo because the rPi doesn't support the original video library Commented Feb 11, 2020 at 14:21

1 Answer 1

2

I was facing the same problem. Found out that Video and GLVideo from contribution manager not working anymore, instead I downloaded Video library from Github and now examples from Video library are working, but slow. Also, in the GLVideo examples I replaced the GLVideo for Video.

Check this thread also

answered Feb 10, 2020 at 17:06

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.