The default Gstreamer version on Raspberry Pi 3 is 1.4.4.
This is guide to build gstreamer from scratch. Building takes more 1h.
Btw, I already built some version, so you can extract it to use.
From gst-plugin-bad v1.3.1, glimagesink replaces eglglessink, and glimagesink does not automatically scale video to fit screen
sudo apt-get remove gstreamer1.0
sudo apt-get remove gstreamer-1.0
chmod +x gstreamer-build.sh
./gstreamer-build.sh
After building success:
Header is in /usr/local/inlude/gstreamer-1.0
Lib is in /usr/local/lib
sudo cp -r /usr/local/include/gstreamer-1.0 /usr/include/
Note:
In some version gstconfig.h is not in /usr/local/include/gstreamer-1.0/gst/ but in /usr/local/lib/gstreamer-1.0/include/gst.
Must copy it to /usr/include/gstreamer-1.0/gst/
sudo nano /etc/ld.so.conf
include /usr/local/lib
sudo ldconfig
sudo rm -rf /usr/local/include/gstreamer-1.0
sudo rm -rf /usr/include/gstreamer-1.0
# Remove only gstreamer, in my case it has only gstreamer lib
sudo rm -rf /usr/local/lib/*
sudo cp -r bin/* /usr/local/bin
sudo cp -r gstreamer-1.0 /usr/local/include
sudo cp -r lib/* /usr/local/lib
gst-launch-1.0 --version
After install later version
cd gstreamer-1.2.4
sudo cp -r gstreamer-1.0/gst/egl/ /usr/include/gstreamer-1.0
sudo cp -r lib/*gl* /usr/local/lib/
sudo cp lib/gstreamer-1.0/libgsteglglessink.* /usr/local/lib/gstreamer-1.0/