1.16.2 alsasrc issues remapping channels

dwight_g dwight.goetz at gmail.com
Thu Jun 11 01:48:40 UTC 2020


Related to other work I'm doing that brought up the other topic, I'm
attempting to get 4 channels from alsasrc and remap them to two stereo pairs
to be encoded and inserted using mpegtsmux but having xrun errors as well as
trouble figuring out what caps and whatnot would make it work.

I can successfully mux in if I go directly from alsasrc to encode w/4
channels, but not get this to work deinterleaving 4 ch and interleaving to
2, 2 ch, even to fakesink 0.dot
<http://gstreamer-devel.966125.n4.nabble.com/file/t378697/0.dot>  

currently:

gst-launch-1.0 -vvve \
        alsasrc device=hw:tegrasndt186ref,1 !
audio/x-raw,channels=4,rate=48000,format=S32LE \
        ! audioconvert \
        ! audioresample \
        ! volume volume=1.0 \
        ! queue \
        ! tee name=t3 \
         t3. ! queue \
             ! audioconvert \
             ! audioresample !
'audio/x-raw,channels=4,channel-mask=(bitmask)0x33,rate=96000,format=S16LE'
\
             ! deinterleave name=d \
        interleave name=i1 \
         ! queue \
         ! volume volume=1.0 !
'audio/x-raw,channels=2,channel-mask=(bitmask)0x03' \
         ! faac bitrate=96000 tolerance=500000000 \
         ! aacparse !
audio/mpeg,channels=2,mpegversion=4,base-profile=lc,stream-format=adts \
         ! queue ! fakesink \
         d.src_0 ! queue \
             ! audioconvert \
             ! audioresample !
'audio/x-raw,channels=1,channel-mask=(bitmask)0x01,rate=48000' ! i1.sink_0 \
         d.src_1 ! queue \
             ! audioconvert \
             ! audioresample !
'audio/x-raw,channels=1,channel-mask=(bitmask)0x02,rate=48000' ! i1.sink_1 \
        interleave name=i2 \
         ! queue \
         ! volume volume=1.0 !
'audio/x-raw,channels=2,channel-mask=(bitmask)0x03' \
         ! faac bitrate=96000 tolerance=500000000 \
         ! aacparse !
audio/mpeg,channels=2,mpegversion=4,base-profile=lc,stream-format=adts \
         ! queue ! fakesink \
         d.src_2 ! queue \
             ! audioconvert \
             ! audioresample !
'audio/x-raw,channels=1,channel-mask=(bitmask)0x01,rate=48000' ! i2.sink_0 \
         d.src_3 ! queue \
             ! audioconvert \
             ! audioresample !
'audio/x-raw,channels=1,channel-mask=(bitmask)0x02,rate=48000' ! i2.sink_1

attached is a dot file and link to log at GST_DEBUG=6 
https://www.dropbox.com/s/yamiygkfzmtgeta/gstlog.txt?dl=0
<https://www.dropbox.com/s/yamiygkfzmtgeta/gstlog.txt?dl=0>  



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


More information about the gstreamer-devel mailing list