@ JosephS
Visit this link
http://superuser.com/questions/32311...o-using-ffmpeg
And scroll down to
Using ffmpeg to normalize audio
It will show you how to get the audio level first before applying the gain to it. E.g
Code:
ffmpeg -i video.avi -af "volumedetect" -f null /dev/null
[Parsed_volumedetect_0 @ 0x7f8ba1c121a0] mean_volume: -16.0 dB
[Parsed_volumedetect_0 @ 0x7f8ba1c121a0]
max_volume: -5.0 dB
[Parsed_volumedetect_0 @ 0x7f8ba1c121a0] histogram_0db: 87861
As you can see, our maximum volume is -5.0 dB, so we can apply 5 dB gain. If you get a value of 0 dB, then you don't need to normalize the audio.
Next, apply the volume filter to increase the audio. Read the rest at
http://superuser.com/questions/32311...o-using-ffmpeg
They will provide three situations to applying the volume filter depending on the media type, i.e wav, avi and mp4.
PS: If you know shell scripting, you can use or modify the script on the site to suit your needs. I would suggest trying this out on a few test files first and see if it gives the results you want.