# Video library problem with RP4

**URL:** <https://discourse.processing.org/t/video-library-problem-with-rp4/16372>\
**Category:** Processing for Pi\
**Created:** [December 13, 2019, 2:29pm UTC](https://discourse.processing.org/t/video-library-problem-with-rp4/16372 "2019-12-13T14:29:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdarias](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jdarias/32/3484_2.png) [@jdarias](https://discourse.processing.org/u/jdarias)\
**Post date:** [December 13, 2019, 2:29pm UTC](https://discourse.processing.org/t/video-library-problem-with-rp4/16372/1 "2019-12-13T14:29:46Z")

</div>

Installed processing on my Raspberrry Pi 4 following the instructions to [Install Processing onto existing installation](https://pi.processing.org/download/)

Downloaded the processing video library, ran the sketch i´m working on, and it doesn´t work (same code works on windows without any problem and been using it regularly):

- Video doesn’t play,
- Using .duration() throws 0.0 which causes a lot of trouble

My hypothesis is that since processing installs without dependencies, it must be a problem with the gstreamer framework that the video library relies on, probably the java bindings or something like that.

Or maybe it just doesn’t work on the Pi?

Please help me out. Here’s a code test to illustrate the point above…

```auto
import processing.video.*;

Movie mimovie;

void setup() {
  size (800,600);
  mimovie = new Movie ( this, "video.mp4" );
  mimovie.play();
  println(mimovie.duration());
}

void draw() {
  image(mimovie, 0, 0);
}

void movieEvent (Movie mimovie) {
  mimovie.read();
}

```

Edit: clarity

---

<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:** [December 13, 2019, 2:45pm UTC](https://discourse.processing.org/t/video-library-problem-with-rp4/16372/2 "2019-12-13T14:45:20Z")

</div>

if you used the latest RASPBIAN BUSTER IMAGE  
2019-09-26-raspbian-buster-full.zip  
and install processing

```auto
curl https://processing.org/download/install-arm.sh | sudo sh

```

please not install video or GLvideo from contribution manager  
use  
from  
[https://github.com/processing/processing-video/releases](https://github.com/processing/processing-video/releases) ,

[https://github.com/processing/processing-video/releases/download/r6-v2.0-beta4/video-2.0-beta4.zip](https://github.com/processing/processing-video/releases/download/r6-v2.0-beta4/video-2.0-beta4.zip)

only,  
video / RPI cam / USB cam works

* * *

that is not valid for older images like the first BUSTER for RPI4  
there can use GLvideo with a own build repair

---

<div class="post-metadata">

**Author:** ![jdarias](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jdarias/32/3484_2.png) [@jdarias](https://discourse.processing.org/u/jdarias)\
**Post date:** [December 14, 2019, 12:18am UTC](https://discourse.processing.org/t/video-library-problem-with-rp4/16372/3 "2019-12-14T00:18:53Z")

</div>

Thank you!  
I tried the sample code above and it works, but it throws these errors in the console:

```auto
Processing video library using GStreamer 1.14.4
0:00:01.357719264 [336m 1877[00m 0x75da6580 [31;01mERROR [00m [00m omx gstomx.c:1154:gst_omx_component_set_parameter:<omxh264dec-omxh264dec0>[00m Set video_decode parameter at index 0x02000001: Bad parameter (0x80001005)
0:00:01.358277673 [336m 1877[00m 0x75da6580 [31;01mERROR [00m [00m omx gstomx.c:1333:gst_omx_port_update_port_definition:<omxh264dec-omxh264dec0>[00m Updated video_decode port 130 definition: Bad parameter (0x80001005)

```

---

<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:** [December 14, 2019, 3:19am UTC](https://discourse.processing.org/t/video-library-problem-with-rp4/16372/4 "2019-12-14T03:19:02Z")

</div>

not understand?

> [@jdarias](#):
>
> tried the sample code above and it works, but it throws these errors in the console

i talk about install a library from ZIP,  
? after delete video and GLvideo installed by contributionmanager ?

running a example from a new lib using the old lib would not make sense.

-a- tell exactly every step you did

-b- why not provide details about / how / the system installed?  
why i warn about the version, that new lib only works on the new image!
