Servers by jDrones

How to install Gstreamer for Raspberry pi buster armhf for mission planner

Honestly gstreamer is the most powerful piece of video software out there, that is also by far the most confusing! Ive spent ages scouring all the forums, but alas, I have not found conclusions.

I did a standard install of gstreamer, it would get to qground control, but not mission planner. (On windows 10 _ 64bit) . (also latest stable versions of qgroundcontrol and mission planner).
I can only figure that is because of the gstreamer version.
So now I figure I need to install gstreamer version 1.9.2 on my raspberry pi.

I cannot figure out how to do this!

There is this page - installing on linux
https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c

but it seems like it would only install the latest gstreamer version. There are pages where you can download the version you need, but how do you install all the correct libraries and environment requirements?

I have had this working before on the same raspberry pi, I have no idea how i did it, i was following all sorts of blogs and installing all sorts of things, this time i am trying to do everything properly and document it. (i will happily make a video tutorial for this, and documents you can add to the main github guide book, as this is something that soaks up endless hours for newbies!).

SO i havnt heard anything. SO heres what im going to try.

Ive downloaded the 1.9.2 version from here https://gstreamer.freedesktop.org/src/gstreamer/

in the release notes it says you still need to download good bad ugly etc.
https://gstreamer.freedesktop.org/releases/gstreamer/1.9.2.html

so ill start off installing the 1.9.2 version, and then have a go at installing the modules. (im not sure if they have to be 1.9.2 as well).

I’m using the default gstreamer on a Raspberry Pi and have no issues streaming to Mission Planner and Qgroundcontrol.

What pipeline string are you using?

For reference, I have a RTSP server using gstreamer. Happily streams to everything - https://github.com/stephendade/Rpanion-server/blob/master/python/rtsp-server.py

wait, theres a default gstreamer on raspberry pi???

OMGGGGGGGGG!

Ive been in circles for days!

I have to give this a try!

Thankyou!

ok ive found a straight forward install plan, unfortunately its still only getting to qgroundcontrol and not mission planner, but erghghgh im a bit over it now. Will just stream it to a gstreamer script so i can view the video.

http://wiki.paparazziuav.org/wiki/Explorer/RaspberryPi/Softwares/gstreamer

and here is the code to enter in the terminal in case the link disappears

sudo apt-get install gstreamer1.0-plugins-base -y;
sudo apt-get install gstreamer1.0-plugins-good -y;
sudo apt-get install gstreamer1.0-plugins-bad -y;
sudo apt-get install gstreamer1.0-plugins-ugly -y;
sudo apt-get install gstreamer1.0-libav -y;
sudo apt-get install gstreamer1.0-omx -y;
sudo apt-get install gstreamer1.0-tools -y

this is what im entering into the pi to transmit video

sudo raspivid -t 0 -h 720 -w 1024 -fps 25 -hf -b 2000000 -o - |
gst-launch-1.0 -v fdsrc !
h264parse !
rtph264pay config-interval=1 pt=96 !
udpsink host=192.168.1.106 port=5600

this is what im putting in mission planner

udpsrc port=5600 buffer-size=90000 ! application/x-rtp ! decodebin ! queue leaky=2 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink sync=false

I also saw in another blog that pushing “ctrl f” will bring up the secret mission planner menu, that has a gstreamer option. Although the secret menu pops up, there is no option for gstreamer. (mission planner is on windows 10, 64bit, latest versions of everything).

Servers by jDrones