<div dir="ltr"><pre>> Yes. You need to measure where that latency is introduced. Both alsasrc
> and alsasink will add a non-trivial amount of latency by default. You
> should be able to configure both of these elements for much lower
> latency.<br><br><br></pre><pre>setting latency-time and buffer-time on both ends did nothing for the latency,<br>reducing buffer-time too much even results in stutter.<br><br>I removed both queues (on sender and receiver) which helped a little but not really.<br><br></pre><pre>qos and max-lateness on the receiver didn't help either. I don't know what else to tweak<br></pre><pre><br></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 March 2017 at 15:20, David Ventura <span dir="ltr"><<a href="mailto:davidventura27@gmail.com" target="_blank">davidventura27@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div>I've been trying to listen to a microphone that's on the network but the latency is too great for it to be acceptable. We are talking ethernet, ping <1ms but actual audio latency is (guessed) ~800ms</div><div><br></div><div>My pipeline</div><div><br></div><div><pre style="color:rgb(0,0,0)">gst-launch-1.0 alsasrc device=hw:CARD=CODEC,DEV=0 slave-method=resample provide-clock=true do-timestamp=true buffer-time=20000 ! queue ! audioconvert ! audioresample ! audio/x-raw,format=S16LE,<wbr>channels=2,rate=48000,layout=<wbr>interleaved ! multiudpsink clients=<a href="http://192.168.2.208:5003" target="_blank">192.168.2.208:5003</a>,<a href="http://192.168.2.21:5003" target="_blank">192<wbr>.168.2.21:5003</a></pre><div><br></div><div>And the receiving end</div><div><br></div><div><pre style="color:rgb(0,0,0)">gst-launch-1.0 udpsrc port=5003 ! audio/x-raw,format=S16LE,<wbr>channels=2,layout=interleaved,<wbr>rate=$AUDIORATE ! autoaudiosink</pre><pre style="color:rgb(0,0,0)"><br></pre><pre style="color:rgb(0,0,0)">Is there any way to have very fast LAN audio streaming? </pre><span class="HOEnZb"><font color="#888888"><pre style="color:rgb(0,0,0)"><br></pre><pre style="color:rgb(0,0,0)">David</pre></font></span></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_998729119508223466gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b>Stack</b> is the new term for "I have no idea what I'm actually
using".</div></div></div></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b>Stack</b> is the new term for "I have no idea what I'm actually
using".</div></div></div></div></div>
</div>