• Jetson Xavier NX
• DeepStream Version:5
• JetPack Version: 4.4
I have a deepstream test5 app that will send the message to AMQP broker and create a RTSPStream sink for streaming. I start my app in the following way. However, the number 2 way I can’t get anything after unblock the camera…? Is the app must be inference one time for the app work properly?
pattern 1. Start the app and stand in front the camera which the app will detect person. --> After the app started, It will start detecting person and keep sending message to AMQP broker and also the RTSPStream can be open.
pattern 2. Start the app and block the camera with paper which it will be dark image I think? it won’t detect anything and the app started. However when I unblock the camera, it won’t detect anything and won’t send any message and stream any RTSP Stream. Then I try to open the RTSPStream with VLC, it just shows the following error.
0:06:57.119163779 23010 0x7f48003400 WARN rtspmedia rtsp-media.c:2994:wait_preroll: failed to preroll pipeline 0:06:57.119281925 23010 0x7f48003400 WARN rtspmedia rtsp-media.c:3298:gst_rtsp_media_prepare: failed to preroll pipeline 0:06:57.122183723 23010 0x7f48003400 ERROR rtspclient rtsp-client.c:1054:find_media: client 0x557e8a75e0: can't prepare media 0:06:57.122638097 23010 0x7f48003400 ERROR rtspclient rtsp-client.c:2910:handle_describe_request: client 0x557e8a75e0: no media
EDIT: I have try to enable the PERF to check the framerate, it seems like the number 2 pattern shows the following PERF.
Wed Oct 14 18:38:39 2020 **PERF: 0.00 (0.00) Wed Oct 14 18:38:44 2020 **PERF: 0.00 (0.00) Wed Oct 14 18:38:49 2020 **PERF: 0.00 (0.00) Wed Oct 14 18:38:54 2020 **PERF: 0.00 (0.00) Wed Oct 14 18:38:59 2020 **PERF: 0.00 (0.00) Wed Oct 14 18:39:04 2020 **PERF: 0.00 (0.00) Wed Oct 14 18:39:09 2020 **PERF: 0.00 (0.00) Wed Oct 14 18:39:14 2020 **PERF: 0.00 (0.00) Wed Oct 14 18:39:19 2020 **PERF: 0.00 (0.00) Wed Oct 14 18:39:24 2020 **PERF: 0.00 (0.00)
For the pattern 1 which the app can detect something when the app start. It just run properly.
Wed Oct 14 18:40:35 2020 **PERF: 19.98 (21.87) Wed Oct 14 18:40:40 2020 **PERF: 20.09 (21.19) Wed Oct 14 18:40:45 2020 **PERF: 20.01 (20.88) Wed Oct 14 18:40:50 2020 **PERF: 19.98 (20.69)
After some debugging, I found that if the app didn’t detect anything, the KLT Tracker won’t Initialize…and will not detect anything even after the camera unblock. Maybe is this the problem?
Try disable KLT tracker, and block camera with paper, start the app it have a same problem…
Try enable EglSink to display the output, seems like when blocking the camera shows a black screen and have same symptom like pattern 2
Pattern 3: start the app and make it detect something, next block the camera. It will stop detect anything and stop sending message to AMQP broker, and unblock the camera , it can detect something again.
It seems like when the app is started, first time it must detect something in order to work properly.@@