The delay increases as the output video over time


Using jetpack 4.6’s “jetson-inferance”
I want to process the input video 4ch.

  • Environment
    ・ Input video is delivered by RTSP, and the frame rate is 15fps.
  • Command --input-codec = h264 --network = resnet18-body rtsp: //

However, if you increase the resolution of the input video delivered by RTSP, the delay of the output video may or may not increase over time.
ex1): Delay does not increase for resolution 640x480
ex2): For a resolution of 1920x1280, the delay increases over time.



To narrow down the delay comes from, could you test the two experiments with the below sample as well?


Hello Asta LLL

I did two tests with “”.
The result was the same.
Since the result is the same for “”, the processing speed of “videoSource.Capture ()” of “” is slower than the frame rate delivered by rtsp, and the frame is “videoSource.Capture ()”. I think it’s in the buffer, what about?

If you are running this as 4x independent processes, if you want to keep 1920x1080 resolution you may want to look to using DeepStream which is more optimized for handling multiple streams. As you have found, you could also try reducing the RTSP resolution, which often is okay since the DNN models run at a low resolution anyways (IIRC the pose estimation models are 300x300)

If you haven’t already, you could also try starting posenet with --input-rtsp-latency=0
It may also help adding rtpjitterbuffer element to the RTSP pipeline, I’m not entirely sure:

Hi dusty_nv

Thanks for your comment
I will try “rtpjitterbuffer” as well.

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