Deepstream crash when running RTSP with NTP sync and RTCP enabled

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) 4090
• DeepStream Version 7.0
• 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)

I followed the code and tutorial on using NTP with DeepStream from the following sources:

In the code, I modified it based on deepstream_test1_rtsp_in_rtsp_out.py:

def decodebin_child_added(child_proxy, Object, name, user_data):
    print("Decodebin child added:", name, "\n")
    if name.find("decodebin") != -1:
        Object.connect("child-added", decodebin_child_added, user_data)

    if ts_from_rtsp:
        if name.find("source") != -1:
            pyds.configure_source_for_ntp_sync(hash(Object))
if ts_from_rtsp:
    streammux.set_property("attach-sys-ts", 0)

Make sure RTSP source can send RTCP Sender Reports.


Confirm: In host machine, I run
gst-launch-1.0 rtspsrc location="rtsp://AI:Aic%4013579@192.168.0.8:554" ! fakesink
and
sudo tshark -i eno1 -f "src host 192.168.0.8" -Y "rtcp"


But it look like send UDP mode for RTCP

Currently, I using pyds but when I run deepstream test5 with C version, it has the same issues


Can you give me some documents related to this comment in the image, why force to use TCP mode
If I using TCP mode, my pyds and C version code crash after run 4-5s

However, if I don’t set the protocol to TCP using either:

appCtx[i]->config.multi_source_config[j].select_rtp_protocol = 0x04;

or

Object.set_property("protocols", GST_RTSP_LOWER_TRANS_TCP)

then my code runs successfully, but the NTP timestamp does not seem correct in both case (TCP, UDP)— it always raises the following:
Warning: gst-library-error-quark: Either host or Source 0 seems to be out of NTP sync SYS TIME = 2025-06-20T10:23:28.447Z CALCULATED NTP TIME = 1970-01-01T00:00:00.000Z (5): gstnvstreammux_ntp.cpp(110): check_if_sys_rtcp_time_is_ntp_sync (): /GstPipeline:pipeline0/GstNvStreamMux:streammux
If I don’t enable RTCP in the camera setup, the following message does not appear:

208 2.637767168  192.168.0.8 → 192.168.1.90 RTCP 114 Sender Report   Source description

If enable RTCP and configuration like above, if using TCP mode, cause error

In container based on image: nvcr.io/nvidia/deepstream:7.0-triton-multiarch

timedatectl
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

I’m currently running pyds code inside a Docker container and have tried using network_mode: host, but the problem still occurs.
I’m wondering whether the issue is caused by my code or by the RTSP camera setup. Could you give me some ideas? Thank you!

  1. did the camera support “protocols=4”? please use thirdpart tool to confirm.
  2. can this command-line “gst-launch-1.0 rtspsrc location=rtsp://XXX protocols=4 ! fakesink” run well?

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.