Amarok/Manual/Various/ReplayGain

From KDE UserBase Wiki
Revision as of 08:19, 14 July 2018 by Claus chr (talk | contribs) (Created page with "Opdater herefter din samling i '''Amarok'''. Hvis den stadig bruger replay gain, så opdatér databaseposten: {{Input|<nowiki>update tracks set albumgain=-1,albumpeakgain=-1,t...")
Other languages:

Replay Gain

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:

  1. If no replay gain information is embedded, Amarok will not adjust the volume
  2. If replay gain information is found, it will be written into Amarok's database

Under afspilningen vil Amarok finde denne information i sin egen database. Ændringer af metadata bliver ikke altid skrevet til databasen under en opdatering af samlingen (fx hvis replay gain slettes fra en fil).

Dette kan føre til uventet opførsel: Numre med den samme kunstner blive afspillet med forskellig lydstyrkeniveauer etc.

Bruges replay gain?

For at finde ud af, om problemer med lysdtyrken skyldes replay gain eller en dårlig indkodning:

  • Deaktiver replay gain (se ovenfor)
  • Start Amarok i debugtilstand og søg efter output relateret til gain:
amarok -d --nofork | grep gain

Hvis replay gain er aktiv for det afspillede nummer, så er outputtet

Using gain of -10.28 with relative peak of -1

Se information om replay gain

For .flac-filer kan du bruge "metaflac" til at se indlejrede data til replay gain:

metaflac --list Millencolin\ -\ Balanced\ Boy.flac

Blandt andre ting vil dette vise noget i retning af:

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

For at se denne information om nummeret i Amaroks database:

select id, title, albumgain, albumpeakgain, trackgain, trackpeakgain from tracks where title like "Balanced%";

viser

+-------+------------------+-----------+---------------+-----------+---------------+
| id    | title            | albumgain | albumpeakgain | trackgain | trackpeakgain |
+-------+------------------+-----------+---------------+-----------+---------------+
| 10459 | Balanced Boy     |      0.53 |      -5.60297 |      0.44 |      -5.60297 |

Bemærk forskellen i loudness-niveauer

Slet replay gain-information

Slet først matadata fra filen:

metaflac --remove-replay-gain Millencolin\ -\ Balanced\ Boy.flac

Opdater herefter din samling i Amarok. Hvis den stadig bruger replay gain, så opdatér databaseposten:

update tracks set albumgain=-1,albumpeakgain=-1,trackgain=-1,trackpeakgain=-1 where id=10459

Restart Amarok and the log output should now show the updated values being used.

Feel free to try and mess with the values manually to improve volume levels.