From 1c9b932dba9dd687e2d3af24d7ba8edd96b34032 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 24 Oct 2024 11:26:01 +0200 Subject: [PATCH] Store the ReplayGain tag values as strings This is how it's stored in Vorbis [1][2] and how mkvmerge passes the value from one to the other [3]. There doesn't seem to be any player reading in from Matroska. [1] https://code.videolan.org/videolan/vlc/-/blob/f1a90394435471e75fee6f13383079a3d0272ec4/modules/demux/xiph_metadata.c#L472 [2] https://github.com/FFmpeg/FFmpeg/blob/153a6dc8faafc4de263a493484ffc1dc2b5b26b2/libavformat/replaygain.c [3] https://gitlab.com/mbunkus/mkvtoolnix/-/blob/7a32d31e7029b1ca4f323eb0f7fb975ec979b089/src/common/tags/vorbis.cpp#L78 --- matroska_tags.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/matroska_tags.xml b/matroska_tags.xml index 50cdbacc9..4b44e9aaf 100644 --- a/matroska_tags.xml +++ b/matroska_tags.xml @@ -308,12 +308,15 @@ The majority of the contemporary rock and pop music you hear on the radio these It is saved as a frequency in hertz to allow near-perfect tuning of instruments to the same tone as the musical piece (e.g., "441.34" in Hertz). The default value is 440.0 Hz. - + The gain to apply to reach 89dB SPL on playback. This is based on the [@!ReplayGain] standard. -Note that ReplayGain information can be found at all TargetType levels (track, album, etc). + The value in decibels (dB) is stored as a string (e.g., "-0.42 dB"). The decibel unit is **OPTIONAL**. + Note that ReplayGain information can be found at all TargetType levels (track, album, etc). - - The maximum absolute peak value of the item. This is based on the [@!ReplayGain] standard. + + The maximum absolute peak amplitude of the item. This is based on the [@!ReplayGain] standard. + The value is a normalized absolute sample value of the target audio stored as a string without spaces (e.g., "1.0129"). + Note that ReplayGain information can be found at all TargetType levels (track, album, etc). The International Standard Recording Code [@!ISRC],