<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi All,<br>
<br>
I am working on one of our product in which android 4.4 Kitkat
is running. We have one application called it as <b>SPICE client</b>
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.<br>
<br>
We are using SPICE client gtk based topology in which <b>Gstreamer
Framework 1.0 </b>is used. <br>
<br>
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 <b>Audio data is not synced or is lagged</b>
compare to video data at that time.<br>
<br>
Please find following code snippet of Gstreamer Pipeline we
have configured and used in our SPICE client android code.<br>
<br>
<blockquote type="cite">#ifdef WITH_GST1AUDIO <br>
g_strdup_printf("audio/x-raw,format=\"S16LE\",channels=%d,rate=%d,"
<br>
"layout=interleaved", channels,
frequency); <br>
#else <br>
g_strdup_printf("audio/x-raw-int,channels=%d,rate=%d,signed=(boolean)true,"
<br>
"width=16,depth=16,endianness=1234",
channels, frequency); <br>
#endif <br>
gchar *pipeline = g_strdup
(g_getenv("SPICE_GST_AUDIOSINK")); <br>
if (pipeline == NULL) <br>
pipeline = g_strdup_printf("appsrc is-live=1
do-timestamp=1 format=time min-latency=0 caps=\"%s\"
name=\"appsrc\" ! " <br>
"audioconvert !
audioresample ! autoaudiosink name=\"audiosink\"", audio_caps);</blockquote>
<br>
Also, we are getting below warning message sometimes from
Android Gstreamer Studio.<br>
<br>
<b>gstaudiobasesink.c:1807:gst_audio_base_sink_get_alignment:<audiosink-actual-sink-opensles>
Unexpected discontinuity in audio timestamps of
-0:00:00.076145124, resyncing<br>
<br>
</b> Please let me know if anyone has any idea or clue to debug
or solve this type of issue.
<pre class="moz-signature" cols="72">--
Regards,
Ritesh Prajapati,
System Level Solutions (India) Pvt.Ltd.
</pre>
</body>
</html>