Alsasrc && Appsrc synchronisation problems
Bruce Tsai
wagamama.tsai at gmail.com
Thu Apr 20 00:57:31 UTC 2017
Check PTS of appsrc buffer first is a good start.
If the PTS is created when appsrc buffer is generated, it could be late.
If the PTS is created when you receive need-data signal, this PTS is more likely to catch up alsasrc buffer.
--
Yi-Lung (Bruce) Tsai
wagamama.tsai at gmail.com
> On Apr 14, 2017, at 6:25 AM, LC <lienes.cirules at gmail.com> wrote:
>
> Hello,
>
> I have a problem with alsasrc and appsrc buffer synchronization. I have a
> stream like this:
> alsasrc ------> flvmux -----> rtmpsink
> appsrc ----------^
>
> I am pushing buffers on appsrc on need-data signal.
> I make feed to appsrc as much as need-data callback executes.
> The main problems is that after a while of streaming i got sound are
> dis-aligned to image. So that i see the sound should occur on this image but
> actually i hear the image after 1s. If i stream even more, i got even more
> dis-alignment.
>
> I experienced this problem only when sourcing by appsrc element.
> I am setting appsrc buffer PTS based on stream running time. Anyway i got
> dis-alignment over time.
> After 5min streaming, i got 1s sound dis-alignment.
>
> What may be the cause of this problem : buffer timestamping on appsrc,
> inconsistent appsrc fps or anything else ?
> Any help is really important.
>
> Thanks in advance!
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Alsasrc-Appsrc-synchronisation-problems-tp4682663.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170420/d3dcea64/attachment.html>
More information about the gstreamer-devel
mailing list