Re: [ecasound] Using Ladspa surround encoder?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] Using Ladspa surround encoder?
From: Eric Dantan Rzewnicki (eric_AT_zhevny.com)
Date: Fri May 28 2004 - 05:28:54 EEST


Greg Lee wrote:
> The following generates silence -- all data is the minimum
> possible value:
>
> ecasound -d -f:16,2,22050 \
> -a:1 -f:s32_le,1,22050 -i amb1.wav -ea:.1 \
> -a:2 -f:s32_le,1,22050 -i amb2.wav -ea:.1 \
> -a:3 -f:s32_le,1,22050 -i amb3.wav -ea:100 \
> -a:4 -f:s32_le,1,22050 -i amb4.wav -ea:.01 \
> -a:1,2,3,4 -f:s32_le,4,22050 -el:surroundEncoder, \
> -f:16,2,22050 -o temp.wav
>
> What am I doing wrong? I've tried various applifications and
> input file formats, but I always get the same bad result.
>
> Greg

I'm not familiar with the surroundEncoder plugin, but you may need to
check out -erc in man ecasound. with this you can route the channels
like so:

ecasound -d -f:16,2,22050 \
         -a:1 -f:s32_le,1,22050 -i amb1.wav -ea:.1 \
         -a:2 -f:s32_le,1,22050 -i amb2.wav -ea:.1 -erc:1,2 \
         -a:3 -f:s32_le,1,22050 -i amb3.wav -ea:100 -erc:1,3 \
         -a:4 -f:s32_le,1,22050 -i amb4.wav -ea:.01 -erc:1,4 \
         -a:1,2,3,4 -f:s32_le,4,22050 -el:surroundEncoder, \
         -f:16,2,22050 -o temp.wav

Something like that should help you, I think. I haven't tested it, but
that should at least get you close.

You may already know, but just to be sure, the -ea: parameter is a
percentage. So -ea:100 means no change to volume. < 100 decreases
volume, > 100 increases volume. Your -ea:.1 and -ea:.01 will be very
very quiet. Also, the mix routine in ecasound is such that when mixing n
channels I typically use -ea:(100*n) to keep the levels up after mixing.

Also, your first -f: specification is probably not needed since you
override it your next lines. each -f: affects all following inputs and
outputs until the next -f:. It's also not needed for .wav files because
the format information inside the .wav will override your commandline
-f:. If you want ecasound to use your files as some format other than
what their wav headers say they are, then you may need to use resample
objects like this: -i resample,22050,foo.wav, or whatever is appropriate
for you.

Hope this helps,
Eric Rz.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri May 28 2004 - 05:21:36 EEST