VideoHelp Forum
+ Reply to Thread
Page 1 of 16
1 2 3 11 ... LastLast
Results 1 to 30 of 457
Thread
  1. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Image Attached Files
    Last edited by Baldrick; 22nd May 2011 at 05:28. Reason: New link
    Quote Quote  
  2. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by Soopafresh
    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.
    Quote Quote  
  3. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  4. Member
    Join Date
    Oct 2006
    Location
    Brazil
    Search Comp PM
    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!
    Quote Quote  
  5. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  6. Member
    Join Date
    Oct 2006
    Location
    Brazil
    Search Comp PM
    wavegain i know(and don't like),normalize is seamless...better?

    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!!!
    Quote Quote  
  7. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by Soopafresh
    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.

    Originally Posted by Soopafresh
    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.

    Originally Posted by Soopafresh
    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.
    Quote Quote  
  8. Member
    Join Date
    Feb 2007
    Location
    United States
    Search Comp PM
    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!
    Quote Quote  
  9. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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 !
    Quote Quote  
  10. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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).
    Quote Quote  
  11. Member
    Join Date
    Mar 2007
    Location
    United States
    Search Comp PM
    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?
    Quote Quote  
  12. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  13. Member
    Join Date
    Mar 2007
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  14. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  15. Member
    Join Date
    Mar 2007
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  16. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  17. Member
    Join Date
    Mar 2007
    Location
    United States
    Search Comp PM
    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?
    Quote Quote  
  18. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Oh, you can go a lot louder, but then you risk distorting. Gimme 5 min and I'll upload an even louder version.
    Quote Quote  
  19. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by abconners
    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.
    Quote Quote  
  20. Member
    Join Date
    Mar 2007
    Location
    United States
    Search Comp PM
    NM: question answered above.
    Quote Quote  
  21. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  22. Member
    Join Date
    Mar 2007
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  23. looks like a solution for me.
    Quote Quote  
  24. Member
    Join Date
    May 2007
    Location
    Australia
    Search Comp PM
    download link is dead
    Quote Quote  
  25. Member
    Join Date
    May 2007
    Location
    Australia
    Search Comp PM
    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
    Quote Quote  
  26. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  27. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  28. Member
    Join Date
    May 2007
    Location
    United Kingdom
    Search Comp PM
    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."
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!