loudgain icon indicating copy to clipboard operation
loudgain copied to clipboard

loudgain refuses to write tags to this MP3 file

Open dbedrenko opened this issue 1 year ago • 1 comments

Actually, I have a few albums for which loudgain successfully calculates the gain, but then it just doesn't write the MP3 tags to the file despite me passing the option -s i.

Here is one such MP3. I run loudgain on it which returns with a successful exit code:

$ loudgain -I 3 -S -L -k -s i '01(51) Allegro (1).mp3'
[✔] Scanning '01(51) Allegro (1).mp3' ...
[✔] Container: WAV / WAVE (Waveform Audio) [wav]
[✔] Stream #0: MP3 (MPEG audio layer 3), 44100 Hz, 2 ch, stereo
 100% [===============================================================================================================================]

Track: 01(51) Allegro (1).mp3
 Loudness:   -17.63 LUFS
 Range:       10.71 dB
 Peak:     0.635784 (-3.93 dBTP)
 Gain:        -0.37 dB

Yet no tags are written and the file's modified time hasn't changed either:

$ ffprobe 01\(51\)\ Allegro\ \(1\).mp3
[...]
Input #0, wav, from '01(51) Allegro (1).mp3':
  Metadata:
    album           : Koncert ¹1, îð. 8
    artist          : Antonio Vivaldi
    genre           : koncert
    title           : 51. Koncert ¹1, îð. 8. Allegro
    track           : 1
    comment         : Orkestr "I Musici", Roberto Michelucci, skripka
    date            : 1963
  Duration: 00:02:57.00, bitrate: 127 kb/s
  Stream #0:0: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, fltp, 128 kb/s

Anyone know what's going on?

dbedrenko avatar Jan 08 '23 11:01 dbedrenko