select channel to record from input device

kyle111 purehavoc77 at gmail.com
Fri Jun 28 07:56:11 UTC 2019


Thanks Nicolas, I also managed to find 'deinterleave' element and it seems to
be working now. 
You suggestion further reassure me.
I am now able to record 2 channels separately:

gst-launch-1.0 alsasrc device=default ! decodebin ! audioconvert !
"audio/x-raw,channels=2" ! deinterleave name=d d.src_0 ! queue !
audioconvert ! vorbisenc ! oggmux ! filesink location=channel1.ogg d.src_1 !
queue ! audioconvert ! vorbisenc ! oggmux ! filesink location=channel2.ogg

I am trying to implement this in Python GST. I am not sure how to implement
this line:
deinterleave name=d d.src_0

I know element = 'deinterleave', property,value='name','d'
but what is d.src_0 in Gstreamer terminology? is it another src pad ?

# current code
deinterleave = Gst.ElementFactory.make("deinterleave", "deinterleave")
deinterleave.set_property("name", 'd')
## how to declare d.src_0 and d.src_1

I am aware this is not gstreamer python forum. Stuck on this code so I'm
just trying my luck.
Thanks :)  








--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list