Convertion of GstBuffer to PCM audio data

Sebastian Dröge sebastian at centricular.com
Fri Mar 25 07:59:36 UTC 2016


On Do, 2016-03-24 at 22:19 -0700, Sagar wrote:
> Hi,
> 
>    I sit possible programmatically to convert GstBuffer object into
> PCM audio data object ?

What do you mean with "PCM audio data object"? A GstBuffer that
conforms to the audio/x-raw caps will contain PCM audio data. You can
get access to the data e.g. by mapping the buffer with
gst_buffer_map().
You can get the number of channels, sample rate, sample format from the
caps.

-- 
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: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160325/3d063376/attachment.sig>


More information about the gstreamer-devel mailing list