Python API
Abdumuminov, Umedzhon
umedzhon.abdumuminov at intel.com
Tue Oct 15 16:45:41 UTC 2019
Hi there,
I have custom element that some attaches metadata to buffers.
Now, I'm writing python application that should uses those metadatas attached by my custom element. I built a pipeline with appsink element. I subscribed to "new-sample" event of appsink and here is my problem:
How can I extract all metadatas attached to buffer?
I tried to use Gst.Buffer.foreach (https://gstreamer.freedesktop.org/documentation/gstreamer/gstbuffer.html#gst_buffer_foreach_meta) but that prints me a lot of GSTREAMER-CRITICAL errors (GStreamer-CRITICAL **: 14:45:13.275: gst_buffer_foreach_meta: assertion 'gst_buffer_is_writable (buffer)' failed).
I there any other way to iterate through metas?
However, I tried to find any workaround and found this function: GstVideo.buffer_get_video_region_of_interest_meta_id and here is my next question:
What is purpose of GstVideoRegionOfInterestMeta::id?
Regards,
Umed
--------------------------------------------------------------------
Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
More information about the gstreamer-devel
mailing list