[ecasound] Piping to ecasound

From: Bill Moseley <moseley@email-addr-hidden>
Date: Thu Mar 31 2005 - 23:01:25 EEST

This is back to removing voice from the linux audio list.

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.

I'm wondering if it has something to do with not using raw input format.
The man pages for ecasound says when using -i stdin that the audio is
expected to be in raw format.

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

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 \

Here's that first track:

    moseley@email-addr-hidden:~/wav$ file test.wav
    test.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz

    moseley@email-addr-hidden:~/wav$ ls -l test.wav
    -rw-r--r-- 1 moseley moseley 30750136 2005-03-31 11:56 test.wav

And alsaplayer plays test.wav just fine, too.

I'm burning with

    cdrecord -dao *.wav

Am I now creating the correct output wav from ecasound?


Bill Moseley
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
Ecasound-list mailing list
Received on Fri Apr 1 00:15:06 2005

This archive was generated by hypermail 2.1.8 : Fri Apr 01 2005 - 00:15:06 EEST