PDA

View Full Version : Rencode ac3 448 to 384 via behappy+aften


Moti172
28th March 2007, 23:23
Hi
I want to encode 448Khz ac3 stream to 384Khz.
Usually I use command:
azid -d3/2 -L0 -l1 -ol,c,r,sl,sr,lfe --maximize 1.ac3 1.wav
to create wav and HeadAC3he_0.24a13 (global gain +6db) to encode the wav to ac3.

How should I configure behappy to receive the same results?
I want to preserve the original configuration of the ac3 stream.

Does NicAudio.dll preserve the ac3 channels order?
Should and how can I increase the global gain when using aften?

Thanks

tebasuna51
29th March 2007, 04:07
Does NicAudio.dll preserve the ac3 channels order?
Of course not, because when a decoder change the format (ac3 -> pcm wav) must send a standard ordered channels in output format: l,r,c,lfe,sl,sr

But, not problem, a good encoder like Aften know the order of the pcm wav input format and, internally, convert the order to the ac3 specs.

You are right using -ol,c,r,sl,sr,lfe to encode with ac3enc.dll (BeSweet or HeadAC3he_0.24a13) but using BeHappy you don't need think about channelmapping, is automatic .
Should and how can I increase the global gain when using aften?
The Global Gain +6db that I recommend for use with HeadAC3he_0.24a13-ac3enc.dll is to compensate the bug in ac3enc.dll than always produce a output -6 dB.

First with ffmpeg and after with Aften the problem is solved and the volume output is the same than input, then is not necesary this compensation. You can forget this with Aften.

How should I configure behappy to receive the same results?
Open the ac3 with NicAc3Source without DRC.
Normalize (this is the equivalent to --maximize and now you have the peaks at 100%, any other gain produce clip).
Encode with Aften (DRC=None, DialNorm=31 to be equivalent to HeadAC3he, but maybe you can use the original values to make this better)

Moti172
29th March 2007, 19:51
Thank you very much for your's answers.

Moti172
29th March 2007, 19:59
By the way , how can I now what are the original values of the ac3 stream?

tebasuna51
30th March 2007, 02:12
By the way , how can I now what are the original values of the ac3 stream?
The Dialog Normalization is a field in ac3 header and can be know opening the ac3 in Sonic Foundry Soft Encode for instance.

The DRC used is not a field in header and we only can suppose by the kind of source, or analyzing the original ac3 decoded with and without the DRC applied.