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

Hi, @fanzh

Thank you for your kindly suggestion.

#1

please test this simplest configuration file with deepstream-app? it only includes streammux and fakesink.

I tried it and attached output of this.
ds_stuttered.txt (696 Bytes)
It seems stable.

#2

  1. if still stutter, please use this faq
    to check which element will consume too much time.

I set env as below, and measured latencies of frames and each elements.

export NVDS_ENABLE_COMPONENT_LATENCY_MEASUREMENT=1
export NVDS_ENABLE_LATENCY_MEASUREMENT=1

I used below config file, which was customized from “source1_usb_dec_infer_resnet_int8.txt”, and was changed only source0.
rtsp_test.txt (3.9 KB)
The output is below.
latency_log.txt (303.2 KB)
Then, I organized that output, and made statistics.


This shows growing of latencies were occurred periodically.

And statistic values of each latencies are below.

  • Frame Latency (ms)
    Max: 230.290039
    Min: 7.488037
    Avg: 69.22920974
    Std Dev: 65.64684938
  • nvv4l2decoder0
    Max: 0.562012
    Min: 0.177979
    Avg: 0.357970157
    Std Dev: 0.07368124
  • nvstreammux-src_bin_muxer
    Max: 113.719971
    Min: 0.655029
    Avg: 7.973373157
    Std Dev: 10.99303953
  • primary_gie
    Max: 18.61792
    Min: 2.196045
    Avg: 6.51779423
    Std Dev: 3.571083002
  • tiled_display_tiler
    Max: 14.291992
    Min: 1.331055
    Avg: 6.101954581
    Std Dev: 2.907566536
  • osd_conv
    Max: 11.875977
    Min: 0.543945
    Avg: 2.78440003
    Std Dev: 1.991351875
  • nvosd0
    Max: 18.539062
    Min: 0.00293
    Avg: 0.529278233
    Std Dev: 1.21280866

I wonder if nvstreammux was bottleneck relatively from Std Dev value, but it cannot be sure.
Do you have any opinion about that?

Best regards,