Hi All ,<br><br><br>First would like to thank Tim for answering previous query.<br><br>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.<br>
<br>I have defined READBUF as 188*1000 as the max_bytes appsrc accepts is 20000.<br><br>code snippet as follows <br>"<br>const int READBUF = 188*1000;<br>bytes_read = fread(data, 1, READBUF, fp);<br>buf =( GstBuffer *) gst_app_buffer_new (data, READBUF, g_free, data);<br>
"<br><br>and the pipeline is "pipeline= gst_parse_launch("appsrc name=mysource !audio/mpeg ! mad ! alsasink", NULL);"<br><br>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.<br>
<br>I am investigating on this. Kindly let me know if I am missing anything. Soon will post the entire code.<br><br><br>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.<br>
<br>Kindly let me know on this.<br><br>Thanks and Regards,<br>Gowri<br>