Re: [LAU] normalize from command line

From: Renato <rennabh@email-addr-hidden>
Date: Fri Aug 26 2011 - 16:15:30 EEST

On Wed, 24 Aug 2011 17:21:50 -0700
Ken Restivo <ken@email-addr-hidden> wrote:

> On Tue, Aug 23, 2011 at 01:47:43PM +0200, Renato wrote:
> > Hello, what is a cheap and easy way to normalize a bunch of audio
> > files from command line / shell script? Preferably something that
> > works with various formats (.wav, .aiff, .flac and possibly
> > even .ogg and .mp3)
> >
> >
>
> Sorry, forgot to copy list. Been using this for ~10 years now.
>
> #!/bin/sh
> #normalize everything
>
> 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

(with sox 14.3.2)

renato
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Fri Aug 26 16:15:02 2011

This archive was generated by hypermail 2.1.8 : Fri Aug 26 2011 - 16:15:02 EEST