Moonbase59/loudgain

loudgain needs 2 passes to write all tags

texneus opened this issue · 1 comments

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

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.