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 > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th March 2006, 12:01   #141  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by tebasuna51
With aac 5.1 sometimes make a wav6 with all channels equal to a distorted Center channel, and sometimes
Can you provide small samples to send it to BASS developers?
dimzon is offline   Reply With Quote
Old 10th March 2006, 13:25   #142  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
I'm planning to write AudioLimiter plugin

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


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


Does anybody know another sutable formulas?
dimzon is offline   Reply With Quote
Old 10th March 2006, 15:31   #143  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Yet another filter to play with / test - AudioLimiter
http://forum.doom9.org/showthread.php?t=108470
dimzon is offline   Reply With Quote
Old 10th March 2006, 16:45   #144  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by dimzon
Can you provide small samples to send it to BASS developers?
Here is: Test6HE.7z
The source Test6HE.aac is decoded ok by Foobar v0.8.3 for instance.
tebasuna51 is offline   Reply With Quote
Old 10th March 2006, 17:53   #145  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by tebasuna51
Here is: Test6HE.7z
The source Test6HE.aac is decoded ok by Foobar v0.8.3 for instance.
please test this binary with your AAC
http://www.un4seen.com/filez/2/bass_aac.dll
dimzon is offline   Reply With Quote
Old 10th March 2006, 23:08   #146  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by dimzon
please test this binary with your AAC
http://www.un4seen.com/filez/2/bass_aac.dll
Sorry, same output.
Works for you?
tebasuna51 is offline   Reply With Quote
Old 11th March 2006, 14:39   #147  |  Link
gino25
Registered User
 
Join Date: Dec 2002
Posts: 165
i try to transcode a file wav (44100 hz, mono) into a aac+ 16kbps.

In [1] i select my wav file as "Wavsource", in [2] and [3] all are empty. In [4] i select aac+ 16kbps as adts aac

but i have this error

Starting job bri.wav->bri.aac
Error: BeHappy.AviSynthException: Script error: there is no function named "AudioDubEx"
at BeHappy.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
at BeHappy.Encoder.encode()
gino25 is offline   Reply With Quote
Old 11th March 2006, 14:39   #148  |  Link
gino25
Registered User
 
Join Date: Dec 2002
Posts: 165
ah this is the avc generated by behappy

########################################
#Created by BeHappy v0.1.0.28107
#Creation timestamp: 11/03/2006 14.39.50
########################################
#Source FileName:C:\Documents and Settings\Enea\Desktop\bri.wav
#Target FileName:C:\Documents and Settings\Enea\Desktop\bri.aac
########################################

########################################
# [Source: WavSource]
########################################
WavSource("C:\Documents and Settings\Enea\Desktop\bri.wav")

EnsureVBRMP3Sync() # Some black magic to avoid desync

########################################
# [BeHappy: Create fictive 1000fps video for triming]
########################################
AudioDubEx(BlankClip(length=Int(1000*AudioLengthF(last)/Audiorate(last)), width=32, height=32, pixel_type="RGB24", fps=1000), last)

########################################
# [Encoder: Coding Technologies AAC+ @ 16 kbps as ADTS AAC]
########################################


########################################
# [BeHappy: Kill video]
########################################
AudioDubEx(Tone(), last)
gino25 is offline   Reply With Quote
Old 11th March 2006, 15:09   #149  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
@gino25
instal AviSynth 2.56
dimzon is offline   Reply With Quote
Old 12th March 2006, 17:38   #150  |  Link
gino25
Registered User
 
Join Date: Dec 2002
Posts: 165
Quote:
Originally Posted by dimzon
@gino25
instal AviSynth 2.56
thank you
gino25 is offline   Reply With Quote
Old 14th March 2006, 07:26   #151  |  Link
3dsnar
Registered User
 
3dsnar's Avatar
 
Join Date: Dec 2005
Location: Proxima Centauri
Posts: 315
Quote:
Originally Posted by dimzon
I'm planning to write AudioLimiter plugin

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


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


Does anybody know another sutable formulas?
Dimzon, I will send you a code for a limiter constructed from a sine glued with a linear section. It also has a limiting
knee that can be adjusted. Morover, this always limits to [-1, 1] range and up to some signal level is linear (no harmonic distortion).
__________________
Aud-X MP3 5.1 Format
3dsnar is offline   Reply With Quote
Old 15th March 2006, 15:49   #152  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
@tebasuna51
Please, test my AudioLimiter filter http://forum.doom9.org/showthread.php?t=108470

What does You think, does it acceptable to use it for DRC?
dimzon is offline   Reply With Quote
Old 16th March 2006, 03:52   #153  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by dimzon
@tebasuna51
Please, test my AudioLimiter filter http://forum.doom9.org/showthread.php?t=108470

What does You think, does it acceptable to use it for DRC?
I'm not a expert in DRC, but I think if DRC algorithms use parameters like attack and dekay is for good reasons.

A instant volume conversión with simple math formulas produce distort output like you can see in this image.

With a frequency analysis you can see the audible overtones, not present using more sophisticated algorithms:
Frequency Analysis.

For me the DRC is only useful with ac3 or dts sources, and this work ok with your modified NicAaudio.dll. For others uses the compand Sox function still work better than this AudioLimiters.
Attached Images
  
tebasuna51 is offline   Reply With Quote
Old 16th March 2006, 07:08   #154  |  Link
3dsnar
Registered User
 
3dsnar's Avatar
 
Join Date: Dec 2005
Location: Proxima Centauri
Posts: 315
Quote:
Originally Posted by tebasuna51
I'm not a expert in DRC, but I think if DRC algorithms use parameters like attack and dekay is for good reasons.

A instant volume conversión with simple math formulas produce distort output like you can see in this image.

With a frequency analysis you can see the audible overtones, not present using more sophisticated algorithms:
Frequency Analysis.

For me the DRC is only useful with ac3 or dts sources, and this work ok with your modified NicAaudio.dll. For others uses the compand Sox function still work better than this AudioLimiters.
Tebasune51 is right. The limiter (or also called soft clipper) is usually used to make the hard clipping effect more listenable. It is a useful tool, so it is good to have it. It also can be viewed as the simplest form of compressor.
---------------------------
However, for compressing the amplitude of the signal, usually a dynamic compressor is used (with the attack phase, release phase, compression ratio, and other parameters).
---------------------------
Dimzon, I have implemented in the past a very high quality (very low harmonic distortions) compressor for some pro-audio applications, and the code belongs to me (personally). I will have to just clean it a bit and will provide you with it. So you will be able to use it as open source, or in whaterver way you prefer. So I will get back with this to you soon.
__________________
Aud-X MP3 5.1 Format

Last edited by 3dsnar; 16th March 2006 at 07:10.
3dsnar is offline   Reply With Quote
Old 16th March 2006, 09:31   #155  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
@3dsnar
Thanx a lot

@3dsnar, @tebasuna51
http://en.wikipedia.org/wiki/Amplitude_compression
I'm just trying to reproduce BeSweet's custom boost modes (LigH/Tera/DSPGuru) - there are no attac/decay parameters for it, seems like they are just limiters. Custom boost modes + additional AC3 DRC is last to cover all BeSweet functionality...
dimzon is offline   Reply With Quote
Old 16th March 2006, 17:38   #156  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by dimzon
I'm just trying to reproduce BeSweet's custom boost modes (LigH/Tera/DSPGuru) - there are no attac/decay parameters for it, seems like they are just limiters. Custom boost modes + additional AC3 DRC is last to cover all BeSweet functionality...
Really I never use the Boost BeLight section. I make some test with default values in BeLight:
- DSPguru method -boost( /b2=4 /l=0.95 ): Broken for input values > -7.16 dB. Don't need emulate.
- Tera method -boost( /b3=5 /l=0.95 ): low range values very amplified. Not similar behavior with your AudioLimiter functions.
- LigH method -boost( /b=3 /l=0.95 ): This method can be emulated with ExpotencialLimiter(2.4) with light differences.
Code:
All values are peak (-) dB

Met\Input  46.6 40.8 36.0 31.2 26.4 21.6 16.8 12.0 10.45  7.2  2.40
---------  ---- ---- ---- ---- ---- ---- ---- ---- ----- ---- -----
Tera_norm  30.3 25.6 21.1 16.8 12.7  9.1  6.0  3.5  2.85  1.7  0.45
LigH_norm  37.3 31.2 26.4 21.6 16.9 12.2  7.7  3.9  2.85  1.2  0.14
Expot 2.4  37.6 32.6 27.5 22.2 16.8 11.4  6.7  3.2  2.44  1.2  0.24
Expot 2.0  39.0 34.1 29.1 23.9 18.6 13.4  8.5  4.6  3.60  1.9  0.43
Expot 3.0  35.6 30.5 25.3 19.9 14.3  8.9  4.6  1.9  1.33  0.6  0.10

Last edited by tebasuna51; 16th March 2006 at 17:48.
tebasuna51 is offline   Reply With Quote
Old 16th March 2006, 17:58   #157  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
@tebasuna51
Thanx a lot

Does anybody know good free math-modeling software (free MathLab analogue)?
dimzon is offline   Reply With Quote
Old 16th March 2006, 18:02   #158  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
found very interesting site
http://musicdsp.org/
dimzon is offline   Reply With Quote
Old 16th March 2006, 18:18   #159  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Yet another fine link http://www.dspguru.com/sw/opendsp/mathclo2.htm
dimzon is offline   Reply With Quote
Old 16th March 2006, 18:29   #160  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
fine, found some free matlab replacement
http://www.scilab.org/

will try it tonight
dimzon is offline   Reply With Quote
Reply

Tags
behappy

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 20:49.


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