Record audio into adpcm format with gstreamer

George Keep ge_keep at aol.com
Wed Jul 9 06:36:21 PDT 2014


I am trying to record audio into adpcm format using gst-launch and ffenc_g726 encoder.
I have tried following:



gst-launch autoaudiosrc ! ffenc_g726 bitrate=16000 ! filesink location="recg726.wav"

File (recg726.wav) recorded fine (size >0bytes).

But when I tried to Playback;
gst-launch filesrc location=recg726.wav ! ffdec_g726 ! alsasink 
I am getting following error:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/ffdec_g726:ffdec_g7260: Internal
GStreamer error: negotiation problem.  Please file a bug at
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstffmpegdec.c(2804): gst_ffmpegdec_chain ():
/GstPipeline:pipeline0/ffdec_g726:ffdec_g7260:
ffdec_g726: input format was not set before data start
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...


For Playback, I also tried following and see that the error is about type of the stream not found into the recorded file. Is anyone can help me here?
gst-launch playbin uri=file:///home/root/recg726.wav

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind: Could
not determine type of stream.
Additional debug info:
gsttypefindelement.c(996): gst_type_find_element_activate ():
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind
Setting pipeline to NULL ...
Freeing pipeline ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140709/dd06e458/attachment-0001.html>


More information about the gstreamer-devel mailing list