[jroth: Re: Using value of -ev for -ea]
Joel Roth <[email protected]> Sat, 4 Apr 2020 15:42:17 -1000
| Newsgroups | gmane.comp.audio.ecasound.general |
|---|---|
| Message-ID | <20200405014217.5fi3hpy3gflo2zcs@sprite> |
--ccdikckun3trw4jx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline -- Joel Roth --ccdikckun3trw4jx Content-Type: message/rfc822 Content-Disposition: inline Date: Sat, 4 Apr 2020 15:41:43 -1000 From: Joel Roth <jroth> To: "[email protected]" <[email protected]> Subject: Re: [ecasound] Using value of -ev for -ea Message-ID: <20200405014143.hbo5ijz522xmc27u@sprite> Reply-To: Joel Roth <[email protected]> References: <084c433a-180d-4a11-8933-2fae0299fbf0@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <084c433a-180d-4a11-8933-2fae0299fbf0@localhost> User-Agent: NeoMutt/20170113 (1.7.2) On Sun, Apr 05, 2020 at 06:21:34AM +1000, [email protected] wrote: > Dear all, > > I'm trying to normalize an audio file. > > using the effect preset '-ev' gives me the maximum gain which can be applied before clipping. > > But the manual states that this value can be used to amplify the signal using the '-ea ' preset. > > I want to make a script which passes the value from the '-ev' output into '-ea', so: > > ecasound -i Test.wav -ev -o:null > > ...some code from the script... > > ecasound -i Test.wav -ea:<percentage_based_on_ev> -o Test2.wav > > I can get any value that is listed in the output of '-ev' using grep and then pipe it into a variable. > > I get the impression that I have to make a calculation from gain (in dB I presume) to a percentage, before I can pass the value into '-ea'. > > Is this correct or can I somehow pipe the output of '-ev' directly into '-ea'? > > Kind regards, > > Hans Hi Hans, ecanormalize file.wav should do it for you. ecanormalize is a utility that comes with ecatools. https://eca.cx/ecasound-list/2001/10/0211.html Joel Roth --ccdikckun3trw4jx Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --ccdikckun3trw4jx Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ecasound-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ecasound-list --ccdikckun3trw4jx--