View Single Post
Old 01-03-2011, 07:48 PM   #134
swallman
Enthusiast
swallman began at the beginning.
 
Posts: 27
Karma: 14
Join Date: Nov 2010
Device: Nook Color
WaveGain

Krypto,

I did some looking myself for a way to increase the gain and came across this. You need to download the FFMPEG libraries and also Wavegain, but then you can run a script something like this.

Basically the first step pulls out the video stream from the MP4 file. The second step pulls out the audio file into WAV format. Then run it through Wavegain (there are more options available). Finally put all the files back together.

I've only tried it once so far and it only added about 5db with the default Wavegain settings so I need to play with it some more.

ffmpeg -i myfile.mp4 -an -vcodec copy -y video1.mp4
ffmpeg -i myfile.mp4 -vn -y audio1.wav
wavegain -r -n -y audio1.wav
ffmpeg -i video1.mp4 -i audio1.wav -vcodec copy -acodec aac -ab 128 -y ouput.mp4
swallman is offline   Reply With Quote