# GstPlayer - Up board

**URL:** <https://discourse.libcinder.org/t/gstplayer-up-board/883>\
**Category:** Using Cinder\
**Created:** [October 3, 2017, 1:09pm UTC](https://discourse.libcinder.org/t/gstplayer-up-board/883 "2017-10-03T13:09:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thyrrestrup](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@thyrrestrup](https://discourse.libcinder.org/u/thyrrestrup)\
**Post date:** [October 3, 2017, 1:09pm UTC](https://discourse.libcinder.org/t/gstplayer-up-board/883/1 "2017-10-03T13:09:36Z")

</div>

Hi

I’ve tried running the QuickTimeBasic sample on a Up board [http://www.up-board.org/up/](http://www.up-board.org/up/)  
I get no error but the texture is black.

If I set `sUseGstGl` to `false` and recompile cinder then video playback is working.  
But I would like the extra acceleration from the GL link.

Using gstreamer from the command line with the following commands works great:  
`gst-launch-1.0 uridecodebin uri=file:///home/up/test.mp4 ! queue ! glimagesink`

`gst-launch-1.0 uridecodebin uri=file:///home/up/test.mp4 ! queue ! glfilterbin filter=glcolorscale ! glimagesink`

This is the output from the application when running with GL enabled (black screen):

```bash
Rendering with OpenGL Core Profile 3.2
Initialized GStreamer version 1.10.4.0
Pipeline state about to change from : NULL to READY
Pipeline state changed SUCCESSFULLY from : NULL to READY
Need context gst.gl.GLDisplay from element convert
Pipeline state changed from : NULL to READY with pending VOID_PENDING
Need context gst.gl.app_context from element convert
Pipeline state about to change from : READY to PAUSED
 Blocking until pipeline state changes from : READY to PAUSED
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Need context gst.vaapi.Display from element vaapipostproc0
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Have context gst.vaapi.Display from element vaapipostproc0
Pipeline state changed from : READY to PAUSED with pending VOID_PENDING
Pipeline state changed SUCCESSFULLY from : PAUSED to PAUSED
Pipeline state about to change from : PAUSED to PLAYING
Pipeline state changed SUCCESSFULLY from : PAUSED to PLAYING
Playing: 1
Pipeline state changed from : PAUSED to PLAYING with pending VOID_PENDING

```

Up board specs:  
Ubuntu 17.04  
GStreamer 1.10.4  
Intel Atom x5-Z8350 Processor  
Intel HD 400 Graphics ,12 EU GEN 8, up to 500MHz, Open GL 4.2, Open CL 1.2, OGL ES3.0, H.264, HEVC(decode), VP8

Any pointers would be greatly appreciated

-Tobias

---

<div class="post-metadata">

**Author:** ![petros](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/petros/32/26_2.png) [@petros](https://discourse.libcinder.org/u/petros)\
**Post date:** [October 4, 2017, 9:34am UTC](https://discourse.libcinder.org/t/gstplayer-up-board/883/2 "2017-10-04T09:34:18Z")

</div>

Hi Tobias,

I see from your output that `gstreamer-vaapi` is installed – Unfortunately this will not work as there is no support for VAAPI as of yet in the GstPlayer. What I would try is to uninstall this package ( smt like `sudo apt-get --purge remove gstreamer1.0-vaapi` should do it ) and then try again the GL path. Note that you won’t have HW accelerated decoding of the video aka ‘zero-copy’ but at least you will get some other improvements ( colorspace conversion on the GPU, PBO’s for uploading/downloading etc. )

HTH,  
Petros

---

<div class="post-metadata">

**Author:** ![thyrrestrup](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@thyrrestrup](https://discourse.libcinder.org/u/thyrrestrup)\
**Post date:** [October 6, 2017, 12:53pm UTC](https://discourse.libcinder.org/t/gstplayer-up-board/883/3 "2017-10-06T12:53:58Z")

</div>

Hi Petros

Thanks - everything worked as expected after removing `gstreamer-vaapi`

-Tobias
