Moonbase59/loudgain

Opus: please support setting the header's output gain

ftrebien opened this issue · 2 comments

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.

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 taglib/taglib#916 – thanks!

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).