Log in

View Full Version : Gaining 6ch AAC


shon3i
28th February 2006, 16:34
Beacouse ac3 sound is so quietly when i convert 6ch AC3-> 6ch AAC , AAC seems to be quietly. I using PreGain option but same. I aslo tryed with PostGain and Azid Gain applying 6db and his create distortioing file. Becouse mp3 use HibrydGain and i think his best apply boost over both channels how to use HybridGain over 6ch AAC, or some other soulution. Thanks

kotrtim
28th February 2006, 18:08
dynamic compression + normalize 10% + dialog normalization?

tried this?

dimzon
28th February 2006, 18:14
Well. I'm not a DSP expert but I i think I'm close to truth (correct me if I'm wrong)

How does PostGain work:
Source signal encoded without any tweaks, special tag (ReplayGain) wriiten into mp3 header

How does PreGain work:
Source signal normalized to 100% then encoded. Unfortunally this method can add distortions when decoding (clipping bcz rounding errors)

How does HybrydGain work:
Source signal normalized to 80%-90% (to avoid clipping) then encoded, special tag (ReplayGain)

AFAIK AAC doesn't support ReplayGain tag so you can use only PreGain...

I think dynamic compression+normalize+dialog normalization will help you

shon3i
28th February 2006, 19:47
And how do i know how much normalize. HybridGain normalize exactly as shall

tebasuna51
28th February 2006, 20:39
For ac3 input in Belight don't use ota Pregain/PostGain/HybridGain, instead use Normalize to 100% in Avanced Settings (warning: other value than 100% don't work).

If ac3 sound so quietly for you, reduce the dynamic range with Dynamic Compression Normal and check Dialog Normalization Reduction in Advanced Settings.

Then the azid command line part must look like this:
-azid( -n1 -c normal --maximize )

shon3i
28th February 2006, 23:27
Again is quiet. I use every you say. And experimenting about HybridGain and his apply 6db over mp3. I normalize and apply 6db and i get same effect like a hybridgain but how i know how much db must to apply whitout commpresion to mp3. Aslo AutoGK work same thing and have some program Normalize.exe.

tebasuna51
1st March 2006, 03:46
The maximum output volume you can get with besweet-azid is with Dynamic Compression Heavy and uncheck Dialog Normalization Reduction in Advanced Settings.

Then the azid command line part must look like this:
-azid( -c heavy --maximize )

Any attempt to amplify this can produce clipping.

shon3i
8th March 2006, 21:33
I tryed all but there is distorsion in sound. I think how to use some matrices like ac3 filter to normalize ac3 and than convert to aac. There is posible to use matrices with avs
Can some help with this

Rockaria
8th March 2006, 22:32
I recently did some expeiment with foobar2k v0.83 special on ac3-> aac 6ch transcoding especially on replaygain & ac3 DRC.

ac3 input DRC off + scan file replaygain + 2~5db(avg. 3db) seemed to give me the maximum normalization with no distortion.

http://www.saunalahti.fi/~cse/foobar2000/ : naac.dll + foobar2k v0.83 special(ac3,dts decoding)
http://www.saunalahti.fi/~cse/files/naac.zip : naac.exe(cli aac encoder)

Also simply adding Normalize()(or Normalize(1.0)) in the avs script will give you the maximum normalization with no distortion.
http://forum.doom9.org/showthread.php?t=103069

Try any(or all) of above methods which are very flexible and effective.

shon3i
9th March 2006, 12:15
@Rockaria is that same Normalize like in BeHappy @ 100%

Rockaria
9th March 2006, 13:26
AFAIK, the tool you are mentioning is just a too BIG gui implemention of the Avisynth script audio transcoding environment, restricted to some simplified patternized uses.
I have no idea why you need the various restricted option menues(including all the related maintenances) when you can just type in any supported values in the Avisynth script... Maybe it's developped for easy uses with good looking screens, but sacrificing the flexibility, requiring continuous delayed maintenances, not my favor.

Megui seems supporting avs script as directshowsource("*.avs") supposedly with no patternized restrictions.

dimzon
9th March 2006, 14:24
Megui seems supporting avs script as directshowsource("*.avs") supposedly with no patternized restrictions.
No, it use import("*.avs")

Rockaria
9th March 2006, 14:58
No, it use import("*.avs")
Anyway, it seems to be the better mode(dll server) of the avisynth instance than the dsfilter mode which seemingly requiring two instances(or threads) of the server.
I just wanted to mention, in either ways, it can perform any processing through abundandant of existing compatible straightforward function calls, external(3rd pty) and internal(builtin & user script functions).

http://forum.doom9.org/showpost.php?p=749832&postcount=111
http://forum.doom9.org/showthread.php?p=750072#post750072
http://forum.doom9.org/showthread.php?p=779889#post779889

shon3i
9th March 2006, 17:40
This problem driving me crazy. Rockaria i tryed what you say script looks like this

NicAc3Source("C:\Documents and Settings\Nenad\Desktop\StealthDVD\Stealth T01 3_2ch 448Kbps DELAY -32ms.ac3")
Normalize()

Encoded with foobar 0.8.3 via CT @ 96 via dimzon encAACplus form BeHappy.

I am impressed but is not that. I use NicAC3Source beacouse i ac3 filter plays ac3 files on my machine. I am not lucky beacouse sometimes center channel get big distorzion. And again is litle quietly

How AC3Filter normalize file or PowerDVD. When i play some ac3 with BSPlayer the center channel is good and all is so louder. With 5.1 speakers that is not so prank but on stereo speakers is catasrophe.

@dimzon why ImprotAVS in beHappy can't be used

dimzon
9th March 2006, 17:52
@dimzon why ImprotAVS in beHappy can't be used
Just create .extension file (like described in beHappy thread), place it @ BeHappy folder and use it ;)

shon3i
9th March 2006, 17:56
Just create .extension file (like described in beHappy thread), place it @ BeHappy folder and use it ;)
Please litle help i can find nothing about this.

dimzon
9th March 2006, 18:00
AvsSource.extension
<?xml version="1.0"?>
<BeHappy.Extension xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://workspaces.gotdotnet.com/behappy">
<AudioSource Name="AvsSource" UniqueID="0aa78710-aafd-11da-a746-0800200c9a66">
<Script>Import("{0}")</Script>
<SupportedFileExtension>avs</SupportedFileExtension>
</AudioSource>
</BeHappy.Extension>

I am not lucky beacouse sometimes center channel get big distorzion. And again is litle quietly
Can you just play your AVS using MPC? Does distortions still exists? Maybe distortions is bcz too low encoding bitrate?

shon3i
9th March 2006, 18:04
Can you just play your AVS using MPC? Does distortions still exists? Maybe distortions is bcz too low encoding bitrate?
I think on that and that can be answer beacouse when i try to gain that ac3 and i gain and then encoder need more bitrate to process that. The solution will be some like HibridGain to add gain after encode. But AAC can't reaply Gain.

dimzon
9th March 2006, 18:28
The solution will be some like HibridGain to add gain after encode. But AAC can't reaply Gain.
Try normalize to 90% (Normalize(.9)) and apply this http://altosdesign.com/aacgain/ after ;)

Rockaria
9th March 2006, 19:00
Encoded with foobar 0.8.3 via CT @ 96 via dimzon encAACplus form BeHappy.
I am impressed but is not that.
Many, including me, get good results with foobar2k. What was your process and how was the impression?
Also the foobar2k's generic Replaygain applies to all the decodable formats when played with it.

I am not lucky beacouse sometimes center channel get big distorzion. And again is litle quietly
The distortion and low volume cannot happen together in normal situation(correct source/decoding/encoding).

Up the bit rate to 128 ~ 212kbps for 6ch aac he vbr encoding
Use DRC enabled to reduce the volume range + Normalize(0.92~1.0) if you are doing with the avs script.

shon3i
9th March 2006, 19:09
@Rockaria situation is worse than can be. I must use cbr 96 beacouse i calculate movie with this settings. I have finished encoding movie with x264 and redy to mux with audio an subtitle. I can encode again beacouse i get good quailty and encoding on my system stay aboud 20-24hrs.

How to use repay gain and DRC in foobar2k.

Rockaria
9th March 2006, 19:24
The 96k for 6ch is roughly converted to 37k stereo CBR. I think your CT encoder he VBR has excellent estimation on the result size?
@Rockaria situation is worse than can be.
That is the matter of the tuning. Just take your time.

http://www.hydrogenaudio.org/forums/index.php?act=SF&s=&f=28

You can scan the replaygain by right clicking the clip in the foobar window and choose replaygain-> first item.
You can also play using the replaygain meta data by enabling the DSP in the option screen.

The foobar's replaygain data also can be used in avs scripts AmplifydB(x.y).

One thing to remind is that foobar2k v0.83 aac decoding is broken(thus the replain gain also i guess)

dimzon
9th March 2006, 19:31
@shon3i
It's Your main fault - I strongly reccomend to compress audio first.
In this case maybe better will be dpl2 downmix + encoding 96kbps LC-AAC via iTunes

shon3i
9th March 2006, 19:46
Guys i definitive must go on relax. BIG LOL. I am now finished encoding using BeHappy an CT@96 and avsSource and script looks like Rockaira says but i use NicAC3Source instead Directshowsource and Normalize(). I get very loud aac file without any distorzion and good quality. THANKS GOD and ofcurse DIMZON and ROCKAIRA.

It's Your main fault - I strongly reccomend to compress audio first.
Yes i know that but something has come whrost