<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Check PTS of appsrc buffer first is a good start.<div class="">If the PTS is created when appsrc buffer is generated, it could be late.</div><div class="">If the PTS is created when you receive need-data signal, this PTS is more likely to catch up alsasrc buffer.</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Yi-Lung (Bruce) Tsai</div><div class=""><a href="mailto:wagamama.tsai@gmail.com" class="">wagamama.tsai@gmail.com</a></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 14, 2017, at 6:25 AM, LC <<a href="mailto:lienes.cirules@gmail.com" class="">lienes.cirules@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello, <br class=""><br class="">I have a problem with alsasrc and appsrc buffer synchronization. I have a<br class="">stream like this: <br class="">alsasrc ------> flvmux -----> rtmpsink<br class="">appsrc ----------^ <br class=""><br class="">I am pushing buffers on appsrc on need-data signal. <br class="">I make feed to appsrc as much as need-data callback executes.<br class="">The main problems is that after a while of streaming i got sound are<br class="">dis-aligned to image. So that i see the sound should occur on this image but<br class="">actually i hear the image after 1s.  If i stream even more, i got even more<br class="">dis-alignment. <br class=""><br class="">I experienced this problem only when sourcing by appsrc element. <br class="">I am setting appsrc buffer PTS based on stream running time. Anyway i got<br class="">dis-alignment over time.<br class="">After 5min streaming, i got 1s sound dis-alignment.<br class=""><br class="">What may be the cause of this problem : buffer timestamping on appsrc,<br class="">inconsistent appsrc fps or anything else ? <br class="">Any help is really important. <br class=""><br class="">Thanks in advance!<br class=""><br class=""><br class=""><br class=""><br class="">--<br class="">View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Alsasrc-Appsrc-synchronisation-problems-tp4682663.html" class="">http://gstreamer-devel.966125.n4.nabble.com/Alsasrc-Appsrc-synchronisation-problems-tp4682663.html</a><br class="">Sent from the GStreamer-devel mailing list archive at <a href="http://nabble.com" class="">Nabble.com</a>.<br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></div></blockquote></div><br class=""></div></body></html>