View Full Version : command-line tool to normalise audio (mp3, mp2) ?
audyovydeo
19th January 2011, 12:32
I need to normalise a great number of audio files.
mainly mp2, aac, mp3
I dont expect a single tool to handle everything,
but mp2 and aac are the most important.
any help welcome
thanks
a/v
smok3
19th January 2011, 12:34
normalising is useless, there is audio player named foobar2000, which can do replaygain processing.
LoRd_MuldeR
19th January 2011, 12:49
If re-encoding is accaptable, you can decode with mpg123/FAAD, do the normalization with Volumax or SoX, then re-encode...
http://www.rarewares.org/others.php
audyovydeo
19th January 2011, 13:32
normalising is useless...
for you, without a doubt. For me it's indispensable for the task I'm on.
Lord mulder : I'm doing it with Sony Vegas, I'm looking for a cmdline thing to treat hundreds of files. I'll try SOX. Danke !
cheers
a/v
LoRd_MuldeR
19th January 2011, 13:35
Well, I think any command-line tool that can do it with a single file, can do it with hundreds of files as well - simply by using a batch file.
(If you want to apply the same normalization factor to all files, instead of normalizing each file individually, things will be much more complicated)
mariush
19th January 2011, 13:47
Goldwave has a batch processing system ... not command line but you can process several files at once from inside the software. It's shareware and cheaper than those more "pro" tools.
I know Sonic Foundry Soundforge used to have batch processing but now was sold to Sony and it's called Soundforge Audio Studio or something like that and I don't know if the basic version has it anymore : http://www.sonycreativesoftware.com/audiostudio
audyovydeo
19th January 2011, 18:10
(If you want to apply the same normalization factor to all files, instead of normalizing each file individually, things will be much more complicated)
Hallo
I found this in the sox documentation :
−−replay−gain track|album|off
Select whether or not to apply replay-gain adjustment to input files. The default is off for sox and
rec, album for play where (at least) the first two input files are tagged with the same Artist and
Album names, and track for play otherwise.
looks promising, I'll try it tomorrow
thanks to all for answers
cheers
a/v
LoRd_MuldeR
19th January 2011, 19:39
AFAIK Replay Gain only analyzes the "perceived loudness" and then writes the required volume adjustment into the file as meta tag.
The actual audio data isn't touched (e.g. normalized) at all. The player will do the volume adjustment at playback time, which of course requires a player with support for Replay Gain tags.
Is that what you want?
audyovydeo
20th January 2011, 08:22
AFAIK Replay Gain only analyzes the "perceived loudness" and then writes the required volume adjustment into the file as meta tag.
The actual audio data isn't touched (e.g. normalized) at all. The player will do the volume adjustment at playback time, which of course requires a player with support for Replay Gain tags.
Is that what you want?
Only as a workaround. Ideally I want to align/normalise the volume of N audio samples on that of one.
cheers
a/v
detmek
21st January 2011, 15:56
Mp3Gain and aacgain can scan files to calculate RG value according to user specified value and write RG values into tags. Also, it can permanently change files without recompression. Mp3gain has GUI and, if you rename aacgain.exe to mp3gain.exe, it will work with aac (m4a/mp4) files.
smok3
21st January 2011, 20:03
you want −−replay−gain track and not album.
the entire story is here http://replaygain.org/
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.