This batch file will process a directory of .AVI files, leveling the audio volumes, and creating new AVIs. The source AVI files are not changed in any way, so if you aren't happy with the results - no harm done. Note: It won't work with every file - older DivX 3 and h264 files with almost certainly fail.
Also: v05 and later now works with AVI files which contain spaces in their name (props to pcspeak for the inspiration)
Updated the Process and Included 3 Scripts from Which You Can Choose -
Avi_Gain_Lossless.bat --- Runs Mp3gain on demuxed mp3 file, then muxes back into AVI. No recompression done on the original audio source. This one is good for mostly musical performances, as it maintains the dynamics of the original. To use this batch file, the audio track in your AVI must be MP3 to begin with.
Avi_Gain_Regular.bat --- Quite powerful and louder than the Lossless_Gain Method, but not for purists. Very good for low dialogue, speeches, home video, etc. Creates Mp3 audio at 224Kbs. The bitrate can be changed by doing a search and replace in Notepad - search for 224 and replace with 128, 256, 320, etc
Avi_Gain_Soopa_Loud.bat --- For those who haven't had an ear wax removal session for some time. Sounds like the dynamic range compression of FM Radio, although it can be quite effective on certain audio sources. Try it out.
Instructions:
1) Download and extract Avi_Gain_v08.zip into its own folder
avi_gain_v07.rar
2) Place your AVI files to be processed in the same folder as the avi_gain apps.
3) Double Click on your preferred batch processor
GUI Front End by the talented Nologic: https://forum.videohelp.com/threads/255147-Mini-Guide-Normalizing-Audio-for-Multiple-AV...=1#post1942288
+ Reply to Thread
Results 1 to 30 of 457
-
Last edited by Baldrick; 22nd May 2011 at 04:28. Reason: New link
-
Originally Posted by Soopafresh
I found MP3Gain very good for fixing this, it warns if you're going to clip but lets you go ahead. But you need to demux the MP3 and remux. However, it is completely lossless as it just changes some MP3 parameters and doesn't transcode. If I have a batch of TV episodes, I can demux and then equalise them by ear, eg by matching the theme music volume. -
There are 2 reasons I didn't go with Mp3gain (and I tested quite a few normalizers before I posted this Mini Guide). 1) When processing a folder of AVIs, not all of them used MP3 as the audio track. As a result of years of experimentation, I had AVIs with AC3, OGG, MP2 audio tracks, and I'm guessing I'm not the only one. So merely demuxing and applying MP3gain.exe wasn't going to cut it. 2) MP3gain works if your player supports it; if it can decipher the tags that MP3gain embeds in the file. And while most software players do support it, not all hardware Divx DVD players do. My goal was to make the batch work properly for the vast majority of folks who were going to use it. And as noted above, the source file isn't touched. If you're not happy with the results, you can always go back to square one.
As far as general normalization techniques are concerned, the issue once again becomes "how do you ensure most people will be satisfied with the results". I do know that clipping and distortion aren't pleasing to the ear, and with an automated process, I had to err on the side of safety. I intentionally made the batch file as simple as possible for customizers to tweak it with whatever app/process they prefer, as I knew this thing might open up a thread of debate and controversy. If you look at the documentation for the Normalize.exe file, you'll see there are quite a few parameters that can be modified to suit your specific tastes. Or, you can completely replace the executable with one of a dozen other normalizing/limiting command line apps out there.
Here's a comparison of two different volume modification apps:
The first 16.5 seconds use Normalize.exe (the one above), the second repeats the clip, only using Level.exe, which does dynamic range reduction. You'll notice the Muzak and the sound of the helicopters are emphasized on the second half of the mp3. Different strokes....
comparison.mp3 -
soopafresh,
i read the normalize.txt and seems very very cool.
reading what you can build,can you do one "GUI" or write one single command line to use in one wave(music) please?
i "swear",i'm horrible in command lines! -
I'll help you with any questions you have, I'm too dumb to know how to write a GUI
If you only want to normalize Mp3s or Wavs, search for Mp3gain and Wavegain. Both have GUIs.
http://members.home.nl/w.speek/wavegain.htm -
wavegain i know(and don't like),normalize is seamless...better?
I'm too dumb to know how to write a GUI
thanks so much for fast answers!!!
-
-
Originally Posted by Soopafresh
But I like its approach: it analyses the files and recommends a level. You can override that. Because just involves writing a few fields in the MP3 file it's lossless and extremely fast after the initial analysis and you can twiddle the levels and skip between tracks and listen to them until you're happy.
Originally Posted by Soopafresh
Originally Posted by Soopafresh
For soundtracks, as opposed to musical tracks, the ideal would be a way to normalise based on a specified section; e.g. the first 5 minutes, and/or a flag to ignore transient loud sections in collecting the maximum. What I actually want is it to just look at the spoken word sections. All the normalising apps I've seen (not that I've tried all of them) seem to be assuming music. -
I'd been looking for something to do the same thing. i think I've found another solution to the problem, for playback on a pc anyways this is a piece of software that automaticly adjusts the volume. it's freeware. I havn't tested it yet, but it should solve my problem. however it wount do anything for burning video and playing it back on a standalone player. please check it out if you like. here is the link. and thank you all for the help you've provided me in the past.
http://www.download3000.com/download_6952.htmlWoot! -
Thanks for that. The only issue I see with it is:
"To get AutoMixer registration key for free to your email, enter your email and press "Send AutoMixer registration" - it will be sent to you immediately.
Also you will subscribed to F-Group newsletter to get information about new releases of AutoMixer.
Latest letters available in newsletter archive"
Hey, how about testing it out and reporting the results ? Thanks ! -
Update: Added New Methods to Normalize Your AVIs, including lossless gain. See first post for new download URL. The batch file(s) also works quite well at "fixing" AVI files that don't allow you to scrub through them (corrupted indexes).
-
So, I downloaded this program, but when I put my Divx video in the folder and try to do anything, I get nothing. I'm dragging the video file over the avi_gain program and trying to ope it with it, but to no avail. The only icon that partially works is the mp3gain one, and even that stops at 4%. Any idea of what I'm doing wrong? Does this even work for Divx movies?
-
Drag into same folder. Double click AVI_gain.bat to process. No spaces in file names. It is a script, not a GUI. Don't drag the file on top of the Avi_Gain.bat file.
The folder should look like this:
AVI_GAIN.BAT
ffmpeg.exe
lame.exe
LOSSLESS_GAIN.BAT
mencoder.exe
mp3gain.exe
My_DivX_File.avi
normalize.exe
ReadMe.txt
Double Click on the AVI_GAIN.bat file. It will run the script, and when done, the directory will look like this:
AVI_GAIN.BAT
ffmpeg.exe
lame.exe
LOSSLESS_GAIN.BAT
mencoder.exe
mp3gain.exe
My_DivX_File.avi
Normalized_My_DivX_File.avi
normalize.exe
ReadMe.txt
I just (past 5 minutes) uploaded v03 of the script, which has a higher quality MP3 encoder.
http://www.bestsharing.com/files/e1Ta9E247163/AVI_GAIN_V03.rar.html -
-
Okay, I think I know what's up. The file has a .divx extension. Gimme a sec, I'll post how to modify this -
Uncheck "Hide Extensions for known file types"
And rename your Sin_City_Cd1.divx to Sin_City_Cd1.avi -
Nice, It works now. I changed the .divx extension to .avi. Now lets see if I can churn through this baby. Thanks for all the help man; you're pretty smart with this stuff.
-
Thanks for the kind words. Yeah, you can put as many files as you want in that folder, it'll process them all, just make sure you have enough disk space to handle it. The LossLess_Gain.bat file is faster, but not as loud as the other one.
BTW, download the updated version I posted v03 - It'll probably work better with your player. -
So the new file that is output will be louder than the original? If I wanted to keep making the file louder, could I just keep normalizing the file or is there a threshold for how loud they can be?
-
Oh, you can go a lot louder, but then you risk distorting. Gimme 5 min and I'll upload an even louder version.
-
Originally Posted by abconners
So if you just want to apply gain, it's not normalising. -
Here you go - now there is regular loud and soopaloud. I set it up to be careful at analyzing the audio and doing a clean sounding encode, but that also means it'll take a few minutes longer to process the file. Still, it should sound great when it is done.
http://www.bestsharing.com/files/LfR1e247177/AVI_GAIN_LOUDER.rar.html
Soopaloud adds a process called Limiting, which will make the quiet parts louder and the louder parts pretty much the same.
Remember, your original files aren't touched, so no problemo if you're not satisfied with the sound. -
Thanks! this has been a tremendous help. I watch these movies while I'm at the gym doing cardio, and it's a bit hard to hear them with 10 other people running on treadmills around you. You've just solved a problem that's been plaguing me for a long time. I'll be sure to stop back through once in a while and see what's going on. Thanks again.
-
One moment, please....
Edit:
http://www.wikiupload.com/download_page.php?id=140018 -
thanks download now works fine
1 Q:
what would i change in your script to make it process the avi file with spaces in the names?
Thanks -
Hee hee. I've been planning on fixing that - Microsoft's fault, quite honestly. pcspeak (who writes kick @ss batch files) demonstrated an interesting workaround for that problem. I'll get around to it, but it'll probably take a few days.
-
v05 updated to support AVI files with spaces in their name (thanks for the inspiration, pcspeak). Also updated the re-muxing routine to a better app. See top post for more info.
http://www.wikiupload.com/download_page.php?id=141904 -
Highly recommended, it fixed my mp3 encoding problem which was creating out-of-sync audio in videos.
The only downside is the DivX Multiplexer spamming up the Junk User Metadata, but which i only notice when i check out the resultant file in GSpot."Youth is wasted on the young."
Similar Threads
-
How to join AVI files with multiple audio streams
By V@no in forum Newbie / General discussionsReplies: 2Last Post: 29th May 2010, 22:17 -
Multiple AVI files to multiple DVD discs, no quality loss, chapter per avi
By Delta007bhd in forum Video ConversionReplies: 11Last Post: 14th Apr 2010, 08:27 -
AVI to iPhone, multiple files after encode, no audio?
By wcpfour in forum ffmpegX general discussionReplies: 2Last Post: 23rd Jul 2009, 16:24 -
Normalizing with avi-gain- 2 files fail to appear in the "completed&qu
By DaneClark in forum EditingReplies: 1Last Post: 13th Jul 2009, 00:45 -
how do I join multiple avi files with multiple audio tracks?
By helloguys in forum EditingReplies: 1Last Post: 26th Dec 2007, 02:28