• Hardware Platform (Jetson / GPU) Jetson NX
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only) 4.4
I have 4 rtsp sources and if any of them crashes, pipeline wont function properly. So I started using a python subprocess which restarts pipeline if any of the source stops streaming.
But my app is running for sometime and after that it is freezing, doesn’t throw any errors or exceptions in the logs. If I restart it again, it runs well for sometime and it freezes after sometime.
Before starting the app, I am checking all the active cameras using opencv(cv2.VideoCapture()) and adding only them to the pipeline. A thread will be running and if any of the camera which was down earlier, is up now, will restart the pipeline accordingly.
I started seeing below listed warnings frequently in my logs,
Nov 09 12:22:54 cortex0002 gunicorn[5308]: [ WARN:1] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not open resource for reading and writing.
Nov 09 12:22:54 cortex0002 gunicorn[5308]: [ WARN:1] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline
Nov 09 12:22:54 cortex0002 gunicorn[5308]: [ WARN:1] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
Nov 09 12:22:54 cortex0002 gunicorn[5308]: [tcp @ 0x7f84015910] Connection to tcp://172.17.2.2:554?timeout=0 failed: No route to host
Nov 09 12:22:57 cortex0002 gunicorn[5308]: [ WARN:2] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not open resource for reading and writing.
Nov 09 12:22:57 cortex0002 gunicorn[5308]: [ WARN:2] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline
Nov 09 12:22:57 cortex0002 gunicorn[5308]: [ WARN:2] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
Nov 09 12:22:57 cortex0002 gunicorn[5308]: [tcp @ 0x7f7c017540] Connection to tcp://172.17.2.164:554?timeout=0 failed: No route to host
Nov 09 12:23:00 cortex0002 gunicorn[5308]: [ WARN:3] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not open resource for reading and writing.
Can someone help me in resolving this?