How to insert into database using deepstream?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Jetson Orin
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version

I am trying to insert detections into a local mysql database. My pipeline has an RTSP stream as output. I tried inserting into the database within tiler_sink_pad_buffer_probe() where I can get the frame metadata but this makes it very slow. What is the best way to insert into a database using deepstream?

Currently there is no similar sample, but please be noted that adding the database operation function in probe() function will block the execution until the database operation finishes, you may consider sending the data from probe() to another thread and let the thread tackle the database.

Threading did not work. The right way to get metada out of the stream is using nvmsgconv and nvmsgbroker

1 Like

Yes, you can use msgconv and msgbrober. You can refer the source code demo: deepstream-test4

1 Like

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