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
190 stars 23 forks source link

Opus: please support setting the header's output gain #16

Open ftrebien opened 4 years ago

ftrebien commented 4 years ago

Opus developers used to recommend setting the header output gain to album gain, opusenc sets it to the value of REPLAYGAIN_ALBUM_GAIN when converting from FLAC, foobar2000 can set it to album gain, track gain, or null, and defaults to album gain.

Therefore, I would like to kindly request an option to set the header output gain like foobar2000 does, or at least support setting it to album gain because it is usually a better normalization mode.

Moonbase59 commented 4 years ago

You’re right, and I’d much like to be able to write the header, but TagLib (which loudgain relies on) doesn’t support that (yet).

You might want to support https://github.com/taglib/taglib/issues/916 – thanks!

ftrebien commented 4 years ago

I actually saw your issue there and noticed there was no reply from TagLib developers yet. I suspect that TagLib may not be interested in adding such support because, well, pedantic details: headers are not tags. r128gain has solved this problem (though it's still considered an "experimental" feature) by writing to the header directly instead of delegating that task to its tagging library (Mutagen).