<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Le mar. 2 oct. 2018 04 h 42, Niels Avonds <<a href="mailto:niels.avonds@gmail.com">niels.avonds@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
I'm working on a project where we're using GStreamer to build an<br>
Android WebRTC application. Currently, we're dealing with echo<br>
problems. What is the recommended way to deal with these issues when<br>
using GStreamer under Android?<br>
<br>
I have tried using the webrtcdsp and webrtcechoprobe elements, but<br>
that hasn't been successful. I'm able to make those elements work on<br>
my pc, but not on Android. I've tried the following simple pipeline<br>
(adjusted for Android from the example pipeline given in the webrtcdsp<br>
documentation):<br>
<br>
openslessrc ! webrtcdsp ! webrtcechoprobe ! openslessink sync=true<br>
<br>
This doesn't cancel the echo, while a similar pipeline on the pc is<br>
working perfectly:<br>
<br>
pulsesrc ! webrtcdsp ! webrtcechoprobe ! pulsesink sync=true<br>
<br>
I've noticed that the buffer length for opensles is 20ms by default.<br>
Could this be the issue?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div><div dir="auto">20ms should not be an issue. Webrtcdsp will cut it in half. Most of the time it is the latency that is too high, or wrongly reported. Reducing the latency will reduce the error margin. Try refusing buffer-time property on openslessink to some small multiple of "latency" property. So let say you chose 20ms latency, then try buffer-time at 60 or 80ms. If I remember, the total pipeline latency should not exceed 200ms.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks in advance!<br>
Best regards,<br>
Niels Avonds<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>