<div dir="ltr">Dynamic latency changes feature to jitter buffer would not solve chopped sound issue if we will be reducing latency on fly.<div>Then there should additional plug in that would seamlessly adjust buffer time when we dynamically change sound latency from higher to lower real time.</div><div><br></div><div>Regards gstreamer on Android we see fixes proposed to gstreamer in sourcecode however none of them were implemented. Because on our previous projects there were no problems with lower output latency with 48 kHz sample rate.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-20 18:40 GMT+02:00 Stefan Sauer <span dir="ltr"><<a href="mailto:ensonic@hora-obscura.de" target="_blank">ensonic@hora-obscura.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<div>On 03/20/2015 05:04 PM, Henrikas
Urbonas wrote:<br>
</div>
</span><blockquote type="cite">
<div dir="ltr"><span class="">When you change "latency" while pipeline is
running, nothing happens.
<div>From documentation it looks like latency can be set and
have effect only before pipeline is in playing state.</div>
</span><div>Because if you change latency when pipeline is in playing
state it actually does not change the latency (we use jitter
buffer).</div>
</div>
</blockquote>
since you've tested this, the next step would be to file a feature
request for the jitter buffer to allow dynamic latency changes.<span class=""><br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Are there other ways to change latency except using rtspsrc
jitter buffer?</div>
</div>
</blockquote></span>
This is at least one of the elements that in the pipeline that
introduce latency and that can be configured. For other elements the
latency might be static. <br><span class="">
<br>
<blockquote type="cite">
<div dir="ltr">
<div>And why Android cannot use 48 kHz sample rate because some
devices have lower output latency when using this (48kHz)
sample rate?</div>
</div>
</blockquote></span>
I am not using gstreamer on android. You would need to start looking
at the audio source and sink elements and figure out why they won't
work at 48kHz (if that is the case).<span class="HOEnZb"><font color="#888888"><br>
<br>
Stefan</font></span><div><div class="h5"><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Thanks guys</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-03-20 10:12 GMT+02:00 Stefan Sauer
<span dir="ltr"><<a href="mailto:ensonic@hora-obscura.de" target="_blank">ensonic@hora-obscura.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span>
<div>On 03/18/2015 05:33 PM, Henrikas Urbonas wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">So that means to adjust it without
glithces we have to write a plugin for Gstreamer?</div>
</blockquote>
<br>
</span> I think most part of the latency is the buffering
time (e.g. in the jitter buffer). I would first try what
happens if you change the 'latency' parameter while the
pipeline is running.<span><font color="#888888"><br>
<br>
STefan <br>
</font></span>
<div>
<div> <br>
<blockquote type="cite">
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-03-18 18:23
GMT+02:00 Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2015-03-18 at
17:54 +0200, Henrikas Urbonas wrote:<br>
<br>
Hi,<br>
<span><br>
> We work on RTSP protocol and we want to
dynamically change sound<br>
> latency on client side without
re-initializing the pipeline, did<br>
> anyone tried it?<br>
<br>
</span>I think changing the latency on the fly
at runtime should work fine<br>
already, but what we don't have yet is a way
to smoothly adjust the<br>
latency over a period of time so that you can
do adjustments without<br>
glitches.<br>
<br>
Cheers<br>
<span><font color="#888888"> -Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
<br>
_______________________________________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org" target="_blank">gstreamer-android@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
</font></span></blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
gstreamer-android mailing list
<a href="mailto:gstreamer-android@lists.freedesktop.org" target="_blank">gstreamer-android@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org" target="_blank">gstreamer-android@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
gstreamer-android mailing list
<a href="mailto:gstreamer-android@lists.freedesktop.org" target="_blank">gstreamer-android@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
<br></blockquote></div><br></div>