Turning off the automatic Smart Record

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 7.0
• JetPack Version (valid for Jetson only)
• TensorRT Version 8.6.1
• NVIDIA GPU Driver Version (valid for GPU only) 535.183
• Issue Type( questions, new requirements, bugs) questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I manage to use Smart Record in deepstream-app sample project. However, once I set the smart-record = 2 in configuration, without NvDsSRStart() in pipeline, the app starts recording and generate a 10s video, and keep looping this feature. I refer Smart Record documentation and I find that indeed it has this features. So how could disable automatic Smart Recording when smart-record = 2? Thank you!

please smart-rec-interval to a big number in the configuration file. deepstream-app is opensource. you can find the following code in create_rtsp_src_bin of \opt\nvidia\deepstream\deepstream\sources\apps\apps-common\src\deepstream_source_bin.c

  if (config->smart_record == 2) {
    if (bin->config->smart_rec_interval)
      g_timeout_add (bin->config->smart_rec_interval * 1000,
          smart_record_event_generator, bin);
    else
      g_timeout_add (10000, smart_record_event_generator, bin);
  }

Thanks for your reply. I commented the code you mentioned, and it worked.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.