Nvdsanalytics: dynamically change config file

Hi,

I’m wondering if changing the config-file for the nvdsanalytics is supported while the pipeline is running.

Basically I need to change config_nvdsanalytics.txt and then apply the change like this:

 g_object_set (G_OBJECT (nvdsanalytics),
      "config-file", "config_nvdsanalytics.txt",
       NULL);

while the GStreamer pipeline is running and not before setting the pipeline state to GST_STATE_PLAYING as demostrated in `deepstream-nvdsanalytics-test.

Is this supported? Thank you

• Hardware Platform Jetson
• DeepStream Version 5.0
• JetPack Version 4.4
• TensorRT Version 7.1.3

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

It should work, have you tested it?

Sorry for the delay I confirm that it works, thank you

@listsw5yds Hi, I want to dynamically change nvdsanalytics, I want to ask if I want to change during running time, I suppose to execute the function above? Or I suppose to make the on the fly update to watch the nvdsanalytic config file?