I have a serious problem when launching the examples from the git GitHub - NVIDIA-AI-IOT/deepstream_python_apps: A project demonstrating use of Python for DeepStream sample apps given as a part of SDK (that are currently in C,C++).
I am using the Docker container nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples
• Hardware Platform: Jetson Nano Developer Kit 4GB
• DeepStream Version: 5.1
• JetPack Version: 32.5.1
• Issue Type: bug
The problem is that if I use the
deepstream_python_apps/apps/deepstream-test3/deepstream_test_3.py example with more than 2 RTSP streaming as source sometimes the deepstream pipeline drops the framerate to 0.2 and one random stream stops receiving data (as the only FPS info shown are from the other streams).
Typically I see for ~2300/3000 frames all the FPS info from each stream, and then suddenly I see only some stream’s FPS info and the FPS are 0.2 (or something very low w.r.t. the initial framerate).
This happens with both On Screen Display enabled or not (modifying the deepstream_test_3.py to remove OSD and using a fakesink).
I am simulating the streams with VLC (Media > Stream), because I do not know a public available RTSP with persons/objects recognized by peoplenet.
I did some test with 1, 2, 3 and 4 streams (same video source file, different streaming processes). e.g.
$ python3 deepstream_test_3.py rtsp://188.8.131.52:9999/
$ python3 deepstream_test_3.py rtsp://184.108.40.206:9999/ rtsp://220.127.116.11:9998/
$ python3 deepstream_test_3.py rtsp://18.104.22.168:9999/ rtsp://22.214.171.124:9998/ rtsp://126.96.36.199:9997/
$ python3 deepstream_test_3.py rtsp://188.8.131.52:9999/ rtsp://184.108.40.206:9998/ rtsp://220.127.116.11:9997/ rtsp://18.104.22.168:9996/
I am working with Deepstream 5.1 (latest at the time of writing) on a Jetson Nano Developer Kit 4GB. It is installed with a 64gb SD with the release 32.5.1 ( R32 (release), REVISION: 5.1, GCID: 26202423, BOARD: t210ref, EABI: aarch64, DATE: Fri Feb 19 16:45:52 UTC 2021; ). It is powered with a barrell jack with 5V-4A power supply. I already set the jetson to MAXN and performed
• How to reproduce the issue?
Steps to reproduce on a fresh installed jetson image starting from a new terminal (the apt is required as
import gi in python3 fails):
(host)$ xhost +
(host)$ docker pull nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples
(host)$ docker run --gpus all --rm -it --net=host -e GST_DEBUG=3 -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples
(container)$ apt-get update && apt-get install -y libpython3.6 python3-gi python-gst-1.0
(container)$ cd /opt/nvidia/deepstream/deepstream/samples && git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps
(container)$ cd /opt/nvidia/deepstream/deepstream/samples/deepstream_python_apps/apps/deepstream-test3
(container)$ python3 deepstream_test_3.py rtsp://yourstreamhere_num1/ rtsp://yourstreamhere_num2/ rtsp://yourstreamhere_num3/ rtsp://yourstreamhere_num4/
Some final notes:
With the environment flag GST_DEBUG=3 I can see that when the FPS drop occurs there are several warnings regards the rtpjitterbuffer. I tried also to open the streams with another instance of VLC during the drop event, and the streams seems working fine on VLC.
The fps drop event happens sometimes and mostly in the 2000/5000 frames range, but it’s not deterministic.
The streams are private videos of people walking in a closed environment, so the PGIE is inferencing often during the video (not all time though, there are several frames without any object).
After several minute after the FPS drop at some point my jetson freezes, and I am forced to do an hardware reset (removing the barrel jack)
I tried also on other jeston nano boards with same results
Does anyone find the same problem as me? Have someone a solution or may know the cause?
Thank you very much, any help is really appreciated