Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Replay gain
#12
(04-04-2024, 12:01 AM)DRONE7 Wrote: Yes, having looked further into MPD replay gain currently the only info from tag/mpc is the mode and not the values.

Possibly this will be implemented in the future by mpd maintainer and then it may be possible to include it as extra metadata option below the now playing artwork.

Kent, the linux 'rsgain' is available and can non-destructively tag any music folder you point it to.
It is also a plugin for Musicbrainz Picard but not active as default.

https://github.com/complexlogic/rsgain

Yes, mediainfo does report the tag value.

Yeah, I downloaded rsgain earlier today to my Linux laptop, created a test album of pink noise tracks in .aiff, .mp3, .flac, .ogg, and .wav format and ran rsgain on it. (I was too lazy to create tracks in yet more formats.) ETA: I also did an .m4a track.

I can see by other means that the tags were recreated with names REPLAYGAIN_TRACK_GAIN, etc., as is recognized, e.g., by MusicBrainz.

As a specific example, for the .flac file, metaflac reports, in part,


Code:
   comment[3]: REPLAYGAIN_ALBUM_GAIN=-2.63 dB
   comment[4]: REPLAYGAIN_ALBUM_PEAK=0.885590
   comment[5]: REPLAYGAIN_TRACK_GAIN=-2.74 dB
   comment[6]: REPLAYGAIN_TRACK_PEAK=0.870758

I was rather distressed but not surprised to see that mediainfo does an imperfect job of reporting the metadata. For the same .flac file, mediainfo reports, in part,

Code:
Album replay gain                        : -2.63 dB
Album replay gain peak                   : 0.885590

Specifically, it reports only two of the four tags and prettifies their names creating an issue if one were to want to parse its output in a script.

I see the same behavior with mediainfo reporting the .ogg file.

ETA:  OTOH, mediainfo faithfully reports these tags' names on .mp3, .aiff, and .wav files.

As an aside, I've seen other tags arbitrarily renamed by mediainfo in the past. I consider it an unreliable observer.

Regards,
Kent
Reply


Messages In This Thread
Replay gain - by DRONE7 - 04-02-2024, 12:29 AM
RE: Replay gain - by Tim Curtis - 04-02-2024, 10:36 AM
RE: Replay gain - by DRONE7 - 04-02-2024, 07:13 PM
RE: Replay gain - by Tim Curtis - 04-02-2024, 08:21 PM
RE: Replay gain - by DRONE7 - 04-02-2024, 08:59 PM
RE: Replay gain - by Tim Curtis - 04-02-2024, 10:32 PM
RE: Replay gain - by DRONE7 - 04-03-2024, 06:00 AM
RE: Replay gain - by Tim Curtis - 04-03-2024, 11:44 AM
RE: Replay gain - by TheOldPresbyope - 04-03-2024, 02:11 PM
RE: Replay gain - by Tim Curtis - 04-03-2024, 07:47 PM
RE: Replay gain - by DRONE7 - 04-04-2024, 12:01 AM
RE: Replay gain - by TheOldPresbyope - 04-04-2024, 12:43 AM
RE: Replay gain - by DRONE7 - 04-05-2024, 07:17 AM
RE: Replay gain - by Tim Curtis - 04-05-2024, 10:52 AM

Forum Jump: