Synchronizing appsrcs that subscribe to appsink on different times
Sebastian Dröge
sebastian at centricular.com
Tue Jan 3 11:10:11 UTC 2017
On Thu, 2016-12-29 at 22:47 -0800, Mert Can Ergun wrote:
> Hi Sebastian,
> I tested various pipelines connected to the same source pipeline for
> their
> clock pointers and they seemed to have the same clock.
> Then I started a counter inside my source pipeline for each client
> and
> tagged each buffer with following three lines.
>
> GST_BUFFER_TIMESTAMP(buf) = timestamps[i];
> GST_BUFFER_DURATION(buf) = bufferDuration;
> timestamps[i] += GST_BUFFER_DURATION(buf);
>
> The system seems to be working now.
That's not going to work reliable for a long run unless you're lucky.
There's an accumulating error with the durations at least, possibly
more problems.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170103/a799e39b/attachment-0001.sig>
More information about the gstreamer-devel
mailing list