Android is strutting for Real Time Stream

Thadeu Antonio Ferreira de Melo thadeu.afm at gmail.com
Thu Sep 21 02:10:42 UTC 2017


Based on this question
https://lists.freedesktop.org/archives/gstreamer-devel/2015-July/053523.html

Would gstrtpjitterbuffer work?

gst-launch rtspsrc location="rtsp://192.168.4.40:5544/" latency=100 !
gstrtpjitterbuffer ! decodebin ! autoaudiosink


2017-09-20 14:13 GMT-03:00 Azure1 Sureale <sureale.azure1 at gmail.com>:

> Hello, I'm trying to have an Android Player receiving a RTSP stream from
> the internet and play it with very low latency.
> 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).
>
> With futher investigation we realized we could change the latency to 0 in
> the pipeline using this code:
>
> ****************************************************************
> data->pipeline = gst_parse_launch("playbin", &error);
>     gst_pipeline_set_latency(data->pipeline,0); //This is what I wrote
>
>     if (error) {
>     gchar *message = g_strdup_printf("Unable to build pipeline: %s",
> error->message);
>     g_clear_error (&error);
>     set_ui_message(message, data);
>     g_free (message);
>     return NULL;
>   }
>
> ****************************************************************
>
> Now the stream is strutting, alas dropping frames. However the stream is
> faster than the base code.
> Based on other questions, I tried to add rtpjitterbuffer into the pipeline
> but seems that is not that simple.
>
> How can I construct or change the pipeline to have low latency and no
> strutting?
>
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-android/attachments/20170920/f3abadab/attachment.html>


More information about the gstreamer-android mailing list