Here it is: https://gist.github.com/Yamakaky/0f0546ea0aeb4ed220caa82d814b7d68. 
This will create the REPLAYGAIN_TRACK_PEAK and GAIN (-a is not implemented). It 
should support any codec supported by ffmpeg. It must be run one time ahead of 
time.
In liquidsoap, a basic support is to use `amplify(1.0, override = 
"REPLAYGAIN_TRACK_PEAK", source)`. It however doesn't support pre-amp or 
clipping.
BTW, do you know why 
https://wiki.hydrogenaud.io/index.php?title=ReplayGain_specification#Reduced_gain
 uses a factor of 20? I thought 3dB = x2 amp, but with this formula it's more 
around 7dB.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/749#issuecomment-480939007
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to