GStreamer Good Plugins 0.10 Plugins Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
GObject +----GstObject +----GstElement +----GstBaseTransform +----GstAudioFilter +----GstAudioDynamic
"characteristics" GstAudioDynamicCharacteristics : Read / Write "mode" GstAudioDynamicMode : Read / Write "ratio" gfloat : Read / Write "threshold" gfloat : Read / Write
This element can act as a compressor or expander. A compressor changes the amplitude of all samples above a specific threshold with a specific ratio, a expander does the same for all samples below a specific threshold. If soft-knee mode is selected the ratio is applied smoothly.
1 2 3 |
gst-launch audiotestsrc wave=saw ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.5 rate=0.5 ! alsasink gst-launch filesrc location="melo1.ogg" ! oggdemux ! vorbisdec ! audioconvert ! audiodynamic characteristics=hard-knee mode=expander threshold=0.2 rate=4.0 ! alsasink gst-launch audiotestsrc wave=saw ! audioconvert ! audiodynamic ! audioconvert ! alsasink |
plugin |
audiofx |
author |
Sebastian Dröge <slomo@circular-chaos.org> |
class |
Filter/Effect/Audio |
name |
sink |
direction |
sink |
presence |
always |
details |
audio/x-raw-int, depth=(int)16, width=(int)16, endianness=(int)1234, signed=(boolean)true, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ] |
audio/x-raw-float, width=(int)32, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ] |
name |
src |
direction |
source |
presence |
always |
details |
audio/x-raw-int, depth=(int)16, width=(int)16, endianness=(int)1234, signed=(boolean)true, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ] |
audio/x-raw-float, width=(int)32, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ] |
"characteristics"
property "characteristics" GstAudioDynamicCharacteristics : Read / Write
Selects whether the ratio should be applied smooth (soft-knee) or hard (hard-knee).
Default value: Hard Knee (default)
"mode"
property "mode" GstAudioDynamicMode : Read / Write
Selects whether the filter should work on loud samples (compressor) orquiet samples (expander).
Default value: Compressor (default)
"ratio"
property"ratio" gfloat : Read / Write
Ratio that should be applied.
Allowed values: >= 0
Default value: 1
"threshold"
property"threshold" gfloat : Read / Write
Threshold until the filter is activated.
Allowed values: [0,1]
Default value: 0