avenc_g726le: Format not mapped to caps
Hi team, I have problem when using g 726 codec with little endian format. My pipeline can't work.
htdung@CaCs:~$ gst-launch-1.0 audiotestsrc ! audio/x-raw,rate=8000 ! audioconvert ! avenc_g726le ! avdec_g726le ! wavenc ! > filesink location=xxx.wav
Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /GstPipeline:pipeline0/avenc_g726le:avenc_g726le0: GStreamer error: negotiation problem. Additional debug info: gstaudioencoder.c(1369): gst_audio_encoder_chain (): /GstPipeline:pipeline0/avenc_g726le:avenc_g726le0: encoder not initialized ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... Freeing pipeline ...
I tried with big endian with same pipeline, and it is ok.
htdung@CaCs:~$ gst-launch-1.0 audiotestsrc ! audio/x-raw,rate=8000,channels=1 ! audioconvert ! avenc_g726 ! avdec_g726 ! wavenc ! filesink location=xxx.wav
Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock ^Chandling interrupt. Interrupt: Stopping pipeline ... Execution ended after 0:00:00.410484569 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ...
Thanks, version of my gstreamer is 1.16