How to apply different filters on 2 audio channels of same source?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to apply different filters on 2 audio channels of same source?

jeyp4
This post was updated on .
Hello

For stereo microphone, is it possible to apply different filters on 2 channels.

pulsesrc can provide 2-channels

# Channel-1

gst-launch-1.0 pulsesrc buffer-time=20000 volume=1 ! audioamplify amplification=5.0 ! audiochebband lower-frequency=10 upper-frequency=300 ripple=0.1 ! pulsesink buffer-time=20000

# Channel-2

gst-launch-1.0 pulsesrc buffer-time=20000 volume=1 ! audioamplify amplification=2.0 ! audiochebband lower-frequency=200 upper-frequency=400 ripple=0.1 ! pulsesink buffer-time=20000


How in 1 command line, different filters can be applied?





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to apply different filters on 2 audio channels of same source?

chaseology
This gst-launch-1.0 command worked for me to apply 2 different Gstreamer's
own bandpass filters to each channel of a stereo input using Gstreamer's
INTERLEAVE  DEINTERLEAVE scripts:

gst-launch-1.0 -v interleave name=i ! audioconvert !  queue !  deinterleave
name=d d.src_0 ! queue ! audioconvert ! audiowsincband mode=band-pass
lower-frequency=507 upper-frequency=807 length=300 window=hamming !
audioamplify amplification=1.35 !  jackaudiosink name=CWoutput
buffer-time=15000   d.src_1 ! queue ! audioconvert ! audiowsincband
mode=band-pass lower-frequency=4444 upper-frequency=6666 length=700
window=hamming ! jackaudiosink name=PTToutput buffer-time=15000  
jackaudiosrc name=CWinput ! audiowsincband mode=band-pass
lower-frequency=407 upper-frequency=907 length=300 window=hamming !
audioconvert !   queue ! i. jackaudiosrc name=PTTinput ! audiowsincband
mode=band-pass lower-frequency=5000 upper-frequency=6000 length=350
window=hamming !    audioconvert !   queue ! i.

RESULTS:
https://imgur.com/dgoZK4x <https://imgur.com/dgoZK4x>  
<http://gstreamer-devel.966125.n4.nabble.com/file/t379294/ineterleave2CHANdiffFILTERSonEACHchannel.png>









--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel