INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Login:   Username:  Password:   Log me on automatically    
Register I forgot my password I forgot my username Resend the activation key

Mini How To - Increase Your AC3 Volume

Forum Index -> Video -> Audio Printer-friendly version
Goto page Previous  1, 2, 3, 4
Reply to topic
Author Message
sumeshkri
Member


Joined: 12 Nov 2007
Location: India

Post Posted: Jul 27, 2008 22:41 Posts Comp View users profile Send private message Reply with quote

Hai dear soopafresh,
thank you for your continuous support on this forum.
i have been looking on this thread for my poblem to solve.
if we read from the beginning, it is somewhat confusing now. what to use and how to, it is not known, as far as i am concerned because of the mess of the things. i am only a common man. desn't know the tecs. so please advice me on this.
I have got burned a dvd(film). when i play it on the dvd player the sound is too low that i have to raise the volume of the TV to the maximum to hear the vocals of the characters where as there is no problem for the sounds of vehicles etc. i want to increase the volume. for that i have got instructions from you that first i have to demultiplex the vob files. then take the audio file to ------ then comes the confusion., your first instruction was to use the ac3gain. now it says use ac3normalizer. and you said that NET 1.1 is needed. and also the avisynth 2.57. can you sum up the instructions please? i searched the microsoft site to get the NET.1.1 file it is too big. it says it is of 100 mb.Is it so? can you give a link to the files needed to be downloaded? is it possible for you to give a folder in which all the necessary components are included on this thread. thanks in advance.


Soopafresh
Craptastic


Joined: 01 Jan 2004
Location: United States

Post Posted: Jul 28, 2008 01:14 Posts Comp View users profile Send private message Reply with quote

Read the other post and try Tmpgenc DVD Author with the "normalize audio" function. That will be the easiest way, I believe.

sumeshkri
Member


Joined: 12 Nov 2007
Location: India

Post Posted: Jul 28, 2008 02:36 Posts Comp View users profile Send private message Reply with quote

thanks a lot i will try that

VirtualDoobMon
Member


Joined: 15 May 2005
Location: ||*||

Post Posted: Aug 17, 2008 22:50 Posts Comp View users profile Send private message Reply with quote

Hi Soopafresh,

This works amazing! Is there anyway you could create a batch so it extracts ac3 from avi then runs a script? If there is any plan to merge avi_gain & ac3gain I can't wait, that would be awesome. I think most people would agree with these merged, it would eliminate the need for other tools such as divfix etc (as mencoder -forceidx fixes most issues for me). For my particular need with these merged, i could have a single script and depending if mp3 or ac3, it could fix index issues and most important fix/increase the audio quality.

Thanks again


Last edited by VirtualDoobMon on Aug 18, 2008 07:03, edited 1 time in total


Soopafresh
Craptastic


Joined: 01 Jan 2004
Location: United States

Post Posted: Aug 17, 2008 23:32 Posts Comp View users profile Send private message Reply with quote

This works amazing! Is there anyway you could create a batch so it extracts ac3 from avi then runs a script?

Thanks, man. smile.gif What do you want to accomplish by doing that ?


VirtualDoobMon
Member


Joined: 15 May 2005
Location: ||*||

Post Posted: Aug 18, 2008 12:34 Posts Comp View users profile Send private message Reply with quote

All my backups are ac3 5.1 in avi that i stream to my living room io-data unit and output to my receiver. I now have another IO unit at the cottage (no receiver) and have found the 5.1>stereo not that good -- quiet/loud. I plan on backing up my collection to a portable HDD for use at the cottage but would like them as 2ch ac3 (I know ffmpeg -ac 2 -acodec ac3) but i want them normalized thru your script.

Before i found this post, i was thinking about batch converting everything to mp3 and calling avi-gain or maybe just use mencoder -af volnorm,channels=2 ..

Truth is i don't know that much about audio and i was hoping to avoid some of the learning curve by using your 1.5 or 1.8 profiles...And of course avoid the manual demux/mux of accomplishing this.

Thanks again!


Soopafresh
Craptastic


Joined: 01 Jan 2004
Location: United States

Post Posted: Aug 18, 2008 13:27 Posts Comp View users profile Send private message Reply with quote

Gotcha. So you want this:

AVI w/ 5.1 ---> AVI w/ audio Normalized and Downmixed to 2.0

Should be pretty easy. I'll have something for you this evening.

What I'm thinking would work is a modification of the AVI_Gain script, where the AC3 is demuxed, converted to stereo WAV, then normalized and dynamic range limited, then converted back to 2 channel AC3 and remuxed with the video.

Edit: Try this http://www.mediafire.com/?sharekey=3b2c379969a8c01ad2db6fb9a8902bda

Note that during the remux you might see a "Invalid and Inefficient VFW B Frame" error message. Don't worry about it. Surprisingly, this was harder than I thought it would be. The remuxing was a PITA, and the only thing that worked was FFmpeg. I also had to use a different version of ffmpeg for the demuxing.

Just test it out on one or two files to see if it plays properly on your DVD player.


VirtualDoobMon
Member


Joined: 15 May 2005
Location: ||*||

Post Posted: Aug 19, 2008 11:58 Posts Comp View users profile Send private message Reply with quote

Worked like a charm thank you! Didn't enounter any issues one the first few and the playback sounds awesome. You da Man!

I have gone thru probably about 1/3 of my collection now and have yet to experience any issues and doubt i will.
Soopafresh, Thank you very much for helping me on this task. Really really appreciate it.


yuriapt22
Member


Joined: 01 Mar 2009
Location: Russian Federation

Post Posted: Mar 01, 2009 02:25 Posts Comp View users profile Send private message Reply with quote

I use AC3GAINv4 to increase AC3 volume.Everything is all right but in result I get mono file instead stereo.Please help me.

Soopafresh
Craptastic


Joined: 01 Jan 2004
Location: United States

Post Posted: Mar 01, 2009 02:41 Posts Comp View users profile Send private message Reply with quote

1)Can you check your original AC3 file to see if maybe it is mono?

2) For a test, run AC3gain on the Output file again. Look at what the batch file says.


First Run on Original File - 6 channels (5.1)


Running Ac3Gain again on the normalized output file - 6 Channels again


halsboss
Member


Joined: 13 Jan 2004
Location: Australia

Post Posted: Mar 01, 2009 03:22 Posts Comp View users profile Send private message Reply with quote

Soopafresh, if we have AVI files with arbitrary audio encoding, would you pls be so kind as to confirm if this (adapted from an older one of yours) provides a similar outcome in terms of gaining and DRCing. Drag'n'drop an AVI on the .bat file or call it from another .bat like
Code:
CALL "C:\SOFTWARE\AFTEN\do-AFTEN-new.bat" "G:\path\input_file.AVI" "G:\path\outputfile.AC3" 224 1.5

The 1st ffmpeg line is supposed to extract from the AVI anything ffmpeg understands into PCM for avisynth to do it's thing.
Code:
@echo off
REM http://forum.videohelp.com/topic317891-30.html#1853429
REM http://forum.videohelp.com/topic314909-60.html#1823321
REM http://www.hometheaterhifi.com/volume_7_2/feature-article-dialog-normalization-6-2000.html
REM
REM Output = .AC3 normalised and DRC'd - wgvalues in range 1.2 (less) to 2.5 (more)
REM Number of channels stays the same (I think) eg 2 or 5.1 channel input remains unchanged
REM 1st parameter is the input .AVI file
REM 2nd parameter is the output .AC3 file (default inputAVIfile with .AC3 extension)
REM 3rd parameter is the bitrate, eg 192 (default 192) *** NOTE no "k" on the end
REM 4th parameter is the DRC value from 1.2 to 2.5 (default 1.5)
REM
SET inp=%~1%
SET outA=%~1%.AC3
SET outW0=%~1%.TEMP0.AC3.WAV
SET outW1=%~1%.TEMP1.AC3.WAV
SET avs="%~1%.TEMP.AC3.AVS
SET normvalue=0.95
SET drcvalue=1.5
SET dialognormvalue=31
SET bitratevalue=192
SET freqvalue=48000
IF NOT "%~2"=="" SET outA=%~2%
IF NOT "%~2"=="" SET outW0=%~2%.TEMP0.AC3.WAV
IF NOT "%~2"=="" SET outW1=%~2%.TEMP1.AC3.WAV
IF NOT "%~2"=="" SET avs=%~2%.TEMP.AC3.AVS
IF NOT "%3"=="" SET bitratevalue=%3%
IF NOT "%4"=="" SET drcvalue=%4%
"c:\software\ffmpeg\ffmpeg.exe" -y -i "%inp%" -vn -acodec pcm_f32le -f wav "%outW0%"
@echo SetMemoryMax(128) >  "%avs%"
@echo LoadPlugin("C:\SOFTWARE\aften\AudioLimiter.dll") >> "%avs%"
@echo #LoadPlugin("C:\SOFTWARE\aften\soxfilter.dll") >> "%avs%"
@echo #WavSource("%inp%").ConvertAudioToFloat().SSRC(%freqvalue%).normalize(%normvalue%) # all AviSynth filters >> "%avs%"
@echo WavSource("%outW0%") >> "%avs%"
@echo #AVISource("%inp%") >> "%avs%"
@echo ConvertAudioToFloat() >> "%avs%"
@echo SSRC(%freqvalue%) >> "%avs%"
@echo normalize(%normvalue%) >> "%avs%"
@echo # WavGainLimiter - >> "%avs%"
@echo # to increase volume for silent sounds a lot,  >> "%avs%"
@echo # to increase volume for middle-volume sounds a little and  >> "%avs%"
@echo # to keep hi-volume sounds untouched.  >> "%avs%"
@echo # This must help to increase volume for speech/dialog without increasing volume for shoots etc  >> "%avs%"
@echo # Higher factor values increases the effect but can produce atrifacts.  >> "%avs%"
@echo # Recomended value between 1.0 and 5.0  >> "%avs%"
@echo # This filter requires Normalized Float audio at input.  >> "%avs%"
IF NOT "%drcvalue%"=="" @echo WavGainLimiter(%drcvalue%) >> "%avs%"
"C:\SOFTWARE\aften\wavi.exe" "%avs%" "%outW1%"
"C:\SOFTWARE\aften\aften.exe" -v 1 -dnorm %dialognormvalue% -b %bitratevalue% -readtoeof 1 "%outW1%" "%outA%"
REM A truly Excellent article on Dynamic Range Control and Dialog Normalization, with diagrams ...
REM http://www.hometheaterhifi.com/volume_7_2/feature-article-dialog-normalization-6-2000.html
REM When we speak of how loud sounds are in a Dolby Digital soundtrack,
REM we express the loudest level as "0 dB" and the quietest as "-105 dB". 
REM The Dialnorm value expresses the level of dialogue as how much lower
REM it is then the peak (0 dB). 
REM So a value of "-31" indicates a point 31 dB below the peak and, incidentally,
REM is the value at which no volume adjustment is performed by your consumer decoder. 
REM A Dialnorm value of -27 would indicate to your decoder that the dialogue is
REM at a point 27dB below the peak, or 4dB higher than a program with a Dialnorm value of -31. 
REM Your decoder would then turn things down by 4 dB. 
REM A Dialnorm value of -25 would call for a 6 dB reduction and so on.
REM The -27 setting "fits" movie soundtracks perfectly in that it yields a very natural level
REM for talking and is likely the most common for movies.
REM For decades this has been the standard level for dialogue in motion picture soundtracks.
REM pause


EDIT: just saw a reference to AC3normaliser above. Will have to read up on it now. smile.gif redface.gif


yuriapt22
Member


Joined: 01 Mar 2009
Location: Russian Federation

Post Posted: Mar 01, 2009 07:04 Posts Comp View users profile Send private message Reply with quote

Soopafresh wrote:
1)Can you check your original AC3 file to see if maybe it is mono?

2) For a test, run AC3gain on the Output file again. Look at what the batch file says.


First Run on Original File - 6 channels (5.1)


Running Ac3Gain again on the normalized output file - 6 Channels again


The AC3 original file sounds stereo I ripped it from DVD but when I use Ac3gain
on the first run the batch file says Could not find C:\ac3gainv4\.avs
Found PCM audio; 6 channels, 48000 Hz, 16 bits and it still do its job but result is mono.
On the second run with the normalized file it says Found PCM audio; 6 channels, 48000 Hz,
16 bits and it still do its job but result is mono anyway.


Reply to topic All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4
Forum Index -> Video -> Audio Page 4 of 4





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
DVDFab DVD to DVD lets you backup DVDs to DVDr, AVI or MP4 for portable devices. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics