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: Is there any way to CLEAR OUT a MP3Gain tag? (Read 8717 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Is there any way to CLEAR OUT a MP3Gain tag?

-

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #1
mp3gain's volume change isn't an extra tag or anything, so no. It just alters the gain value in each frame header.
You'd have to re-apply the gain settings to whatever it used to be to get the original gain level.

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #2
When you applied your gain MP3Gain should have added an APEv2 "undo" tag, unless you told it specifically not to.

If so, use "Modify Gain" > "Undo Gain changes" to get MP3Gain to use this tag to restore the correct volume.  As Firon said, the change was not just a metadata change, MP3Gain changes the volume for each frame.  However the "undo" metadata will allow it to apply gain again, using the offset stored to reset the value.


Edit: Removed answer on how to just remove the APEv2 tag
I'm on a horse.

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #3
-

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #4
Does this all mean that once you "track-gain" all files, without saving undo info, you LOSE the album gain values? Or is it possible that after adjusting all tracks with "track gain" is perfectly possible to restore the original "album gain".
Sorry, don't know.  Why not do some simple tests?

And UNDO is only guaranteed while the application is open, right?
Wrong.  The info is stored in an APEv2 tag, so it is available in a later session, or on another PC.
I'm on a horse.

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #5
Does this all mean that once you "track-gain" all files, without saving undo info, you LOSE the album gain values? Or is it possible that after adjusting all tracks with "track gain" is perfectly possible to restore the original "album gain".
Since MP3Gain applies the gain directly to the MP3 frames (see the MP3Gain page at HA wiki), it's either track or album. Can't have both.

Of course you can convert, but you must re-run MP3Gain. I.e., run MP3Gain in Track mode, later you undo, and run MP3Gain in Album mode. I don't recall how. Been quite some time since I last use MP3Gain. Now using VorbisGain almost exclusively

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #6
Well, it's simple: Just undo changes. It should always restore the 'initial' gain of the file(s), it doesn't matter how many times they have been processed by mp3gain before. So it is as if you would never have applied track gain to the file(s). Then just apply album gain and you're done. It's as simple as that.
flac 1.2.1 -8 (archive) | aoTuVb5.7 -q 4 (pc, s1mp3)

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #7
-

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #8
Quote from MP3Gain Help
Quote
MP3Gain can store "Analysis" and "Undo" information in special tags inside the mp3 file itself.
If tag writing is turned on, then MP3Gain only has to spend time analyzing an mp3 file once. If you load the same file into MP3Gain at a later time, then the program will see the tag and instantly display the volume and recommended gain changes for the mp3.
With the tag information, MP3Gain is also able to automatically undo any changes you make to an mp3 file. All you have to do is load the mp3 file into MP3Gain and select "Modify Gain - Undo Gain changes" from the menu.

Quote
The bad news: MP3Gain can only adjust the volume of your mp3 files in steps of 1.5 dB.

The good news: 1.5 dB is a small enough step for most practical purposes. Most humans can just barely hear a volume change of 1 dB.

foobar RG scanner never change audio data itself.
These are very basic knowledge about MP3Gain and ReplayGain.

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #9
-

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #10
interesting... MP3Gain is not a real ReplayGain...

No MP3Gain is not really ReplayGain, but works better imho, since there are no matter of incompatibility.
I have noticed that LAME adds a ReplayGain tag to the encoded MP3, is that automatic?

Yes, per default
There's nothing on the command line telling it to do so...
Read that no player supports it and it's just trackgain.
Does it have a command line to NOT set any gain value?

Yes you can turn off ReplayGain in LAME:
--noreplaygain  disable ReplayGain analysis
Perhaps this may cause trouble in the future?

Actually i'd like to know how to adjust the LAME tag... Or clear out THAT tag, when I use MP3Gain. I noticed ReplayGain values when i've used MP3Gain, but i'm not sure if it modifys the LAME value, or just causes trouble...

Anyway, I think the APEv2 tag is quite sensitive. I tend to trim all my files with mpTrim, but this strips the APEv2 tag, and also all undo information.

Generally i've learnt ALWAYS UNDO GAIN CHANGES BEFORE APPLYING NEW ONES! I'm not sure exactly what happens, but I noticed that MP3Gain has a hard time figuring the original gain value when applying new ones.
Can't wait for a HD-AAC encoder :P

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #11
And VorbisGain I assume can only be applied to OGGs, or does it apply to MP3 as well...
Yes, VorbisGain only works with Ogg Vorbis files. So the point I was trying to make is that I no longer use the MP3 format now

High-quality (i.e. MP3 --preset insane) I got from various sources I tag & rename properly, burn to CD, then I transcode them to Vorbis -q 1.

Is there any way to CLEAR OUT a MP3Gain tag?

Reply #12
so, no matter how many times I change the db value and apply it to the file... if I run UNDO GAIN CHANGE, will it always come back to the starting point!? Or will it come back to the LAST value?

Yes, it will, at least when I tested it it did: First, I ran Track Analysis to see the gain the file has before doing anything, it was 97.0dB. Then, I ran Track Gain with Target Volume set to 80dB, closed MP3Gain, moved around the mp3 file, started mp3gain again and did Track Gain WITHOUT UNDOING FIRST to Target Volume 83dB. I repeated this for another few Target Volumes. Then, I hit Modify Gain-->Undo Gain Changes. And guess what the files loudness was set to: 97.0dB -- just like before using MP3Gain.

So if you don't believe me do this simple experiment for your own. Doing experiments is a very good way to learn or proof something. And if I didn't try it like this, I wouldn't know it now. 

Generally i've learnt ALWAYS UNDO GAIN CHANGES BEFORE APPLYING NEW ONES! I'm not sure exactly what happens, but I noticed that MP3Gain has a hard time figuring the original gain value when applying new ones.


You can do that, but as I said, it's absolutely unnecessary and only a waste of time. By saying "I'm not sure exactly what happens" you tend to say you never tried and don't know. Please, try to avoid making claims without proof.


You know, I already FELT that 1.5 db limitation adjustment. Some albums if I do album gain, I notice that some tracks get lower than they should do, I think because of this 1.5db limitation. But foobar2000 replaygain scanning does not do that, It seems to adjust the levels perfectely as if the albums were untouched (no 1.5db limitation here right?). But the problem is if foobar applies the gain into the file, it occours loss.


Huh? That doesn't make any sense. 1.5dB limitation has nothing to do with in-album relative track gains. You should see it like this: If you want to reach a target ALBUM volume of 89dB and the current ALBUM volume is let's say 93.7dB, it has to choose the gain nearest to 89dB, which in this case would be 89,2dB. That means a gain adjustment of -4.5dB. This adjustment is done on all files in this album, so it is absolutely impossible that relative track gains within an album get broken. The only explanation to this is that you did track gain instead of album gain, that's why the dynamics are not correct anymore (let's say you have an album with 3 tracks; track1 has 93.2dB, track2 89.1dB and track3 91.4dB, then in track gain mode track1 would be changed by -4.5dB, while track2 wouldn't be changed at all and track3 by -3dB, thus giving you wrong dynamics in the album).

Anyway, I think the APEv2 tag is quite sensitive. I tend to trim all my files with mpTrim, but this strips the APEv2 tag, and also all undo information.

I'd say sh*tty app 
If you HAVE TO use it anyway, you should undo gain changes in mp3gain before processing them through it, and after processing analyze & gain them again (I know it's a lot of time but if you're gonna cut out something you should rescan, anyway).
flac 1.2.1 -8 (archive) | aoTuVb5.7 -q 4 (pc, s1mp3)