[FFmpeg-devel] [PATCH] Audio Normalization
David Girault
david.girault
Fri Mar 14 17:48:34 CET 2008
Hi all member,
I just subscribe to the list and I want to submit to you a little patch
I made for ffmpeg.c.
Simple but useful. Perhaps it can be replaced latter by an audio
bitstream filter ( -absf ).
This patch allow user to do audio normalisation in two pass (presence of
stats file was used to check pass number).
At the end of the first pass, the 'normalize.stats' file is created.
If this file exist, the next call, calculation are done to normalize audio.
Example:
# be sure first pass stats file don't exist.
rm normalize.stats
# first pass (in normalize sense), output file can be /dev/null
ffmpeg.exe -i video.avi -vn -acodec pcm_s16le -normalize -f wav test1.wav
# second pass, normalize and encode resulting audio
ffmpeg.exe -i video.avi -vcodec libx264 -acodec libfaac -ab 96
-normalize -f mp4 video_x264_with_normalized_audio.mp4
Regards,
David
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ffmpeg_normalize.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080314/557750e5/attachment.asc>
More information about the ffmpeg-devel
mailing list