APPSRC buffers caps

cristian cristianurban86 at gmail.com
Fri Jul 15 07:24:32 PDT 2011


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?
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,
mycaps);
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.


More information about the gstreamer-devel mailing list