Android : Play PCM-File with Gstreamer

on Tuesday, March 24, 2015


I have created a pcm-file with this android app: https://github.com/roman10/roman10-android-tutorial/tree/master/AndroidPCMRecorder


Now I want to play the created file with gstreamer. I found the code here: https://delog.wordpress.com/2011/10/04/read-and-write-raw-pcm-using-gstreamer/


This is the console command, which I use with Gstreamer 1.0:



gst-launch-1.0 filesrc location=testpcm.pcm !
audio/x-raw, rate=44100, channels=1, endianness=4321, width=16, depth=16, signed=true !
pulsesink


When I execute this command I get this error



ERROR OF ELEMENT: /GstPipeline:pipeline0/GstCapsFilter:capsfilter0: Filter caps do not completely specify the output format

ADDITIONALDEBUGINFO:
gstcapsfilter.c(356): gst_capsfilter_prepare_buf ():
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0:
Output caps are unfixed: audio/x-raw, rate=(int)44100, channels=(int)1, endianness=(int)4321, width=(int)16, depth=(int)16, signed=(boolean)true, format=(string){ S16LE, S16BE, F32LE, F32BE, S32LE, S32BE, S24LE, S24BE, S24_32LE, S24_32BE, U8 }, layout=(string)interleaved

0 comments:

Post a Comment