# GLVideo not working on Pi 4 running Processing 3.5.3

**URL:** https://discourse.processing.org/t/glvideo-not-working-on-pi-4-running-processing-3-5-3/13661
**Category:** Processing for Pi
**Created:** [August 28, 2019, 1:53am UTC](https://discourse.processing.org/t/glvideo-not-working-on-pi-4-running-processing-3-5-3/13661 "2019-08-28T01:53:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ukc10014](https://avatars.discourse-cdn.com/v4/letter/u/f07891/32.png) [@ukc10014](https://discourse.processing.org/u/ukc10014)
#### Post date: [August 28, 2019, 1:53am UTC](https://discourse.processing.org/t/glvideo-not-working-on-pi-4-running-processing-3-5-3/13661/1 "2019-08-28T01:53:17Z")

</div>

Sorry if this has been asked, but I can’t find anything recent.

I am trying to get @gohai contributed library GLVideo (downloaded from github) working on Processing 3.5.3 running on Raspberry Pi 4 running Debian 10.0. I am using the SingleVideo sketch from the repository (code copied below). The first time I run it (after a reboot) it creates the sketch window, as well as a second mouse cursor arrow that weirdly follows my arrow around (!). I have copied below the console, showing the eventual error that halts the program.

Subsequently when I run the program, the sketch window doesn’t appear and nothing happens.

I’m not quite sure where to start on the possible problem, other than re-installing processing/GLvideo/gstreamer.

Thank you!

----------------------------------SingleVideo.pde CODE---------------------

import gohai.glvideo.\*;  
GLMovie video;  
boolean forward = true;

void setup() {  
size(560, 406, P2D);  
video = new GLMovie(this, “launch1.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);  
}  
}

----------------------------------CONSOLE LOG---------------------------

Final caps: video/x-raw(memory:GLMemory), format=(string)RGBA, width=(int)560, height=(int)406, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30000/1001, texture-target=(string)2D  
RunnableTask.run(): A caught exception occured on thread main-Display-.x11\_:0.0-2-EDT-1: RunnableTask[enqueued true[executed false, flushed false], tTotal 0 ms, tExec 0 ms, tQueue 0 ms, attachment null, throwable java.lang.RuntimeException: Waited 5000ms for: \<6b4b4f, 153a1b7\>[count 1, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>] - \<main-Display-.x11\_:0.0-2-EDT-1\>]  
java.lang.RuntimeException: Waited 5000ms for: \<6b4b4f, 153a1b7\>[count 1, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>] - \<main-Display-.x11\_:0.0-2-EDT-1\>  
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)  
at jogamp.newt.WindowImpl.getLocationOnScreen(WindowImpl.java:1159)  
at jogamp.newt.driver.x11.X11UnderlayTracker.windowMoved(X11UnderlayTracker.java:141)  
at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4386)  
at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4317)  
at jogamp.newt.WindowImpl.positionChanged(WindowImpl.java:4558)  
at jogamp.newt.WindowImpl.sizePosMaxInsetsVisibleChanged(WindowImpl.java:4865)  
at jogamp.newt.driver.x11.DisplayDriver.DispatchMessages0(Native Method)  
at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:112)  
at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4449)  
at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4443)  
at jogamp.newt.WindowImpl.createNative(WindowImpl.java:777)  
at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:1248)  
at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:1318)  
at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:127)  
at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:375)  
DefaultEDT.run(): Caught exception occured on thread main-Display-.x11\_:0.0-2-EDT-1: RunnableTask[enqueued false[executed true, flushed false], tTotal 16328 ms, tExec 16328 ms, tQueue 0 ms, attachment null, throwable java.lang.RuntimeException: Waited 5000ms for: \<6b4b4f, 153a1b7\>[count 1, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>] - \<main-Display-.x11\_:0.0-2-EDT-1\>]  
java.lang.RuntimeException: Waited 5000ms for: \<6b4b4f, 153a1b7\>[count 1, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>] - \<main-Display-.x11\_:0.0-2-EDT-1\>  
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)  
at jogamp.newt.WindowImpl.getLocationOnScreen(WindowImpl.java:1159)  
at jogamp.newt.driver.x11.X11UnderlayTracker.windowMoved(X11UnderlayTracker.java:141)  
at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4386)  
at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4317)  
at jogamp.newt.WindowImpl.positionChanged(WindowImpl.java:4558)  
at jogamp.newt.WindowImpl.sizePosMaxInsetsVisibleChanged(WindowImpl.java:4865)  
at jogamp.newt.driver.x11.DisplayDriver.DispatchMessages0(Native Method)  
at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:112)  
at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4449)  
at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4443)  
at jogamp.newt.WindowImpl.createNative(WindowImpl.java:777)  
at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:1248)  
at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:1318)  
at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:127)  
at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:375)  
java.lang.RuntimeException: Waited 5000ms for: \<6b4b4f, 153a1b7\>[count 1, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>] - \<main-Display-.x11\_:0.0-2-EDT-1\>  
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)  
at jogamp.newt.WindowImpl.getLocationOnScreen(WindowImpl.java:1159)  
at jogamp.newt.driver.x11.X11UnderlayTracker.windowMoved(X11UnderlayTracker.java:141)  
at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4386)  
at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4317)  
at jogamp.newt.WindowImpl.positionChanged(WindowImpl.java:4558)  
at jogamp.newt.WindowImpl.sizePosMaxInsetsVisibleChanged(WindowImpl.java:4865)  
at jogamp.newt.driver.x11.DisplayDriver.DispatchMessages0(Native Method)  
at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:112)  
at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:753)  
at jogamp.newt.DisplayImpl$7.run(DisplayImpl.java:672)  
at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:347)  
RuntimeException: Waited 5000ms for: \<6b4b4f, 153a1b7\>[count 1, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>] - \<main-Display-.x11\_:0.0-2-EDT-1\>

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [August 28, 2019, 9:56am UTC](https://discourse.processing.org/t/glvideo-not-working-on-pi-4-running-processing-3-5-3/13661/2 "2019-08-28T09:56:56Z")

</div>

did you notice that:

> gohai Gottfried Haider:  
> Not active here any longer (and won’t be notified if you mention me).

no idea if there will be help from anybody soon?

i could verify your problem:  
all GStreamer related sketch **not run** on my RPI3B+  
testing under RASPBIAN stretch AND buster

++ while camera and capture sketch works  
++ also use the new VLC app on RPI to check if can play the video-file in question without problem.

* * *

i tried to play with that and failed ( but not fully )  
so i do not recommend, but you might follow me [here](http://kll.engineering-news.org/kllfusion01/articles.php?article_id=160)

---

<div class="post-metadata">

### Author: ![ukc10014](https://avatars.discourse-cdn.com/v4/letter/u/f07891/32.png) [@ukc10014](https://discourse.processing.org/u/ukc10014)
#### Post date: [August 29, 2019, 12:23am UTC](https://discourse.processing.org/t/glvideo-not-working-on-pi-4-running-processing-3-5-3/13661/3 "2019-08-29T00:23:20Z")

</div>

Hello! thank you for that, I will check out VLC but it likely won’t work for me (I want to manipulate the image in real time). I will also try to install OpenFrameworks though that is C++ based I think so bit more of a hassle. Thank you anyway !

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [August 29, 2019, 12:40am UTC](https://discourse.processing.org/t/glvideo-not-working-on-pi-4-running-processing-3-5-3/13661/4 "2019-08-29T00:40:33Z")

</div>

> [@ukc10014](#):
>
> I will check out VLC but it likely won’t work for me

sorry, the VLC player app i just used to check if the example video file is good?  
means playable on this hardware and OS.

did you repair your processing glvideo lib with my hack?
