G.711 decrease to 8kHz

Sérgio Agostinho sergio.r.agostinho at gmail.com
Thu Dec 18 05:01:06 PST 2014


Have you tried using audioresample

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-audioresample.html

cheers

2014-12-18 13:39 GMT+01:00 Footniko <Footniko at gmail.com>:
>
> Hello!
> How can I decrease g.711 (PCMA) sound rate from 16000 to 8000? I use this
> pipeline:
> *gst-launch alsasrc ! queue ! alawenc ! rtppcmapay ! udpsink
> host=192.168.1.16 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=192.168.1.16 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=192.168.1.16 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141218/5036b06d/attachment.html>


More information about the gstreamer-devel mailing list