TOOL » FFMPEG
ReplayGain
Metadata only
A general tool that can be used with any audio format is rsgain.
For specific audio formats (reference):
- vorbisgain:
vorbisgain -a *.ogg - metaflac:
metaflac --add-replay-gain *.flac - mp3gain:
mp3gain -a *.mp3
Changing audio
Using this superuser answer as reference, some useful audio filters are:
loudnormdynaudnormspeechnorm
If all you want is to detect the current volume:
shell
ffmpeg -i video.avi -af "volumedetect" -vn -sn -dn -f null /dev/nullThen based on the mean_volume and max_volume, apply the volume audio filter.