Audio Engineering Society

Convention Paper Presented at the 121st Convention 2006 October 5–8 San Francisco, CA, USA This convention paper has been reproduced from the author's advance manuscript, without editing, corrections, or consideration by the Review Board. The AES takes no responsibility for the contents. Additional papers may be obtained by sending request and remittance to Audio Engineering Society, 60 East 42nd Street, New York, New York 10165-2520, USA; also see www.aes.org. All rights reserved. Reproduction of this paper, or any portion thereof, is not permitted without direct permission from the Journal of the Audio Engineering Society.

Compression Artifacts in Perceptual Audio Coding Chi-Min Liu, Han-Wen Hsu, Chung-Han Yang, Shou-Hung Tang, Kan-Chun Lee, Yung-Cheng Yang, Chia-Ming Chang and Wen-Chieh Lee PSPLab, Department of Computer Science, National Chiao Tung University, Hsin-Chu, 330, Taiwan [email protected]

ABSTRACT Perceptual audio coding achieves high compression ratio by exploiting the perceptual irrelevance and data redundancies. By the use of advanced and sophisticated signal processing techniques, perceptual coding has generated artifacts sounding very different from the traditional distortions. In audio industry, it is always an important step to maturing a technology by modeling, measuring, and listening the artifacts induced from the technology. In the past, there have been some types of artifacts defined in linear quantization or MP3 music tracks. With the advance of the new coding modules in AAC, SBR, and parametric coding, various new types of artifacts are generated. This paper models the frequently induced audible artifacts and analyzes the problematic encoder modules.

1. INTRODUCTION Digital audio coding is always the kernel technology to multimedia industry. The great progress in audio compression has facilitated the development of numerous applications, such as audio storage, broadcasting, and transmission. Recently besides the conventional audio codecs, such as MP3, AAC, and AC-3 that are adapted for DVD and VCD, some advanced coding technologies, such as spectral band replication (SBR) [1]-[3] and spatial audio coding [4][10], are innovated to obtain nearly the CD-quality at very low bit rate.

From the very beginning of developing audio recording technology, the progress can always be reflected from the successful modeling of the inherent distortion and then the distortion reduction or removal. The advance of the recording technologies from analog audio, digital audio, to perceptual coding has brought the accompanied distortions like wow&flutter, tape saturation, crosstalk, aliasing, quantization nonlinearity, group delay, pre-echo, birdies, etc [11]. With the advance of the new technologies in AAC, SBR, and parametric coding, various new types of artifacts are generated. Although it is commonly claimed that the perceptual audio coding could encode an audio signal transparently by the assistant of human auditory perception, various annoying artifacts are generated due to an insufficient available bit rate, an inaccurate

C. M. Liu et al.

Compression Artifacts

masking estimation, or the inherent effects of coding technologies. Moreover, the new types of artifacts are becoming hard to modeling and analyzing due to the large number of modules inside the encoder. This paper models the frequently induced audible artifacts and analyzes the problematic encoder modules. In our previous works [13]-[18], some coding artifacts including the inherent effects of TNS (temporal noise shaping) in MPEG-4 AAC, band-limited and zero band problems in MP3 and AAC, has been present. This paper will further collect a variety of artifacts at several codecs that include MP3, AAC, HE-AAC, and HEAAC version 2. 2.

included in frequency-based decoders, such as MP3, AAC and HE-AAC, to conceal the artifacts without prior information on the original audio tracks. Figure 1(c) and Figure 2-(c) illustrate the enhanced spectrums by the patch method to cancel these artifacts to make the audio “brighter” and reduce the birdie effect. The other related works about the topic of the audio enhancement can also refer to [19]-[23].

(a) The original audio signal spectrum

COMMON ARTIFACTS

Some common artifacts in perceptual audio coding has been introduced in numerous literatures [1][12]. This section reviews three critical artifacts, including “birdies” effect, “band-limited” and “pre-echo”. 2.1.

(b) The compressed spectrum with two zero bands

Band-limited Effect and Birdie Effect

The bit rate constraint inevitably leads to some artifacts, especially two typical singular phenomena in spectrum—“spectral valley” and “spectral clipping”. Spectral valley, as shown in Figure 1-(b), is defined as a zero band where all the frequency lines are quantized as zero value. Spectral valley phenomenon is mainly due to unsuitable bit allocation policies or excessive masking energy estimation. Unfortunately, human hearing is always very sensitive to the “birdies” effect, caused by zero bands. Spectral clipping, as shown in Figure 2-(b), is from the clipping of the HF contents in audio processing, and leads the audio to sound “muffled”. There are two main reasons losing HF components of digital audio signals. One is the reduction of sampling rate in audio signals. To avoid the aliasing effect, a wideband signal should be band-limited to a narrowband signal to meet the Nyquist sampling rate. Furthermore, under the restriction of the limited bit rate for compression, most audio codec’s scarify the bits required for HF and put all available bits to the LF part that is more relevant for human hearing.

(c) The compressed spectrum with zero band dithering Figure 1: Spectral valley phenomenon and it’s enhancement

(a) The original audio signal spectrum

(b) The compressed spectrum with narrow bandwidth

There are many attempts to reduce the two annoying artifacts. For example, [14]-[16] has proposed a spectrum patch method, containing the zero band dithering and high frequency reconstruction, to handle these artifacts in the decoders. The technique can be

(c) The compressed spectrum with high frequency reconstruction Figure 2: Spectral clipping phenomenon and it’s enhancement

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 2 of 16

C. M. Liu et al.

Compression Artifacts

Figure 3: The illustration of the pre-echo phenomenon 2.2.

Figure 4: Post-masking, pre-masking and simultaneous masking [24] noise. Through the suitable switch of block length, it will effectively enhance the pre-echo effect [17][27].

Pre-echo Effect

The “pre-echo” phenomenon, as illustrated in Figure 3, is one of the most common artifacts in audio coding, and suffers from the confliction of the T/F resolution according to Heisenberg uncertainty principle. In the perceptual audio coding, the T/F mapping module is an essential tool. To decide the appropriate size of the transform block is always a major challenge. When the block size is longer, for the stationary signal, the redundancy can be eliminated more easily and hence the coding gain increases. However, when a transient signal or an audio attack is coded in the frequency domain, the quantization error is spread throughout the entire signal block in the time domain [25]. Since the part of the signal prior or posterior to the attack is relatively small, the attack contributes most of the energy to the signal block, and thus controls the generation of the masking threshold [26]. However, the smaller signal component is unable to mask the noise and lead to the quality degradation. The affection of the noise spreading depends on the temporal masking effect largely. The temporal masking includes simultaneous masking, pre-masking and postmasking, as shown in Figure 4. The effective duration of pre-masking and post-masking are approximately 20 ms and 100 ms respectively. Take for example the AAC; the size of the long block is 2048 samples. Under the sampling rate of 44.1 kHz, the duration of the block is up to 46 ms. If the attack appears in the front of the block, the quantization noise might be masked by the post-masking effect. Otherwise, if the signal is in the behind of the block, because the pre-masking lasts for no more than 20 ms, the spreading of quantization error is easy to be heard and leads to the annoying pre-echo effect. Therefore, a shorter window size of 256 samples, about 5.8 ms at the sample rate of 44.1 kHz, is also offered in AAC to control the spreading range of the

3.

ARTIFACTS IN TEMPORAL NOISE SHAPING

There are three inherent artifacts of TNS which have been proposed in [18]. The first is similar to the Gibbs phenomenon which has high noise level at the edge of the attack signal. The second is the time-domain aliasing noise. The third is the noise spreading with the TNS filter orders. This section overviews the three artifacts. 3.1.

TNS Overview

x[k ]

d [k ]

u[k ]

xˆ[k ]

Quantizer Quantizer Q Q

− Linear Predictor Linear Predictor H H

Linear Predictor Linear Predictor H H

Analysis Part

Synthesis Part

Figure 5: Open-loop prediction coding scheme in TNS The TNS filter shapes quantization noise with openloop predictive coding as shown in Figure 5, where x k is the frequency-domain input signal in the

[]

[]

is the frequency-domain analysis part, xˆ k reconstructed signal in the synthesis part. The relation between the reconstructed error r k and the

[]

[]

quantization error q k can be expressed by the Ztransform equation

R[ z ] =

Q[z ] . 1 − H [z ]

(1)

[]

[ ] −1

The envelop of the inverse filter I z = (1 − H z ) will approximate the envelope of the input signal X z in time domain. Therefore, the quantization error

[]

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 3 of 16

C. M. Liu et al.

Compression Artifacts

Q[z ] can be shaped to R[z ] according to the envelope of X [z ] in time domain. Hence, the reconstructed error is centralized at the signal attack, and the pre-echo effect is enhanced as illustrated in Figure 6. The more detail description about TNS can refer to [18][28]-[31].

point is affected by the radius r. Therefore, the quantization error is spread out before the attack signal by the inverse filter I z . Figure 8 illustrates the noise signal which is the difference between the original and decoded signals without or with TNS. Although the preecho effect is reduced in general, it can find that the noise around the attacking time interval is amplified after the TNS applied. If the noise is controlled to be localized around the attacking time, the artifact may not be very sensitive to the human hearing due to the premasking effect.

[]

(a) The original signal in time domain

(b) The coded signal without TNS Figure 7: Time response for a single pole, with θ = π , r=1(the sharpest), 0.9, 0.7

(c) The coded signal with TNS Figure 6: TNS effect 3.2.

Artifacts in TNS (a) The original signal in time domain

Besides the window switch [17][27], TNS is also a very effective mechanism to eliminate the pre-echo phenomenon. However, the lapping operation of MDCT will create artificial time-domain aliasing and result in singular shaping. The aliasing noise becomes more serious with the increased prediction order. Furthermore, a discontinuity approximation problem similar to the Gibbs phenomenon is also considered.

(b)The quantization noise without TNS

3.2.1. Noise Amplification around Attack By (1), the quantization error is filtered with the inverse filter I z which is an all-pole filter. However, when the pole is far away from the unit circle, the width of the resonance point will be wider. In Figure 7, it’s an single

[]

1 pole filter , where ϑ is set as π and the r is z − re jϑ 1, 0.9 and 0.7. Obviously, the width of the resonance

(c) The quantization noise with TNS Figure 8: TNS artifact—Noise amplification around attack

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 4 of 16

C. M. Liu et al.

Compression Artifacts

(a) The original signal in time domain

(a) The original signal in time domain

(b) The coded signal without TNS

(b) The coded signal without TNS

(c) The coded signal with TNS

(c) The coded signal with TNS

Figure 9: TNS artifact—pre-aliasing artifact

Figure 10: TNS artifact—postaliasing artifact

(a)The quantization noise without TNS

(b)The quantization noise with order 3

(b)The quantization noise with order 12 Figure 11: TNS artifact—The effect from the different filter order

3.2.2. Time-Domain Aliasing The ideal envelope of the inverse filter I[z] should be similar to the envelope of the time-domain input signal. However, instead of DFT, MDCT is usually used to be the T/F mapping tool in audio coding due to the advantage of frame overlapping. However, as shown in Figure 12, the MDCT operation can be decomposed into the “time-domain aliasing” and the “SDFT” [18][32]-[34]. Artificial pre/post-aliasing attack will be introduced due to the time-domain aliasing of MDCT illustrated in Figure 13. MDCT x[n]

xˆ[n]

Windowing Windowing

Time Domain Time Domain Aliasing Aliasing

~ x [n]

(a) the input signal x[n] and the sine window

(b) the output of the shaper module xˆ[ n]

(c) the output of SDFT-1

(d) the final output behind the sine window

~ x [k ]

SDFT SDFT

x ' [ n]

TNS TNS

Figure 13: Illustration of the outputs of the procedures in Figure 12 Quantizer Quantizer

IMDCT x′[n]

~ x′[n]

Windowing Windowing

ISDFT ISDFT

~ x′[k ]

ITNS ITNS

Figure 12: The decompositions of MDCT and IMDCT

Therefore, instead of capturing the original timedomain envelope, the shaping effect of the inverse filter I[z] will fit the aliased time-domain envelope. As a result, the quantization noise will be amplified by the non-ideal inverse filter I[z] and the aliasing may occur at the annoying position such as silence range. Figure 9 and Figure 10 illustrate the pre-aliasing and the postaliasing artifacts respectively.

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 5 of 16

C. M. Liu et al.

Compression Artifacts

3.2.3. Noise from High-Order Prediction Filter In general, the coding gain increases with the order of the prediction filter. Hence, the quantization noise may be considered to shape better with the increase of filter order. It means that the noise will be more concentrated on the signal with high energy. Consequently, the prealiasing and the post-aliasing artifact will increase with the order. Figure 11 illustrates from the TNS with order 3 and order 12. There exists a tradeoff between the coding gain and the artifact harm. 4.

ARTIFACTS IN SBR

The three main reconstruction procedures of SBR can be illustrated through Figure 14 and Figure 15. In the HF regeneration module, the low QMF bands analyzed from the decoded LF AAC signal are replicated to HF as illustrated in Figure 15-(b), and further inversely filtered to clip the unwanted huge tones from LF. In Figure 15-(c), at the second phase, the envelope of the replicated bands is scaled to fit the original one that is recoded by the average energy data in the T/F grids as shown Figure 16. Finally, as shown in Figure 15-(d), the additional compensation of tones and noise can be added to scale the tonality of the reconstructed signal. All the required auxiliary information are extracted from the SBR encoder as Figure 17.

Extremely different from the traditional transform or subband coding schemes such as AAC and MP3, the SBR [1]-[3] takes the advantage of the high similarity between LF and HF spectrums to reconstruct the HF bands through LF bands. The efficient coding method of HF will result in some new types of artifact. For example, the inaccurate locations of reconstructed tones need not to be considered in AAC due to the fine coding unit down to frequency line. However, as shown below, a singular artifact named as “tone shift effect” is usually inseparable with SBR. 4.1.

SBR Overview

(b) HF regeneration by LF band replication

(c) Envelope adjustment

(d) Tone/noise compensation Figure 15: The HF reconstruction process of SBR

AAC Core Decoder

AAC Bitstream

SBR Bitstream

(a) the LF decoded signal from AAC

SBR Decoder HF Generator

QMF Analyser

Envelope Adjuster Tone/Noise Compensator

QMF Synthesizer

HE-AAC Audio Reconstruction

Figure 14: Diagram of the SBR decoder

PCM Signal

Down Sampler

AAC Core Encoder SBR Encoder

QMF Analyser

Envelope Extractor

Tonality Estimator

Inverse Filter

Bitstream Formatter

According to the harmonic phenomenon, the SBR reconstructs high bands by reproducing and adjusting the replicated low bands perceptually similar to original ones. With SBR taking care of the HF content by a small amount of control parameters, the underlying perceptual audio encoder can compress the LF part with most of the available bits. Hence, SBR can not only increase the audio bandwidth, but improve the quality of underlying codec at low bit rates.

Figure 16: An example of time/frequency grid in SBR[3]

Coded Audio Stream

Parameter Extractor

Figure 17: Diagram of the SBR encoder

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 6 of 16

C. M. Liu et al.

4.2.

Compression Artifacts

Artifacts in SBR

In the following subsections, there are four artifacts to be considered. The artifacts come from either the unsuitable module design or the inherent drawback of the HF approximation by the SBR process. To understanding the artifact-generated sources and the perceptual damage of the artifacts is critical to the design of the SBR. 4.2.1. Tone Trembling Effect The basic principle of SBR is to reconstruct the high bands by replicating the low bands. The corresponding relation between the replicated low bands and the original high bands is determined by the patching process in SBR. Furthermore, there are three constituting factors for the patching process, including master frequency band table, the start and the stop boundaries of the SBR range. Through variable frequency band tables, the frequency resolution of encoding can be adaptive for the spectral envelopes. Also depending on the encoding difficulty of LF part, the SBR range is variable to adapt different conditions. Therefore, a highly flexible design of SBR to the promotion of the overall quality usually needs to switch the table or modify the range, and unavoidably results in the spectral discontinuity due to altering the LF replication source. For example, assume that the 8th low band has been replicated into some high band at last frame, the replicated source for the high band may be changed as the 10th low band at the present frame once the patching relation alters.

(a) Normal spectrogram (b)Abnormal spectrogram Figure 18: Tone trembling effect in spectrogram, where the vertical coordination is the frequency range from 0 to 20 k and horizontal coordination is the time with frames

The phenomenon that the replicated source changes constantly will cause the spectral discontinuity in the subbands. For noise-like signals, the resultant discontinuity level of the reconstructed spectrum is small, and hence the artifact is not sensitive to human hearing. However for tone-rich signals, this artifact is much more serious. As shown in Figure 18, by an artificial example with frequently table changing to protrude the problem, it is obvious to observe the spectral discontinuity effect. The “billow-like” spectrogram originates from the replicated LF tones. For the hearing perception, this artifact causes the signal to sound like “trembling” or “sparkling”. Therefore, this phenomenon is referred to as the “tone trembling” effect. To analytically model the effect, each specific replicated LF tone can be formulated as sˆ[n] = A[n] exp(i (ϖ [n]⋅ n + Θ )) , (2)

[]

where A n is the amplitude which is scaled by energy

[]

adjustment, ϖ n is the central frequency, and Θ is the phase. As the patching relation changes, the central frequency ϖ (n ) is also altered depending on the outcome frequency location. Hence, the replicated tone can be viewed as a frequency modulation signal, and it is easy to visualize the sparkling sound effect. 4.2.2. Tone Shift Effect For the tone-rich signals such as flute, there is a dense harmonic structure with regularly distributed tone series as illustrated in Figure 19-(a). Furthermore, there is also an apparent phenomenon named as the “tone shift” effect attached with the tone-rich signal. From Figure 19-(b), the obvious offsets between the recreated tones and the original ones come from the direct replication of low bands. The exact match of tones is almost impossible by the direct replication. To reconstruct the accurate harmonic, the adding mechanism of additional tones may apply after the inverse filtering is used to eliminate the tones in the replicated low bands. However, the process method is unpractical. The inverse filtering used in SBR decoder is only second order, and can not clearly clip the tones. Also, the numerous number of tones needs to consume many available bits. Therefore, because of the ineffectiveness and bit-consuming burden, the tone shift artifact is usually ignored. Fortunately, the slight

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 7 of 16

C. M. Liu et al.

Compression Artifacts

offsets is not almost perceived by human hearing with coarser resolution in high frequency.

correction in encoder part to enhance the problem proposed in [13].

(a) The original audio signal spectrum

(a) Noise-floor overflow due to the tone losing

(b) Comparison of the original and decoded spectrums Figure 19: Tone shift effect 4.2.3. Noise-Floor Overflow and Tonal Spike The SBR module can be considered as a simulator of high bands according to low bands. Undoubtedly, the approximation will bring some inherent differences between the original and the simulated HF signals. Like the tone shift effect, the phenomenon of “noisefloor overflow” is also a common artifact in SBR due to some tone losing in a T/F grid. After the envelope adjustment in decoder, the inconsistent content of the noise-like replicated low band and the tonal original high band will cause the huge promotion of the noise floor in the replicated low band to compensate the energy of the lost tones. The “noise-floor overflow” phenomenon, as shown in Figure 20, produces a fizzy sound in perception and results in serious quality degradation. Especially, for the signals with huge tone component such as glockenspiel in Figure 20-(b), the spectrogram suffers easily from the artifact. The accuracy of tonality measurement is critical for the artifact, because either the underestimation of the tonal energy or the overestimation of the energy of noise component will lead to the noise-floor overflow. However, the constraint of SBR syntax restricts the location and the number of the added additional tones, and hence the noise-floor overflow effect is still unavoidable possibly even with accurate tonality measurement. There is a method of noise-floor

(b) A injured spectrogram of glockenspiel by noise-floor overflow (top: the original, down: the injured) Figure 20: Noise-floor overflow due to tone loosing

(a) The energies of the original HF bands in a grid

(b) The energies of the replicated LF bands in a grid

(d) The adjusted energies of the replicated LF bands at non-interpolation mode Figure 21 Envelope adjustment at interpolation and non-interpolation modes

(c) The adjusted energies of the replicated LF bands at interpolation mode

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 8 of 16

C. M. Liu et al.

Compression Artifacts

On the other hand, the choice of the two envelope adjustment modes, including the interpolation mode and the non-interpolation mode [1], may also cause noise-floor overflow. As illustrated in Figure 21, the energy of each subband in a T/F grid will be scaled to the average of the energy of the original high bands in the interpolation mode. On the other hand, not be scaled individually, the whole replicated bands in a T/F grid are adjusted up to fit the average energy. By comparing the resultant envelops in the two modes, the interpolation mode will generate the flat envelop, and oppositely the non-interpolation mode will maintain the original envelop structure of the replicated low bands. In other word, under the interpolation mode, the inherent characteristic of the envelop flatness does not agree with the sharp envelop of the tonal bands. Hence, the interpolation mode should be considered carefully for the tonal signal due to the noise-floor overflow effect.

have no the artifact. This is because the tonality information is kept by the tone adding mechanism. Once without the mechanism as in Figure 23, the artifact occurs again. This also presents the immunity of the tone adding mechanism against the noise-floor overflow effect under interpolation mode. In opposition, in the case for the false alarm of tone detection or the overestimation of tonal component, the noise floor will underflow. As illustrated in Figure 24, this results in the “tonal spike” effect. Either excessive tonal or lesser noise compensation will lead to the tonal spike phenomenon and produces a “metallic” sound. 4.2.4. Sawtooth Effect

(a) The original audio signal spectrum

Figure 22: Noise-floor overflow with tone compensation at interpolation mode

(b) The decoded spectrum with sawtooth effect due to the limited gain mechanism

Figure 23: Noise-floor overflow without tone compensation at interpolation mode (c) The decoded spectrum without sawtooth effect by turning off the limited gain mechanism Figure 25 : Illustration of sawtooth effect

Figure 24: Tonal spike effect As shown in Figure 22, there is a serious noise-floor overflow around the first tone which is replicated from LF and almost overwhelmed by the amplified noise. The last two tones which are compensated additionally

The “limited gain” mechanism in SBR decoder is supplied to avoid unwanted noise substitution, and can enhance the noise-floor overflow problem. Limiter gain can restrict adaptively the upper bound of the maximum gain value, and limit the revision degree of the replicated low bands. Usually, the noise-floor overflow originates in a relatively larger scaling gain comparing to other gains in a “limiter band” that is the

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 9 of 16

C. M. Liu et al.

Compression Artifacts

unit of limited gain decision. Therefore, the capability of upper bound restriction by limited gain can restrain the noise-floor overflow effect. However, any inconsistent flatness between the low and high frequency will conduce possibly a scaling value violating the restriction of the limiter gain. Hence, this protection mechanism may also bring artifacts. For example, a singular phenomenon, named as the “sawtooth” effect, is presented in Figure 25. There is a very steep slop in LF part and a constant slop in HF part in the original spectrum. To revise the steep slop, it implies some scaling gains must be larger than others. Because of the suppression of the limiter gain, the larger scaling gains are restrained and destroy the slop adjustment in the reconstructed spectrum. 4.2.5. Beat Effect

When the two tones are close to each other, their mutual interference will generate pseudo rhythm. For example, when the two equal-amplitude tones occur at the same time, the resultant signal is as x(t ) = sin(ϖ 1t ) + sin(ϖ 2t + φ ) , (3) = 2 cos(∆ϖ ⋅ t + φ2 ) sin(ω t + φ2 )

ϖ = ϖ 2+ϖ . Therefore, once the two tones are close, i.e. ∆ϖ is small, the very

where ∆ϖ =

(b) Time-domain waveform for (a)

(c) The decoded spectrum contains two tones with small distance in the middle frequency.

(d) Time-domain waveform for (c) Figure 26: Beat effect

2

, and

2

1

low frequency cosine function will shape the sine wave with higher frequency, and generate special period. Because the generated tones that are patched from low bands or compensated additional has inaccurate position, the beat effect may occur. For example, as shown in Figure 26-(c), after the band replication, one original tone is closed by another tone from low band. In Figure 26-(d), it is obvious that the cosine shape is imposed on the signal waveform. In perception, the singular vibrating can be sounded. 5.

(a) The original spectrum contains two tones with large distance in the middle frequency.

ϖ 2 −ϖ 1

ARTIFACTS IN PARAMETRIC STEREO CODING

The Parametric Stereo coding (PS) [4] is a tool in the MPEG-4 audio parametric coding scheme to compress high quality stereo audio at bit rates around 24 kbps. The PS module is used to reconstruct stereo signal from the monaural down-mixed signal according to the parameters which are extracted by capturing the stereo image of the input binaural signal. Recently numerous researches focus on the down-mixing methods, especially the KLT (Karhunen-LoèveTransform)-based methods [10][13]. Because of the selectivity of dominate component and the variability of mixing, the KLT method will result in distinctive artifacts inherently. This paper proposes the two specific artifacts: “tone leakage” and “tone modulation”, occurring as down-mixing by KLT method. 5.1.

Parametric Stereo Coding Overview

For the human hearing, there are some important guide information to characterize the space perception, such as inter-channel intensity difference (IID), interchannel coherence (ICC), inter-channel phase difference (IPD) and overall phase differences (OPD) [9]. Hence by the auxiliary of the guide space information that is referred to the stereo parameters, the basic principle of PS coding is to only encode a monaural signal extracted from the original binaural

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 10 of 16

C. M. Liu et al.

Compression Artifacts

Original Stereo Signal

Reconstructed Stereo Signal Extracted Monaural Signal

PS encoder

PS decoder

Stereo Parameters

Figure 27: Illustration of the down-mixing monaural signal and the up-mixing binaural signal signal, and hence save the most available bits due to the advantage of channel reduction. Figure 27 illustrates the process of the PS, where a binaural signal with approximate stereo image is reconstructed. On the other hand, either SBR or PS is an independent module that can be incorporated into any audio codec as the bandwidth extension tool or the channel reduction tool respectively. Especially, MEPG-4 HE-AAC version 2 integrates AAC, SBR, PS as the outstanding among the high quality audio codecs at very low bits. The block diagram of PS in HE-AAC version 2 is shown in Figure 28.

KLT method. The following subsections focus on the two critical artifact phenomenon.

(a) The original binaural signal

L M

QMF QMF R Filterbank Filterbank Analysis Analysis

M

QMF QMF Filterbank Filterbank Synthesis Synthesis

SBR SBR Encoder Encoder

AAC AAC Encoder Encoder

SBR SBR

AAC AAC

Downmix Downmix

Hybrid Hybrid Filterbank Filterbank Analysis Analysis

Stereo Stereo Parametric Parametric Calculation Calculation

Bit-stream Packing

Stereo parameters

PS PS

(b) The extracted monaural signal by the average method Figure 29: Signal vanishing effect of the average method

Figure 28: Diagram of PS in MPEG-4 HE-AAC version 2 encoder 5.2.

Artifacts under KLT

(a) The original binaural signal

The simple down-mixing method by averaging the binaural signal sometimes results in serious signal vanishing as shown in Figure 29. Even though the original binaural signal has the similar time envelope, a little difference of the phases between the stereo signals may cause the waveform canceling. From Figure 30, the more similar extracted envelope exhibits the advantage of the energy conservation of the KLT method. To achieve the advantage of energy compactness, the KLT method suffers the more risks than the simple average method. The feature that the weaker signal component is usually discarded and the adaptive property of signal combination coefficients are the main causes of the unwanted artifacts from the

(b) The extracted monaural signal by the average method

(c) The extracted monaural signal by the KLT method Figure 30: The advantage of energy conservation of the KLT method

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 11 of 16

C. M. Liu et al.

Compression Artifacts

5.2.1. Tone Leakage Effects

(a) The linear-scaled spectrum of the original stereo signal

(b) The linear-scaled spectrum of the reconstructed stereo signal by the average method

(c) The linear-scaled spectrum of the reconstructed stereo signal by the KLT method Figure 31 : The illustration and the comparison of tone leakage effect under the average method and the KLT method Here the two types of the “tone leakage” effect are defined to describe the two different phenomena caused from the down-mixing process. At first, the “type-I tone leakage” effect is defined to specify the phenomenon that one tone in some channel leaks to another channel after the up-mixing procedure. This is an inherent artifact of down-mixing coding, and hence both the average and the KLT methods suffer unavoidably. On the other hand, another situation is that one tone entirely or almost disappears in the both channels. The situation is named as the “type-II tone leakage” effect. Both the two method have the kind of artifact due to the different causing reason. However, the type-II tone leakage effect is usually inseparable from the KLT method. Figure 31 illustrates the example of tone leakage effect, and also compares the resultant severity between the two methods. In Figure 31-(a), the left channel and

right channel has a tone of different frequencies respectively and there is a magnitude difference of 12 dB between the two tones. By the average method, the monaural signal retains both the two tones from the different channel and only decreases their magnitude. As shown in Figure 31-(b), the type-I tone leakage effect occurs on the two tones. Although each channel maintains itself tone component, the imposed external tones are also introduced into the opposite channel after the up-mixing procedure. On the contrary, to ensure the maximum variance of data information by the KLT method, the process of data dimension reduction may cause the biased preference between the two channels. Especially, when there is a great difference of energy between the two channels, the coefficient vector, consisting of the two combination coefficients, tends to save the more dominate channel for energy compactness. In other word, the weaker channel is sacrificed and hence looses its spectral structure in the extracted downmixing signal. Therefore, as shown in Figure 31-(c), the reconstructed stereo signal keeps the dominate tone, and suppresses the weaker tone. In conclusion, either the average method or the KLT method has the type-I and type-II tone leakage effects. Because of the inherent property that the component in the monaural signal are certainly reproduced into the reconstructed binaural signal, any down-mixing method without other auxiliary information will suffer the type-I tone leakage effect. On the other hand, although the dominate tone can be held better by the KLT method than by the average method, the weaker channel is sacrificed due to the biased ratio of combination. Unlike the KLT method, the type-II tone leakage effect occurs infrequently in the average method unless the two tones are cancelled each other. The contradictory between the stereo image conservation and the energy compactness is obviously the main design issue and compromise for the downmixing policy. 5.2.2. Tone Modulation Effect Unlike the fixed combination coefficients for the average method, the coefficient vector of the KLT must be adaptive frame by frame to achieve the optimal energy conservation. However, the adaptation results in the connection discontinuity of adjacent spectrums of the monaural signal, and brings an annoying effect that sounds like “click”.

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 12 of 16

C. M. Liu et al.

Compression Artifacts

problems such as the tone modulation effect. An enhancement is to smooth the coupling coefficients to avoid the transient spectral discontinuity in the monaural signal [13]. Similar to the PSOLA method [35] commonly used to waveform synthesis in speech processing, the coefficients of adjacent frames can be smoothed by the connection of the cosine function, as illustrated in Figure 33. To connect the two constant values smoothly from the time index 0 to k, the cosine function Ψ n is defined as γ −γ ⎛ πn ⎞ γ + γ i +1 . (7) Ψ[n] = i i +1 ⋅ cos⎜ ⎟ + i 2 2 ⎝ k ⎠ Furthermore, the resultant coefficient becomes a continuous function as (8) ⎧Ψ[n], ∀ 0 ≤ n ≤ k . (8) γˆ[n] = ⎨ ⎩γ i +1 , ∀ k < n According to the subjective test, the “click” noise suffered from discontinuity is enhanced largely by the smooth process and the quality is improved.

[]

Figure 32 : Example of tone modulation effect (The original spectrum has stable and fine tones.) Figure 32 illustrates a series of reconstructed spectrum under the KLT method. There is an unusual phenomenon, named as the “tone modulation” effect, where the tone shape expands and contracts as time goes on. To analytically understand the cause, a downmixing subband signal could be represent as the linear combination of the left and right subband signals d [n] = λ1[n] exp(iθ1[n])l [n] + λ2 [n] exp(iθ 2 [n])r [n] , (4) where

λk [n]exp(iθ k [n]) ∀k = 1,2

[] []

form of the combination coefficients, and l n , r n are the left and the right subband signals respectively. The influence of multiplier λ k [n ]exp (i θ k [n ]) will cause the modulation in both amplitude and frequency. For example, consider a sinusoid signal s[n] = A exp(i (ϖn + Θ )) , (5) and the modulated signal sˆ[n] = ( A ⋅ λ [n]) exp(i (ϖn + Θ + θ [n])) . The multiplier

Framei+1

Framei

means the polar

Ψ[n ]

γi

γ i +1 0

k

time index

Figure 33 : Cosine smooth connection of coefficient vector

(6)

λk [n]exp(iθ k [n]) can be viewed as a

step function of the time index n that is constant in each frame, but may jumps hugely at the frame bounders. Assume s n is a tone component coupled into the monaural channel, its amplitude and phase will be changed largely frame by frame, and hence its spectral structure will have the modulation effect. In other word, the down-mixing procedure of the KLT method is equivalent to combine the two signals with mixed modulation in both amplitude and frequency, and results in the annoying “tone modulation” effect.

[]

5.2.3. Coefficient Vector Smooth Any adaptive mechanism of channel coupling, like the KLT method, will result in the spectrum discontinuity

6.

CONCLUSION

This paper models numerous newly exploited audible artifacts as summarized in Table 1. In addition to characterize the artifacts by means of the engineering modeling, the problematic encoder modules leading to the artifacts are also analyzed. The severity of the artifacts that is investigated through both the subjective and objective measures will impact extremely on the design aspect of the error concealment and encoder. As well, these artifacts are the major basis of perceptual appreciation in developing subjective and objective measurement. On the other hand, we consider the concealment schemes in decoders or the module design in encoders to reduce the quality degradation from artifacts.

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 13 of 16

C. M. Liu et al.

Compression Artifacts

7. ACKNOWLEDGEMENTS

Audio Effects (DAFX-04), Naples, Italy, 2004 October.

This work was supported by National Science Council under contract NSC94-2213-E-009-128. 8. REFERENCES [1] ISO/IEC, “Text of ISO/IEC 14496-3:2001/FDAM1, Bandwidth Extension,” ISO/IEC JTC1/SC29/WG11/N5570, March 2003, Pattaya, Thailand. [2] M. Dietz, L. Liljeryd, K. Kjörling and O. Kunz, “Spectral Band Replication, A Novel Approach in Audio Coding,” presented at the AES112nd Convention, Munich, 2002 May 10–13. [3] M. Wolters, K. Kjörling, D. Homm and H. Purnhagen, “A Closer Look into MPEG-4 High Efficiency AAC,” presented at the AES115th Convention, New York, USA, 2003 October 10– 13. [4] Draft ISO/IEC 14496-3 (Audio 3rd Edition), “Coding of Moving Pictures and Audio, Subpart 8: Technical Description of Parametric Coding for High Quality Audio.” [5] H. Purnhagen, “Low Complexity Parametric Stereo Coding in MPEG-4,” presented at the 7th International Conference on Audio Effects (DAFX-04), Naples, Italy, 2004 October. [6] E. Schuijers, J. Breebaart, H. Purnhagen and J. Engdegård, “Low Complexity Parametric Stereo Coding,” presented at the AES116th convention, Berlin, Germany, 2004 May 8-11. [7]

C. Faller and F. Baumgarte, “Efficient Representation of Spatial Audio Using Perceptual Parametrization,” IEEE Workshop on Applications of Signal Processing to Audio and Acoustics, New Paltz, New York, 2001.

[8] C. Faller and F. Baumgarte, “Binaural Cue Coding - Part II: Schemes and applications,” IEEE Trans. on Speech and Audio Proc., vol. 11, no. 6, November 2003. [9] C. Faller, “Parametric Coding of Spatial Audio,” presented at the 7th International Conference on

[10] A. Seefeldt, M. S. Vinton and C. Q. Robinson, “New Techniques in Spatial Audio Coding,” presented at the AES119th convention, New York, USA, 2005 October 7-10. [11] AES Technical Committee of Coding of Audio Signals: “Perceptual Audio Coders: What to listen for”, CD-ROM with tutorial information and audio examples, Audio Engineering Society Publications, 2001. [12] P. Marins, F. Rumsey and S. Zielinski, “ The Relationship Between Selected Artifacts and Basic Audio Quality in Perceptual Audio Codecs,” presented at the AES120th convention, Paris, France, 2006 May 20-23. [13] C.H. Yang, C. M. Liu, H.W. Hsu, K.C. Lee, S.H. Tang, Y.C. Yang, C.M. Chang, and W.C. Lee, “Design of HE-AAC Version 2 Encoder,” presented at the AES121st Convention, San Francisco, USA, 2006 October 5-8. [14] C.M. Liu, W.C. Lee, and H.W. Hsu, “High Frequency Reconstruction by Linear Extrapolation,” presented at the AES115th Convention, New York, USA, 2003 October 1013. [15] H.W. Hsu, C.M. Liu, and W.C. Lee, “Audio Patch Method in Audio Decoders—MP3 and AAC,” presented at the AES116th Convention, Berlin, Germany, 2004 May 8-11. [16] H.W. Hsu, C.M. Liu, W.C. Lee, and Z.W. Li, “Audio Patch Method in MPEG-4 HE AAC Decoder,” presented at the AES117th Convention, San Francisco, USA , 2004 October 28-31. [17] C.M. Liu, W.C. Lee, C.H. Yang, K.Y. Peng, T. Chiou, T.W. Chang, Y.H. Hsiao, H.W. Hsu and C.T. Chien, “Design of AAC Encoders,” presented at the AES117th Convention San Francisco, USA, 2004 October 28-31. [18] C.M. Liu, W.C. Lee, and T.W. Chang, “The Efficient Temporal Noise Shaping Method,”

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 14 of 16

C. M. Liu et al.

Compression Artifacts

presented at the AES 116th Convention, San Francisco, USA, 2004 May 8-11. [19] E. Larsen, M. Danessis, R. Aarts, “Efficient HighFrequency Bandwidth Extension of Music and Speech,” presented at the AES112th Convention, Munich, 2002 May 10–13. [20] R. M. Aarts, E. Larsen, O. Ouweltjes, “A Unified Approach to Low- and High-Frequency Bandwidth Extension,” presented at the AES115th Convention, New York, USA, 2003 October 10–13.

[28] J. Herre and J. D. Johnston, "Enhancing the Performance of Perceptual Audio Coders by Using Temporal Noise Shaping (TNS)," presented at the AES101st Convention, Los Angeles, USA, 1996 November 8-11. [29] J. Herre and J. D. Johnston, "Continuously SignalAdaptive Filterbank for High-Quality Perceptual Audio Coding,” 1997 IEEE ASSP Workshop, 1997 October 19-22.

[21] A. J. S. Ferreira and D. Sinha, “Accurate Spectral Relpacement,” presented at the AES118th convention, Barcelona, Spain, 2005 May 28-31.

[30] J. Herre and J. D. Johnston, "Exploiting Both Time and Frequency Structure in a System that Uses an Analysis/Synthesis Filterbank with High Frequency Resolution," presented at the AES103rd convention, New York, USA, 1997 September 26-29.

[22] D. Sinha, A. J. S. Ferreira and D. Sen, “A Fractal Self-Similarity Model for the Spectral Representation of Audio Signals,” presented at the AES118th convention, Barcelona, Spain, 2005 May 28-31.

[31] J. Herre, “Temporal Noise Shaping, Quantization And Coding Methods in Perceptual Audio Coding: A Tutorial Introduction,” The AES 17th International Conference: High-Quality Audio Coding, pp 17-31, Sept. 1999.

[23] D. Sinha, A. Ferreira and E.V. Harinaryanan, “A Novel Integrated Audio Bandwidth Extension Toolkit (ABET),” presented at the AES120th convention, Paris, France, 2006 May 20-23.

[32] Y. Wang and M. Vilermo, “Modified Discrete Cosine Transform— Its Implications for Audio Coding and Error Concealment,” J. Audio Eng. Soc. , vol. 51, No. ½, 2003 Jan./Feb..

[24] E. Zwicker and H. Fastl, “Psychoacoustics: Facts and Models,” Springer-Verlag, Berlin Heidelberg, 1990.

[33] Y. Wang, L. Yaroslavsky, M. Vilermo and M. Väänänen, “Restructured Audio Encoder for Improved Computational Efficiency,” presented at the AES108th Convention, Paris, France 2000 February 19-22.

[25] K. Brandenburg and J. Johnston, “Second Generation Perceptual Audio Coding: The Hybrid Coder,” presented at the AES88th Convention, Montreux, 1990 March 13-16. [26] Y. Mahieux and J. P. Petit, “High-Quality Audio Transform Coding at 64 kbps,” IEEE Transactions on Communications, Vol. 42, pp. 3010-3019, Nov. 1994. [27] M. Bosi, K. Brandenburg, S. Quackenbush, L. Fielder, K. Akagiri, H. Fuchs, M. Dietz, J. Herre, G. Davidson and Y. Oikawa, “ISO/IEC MPEG-2 Advanced Audio Coding,” J. Audio Eng. Soc., Vol 45, no. 10, pp 789-814, 1997 October 1997.

[34] Y. Wang, L. Yaroslavsky and M. Vilermo, “On the Relationship between MDCT, SDFT and DFT,” 16th IFIP World Computer Congress (WCC2000)/5th International Conference on Signal Processing (ICSP2000), Beijing, China , 2000 August 21-25. [35] F. Charpentier and M. Strlla, “Diphone Synthesis using an Overlap-add technique for Speech Waveform Concatenate,” in Proc. IEEE Int. Conf Acoust. Speech Signal Process., Tokyo, pp. 20152018, 1986.

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 15 of 16

C. M. Liu et al.

Compression Artifacts

Artifacts

Perceptual

Generation Sources

Band Limited Effect

Muffled

Birdie Effect

Offensive

Pre-echo

Annoying noise

Noise Amplification

Annoying noise

TNS

Window switch

Time-Domain Aliasing

Annoying noise

Shaping effect of the inverse filter I[z] in TNS

A joint method by TNS and window switch

Noise from HighOrder Prediction Filter

Annoying noise

High-Order Prediction Filter in TNS

Tone Trembling

Trembling

Tone Shift

Undetectable

(1) Tone-rich signal in SBR (2) Adaptive frequency table and SBR range in SBR (1) Harmonic signal in SBR (2) SBR replication in SBR

Noise Floor Overflow

Dull

Tonal Spike

Metallic

Sawtooth

Undetectable

(1) Tone losing in T/F Grid in SBR (2) Envelope adjustment with interpolation mode in SBR (1) False alarm of tone detection in SBR (2) Overestimation of tonal component in SBR Limiter gain mechanism in SBR

Beat Effect

Annoying noise

Generated tones with close distance

Tone Leakage Type 1

Confused position

Down-mixing procedure in PS

Tone Leakage Type 2

Lack

Down-mixing procedure of the KLT PS

Energy normalize

Tone Modulation

Click

Down-mixing procedure of the KLT in PS

Coefficient smooth

(1) Reduction of sampling rate (2) Bit rate constraint (1) Unsuitable bit allocation policies (2) Excessive masking energy estimation (1) Transient signal (2) Inappropriate size of coding block

Relief Methods High frequency reconstruction Zero band dithering

(1) Window switch (2) TNS

Fixed tables and SBR range

(1) Noise floor correction (2) Non-interpolation mode

Limiter gain turns off

Table 1 : Artifact Summary

AES 121st Convention, San Francisco, CA, USA, 2006 October 5–8 Page 16 of 16

Convention Paper

Perceptual audio coding achieves high compression ratio by exploiting the perceptual irrelevance and data redundancies. ...... International Conference on Audio Effects. (DAFX-04) .... Time and Frequency Structure in a System that. Uses an ...

1MB Sizes 2 Downloads 379 Views

Recommend Documents

Convention Paper
and the complex data processing in the decoder leads to the development of low power decoder which ... Surround [2], there are two kinds of process framework.

Convention Paper
for MPEG-4 HE-AAC. Han-Wen Hsu, Chi-Min Liu, and Wen-Chieh Lee. PSPLab, Department of Computer Science, National Chiao Tung University, Hsinchu, ...

Convention Paper
This work presents the design, implementation and training of a spatial sound localization model for ..... experimental data for the neural network training.

Convention Paper
28 May 2005 - One could guess that the Panasonic microphones were too sensitive or the OPAMPs were pushed to the limit. In any case, the device did not allow to control input levels. Moreover, it is worth not- ing that some microphones were more sens

Convention Paper
Oct 10, 2003 - k : cut-off frequency. (c) :e k reconstruction-ended frequency. (d) : N the size of the set M. (e) : U reconstructed unit length. There are total nine ...

Convention Paper
GSM and WCDMA transmission. The coder is based on the ACELP (Algebraic Code Excited. Linear Prediction) [11] technique and uses an excitation-filter model. A 16 order linear predictive. (LP) filter models the vocal tract. The excitation is composed o

Convention Paper
Figure 3 includes analysis filter bank. )( zH k. , decimators, expanders and synthesis filter bank. )( zF k . The original signal. )( zX is split into M subbands. )( zX k by analysis filter bank. )( zH k . Furthermore, the subbands. )( ... Figure 5:

Convention Paper - Computer Science - Northwestern University
Listeners were seated in a quiet room with a computer ... channel, there were 75 data points, where the within- .... plotted in the rightmost box plot of Figure 2.

Convention Paper - Computer Science - Northwestern University
represented as points on a grid. On each trial, the listener makes two paired preference judgments: one in which the two settings differ in high frequency gain, ...

Convention Paper - Computer Science - Northwestern University
Machine ratings generated by computing the similarity of a given curve to the weighting function are ..... [11] Richards, V.M. and S. Zhu, "Relative estimates of.

TCPAAA 2016 Convention
Aug 7, 2015 - Website: www.TCPAAconvention.org ... You can make your reservations by calling Omni ... Electricity in booth (First 20 tables are free). FREE.

STCW Convention
Mandatory minimum requirenl

Convention SOMTOU.pdf
Tél : 33 825 47 02 E-mail : [email protected]. CONVENTION SOMTOU. ENTRE. La société SOMTOU Sénégal enregistrée au Régistre de Commerce de Dakar ...

TCPAAA 2016 Convention
Aug 7, 2015 - Please mail your completed form and payment to: CCCPAAA. P. O. Box 60861 ... TCPAAA Region? (1-6) ______. Email Address: Phone: ...

Convention brochure -
Venue: Science City, Main Auditorium, Kolkata. ABOUT THE THEME OF THE CONFERENCE. The profession of Chartered Accountancy has completed 65 ...

NASP 2007 Convention
This Issue Brief uses data from the 1993q94 and 1999q2000 Schools and Staffing Survey (SASS) to ...... treatment efficacy because of its built-in diagnostic recovery rate scale. .... GWU has state-of-the-art conference facilities and affordable housi

map convention basque.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. map convention ...

Calling Convention - RISC-V Foundation
adic functions (except those that are explicitly named in the parameter list) are passed in ... Copyright ©2010–2014, The Regents of the University of California.

Defying Convention Cover.pdf
Page 1 of 1. DEFYING CONVENTION. The Truth about Tony and Me. By. Joyce Fleming. DEFYING CONVENTION The Truth about Tony and Me By Joyce Fleming Published by Rockhaven. Surely it is normal for the female of the species. to become pregnant and to give

third geneva convention 1949 pdf
third geneva convention 1949 pdf. third geneva convention 1949 pdf. Open. Extract. Open with. Sign In. Main menu. Displaying third geneva convention 1949 ...

27th National Convention of NFIR.PDF
EARLY DETECTION OF HIV / AIDS - PROLONGS QUALITY OF LIFE .... 27th National Convention of NFIR.PDF. 27th National Convention of NFIR.PDF. Open.

Post-Convention Newsletter 2018.pdf
Page 2 of 12. The Utah Republican Party | 117 E. South Temple Street, Salt Lake City UT 84111 | [email protected] | (801) 533-9777 | Page 2. 2018 Post-Convention Newsletter. Contents. 3 Thank You! 4 Chairman Rob Anderson's Convention Address. 6 Election