| Author |
Message |
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
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: 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 via LAME encoder at 224Kbs
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.
Instructions:
1) Download and extract Avi_Gain_v07.rar into its own folder
avi_gain_v07.rar
(Previous Version Can Be Found Here:)
avi_gain_v06.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
Last edited by Soopafresh on Feb 27, 2008 14:11, edited 30 times in total
|
|
AlanHK Member
Joined: 25 Apr 2006 Location: Hong Kong
|
|
| Soopafresh wrote: |
| The normalization is intentionally set to conservative settings to avoid clipping. |
I haven't used this, but I'd just advise not trusting it too much. I've had some dramas that had their levels very low. Examining them I found a noisy passage (eg, gunfire) and it seems likely some levelling was done, set to avoid clipping. But I'd rather have distorted gunfire than muffled speech.
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.
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
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
Last edited by Soopafresh on Nov 26, 2006 17:36, edited 3 times in total
|
|
raquete Member
Joined: 25 Oct 2006 Location: Brazil
|
|
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!
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
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
|
|
raquete Member
Joined: 25 Oct 2006 Location: Brazil
|
|
wavegain i know(and don't like),normalize is seamless...better?
| Quote: |
| I'm too dumb to know how to write a GUI |
lol,i can't believe,you're a lier (i'm kiddin)
thanks so much for fast answers!!!
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
AlanHK Member
Joined: 25 Apr 2006 Location: Hong Kong
|
|
| Soopafresh wrote: |
| 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. |
I know MP3gain isn't a panacea. Still most AVIs seem to use MP3 sound these days.
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.
| Soopafresh wrote: |
| If you're not happy with the results, you can always go back to square one. |
I wish people would actually review the results. Probably an automated technique gives acceptable results most of the time, but not always.
| Soopafresh wrote: |
| 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. |
I looked at the docs; as far as I can see it does analyse the entire file.
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.
|
|
akoy Member
Joined: 09 Feb 2007 Location: United States
|
|
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.html
_________________ Woot!
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
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 !
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
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).
|
|
abconners Member
Joined: 22 Mar 2007 Location: United States
|
|
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?
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
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
|
|
abconners Member
Joined: 22 Mar 2007 Location: United States
|
|
Okay, I've tried to do what you said, but to no avail. I'll post a pic of my folder and maybe that will help.
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
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
Last edited by Soopafresh on Mar 22, 2007 20:43, edited 1 time in total
|
|
abconners Member
Joined: 22 Mar 2007 Location: United States
|
|
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.
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
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.
Last edited by Soopafresh on Mar 22, 2007 20:50, edited 1 time in total
|
|
abconners Member
Joined: 22 Mar 2007 Location: United States
|
|
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?
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
Oh, you can go a lot louder, but then you risk distorting. Gimme 5 min and I'll upload an even louder version.
|
|
AlanHK Member
Joined: 25 Apr 2006 Location: Hong Kong
|
|
| abconners wrote: |
| 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? |
Normalising is not making louder; it may booost or reduce the volume, trying to make a consistent volume that doesn't distort, over a track or a collection of tracks. If you normalise again with the same settings, it should not change at all.
So if you just want to apply gain, it's not normalising.
Last edited by AlanHK on Mar 22, 2007 20:59, edited 1 time in total
|
|
abconners Member
Joined: 22 Mar 2007 Location: United States
|
|
NM: question answered above.
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|
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.
Last edited by Soopafresh on Mar 22, 2007 21:08, edited 1 time in total
|
|
abconners Member
Joined: 22 Mar 2007 Location: United States
|
|
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.
|
|
ktjensen Member
Joined: 07 Apr 2001
|
|
looks like a solution for me.
|
|
DevilsOwn Member
Joined: 02 May 2007 Location: Australia
|
|
Soopafresh Dismember
Joined: 01 Jan 2004 Location: United States
|
|