I wanted to try something with gst discoverer. But it fails at gst_discoverer_new();, which it aborts with undefined reference to 'gst_discoverer_new'.
The header gst/pbutils/gstdiscoverer.h is found.
I compiled it with the following command.
gcc -o main main.c `pkg-config --cflags --libs gstreamer-1.0 gstreamer-plugins-base-1.0`
I suspect that something is missing in pkg-config.