Can I control smart record in deepstream_app_main.c?

• Hardware Platform (Jetson / GPU)
NVIDIA Jetson Nano (Developer Kit Version)
• DeepStream Version
• JetPack Version (valid for Jetson only)
4.4[L4T 32.4.3]
• TensorRT Version

I can enable smart record now, but it seems like if I open 4 rtsp cameras, and it will record 4 video for 4 cameras, but I open the videos recorded by smart record, there is no any event(person detected) happen.

Thanks @bcao tell me the smart_record_event_generator() in deepstream_source_bin.c , but if I want to control smart record trigger or not by some if conditions(e.g. position of object…), can I implement this function in deepstream_app_main.c?

I have tried it but it seem like smart_record_event_generator() is called by create_rtsp_src_bin() in deepstream_source_bin.c, and I can not find NvDsSrcBin object in deepstream_app_main.c, is there any solution?

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.

I didn’t get, why it must be in deepstream_app_main.c