gstlal Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct GSTLALAudioUnderSample; struct GSTLALAudioUnderSampleClass; #define GSTLAL_AUDIOUNDERSAMPLE_TYPE
GObject +----GstObject +----GstElement +----GstBaseTransform +----GSTLALAudioUnderSample
This element implements an undersampling transform on time series data. For more information about undersampling, see https://en.wikipedia.org/wiki/Undersampling. Note that this element only performs the undersampling itself, not the band-pass pre-filtering that is usually performed as part of the transform. This element can only generate output streams whose sample rates are integer divisors of the input stream. To achieve other sample rates, precede this element with an audioresample element to resample the time series to a rate that is an integer multiple of the final desired sample rate.
Example (assumes 44.1 kHz source material):
$ gst-launch filesrc location="song.mp3" ! decodebin ! lal_audioundersample ! audio/x-raw-int, rate=7350 ! audioresample ! autoaudiosink