how to use avdec_g726 to decode g726 raw data

strong 330271189 at qq.com
Mon Mar 22 03:50:06 UTC 2021


hi, Nicolas
    Thanks for your help.
    Now  I can make avdec_g726 work, like
gst-launch-1.0 filesrc location=8000_1_b5.g726 do-timestamp=true blocksize=100 ! audio/x-adpcm, bitrate=40000, rate=8000, channels=1, layout=g726, format=S16LE ! avdec_g726  ! alsasink sync=false
    But another question is "mute" can not be set when "volume" plugin is used, for example,
if the command line is like
gst-launch-1.0 filesrc location=8000_1_b5.g726 do-timestamp=true blocksize=100 ! audio/x-adpcm, bitrate=40000, rate=8000, channels=1, layout=g726, format=S16LE ! avdec_g726  ! volume volume=5.0 ! alsasink sync=false
   it can work.


But if the command line is like
gst-launch-1.0 filesrc location=8000_1_b5.g726 do-timestamp=true blocksize=100 ! audio/x-adpcm, bitrate=40000, rate=8000, channels=1, layout=g726, format=S16LE ! avdec_g726  ! volume mute=true ! alsasink sync=false
  it can not work, the print message is 
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.255093264
Setting pipeline to NULL ...
Freeing pipeline ...
   
    it seems that mute in volume will close the stream,  I do not know the reason



Thanks very much
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210322/3dad7546/attachment-0001.htm>


More information about the gstreamer-devel mailing list