Amarok/Manual/Various/ReplayGain/fr: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 3: | Line 3: | ||
=== Gain en relecture === | === Gain en relecture === | ||
[https://en.wikipedia.org/wiki/ReplayGain Replay gain] will automatically adjust the volume of the currently played song, relative to other songs, as determined by the person who encoded the audio file. To enable replay gain, see [[Special:myLanguage/Amarok/Manual/References/MenuAndCommandReference/Settings#Settings_Menu|Settings menu]]. | |||
To handle this, '''Amarok''' relies on metadata embedded in the audio file: | |||
# If no replay gain information is embedded, '''Amarok''' will not adjust the volume | # If no replay gain information is embedded, '''Amarok''' will not adjust the volume | ||
# If replay gain information is found, it will be written into '''Amarok'''' | # If replay gain information is found, it will be written into '''Amarok's''' database | ||
During playback, '''Amarok''' will only look into its own database for this information. Updates to the metadata of the file will not always get written into the database during a collection update (e.g. replay gain is deleted from file). | During playback, '''Amarok''' will only look into its own database for this information. Updates to the metadata of the file will not always get written into the database during a collection update (e.g. replay gain is deleted from file). | ||
Line 23: | Line 20: | ||
* Désactiver le traitement du gain en replay (voir ci-dessus) | * Désactiver le traitement du gain en replay (voir ci-dessus) | ||
* | * Start '''Amarok''' in debug mode and search for gain- related output: | ||
{{Input | {{Input|<nowiki>amarok -d --nofork | grep gain</nowiki>}} | ||
If replay gain is active for the played song, the output will be | |||
{{Output|<nowiki>Using gain of -10.28 with relative peak of -1</nowiki>}} | |||
==== Afficher les informations de gain en relecture ==== | ==== Afficher les informations de gain en relecture ==== | ||
For .flac files, "metaflac" can be used to view embedded replay gain data: | |||
{{Input | {{Input|<nowiki>metaflac --list Millencolin\ -\ Balanced\ Boy.flac</nowiki>}} | ||
Among other things, this will show something like this: | |||
{{Output|<nowiki>METADATA block #2 | |||
type: 4 (VORBIS_COMMENT) | |||
is last: false | |||
length: 390 | |||
vendor string: reference libFLAC 1.2.1 20070917 | |||
comments: 14 | |||
comment[9]: REPLAYGAIN_REFERENCE_LOUDNESS=89.0 dB | |||
comment[10]: REPLAYGAIN_TRACK_GAIN=-1.55 dB | |||
comment[11]: REPLAYGAIN_TRACK_PEAK=0.75894165 | |||
comment[12]: REPLAYGAIN_ALBUM_GAIN=-4.19 dB | |||
comment[13]: REPLAYGAIN_ALBUM_PEAK=0.98712158 | |||
</nowiki>}} | |||
Pour visualiser ces informations de piste dans la base de données de '''Amarok''' : | Pour visualiser ces informations de piste dans la base de données de '''Amarok''' : | ||
{{Input/fr|<nowiki>select id, title, albumgain, albumpeakgain, trackgain, trackpeakgain from tracks where title like "Balanced%";</nowiki>}} | {{Input/fr|<nowiki>select id, title, albumgain, albumpeakgain, trackgain, trackpeakgain from tracks where title like "Balanced%";</nowiki>}} | ||
Will show: | |||
{{Output|<nowiki> | |||
+-------+------------------+-----------+---------------+-----------+---------------+ | |||
| id | title | albumgain | albumpeakgain | trackgain | trackpeakgain | | |||
+-------+------------------+-----------+---------------+-----------+---------------+ | |||
| 10459 | Balanced Boy | 0.53 | -5.60297 | 0.44 | -5.60297 | | |||
</nowiki>}} | |||
Notez la différence des niveaux de loudness | Notez la différence des niveaux de loudness |
Revision as of 08:10, 14 July 2018
Gain en relecture
Replay gain will automatically adjust the volume of the currently played song, relative to other songs, as determined by the person who encoded the audio file. To enable replay gain, see Settings menu.
To handle this, Amarok relies on metadata embedded in the audio file:
- If no replay gain information is embedded, Amarok will not adjust the volume
- If replay gain information is found, it will be written into Amarok's database
During playback, Amarok will only look into its own database for this information. Updates to the metadata of the file will not always get written into the database during a collection update (e.g. replay gain is deleted from file).
Ceci peut conduire à des situations inattendues : chansons d'un même artiste jouées à des niveaux différents de volume, etc ...
Est-ce que le gain en relecture est utilisé ?
Pour savoir si le problème du volume est causé par le gain en replay ou par un mauvais encodage :
- Désactiver le traitement du gain en replay (voir ci-dessus)
- Start Amarok in debug mode and search for gain- related output:
amarok -d --nofork | grep gain
If replay gain is active for the played song, the output will be
Using gain of -10.28 with relative peak of -1
Afficher les informations de gain en relecture
For .flac files, "metaflac" can be used to view embedded replay gain data:
metaflac --list Millencolin\ -\ Balanced\ Boy.flac
Among other things, this will show something like this:
METADATA block #2 type: 4 (VORBIS_COMMENT) is last: false length: 390 vendor string: reference libFLAC 1.2.1 20070917 comments: 14 comment[9]: REPLAYGAIN_REFERENCE_LOUDNESS=89.0 dB comment[10]: REPLAYGAIN_TRACK_GAIN=-1.55 dB comment[11]: REPLAYGAIN_TRACK_PEAK=0.75894165 comment[12]: REPLAYGAIN_ALBUM_GAIN=-4.19 dB comment[13]: REPLAYGAIN_ALBUM_PEAK=0.98712158
Pour visualiser ces informations de piste dans la base de données de Amarok :
select id, title, albumgain, albumpeakgain, trackgain, trackpeakgain from tracks where title like "Balanced%";
Will show:
+-------+------------------+-----------+---------------+-----------+---------------+ | id | title | albumgain | albumpeakgain | trackgain | trackpeakgain | +-------+------------------+-----------+---------------+-----------+---------------+ | 10459 | Balanced Boy | 0.53 | -5.60297 | 0.44 | -5.60297 |
Notez la différence des niveaux de loudness
Supprimer les informations de gain en replay
Supprimer d'abord, les métadata du fichier :
metaflac --remove-replay-gain Millencolin\ -\ Balanced\ Boy.flac
Après ça, rafraîchissez votre collection Amarok . Si le gain de replay est encore utilisé, modifiez l'entrée dans la base de données :
update tracks set albumgain=-1,albumpeakgain=-1,trackgain=-1,trackpeakgain=-1 where id=10459
Redémarrez Amarok et la trace dans le journal devrait maintenant afficher la valeur modifiée utilisée.
N'hésitez pas à essayer et à mélanger les valeurs manuelles pour améliorer les niveaux de volume.