Couldn't send metadata inside buffer from one custom plugin to another custom plugin

Mathieu Duponchelle mathieu at centricular.com
Wed Jun 9 12:45:22 UTC 2021


Hey, if using latest GStreamer you might want to use custom meta:

https://gstreamer.freedesktop.org/documentation/gstreamer/gstmeta.html?gi-language=c#gst_meta_register_custom

Cheers,

-- 
Mathieu Duponchelle · https://www.centricular.com <https://www.centricular.com>

On 6/8/21 6:30 PM, Aswin via gstreamer-devel wrote:
> Hi Team , 
>
> I have built custom plugins in python for my use case where one of the
> plugins sends the following metadata in the buffer :
>
> [
> { "key 1" : int, "key 2" : [list of 20 elements]}, 
> { "key 1" : int, "key 2" : [list of 20 elements]}, 
> { "key 1" : int, "key 2" : [list of 20 elements]}, 
> { "key 1" : int, "key 2" : [list of 20 elements]}
> ]
>
> Note : The above structure is in Python
>
> I am able to encode this data as ctypes & put it into buffer. 
>
> The immediate downstream plugin gets the buffer & decodes the metadata.
>
> The problem is when i decode the buffer in downstream plugin, it gives an
> empty list. But when i decode in the same plugin which encodes, i am able to
> decode & get the same data as sent.
>
> I also found that we have to register the Metadata info. I have not
> registered any metadata info yet in C. Does this fails because of that
> reason where I dont have any Structure registered ??
>
> Also i found the metadata API as an alternative. Firstly how to register one
> such API in python ? And secondly which is best - 1) API for metadata or 2)
> Registering the structure in C & generating ".so" file for it.
>
> So far i am following this thread :
> http://lifestyletransfer.com/how-to-add-metadata-to-gstreamer-buffer-in-python/
>
> This thread talks about encoding data into buffer.
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list