# Hydrogenaudio Forums

## Digital Audio/Video => Movie/Multichannel audio => Topic started by: wswartzendruber on 2010-04-06 05:09:38

Title: Pro Logic II Algorithms
Post by: wswartzendruber on 2010-04-06 05:09:38
I'm looking for specifics on:

1. How to matrix from 7.1 discrete (Pro Logic IIx).
2. How to dematrix to 4.0 discrete (Pro Logic).
3. How to dematrix to 5.1 discrete (Pro Logic II).
4. How to dematrix to 7.1 discrete (Pro Logic IIx).

Pro Logic has only one dematrixing mode, but Pro Logic II and IIx seems to have three (movie, music, game).
Title: Pro Logic II Algorithms
Post by: SebastianG on 2010-04-06 20:09:28
I only once found a document that explained how 4 channels (left, center, right, surround) are supposed to be mixed into 2 channels so that pro logic decoders can "recover most of it". But no words on how to "decode". I think this is more of a black art.

Here's how the 4-to-2 mixing should be done:
Let L, C, R, S be the 4 input channels (left, center, right, surround)
Let hilbert(.) be a Hilbert transformer (shifts the phase by 90°, I don't remember in which direction)
Out1 = 0.7 * (C + hilbert(S)) + L
Out2 = 0.7 * (C - hilbert(S)) + R

So, you have C and S attenuated by 3 dB and then mixed into both channels where S is additionally phase shifted by +90° and -90° depending on the channel.

I guess you have to make certain additional assumptions in order to be able to recover it. The decoding has to be some nonlinear operation exploiting these additional assumptions, because otherwise you'll have ambiguities. The only things you can observe in the end is the level/intensity of each of the channels Out1 and Out2 (in some local time/frequency region) and the phase differencee between those (in the same local time/frequency region). These are only 3 degrees of freedom for each time/frequency region which somehow might lead to a reconstructed 5.1 sound again ...

Cheers,
SG
Title: Pro Logic II Algorithms
Post by: DVDdoug on 2010-04-06 21:13:17
Yeah, the encoding information that Sebastian mentioned is on Wikipedia (http://en.wikipedia.org/wiki/Dolby_Pro_Logic).

There is some good decoding information on the Dolby website (http://www.dolby.com/DocLibTechLanding.aspx?taxid=212)[/color], but if the nitty-gritty details (or algorithms) are there, I haven't found them.  (For example, when I searched previously I couldn't find anything about the channel-steering response time.)  I have a feeling these are trade secrets, and they might be revealed if you apply for a Dolby license.
Title: Pro Logic II Algorithms
Post by: wswartzendruber on 2010-04-07 06:25:28

Anyway, I got my hands on "Principles Of" worksheets straight from Dolby.  The original Pro Logic specification calls for applying Dolby Type-B noise reduction to the surround channel.  Is this really necessary with PCM?
Title: Pro Logic II Algorithms
Post by: knutinh on 2010-04-07 09:25:28
Quote
Because of the limited nature of the original DPL, many consumer electronics manufacturers introduced their own processing circuitry, such as the "Jazz", "Hall", and "Stadium" modes found on most common home audio receivers. DPL II forgoes this type of processing and replaces it with simple servo (negative feedback) circuits used to derive five channels. In addition to five full range playback channels, Pro Logic II introduced a Music mode which includes optimized channel delays, and adds user controls to - for example - adjust apparent front sound stage width.

I dont understand this. Does anyone else?

-k
Title: Pro Logic II Algorithms
Post by: krabapple on 2010-04-08 04:50:50