The invention relates to a method and a device for processing a stereo signal obtained from an encoder, which encodes an N-channel audio signal into spatial parameters and a stereo down-mix signal comprising first and second stereo signals. The invention also relates to an encoder apparatus comprising such an encoder and such a device.
The invention also relates to a method and a device for processing a stereo down-mix signal obtained by such a method and a device for processing a stereo signal obtained from an encoder. The invention also relates to a decoder apparatus comprising such a device for processing a stereo down-mix signal.
The invention also relates to an audio system comprising such an encoder apparatus and such a decoder apparatus.
For a long time, stereo reproduction of music, for example, in the home environment has been prevailing. During the 1970s, some experiments were done with four-channel reproduction of home music equipment.
In larger halls, such as film theatres, multi-channel reproduction of sound has been present for a long time. Dolby Digital® and other systems were developed for providing realistic and impressive sound reproduction in a large hall.
Such multi-channel systems have been introduced in the home theatre and are gaining wide interest. Thus, systems having five full-range channels and one part-range channel or low-frequency effects (LFE) channel, referred to as 5.1 systems, are common on the market today. Other systems also exist, such as 2.1, 4.1, 7.1 and even 8.1.
With the introduction of SACD and DVD, multi-channel audio reproduction is gaining ground. Many consumers already have the possibility of multi-channel playback in their homes, and multi-channel source material is becoming popular. However, many people still have only 2-channel reproduction systems, and transmission usually takes place via 2 channels. For this reason, matrixing techniques like e.g. Dolby Surround® were developed, to make transmission of multi-channel audio via 2 channels possible. The transmitted signal can be played back directly with a 2-channel reproduction system. When an appropriate decoder is available, multi-channel playback is possible. Well-known decoders for this purpose are Dolby Pro Logic® (I and II), (Kenneth Gundry, “A new active matrix decoder for surround sound”, In Proc. AES 19th International Conference on Surround Sound, June 2001) and Circle Surround® (I and II) (U.S. Pat. No. 6,198,827: 5-2-5 matrix system).
Because of the increased popularity of multi-channel material, efficient coding of multi-channel material is becoming more important. Matrixing reduces the number of audio channels required for transmission and thus reduces the required bandwidth or bit rate. An extra advantage of the matrix technique is that it is backward compatible with stereo reproduction systems. For further reduction of the bit rate, a conventional audio coder can be applied to encode the matrixed stereo signal.
Another possibility to reduce the bit rate is by encoding all the individual channels without matrixing. This method results in a higher bit rate, because five channels have to be encoded instead of two, but the spatial reconstruction can be much closer to the original than by applying matrixing.
In principle, the matrixing process is a lossy operation. Therefore, perfect reconstruction of the 5 channels from only a 2-channel mix is generally impossible. This property limits the maximum perceptual quality of the 5-channel reconstruction.
Recently, a system has been developed that encodes multi-channel audio as a 2-channel stereo audio signal and a small number of spatial parameters or encoder information parameters P. Consequently, this system is backward compatible for stereo reproduction. The transmitted spatial parameters or encoder information parameters P determine how the decoder should reconstruct five channels from the available two-channel stereo down-mix signal. Due to the fact that the up-mix process is controlled by transmitted parameters, the perceptual quality of the 5-channel reconstruction improves considerably as compared to up-mix algorithms without controlling parameters (e.g., Dolby Pro Logic).
In summary, three different methods can be applied to generate a 5-channel reconstruction from a provided two-channel mix:
It may be of interest to combine methods 2 and 3 mentioned above to a single system. This ensures maximum quality, dependent on the available decoder. For consumers who have a matrix surround decoder, such as Dolby Pro Logic or Circle Surround, a reconstruction is obtained in accordance with the matrix process. If a decoder is available that is able to interpret the transmitted parameters, a higher quality reconstruction can be obtained. Consumers who do not have a matrix surround decoder or a decoder that can interpret the spatial parameters can still enjoy the stereo backward compatibility. However, one problem of combining methods 2 and 3 is that the actual transmitted stereo down-mix will be modified. This, in turn, might have an adverse effect on the 5-channel reconstruction using the spatial parameters.
It is an object of the invention to provide a method allowing combination of parametric multi-channel audio coding with matrixing techniques, with which method a full-quality multi-channel reconstruction can be realized, independent of the available decoder.
According to the invention, this object is achieved by means of a method of processing a stereo signal obtained from an encoder, which encodes an N-channel audio signal into spatial parameters and a stereo down-mix signal comprising first and second stereo signals, the method comprising the steps of:
adding a first signal and a third signal to obtain a first output signal, wherein said first signal comprises said first stereo signal modified by a first complex function, and wherein said third signal comprises said second stereo signal modified by a third complex function; and
adding a second signal and a fourth signal to obtain a second output signal, wherein said fourth signal comprises said second stereo signal modified by a fourth complex function and wherein said second signal comprises said first stereo signal modified by a second complex function;
wherein said complex functions are functions of said spatial parameters and are chosen to be such that an energy value of the difference between the first signal and the second signal is larger than or equal to the energy value of the sum of the first and the second signal, and such that the energy value of the difference between the fourth signal and the third signal is larger than or equal to the energy value of the sum of the fourth signal and the third signal. Accordingly, front/back steering in the decoder is enabled.
The energy value of these difference and sum signals may be based on the 2-norm (i.e. sum of squares over a number of samples) or the absolute value of these signals. Also other conventional energy measures may be applied here.
In an embodiment of the invention, the N-channel audio signal comprises front-channel signals and rear-channel signals, and said spatial parameters comprise a measure of the relative contribution of the rear channels in the stereo down-mix as compared to the contribution of the front channels therein. This is because selection of rear-channel contribution is necessary.
The magnitude of said second complex function may be smaller than the magnitude of said first complex function to enable left/right rear steering and/or the magnitude of said third complex function is smaller than the magnitude of said fourth complex function.
The second complex function and/or the third complex function may comprise a phase shift, which is substantially equal to plus or minus 90 degrees in order to prevent signal cancellation with front channel contribution.
In another embodiment of the invention, said first function comprises first and second function parts, wherein the output of said second function part increases when said spatial parameters indicate that a contribution of the rear channels in said first stereo signal increases as compared to the contribution of the front channels, and said second function part comprises a phase shift which is substantially equal to plus or minus 90 degrees. This is to prevent signal cancellation with front channels. Moreover, said fourth function may comprise third and fourth function parts, wherein the output of said fourth function part increases when said spatial parameters indicate that the contribution of the rear channels in said second stereo signal increases as compared to the contribution of the front channels, and said fourth function part comprises a phase shift which is substantially equal to plus or minus 90 degrees.
The first function part may have an opposite sign as compared to said fourth function part. The second function may have an opposite sign as compared to said third function. The second function and the fourth function part may have the same sign, and the third function and the second function part may have the same sign.
In another aspect of the invention, a device is provided for processing a stereo signal in accordance with the above-mentioned methods, and an encoder apparatus comprising such a device.
In another aspect of the invention, a method is provided for processing a stereo down-mix signal comprising first and second stereo signals, the method comprising the step of inverting the processing operation in accordance with the above-mentioned methods.
In another aspect of the invention, a device is provided for processing a stereo down-mix signal in accordance with the above-mentioned method of processing a stereo down-mix signal, and a decoder apparatus comprising such a device.
In yet another aspect of the invention, an audio system is provided, comprising such an encoder apparatus and such a decoder apparatus.
Further objects, features and advantages of the invention will appear from the following detailed description of the invention with reference to embodiments thereof and to the appended drawings, in which:
The inventive method is able to make matrix decoding possible without degrading the parametric multi-channel reconstruction. That is possible because the matrixing techniques are applied in the encoder after down-mixing, in contradiction with usual matrixing, which is done before down-mixing. The matrixing of the down-mix is controlled by the spatial parameters.
If the applied matrix is invertible, the decoder can undo the matrixing based on the transmitted encoder information parameters P.
Conventionally, matrixing is applied on the original N-channel input signal. However, this approach is not suitable here, since inversion of this matrixing, which is a prerequisite for correct N-channel reconstruction, is generally impossible, because only 2 channels are available at the decoder. Thus, one feature of this invention is to replace the matrixing technique, which is normally applied on the 5-channel mix, by a parameter-controlled modification of the two-channel mix.
Conventionally, the encoded stereo channel signals L0 and R0 and encoder information parameters P are transmitted or distributed to the user in a suitable way, such as by CD, DVD, broadcast, laser disc, DBS, digital cable, Internet or any other transmission or distribution system, indicated by the circle 4 in
Now, assume an N-channel audio signal, with N being an integer which is larger than 2, and where z1[n], z2[n], . . . , zN[n] describe the discrete time-domain waveforms of the N channels. These N signals are segmented by using a common segmentation, preferably using overlapping analysis windows. Subsequently, each segment is converted to the frequency domain, using a complex transform (e.g. FFT). However, complex filter-bank structures may also be appropriate to obtain time/frequency tiles. This process results in segmented, sub-band representations of the input signals, which will be denoted by Z1[k], Z2[k], . . . , ZN[k] with k denoting the frequency index.
From these N channels, 2 down-mix channels are created, namely LO[k] and RO[k]. Each down-mix channel is a linear combination of the N input signals:
The parameters αi and βi are chosen to be such that the stereo signal consisting of LO[k] and RO[k] has a good stereo image.
On the resulting stereo signal, a post-processor 5 can apply processing in such a way that it mainly affects the contribution of a specific channel i in the stereo mix. As processing, a specific matrixing technique can be chosen. This results in the left and right matrix-compatible signals LOw[k] and ROw[k]. These, together with the spatial parameters are transmitted to the decoder as illustrated by the circle 6 in
The post-processed signals L0w and R0w may be supplied to a conventional stereo receiver (not shown) for playback. Alternatively, the post-processed signals L0w and R0w may be supplied to a matrix decoder (not shown), e.g. a Dolby Pro Logic® decoder or a Circle Surround® decoder. Yet another possibility is to supply the post-processed signals L0w and R0w to an inverse post-processor 7 for undoing the processing of the post-processor 5. The resulting signals L0 and R0 can be supplied by the post-processor 7 to a multi-channel decoder 3. The device for processing a stereo down-mix signal comprises the inverse post-processor 7. The decoder apparatus according to the invention comprises the decoder 3 and the inverse post-processor 7.
In the decoder 3, the N input channels are reconstructed as follows:
{circumflex over (Z)}i[k]=C1,Z
where {circumflex over (Z)}i[k] is an estimate of Zi[k]. The filters C1,Z
The magnitude of g2 is preferably smaller than the magnitude of g1. This allows left/right rear steering in the decoder.
The right input signal RO[k] is modified by a fourth function g4, which results in a fourth signal ROwR[k], which is fed to the right output ROw[k]. The right input signal RO[k] is also modified by a third function g3, which results in a third signal LOwR[k], which is fed to the left output LOw[k]. The functions g3 and g4 are chosen, such that the amount of processing of the right input channel increases when the contribution of the right rear in RO[k] increases, and also such that subtracting L0wR from R0wR results in a larger signal than adding them.
The magnitude of g3 is preferably smaller than the magnitude of g4. This allows left/right rear steering in the decoder.
The output can be described by means of the following matrix equation:
A parametric multi-channel encoder is described below. The following equations are applied:
L0[k]=L[k]+Cs[k]
R0[k]=R[k]+Cs[k]
in which Cs[k] is the mono signal that results after combining the LFE channel and center channel. The following equations holds for L[k] and R[k]:
where Lf is the left-front, Ls the left-surround, Rf the right-front and Rs the right-surround channel. The constants c1 to c4 control the down-mix process and may be complex-valued and/or time and frequency-dependent. An ITU-style down-mix is obtained for (c1, c3=sqrt(2); c2, c4=1).
In the decoder, the following reconstruction is performed:
{circumflex over (L)}[k]=βL0[k]+(γ−1)R0[k]
{circumflex over (R)}[k]=(β−1)L0[k]+γR0[k]
Ĉ[k]=(1−β)L0[k]+(1−γ)R0[k]
where {circumflex over (L)}[k] is an estimate of L[k], {circumflex over (R)}[k] an estimate of R[k] and Ĉ[k] an estimate of Cs[k]. The parameters β and γ are determined in the encoder and transmitted to the decoder, i.e. they are a subset of the encoder information parameters P. Additionally, the information signal P may include (relative) signal levels between corresponding front and surround channels, i.e. an Inter-channel Intensity Difference (IID) between Lf, Ls, and Rf, Rs, respectively. A convenient expression for the IID1, describing the energy ratio between Lf and Ls is given by
When these parameters are used, the scheme in
In
The function part g12 and the function g3 both contain a phase shift of plus or minus 90 degrees. This is to prevent cancellation of the front channel contribution (output of function part g11).
The following generalized equations hold for the post-processing parameters w1 and wr:
w1=f1(p)
wr=fr(p)
The blocks Φ−90 are all-pass filters that perform a 90-degree phase shift. The blocks G1 and G2 in
where:
G1=f1(w1,wr)
G2=f2(w1,wr)
So the functions g1 . . . g4 are replaced by more specific functions:
g1=1−w1+w1Φ−90
g2=−w1Φ−90G1
g3=wrΦ−90G2
g4=1−wr=wrΦ−90
The inverse of the matrix H is given by (if det(H)≠0):
Hence, usage of suitable functions in the matrix H allows the matrixing process to be inverted.
The inversion can be done in the decoder without the necessity to transmit additional information, because the parameters w1 and Wr can be calculated from the transmitted parameters. Thus, the original stereo signal will be available again which is necessary for parametric decoding of the multi-channel mix.
Even better results can be achieved if the gains G1 and G2 are a function of the inter-channel intensity difference (IID) between the surround channels. In that case, this IID has to be transmitted to the decoder as well.
Given the above-mentioned parameter description, the following functions are used for the post-processing operation:
w1=f1(α1)f2(β)
wr=f3(αr)f4(γ)
Here f1 . . . f4 may be arbitrary functions. For example:
The all-pass filter Φ−90 can be efficiently realized by performing a multiplication in the (complex-valued) frequency domain with the complex operator j (j2=1). For the gains G1 and G2 a function of w1, wr can be taken as is done in Circle Surround, but also a constant is suitable with the value 1/√{square root over (2)}. This results in the matrix:
The determinant of this matrix is equal to:
The imaginary part of this determinant will only be equal to zero when w1=wr. In that case, the following holds for the determinant:
This function has a minimum of
Consequently, also for w1=wr this matrix is invertible. Hence for gains G1=G2=1/√{square root over (2)} the matrix H is always invertible, independent of the values w1 and wr.
Consequently, when the functions g1 . . . g4 can be determined in the decoder, the functions k1 . . . k4 can be determined. The functions k1 . . . k4 are functions of the parameter set P, like the functions g1 . . . g4. For inversion, the functions g1 . . . g4 and the parameter set P therefore need to be known.
The matrix H can be inverted when the determinant of the matrix H is unequal to zero, i.e.:
det(H)=g1g4−g2g3≠0
This can be achieved by a proper choice of the functions g1 . . . g4.
Another application of the invention is to perform the post-processing operation on the stereo signal at the decoder side only (i.e. without post-processing at the encoder side). Using this approach, the decoder can generate an enhanced stereo signal from a non-enhanced stereo signal. This post-processing operation on the decoder side only may be further elaborated in a situation in which, in the encoder, the multichannel input signal is decoded into a single (mono) signal and associated spatial parameters. In the decoder, the mono signal may first be converted into a stereo signal (using the spatial parameters) and thereafter this stereo signal may be post-processed as described above. Alternatively, the mono signal may be decoded directly by a multichannel decoder.
It is to be noted that use of the verb “comprise” and its conjugations does not exclude other elements or steps and that use of the indefinite article “a” or “an” does not exclude a plurality of elements or steps. Moreover, reference signs in the claims shall not be construed as limiting the scope of the claims.
The invention has been described with reference to specific embodiments. However, the invention is not limited to the various embodiments described but may be amended and combined in different manners as is apparent to a skilled person reading the present specification.
Number | Date | Country | Kind |
---|---|---|---|
04103365.5 | Jul 2004 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB05/52254 | 7/7/2005 | WO | 1/9/2007 |