Getting buffer metadata with a plugin written in python

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Getting buffer metadata with a plugin written in python


For the sake of flexibility, we want to write a plugin in python (through pygi).

I can write a "hello world" plugin, but I don't succeed in getting metadata linked with buffers.

I can get the adress of the corresponding metadata, but all I get is a "void" object.

Here is a snippet of what I try :

    def do_transform_ip(self, buf):
        meta  = buf.get_meta("MyMetaAPI")
        if meta:

        return Gst.FlowReturn.OK

MyMetaAPI comes from a C header file and it seems well defined as the print instruction shows the adress of the void pointer (and the adress is the same as in another plugin in the pipeline). However, meta.flags shows "<flags 0 of type GstMetaFlags>".

I don't know if I need to call Gst.Meta.register() or if it's my Gst.Buffer.get_meta() call who is wrong. I read but the translation in python is not obvious.


Jonathan DEMEYER  
gstreamer-devel mailing list
[hidden email]