Attach custom gst metadata to deepstream pipeline in Python

• Hardware Platform: Jetson or dGPU
• DeepStream Version: 5.1
• JetPack Version: 4.5.1
• NVIDIA GPU Driver Version (valid for GPU only): 460.73.01
• Issue Type: question
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Dear all,

I am trying to implement a deepstream application in Python, where I can add gst custom metadata on appsrc source element and retrieve back them at the pipeline tail (appsink or also after gst-nvofvisual). For instance, I would like to attach to each frame further information, such as custom timestamp or generally custom information and being able to read them back in a subsequent pipeline element. I have seen that this is possible and has been implemented in C in the example “deepstream_gst_metadata.c”. Is it possible to replicate it in Python?

As from here, How to use pyds with custom Object classes? - #7 by recharles, it seems that it is necessary to construct a new Python binding for a custom object, but unfortunately for me it didn’t work. Do you have any advice?

Thanks

There is python binding for “gst_buffer_add_nvds_meta”. Which is the key of c/c++ sample deepstream_gst_metadata.c. You can translate the c/c++ implementation to python implementation.

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