How to generate 2 audio tones and map to specific channel positions (bitmask)

Nick_law nicholas at umantec.net
Fri Jan 15 05:11:46 UTC 2021


Chris Wine wrote
> Something like this might work for you:
> 
> gst-launch-1.0 \
>   interleave name=i ! wavenc ! filesink location=test.wav \
>   audiotestsrc wave=0 freq=100 volume=0.4 ! audio/x-raw,channels=1 ! i. \
>   audiotestsrc wave=2 freq=100 volume=0.4 ! audio/x-raw,channels=1 ! i. \
>   audiotestsrc wave=0 freq=100 volume=0.4 ! audio/x-raw,channels=1 ! i. \
>   audiotestsrc wave=2 freq=100 volume=0.4 ! audio/x-raw,channels=1 ! i.
> 
> it's just using 4 different audiotestsrc elements, and with the
> capsfilters, force them to produce mono audio which gets interlaced into 1
> stream before being written to the file. Right now, this will run
> infinitely, so you might want to set the num-buffers property on the
> audiotestsrc elements to limit them.
> 
> --Chris


I am actually currently doing this but I think this is not the most
efficient way?

For example I may create 25 channel audio that may play a filesrc on some
channels, and audiotst src on others.

My thinking it will require less computation to create a few sources and
duplicate them accordingly rather than recreating each source multiple
times.



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


More information about the gstreamer-devel mailing list