Audio lags in aSPICE client while using gstreamer framework

Ritesh Prajapati ritesh.prajapati at slscorp.com
Wed Jul 6 05:09:26 UTC 2016


Hi All,

     I am working on one of our product in which android 4.4 Kitkat is 
running. We have one application called it as *SPICE client* which runs 
on our product and is used to capture Audio+Video data streamed over 
network from SPICE server which is installed into Ubuntu 16.04 Server.

     We are using SPICE client gtk based topology in which *Gstreamer 
Framework 1.0 *is used.

      We are facing one audio sync issue like when Streaming process of 
Audio+Video are started from SPICE server side at that time we are 
getting video data perfectly but not getting audio data in sync compared 
to video frames and are dropped for some initial durations. so, it seems 
like *Audio data is not synced or is lagged* compare to video data at 
that time.

      Please find following code snippet of Gstreamer Pipeline we have 
configured and used in our SPICE client android code.

> #ifdef WITH_GST1AUDIO
> g_strdup_printf("audio/x-raw,format=\"S16LE\",channels=%d,rate=%d,"
>                             "layout=interleaved", channels, frequency);
>         #else
> g_strdup_printf("audio/x-raw-int,channels=%d,rate=%d,signed=(boolean)true," 
>
>                             "width=16,depth=16,endianness=1234", 
> channels, frequency);
>         #endif
>         gchar *pipeline = g_strdup (g_getenv("SPICE_GST_AUDIOSINK"));
>         if (pipeline == NULL)
>             pipeline = g_strdup_printf("appsrc is-live=1 
> do-timestamp=1 format=time min-latency=0 caps=\"%s\" name=\"appsrc\" ! "
>                                        "audioconvert ! audioresample ! 
> autoaudiosink name=\"audiosink\"", audio_caps);

     Also, we are getting below warning message sometimes from Android 
Gstreamer Studio.

*gstaudiobasesink.c:1807:gst_audio_base_sink_get_alignment:<audiosink-actual-sink-opensles> 
Unexpected discontinuity in audio timestamps of -0:00:00.076145124, 
resyncing

*    Please let me know if anyone has any idea or clue to debug or solve 
this type of issue.

-- 
Regards,
Ritesh Prajapati,
System Level Solutions (India) Pvt.Ltd.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-android/attachments/20160706/a213b60a/attachment.html>


More information about the gstreamer-android mailing list