<div dir="ltr">Hi,<div><br></div><div>i have written a custom audio sink. that reads from rtpbin.</div><div>i experience stuttering and gaps in the audio stream when both audio and video sync=true</div><div><br></div><div>if sync=false on audio then there is no stuttering and gaps but audio/video starts going out of lipsync and audio starts trailing video.</div><div><br></div><div>this is what shows up in the log.</div><div><br></div><div>0:00:06.288825428  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.000750000, resyncing<br>0:00:21.978953892  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020624969 > +0:00:00.020000000<br>0:00:21.979072314  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.029875000, resyncing<br>0:03:06.077836948  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020484430 < -+0:00:00.020000000<br>0:03:08.237935296  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020609279 > +0:00:00.020000000<br>0:03:08.238052729  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.040000000, resyncing<br>0:12:34.799577809  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020624969 < -+0:00:00.020000000<br>0:13:43.530901255  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of -0:00:00.040000000, resyncing<br>0:14:34.865331330  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.011937500, resyncing<br>0:16:08.477820978  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020624969 > +0:00:00.020000000<br>0:16:08.477883028  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.028062500, resyncing<br>0:16:48.558811060  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020621294 < -+0:00:00.020000000<br>0:16:50.277857265  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020584481 > +0:00:00.020000000<br>0:21:48.077973052  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020285419 < -+0:00:00.020000000<br>0:21:48.358270778  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020129497 > +0:00:00.020000000<br>0:22:09.158482452  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020478679 < -+0:00:00.020000000<br>0:22:10.158551389  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of -0:00:00.040000000, resyncing<br>0:22:11.278444436  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020608447 > +0:00:00.020000000<br>0:22:11.278507387  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.040000000, resyncing<br>0:22:40.399178332  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020624969 < -+0:00:00.020000000<br>0:25:00.872319002  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of -0:00:00.040000000, resyncing<br>0:25:59.885151306  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.011250000, resyncing<br>0:27:34.887909949  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.000687500, resyncing<br>0:28:16.277740487  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020624969 > +0:00:00.020000000<br>0:28:16.277804538  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.028062500, resyncing<br>0:29:35.298076382  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020463915 < -+0:00:00.020000000<br>0:29:35.398201372  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020229179 > +0:00:00.020000000<br>0:33:52.877774961  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020139994 < -+0:00:00.020000000<br>0:33:53.677869871  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020585673 > +0:00:00.020000000<br>0:34:15.320265286  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020624127 < -+0:00:00.020000000<br>0:36:20.892022579  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of -0:00:00.040000000, resyncing<br>0:37:19.892950485  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.011500000, resyncing<br>0:39:15.837618385  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020624969 > +0:00:00.020000000<br>0:39:15.837736057  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.039437500, resyncing<br>0:39:50.999558083  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020624969 < -+0:00:00.020000000<br>0:40:00.758152837  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020306223 > +0:00:00.020000000<br>0:40:00.758218968  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.040000000, resyncing<br>0:40:11.458253692  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020475714 < -+0:00:00.020000000<br>0:40:11.958175943  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020409892 > +0:00:00.020000000<br>0:42:32.463385488  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020624969 < -+0:00:00.020000000<br>0:43:00.874987277  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of -0:00:00.040000000, resyncing<br>0:43:04.865232641  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.004437500, resyncing<br>0:43:44.906069682  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.019062500, resyncing<br>0:43:58.717971511  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020624969 > +0:00:00.020000000<br>0:43:58.718041483  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.019875000, resyncing<br>0:44:30.857854084  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020582000 < -+0:00:00.020000000<br>0:44:31.497939939  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020414274 > +0:00:00.020000000<br>0:44:31.498037132  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m Unexpected discontinuity in audio timestamps of +0:00:00.040000000, resyncing<br>0:44:35.638003879  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020238453 < -+0:00:00.020000000<br>0:44:38.938132104  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020311219 > +0:00:00.020000000<br>0:50:51.778391023  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020173749 < -+0:00:00.020000000<br>0:50:54.178410218  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020308636 > +0:00:00.020000000<br>0:55:23.618686737  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew -0:00:00.020322368 < -+0:00:00.020000000<br>0:55:23.998661861  [335m10450 [00m 0x7f68f8004e80  [33;01mWARN    [00m  [00m       audiobasesink gstaudiobasesink.c:1463:gst_audio_base_sink_skew_slaving:<customaudiosink-AVP-3082692e-34d4-4a26-8d55-9c61d3273b1e> [00m correct clock skew +0:00:00.020448643 > +0:00:00.020000000<br><br></div><div><br></div><div> </div><div><br>-- <br><div class="gmail-m_197169073731502639m_-1131480947112108843gmail_signature"><div dir="ltr">Regards<div><font color="#000000"><font face="'arial black', sans-serif">Ankur Deep Jaiswal</font><br></font><font color="#000000"><br></font></div></div></div>
</div></div>