Buffer sent to appsrc is not playing completely

Sree Gowri sreegowris at gmail.com
Thu Dec 8 06:18:57 PST 2011


Hi All ,


First would like to thank Tim for answering previous query.

I am using appsrc to pass the buffer to the pipeline. From the file, buffer
is read of size READBUF and then passed to gst_app_buffer_new.

I have defined READBUF as 188*1000 as the max_bytes appsrc accepts is 20000.

code snippet as follows
"
const int READBUF = 188*1000;
bytes_read = fread(data, 1, READBUF,  fp);
buf =( GstBuffer *) gst_app_buffer_new (data, READBUF, g_free, data);
"

and the pipeline is "pipeline= gst_parse_launch("appsrc name=mysource
!audio/mpeg ! mad ! alsasink", NULL);"

However I can listen only to some portion of audio from the file and then
gets segmentation fault. Not sure why the entire buffer is not playing.

I am investigating on this. Kindly let me know if I am missing anything.
Soon will post the entire code.


Currently buffer contains only mp3 data. In case if buffer contains mp3
data+metadata, does gstreamer skips the metadata and plays only audio
data?? or do we need to remove the metadata and then give only audio data
to gstreamer.

Kindly let me know on this.

Thanks and Regards,
Gowri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111208/fc180e94/attachment.html>


More information about the gstreamer-devel mailing list