Theory behind audio source block sizes

Casey Waldren caseywaldren at gmail.com
Tue Feb 19 08:36:39 UTC 2019


Given an audio source that produces audio in N byte chunks, and a
downstream element that consumes chunks of N*4 bytes, what is the best way
to link these elements?

I have encountered this problem with a plugin that transforms audio from 4
to 2 channels. Gstreamer seems to lack docs on the topic of block sizes, so
I feel like I have missed some important knowledge about how audio sources
are supposed to operate.

I could change the audio source to produce these fixed sized blocks, or the
downstream element to accept smaller blocks and accumulate them, e.g. with
a GstAdapter. This seems brittle and sounds like a general purpose plugin
should be provided for this purpose. Is that audiobuffersplit, or is there
some other technique?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190219/bc4f6b24/attachment.html>


More information about the gstreamer-devel mailing list