ZED Demux + ZED RTSP Server configuration

Hello there,

I have been following the GStreamer StereoLabs documentation. I am not familiar with GStream so this is a bit new to me. I am wondering if it is possible to create an RTSP server with the streams of the left and right cameras of the Zed and read them from different clients.

I am assuming this is possible using ZED RTSP and ZED Demux. However, so far I have not found a solution that works.

So far I am launching the server as follows:

gst-zed-rtsp-launch zedsrc stream-type=2 ! zeddemux is-depth=false name=demux \
    demux.src_left ! queue ! videoconvert ! 'video/x-raw, format=(string)I420' ! \
    x264enc tune=zerolatency ! rtph264pay name=pay0 pt=96 \
    demux.src_aux ! queue ! videoconvert ! 'video/x-raw, format=(string)I420' ! \
    x264enc tune=zerolatency ! rtph264pay name=pay1 pt=97

Then I run the client

gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/zed-stream ! decodebin ! autovideosink

Of course, I get an error as I would need to define the stream that I want to get, but the server only mentions that the stream is ready as follows:

 ZED RTSP Server 
-----------------
 * Stream ready at rtsp://127.0.0.1:8554/zed-stream

Has anyone tried a similar configuration? Any suggestion will be highly appreciated!

@Myzhar could you please provide any feedback from the StereoLabs side?
Thanks!

Hi @jrodriguezg
in the receiver, you must specify what payload is retrieved and how to decode it.
I recommend reading the GStreamer documentation for details.
This is out of the scope of this support.

1 Like

Hi @Myzhar,

Thanks for the suggestions!
I found a solution by checking the GStreamer documentation and following your hint.

To read each stream separately and show them I used the following command:

gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/zed-stream latency=100 !  \
"application/x-rtp, payload=XXX" ! rtph264depay !  \
avdec_h264 ! videoconvert ! autovideosink

where XXX corresponds to the payload (e.g., 96). I am using pt=96 and pt=97 in my example.

1 Like