Managing unstable rtsp stream

Hello,

I want to process stream from web camera with my Jetson Nano and i faced problem during streaming from local network. Stream freezes for some seconds every 1-2 second of normal streaming.
Although when i plug camera directly into jetson, it works just fine.
I tried

gst-launch-1.0 playbin uri=rtsp://<cam_ip>

and modified deepstream-app (i cut off pgie and osd plugins as i don’t need them to simply display video stream)

deepstream-test3-app rtsp://<cam_ip>

but result is the same.
Also i have another web camera which is identical to the first one and it works fine both through local network and direct connection

I guess the problem may be caused by network connection or camera itself.
My question is what tools and options of gstreamer/deepstream i can use to localize problem and manage unstable stream for smooth displaying?

Hi,
You may try with uridecodebin:

$ gst-launch-1.0 uridecodebin uri=rtsp://<cam_ip> ! nvoverlaysink sync=false

If the issue is still present, suggest you check why the source is not stable.

The default code of deepstream-test3 is for TX2/Xavier, you may refer to the following link to customize it for Jetson Nano.
https://devtalk.nvidia.com/default/topic/1058597/deepstream-sdk/-nano-deepstream-test3-app-not-working-as-expected-for-multiple-video-source/post/5368352/#5368352