Deepstream python RTSP output has some stuck issues at first

deepstream python RTSP output has some stuck issues at first

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used

• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version 7.1
• JetPack Version (valid for Jetson only) 6.1
• TensorRT Version 10.6
• NVIDIA GPU Driver Version (valid for GPU only)

  1. can you using deepstream_test1_rtsp_in_rtsp_out.py without any modifications to reproduce this issue?
  2. if yes in step one, does the issue remain if using nv3dsink instead of udpsink?

1.yes, using deepstream_test1_rtsp_in_rtsp_out.py without any modifications can reproduce this issue
2.usining nv3dsink instead of udpsink the problem has not occurred
but i want to get the rtsp result

if using nv3dsink is fine, it should be related to the rtspserver, network and player. can you play the output RTSP on the device running deepstream-app? wondering if it is related to the network. or you can save the stream by the following cmd then play.

gst-launch-1.0 rtspsrc location=XXX ! rtph264depay ! h264parse ! 'video/x-h264,stream-format=byte-stream' ! filesink location=test.h264

gst-launch-1.0 rtspsrc location=XXX ! rtph264depay ! h264parse ! 'video/x-h264,stream-format=byte-stream' ! filesink location=test.h264

Dose this cmd need to set framerate? Using gst-paly-1.0 palys saved result,it seems too fast

  1. the output is raw h264 stream. you can output ts stream, which include timestamp. Here is the cmd.
gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! rtph264depay ! h264parse !   mux. mpegtsmux name=mux ! filesink location=output.ts
  1. did you try playing the output RTSP on the device running deepstream-app?
  1. yes ,i palying outputRTSP on the device running deepstream-app. it seems the result has periodic stuck

if i want to put output RTSP to another device, the udpsink and RTSPServer how to set?

you can add udpsink in pipeline and set up a rtspserver. please refer to this code for how to use udpsink. please refer to this code for how to use rtspserver. then other devices can pull rtsp stream from rtspserver.