Monday, February 2, 2009

mencoder to normalize audio in AVI for youtube

Before uploading to youtube

mencoder MVI_4930.AVI -ovc copy -oac mp3lame -af volume=12.1:0 -lameopts cbr:preset=128 -srate 22050 -o MVI_4930_plus_12db.AVI

This will reencode the audio in mvi-4930.avi to mp3 128kpbs/22050 sample rate and add 12db to the original volume

mencoder MVI_4930.AVI -ovc copy -af volnorm=1 -oac mp3lame -lameopts cbr:preset=128 -srate 22050 -o MVI_4930_normalize.AVI

This will reencode the audio and normalize the volume in mp3 format, constant 128kbps / 22050 sample rate.

No comments: