Sending Frames + MetaData (detections + classes + tracking IDs) to Kafka for each stream running

I have tried again with the exact command you have provided. Here is the command I am using:

docker run --gpus all -it --rm --net=host --privileged -v ~/workspace/deepstream_kafka/deepstream/:/custom_workspace -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-7.1 nvcr.io/nvidia/deepstream:7.1-triton-multiarch

Still getting the same error. Segmentation Fault (core dumped). :/

Are you using WSL? Don’t use WSL, it’s just an alpha release and has too many bugs

Do you have another GPU to test? This may be a hardware/driver related issue, use native linux and test with another GPU

I have tested the same solution on a Linux based system with an A40 GPU and it works!
Thank you so much for your help

@usmanmalik291 So now you are able to sent frames (full image) to Kafka without saving in the disk? Please confirm the same.

generate_event_msg_meta this function is responsible for generating metadata (along with frames). I am wondering where it is sending the message to Kafka?

No, the frames are being saved to disk. My objective is still to send them over Kafka. As a quick workaround, I am sending the path I am saving them at.

The function nvds_obj_enc_process doesn’t return the frame, but only writes it to disk.

Now looking into getting a base64 image to send over Kafka.

This is not true, test4 has given a complete example, please refer to test4, as I repeatedly mentioned above

if (usrMetaData->base_meta.meta_type == NVDS_CROP_IMAGE_META) {
            NvDsObjEncOutParams *enc_jpeg_image =
                (NvDsObjEncOutParams *) usrMetaData->user_meta_data;
            START_PROFILE;
            encoded_data = g_base64_encode(enc_jpeg_image->outBuffer, enc_jpeg_image->outLen);

Can you Please provide the link of deepstream_test4_app.c, and explicitly mention where to put the above given code snippets.

Please open a new topic for your issue.

/opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-test4/deepstream_test4_app.c

Please provide me the steps to get the readme file of deepstream_test4_app.c.
Do I to clone deepstream for that?

What about deepStream-test5?
there is no mention about publishing image data to Kafka

If you have installed DeepStream correctly, REAME is located at /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-test4/README, and the code is open source

Please open a new topic for your question, do not reply to closed questions