[linux-audio-user] ecasound help

LinuxMedia linuxmedia4 at netscape.net
Thu Oct 21 00:21:04 EDT 2004


> Yup. this is a common stumbling point with ecasound. Each chain can have
> exactly one input and one output. So, to have two outputs you need to
> double up your chains.
>
> ecasound -r -b:256 -a:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 -f:16,8,48000 -i alsa,default \
> -a:1 -o mono-1.wav \
> -a:2 -o mono-2.wav -erc:2,1 \
> -a:3 -o mono-3.wav -erc:3,1 \
> -a:4 -o mono-4.wav -erc:4,1 \
> -a:5 -o mono-5.wav -erc:5,1 \
> -a:6 -o mono-6.wav -erc:6,1 \
> -a:7 -o mono-7.wav -erc:7,1 \
> -a:8 -o mono-8.wav -erc:8,1 \
> -a:9,10,11,12,13,14,15,16 -o alsa,default
> 
> I can't remember exactly right now, but you may need to set
> -f:16,1,48000 for your file outputs so you don't end up writing 8x
> 8channel wav files. Anyway, the idea of doubling up chains is the main
> point and should at least get you closer to your goal.

The last "-f" will effect all of the ones after it. So set them as 
needed. I think this is what it should look like...

ecasound -r -b:256 -a:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 
-f:16,8,48000 -i alsa,default \
  -a:1 -f:16,1,48000 -o mono-1.wav \
  -a:2 -f:16,1,48000 -o mono-2.wav -erc:2,1 \
  -a:3 -f:16,1,48000 -o mono-3.wav -erc:3,1 \
  -a:4 -f:16,1,48000 -o mono-4.wav -erc:4,1 \
  -a:5 -f:16,1,48000 -o mono-5.wav -erc:5,1 \
  -a:6 -f:16,1,48000 -o mono-6.wav -erc:6,1 \
  -a:7 -f:16,1,48000 -o mono-7.wav -erc:7,1 \
  -a:8 -f:16,1,48000 -o mono-8.wav -erc:8,1 \
  -a:9,10,11,12,13,14,15,16 -f:16,2,48000 -o alsa,default

I would also suggest creating an .ecs file (plain text file) with the 
chains like this (no continuation slashes nessesay)...

-a:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 -f:16,8,48000 -i alsa,default
-a:1 -f:16,1,48000 -o mono-1.wav
-a:2 -f:16,1,48000 -o mono-2.wav -erc:2,1
-a:3 -f:16,1,48000 -o mono-3.wav -erc:3,1
-a:4 -f:16,1,48000 -o mono-4.wav -erc:4,1
-a:5 -f:16,1,48000 -o mono-5.wav -erc:5,1
-a:6 -f:16,1,48000 -o mono-6.wav -erc:6,1
-a:7 -f:16,1,48000 -o mono-7.wav -erc:7,1
-a:8 -f:16,1,48000 -o mono-8.wav -erc:8,1
-a:9,10,11,12,13,14,15,16 -f:16,2,48000 -o alsa,default

run the file with the command...
ecasound -r -b:256 -c -s /path/to/file.ecs
(-c is interactive mode... you can do fastforward, stop, rewind... type 
"h" for help while in interactive mode)

While in interactive mode, you can also do "cs-save-as NameOfNew.ecs" so 
you can see how a well formatted ecs file should look.

Rocco




More information about the Linux-audio-user mailing list