Moonbase59 / loudgain

ReplayGain 2.0 loudness normalizer based on the EBU R128/ITU BS.1770 standard (-18 LUFS, FLAC, Ogg, MP2, MP3, MP4, M4A, AAC, ALAC, Opus, ASF, WMA, WAV, AIFF, WavPack, APE)
Other
182 stars 23 forks source link

loudgain needs 2 passes to write all tags #25

Closed texneus closed 4 years ago

texneus commented 4 years ago

I am running loudgain with the following parameters on an entire album:

loudgain -a -k -d -2 -s e -O -q *.flac > replaygain.csv

My workflow is to nuke all existing tags and retag with BEET, so there are no pre-existing replaygain tags present by the time loudgain gets control. However, only the following "extra" tags are written to the file.

replaygain_album_range
replaygain_reference_loudness
replaygain_track_range

I am having to run loudgain a second time to actually write the standard track/album gain tags. The only difference on the second pass is I omit saving the analysis file since it was done on the first pass:

loudgain -a -k -d -2 -s e *.flac

Now all the expected tags are present in the files:

replaygain_album_gain
replaygain_album_peak
replaygain_album_range
replaygain_reference_loudness
replaygain_track_gain
replaygain_track_peak
replaygain_track_range
texneus commented 4 years ago

Disregard. Problem turned out to be that you cannot run BEETS after running loudgain. BEETS apparently "eats" any tags it thinks shouldn't be there. Loudgain is working just fine.