View Single Post
Old 9th July 2006, 16:53   #12  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by Kurtnoise13
mmh...Isn't it more useful for decoder side instead of encoder ?
Maybe for Center Mix Level and Surround Mix Level, but this values are taken from BSI when the decoder isn't instructed with another values. At least we can put the default values proposed by Dolby:
Code:
//    if ((s->acmod & 0x01) && s->acmod != 0x01) bitwriter_writebits(&s->bw, 2, 1); /* XXX -4.5 dB */
    if ((s->acmod & 0x01) && s->acmod != 0x01) bitwriter_writebits(&s->bw, 2, 0); // -3 dB (Dolby default)
//    if (s->acmod & 0x04) bitwriter_writebits(&s->bw, 2, 1); /* XXX -6 dB */
    if (s->acmod & 0x04) bitwriter_writebits(&s->bw, 2, 0); // -3 dB (Dolby default)
The Dolby Surround Mode flag is claimed by many users because, when is played by a hardware decoder, can switch automatically to DPL mode.

The Dialogue Normalization is a important parameter in ac3 encode, you can see:
GUIDE: How To Properly Encode Dolby Digital Audio (AC3)
tebasuna51 is online now   Reply With Quote