Brad Fuller | 1 Apr 2005 06:23

speeding up ecasound

I'm using ecasound in a bash script to call two LADSPA plugins. I'd like to speed the script up (understanding that I'm dependent on the speed of the plugins, of course.)

1: is there a way to shut off the printf to stdout? I selected -q but still receive the text:

[* Session created *]

2: I really don't understand chains and chainsetups - and maybe I should in this case. It seems that a chain is simply the arguments to ecasound. Is that wrong?
So, if it is, what can you do with a chain that is different than just specifying the args on the command line? Can you pipe the output of one into the next to same time?
If it isn't, would someone be so kind to explain?

3: perhaps a buffer setting is appropriate here. I'm using Steve H's tripleParameteric and fastLookAheadLimiter. Maybe a buffer setting different than the default would help? Any ideas?

4: any other hints about speeding up much appreciated!

brad
Kai Vehmanen | 1 Apr 2005 08:55

Re: Piping to ecasound

On Thu, 31 Mar 2005, Bill Moseley wrote:

> I'm sorry to say I don't know much about audio.  I'm trying to now
> burn the audio back to cdr and cdrecord is giving an error:
>
>    cdrecord: Bad audio track size 30750092 for track 01.
>    cdrecord: Audio tracks must be at least 705600 bytes and a multiple of 2352.

CD tracks have to be of certain sizes. Ecasound actually has support for 
creating CD-compatible tracks (the .cdr format), but the easiest option is 
to provide cdrecord with .wav files and add the -pad option. It will then 
pad all tracks so that their sizes will match the criteria.

> I'm piping flac to ecasound and was not able to use --force-raw-format
> flac option.  Indeed, this plays the audio just fine.
>
>  flac -dc test.flac | ecasound -i stdin -o alsa

ecasound -i test.flac -o alsa

... should also work. It uses 'flac' as well, but takes cares of the 
piping on your behalf.

> So to convert a collection of flac files I'm using this in a script:
>
>    for x in "$DIR"/*.flac; do
>        OUTFILE="$(basename $x .flac ).wav"
>
>        echo "Generating: $OUTFILE"
>
>        flac  -dc "$x" | \
>        ecasound \
>            -q \
>            -a:1,2, \
>            -i stdin \
>            -o "$OUTFILE" \
>            -a:1 \
>            -el:karaoke,-40 \
>            -ea:200 \
>            -a:2 \
>            -efl:400
>    done

That looks good.

> I'm burning with
>    cdrecord -dao *.wav

So add -pad and you are good to go.

--

-- 
  http://www.eca.cx
  Audio software for Linux!

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Kai Vehmanen | 1 Apr 2005 09:02

Re: speeding up ecasound

On Thu, 31 Mar 2005, Brad Fuller wrote:

> 1: is there a way to shut off the printf to stdout? I selected -q but still 
> receive the text:
> [* Session created *]

Oops, that's a bug. Piping to >/dev/null will help as a temporary fix.

> 2: I really don't understand chains and chainsetups - and maybe I should in 
> this case. It seems that a chain is simply the arguments to ecasound. Is that 
> wrong?
> So, if it is, what can you do with a chain that is different than just 
> specifying the args on the command line? Can you pipe the output of one into 
> the next to same time?

I recommend reading the examples page at eca.cx/ecasound and the user's 
guide. A chain is an abstraction used for signal routing. Chain has one 
input, set of signal processing operators (including LADSPA plugins), and 
then one output.

A chainsetup is kind of a "session" or "scene". You can have one 
chainsetup for mixing and one for recording, and then switch between them 
on-the-fly. The options you specify on the command-line form one such 
chainsetup.

> 3: perhaps a buffer setting is appropriate here. I'm using Steve H's 
> tripleParameteric and fastLookAheadLimiter. Maybe a buffer setting different 
> than the default would help? Any ideas?

You rarely need to adjust buffer settings anymore in ecasound, as finding 
out good settings is mostly automatic nowadays.

--

-- 
  http://www.eca.cx
  Audio software for Linux!

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Kai Vehmanen | 1 Apr 2005 09:53

Re: reset "over" counters in ecasignalview?

On Wed, 30 Mar 2005, Peter Lutek wrote:

> i am wondering if it is possible to reset the "over" counters in 
> ecasignalview, without stopping the meters. i don't see anything in the 
> manpage about a way to do that.

Unfortunately that's not possible in current versions. Ecasignalview 
doesn't allow any user interaction during operation, it just shows the levels
and that's it.

Extending ecasignalview with an interactive UI would be a bigger task, but 
as a quick hack I added support for resetting the stats by sending a HUP 
to the ecasignalview process (i.e. from another console: "killall -v -HUP 
ecasignalview").

This is available in CVS, and using the snapshot at:
http://ecasound.seul.org/download/snapshots/ecasound-2.4.1-cvs-20050401.tar.gz

--

-- 
  http://www.eca.cx
  Audio software for Linux!

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Bill Moseley | 1 Apr 2005 16:24

Re: Piping to ecasound

On Fri, Apr 01, 2005 at 09:55:01AM +0300, Kai Vehmanen wrote:
> CD tracks have to be of certain sizes. Ecasound actually has support for 
> creating CD-compatible tracks (the .cdr format), but the easiest option is 
> to provide cdrecord with .wav files and add the -pad option. It will then 
> pad all tracks so that their sizes will match the criteria.

I'll try that .cdr format.  As I posted in previous messages, the
-pad option (I assume) is adding a delay between the tracks when the
tracks are burned to cdr.

Is there a way to "burn" to a file?  My wife says we already have
enough coasters.

> > flac -dc test.flac | ecasound -i stdin -o alsa
> 
> ecasound -i test.flac -o alsa

Seems flac is not registered in my version from Debian Sid.

BTW -- When working remotely (like now, on my laptop) any suggestions
how to play locally.  Currently, I output to a file then use ssh and
pipe into something like mplayer.  But I'm curious if there's a way
to use something like -o alsa but have it work over the network.

--

-- 
Bill Moseley
moseley <at> hank.org

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Peter Lutek | 1 Apr 2005 15:15

Re: reset "over" counters in ecasignalview?

> I added support for resetting the stats by sending a HUP to the  
> ecasignalview process (i.e. from another console: "killall -v -HUP  
> ecasignalview").

cool. thanks, kai!

-p

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Andres Cabrera | 4 Apr 2005 17:32

Quad mixer with jack

Hi all,
I've been digging into ecasound, because it's the efficient tool I need
for a purpose. I'm trying to set up a simple (front-back) quad mixer, so
that stereo signals can be sent to 4 channels.
(BTW I tried searching the list archives, but the sourceforge mailing
list page for ecasound says no lists for ecasound...)
I have tried this:
$ ecasound -s:gemini.eca

and gemini.eca contains:
-a 1 -i jack_auto,Absynth-1 -ea 50 -o loop,1
-a 2 -i jack_auto,Absynth-1 -ea 10 -o loop,2
-a 3 -i jack_auto,Absynth-2 -ea 50 -o loop,1
-a 4 -i jack_auto,Absynth-2 -ea 50 -o loop,2
-a 5 -i jack_auto,pm4 -ea 10 -o loop,1
-a 6 -i jack_auto,pm4 -ea 50 -o loop,2
-a 7 -i jack_auto,OrangeVocoder -ea 50 -o loop,1
-a 8 -i jack_auto,OrangeVocoder -ea 10 -o loop,2

-a 10 -i loop,1 -o jack_generic,Front
-a 11 -i loop,2 -o jack_generic,Back

However, I get:
****************************************************************************
*               ecasound v2.3.5 (C) 1997-2004 Kai
Vehmanen                 
****************************************************************************
- [ Session created ]
------------------------------------------------------
- [ Chainsetup created (file) ]
--------------------------------------------
(eca-session) Chainsetup loaded from 'gemini.eca' is not valid!
---
ecasound: ERROR: [ECA-SESSION] : "Errors parsing session-level options.
Unable to create session."

If I discard chains 3-8, things work, but in the examples I've seen very
similar things that do work. It's probably something really silly...=)
Can anyone spot it?

Thanks,
Andres

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Kai Vehmanen | 4 Apr 2005 10:19

Re: Quad mixer with jack

Hello,

On Mon, 4 Apr 2005, Andres Cabrera wrote:

> (BTW I tried searching the list archives, but the sourceforge mailing
> list page for ecasound says no lists for ecasound...)

as ecasound-list was only recently moved to sf.net, the sf.net list 
archive services are not used (as they would be incomplete). You can find 
the official archives at http://eca.cx -> "Mailing lists".

> and gemini.eca contains:
> -a 1 -i jack_auto,Absynth-1 -ea 50 -o loop,1
> -a 2 -i jack_auto,Absynth-1 -ea 10 -o loop,2
> -a 3 -i jack_auto,Absynth-2 -ea 50 -o loop,1
> -a 4 -i jack_auto,Absynth-2 -ea 50 -o loop,2
> -a 5 -i jack_auto,pm4 -ea 10 -o loop,1
> -a 6 -i jack_auto,pm4 -ea 50 -o loop,2
> -a 7 -i jack_auto,OrangeVocoder -ea 50 -o loop,1
> -a 8 -i jack_auto,OrangeVocoder -ea 10 -o loop,2
>
> -a 10 -i loop,1 -o jack_generic,Front
> -a 11 -i loop,2 -o jack_generic,Back

You cannot specify audio objects multiple times (for example multiple 
instances of "-o loop,1"). Instead you can do:

-a:1 -i jack_auto,Absynth-1 -ea:50
-a:2 -i jack_auto,Absynth-1 -ea:10
-a:3 -i jack_auto,Absynth-2 -ea:50
-a:4 -i jack_auto,Absynth-2 -ea:50
-a:5 -i jack_auto,pm4 -ea:10
-a:6 -i jack_auto,pm4 -ea:50
-a:7 -i jack_auto,OrangeVocoder -ea:50
-a:8 -i jack_auto,OrangeVocoder -ea:10

-a:1,3,5,7 -o loop,1
-a:2,4,6,8 -o loop,2

-a:10 -i loop,1 -o jack_generic,Front
-a:11 -i loop,2 -o jack_generic,Back

--

-- 
  http://www.eca.cx
  Audio software for Linux!

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Julien Claassen | 4 Apr 2005 18:24
Picon

Re: .ewf problem (BUG?)

Hi Kai!
  A simple scenario... I think it would suffice to take 7 .ewf-files each 200 
secs long and concatenate them. The first error messages come around 4 or 5 
.ewfs connected. I never tried it with shorter wavefiles. Maybe I could.
  One things sure though: With 3 .ewfs everything worked fine.
  Kindest regards
      Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net - the Linux TextBased Studio guide

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Valery | 7 Apr 2005 13:11

(eca-control) ERROR: Connecting chainsetup failed

Hi,
having some trouble to start ecasound ;
System 	: FreeBSD 5.3
OSS 	: 3.99.2b
ecasound: 2.2.4

Error :
(eca-control) ERROR:  Connecting chainsetup failed: "Enabling
chainsetup: AUDIOIO-OSS: general OSS error SNDCTL_DSP_GETBLKSIZE"

Cmd : ecasound -i:/dev/dsp -o:toto.wav

Changing parms via -f doesn't change anything.
A simple 'cat /dev/dsp' to sox work fine.

A tips of using ECASOUND env. var. would be fine.
Setting ECASOUND to my home directory doesn't change
anything too.

Thanks,

v

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list


Gmane