Easy ways to modify sample codes deepstream_app_test1,2,3,4,5.c to output rtsp stream

Hi, we are using deepstream container in our cluster. And we would like to use deepstream_app_test1~5.c codes as demonstration to students. However the default streaming could not work. But we find the RTSP through vlc player works fine with deepstream_app.c code by set the sink to sink2. We would like to do the same for all five test cases, but we are new to the APIs, would anyone provide some guidance on how to make it possible with minimum code changes?

Btw, we are at deepstream5.0.


Before start with deepstream, please make sure you are familiar with gstreamer basic knowledge and coding skills.
There is no easy way if you don’t know how to coding with gstreamer. The different deepstream sample apps are designed to demonstrate different functions of deepstream. If you want more functions or different functions, it needs yourself to change the sample to what you want.
If you know how to coding with gstreamer, please refer to /opt/nvidia/deepstream/deepstream/sources/apps/apps-common/src/deepstream_sink_bin.c, the create_udpsink_bin() function is the sample of how to create rtsp sink.

There is also gstreamer rtsp document in gstreamer official document. RTP and RTSP support (gstreamer.freedesktop.org)

This is deepstream forum, please focus on deepstream topics.

1 Like