Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Request: Replaygain preamp change
« previous next »
  • Print
Pages: [1]

Author Topic: Request: Replaygain preamp change  (Read 3855 times)

Offline rangi_chip

  • Member
  • *
  • Posts: 38
Request: Replaygain preamp change
« on: June 07, 2013, 01:51:24 AM »
iPod 5.5G 80GB - Rockbox 3.13

The current ReplayGain preamp gains any files with ReplayGain info tags.
This is fine when all you files are simply ReplayGained.

I also have MP3 files that have been MP3Gained, which adds ReplayGain info to the tags, but also changes the global gain field in each frame header. I set MP3Gain to 95db (which is +6db above the default 89db).
Now I also have FLAC files that are ReplayGained (89db). I want these FLACs to play at the same level as the MP3s. To do this I adjust the preamp to +6db. But of course the MP3s contain ReplayGain info, they actually get gained a second time; once from the global gain field in each frame header and again from the preamp.

I am requesting that there be three preamps available, like the following, if possible:
Preamp
For MP3Gained MP3's:
<-----------------------|----------------------->
For ReplayGained files (excluding MP3Gained MP3's):
<-----------------------|----------------------->
For all other files:
<-----------------------|----------------------->

See here for a lot more information: http://www.hydrogenaudio.org/forums/index.php?showtopic=101182&st=0&gopid=836460&#entry836460


Cheers.
« Last Edit: June 07, 2013, 01:53:41 AM by rangi_chip »
Logged
5.5G 80GB iPod

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Request: Replaygain preamp change
« Reply #1 on: June 07, 2013, 10:32:18 AM »
Its not obvious from our documentation, but you could do this using the EQ preamp.  Set the EQ to -3dB, the replaygain preamp to +3dB.  In that case all files without replaygain get -3dB, while those with it get 0dB (that is, the normal replaygain adjustments in their tags).

We should probably make this more obvious though. 
Logged

Offline rangi_chip

  • Member
  • *
  • Posts: 38
Re: Request: Replaygain preamp change
« Reply #2 on: June 07, 2013, 03:16:56 PM »
But that means that MP3s that have been gained by MP3Gain, say from 89db (+6db) to 95db, will then be gained again by the ReplayGain preamp by (+3db) to 98db, but the FLACs will only be at (+3db) 92db...
The EQ preamp wouldn't help in this case because they both have ReplayGain tags.

Maybe just the addition of one more preamp for MP3Gained MP3s only, and the original ReplayGain preamp does all files containing ReplayGain tags, except for MP3Gained MP3s?
« Last Edit: June 07, 2013, 03:20:31 PM by rangi_chip »
Logged
5.5G 80GB iPod

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Request: Replaygain preamp change
« Reply #3 on: June 07, 2013, 03:21:30 PM »
Quote from: rangi_chip on June 07, 2013, 03:16:56 PM
But that means that MP3s that have been gained by MP3Gain, say from 89db (+6db) to 95db, will then be gained again by the ReplayGain preamp by (+3db) to 98db, but the FLACs will only be at (+3db) 92db...

If you alter the volume permanently using mp3gain, the file does not actually get a replaygain adjustment, and thus is ignored by our replaygain code. 

Actually, if you're using mp3gain, then you don't care about what rockbox does at all, since mp3gain is handling it and rockbox doesn't do anything.
Logged

Offline rangi_chip

  • Member
  • *
  • Posts: 38
Re: Request: Replaygain preamp change
« Reply #4 on: June 07, 2013, 11:59:27 PM »
Quote
If you alter the volume permanently using mp3gain, the file does not actually get a replaygain adjustment, and thus is ignored by our replaygain code.

If you look at the discussion http://www.hydrogenaudio.org/forums/index.php?showtopic=101182&st=0&gopid=836460&#entry836460, it shows that when MP3Gain does it's adjustment, it does actually store ReplayGain info in the APE tag, as well as changes the global gain field in each frame header.

These fields are stored in APE tag after being MP3Gained:
  • MP3GAIN_ALBUM_MINMAX
  • MP3GAIN_MINMAX
  • MP3GAIN_UNDO
  • REPLAYGAIN_ALBUM_GAIN
  • REPLAYGAIN_ALBUM_PEAK
  • REPLAYGAIN_TRACK_GAIN
  • REPLAYGAIN_TRACK_PEAK
So I'm assuming that Rockbox behaves the same as foobar2000, and gains the MP3 twice, as it does actually contain ReplayGain info.
« Last Edit: June 08, 2013, 12:02:07 AM by rangi_chip »
Logged
5.5G 80GB iPod

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Request: Replaygain preamp change
« Reply #5 on: June 08, 2013, 12:11:08 AM »
Quote from: rangi_chip on June 07, 2013, 11:59:27 PM
Quote
If you alter the volume permanently using mp3gain, the file does not actually get a replaygain adjustment, and thus is ignored by our replaygain code.

If you look at the discussion http://www.hydrogenaudio.org/forums/index.php?showtopic=101182&st=0&gopid=836460&#entry836460, it shows that when MP3Gain does it's adjustment, it does actually store ReplayGain info in the APE tag, as well as changes the global gain field in each frame header.

We don't even parse APE tags. 
Logged

Offline rangi_chip

  • Member
  • *
  • Posts: 38
Re: Request: Replaygain preamp change
« Reply #6 on: June 08, 2013, 06:11:37 PM »
So where do you read the ReplayGain info from then??
Logged
5.5G 80GB iPod

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Request: Replaygain preamp change
« Reply #7 on: June 08, 2013, 06:16:12 PM »
Quote from: rangi_chip on June 08, 2013, 06:11:37 PM
So where do you read the ReplayGain info from then??

In the case of MP3, we use ID3v2.  Its different for each format though, and some do support APEv2:

http://download.rockbox.org/daily/manual/rockbox-sansaclipv2/rockbox-buildap2.html#x18-341000B
Logged

Offline rangi_chip

  • Member
  • *
  • Posts: 38
Re: Request: Replaygain preamp change
« Reply #8 on: June 12, 2013, 08:35:09 PM »
Thanks for your help.
So if those APE fields appeared in the ID3 tag with the same field names, then Rockbox would use this as the ReplayGain for that MP3, regardless of whether or not it has been gained by MP3Gain?
Logged
5.5G 80GB iPod

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Request: Replaygain preamp change
« Reply #9 on: June 12, 2013, 09:23:32 PM »
Quote from: rangi_chip on June 12, 2013, 08:35:09 PM
Thanks for your help.
So if those APE fields appeared in the ID3 tag with the same field names, then Rockbox would use this as the ReplayGain for that MP3, regardless of whether or not it has been gained by MP3Gain?

APE anything on MP3 is always ignored.  Replaygain tags in ID3v2 are used if you've enabled replaygain.  Simple as that. 
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Request: Replaygain preamp change
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.066 seconds with 15 queries.