My model with the current hardware should be able to perform close to 200 fps and deepstream is currently running on 6 cameras with 15fps video streams, which is far less for detection to be a bottleneck. Either way my app requires to process newest frames, even if it means dropping frames before. As far as I read sync=0 and live source should do that, but somehow I am still experiencing latency. For testing purposes I tried to change sync to 1, result was the same.
I tested this parallely running opencv VideoCapture and then visually comparing deepstream tiler output and the VideoCapture output. When the program is running for over 24h latency is over couple of seconds.
The deepstream-test3 is using uridecodebin and I am passing h265 streams, maybe I should try rtspsrc?
What could cause the latency, how could I debug this?
Should these work in Python export NVDS_ENABLE_COMPONENT_LATENCY_MEASUREMENT=1 export NVDS_ENABLE_LATENCY_MEASUREMENT=1 ?
I have tried to create Python bindings according to the repositories in that link, but I am getting multiple declaration, syntax errors when trying to include nvds_latency_meta.h:
In file included from pyds_latency_meta.cpp:3:0:
/opt/nvidia/deepstream/deepstream-5.1/app/includes/nvds_latency_meta.h:107:47: error: ‘GstBuffer’ was not declared in this scope
NvDsUserMeta *nvds_set_input_system_timestamp(GstBuffer * buffer,
^~~~~~~~~
/opt/nvidia/deepstream/deepstream-5.1/app/includes/nvds_latency_meta.h:107:47: note: suggested alternative: ‘setbuffer’
NvDsUserMeta *nvds_set_input_system_timestamp(GstBuffer * buffer,
^~~~~~~~~
setbuffer
/opt/nvidia/deepstream/deepstream-5.1/app/includes/nvds_latency_meta.h:107:59: error: ‘buffer’ was not declared in this scope
NvDsUserMeta *nvds_set_input_system_timestamp(GstBuffer * buffer,
…
and the error output goes on, meanwhile I can include nvds_analytics_meta.h (as in one the examples, for binding creation) successfully without any errors
Yes, I was referring to these examples in my earlier comment, I can’t even include nvds_latency_meta.h in my code (#include "nvds_latency_meta.h"), while there are no problems including nvds_analytics_meta.h or nvds_tracker_meta.h as in the examples.
Please resolve build problem with yourself. Such ”error: ‘xxxxxx’ was not declared in this scope“ means the dependent packages(libraries and headers) are not included. Please find with google.
I meant other are None (frame and obj user_metas). However now I am able to extract frame latency from batch_user_meta_list but the values are gibberish:
There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks
Can you try c sample deepstream-test3-app to test the same case first?