Sending Gstreamer pipeline output over RTSP

first lets clear the difference between RTP and RTSP, RTSP is a real-time streaming protocol, while RTP is the transport protocol used to transport media data negotiated over RTSP.
In order to send a Gstreamer pipeline output over RTSP you’ll first need to install an RTSP server, in case of Hailo15 one is already installed as part of the Gstreamer.

for example:

  1. Download and extract a standalone binary from the release page that corresponds to your operating system and architecture.
  2. Start the server:

now you can run the pipeline on the server side, for example streaming an h264 video to localhost:

gst-launch-1.0 -v videotestsrc ! videoconvert ! videoscale ! video/x-raw,width=640,height=480 ! x264enc speed-preset=veryfast tune=zerolatency bitrate=800 ! rtspclientsink location=rtsp://localhost:8554/test

on the client side you can use either a Gstreamer pipeline:

gst-launch-1.0 -v rtspsrc location=rtsp:// latency=0 ! decodebin ! autovideosink

or open a VLC and configure it according to this:
open vlc-player → Media → Open Network Stream, set network url as:
Screenshot from 2024-01-17 16-30-58