-> Home

Port of mp3gain to ANSI C/C++, wavgain

Release: 1.3.1/3a (based on mp3gain 1.3.1)

introduction usage download history changes todo contact

Introduction

Mp3gain is a powerful utility to modify the real loudness of MPEG audio files automatically to one common level. It utilizes the psychoacoustic modell of replaygain to do the loudness analysis. The modifications to the MPEG files are lossless (i.e. without any additional losses) and reversible. See the original homepages for further details.

The modification of the MPEG files is done in place and lossless.
The utility can operate on MPEG 1, MPEG 2 and MPEG 2.5 Layer 1, 2 and 3 files.

WAVgain does the same on RIFF wave files.
Due to the nature of the PCM files this procedure is in contrast to MPEG audio files neither lossless nor reversible. However, the losses are small.


Usage

installation of the EMX binaries (OS/2)

Copy the executable files somewhere to your harddrive. You propably want to use a folder which is listed in your PATH environment. Youl must have the EMX 0.9d runtime installed (search at hobbes).
The included gcc321.dll is shared by other applications like mozilla too. You only need one copy in your libpath.

instruction for other platforms

Compile your own binaries using gcc or a gcc-compatible compiler like cygwin. The source should not contain any platform specific stuff. You can use the included Makefile. However, it is most likely that you have to modify the first few lines to match your environment and platform.

usage

Use mp3gain to adjust the loudness of MPEG audio files and wavgain for wave files.

See command line help for details:
mp3gain /? or
wavgain /? respectively

Examples:

To adjust one file with manual control use something like
mp3gain /a /Ia /d2 filename
/a and /r are the same for one file. /d2 tweaks the very "safe" default setting by +2dB. A good choice for pop music.
To adjust a whole album with manual control
mp3gain /a /Ia /d2 track1_file track2_file track3_file ...
On platforms where the command shell expands wildcards (like Unix) you may simply use the following statement to treat all files in the current directory as one album
mp3gain /a /Ia /d2 *.mp3
If you have to process a very large number of files you may not like the interactive mode. However, you will need a shell script for the iteration over the files.
mp3gain /a /Ca /d2 current_file

Download

This program is distributed under the terms of the GNU LESSER GENERAL PUBLIC LICENSE.
ZIP file with C source, OS/2 binaries and this guide: Version 1.3.1/3
The source code should compile on almost any ANSI compliant C/C++ compiler.


History

Version 1.3.1/3a (Jan. 2, 2004)

Version 1.3.1/3 (Dec. 16, 2003)

Version 1.3.1/2a (Dec. 07, 2002)

Version 1.3.1/2 (Dec. 04, 2002)

Version 1.0.5 (pre) first public release


Changes to the original distribution


ToDo


Contact

Suggestions, help, complaints (but not too much:-): mueller@maazl.de

Original location of this page: http://www.maazl.de/project/mp3/mp3gain.html