# White screen while loading video with GL Video

**URL:** <https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780>\
**Category:** Processing for Pi\
**Created:** [October 23, 2018, 2:37pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780 "2018-10-23T14:37:53Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashbacker](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@flashbacker](https://discourse.processing.org/u/flashbacker)\
**Post date:** [October 23, 2018, 2:37pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/1 "2018-10-23T14:37:54Z")

</div>

Hi,

I’m experiencing a white flash when loading a video with the GL Video library.  
I’ve checked with the singleVideo example and i’m getting the same behavior…  
I feel like it used to work without this flash in a previous version (i’m now up to date with latest versions).

Was it always like that and I didn’t pay attention or is it a new behavior? Any work around for this?

thanks!

---

<div class="post-metadata">

**Author:** ![gohai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gohai/32/25_2.png) [@gohai](https://discourse.processing.org/u/gohai)\
**Post date:** [October 25, 2018, 2:43am UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/2 "2018-10-25T02:43:39Z")

</div>

@flashbacker Are you testing with the prepared Raspbian image from [pi.processing.org](http://pi.processing.org)?

---

<div class="post-metadata">

**Author:** ![flashbacker](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@flashbacker](https://discourse.processing.org/u/flashbacker)\
**Post date:** [October 25, 2018, 6:46am UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/3 "2018-10-25T06:46:48Z")

</div>

Hi @gohai ,  
Yes i’m using the prepared image, otherwise I can’t get the video library to work at all.

---

<div class="post-metadata">

**Author:** ![gohai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gohai/32/25_2.png) [@gohai](https://discourse.processing.org/u/gohai)\
**Post date:** [October 25, 2018, 5:45pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/4 "2018-10-25T17:45:33Z")

</div>

@flashbacker

You could download and try older versions here: [https://github.com/gohai/processing-glvideo/releases](https://github.com/gohai/processing-glvideo/releases)

If you find one that exhibits a different behavior (using the same prepared image), please let me know. If not there is likely not much we can do about it at this point - but: Raspbian is in the process of switching over to a new graphics driver, and when this happens these quirks will hopefully be a thing of the past.

---

<div class="post-metadata">

**Author:** ![flashbacker](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@flashbacker](https://discourse.processing.org/u/flashbacker)\
**Post date:** [October 25, 2018, 6:20pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/5 "2018-10-25T18:20:17Z")

</div>

@gohai thanks i’ll give it a try and report my results.

In btw, here is how it looks

 ![IMG_20181025_104114](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/15f8a4c45d919c770429fed06003f8253c73d6eb.jpeg)

---

<div class="post-metadata">

**Author:** ![flashbacker](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@flashbacker](https://discourse.processing.org/u/flashbacker)\
**Post date:** [October 26, 2018, 4:34pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/6 "2018-10-26T16:34:52Z")

</div>

@gohai I’ve tried to install manually several older versions by just exchanging the glvideo folder in the libraries folder, but each time I get this error " the sketch is using a library which is not properly installed"  
Am I missing something on the way to do it? Could there be some dependencies configuration problems?

---

<div class="post-metadata">

**Author:** ![gohai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gohai/32/25_2.png) [@gohai](https://discourse.processing.org/u/gohai)\
**Post date:** [October 26, 2018, 9:18pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/7 "2018-10-26T21:18:29Z")

</div>

@flashbacker I realized that this is almost certainly because of a change in recent versions of Raspbian, that necessitated [a change](https://github.com/gohai/processing-glvideo/commit/5a63e2a15648f2a3e98021936bd0c9e3e14388b7) in the library, which earlier versions won’t have.

So, in order to test versions prior to `1.2.3` you’ll need a Raspbian that is older than `August 2017`.

E.g. the [image for Processing 3.3.3](https://github.com/processing/processing/releases/download/processing-0260-3.3.3/processing-3.3.3-linux-raspbian.zip).

---

<div class="post-metadata">

**Author:** ![flashbacker](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@flashbacker](https://discourse.processing.org/u/flashbacker)\
**Post date:** [October 27, 2018, 8:16am UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/8 "2018-10-27T08:16:11Z")

</div>

@gohai ok thanks for the info, it’s getting a bit longer to try it out now… 🙂  
I’ll check it out later and report here…  
Then let’s see if I have enough motivation to redo a full install for the 14 Pis I’m using for this project… 😃

---

<div class="post-metadata">

**Author:** ![aledante](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@aledante](https://discourse.processing.org/u/aledante)\
**Post date:** [March 19, 2021, 10:04pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/9 "2021-03-19T22:04:02Z")

</div>

Hi there!

I’m having the same problem. Does anybody find a solution?

Thanks

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [March 20, 2021, 9:54am UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/10 "2021-03-20T09:54:21Z")

</div>

Try the regular video library for processing. Also it would be helpful to know your setup, like are you using latest RaspberryPI OS. There’s no official support for the PI since Gottfreid Haider left. But I’ve been successfully running PiCrate on both RaspberryPI OS 32 bit and Manjaro ARM 64 bit and a development version of processing on Manjaro ARM [Video Capture on RaspberryPI4 with Manjaro Arm](https://discourse.processing.org/t/video-capture-on-raspberrypi4-with-manjaro-arm/21523). Be aware you need to follow me and install Sam Pottingers version rather than official alpha release (which has a spanner in works to prevent use on PI).

---

<div class="post-metadata">

**Author:** ![aledante](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@aledante](https://discourse.processing.org/u/aledante)\
**Post date:** [March 20, 2021, 2:10pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/11 "2021-03-20T14:10:16Z")

</div>

monkstone,

Thanks for the help. I’m using latest model of Raspberry 3 with raspbian. The only thing that I need is to play a video full screen when i get a message from a server in another computer.

**Using latest Raspbian with all updates**

- GlVideo library does not work.

- Standard Video library 1.3 doesn’t work

- Standard Video library 2.0 (manually installed, because installing through collaboration doesn’t work) plays videos but slow and losing a lot of frames.

**Using image downloaded from Processing/pi**

- Glvideo works perfect fullscreen without losing frames, but it flash with white when it loads a new video

I´ve also try using “exec()” and omxplayer but i couldn’t get it to work.

Pd. Excuse my english.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [March 21, 2021, 7:59am UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/12 "2021-03-21T07:59:42Z")

</div>

I know the @gohai GLVideo setup relies on the original graphics driver, the more recent video drivers work better with the accelerated drivers. It might be worth checking/experimenting with VC4 driver and the newer video libraries.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [March 24, 2021, 8:47am UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/13 "2021-03-24T08:47:34Z")

</div>

Perhaps you could just use [omxplayer](https://www.raspberrypi.org/documentation/raspbian/applications/omxplayer.md) via a script or something. likely to be a lot more efficient.

---

<div class="post-metadata">

**Author:** ![aledante](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@aledante](https://discourse.processing.org/u/aledante)\
**Post date:** [March 24, 2021, 10:18pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/14 "2021-03-24T22:18:44Z")

</div>

Could you tell me where i find and how i install VC4 driver?  
I was trying to use exec() function to play through omxplayer but I couldn’t.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [March 25, 2021, 7:11am UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/15 "2021-03-25T07:11:15Z")

</div>

You use `sudo raspi-config` on commandline, `Advanced Options` then `A2 Gldriver` and enable `GL Full KMS` then reboot. Any scripting language `python`, `bash` etc should allow you start up omxplayer.

---

<div class="post-metadata">

**Author:** ![aledante](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@aledante](https://discourse.processing.org/u/aledante)\
**Post date:** [July 31, 2021, 3:34pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780/16 "2021-07-31T15:34:32Z")

</div>

Thanks a lot. I solved it in another way, using different hardware.
