G.711 decrease to 8kHz

Footniko Footniko at gmail.com
Thu Dec 18 04:39:00 PST 2014

How can I decrease g.711 (PCMA) sound rate from 16000 to 8000? I use this
*gst-launch alsasrc ! queue ! alawenc ! rtppcmapay ! udpsink
host= port=3001*

And, as default, it streams 16kHz audio. I also have been tryied:
*gst-launch alsasrc ! audioconvert !
audio/x-raw-int,channels=1,depth=16,width=16,rate=8000 ! alawenc !
rtppcmapay ! udpsink host= port=3001*

At this way it still 16kHz. Then i've been tryied:
*gst-launch alsasrc ! audioconvert !
audio/x-raw-int,channels=1,depth=8,width=8,rate=8000 ! alawenc ! rtppcmapay
! udpsink host= port=3001*

But got an error:
*WARNING: erroneous pipeline: could not link audioconvert0 to alawenc0*

Thanks, regards.

View this message in context: http://gstreamer-devel.966125.n4.nabble.com/G-711-decrease-to-8kHz-tp4669957.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

More information about the gstreamer-devel mailing list