Clementine: Add support for ReplayGain normalization

Created on 6 Dec 2013  路  24Comments  路  Source: clementine-player/Clementine

_From okeeblow on February 25, 2010 22:32:08_

A native implementation for reading ReplayGain tags is preferable to an
Amarok 1.4-style script because it eliminates the lag between a track
playing and the volume adjusting.

_Original issue: http://code.google.com/p/clementine-player/issues/detail?id=28_

Component-Sound Priority-Medium enhancement imported

Most helpful comment

@Chocobozzz as I understand _reading_ ReplayGain metadata is implemented. What about _calculating_ them? I have something in mind like having a smart view that shows all non-ReplayGained files -> select all -> right click -> (Re)calculate ReplayGain.

All 24 comments

_From john.maguire on February 26, 2010 16:28:56_

Labels: -Type-Defect Type-Enhancement Milestone-1.0 Component-Sound

_From 2sabio on May 15, 2010 14:46:58_

Since GStreamer is used now might it be possible to 'borrow' some Rhythmbox (for
example) code and have this feature before 1.0?

There exists a GStreamer plugin for that already: http://www.gstreamer.net/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst- plugins-good-plugins-plugin-replaygain.html

Not sure though how easy it is to integrate it into playback 'pipeline'...

_From davidsansome on May 15, 2010 15:17:09_

Excellent, these look really easy to use!

Status: Accepted
Labels: -Milestone-1.0 Milestone-0.4

_From davidsansome on May 23, 2010 06:08:33_

I've added support for reading Replay Gain tags. It's disabled by default but you can
turn it on in the options dialog.
There's no support for writing the tags yet, so you still have to use external tools
like mp3gain.

_From davidsansome on June 18, 2010 08:45:17_

Let's do the rest after 0.4

Labels: -Milestone-0.4

_From sebaminguez on April 13, 2011 13:41:28_

A simple script to Normalice your collection:

!/bin/bash

echo "Use $0

function norm() {
for a in * ; do
if [ -d "$a" ]; then
cd "$a"
#clear
echo " "
echo "cambiando a $a"
norm
cd ..
else
echo -n '.'
## To erase tags uncoment this
#mp3gain -s d "$a" || vorbisgain -c "$a"

        ## Set levels
        mp3gain -k -r "$a" 2> /dev/null > /dev/null || vorbisgain -f "$a" 2> /dev/null > /dev/null || echo "$a Format unknow"
    fi
done

}

cd "$1"
norm
echo " "

_From tkeswick on May 29, 2011 15:02:33_

Does this enhancement request encompass adding support for writing ReplayGain tags to files? It would be a fantastic feature.

_From grjordan on May 29, 2011 15:42:03_

@tkesw...
yes, I do believe that is the general idea. That there should be support for Clementine to write and read replayGain to the music files. Currently, this is not the case. Clementine currently can read the tags, but not write them.

_From nutellajunkie on August 20, 2011 16:26:02_

And besides, allot of our tracks, input and streams do not have this tag anyway.

Gain of some-sort would be a win-win situation to be honest.

_From pg0803 on August 31, 2011 01:21:17_

An idea for potential replaygain scanning/writing:

At the moment, libebur128 uses the best implementation of a replaygain scanner, also foobar2000 has changed its own scanner to this open source library. Is there any possibility to use it in clementine?

More information: http://www.hydrogenaudio.org/forums/index.php?showtopic=86116 http://www-public.tu-bs.de:8080/~y0035293/libebur128.html

_From nutellajunkie on August 31, 2011 04:50:00_

Thats a very good point the above person makes! Any decent open source code implemented into clem will get extra points :) it just means the authors of libebur128 will know its potential and keep updating.

_From john.maguire on November 08, 2011 06:33:40_

Issue 2386 has been merged into this issue.

_From davidsansome on November 09, 2011 02:16:22_

Issue 2391 has been merged into this issue.

_From hsantanna on December 14, 2011 12:34:30_

By now im using QtGain: http://qt-apps.org/content/show.php/QtGain?content=56842

_From alphadeltapapa on January 28, 2012 14:19:30_

Does Clementine use ID3v2 or APEv2 tags for ReplayGain? mp3gain uses APEv2 by default.

_From christian.perreault.2 on March 03, 2012 12:41:26_

ReplayGain scanning (like Winamp does natively) is very useful. Personnally, I am waiting for Clementine to implement it to adopt it as my default music player! Should you implement it, please add two columns in the playlist metadata : track gain and album gain.

_From cclonch on September 14, 2012 08:03:19_

I'm assuming in Clementine v1.0.1, the ReplayGain feature in Tools > Preferences > Playback is merely a placeholder then? Toggling it while listening to music doesn't seem to make a difference. And with it enabled, tracks with significant volume differences are still significantly different..

_From [email protected] on September 14, 2012 20:02:02_

ReplayGain does work fine for me, as long as the files actually have ReplayGain metadata. Clementine cannot add that metadata by itself, though.

_From grjordan on October 30, 2012 21:01:14_

It needs to add the meta-data. Currently I have to use foobar to tag the files with replaygain so that I can use them in Clementine and my mp3 player.

_From mdosch.MD on January 25, 2013 07:16:55_

Exist there any plains to make column to display the replaygain data in the playlist?

What about this quick temporary solution until a better one is found:

Add a menu "Tools --> ReplayGain --> |some existing GUI apps that can do the gaining|"

For example QtGain (http://qt-apps.org/content/show.php?action=content&content=56842) which seems to work quite fine. I tested it with mp3 and ogg.

I close this since the read of the ReplayGain metadata was implemented.

@Chocobozzz as I understand _reading_ ReplayGain metadata is implemented. What about _calculating_ them? I have something in mind like having a smart view that shows all non-ReplayGained files -> select all -> right click -> (Re)calculate ReplayGain.

I think a new issue for writing replay gain tags would be more readable :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

technicaltitch picture technicaltitch  路  5Comments

xuanruiqi picture xuanruiqi  路  5Comments

Clementine-Issue-Importer picture Clementine-Issue-Importer  路  6Comments

MavropaliasG picture MavropaliasG  路  3Comments

AndydeCleyre picture AndydeCleyre  路  6Comments