<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>hi, all</div><div>    I want to use gstreamer/libav to encode$decode with g726, the command line I used is</div><div>encode:</div><div>gst-launch-1.0 alsasrc device=hw:0 ! audio/x-raw, rate=8000, channels=1, format=S16LE, layout=interleaved ! avenc_g726 code_size=5 ! filesink location=test.g726</div><div>it can work well, I can use ffplay to decode test.g726</div><div><br></div><div>decode:</div><div>gst-launch-1.0 filesrc location=test.g726 blocksize=100 ! audio/x-adpcm, bitrate=40000, rate=8000, channels=1, layout=g726 ! avdec_g726 ! filesink location=test.pcm</div><div><br></div><div>some issues are found</div><div><br></div><div><div>Setting pipeline to PAUSED ...</div><div>Pipeline is PREROLLING ...</div><div>ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data stream error.</div><div>Additional debug info:</div><div>../subprojects/gstreamer/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:</div><div>streaming stopped, reason error (-5)</div><div>ERROR: pipeline doesn't want to preroll.</div><div>Setting pipeline to NULL ...</div><div>Freeing pipeline ...</div></div><div><br></div><div>It seems that filesrc plugin can not parse g726 raw data, do anybody give me some suggestion to fix the issue?</div><div><br></div><div>Thanks</div>