<div dir="auto">Thank you Tim.<div dir="auto"><br></div><div dir="auto">It works flawless. It now has a very good performance, and even the artefacts are resolved better than Vitamiun or the standard player.</div></div><div class="gmail_extra"><br><div class="gmail_quote">Em 21 de set de 2017 10:26, "Tim Müller" <<a href="mailto:tim@centricular.com">tim@centricular.com</a>> escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2017-09-20 at 14:13 -0300, Azure1 Sureale wrote:<br>
<br>
Hi,<br>
<br>
> Hello, I'm trying to have an Android Player receiving a RTSP stream<br>
> from the internet and play it with very low latency. <br>
> I'm using Tutorial 5 from the GStreamer home. Without any change my<br>
> stream has a latency about 2 seconds (worst than Vitamio that I was<br>
> using previously).<br>
><br>
> With futher investigation we realized we could change the latency to<br>
> 0 in the pipeline using this code:<br>
><br>
> ******************************<wbr>******************************<wbr>****<br>
> data->pipeline = gst_parse_launch("playbin", &error);<br>
> gst_pipeline_set_latency(data-<wbr>>pipeline,0); //This is what I wrote<br>
<br>
This is not the right way to reduce the latency.<br>
<br>
What you need to do with playbin is: connect to the "source-setup"<br>
signal and then in the callback you can set the "latency" property on<br>
the source element if it's an rtspsrc. This will then configure the<br>
rtpjitterbuffer latency of the jitterbuffer inside the rtspsrc element.<br>
By default the latency is fairly high - 2seconds.<br>
<br>
I have attached a patch to give you an idea how to do that, but I<br>
haven't tested it. It might not even compile.<br>
<br>
Cheers<br>
 -Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
Join us at the GStreamer Conference!<br>
21-22 October 2017 in Prague, Czech Republic<br>
<a href="http://gstreamer.freedesktop.org/conference/" rel="noreferrer" target="_blank">http://gstreamer.freedesktop.<wbr>org/conference/</a><br>______________________________<wbr>_________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-android" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>android</a><br>
<br></blockquote></div></div>