audiomixer implementation for audio conference , cancel user[1] contribution when streaming to user[1]

Chuck Crisler ccrisler at mutualink.net
Tue May 21 11:14:11 PDT 2013


This is not an easy problem to solve. Your solution assumes that there
isn't any delay, so you can invert the sample fast enough. But, if you can
identify the participant's input, why not simply mute that input?


On Sun, May 5, 2013 at 3:26 AM, Althaf K Backer <k.althaf at ais.aliftech.co.in
> wrote:

> Below is the 'theoretical' pipeline that would cancel of particular
> user's audio contribution in an audio conference mixer. Theory goes
> like, we invert the user's audio samples from the original and it
> finallyadded to the amixer output. It should cancel off. However i
> can't figure of why i doesn't work in the pipeline below. The idea of
> the mixer is that it sums of all the user's audio contribution and
> when streaming back to individual user, their contribution is canceled
> of with an 'invert' + 'addder' elements.
>
> I suspect clocking. or is it because these pipelines are separate ie
> not in the single pipeline ?
>
> Readable representation of pipeline
>
> gst-launch
> audiotestsrc name="sinewave" wave=sine ! tee name="audio_in_user1"
> audio_in_user1. ! queue ! audioconvert ! amixer.sink0
> audiotestsrc wave=ticks ! queue ! audioconvert !  amixer.sink2
> adder name="amixer" ! tee name="mixerout"
> mixerout. ! queue ! audio_out_user1.sink1
> audio_in_user1. ! queue ! audioinvert degree=1 ! audioconvert !
> audio_out_user1.sink1
> adder name="audio_out_user1" ! alsasink
>
> Copy paste execute representation
>
> gst-launch audiotestsrc name="sinewave" wave=sine ! tee
> name="audio_in_user1"  audio_in_user1. ! queue ! audioconvert !
> amixer.sink0  audiotestsrc wave=ticks ! queue ! audioconvert !
> amixer.sink2  adder name="amixer" ! tee name="mixerout"  mixerout. !
> queue ! audio_out_user1.sink1  audio_in_user1. ! queue ! audioinvert
> degree=1 ! audioconvert ! audio_out_user1.sink1  adder
> name="audio_out_user1" ! alsasink
>
> A sample pipeline that works from above theory, pipeline has only one
> audio source and it is cancelled in the adder.
>
> audioinvert degree=1
>
> gst-launch audiotestsrc name="sinewave" wave=sine ! tee
> name="audiosource"  audiosource. ! queue ! audioconvert ! adder.sink0
> audiosource. ! queue ! audioinvert degree=1 ! audioconvert !
> adder.sink1   adder name="adder" ! alsasink
>
>
> audioinvert degree=1
>
> gst-launch audiotestsrc name="sinewave" wave=sine ! tee
> name="audiosource"  audiosource. ! queue ! audioconvert ! adder.sink0
> audiosource. ! queue ! audioinvert degree=0.55 ! audioconvert !
> adder.sink1   adder name="adder" ! alsasink
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130521/bce573a8/attachment.html>


More information about the gstreamer-devel mailing list