4

I came across this answer

How can I normalize audio using ffmpeg?

However this involves transcoding the audio stream. I know that programs like

can adjust the volume losslessly, that is to say without transcoding the file. Can FFmpeg do this?

SebMa
  • 1,573
  • 2
  • 19
  • 25
Zombo
  • 1
  • 24
  • 120
  • 163

1 Answers1

5

No, ffmpeg has no support for MP3Gain or AACGain at the moment.

These tools work by setting metadata in the actual bitstreams, and ffmpeg can only copy the bitstreams as-is or convert them (with a bitstream filter). I'm not sure of the software architecture behind it, but I could imagine it'd be hard to implement something like that.

slhck
  • 223,558
  • 70
  • 607
  • 592
  • by looking at ffmpeg filters documentation(https://ffmpeg.org/ffmpeg-filters.html#replaygain) i can see : replaygain_preamp flag . is that might be replaygain normalization with ffmpeg ? – user39294 Jun 30 '15 at 05:48
  • Is this still true? http://trac.ffmpeg.org/ticket/2699#comment:12 – Zombo Feb 23 '18 at 01:35
  • @StevenPenny From what I understand, FFmpeg can only read ReplayGain info and apply it while using the volume filter, but not actually calculate it or write it as a metadata value. – slhck Feb 23 '18 at 08:19