Hi Is it possible to retrieve all Meta(s) associated with a buffer, say by a call to gst_buffer_get_meta, and copy them over to another buffer, or one has to extract and insert Meta(s) one by one? Cheers, _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On Thu, 2016-09-22 at 13:49 -0700, ht techdev wrote:
Hi, > Is it possible to retrieve all Meta(s) associated with a buffer, say > by a call to gst_buffer_get_meta, and copy them over to another > buffer, or one has to extract and insert Meta(s) one by one? gst_buffer_copy_into (new, old, GST_BUFFER_COPY_METADATA, 0, -1); might do the trick. Cheers -Tim -- Tim Müller, Centricular Ltd - http://www.centricular.com Join us at the GStreamer Conference! 10-11 October 2016 in Berlin, Germany http://gstreamer.freedesktop.org/conference/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi
Unfortunately, doesn't seem to work. Did the following, to test it: (Below, GstXxxMeta is one of the Meta types that I wish to copy) ... gboolean stat=gst_buffer_copy_into (outBuf, inBuf, GstBufferCopyFlags(GST_BUFFER_COPY_METADATA|GST_BUFFER_COPY_DEEP), 0, -1); if(stat){ g_print("Copied all meta\n"); // This prints }else{ g_print("Meta copy failed\n"); } GstXxxMeta *xxx_meta=gst_buffer_get_xxx_meta (outBuf); if(xxx_meta){ GST_INFO_OBJECT(self,"Copied Meta =%d \n", vui_meta->xxxmeta->Val_1); // Does not print } xxx_meta=gst_buffer_get_xxx_meta (inBuf); if(xxx_meta){ GST_INFO_OBJECT(self,"Org Meta =%d \n", vui_meta->xxxmeta->Val_1); // Does print } ... "Copy Meta" line does not appear at all, while, "Copied all meta" prints out. Any thoughts? Cheers, -----Original Message----- From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Tim Müller Sent: Thursday, September 22, 2016 2:27 PM To: [hidden email] Subject: Re: Meta Question On Thu, 2016-09-22 at 13:49 -0700, ht techdev wrote: Hi, > Is it possible to retrieve all Meta(s) associated with a buffer, say > by a call to gst_buffer_get_meta, and copy them over to another > buffer, or one has to extract and insert Meta(s) one by one? gst_buffer_copy_into (new, old, GST_BUFFER_COPY_METADATA, 0, -1); might do the trick. Cheers -Tim -- Tim Müller, Centricular Ltd - http://www.centricular.com Join us at the GStreamer Conference! 10-11 October 2016 in Berlin, Germany http://gstreamer.freedesktop.org/conference/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |