Adding MetaData to GstBuffer

Michael Gruner michael.gruner at ridgerun.com
Sat Sep 25 18:49:37 UTC 2021


Hello Roshan

The GstMeta is not transmitted through network. If your want a standard way to transmit metadata over the network along with audio and video you may look into Transport Stream. This will allow you to insert your custom metadata without breaking existing decoders. GStreamer already has support for this.

Another option may be to use a codec that allows you to insert custom data within the compressed bitstream (like SEI in H264 or H265). That, however is a bit more tricky to get right. 

Michael
www.ridgerun.con

> On 25 Sep 2021, at 08:24, Roshan Chaudhari via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:
> 
> 
> Hello,
> 
> I am trying to append some metadata to the data transferred over udp using gstreamer.
> 
> I would like to know whether metadata in GstBuffer is transferred/retained when transferred over the network or it is only retained in that pipeline? I have tried using my custom metadata with gst_buffer_add_meta() at the udpsink, however, when I try to query it on udpsrc on other machine using gst_buffer_get_meta(), metadata is not present in GstBuffer. 
> 
> If this is not carried over the network, what would be the other way to add metadata? I could write custom plugin and append to actual data, so my custom encoder and decoder knows how to extract real data and pass it to next stage in the pipeline. But this way, it puts restriction on the receiver side to have decoder if my data contains metadata.
> 
> -
> Thanks,
> Roshan
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210925/f9f2cf67/attachment.htm>


More information about the gstreamer-devel mailing list