It would be lot easier for softwares those uses ffmpeg libraries.
Following is the code originally posted by bat999 somewhere in this forum.
An Idea that might work for lots of your favourite video converters,
ffmpeg -i foo.vid (no video) (only audio) -f wav - | sox normalize wav - | neroAacEnc -ignorelength -q 0.5 -if - -of foo2.m4a
If you are not familiar with sox, you can simply use qaac encoder instead of sox and neeroAAc.
Baldrick might help you with ffmpeg batch commands or he may put up a small guide in guide section with a working and tested command-lines,onffmpeg -i foo.vid (no video) (only audio) -f wav - | qaac -c 160 -q 100 --normalize -o "normalized.aac" -.
ffmpeg -i foo.vid (no video) (only audio) -f wav - | qaac -c 160 -q 100 --normalize -o "normalized.aac" -
Alternatively one can write a shell script or a bactch file which can take care of De-Muxing, Audio encoding and Re-Muxing. If you do so, please post a working guide here, otherwise we will leave that part to Baldrick.Originally Posted by Selure
here's an example for ffmpeg->sox->neroAacEnc
here's an example for ffmeg->sox->qaacfmpeg -y -threads 8 -v -10 -i "path to input" -f sox - | sox --multi-threaded --ignore-length --buffer 524288 -S -t sox - -t wav - gain -n | neroAacEnc -q 0.7 -ignorelength -if - -of "path to output file"
for qaac I use raw as piping format since it's best supported by qaacffmpeg -y -threads 8 -v -10 -i "path to input" -f sox - | sox --multi-threaded --ignore-length --buffer 524288 -S -t sox - -b 16 -t raw - gain -n | qaac --no-delay --threading --raw-channels 2 --raw-rate 48000 --tvbr 75 --raw - -o "path to output file"
also http://forum.videohelp.com/threads/352067-normalizing-audio-volume-using-new-ffmpeg-options might be interesting to read.
and if your playback device supports gain flags, you could simply use MP3Gain (which also supports aac audio).
At this moment of writing, I have very fainted memories that ffmpeg has volume option but not normalize.
Remember that noisy audio is not worth to normalize. Normalize Audio should be a separate option by default it should be off.
+ Reply to Thread
Results 1 to 3 of 3
Thread: Normalizing Multiple Audio
Last edited by enim; 16th Oct 2013 at 17:45.
Norm-2-AAC (AAC 320kbps CBR @ 48000KHz - 2ch Stereo Normalizer)
(For Newbies who are facing difficulties with command-line tools)
CRC32 : 607e7b4a
MD5 : b31ddc41cefe7b41534d8470eab22ca1
SHA-1 : 8846fdc2612b21c1536ed460ab41c2faba8f5102
Norm-2-AAC is a blind and simple win32 tool, a dumb tool for a dummy, yet a powerful batcher that normalize audio stream from any valid video and audio files which can be handled successfully by ffmpeg.
You need to place ffmpeg static w32bit and qaac w32bit builds in to same folder as Norm-2-AAC.
(1) Unzip Norm-2-AAC anywhere you like it. (./any directory /any path/Norm-2-AAC)
Click On norm-2-AAC.exe, press enter anywhere inside windows once directories are created.
On very first run it will generate three directories - INPUT, OUTPUT And TEMP ins a same folder.
INPUT is th folder you will pace all video & audio files to be normalize to AAC.
OUTPUT is the folder where normalized original-filename.vid.aac will be created.
TEMP is temporary folder, without hogging memories and no more messing any registry.
(2) Place all valid video and audio files into INPUT folder to normalize to AAC.
(3) Click On norm-2-AAC.exe and wait.
You can delete TEMP folder after completion of batch.
This 1click tool I created less than 10 minutes for one my best (dumb) friend who always have headphones plugged for 24/7, who invited me for beers & dinner. He already tested and confirmed it is working as he needs/wants. I have posted here a sample here normalized on my friend's PC. Cheers!
Hope, you will also like it.
You can use it as much as you can -OR- you can distribute as freeware coz it's all yours.
To be Sure, Just scan it with your favorite Anti-Virus Scanner before you use.
BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
HENCE NO CLAIM CAN BE MADE.
LUV U as always!
Last edited by enim; 24th Oct 2013 at 20:08.
Norm-2-AAC.exe (Final Release) CHECKSUMS
CRC32 : 0a2eb9e1
MD5 : fb0e27ee022f11a1873c02e59f802da0
SHA-1 : 158b7ac6861471f182a08e91e3007e5822d26c11
If you have downloaded and used first release,
(1) Download this latest release.
(2) Rename Norm-2-AAC.exe to Norm-2-AAC.exe.OLD (So that you can have both. You have flexibility.)
(3) Unzip Norm-2-AAC.exe (CRC32 : 0a2eb9e1) in same folder "./Norm-2-AAC"
You need to place ffmpeg.1.x static w32bit x86 and qaac.2.2x w32bit x86 builds in to same folder as Norm-2-AAC.
The size of code gets multiplied in x1000s when implementing without ffmpeg and qaac. So I will Keep It Simple and Sweet for you, with ffmpeg and qaac.
Norm-2-AAC.exe._OLD (First Release) was a blind and simple win32 tool, a dumb tool for a dummy, yet a powerful batcher that normalize audio stream from any valid video and audio files which can be handled successfully by ffmpeg.
Where as Norm-2-AAC.exe (Final Release) is neither dumb nor blind, but, little bit smart version with ErrorLog.txt creation. Where as ErrorLog.txt is a plain list of files which are failed to normalize.
It is more complete, optimized, robust and user friendly.
It will definitely serve you as described.
CHANGE LOG from Norm-2-AAC.exe._OLD to Norm-2-AAC.exe
Nothing is removed, Just added an extra feature of ErrorLog.
No extra strings are attached.
(+) Added Error Log creation.
(+) High Optimization and Code Cleaned Up.
The Norm-2-AAC.exe performs exactly as stated.
It does not perform anything which is not stated. Not even silently in background.
Scan it with Anti-Virus Scanner before using.
I do not have to tell you, what to do with normalized aac file(s).
Where as you can take them further to any audio converters, editors, or muxers directly, if your source is HiQ.
We have tested it in all regards, it works perfectly as stated.
On x64 Windows, qaac depends on many other DLLs, please search missing DLLs on internet.
I have tried to give you the BEST whatever I can!
I dedicate this tool to those who really need it, who really deserve it, with lot of LuV.
PS : the first release was after couple of beers within 10 minutes, and this final release is after a nice cup of coffee.
Last edited by enim; 12th Nov 2013 at 14:45.