How can I improve instability of FPS when I use RTSP stream

Hi, @fanzh

Sorry for your waiting.

In conclusion, it seem no improvement even increasing buffer-pool-size.

I attached results of command you suggested.

  1. could you provide the nvstreammux 1.log by the following cmd. wondering if there is abnormal printings.
    export GST_DEBUG=nvstreammux:6 && gst-launch-1.0 rtspsrc location=rtsp://address ! rtph264depay ! h264parse ! nvv4l2decoder ! mux.sink_0 nvstreammux name=mux batch-size=1 width=1280 height=720 batched-push-timeout=71000 live-source=1 ! fpsdisplaysink video-sink= nv3dsink text-overlay=false sync=true -v >1.log 2>1.log

1.log (483.5 KB)

  1. could you provide the nvstreammux 2.log by the following cmd. I increased the bufferpool size.
    export GST_DEBUG=nvstreammux:6 && gst-launch-1.0 rtspsrc location=rtsp://address ! rtph264depay ! h264parse ! nvv4l2decoder ! mux.sink_0 nvstreammux name=mux batch-size=1 width=1280 height=720 batched-push-timeout=71000 live-source=1 buffer-pool-size=10 ! fpsdisplaysink video-sink= nv3dsink text-overlay=false sync=true -v >2.log 2>2.log

2.log (633.8 KB)

Best regards,

|0:00:04.002979019 e[36m46163e[00m 0xffff68002310 e[37mDEBUG e[00m e[00m nvstreammux gstnvstreammux.cpp:532:gst_nvstreammux_chain:e[00m Got buffer 0xffff340a8720 from source 0 pts = 0:00:02.678010103
0:00:12.136815518 e[36m46163e[00m 0xffff68002310 e[37mDEBUG e[00m e[00m nvstreammux gstnvstreammux.cpp:532:gst_nvstreammux_chain:e[00m Got buffer 0xffff340a8c00 from source 0 pts = 0:00:11.618252071

as the logs in 1.log, shown, nvstreammux did not receive any buffer during about 8 seconds. it is not nvstreammux’s issue. it is related to upstream plugins.

  1. form the camera configuration tool, what is the fps? with nvstreammux, how often did the video stutter? how long will the video stuttering last?
  2. without nvstreammux, as tested on May 22, if running for a long time, will the video stuttering happen? we need to rule out the accidental RTSP receiving issue.
  3. to narrow down this issue, could you provide the 3.log by the following cmd? Thanks! we need more logs of the upstream plugins.
export GST_DEBUG=3,rtpjitterbuffer:6,nvstreammux:6,v4l2videodec:6  &&  gst-launch-1.0 rtspsrc location=rtsp://10.19.226.223/media/video1 latency=8000    ! rtph264depay ! h264parse ! nvv4l2decoder ! mux.sink_0 nvstreammux name=mux batch-size=1 width=1280 height=720 batched-push-timeout=71000 live-source=1 ! nv3dsink