[gst-devel] sending extra data along with buffers

Edward Hervey bilboed at gmail.com
Mon Jan 14 11:27:36 CET 2008


  Another aproach would be to have a second stream for your metadata :)

  It gives you the added bonus of
  * being able to use the non-modified (audio or video) stream with
existing plugins, 
  * be able to modify, if needed, your metadata stream with new elements
that know how to handle it
  * create/modify elements that need both streams (using timestamps of
buffer to correlate the raw buffers to the associated metadata
  * Not modifying GStreamer core for this


On Mon, 2008-01-14 at 10:05 +0100, Stefan Kost wrote:
> hi,
> I am looking for a way to send some private data along with a buffer.  
> During data capture I get some metadata about capture settings and I  
> would like to store/analyze them later along with the data stream. I  
> tried to add a payload item to caps and put a GstBuffer there. But  
> this seems to be painful and I am afraid that it will cause  
> renegotiation as the content changes for each buffer. Has anyone been  
> doing something similar?
> alternative (better approach) seems to be using a buffer subclass, right?
> Attached is my current test. Its a bit hackish and fails. One thing I  
> was wondering is that fakesrc send buffer with caps=NULL. A bug?
> Stefan
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

More information about the gstreamer-devel mailing list