Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 10th March 2006, 15:28   #1  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
AudioLimiter - new alpha (2006-03-14)

Download it here

Code:
Warning! This is ALPHA version!


Syntax:
WavGainLimiter( Clip c, Float factor)
LinearLimiter( Clip c, Float factor)
ExpotencialLimiter( Clip c, Float factor)
	factor - proposed values are 1.0...5.0, default is 1.0
	! Higher factor values increases the effect but can produce atrifacts

SoftClipperFromAudX( Clip c, Float curve)
	curve - proposed values are 0.0...1.0, default is 0.7

Pupose:
To increase volume for silent sounds a lot, to increase volume for middle-volume sounds a little and to keep hi-volume sounds untoched.
This must help to increase volume for speech/dialog without increasing volume for shoots etc
Higher factor values increases the effect but can produce atrifacts. Recomended value between 1.0 and 5.0
This filter reques Normalized Float audio at input. 



Math explained
 for expotential:
	output = (input<0?-1:1)*(pow(10.0f, tanh( factor * log10(1 + abs(input)*9))/tanh(factor) ) - 1)/9
 for linear:
	output = tanh( factor * input) / tanh(factor)
		

############################################
Sample:


wavSource(...)
convertAudiotofloat()
normalize()
LinearLimiter(2)
this is curves for LinearLimiter:

output = tahh(input*factor) / tanh(factor)


factor = 1
factor = 1.5
factor = 2
factor = 3
factor = 4




Please, provide your feedback

This filter will be included into NicAudio later.

Last edited by dimzon; 14th March 2006 at 12:35. Reason: new version is out
dimzon is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 17:18.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.