# Using Gstreamer with video encoder/decoder accelerators

**URL:** <https://forums.balena.io/t/using-gstreamer-with-video-encoder-decoder-accelerators/7782>\
**Category:** Product support\
**Created:** [May 8, 2019, 8:49pm UTC](https://forums.balena.io/t/using-gstreamer-with-video-encoder-decoder-accelerators/7782 "2019-05-08T20:49:17Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Farzad](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@Farzad](https://forums.balena.io/u/Farzad)\
**Post date:** [June 21, 2019, 8:46pm UTC](https://forums.balena.io/t/using-gstreamer-with-video-encoder-decoder-accelerators/7782/47 "2019-06-21T20:46:14Z")

</div>

Thank you for your support!

---

<div class="post-metadata">

**Author:** ![Farzad](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@Farzad](https://forums.balena.io/u/Farzad)\
**Post date:** [July 30, 2019, 9:02pm UTC](https://forums.balena.io/t/using-gstreamer-with-video-encoder-decoder-accelerators/7782/51 "2019-07-30T21:02:46Z")

</div>

Hi @acostach,

Thank you for creating the dockerfile. I got chance to try your Dockerfile and it works fine.  
I just changed version of Ubuntu to 16.04 and I got the same error messages that I had posted before. I think gstreamer packages for Ubunut:16.04 have issue or they are incompatible.  
Following your approach build gstreamer and plugins in Dockerfile may fix the issue. I will try that and update you.

---

<div class="post-metadata">

**Author:** ![acostach](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@acostach](https://forums.balena.io/u/acostach)\
**Post date:** [July 31, 2019, 1:15pm UTC](https://forums.balena.io/t/using-gstreamer-with-video-encoder-decoder-accelerators/7782/53 "2019-07-31T13:15:08Z")

</div>

Hi @Farzad

I found an Ubuntu 16 base image that I believe might be good for what you need, installed the necessary packages, some at specific versions, and managed to load the pre-built gstreamer libraries and plugins to run the pipeline without rebuilding them from sources. I’ve used that specific release so I can install versions of packages that are compatible with the prebuilt gstreamer libraries.

I’ve created this [Dockerfile](https://github.com/acostach/tx2-ubuntu16-28.2/blob/master/Dockerfile.ubuntu16_28.2) with Ubuntu 16, on my side it runs the gstreamer pipeline as usual, the plugins get loaded and I see the sample video output on the screen.

---

<div class="post-metadata">

**Author:** ![Farzad](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@Farzad](https://forums.balena.io/u/Farzad)\
**Post date:** [August 1, 2019, 11:13pm UTC](https://forums.balena.io/t/using-gstreamer-with-video-encoder-decoder-accelerators/7782/55 "2019-08-01T23:13:21Z")

</div>

thank you @acostach! it works fine even with `balenalib/jetson-tx2-ubuntu:xenial` .  
I guess the following line does the magic,  
`apt-get install -y --allow-downgrades libgbm1=11.2.0-1ubuntu2`

There are two installers for`gstreamer1.0-plugins-bad` and removing the last one, creates issue where it cannot find gst-omx. I was working on a container which builds gst and plug-ins but for now I will use your docker for our application.

[Previous page](https://forums.balena.io/t/using-gstreamer-with-video-encoder-decoder-accelerators/7782.md?page=1)
