Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--tagmode=e writes reference loudness as LUFS instead of dB #46

Open
okuuva opened this issue Aug 17, 2021 · 0 comments
Open

--tagmode=e writes reference loudness as LUFS instead of dB #46

okuuva opened this issue Aug 17, 2021 · 0 comments

Comments

@okuuva
Copy link

okuuva commented Aug 17, 2021

AFAICS there's no way to write reference loudness tag as dB. IMO --help output implies that --tagmode=e should write it as dB (and it would be consistent with other written tags):

-s i, --tagmode=i       Write ReplayGain 2.0 tags to files. 
-s e, --tagmode=e       like '-s i', plus extra tags (reference, ranges).
-s l, --tagmode=l       like '-s e', but LU units instead of dB.

loudgain output:

❯ loudgain --album --tagmode=e 01_-_Hiekka.mp3
[✔] Scanning '01_-_Hiekka.mp3' ...
[✔] Container: MP2/3 (MPEG audio layer 2/3) [mp3]
[✔] Stream #0: MP3 (MPEG audio layer 3), 44100 Hz, 2 ch, stereo
 100% [=========================================================================]

Track: 01_-_Hiekka.mp3
 Loudness:    -6.95 LUFS
 Range:        4.63 dB
 Peak:     1.116540 (0.96 dBTP)
 Gain:       -11.05 dB

Album:
 Loudness:    -6.95 LUFS
 Range:        4.63 dB
 Peak:     1.116540 (0.96 dBTP)
 Gain:       -11.05 dB

eyeD3 ouput:

❯ eyeD3 01_-_Hiekka.mp3
./01_-_Hiekka.mp3                                                                                                                                                                                     [ 10.14 MB ]
-------------------------------------------------------------------------------------------------------------
Time: 04:21     MPEG1, Layer III        [ 320 kb/s @ 44100 Hz - Joint stereo ]
-------------------------------------------------------------------------------------------------------------
ID3 v2.4:
title: Hiekka
artist: Apulanta
album: Hiekka
recording date: 2002
track: 1/10
UserTextFrame: [Description: REPLAYGAIN_TRACK_GAIN]
-11.05 dB
UserTextFrame: [Description: REPLAYGAIN_TRACK_PEAK]
1.116540
UserTextFrame: [Description: REPLAYGAIN_ALBUM_GAIN]
-11.05 dB
UserTextFrame: [Description: REPLAYGAIN_ALBUM_PEAK]
1.116540
UserTextFrame: [Description: REPLAYGAIN_REFERENCE_LOUDNESS]
-18.00 LUFS
UserTextFrame: [Description: REPLAYGAIN_TRACK_RANGE]
4.63 dB
UserTextFrame: [Description: REPLAYGAIN_ALBUM_RANGE]
4.63 dB
FRONT_COVER Image: [Size: 193422 bytes] [Type: image/jpeg]
Description:

Runnin on Debian Testing with loudgain 0.6.8 installed from apt:

❯ apt info loudgain
Package: loudgain
Version: 0.6.8+ds-1+b1
Priority: optional
Section: sound
Source: loudgain (0.6.8+ds-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant