Skip to content

Instantly share code, notes, and snippets.

@solonovamax
Last active May 15, 2020 15:49
Show Gist options
  • Save solonovamax/6f96a12de9c075cc4164a12b8abee8f0 to your computer and use it in GitHub Desktop.
Save solonovamax/6f96a12de9c075cc4164a12b8abee8f0 to your computer and use it in GitHub Desktop.

---CURRENTLY UNTESTED. THIS MIGHT NOT WORK.---

Guide to install GStreamer on raspberry pi with the latest version of rasbian

Written by solonovamax

If you are trying to install gstreamer on a rasb pi, you may run into an issue: the gstreamer1.0-qt5 package doesn't exist for armhf platform. The only alternative that I've found to installing via the default package repositories is to simply build it from source yourself. (okay fine, maybe it's not simple. I spent a week on figuring this out BECAUSE THE DOCS HAVE THE WRONG INSTRUCTIONS FOR BUILDING IT. Okay fine, my ranting is done.)

Install the following build dependencies: apt-get install git python3.7 ninja-build gcc build-essential (you probably need gcc and since I don't have my rpi, I can't check if it's pre installed) and pip3 install meson

Cloning

Next, you must clone the gst-build repository:

run git clone https://gitlab.freedesktop.org/gstreamer/gst-build.git

in order for it to actually work, we need to check out the latest version. You can do that with the following commands:

cd gst-build

git tag

git checkout tags/[tag] (ex: git checkout tags/1.16.2)

Building

To build gstreamer, you want to run meson build/ and ninja -C build/. This will do fancy linux stuff that I don't understand and will build it.

Lastly, you need to run meson install -C build/ to install it.

This should be the correct steps that you need to follow if you want to install it on your rpi. Also, there will be a build version of the gst-rtsp-server in the builds/subprojects/gst-rtsp-server, so you can use that instead of seperatly building it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment