I'm running into some strange issue with ReplayGain metadata from FLACs influencing the playback gain in an Opus encoding of said FLAC file using opusenc. I'm trying to wrap my head around why reading this thread and a few others and how I could work around this since all software (audio players and even DAWs) respect the playback gain, as they should, and end up having (heavily compressed?) very loud tracks.
For example, my test file (happens with every song in my library) has some ReplayGain/R128 info in the original FLACs metadata (thanks loudgain )
[dave@cream ~]$ mediainfo ~/test.flacNormal right?
Complete name : /home/dave/test.flac
Album replay gain : -6.75 dB
Album replay gain peak : 1.032246
REPLAYGAIN_ALBUM_RANGE : 7.35 dB
REPLAYGAIN_TRACK_RANGE : 3.86 dB
Sampling rate : 96.0 kHz
Bit depth : 24 bits
Replay gain : -7.08 dB
Replay gain peak : 0.980921
now when encoded using opusenc (opusenc --music --comp 10 test.flac test.opus), the metadata and/or encoded file ends up with
[dave@cream ~]$ opusinfo test.opus
Processing file "test.opus"...
New logical stream (#1, serial: 7f496ba4): type opus
Encoded with libopus 1.3.1, libopusenc 0.2.1
User comments section follows...
ENCODER=opusenc from opus-tools 0.2
ENCODER_OPTIONS=--music --comp 10
Playback gain: 95.25 dB
I ran the same FLAC without the ReplayGain tags, and it was at a normal gain level both audibly and in the metadata. Here is a screenshot in Bitwig Studio which I find baffling since the gain really is that loud.
Is there anyway to run opusenc without the ReplayGain tag copying so I can just add the tags later with loudgain, or some way to just make opusenc apply the tags without adding playback gain?