Deepstream-app is freezed for nvds_obj_enc_process

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) RTX3080
• DeepStream Version 6.4
To save image using nvds_obj_enc_process, we need four steps. nvds_obj_enc_create_context, nvds_obj_enc_process, nvds_obj_enc_finish and nvds_obj_enc_destroy_context.
I have created all four apis in deepstream-app.c

Inside create_pipeline()

obj_ctx_handle = nvds_obj_enc_create_context (0); 
  if (!obj_ctx_handle) {
    g_print ("Unable to create context\n");
    return -1;

Inside destroy_pipeline,
nvds_obj_enc_destroy_context (obj_ctx_handle);

Then in write_kitti_output(),
nvds_obj_enc_process (obj_ctx_handle, &frameData, ip_surf, NULL, frame_meta); nvds_obj_enc_finish (obj_ctx_handle);

But application is freezed when doing nvds_obj_enc_process,
What could be wong?
deepstream_app.c is attached.
deepstream_app.txt (77.7 KB)
extension is changed so that the file can be uploaded.

Could you attach your command to run the deepstream-app?

Thanks. Fiona helped me in the earlier post.