Install Gstreamer
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc \
gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl \
gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
Install qtgstreamer plugin
sudo apt-get install qtgstreamer-plugins-qt5
Install OpenGL
sudo apt-get install freeglut3-dev
Download qt-gstreamer
cd ~/
git clone https://github.com/GStreamer/qt-gstreamer.git
cd qt-gstreamer
Cmake
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/home/ubuntu/qt-gstreamer/install \
-DQT_VERSION=5
Make
make
Make install
make install
Create Qt project
qmake -project
Edit XXX.pro
INCLUDEPATH += . /home/ubuntu/qt-gstreamer/install/include/Qt5GStreamer/
Make Qt project
qmake XXX.pro
make