Hi,
As we are all well aware, most of the general purpose audio capture cards are very restrictive. They have 2 physical analog inputs one for Right and one for Left of a single stereo signal, and the 2 inputs cannot be controlled or configured differently from each other. I want to be able to treat these 2 inputs as 2 separate mono inputs, where each can feed separate and distinct 2 channel mono feeds downstream. Essentially, I want the option to copy over all of the left channel audio samples to the right channel, or all of the right channel audio samples to the left channel. In other words, the option is to remove one channel's audio and provide 2 channel mono audio of the other channel's audio downstream. Is there an audio plugin for this? I have looked at audiointerleave and it appears that it might do what I want but there is no detailed description in the documentation of what it does so I am not sure. Thanks, -Andres |
You are close. You need the *de*interleaver. Here is one example that
outputs both mono streams as graphical waveforms: gst-launch-1.0 audiotestsrc ! "audio/x-raw, channels=2" ! deinterleave name=i \ i. ! queue ! "audio/x-raw, channels=1" ! audioconvert dithering=0 ! "audio/x-raw, channels=2" ! wavescope ! videoconvert ! autovideosink \ i. ! queue ! "audio/x-raw, channels=1" ! audioconvert dithering=0 ! "audio/x-raw, channels=2" ! wavescope ! videoconvert ! autovideosink So, here, deinterleave first splits up the channels, and then the individual audioconvert elements convert mono to stereo by duplicating samples. (I set dithering to 0 since I want audioconvert to strictly duplicate samples, nothing else.) On 2017-08-11 17:47, Andres Gonzalez wrote: > Hi, > > As we are all well aware, most of the general purpose audio capture cards > are very restrictive. They have 2 physical analog inputs one for Right and > one for Left of a single stereo signal, and the 2 inputs cannot be > controlled or configured differently from each other. > > I want to be able to treat these 2 inputs as 2 separate mono inputs, where > each can feed separate and distinct 2 channel mono feeds downstream. > Essentially, I want the option to copy over all of the left channel audio > samples to the right channel, or all of the right channel audio samples to > the left channel. In other words, the option is to remove one channel's > audio and provide 2 channel mono audio of the other channel's audio > downstream. > > Is there an audio plugin for this? I have looked at audiointerleave and it > appears that it might do what I want but there is no detailed description in > the documentation of what it does so I am not sure. > > Thanks, > -Andres > > > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/is-there-an-audio-plugin-for-this-tp4684165.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Andres Gonzalez
Le vendredi 11 août 2017 à 08:47 -0700, Andres Gonzalez a écrit :
> Hi, > > As we are all well aware, most of the general purpose audio capture cards > are very restrictive. They have 2 physical analog inputs one for Right and > one for Left of a single stereo signal, and the 2 inputs cannot be > controlled or configured differently from each other. > > I want to be able to treat these 2 inputs as 2 separate mono inputs, where > each can feed separate and distinct 2 channel mono feeds downstream. > Essentially, I want the option to copy over all of the left channel audio > samples to the right channel, or all of the right channel audio samples to > the left channel. In other words, the option is to remove one channel's > audio and provide 2 channel mono audio of the other channel's audio > downstream. > > Is there an audio plugin for this? I have looked at audiointerleave and it > appears that it might do what I want but there is no detailed channel codec that drives secretly different independent inputs. Note that pulse audio can also do that for you, and will expose it in a much simpler to use way. > > description in > the documentation of what it does so I am not sure. > > Thanks, > -Andres > > > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/is-there-an-audio-plugin-for-this-tp4684165.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (201 bytes) Download Attachment |
Free forum by Nabble | Edit this page |