The following script will extract the audio from the file as wav, run normalize-audio on it and then re-encode it as aac and remux.

Save the following script and give it execute permission
<code>
#!/bin/bash
VIDEO_FILE=$1
VIDEO_FILE_FIXED=${VIDEO_FILE%.*}-fixed.${VIDEO_FILE##*.}
avconv -i $VIDEO_FILE -c:a pcm_s16le -vn audio.wav
normalize-audio audio.wav
avconv -i $VIDEO_FILE -i audio.wav -map 0:0 -map 1:0 -c:v copy -c:a libvo_aacenc \
   $VIDEO_FILE_FIXED
</code>

If it's named ''normalize.sh'' then run\\
<code>
normalize.sh mymovie.mp4
</code>
and you'll get a ''mymovie-fixed.mp4''\\
Tweak the volume with the ''-g'' option and ''normalize-audio'' has to be installed from the package of the same name.

I think you can put in a ''-ac 2'' option to change the output from mono to stereo.

From [[http://askubuntu.com/questions/247961/normalizing-video-volume-using-avconv]]
