Bug 430233

Summary: Please consider ReplayGain tags
Product: [Applications] Elisa Reporter: Tobias Leupold <tl>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: CONFIRMED ---    
Severity: wishlist CC: kimiblock, lukas, nate, syiad.al-duri, tl, zyzzyxdonta
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=461300
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tobias Leupold 2020-12-10 20:40:23 UTC
Dear Elisa devs,

it would be really cool if you added support for automatic volume adjustment via ReplayGain tags.

My music collection contains a vast set of music, from 60s Jazz to recent Death Metal. The old ones are mostly quite dynamic and silent, whereas the newer stuff is often compressed beyond unrecognizability – you all know the loudness war problem.

ReplayGain tags (set e. g. via the loudness-scanner tool or similar) allowed to get a quite nice volume for all back in ole Amarok days.

It would be really cool if Elisa considered ReplayGain tags (maybe via a second volume slider, checkable to be able turn if off? Hidable via settings? Or whatever ... ideally with a setting if one should use the album or track gain) that adjusts the volume for the currently playing song according to it's actual loudness if a ReplayGain tag is found.

Would be just another tag to read (supposedly, without having looked at the code yet ;-)

Thanks for your great work :-)
Comment 1 Matthieu Gallien 2020-12-10 21:10:16 UTC
Thanks for your report.

I have started a MR long time ago. I had never enough time to finish it and it looked a bit hackish.

https://invent.kde.org/multimedia/elisa/-/merge_requests/5

It would be cool to get a stable and working support for this.
Comment 2 Tobias Leupold 2020-12-10 23:37:58 UTC
Nice to see that there's work going on about this. I'd really love to see this being included to master :-)
Comment 3 Tobias Leupold 2020-12-31 09:29:12 UTC
I don't know if this is already part of the mentioned PR, but to be sure: Please don't forget about the different tags for ReplayGain and the newer EBU R 128 adjustment values.

The (older) OGG/Vorbis files in my collection have tags like

    REPLAYGAIN_ALBUM_GAIN=-6.40 dB
    REPLAYGAIN_ALBUM_PEAK=1.051236
    REPLAYGAIN_TRACK_GAIN=-5.94 dB
    REPLAYGAIN_TRACK_PEAK=1.039733

Whereas the (newer) Opus files have

    R128_TRACK_GAIN=-3456
    R128_ALBUM_GAIN=-3123

Both should be supported.

This is definitely a feature Elisa needs! Thanks again for working on it :-)
Comment 4 Tobias Leupold 2021-12-21 19:56:28 UTC
Is there any work going on about this? Is there possibly something I could do to help?
Comment 5 Tobias Leupold 2021-12-22 11:35:30 UTC
PS: Meanwhile, we have that small volume slider, so the "only" thing we would have to do is add a small menu (Apply ReplayGain → "No", "Title mode", "Album mode"), parse ReplayGain tags and move the slider before the song begins to play.

I'll have a look at the sources and see if I can help with some code (and not only good advices ;-)
Comment 6 Lukas Kucharczyk 2022-09-11 15:25:07 UTC
Would be really cool!
Comment 7 Jack Hill 2023-11-07 19:31:32 UTC
*** Bug 476680 has been marked as a duplicate of this bug. ***