Probe deepstream pipeline written by gstreamermm

Hi forum. I’m trying to use gstreamer c++ wrapper to write a class using some function of deepstream. For the probe function, it used gst_buffer_get_nvds_batch_meta() and I don’t think deepstream now has c++ wrapper.

My question is that since they use Glib::RefPtr <Gst::Buffer> in gstreamer c++ wrapper, is it possible to directly casting this back to GstBuffer pointer?

Has anyone have used this or have any idea about this?

Thanks in advance

• Hardware Platform (Jetson / GPU): Jetson xavier
• DeepStream Version: 5.0
• JetPack Version (valid for Jetson only): 4.4
• TensorRT Version: 7.1.3
• Issue Type( questions, new requirements, bugs): question

Please refer to


The sample plugin is compiled through g++. Please check if you can make custom plugin based on the sample.