<font color='black' size='2' face='arial'><font size="4"><font style="font-family: arial;">I am trying to record audio into adpcm format using gst-launch and ffenc_g726 encoder.</font></font>
<div style="font-family: arial;"><font size="4">I have tried following:</font></div>
<div style="font-family: arial; font-size: 10pt;"><br>
</div>
<div><pre class="bz_comment_text" style="white-space: pre-wrap; width: 50em; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"><font size="3"><font face="arial"><b>gst-launch autoaudiosrc ! ffenc_g726 bitrate=16000 ! filesink location="recg726.wav"</b>
File (recg726.wav) recorded fine</font><font face="Arial, Helvetica, sans-serif"> (size >0bytes)</font><font face="arial">.
But when I tried to Playback;
<i><b>gst-launch filesrc location=recg726.wav ! ffdec_g726 ! alsasink </b></i></font></font></pre><pre class="bz_comment_text" style="white-space: pre-wrap; width: 50em; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"><font size="3"><font face="arial">I am getting following error:</font></font></pre><pre class="bz_comment_text" style="white-space: pre-wrap; width: 50em; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"><font size="3"><b><font face="arial">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
</font><a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer" style="font-family: arial; color: rgb(102, 51, 102);">http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</a></b><font face="arial"><b>.
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 ...</b>
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?</font></font></pre><pre class="bz_comment_text" style="white-space: pre-wrap; width: 50em; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"><span style="font-family: arial; font-size: medium;"><b>gst-launch playbin uri=file:///home/root/recg726.wav</b></span><font size="3"><font face="arial">
</font></font></pre><pre class="bz_comment_text" style="white-space: pre-wrap; width: 50em; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"><font size="3"><font face="arial"><b>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 ...</b></font></font></pre></div>
</font>