• Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version V5.0 GA
• JetPack Version (valid for Jetson only) 4.4
Hi all,
I am having an issue with getting smooth video playback when streaming from my IP cameras on my Jetson Nano. This can be seen from the deepstream-app
sample application, even with only one RTSP source and inferencing and tracking turned of. The displayed video seems to skip frames, and is very noticeable when there are moving objects (people or cars).
After further investigation using only gst-launch-1.0
, it seems that nvstreammux
does not respect any latency on the rtspsrc
.
Running either of the following commands (without nvstreammux
) produces buttery smooth playback. Note that I have specified an unusually long latency here, generally 500ms works good for me. The default in the deepstream-app
is 100ms which produces the jumpiness. But the 5 second latency in the examples demonstrates this the best. On running the command, the video playback shows one frame and then pauses for 5 seconds, after which it streams smoohtly.
gst-launch-1.0 rtspsrc location=$RTSP_PATH1 latency=5000 ! decodebin ! nvoverlaysink display-id=1
gst-launch-1.0 rtspsrc location=$RTSP_PATH1 latency=5000 ! decodebin ! nvvideoconvert ! nvegltransform ! nveglglessink`
Adding nvstreammux
to the pipeline causes the 5s buffer to be “forwarded”/“eaten up”. On running the command, the video playback also shows the one frame, pauses for 5 seconds, and then “forwards” the video until the 5s buffer is gone, and the jumpiness returns. Note that this is a 1920x1080 @ 25fps stream.
gst-launch-1.0 \
rtspsrc location=$RTSP_PATH1 latency=5000 ! decodebin ! mux.sink_0 \
nvstreammux name=mux batch-size=1 batched-push-timeout=40000 width=1920 height=1080 live-source=true \
! nvoverlaysink display-id=1
gst-launch-1.0 \
rtspsrc location=$RTSP_PATH1 latency=5000 ! decodebin ! mux.sink_0 \
nvstreammux name=mux batch-size=1 batched-push-timeout=40000 width=1920 height=1080 live-source=true \
! nvegltransform ! nveglglessink sync=false
Any help in this regard would be appreciated.
Tagging @jasonpgf2a @mdegans @miguel.taylor @DaneLLL @bcao @mchi
Regards.