[wplug] Audio: Compression Utility?
bgtrio at yahoo.com
bgtrio at yahoo.com
Thu Jun 12 14:17:24 EDT 2003
I am interested in the answer.
I would suggest checking out some of the .wav editors that have come out
for linux lately, they typically have a lot of plug-in type effects. I'd
be shocked if there wasn't a LADSPA compression plug-in.
Last time I compressed a sound file this way I used cool-edit 95
shareware. Maybe it will run under wine, you can still find the
shareware file if you look around.
Bryguy
On Thu, 12 Jun 2003, Russ Schneider wrote:
> I'm not talking about Ogg or MP3 type compression here, I'm talking
> about taking an audio file and compressing it, evening out the levels,
> preventing harsh spikes.
>
> A google search came up rather bleak, flooded with ogg/mp3 type
> examples. I was wondering if anyone on this list use a compression
> tool, hopefully something as simple as the following normalize tool
> someone shared with me:
>
>
> #!/usr/bin/perl
> # this takes all the files on the command line, and amplifies them all
> # _by the same amount_ as much as possible without clipping.
>
> foreach $file (@ARGV) {
> print "$file should be adjusted by ";
> open SOX, "-|", "nice sox \'$file\' -e stat -v 2>&1" or die;
> chomp($sox = <SOX>);
> close SOX;
> print "$sox.\n";
> $adjust = $sox if $adjust > $sox or not defined $adjust;
> }
> exit unless $adjust > 1;
> print "Adjusting volume by $adjust for:\n";
> foreach $file (@ARGV) {
> print "\t$file\n";
> system "nice", "sox", "-v", $adjust, $file,
> "-t", "wav", "$file.temp" and die;
> rename "$file.temp", $file or die;
> }
> print "done.\n";
>
>
>
--
http://www.livejournal.com/~bryguypgh
More information about the wplug
mailing list