# LAME and unwanted ReplayGain fields

**URL:** https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919
**Category:** General Discussion
**Created:** [July 15, 2019, 7:19pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919 "2019-07-15T19:19:22Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![markf](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@markf](https://community.mp3tag.de/u/markf)
#### Post date: [July 15, 2019, 7:19pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/1 "2019-07-15T19:19:22Z")

</div>

There's a related problem, involving LAME -- it writes replaygain info to the file header. VLC displays it; mp3tag thinks it's an APE tag; but removing APE tags doesn't get rid of it.

According to the LAME spec, "nothing" understands this tag - yet - but to avoid any issues in future I'd like to get rid of it.

If there's a way for mp3tag to remove the LAME replaygain header, that would be really useful.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 15, 2019, 7:23pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/2 "2019-07-15T19:23:30Z")

</div>

> [@Run MP3Gain from MP3Tag!](https://community.mp3tag.de/t/run-mp3gain-from-mp3tag/45627/25):
>
> If there's a way for mp3tag to remove the LAME replaygain header, that would be really useful.

You could test if one of the named utilities helps to clean up - see here:

> [@How to check files for errors?](https://community.mp3tag.de/t/how-to-check-files-for-errors/44633):
>
> It’s required and often helps to reduce support cycles to check files for errors before filing a bug report. Symptoms of erroneous files are often missing or wrong bitrate or length audible blips or skips tags seem to be sticky and cannot be removed There are some really good tools to check the files for errors, namely MP3 Diags — identifies many different issues in MP3 files Website: [http://mp3diags.sourceforge.net](http://mp3diags.sourceforge.net) Download: [MP3 Diags - Getting MP3 Diags](http://mp3diags.sourceforge.net/010_getting_the_program.html#binWindows) If the font size in MP3 Diags is …

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 15, 2019, 8:52pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/3 "2019-07-15T20:52:02Z")

</div>

> [@Run MP3Gain from MP3Tag!](https://community.mp3tag.de/t/run-mp3gain-from-mp3tag/45627/25):
>
> There's a related problem, involving LAME -- it writes replaygain info to the file header. VLC displays it; mp3tag thinks it's an APE tag; but removing APE tags doesn't get rid of it.

Is it possible that you share such a song?  
If you want, you can send the link to the shared file in a PM. Maybe we can find out what kind of tag (ID3, APE, something else) is used.

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [July 15, 2019, 9:07pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/4 "2019-07-15T21:07:37Z")

</div>

> [@Run MP3Gain from MP3Tag!](https://community.mp3tag.de/t/run-mp3gain-from-mp3tag/45627/25):
>
> mp3tag thinks it's an APE tag; but removing APE tags doesn't get rid of

I never had the case that MP3Tag thinks that the replaygain-part of the lame-header is an ape-tag.  
BTW:  
The lame-parameter `--noreplaygain` disables writing raplaygain to the lame-header.

---

<div class="post-metadata">

### Author: ![markf](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@markf](https://community.mp3tag.de/u/markf)
#### Post date: [July 15, 2019, 9:32pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/5 "2019-07-15T21:32:52Z")

</div>

Well, I can assume then that the APE tags I was seeing -- which were very sparsely populated -- came from some form of magic. These were files I had ripped using Easy Audio Copy, which EasyAC compressed to both FLAC and MP3 after ripping. Maybe they have nothing to do with the LAME replaygain tags. I didn't see them in files I made some years ago with LAME 3.97 (even though those, also, have the track-gain tags).

Now that I know about the --noreplaygain switch, I can prevent LAME from creating the track-gain tag in future -- but that doesn't get rid of the many that I already have.

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [July 16, 2019, 1:32am UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/6 "2019-07-16T01:32:35Z")

</div>

dBPoweramp Music Converter also features the ability to calculate and add tags for track and album gain, as well,as adding the choice of either for iTunes if you are setting up your files for that format. All works very quickly and reliably for me without impacting the actual audio file. Works with lossless and lossy formats.  
GB

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [July 16, 2019, 5:34am UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/7 "2019-07-16T05:34:53Z")

</div>

> [@Run MP3Gain from MP3Tag!](https://community.mp3tag.de/t/run-mp3gain-from-mp3tag/45627/29):
>
> Now that I know about the --noreplaygain switch, I can prevent LAME from creating the track-gain tag in future -- but that doesn't get rid of the many that I already have.

You can use foobar with `right click->Utilities->Fix vbr mp3 header` to get rid of the replaygain-part of the header.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 16, 2019, 6:46am UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/8 "2019-07-16T06:46:37Z")

</div>

> [@markf](#):
>
> but that doesn't get rid of the many that I already have.

If you don't want to know which tag is used (and share such a sample file), you can maybe get rid of the replaygain information with this tool [MP3Gain](http://mp3gain.sourceforge.net/download.php). There is a command line and GUI version of the tool.

On the command line you can use  
`mp3gain /u song.mp3`

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [July 16, 2019, 9:43am UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/9 "2019-07-16T09:43:11Z")

</div>

> [@LyricsLover](#):
>
> If you don't want to know which tag is used (and share such a sample file), you can maybe get rid of the replaygain information with this tool [MP3Gain](http://mp3gain.sourceforge.net/download.php).

That is no tag. The lame replaygain-information is in the lame-header.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 16, 2019, 10:17am UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/10 "2019-07-16T10:17:58Z")

</div>

> [@poster](#):
>
> That is no tag. The lame replaygain-information is in the lame-header.

If this is true, maybe the tool "[LameTag](https://phwip.wordpress.com/home/audio/)" can help @markf to solve his problem.

If someone else is interested in the technical details  
[http://gabriel.mp3-tech.org/mp3infotag.html](http://gabriel.mp3-tech.org/mp3infotag.html)  
_Please read the section "byte $B5 MP3 Gain" carefully_.

---

<div class="post-metadata">

### Author: ![markf](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@markf](https://community.mp3tag.de/u/markf)
#### Post date: [July 17, 2019, 4:36pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/11 "2019-07-17T16:36:45Z")

</div>

Thank you for the suggestion. I will try that and report back.

---

<div class="post-metadata">

### Author: ![markf](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@markf](https://community.mp3tag.de/u/markf)
#### Post date: [July 17, 2019, 4:39pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/12 "2019-07-17T16:39:57Z")

</div>

I can't figure out how to share a copyrighted file without breaking the law. But I am slowly working my way through the various suggested programs to see what happens, and I will report anything I find out.

---

<div class="post-metadata">

### Author: ![markf](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@markf](https://community.mp3tag.de/u/markf)
#### Post date: [July 26, 2019, 11:30am UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/13 "2019-07-26T11:30:20Z")

</div>

Apparently LameTag is not available for download. The link on the page https  
[phwip.wordpress.com](http://phwip.wordpress.com) home audio returns "not found".

---

<div class="post-metadata">

### Author: ![markf](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@markf](https://community.mp3tag.de/u/markf)
#### Post date: [July 26, 2019, 12:04pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/14 "2019-07-26T12:04:13Z")

</div>

OK:  
mp3val finds nothing wrong with the files. This is as expected, since LAME is known to be a good encoder.

mp3diag sees the LAME header, but does not report the existence of the Track Replaygain information. (VLC confirms that it is there.)

foobar2000 "fix VBR header" does remove the LAME replaygain info (VLC confirms it is gone).

Unfortunately I cannot try lametag because dropbox cannot find it.

Thank you all for your assistance. Now I know what to do, both in future and to clean up the files I already have.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [August 25, 2019, 12:04pm UTC](https://community.mp3tag.de/t/lame-and-unwanted-replaygain-fields/45919/15 "2019-08-25T12:04:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
