Issues trying to synchronise video appsrc with audio
Sebastian Dröge
sebastian at centricular.com
Thu May 22 00:14:27 PDT 2014
On Mi, 2014-05-21 at 12:18 -0400, Stirling Westrup wrote:
> On Wed, May 21, 2014 at 3:55 AM, Sebastian Dröge
> <sebastian at centricular.com>wrote:
>
> > On Mi, 2014-05-21 at 09:46 +0200, stic at free.fr wrote:
> > > please can you give me advices on how I can synchronise correctly video
> > and audio in my case ?
> > > Do you know if I have to insert empty buffers to compensate the fact
> > that the appsrc video input does not push data when the input is not
> > changing ?
> >
> > If you don't produce video buffers when the input does not change,
> > that's not a problem at all. Just make sure that the timestamps are
> > correct after the gap, and don't just continue as if there was no gap
> > and a constant framerate was produced (like what the code you pasted
> > would do).
> >
>
> I hadn't realized you could do this. What do you set on these buffers for
> the buffer duration then, if you don't know when the next buffer will be
> generated?
GST_CLOCK_TIME_NONE, which means that the buffer has a duration until
the timestamp of the next buffer.
--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140522/f57074d6/attachment.sig>
More information about the gstreamer-devel
mailing list