Passing additional info along with GstBuffer to downstream element

classic Classic list List threaded Threaded
4 messages Options
Vnd
Reply | Threaded
Open this post in threaded view
|

Passing additional info along with GstBuffer to downstream element

Vnd
Hi All,

I have captured some data in the decoder and store in memory. I want to pass it to down stream element (e.g Encoder) as memory pointer.

After doing little bit of research found that GstTagList and GstMeta can be used.
  - GstTagList can be used to send pointer as event to downstream element.  
  - GstMeta of buffer can be used where it flows with the buffer.

Which one better ?? Please give me plugins name where I can look into.
Is there any better way to do this ??


~ Vinod
Reply | Threaded
Open this post in threaded view
|

Re: Passing additional info along with GstBuffer to downstream element

Arun Raghavan-4
On Mon, 27 Jun 2016, at 03:13 PM, Vinod K wrote:

> Hi All,
>
> I have captured some data in the decoder and store in memory. I want to
> pass
> it to down stream element (e.g Encoder) as memory pointer.
>
> After doing little bit of research found that GstTagList and GstMeta can
> be
> used.
>   - GstTagList can be used to send pointer as event to downstream
>   element.  
>   - GstMeta of buffer can be used where it flows with the buffer.
>
> Which one better ?? Please give me plugins name where I can look into.
> Is there any better way to do this ??

This really comes down to what kind of metadata this is and how it is
consumed downstream.

If it's something stream-related, it might make sense to emit a tag. If
it is metadata that is specific to the buffer, a meta makes sense.

It might be easier to talk about what method is best if you are able to
share what you're trying to do more specifically.

-- Arun
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Vnd
Reply | Threaded
Open this post in threaded view
|

Re: Passing additional info along with GstBuffer to downstream element

Vnd
Hi Arun,
Thanks for your feed back.

Data is related to specific buffer(Some information about video frame).
It is not generic stream detail. I think GstMeta makes more sense than GstTag.
Am I right here ??


~ Vinod
Reply | Threaded
Open this post in threaded view
|

Re: Passing additional info along with GstBuffer to downstream element

salahgafoor
Hi Vinod,

I am also encountered the same issue.

Could you please provide me some hints for sending the extra data along with GstBuffer?

And, can we send additional information other than metadata info using GstMeta?

Thanks in advance!