<html><head></head><body><div>Hi,</div><div><br></div><div>The two seconds are from rtspsrc, you can set the "latency" property to something reasonable like 200ms by connecting to the "source-setup" signal on playbin and setting the latency property to 200 if it's rtspsrc.</div><div><br></div><div>You can verify the automatically calculated latency by setting GST_DEBUG=bin:4</div><div><br></div><div>Setting the pipeline latency manually will indeed produce problems if you set a lower value than the minimal one.</div><div><br></div><div>Olivier</div><div><br></div><div>On Wed, 2017-09-20 at 14:13 -0300, Azure1 Sureale wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">Hello, I'm trying to have an Android Player receiving a RTSP stream from the internet and play it with very low latency. <div>I'm using Tutorial 5 from the GStreamer home. Without any change my stream has a latency about 2 seconds (worst than Vitamio that I was using previously).</div><div><br></div><div>With futher investigation we realized we could change the latency to 0 in the pipeline using this code:</div><div><br></div><div>****************************************************************</div><div><div>data->pipeline = gst_parse_launch("playbin", &error);</div><div>    gst_pipeline_set_latency(data->pipeline,0); //This is what I wrote</div><div><br></div><div>    if (error) {</div><div>    gchar *message = g_strdup_printf("Unable to build pipeline: %s", error->message);</div><div>    g_clear_error (&error);</div><div>    set_ui_message(message, data);</div><div>    g_free (message);</div><div>    return NULL;</div><div>  }</div><br class="gmail-Apple-interchange-newline">****************************************************************</div><div><br></div><div>Now the stream is strutting, alas dropping frames. However the stream is faster than the base code.</div><div>Based on other questions, I tried to add rtpjitterbuffer into the pipeline but seems that is not that simple.</div><div><br></div><div>How can I construct or change the pipeline to have low latency and no strutting?</div></div>
<pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre></blockquote><div><span><pre><pre>-- <br></pre>Olivier CrĂȘte
olivier.crete@collabora.com
</pre></span></div></body></html>