play 2 channels from 4

barsuk andybeg at mail.ru
Fri Apr 14 12:27:06 UTC 2017


i have codeck (cs42888) with 4 input channels on it and 2 channels spdif to
play audio. my linein connected to last two channel of this codeck and i try
to play it byt there is nothing on spdif :(

gst-launch-1.0 -v alsasrc device="sysdefault:CARD=cs42888audio" !
"audio/x-raw,rate=48000,channels=4" ! \
deinterleave name=d interleave name=i ! alsasink
device="sysdefault:CARD=imxspdif" d.src_2 ! i.sink_0 d.src_3 ! i.sink_1
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock
/GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: actual-buffer-time = 192000
/GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: actual-latency-time = 21333
Redistribute latency...
/GstPipeline:pipeline0/GstAlsaSrc:alsasrc0.GstPad:src: caps =
"audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\,\
rate\=\(int\)48000\,\ channels\=\(int\)4\,\
channel-mask\=\(bitmask\)0x0000000000000033"
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =
"audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\,\
rate\=\(int\)48000\,\ channels\=\(int\)4\,\
channel-mask\=\(bitmask\)0x0000000000000033"
/GstPipeline:pipeline0/GstDeinterleave:d.GstPad:sink: caps = "audio/x-raw\,\
format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\,\
rate\=\(int\)48000\,\ channels\=\(int\)4\,\
channel-mask\=\(bitmask\)0x0000000000000033"
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
"audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\,\
rate\=\(int\)48000\,\ channels\=\(int\)4\,\
channel-mask\=\(bitmask\)0x0000000000000033"
/GstPipeline:pipeline0/GstInterleave:i.GstInterleavePad:sink_0: caps =
"audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\,\
rate\=\(int\)48000\,\ channels\=\(int\)1"
/GstPipeline:pipeline0/GstInterleave:i.GstPad:src: caps = "audio/x-raw\,\
format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\,\
rate\=\(int\)48000\,\ channels\=\(int\)2\,\
channel-mask\=\(bitmask\)0x0000000000000000"
/GstPipeline:pipeline0/GstInterleave:i.GstInterleavePad:sink_1: caps =
"audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\,\
rate\=\(int\)48000\,\ channels\=\(int\)1"
handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:07.030366334
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/play-2-channels-from-4-tp4682667.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list