Accessing NvDsFrameMeta from GstBuffer after Gst-nvstreamdemux

I am trying to access the NvDsFrameMeta object via a probe function but I can’t succeed. I have read the documentation on Gst-nvstreamdemux Gst-nvstreamdemux — DeepStream 6.2 Release documentation but the details of the metadata attach to each output is sparse. My question; is it possible/supported to access the NvDsFrameMeta from a GstBuffer on one of the output branch of a Gst-nvstreamdemux element?

Can you provide the code of your probe function?
There are some examples of accessing the data structure in a probe at the OSD’s sinkpad (which is also after nvstreamdemux).

You can check this link https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/apps/deepstream-test1/deepstream_test_1.py#L58

Yes. You can try to get the pad through gst_element_get_request_pad (streamdemux, "src_0"); to get the pad of source0.

Thanks for your response.

The link you provided points to an example with no nvstreamdemux. Did you mean to link this example?

Thanks for the response, I have access to the pads. My issue is when i try to access the NvDsFrameMeta from a GstBuffer.

Actually as long as you’re using a Buffer probe at any pad after nvstreammux you should be able to access NvDsFrameMeta. So the way of accessing is the same whether you have nvstreamdemux or not.

Can you share you code so maybe we can check?

(And yes, the link you shared is also correct)

I think I have identified the real issue, it’s not as I initially thought, because of the nvstreamdemux. It looks like the NvDsFrameMeta is being stripped from the GstBuffer after I pass through the nvv4l2h264enc element. I have checked the documentation for this element and states that there is a property copy-meta but this doesn’t seem to change anything for me. Gst-nvvideo4linux2 — DeepStream 6.2 Release documentation

Any help with this would be greatly appreciated

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

Could you attach your whole pipeline?

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