Re: [LAU] normalize from command line

From: Ken Restivo <ken@email-addr-hidden>
Date: Sat Aug 27 2011 - 08:33:52 EEST

On Fri, Aug 26, 2011 at 03:36:05PM +0200, Peder Hedlund wrote:
> Quoting Renato <rennabh@email-addr-hidden>:
>
>> On Wed, 24 Aug 2011 17:21:50 -0700
>> Ken Restivo <ken@email-addr-hidden> wrote:
>
>>> for i in `ls *wav`; do
>>> FOO=`sox $i -e stat -v 2>&1`
>>> BN=`basename $i .wav`
>>> echo "norming $i with factor $FOO ..."
>>> sox -v $FOO $i -t wav ${BN}.norm.wav
>>> done
>>>
>>
>> mmh, getting this error:
>>
>> norming scrivania_varie.wav with factor sox FAIL sox: --encoding:
>> `stat' is not one of: signed-integer, unsigned-integer,
>> floating-point, ms-adpcm, ima-adpcm, oki-adpcm, gsm-full-rate, u-law,
>> mu-law, a-law. ...
>> sox FAIL sox: Volume value `sox' is not a number
>
>
> Try changing the -e to -n on the FOO line.
> I guess they replaced "empty" with "null".
>

Makes sense to me. I have 14.0.1-2+b1 here, it works, and the man page says:

      -e This is an alias of -n and is retained for backwards
                          compatibility only.

I guess they dropped that backwards compatibility later on.

-ken
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat Aug 27 08:15:02 2011

This archive was generated by hypermail 2.1.8 : Sat Aug 27 2011 - 08:15:02 EEST