If we are using gstreamer and want to setup a quick rtsp server, e.g. to stream camera footage from a Raspberry Pi, then gst-rtsp-server is often the go-to software to do so. Depending what operating system we are using, gst-rtsp-launch
is provided or not. However, it seems to be more common on debian-based linux distributions that this binary is not provided and the fastest way forward is to compile test-launch.c
. Commonly the following command is used for compilation:
gcc -o test-launch test-launch.c `pkg-config --cflags --libs gstreamer-rtsp-server-1.0`
However, we may run into a message like this: ` undefined reference to gst_rtsp_media_factory_set_enable_rtcp'
. It seems like this reference was added rather recently. If we’re still using GStreamer versions older than 1.2x, simply switchting to the correct branch that is compatible (e.g. git checkout 1.18
) solves the problem.