Frame index as frame data

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

Frame index as frame data

eyalhir74
Hi,
  I have a few bins in the pipe that run concurrently but all originates
from a singe multifilesrc element.
  I'd like to assign each frame coming out of the multifilesrc element a
unique sequence ID - its frame index.
 
  How would I do that? I've looked everywhere and the only thing I came up
with is somehow the gst_buffer_add_meta et al... However I didn't find any
complete, simple example as to how to use it/how to do what I need.

Any assistance would be greatly appreciated.

Thanks
Eyal



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Frame index as frame data

Mandar Joshi
Hi,
You are right. Meta is a way It can be done.
I would suggest writing a custom meta library.

Now to add it to the pipeline you can write a filter and do it in there.

But as I understand, with the meta you would need a way to read it somewhere down in the pipeline. May be you can pop it to the application. What do you want to do with the frame index after you've added it to GstBuffer?

Regards
Mandar
Czar Softech


On Wed, Jan 6, 2021, 20:27 eyalhir74 <[hidden email]> wrote:
Hi,
  I have a few bins in the pipe that run concurrently but all originates
from a singe multifilesrc element.
  I'd like to assign each frame coming out of the multifilesrc element a
unique sequence ID - its frame index.

  How would I do that? I've looked everywhere and the only thing I came up
with is somehow the gst_buffer_add_meta et al... However I didn't find any
complete, simple example as to how to use it/how to do what I need.

Any assistance would be greatly appreciated.

Thanks
Eyal



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
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