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

Reply
 
Thread Tools Search this Thread Display Modes
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
Old 10th March 2006, 15:32   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
How about telling us in words what it does? Also, what is the usage of the parameters?

You could put that in the help file as well.

Thank you.
Guest is offline   Reply With Quote
Old 10th March 2006, 15:37   #3  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by neuron2
How about telling us in words what it does? Also, what is the usage of the parameters?

You could put that in the help file as well.

Thank you.
This is yet another way to Dynamic Range Compression
http://www.harmony-central.com/Effec...s/Compression/
http://en.wikipedia.org/wiki/Companding



I'm trying to create something equal custom gain modes in BeSweet
dimzon is offline   Reply With Quote
Old 10th March 2006, 15:56   #4  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
You've still not answered the questions!

I know from experience that the usefulness of tools is heavily dependent on the quality of the documentation.

Of course, if you don't care if people use your stuff...

Last edited by Guest; 10th March 2006 at 16:56.
Guest is offline   Reply With Quote
Old 10th March 2006, 15:56   #5  |  Link
Dark-Cracker
Registered User
 
Dark-Cracker's Avatar
 
Join Date: Feb 2002
Posts: 1,195
why not try to ask DSPguru if he can share some part of besweet ? since it seems he doesn't have much time to work on it.

keep up the good work.
++
__________________

AutoDub v1.8 : Divx3/4/5 & Xvid Video codec and .OGG/.MP3/.AC3/.WMA audio codec.
AutoRV10 v1.0 : Use RealVideo 10 Codec and support 2 Audio Streams and Subtitles.

Dark-Cracker is offline   Reply With Quote
Old 11th March 2006, 13:34   #6  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by Dark-Cracker
why not try to ask DSPguru if he can share some part of besweet ? since it seems he doesn't have much time to work on it.
I send him PM but he doesn't answer yet
dimzon is offline   Reply With Quote
Old 12th March 2006, 05:34   #7  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
Quote:
Originally Posted by dimzon
I wish people would stop using these sites that respond
Quote:
You have requested the file ID: 506307
Error: JavaVIRUSES must be enabled.
Please just publish a direct link to the file so {right click} "Save target As" or a simple wget works correctly and easily.

There is no excuse especially as Richard has been good enough to provide a good amount of download space for Avisynth users to use.
IanB is offline   Reply With Quote
Old 12th March 2006, 09:18   #8  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
direct link www.64k.it/andres/audioLimiter-2006-03-10.zip

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 12th March 2006, 09:56   #9  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by IanB
There is no excuse especially as Richard has been good enough to provide a good amount of download space for Avisynth users to use.
Please tell me more about it...

PS. About JavaScript and Security - just use Firerox if You care about it
dimzon is offline   Reply With Quote
Old 12th March 2006, 11:16   #10  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
@buzzqw, Thx!

@dimzon,

What no source code


ftp://tempclips%40avisynth.org:QfJY(86m@avisynth.org/

Find any post by Richard Berg and read his signature.


Consider my complaint a compliment. Normally links that don't work in my restricted policy environment, I just move on. There are many more things of interest for my limited time. This one I took enough interest to stay and fight.

And yes Firefox is a step in the right direction but malicious JavaVirus^H^H^H^H^HScript can still cause even it a level of unconfortable grief. And using these sites just encourages them.

The real problem is the breaking of {right-click} SaveAs. I do it now and save the file. Some time later (maybe days) I look at the contents and am disappointed/annoyed that I got a crappy web page that won't run free standing and no interesting downloaded file.
IanB is offline   Reply With Quote
Old 12th March 2006, 12:00   #11  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by IanB
ftp://tempclips%40avisynth.org:QfJY(86m@avisynth.org/

Find any post by Richard Berg and read his signature.
Unfortunally my corporate firewall disallow FTP interaction. In other case I have no VC++ compiler at home
dimzon is offline   Reply With Quote
Old 13th March 2006, 13:45   #12  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
new version is out, please test it!
dimzon is offline   Reply With Quote
Old 14th March 2006, 12:36   #13  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
new version is out - serious bugfix and new limiter from AudX

PLEASE TEST!
dimzon is offline   Reply With Quote
Old 14th March 2006, 18:51   #14  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
Very interesting!

But I cannot download (Too many downloads, try again later).

Edit: ok - got through.

I know documentation isn't easy, when english isn't your primary language, but couldn't you please insert a LOT of examples for us to experiment on, then.
__________________
Regards, sh0dan // VoxPod

Last edited by sh0dan; 14th March 2006 at 18:54.
sh0dan is offline   Reply With Quote
Old 15th March 2006, 05:55   #15  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
This filter will be included into NicAudio later.
IMHO, it is not right idea to put all in one.
Separate is better to maintan.
Fizick is offline   Reply With Quote
Old 30th September 2006, 13:47   #16  |  Link
Dark-Cracker
Registered User
 
Dark-Cracker's Avatar
 
Join Date: Feb 2002
Posts: 1,195
is there still a working link ?

i couldn't find the filter in the external plugin section on the avisynth siteweb.

Keep up the good work.
Bye.
__________________

AutoDub v1.8 : Divx3/4/5 & Xvid Video codec and .OGG/.MP3/.AC3/.WMA audio codec.
AutoRV10 v1.0 : Use RealVideo 10 Codec and support 2 Audio Streams and Subtitles.

Dark-Cracker is offline   Reply With Quote
Old 21st October 2006, 05:16   #17  |  Link
lid2000
Registered User
 
Join Date: Oct 2006
Posts: 1
Can someone please upload or send this file to me? I need to do DRC on an audio source *after* it's been downmixed to two channel via AviSynth, and this looks like the only thing that would do it.
lid2000 is offline   Reply With Quote
Old 17th November 2006, 05:32   #18  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
soxfilter("compand attack1,release1,attack2,release2 in_dB1,out_db1,in_db2,out_db2 postgaindb lookahead") should do DRC.

it's really tricky to use though, and you should probably use a limiter after it... all attack/release times are in seconds.
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 25th November 2006, 02:07   #19  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by Mug Funky View Post
soxfilter("compand attack1,release1,attack2,release2 in_dB1,out_db1,in_db2,out_db2 postgaindb lookahead") should do DRC.
You can see a first approach at BeHappy thread.

But the Normalize() function don't work after Sox compand, maybe because:
"compand is very hard to control, and doesn't support restarts (crash)"
tebasuna51 is offline   Reply With Quote
Old 28th November 2006, 07:05   #20  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
that's alright - it's senseless to use normalize after compressing. if you're messing with dynamics and loudness, a peak limit is far more useful than a normalize.

[edit]

i read the document there, and it seems normalize is used because volume is limited to -20dB as per dolby's presets. i think in this case using postgain in compand itself to add 10dB would be enough.
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:27.


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