Timestamp based extraction of audio data from GstAdapter

Sebastian Dröge sebastian at centricular.com
Tue Apr 18 08:37:42 UTC 2017


On Sun, 2017-04-16 at 20:15 -0700, dingoegret wrote:
> Also just to be clear, I'm setting audiobuffersplit like this? in
> nanoseconds?
> 
> g_object_set(audiobuffersplit, "output-buffer-duration", 200000000,
> NULL);

No, it's a fraction. So you provide the value as two integers to
g_object_set().

A fraction allows to make the output buffer duration exactly the same
as a video frame duration (e.g. in cases like 30000/1001 frames per
second) by compensation for rounding errors in the long run.

--
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: 1000 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170418/2e10ec4f/attachment.sig>


More information about the gstreamer-devel mailing list