how to use avdec_g726 to decode g726 raw data

strong 330271189 at
Thu Mar 11 04:10:46 UTC 2021

hi, all
    I want to use gstreamer/libav to encode$decode with g726, the command line I used is
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
it can work well, I can use ffplay to decode test.g726

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

some issues are found

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data stream error.
Additional debug info:
../subprojects/gstreamer/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

It seems that filesrc plugin can not parse g726 raw data, do anybody give me some suggestion to fix the issue?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list