<div dir="ltr">Have you tried using audioresample<div><br></div><div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-audioresample.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-audioresample.html</a><br></div><div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-18 13:39 GMT+01:00 Footniko <span dir="ltr"><<a href="mailto:Footniko@gmail.com" target="_blank">Footniko@gmail.com</a>></span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
How can I decrease g.711 (PCMA) sound rate from 16000 to 8000? I use this<br>
pipeline:<br>
*gst-launch alsasrc ! queue ! alawenc ! rtppcmapay ! udpsink<br>
host=192.168.1.16 port=3001*<br>
<br>
And, as default, it streams 16kHz audio. I also have been tryied:<br>
*gst-launch alsasrc ! audioconvert !<br>
audio/x-raw-int,channels=1,depth=16,width=16,rate=8000 ! alawenc !<br>
rtppcmapay ! udpsink host=192.168.1.16 port=3001*<br>
<br>
At this way it still 16kHz. Then i've been tryied:<br>
*gst-launch alsasrc ! audioconvert !<br>
audio/x-raw-int,channels=1,depth=8,width=8,rate=8000 ! alawenc ! rtppcmapay<br>
! udpsink host=192.168.1.16 port=3001*<br>
<br>
But got an error:<br>
*WARNING: erroneous pipeline: could not link audioconvert0 to alawenc0*<br>
<br>
Thanks, regards.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/G-711-decrease-to-8kHz-tp4669957.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/G-711-decrease-to-8kHz-tp4669957.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div>