https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c
sudo apt-get install -y 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-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
# to use GStreamer library
pkg-config --cflags --libs <gstreamer_libraries>
# ex
pkg-config --cflags --libs gstreamer-1.0 gstreamer-video-1.0
GStreamer library를 여러 개 사용하는 경우, 공백으로 구분하여 연속 나열
# clone git repo
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer
# build
gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0`
# run
./basic-tutorial-1
subprojects/gst-docs/examples/tutorials