Huge Latency with rtsp source

I have configured the source with a rtsp url, but I am noticing like 2 minute latency. The output sink is behind by 2 minutes from real time footage.

Then, after 8 minutes, the screen becomes frozen on a single frame.

Any information will be appreciated.

Please enable below variables, then you can get the latency for components and frame.
for frame
for components
please noted you should use rtsp or live sources.
and which platform you running on? and how many sources input?

Can you provide the config you used? which version of DeepStream and which reference or sample app you are using?
Check sync = 0 for RTSP source
and this is the FAQ for rtsp latency