# GL Video error with Processing 3.5.2, macOS 10.13.6

**URL:** <https://discourse.processing.org/t/gl-video-error-with-processing-3-5-2-macos-10-13-6/7852>\
**Category:** Processing for Pi\
**Created:** [January 26, 2019, 4:11am UTC](https://discourse.processing.org/t/gl-video-error-with-processing-3-5-2-macos-10-13-6/7852 "2019-01-26T04:11:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertkb](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@robertkb](https://discourse.processing.org/u/robertkb)\
**Post date:** [January 26, 2019, 4:11am UTC](https://discourse.processing.org/t/gl-video-error-with-processing-3-5-2-macos-10-13-6/7852/1 "2019-01-26T04:11:08Z")

</div>

I got the following error using P3.3.7, and updating just now to 3.5.2 did not help; the sketch did work in macOS 10.13.4- it printed the device enumeration warning, but did not crash as it does now; the sketch also runs without error on an RPi3 running the Processing 3.4 raspian distro:

> GLVideo: Device enumeration is currently not available on macOS. The device returned is a pure guesstimate.  
> Available cameras:  
> avfvideosrc device-index=0  
> GLVideo: avfvideosrc0: Internal data stream error.  
> Debugging information: gstbasesrc.c(2939): void gst\_base\_src\_loop(GstPad \*) (): /GstPipeline:pipeline0/GstAVFVideoSrc:avfvideosrc0:  
> streaming stopped, reason not-negotiated (-4)

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [January 28, 2019, 1:08am UTC](https://discourse.processing.org/t/gl-video-error-with-processing-3-5-2-macos-10-13-6/7852/2 "2019-01-28T01:08:53Z")

</div>

Were you able to resolve this issue? Not sure what to say with no idea what code you were running – an MCVE would really help.

Perhaps report to [https://github.com/processing/processing/issues](https://github.com/processing/processing/issues) if you have not already? They will definitely want an MCVE.

---

<div class="post-metadata">

**Author:** ![robertkb](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@robertkb](https://discourse.processing.org/u/robertkb)\
**Post date:** [January 29, 2019, 3:03pm UTC](https://discourse.processing.org/t/gl-video-error-with-processing-3-5-2-macos-10-13-6/7852/3 "2019-01-29T15:03:12Z")

</div>

The error reported above can be reproduced by making a minor change to the SimpleCapture example sketch provided with the library; changing this line:

```
video = new GLCapture(this);

```

to this:

```
video = new GLCapture(this, devices[0], 320, 240);

```

will force the fault.

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [January 29, 2019, 3:45pm UTC](https://discourse.processing.org/t/gl-video-error-with-processing-3-5-2-macos-10-13-6/7852/4 "2019-01-29T15:45:58Z")

</div>

I just installeed GLVideo through the Contribution Manager which stated

**_Hardware accelerated video on the Raspberry Pi, Linux and Mac (experimental)_**

so perhaps it has nothing to do with Processing version and more a problem with GLVideo. It seems unlikely there will be a solution to your problem.

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [January 29, 2019, 4:14pm UTC](https://discourse.processing.org/t/gl-video-error-with-processing-3-5-2-macos-10-13-6/7852/5 "2019-01-29T16:14:34Z")

</div>

Yes, that error message is from the native GStreamer library when it can’t build a pipeline where all the elements can agree on a format. At a guess the GLVideo library isn’t adding in a scaling element and the camera is refusing to provide 320x240.
