RTSPSRC reconnection causes streaming lag

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson Xavier NX
• DeepStream Version:6.3
• JetPack Version (valid for Jetson only):5.1.3

When the gstreamer pipeline is running and suddenly the RTSP stream retrieval fails, the RTSPSRC plugin will retry the retrieval of the stream, which may cause the stream exported by my pipeline to lag in some players. How can I solve this problem?

How long is the lag time approximately and how do you get the lag time?

The lag time is not very uniform, sometimes not exceeding 5 seconds, and sometimes it can be several tens of seconds. This is the screen I recorded, and on the right is the streaming video. I need to tell you a few points:

  1. The above player may experience lag when watching streaming videos, but when I use VLC to watch streaming videos, it does not experience such lag;
    2.The rtspsrc attribute set is
g_object_set(gES.rtspsrc,
        "latency", 40000,
        "user-agent", "My RTSP Client",         // 标识客户端
        "tcp-timeout", 1000000,                // 5秒 TCP 超时
        "retry", 30,                           // 重试次数
        NULL);

Could you attach your whole pipeline?

rtspsrc->rtph264depay->h264parse->nvv4l2decoder->nvinfer->nvtracker->nvvideoconvert->capsfilter->nvv4l2h264enc->h264parse->flvmux->rtmpsink

You can first narrow down the scope by simplifying the pipeline like below.

rtspsrc->rtph264depay->h264parse->nvv4l2decoder->queue->nvv4l2h264enc->h264parse->flvmux->rtmpsink

If there are still issues with this pipeline, then the problem is related to the rtspsrc plugin of Gstreamer. You can file a topic to the Gstreamer Forum to ask how to resolve this.

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.