Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: aacgain is ready (Read 20214 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

aacgain is ready

As promised here, I finally completed aacgain.

aacgain is a modification to Glen Sawyer's excellent mp3gain program. It supports AAC (mp4/m4a/QuickTime) audio files in addtion to mp3 files.

I am releasing it in source code only
a) to avoid any MPEG royalty issues, and
b) to ensure that early users have the knowledge to fix whatever bugs they find 

You can download the source code from http://altosdesign.com/aacgain/ Source code is for a Windows command line application. Contact me if you want to help make aacgain multi-platform or otherwise contribute to its development.

Dave

aacgain is ready

Reply #1
Great news, thanks.....


Could someone make a compile ?

aacgain is ready

Reply #2
Great program 
aacgain works well, except a multichannel aac.
I get an error message saying "Not enough samples in E:\temp\SURROUNDTEST.m4a to do analysis"

aacgain is ready

Reply #3
Great Work!

aacgain is ready

Reply #4
Quote
Great program  
aacgain works well, except a multichannel aac.
I get an error message saying "Not enough samples in E:\temp\SURROUNDTEST.m4a to do analysis"
[a href="index.php?act=findpost&pid=260821"][{POST_SNAPBACK}][/a]


Witt gave me some multi-channel files to test with. I don't have time to debug it today but will look at it Wednesday.

Thanks!

Dave


aacgain is ready

Reply #6
first of all: thanks a lot for this great tool

than of course i have the question for our aac pros about whether doing this is really a good idea (quality- and mpeg-4 compatibility wise)?
I know, that I know nothing (Socrates)

aacgain is ready

Reply #7
Just uploaded a version compiled by Dave himself to RareWares.

aacgain is ready

Reply #8
I have made an experimental linux compile. I don't know whether it works though, as it doesn't like my aac file. Do I need a mp4 container for it?

aacgain is ready

Reply #9
Quote
I have made an experimental linux compile. I don't know whether it works though, as it doesn't like my aac file. Do I need a mp4 container for it?
[a href="index.php?act=findpost&pid=261016"][{POST_SNAPBACK}][/a]


aacgain requires an mp4 container.

aacgain is ready

Reply #10
is this tool used with the same switches like MP3Gain, or how does one use this?
I tried running it with -h, --h, -help, --help etc, to no avail...
can it be used with the MP3Gain gui, or a modifaction of it?
[span style='font-size:8pt;line-height:100%']cmdline-noob-mode.off[/span]
Nothing but a Heartache - Since I found my Baby ;)

aacgain is ready

Reply #11
Quote
is this tool used with the same switches like MP3Gain, or how does one use this?
I tried running it with -h, --h, -help, --help etc, to no avail...
can it be used with the MP3Gain gui, or a modifaction of it?
[span style='font-size:8pt;line-height:100%']cmdline-noob-mode.off[/span]
[a href="index.php?act=findpost&pid=261034"][{POST_SNAPBACK}][/a]

Try /? or /h instead.

And it appears to be a modification of MP3Gain, so it probably would work with the GUI. It doesn't appear that he modified the switches any.

aacgain is ready

Reply #12
just had a go with the MP3Gain gui (replaced mp3gain.exe with the renamed aacgain.exe).
after enableing 'no check for layer I or II', the gain was applied.
however, using the nero and compaact! files from the m4a-bible thread results in uplayable files in Wa.
undo changes or remove tags doesn't make it better either.

btw, /? or /h doesn't work for me... 
Nothing but a Heartache - Since I found my Baby ;)

aacgain is ready

Reply #13
I tried mp3gain gui with aacgain.exe renamed to mp3gain.exe with a couple of m4a files produced by faac and it worked perfect! You can only add files by the "Add files" button and select "All files" in the next dialog. You can't select directories with m4a's though.

aacgain is ready

Reply #14
Quote
I tried mp3gain gui with aacgain.exe renamed to mp3gain.exe with a couple of m4a files produced by faac and it worked perfect!
hmm, that's strange. I'm gonna try it with selfencoded files again tomorrow.
Nothing but a Heartache - Since I found my Baby ;)

aacgain is ready

Reply #15
Quote
hmm, that's strange. I'm gonna try it with selfencoded files again tomorrow.
[a href="index.php?act=findpost&pid=261124"][{POST_SNAPBACK}][/a]


Command line and help are the same as mp3gain. /? or /h if you compile for windoze, -? or -h otherwise.

What's a "selfencoded" file?

Dave

aacgain is ready

Reply #16
@davelasker

So I got the linux version running (completely ported - probably not the smartest way, though...), but I found a strange thing: In gain_analysis.c I had to make the buffers bigger, otherwise it would segfault. Using the windows compile on my file (using wine) works though. But after my adjustment linux and windows version do find the same values, so could you please check whether there is a hidden bug I may have stepped onto?

I will send you a patch soon.

aacgain is ready

Reply #17
Quote
What's a "selfencoded" file?
audio files encoded by yourself, opposed to files encoded by someone else (as the files I tried it with before).

I tried it again today and it works flawlessly with self encoded nero LC files.
it chokes on the files talked above though.
Nothing but a Heartache - Since I found my Baby ;)

aacgain is ready

Reply #18
Quote
after enableing 'no check for layer I or II', the gain was applied.


The no check for layer I or II option forces the file to be treated as mp3 (as in original mp3gain). This option should not be used for AAC files.

Dave

aacgain is ready

Reply #19
Is aacgain restricted to the same decibel steps as mp3gain? Haven't had a chance to check it yet, but I'm sensitive enough to volume fluctuations that a even a 1dB shift from album to album can seem jarring. (No criticism of your program intended... just trying to decide whether aacgain or wavegain is still my best option! There will obviously be times when one or the other is more appropriate, so I am grateful for both tools.)

    - M.

aacgain is ready

Reply #20
Quote
Quote
after enableing 'no check for layer I or II', the gain was applied.
The no check for layer I or II option forces the file to be treated as mp3 (as in original mp3gain). This option should not be used for AAC files.
I had to use that option in order to get the files gained. only that way the two audio bible mp4 files where accepted. in the light of your comment it wouldn't strike me so odd that they weren't playable anymore.
Nothing but a Heartache - Since I found my Baby ;)

aacgain is ready

Reply #21
Quote
I tried mp3gain gui with aacgain.exe renamed to mp3gain.exe with a couple of m4a files produced by faac and it worked perfect! You can only add files by the "Add files" button and select "All files" in the next dialog. You can't select directories with m4a's though.
[a href="index.php?act=findpost&pid=261121"][{POST_SNAPBACK}][/a]


Yeah, I'm tweaking the GUI to recognize the "m4a" and "mp4" file extensions.

-Glen

aacgain is ready

Reply #22
Quote
Yeah, I'm tweaking the GUI to recognize the "m4a" and "mp4" file extensions.

-Glen
[a href="index.php?act=findpost&pid=261247"][{POST_SNAPBACK}][/a]

That would be great. Thanks Glen. 

aacgain is ready

Reply #23
Quote
Is aacgain restricted to the same decibel steps as mp3gain?


Yes it is. Both mp3gain and aacgain work by altering the "global_gain" field of each audio sample. Each increment or decrement of global_gain alters the sound level by 1.5dB. So 1.5dB is the minimum resolution.

Dave

aacgain is ready

Reply #24
Quote
Quote
Is aacgain restricted to the same decibel steps as mp3gain?


Yes it is. Both mp3gain and aacgain work by altering the "global_gain" field of each audio sample. Each increment or decrement of global_gain alters the sound level by 1.5dB. So 1.5dB is the minimum resolution.

Dave
[a href="index.php?act=findpost&pid=261317"][{POST_SNAPBACK}][/a]


  Thanks for the answer Dave. I suspected that might be the case, but I wasn't sure whether or not AAC utilized the same global_gain structure.

    - M.