MinimServer Forum
FFMPEG Normalize audio - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: FFMPEG Normalize audio (/showthread.php?tid=6217)



FFMPEG Normalize audio - lafuente - 16-05-2021 09:59

Hello,

I wonder if it is possible to normalize volume level using FFMPEG on the fly ?

I found this :
https://bytesandbones.wordpress.com/2017/03/16/audio-nomalization-with-ffmpeg-using-loudnorm-ebur128-filter/

Sound like it can be used as a base work, but it write a new file. Since Minim with minimstreamer look like to do the same, how can one achieve le volume normalisation without resample all is files ? if possible...

With MinimServer 2 it will be easy to create a dedicated profile if it's possible.

Thank you,
Manu


RE: FFMPEG Normalize audio - simbun - 17-05-2021 11:48

(16-05-2021 09:59)lafuente Wrote:  I wonder if it is possible to normalize volume level using FFMPEG on the fly ?

If you have replay gain tags in your files then you can achieve this using information in this thread.


RE: FFMPEG Normalize audio - lafuente - 18-05-2021 15:21

Thank you, I'll give a try to this. Is this string OK :

convOut=-af aresample=resampler=soxr:precision=33:cheby=1:dither_method=triangular -af volume=replaygain=track


RE: FFMPEG Normalize audio - simoncn - 20-05-2021 11:18

You need to combine the filters into a single -af option, like this:

convOut=-af "aresample=resampler=soxr:precision=33:cheby=1:dither_method=triangular,volume=re​playgain=track"


RE: FFMPEG Normalize audio - lafuente - 23-05-2021 12:41

Thank you Simon