audioconvert

audioconvert — Convert audio to different formats

Synopsis




            GstAudioConvert;

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstBaseTransform
                     +----GstAudioConvert

Description

Audioconvert converts raw audio buffers between various possible formats. It supports integer to float conversion, width/depth conversion, signedness and endianness conversion.

Example launch line

gst-launch -v -m audiotestsrc ! audioconvert ! audio/x-raw-int,channels=2,width=8,depth=8 ! level ! fakesink silent=TRUE

This pipeline converts audio to 8-bit. The level element shows that the output levels still match the one for a sine wave.

gst-launch -v -m audiotestsrc ! audioconvert ! vorbisenc ! fakesink silent=TRUE

The vorbis encoder takes float audio data instead of the integer data generated by audiotestsrc.

Last reviewed on 2006-03-02 (0.10.4)

Element Information

plugin audioconvert
author Benjamin Otte <in7y118@public.uni-hamburg.de>
class Filter/Converter/Audio

Details

GstAudioConvert

typedef struct _GstAudioConvert GstAudioConvert;

The audioconvert object structure.