Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) : Jetson
• DeepStream Version: 5.0.0
• JetPack Version (valid for Jetson only): 4.4.1
• TensorRT Version: 7.1.3.0
• NVIDIA GPU Driver Version (valid for GPU only) 10.2
• Issue Type( questions, new requirements, bugs): questions
Hi,
I am trying to override source config through OTA in deepstream-test5-app using apply_ota function, but error “g_object_set_is_valid_property: object class ‘GstBin’ has no property named 'enable”.
Can it update all the config through OTA? And how to do it?
Thank you.
Apply_ota function
void apply_ota (AppCtx * ota_appCtx)
{
// GstElement *primary_gie = NULL;
// if (ota_appCtx->override_config.primary_gie_config.enable) {
// primary_gie =
// ota_appCtx->pipeline.common_elements.primary_gie_bin.primary_gie;
// gchar *model_engine_file_path =
// ota_appCtx->override_config.primary_gie_config.model_engine_file_path;
// gettimeofday (&ota_request_time, NULL);
// if (model_engine_file_path) {
// g_print (“\nNew Model Update Request %s ----> %s\n”,
// GST_ELEMENT_NAME (primary_gie), model_engine_file_path);
// g_object_set (G_OBJECT (primary_gie), “model-engine-file”,
// model_engine_file_path, NULL);
// } else {
// g_print
// (“\nInvalid New Model Update Request received. Property model-engine-path is not set\n”);
// }
// }
GstElement *source = NULL;
source = ota_appCtx->pipeline.multi_src_bin.sub_bins->src_elem;
gboolean src_enable = ota_appCtx->override_config.multi_source_config[0].enable;
gettimeofday (&ota_request_time, NULL);
g_print(“\nNew Src Update Request ----> %d \n”, src_enable);
g_object_set (G_OBJECT (source), “enable”,
src_enable, NULL);
}