APPSRC buffers caps
wim.taymans at gmail.com
Fri Jul 15 07:33:41 PDT 2011
On 07/15/2011 04:24 PM, cristian wrote:
> Hello all,
> I have as reference the appsrc example from gstreamer demo app. The demo
> feeds the pipeline with chunks extracted from one media file (mapping the
> file and then use an offset to feed chunks of data to the pipeline)
> My work is to feed the pipeline from chunks of data (PCM samples) coming
> from a device driver to user space. I am able to use the data to write into
> a wav file and then listen.
> I am not an expert , but if I get only data how does gstreamer elements know
> what caps to use?
You either set the caps property on appsrc or set caps on each buffer
before you push
it into appsrc, setting the caps on appsrc is recommended.
> So far I used :
> - set caps to appsrc element : g_object_set(G_OBJECT(m_datasource), "caps",
> bufcaps, NULL);
> - set every buffer , a hard coded caps : gst_buffer_set caps(buufer,
> I am working over a week on this I am running out of ideas.
> Any help , I appreciate greatly .
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/APPSRC-buffers-caps-tp3670075p3670075.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
More information about the gstreamer-devel