Well, here's the batch file I used to process the audio of the movie Robocop a week or two ago. I changed the MP3 encoding part to suit your needs.
To execute this batch, you will need, in the same folder as your AC3 file:
1) AZID (included with BeSweet, I think... ?). I renamed the executable AZID.EXE for my own reasons a while ago.
2)
WaveGain. WAVEGAIN.EXE in my batch.
3)
Naoki Shibata's SSRC "fast and high quality sampling rate converter. SSRC.EXE in my batch.
4) Lame 3.90.3, available
right here. Named LAME3903.EXE by me.
5) The batch file below (copy and paste into a text editor such as Notepad and save with a filename such as AUDIO.BAT in the same folder as the executables and your AC3 file).
CODE
@echo off
AZID -s stereo -F wav -c normal RC1.AC3 RC1_1.WAV
WAVEGAIN -g 12 -d 4 RC1_1.WAV
SSRC --rate 44100 --att 1.5 --dither 2 RC1_1.WAV RC1_2.WAV
del RC1_1.wav
LAME3903 --alt-preset 192 RC1_2.WAV RC1.MP3
del RC1_2.wav
I recommend using MP3Gain after encoding to MP3 to see if you can raise the volume by another 1.5 or 3dB without clipping.