<p dir="ltr"></p>
<p dir="ltr">Le 4 nov. 2016 1:42 PM, "David Ventura" <<a href="mailto:davidventura27@gmail.com">davidventura27@gmail.com</a>> a écrit :<br>
><br>
> Hi. I'm trying to get audio (voice only) over udp on local network.<br>
><br>
> First: Listening to the mic directly through alsa gives me great quality; there's no overdrive when shouting/talking WAY too close to the mic.<br>
><br>
> Now, when using the following pipeline the audio is .. ok. The quality is not 'good'. It's good enough, but there's a clear quality drop from directly listening to the mic. There's overdrive when there's shouting, etc.</p>
<p dir="ltr">That is likely the side effect of using mu-law compression. It should sound like weird phone at best.</p>
<p dir="ltr">Maybe your use case allow using raw pcm (l16pay) or opus codec if compression matter (you can even turn on music mode on opus, it gives great results).</p>
<p dir="ltr">><br>
><br>
> Producer:<br>
><br>
> gst-launch-1.0  alsasrc slave-method=resample do-timestamp=true ! audioconvert ! audioresample ! mulawenc ! rtppcmupay ! multiudpsink clients=<a href="http://192.168.2.120:5001">192.168.2.120:5001</a><br>
><br>
> Consumer:<br>
><br>
><br>
> gst-launch-1.0 -q udpsrc port=5001 caps="application/x-rtp" do-timestamp=true ! rtppcmudepay ! mulawdec <br>
> ! audioconvert ! audioresample ! audio/x-raw,format=S16LE,layout=interleaved, rate=44100, channels=2 ! fdsink fd=1 sync=true <br>
><br>
> What's happening? Is this the recommended way to do audio over udp?<br>
> I have gstreamer 1.4.4 on the producer and 1.9.90 on the consumer.<br>
><br>
> -- <br>
> Stack is the new term for "I have no idea what I'm actually using".<br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
></p>