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: mp3gain (Read 18853 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

mp3gain

Reply #25
Back to the bakerywizard site linked above.

There's been some private emails, where the bakerywizard author demands ABX evidence, using appropriate music.

I took the sample Enola Gay (I think it's by OMD) from a codec test (a 64kbps one IIRC). I encoded it using FhG 256kbps FastEnc (of all things!), made a copy, mp3 gained the copy to 98dB (which required a 7.5dB level increase).

I decoded the untouched and gained mp3s, reduced the level of the latter by 7.5dB, and loaded them into foobar ABX comparator.

Code: [Select]
foo_abx v1.2 report
foobar2000 v0.8.3
2004/11/23 17:27:59

File A: file://C:\001 Copy of 001 Enola_Gay adjusted.wav
File B: file://C:\001 001 Enola_Gay.wav

17:27:59 : Test started.
17:29:30 : 01/01  50.0%
17:29:41 : 02/02  25.0%
17:30:06 : 03/03  12.5%
17:30:31 : 04/04  6.3%
17:30:37 : 05/05  3.1%
17:30:47 : 06/06  1.6%
17:30:56 : 07/07  0.8%
17:31:03 : 08/08  0.4%
17:31:04 : Test finished.

----------
Total: 8/8 (0.4%)


It was actually reasonably hard - the track is already slightly distorted, but gaining to 98dB makes it more so, and changes the sound too.

I can quite see how, if you were a DJ, you couldn't care less.

However, it is audible, and it'll wreck certain tracks.

(I didn't go looking for such a track - Enola Gay was the first "pop" track that came to mind that fitted the ABX request - old but not too old, and on a test CD I had with me)

Cheers,
David.

mp3gain

Reply #26
To corroborate 2Bdecided's findings (I hope my methodology is OK):

I encoded the same enola_gay sample with Lame 3.90.3 --alt-preset standard.

Replaygained a copy to 98db using mp3gain.

Decoded both mp3s with Foobar2000 (no DSPs are enabled).

Loaded the replaygained version into Soundforge 5.0b and reduced the volume by 7.5db using the Process > Volume menu (this is so we can perform a fair ABX test).

I chose to do 8 trials and found the first 2 or 3 trials quite hard. After that I could pretty much pick out the more distorted version quite easily. The screenshot shows the timing of the area I concentrated on.

daefeatures.co.uk

mp3gain

Reply #27
Ok... I'm the guy how posted that misinformation regarding replaygain setting.
I can see now why this is definitely not recommended!

The only reasons I can think of that steered me in the wrong direction right from the start are:
To me it didn’t make sense to take a perfectly good track having an initial 98db level and bring this level down to a faint 89db.
I was under the assumption that since nearly all new CD's are produced at similar high levels nowadays that old CD's (or their resulting mp3's) should be brought to closely match this level instead of the other way around ??
Well all clipping issues aside, that would make more sense I guess but I can see why it should be the other way around now.

Also... after having previously used MP3Trim to adjust some of my albums in the past, I had noticed that its "0" db target reference corresponded almost exactly to a 98db target value in MP3Gain!  Why such a huge discrepancies between the two application’s target values?  I specifically remember writing to both authors at the time to find out but never received a reply from either ones.   

Well thanks for taking the time to steer me in the right direction anyway.  I'll be correcting the information I have posted on my site soon.
Cheers! 

Andre Aylestock
Author of PartyTime Jukebox

mp3gain

Reply #28
Result! btw, (as I think I said before I knew you were reading) your software looks very cool.

Quote
Also... after having previously used MP3Trim to adjust some of my albums in the past, I had noticed that its "0" db target reference corresponded almost exactly to a 98db target value in MP3Gain! Why such a huge discrepancies between the two application’s target values? I specifically remember writing to both authors at the time to find out but never received a reply from either ones.


That's an easy one. MP3Trim reports the peak sample value. Most pop tracks will peak at 0dB FS. If you load a loud track which is already about 98dB SPL loud (as ReplayGain measures it) and peaks at 0dB FS (as MP3Trim measures it) into both, it'll seem equivalent. If you load a track that peaks at 0dB FS but is about 83dB loud into both, they will seem equivalent!

The discrepancy is because they're measuring two very different things.

Cheers,
David.

mp3gain

Reply #29
Quote
Well thanks for taking the time to steer me in the right direction anyway.  I'll be correcting the information I have posted on my site soon.
[a href="index.php?act=findpost&pid=255881"][{POST_SNAPBACK}][/a]


Thanks for taking the time to listen and getting back to us here. 
daefeatures.co.uk

mp3gain

Reply #30
Quote
Result! btw, (as I think I said before I knew you were reading) your software looks very cool.
[a href="index.php?act=findpost&pid=255894"][{POST_SNAPBACK}][/a]

Thanks, I am also trying to make it fb2k compatible in the future but this might be tougher than anticipated. 
I have a few commands that are working fine with winamp 2.x but have not yet managed to duplicate in foobar.  Specifically the ones dealing with the playlist.

I've posted in fb2k development forum looking for some feedback so I'll be checking that next! 

Again, thanks for the info you've provided!


Andre

mp3gain

Reply #31
Quote
You should note that the default value in MP3Gain comes preset at 89 db, and that choosing a much higher value such as 98 db will show some form of track clipping inside MP3Gain.
I should also mention that I have recently seen and heard proof that in some instances, this resulting clipping will be audible so I am  now recommending a more conservative value of  92 db as the target "normal" value.  If this value still introduces clipping inside MP3Gain, then by all mean use the recommended default value of 89 db or even lower. 

The tradeoff of having to use such a low value in order to completely alleviate clipping is that the resulting mp3 will likely have a much lower sound level compared to exact same CD track.
I am always happy to see webmasters edit their page when someone points out a mistake.

mp3gain

Reply #32
Quote
Quote
Result! btw, (as I think I said before I knew you were reading) your software looks very cool.
[a href="index.php?act=findpost&pid=255894"][{POST_SNAPBACK}][/a]

Thanks, I am also trying to make it fb2k compatible in the future but this might be tougher than anticipated. 
I have a few commands that are working fine with winamp 2.x but have not yet managed to duplicate in foobar.  Specifically the ones dealing with the playlist.

I've posted in fb2k development forum looking for some feedback so I'll be checking that next! 

Again, thanks for the info you've provided!


Andre
[a href="index.php?act=findpost&pid=255969"][{POST_SNAPBACK}][/a]
Hey I'm interested in using your PTJB - when you've mastered Foobar. (I do not use winamp).

mp3gain

Reply #33
Quote
Quote
Quote
Yes, by Mp3Gain you can repair the clipping that was introduced by encoding...
Yes, it seems that Mp3Gain is doing a great job.
But don't I lose information when clipping is introduced by encoding?
If I lose data, can Mp3Gain really undo it?
I've read the Mp3gain FAQ, can't find the answer there. In fact I hope I'm wrong, and no info is lost. But I want to be sure.
[{POST_SNAPBACK}][/a]


I was surprised that, in five minutes, I couldn't find the answer to this on-line either. It must have been answered many times, but it may be quicker to answer again than to keep searching!

If something is "clipped" it means that the sample value is (or should be) above digital full scale - but gets "clipped" to exactly digital full scale, because there are no larger numbers available to represent the true value.

The mp3 encoded version is clipping because the original CD had sample values were very near, or equal to, digital full scale. Mp3 encoding changes the waveform slightly - so that (often as not) these nearly clipped samples get pushed slightly higher, into clipping.

The reason you can recover these samples is because mp3 files can store values greater than digital full scale. So, they've been pushed up out of the range the mp3 decoder or player can handle, but they're still in the mp3 file. If you can adjust the volume down slightly before you play the file back, everything will come out fine, because the values will be decoded into the range below digital full scale = no clipping.


If mp3 encoding only pushed the values slightly higher, it probably wouldn't be worth worrying about this, but some circumstances cause peak values to increase dramatically - it's not a fault, just a fact of life - there's more about it here:

[a href="http://www.ff123.net/norm.html]http://www.ff123.net/norm.html[/url]


To prove to yourself that what I'm suggesting is happening is happening, try this:

1. Take a file (preferably a nice quiet file) and mp3gain it to some stupid amount (110dB or something).
2. Listen to it - it should sound awful - it'll be full of clipping.
3. mp3gain it back down to, say, 89dB.
4. Listen to it again - the clipping has gone. It was only temporary.

Obviously mp3gain can't do anything about clipping which was present in the original source (e.g. CD).

Cheers,
David.
[a href="index.php?act=findpost&pid=255439"][{POST_SNAPBACK}][/a]


What useful and important information this is!
I don't know why this is not in mp3gain FAQ.
Now I understand what mp3gaining  is for.

mp3gain

Reply #34
Madrigal: "The only real danger lies in applying Max No-clip Gain for Each File, which is rarely a wise thing to do."
Why is that dangerous? it sounds like the best thing to do, cos i want each file to play as loud as possible without clipping.

mp3gain

Reply #35
Quote
The only real danger lies in applying Max No-clip Gain for Each File, which is rarely a wise thing to do


Could you please explain this to me too. I tough it was the best of both world, making my mp3's the loudest possbile witouht having clipping ?? 

Soren

mp3gain

Reply #36
2 Keithboy & Soren: The problem lies in the fact, that the track max. no-clip destroys the balance among the songs of the album, so eg. a quiet track (like some intro, intermezzo, outro) is abnormally loud and it ruins the listening pleasure to the whole album...
I hope you know what I mean!
Sorry for my poor English, I'm trying to get better... ;)
"The greatest trick the Devil ever pulled, was convincing the world he didn't exist."

mp3gain

Reply #37
oh ok i thought you guys meant that there was some kind of other problems occuring when using the the "max no clip" option instead of "normal" gain, be that track-gain or Album-gain. (oops that was a long sentence!) other than that i understand what you mean.

mp3gain

Reply #38
Quote
Madrigal: "The only real danger lies in applying Max No-clip Gain for Each File, which is rarely a wise thing to do."
Why is that dangerous? it sounds like the best thing to do, cos i want each file to play as loud as possible without clipping.
[a href="index.php?act=findpost&pid=257168"][{POST_SNAPBACK}][/a]

The only problem is that you'd have to change the volume all the time since some songs don't allow anything louder than 89dB, others are fine with 98dB. Also, sometimes you have continuing tracks that are split into 2 tracks...and therefore you might experience a drastic volume change...
--alt-presets are there for a reason! These other switches DO NOT work better than it, trust me on this.
LAME + Joint Stereo doesn't destroy 'Stereo'

mp3gain

Reply #39
Thanks for the explanation k.eight.a , and i must admit that it is something i never tought before ! 

Soren