GStreamer Good Plugins 0.10 Plugins Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
"channel-positions" GValueArray* : Read / Write "channel-positions-from-input" gboolean : Read / Write
Merges separate mono inputs into one interleaved stream.
This element handles all raw floating point sample formats and all signed integer sample formats. The first caps on one of the sinkpads will set the caps of the output so usually an audioconvert element should be placed before every sinkpad of interleave.
It's possible to change the number of channels while the pipeline is running by adding or removing some of the request pads but this will change the caps of the output buffers. Changing the input caps is _not_ supported yet.
The channel number of every sinkpad in the out can be retrieved from the "channel" property of the pad.
gst-launch filesrc location=file.mp3 ! decodebin ! audioconvert ! "audio/x-raw-int,channels=2" ! deinterleave name=d interleave name=i ! audioconvert ! wavenc ! filesink location=test.wav d.src0 ! queue ! audioconvert ! i.sink1 d.src1 ! queue ! audioconvert ! i.sink0
gst-launch interleave name=i ! audioconvert ! wavenc ! filesink location=file.wav filesrc location=file1.wav ! decodebin ! audioconvert ! "audio/x-raw-int,channels=1" ! queue ! i.sink0 filesrc location=file2.wav ! decodebin ! audioconvert ! "audio/x-raw-int,channels=1" ! queue ! i.sink1
"channel-positions"
property "channel-positions" GValueArray* : Read / Write
Channel positions: This property controls the channel positions that are used on the src caps. The number of elements should be the same as the number of sink pads and the array should contain a valid list of channel positions. The n-th element of the array is the position of the n-th sink pad.
These channel positions will only be used if they're valid and the number of elements is the same as the number of channels. If this is not given a NONE layout will be used.
"channel-positions-from-input"
property "channel-positions-from-input" gboolean : Read / Write
Channel positions from input: If this property is set to TRUE
the channel
positions will be taken from the input caps if valid channel positions for
the output can be constructed from them. If this is set to TRUE
setting the
channel-positions property overwrites this property again.
Default value: TRUE