The present invention relates to a concept for combined dynamic range compression and guided clipping prevention for audio devices. In particular, the present invention relates to an audio encoder, to a method for operating an audio encoder, to a computer program for executing the method for operating an audio encoder, to an audio decoder, to a method for operating an audio decoder, and to a computer program for executing the method for operating an audio decoder.
According to an embodiment, an audio encoder for producing an audio bitstream having one or more audio channels and/or one or more audio objects, the audio encoder having a metadata encoder for producing a metadata bitstream, may be configured: to receive at least one dynamic range control gain sequence for an audio frame having one or more dynamic range control gains for a dynamic range control stage of an audio decoder; to receive at least one guided clipping prevention gain sequence for the audio frame having one or more guided clipping prevention gains for a guided clipping prevention stage of the audio decoder; and to include at least one of said dynamic range control gain sequences and at least one of said guided clipping prevention gain sequences into the metadata bitstream.
According to another embodiment, a method for operating an audio encoder for producing an audio bitstream having one or more audio channels and/or one or more audio objects, the audio encoder having a metadata encoder for producing a metadata bitstream, may have the steps of: receiving, on the part of the metadata encoder, at least one dynamic range control gain sequence having one or more dynamic range control gains for a dynamic range control stage of an audio decoder; receiving, on the part of the metadata encoder, at least one guided clipping prevention gain sequence having one or more guided clipping prevention gains for a guided clipping prevention stage of the audio decoder; and including, on the part of the metadata encoder, at least one of said dynamic range control gain sequences and at least one of said guided clipping prevention gain sequences into the metadata bitstream.
Another embodiment may have a non-transitory digital storage medium having a computer program stored thereon to perform the method for operating an audio encoder for producing an audio bitstream having one or more audio channels and/or one or more audio objects, the audio encoder having a metadata encoder for producing a metadata bitstream, the method having the steps of: receiving, on the part of the metadata encoder, at least one dynamic range control gain sequence having one or more dynamic range control gains for a dynamic range control stage of an audio decoder; receiving, on the part of the metadata encoder, at least one guided clipping prevention gain sequence having one or more guided clipping prevention gains for a guided clipping prevention stage of the audio decoder; and including, on the part of the metadata encoder, at least one of said dynamic range control gain sequences and at least one of said guided clipping prevention gain sequences into the metadata bitstream, when said computer program is run by a computer.
According to another embodiment, an audio decoder for decoding an audio bitstream and a metadata bitstream related to the audio bitstream, which are produced in particular by an audio encoder for producing an audio bitstream having one or more audio channels and/or one or more audio objects, the audio encoder having a metadata encoder for producing a metadata bitstream, the audio encoder being configured: to receive at least one dynamic range control gain sequence for an audio frame having one or more dynamic range control gains for a dynamic range control stage of an audio decoder; to receive at least one guided clipping prevention gain sequence for the audio frame having one or more guided clipping prevention gains for a guided clipping prevention stage of the audio decoder; and to include at least one of said dynamic range control gain sequences and at least one of said guided clipping prevention gain sequences into the metadata bitstream, wherein the audio decoder may have: an audio processing chain configured to receive a decoded audio signal derived from the audio bitstream and to adjust characteristics of an audio output signal of the audio processing chain, the audio processing chain having a plurality of adjustment stages including a dynamic range control stage for adjusting a dynamic range of the audio output signal and a guided clipping prevention stage for preventing of clipping of the audio output signal; and a metadata decoder configured to receive the metadata bitstream and to extract dynamic range control gain sequences and guided clipping prevention gain sequences from the metadata bitstream, at least a part of the dynamic range control gain sequences being supplied to the dynamic range control stage, and at least a part of the guided clipping prevention gain sequences being supplied to the guided clipping prevention stage.
According to another embodiment, a method for operating an audio decoder, may have the steps of: deriving a decoded audio signal from the audio bitstream; using an audio processing chain having a plurality of adjusting stages for adjusting characteristics of an audio output signal of the audio processing chain including adjusting a dynamic range of the audio output signal by a dynamic range control stage, which is an adjustment stage of the adjustment chain, and preventing of clipping of the audio output signal by a guided clipping prevention stage, which is an adjustment stage of the adjustment chain; receiving, on the part of a metadata decoder, the metadata bitstream and extracting dynamic range control gain sequences and guided clipping prevention gain sequences from the metadata bitstream; supplying at least a part of the dynamic range control gain sequences to the dynamic range control stage; and supplying at least a part of the guided clipping prevention gain sequences to the guided clipping prevention stage.
Another embodiment may have a non-transitory digital storage medium having a computer program stored thereon to perform the method for operating an audio decoder, the method having the steps of: deriving a decoded audio signal from the audio bitstream; using an audio processing chain having a plurality of adjusting stages for adjusting characteristics of an audio output signal of the audio processing chain including adjusting a dynamic range of the audio output signal by a dynamic range control stage, which is an adjustment stage of the adjustment chain, and preventing of clipping of the audio output signal by a guided clipping prevention stage, which is an adjustment stage of the adjustment chain; receiving, on the part of a metadata decoder, the metadata bitstream and extracting dynamic range control gain sequences and guided clipping prevention gain sequences from the metadata bitstream; supplying at least a part of the dynamic range control gain sequences to the dynamic range control stage; and supplying at least a part of the guided clipping prevention gain sequences to the guided clipping prevention stage, when said computer program is run by a computer.
The invention provides an audio encoder for producing an audio bitstream comprising one or more audio channels and/or one or more audio objects, the audio encoder comprising a metadata encoder for producing a metadata bitstream, the audio encoder being configured:
to receive at least one dynamic range control gain sequence for an audio frame, the dynamic range control gain sequence comprising one or more dynamic range control gains for a dynamic range control stage of an audio decoder;
to receive at least one guided clipping prevention gain sequence for the audio frame, the guided clipping prevention gain sequence comprising one or more guided clipping prevention gains for a guided clipping prevention stage of the audio decoder; and
to include at least one of said dynamic range control gain sequences and at least one of said guided clipping prevention gain sequences into the metadata bitstream.
The inventive concept is based on the combination of several processing blocks, which together provide the necessitated functionalities of a joint solution for dynamic range compression (DRC) and for guided clipping prevention (gCP).
The inventive concept is particularly suitable for audio systems wherein related configuration information as defined, e.g., in [M30100, M30101] is already available at the encoder and decoder. This information may be, for example, included in the header for file based transmission or in the unified speech and audio coding (USAC) configuration extension. The configuration information may include channel layouts, downmix instructions (e.g. downmix coefficients), dynamic range control instructions (e.g. applied dynamic range control characteristic, number of dynamic range control gain sequences for a track), and loudness information (e.g. program loudness, anchor loudness, true peak value). More details can be found in [M30100, M30101]. The same applies to corresponding guided clipping prevention instructions, which may be handled in the same manner as the information of the dynamic range control instructions box.
The audio encoder according to the invention is capable of producing a metadata bitstream which comprises dynamic range control gain sequences for a dynamic range control stage of an audio decoder as well as guided clipping prevention gain sequences for a guided clipping prevention stage of the audio decoder, wherein the dynamic range control gain sequences may be transmitted separately from the guided clipping prevention gain sequences.
The metadata encoder uses, as input, dynamic range control gain sequences that are provided externally, e.g., by an external tool operated by a content provider.
The possible temporal resolution of the dynamic range control gains may be in the range of a few samples. The dynamic range control gain values may usually be represented with sufficient resolution of up to 0.125 dB.
Additionally, the metadata encoder takes guided clipping prevention gain sequences as input.
The compressed dynamic range control gain sequences and guided clipping prevention gain sequences may be transmitted to the receiver as side information included in the unified speech and audio coding extension payload.
It should be noted that dynamic range control gain sequences should only include dynamic range control gains to perform dynamic range compression, whereas guided clipping prevention gains for clipping prevention are accommodated by the guided clipping prevention gains sequences.
The temporal resolution of the guided clipping prevention gains may be the same as for the dynamic range control gains.
Signal clipping at the decoder side can occur e.g. due to loudness normalization, downmixing, parametric coding tools, etc.
Clipping prevention can, according to conventional technology, be achieved by placing a peak limiter at the final end of the decoder processing chain. A peak limiter detects audio samples in the input signal that exceed a defined maximum value, and applies a level reduction to the respective signal portions so that the samples of the output signal stay below the defined maximum value. To prevent audible distortions, the level reduction has to be performed gradually, i.e. the gain factor applied to the signal may only change slowly over time, which is ensured by a gain smoothing filter. A look-ahead delay of the input signal before applying the gain factor is also used to allow for a smooth reduction of the gain starting already before a sudden signal peak. Since a decoder side peak limiter is usually not controlled from the encoder side (a content creator has no influence on the peak limiter processing), it produces an unguided clipping prevention gain sequence which is directly applied to the audio signal. A decoder side peak limiter causes additional look-ahead delay (about 5 ms or more) and computational complexity at the decoder side.
In contrast to that, guided clipping prevention gain sequences as used according to the invention allow to fully control the generation of clipping prevention gains at the encoder side (if desired, a content creator can have influence on the gain characteristics). After generation, the clipping prevention gain sequences are transmitted to the decoder side. If a suitable guided clipping prevention gain sequence for the current decoder configuration is available in the metadata bitstream, a decoder side peak limiter can be avoided in most cases. Thus, additional look-ahead delay and computational complexity at the decoder side can be avoided.
Guided clipping prevention gain sequences can be transmitted for various decoder configurations like, e.g. for specific target loudness levels or for specific downmix configurations. If the decoder configuration matches, a suitable guided clipping prevention gain sequence can be applied to the decoder output signal. In many cases guided clipping prevention gain sequences can be optionally scaled to match a non-matching target loudness level (signal headroom is used as far as possible).
The guided clipping prevention gain sequences are used to assure that no sample clipping occurs at the output of the audio decoder for a specific target level and downmix/format converter configuration. Each guided clipping prevention gain sequence may be optimized for a combination of a specific downmix/format converter configuration, a specific target level, and a specific dynamic range control gain sequence for channels together with specific dynamic range control gain sequences for the objects. The information about which guided clipping prevention gain sequence is associated with which dynamic range control gain sequence may be included in the guided clipping prevention instruction contained in the file header of the unified speech and audio coding configuration extension. It may also include the information related to the target level for which the guided clipping prevention gains have been determined at the encoder.
The inventive concept for dynamic range processing that is described above represents an approach to encoder side control of the entire processing chain. The separation of the metadata used for dynamic range control and guided clipping prevention allows for separate modification (scaling or mapping) of each of the gains, said modification depending on the decoder configuration and the playback scenario.
With the inventive concept it is possible to change the underlying dynamic range control characteristic of a dynamic range control gain sequence from heavy compression to light compression if the dynamic range control gains are transmitted separately from the guided clipping prevention gains. This can be achieved by means of appropriate scaling or mapping of the values of the dynamic range control gain sequence.
The inventive concept gives the content provider full control of the final output of the audio decoder in order to meet given quality requirements. In this case, both dynamic range control gain sequences and guided clipping prevention gain sequences can be included for specific decoder configurations considered to be most important. A peak limiter may be discarded in many cases due to combined use of dynamic range control gain sequences and guided clipping prevention gain sequences. It has to be noted that guided clipping prevention at the audio decoder side, which is achieved by simply applying guided clipping prevention gains, is computationally more efficient than using a peak limiter.
According to an embodiment of the invention the metadata encoder is configured to receive at least two dynamic range control gain sequences for the same audio frame comprising different dynamic range control gains, and to include the at least two dynamic range control gain sequences comprising the different dynamic range control gains into the metadata bitstream.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
By means of these features it is possible to provide multiple dynamic range control gain sequences for the channels of an audio track in order to enable output signals at the decoder which have different compression characteristics.
According to an embodiment of the invention the metadata encoder is configured to receive a dynamic range control gain sequence comprising at least two dynamic range control gains related to different audio channels and/or to different audio objects, the metadata encoder being configured to include the at least two dynamic range control gains related to different audio channels and/or to different audio objects and, optionally, the relationships of the dynamic range control gains to the audio channels and/or the audio objects into the metadata bitstream.
Within each dynamic range control sequence it is possible to define a set of different dynamic range control gains for different channels or groups of channels, each channel usually being associated with exactly one channel group. For example, in multi-channel movie sound it is often desired to apply a specific dynamic range control gain to the dialog channel. The remaining channels such as front left, front right, rear left, rear right, for example, may be processed by using a different dynamic range control gain.
By analogy with the channel case, multiple dynamic range control sequences that are associated with audio objects or groups of objects can be supported. These object-related dynamic range control sequences can also be considered as being associated with a specific channel group within a channel-related set of dynamic range control gains. The term audio objects herein relates to single source sounds such as a door bell.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
According to an embodiment of the invention the metadata encoder is configured to receive a dynamic range control gain sequence comprising at least two dynamic range control gains related to different frequency bands of the audio decoder, the metadata encoder being configured to include the at least two dynamic range control gains related to different frequency bands of the decoder and, optionally, the relationships of the dynamic range control gains to the frequency bands of the decoder into the metadata bitstream.
In an optional extension supporting multi-band dynamic range control, the metadata encoder can be extended to also accept dynamic range control gain sequences having different dynamic range control gains for different frequency bands as input.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
According to an embodiment of the invention the metadata encoder is configured to receive at least two guided clipping prevention gain sequences comprising different guided clipping prevention gains and to include the at least two guided clipping prevention gain sequences comprising the different guided clipping prevention gains into the metadata bitstream.
According to an embodiment of the invention each dynamic range control sequence is related to one of the guided clipping prevention gain sequences, the metadata encoder being configured to include relationships between the dynamic range control sequences and the guided clipping prevention gain sequences into the metadata bitstream.
According to an embodiment of the invention the metadata encoder is configured to receive a guided clipping prevention gain sequence comprising at least two guided clipping prevention gains related to different audio channels and/or to different audio objects, the metadata encoder being configured to include the guided clipping prevention sequence comprising the at least two guided clipping prevention gains related to different audio channels and/or to different audio objects and, optionally, the relationships of the guided clipping prevention gains to the audio channels and/or the audio objects into the metadata bitstream.
As with the dynamic range control gains, it is possible to define a set of different guided clipping prevention gains for different channels or groups of channels within each guided clipping prevention sequence, where each channel usually is associated with exactly one channel group. In typical operation modes the same guided clipping prevention gains are applied to all channels.
The definitions of guided clipping prevention gain sequences for objects are analogous to the dynamic range control case.
In another aspect the invention provides a method for operating an audio encoder for producing an audio bitstream comprising one or more audio channels and/or one or more audio objects, the audio encoder comprising a metadata encoder for producing a metadata bitstream, the method comprising the steps of:
receiving, on the part of the metadata encoder, at least one dynamic range control gain sequence comprising one or more dynamic range control gains for a dynamic range control stage of an audio decoder;
receiving, on the part of the metadata encoder, at least one guided clipping prevention gain sequence comprising one or more guided clipping prevention gains for a guided clipping prevention stage of the audio decoder; and
including, on the part of the metadata encoder, at least one of said dynamic range control gain sequences and at least one of said guided clipping prevention gain sequences into the metadata bitstream.
In a further aspect the invention provides a computer program for performing, when running on a computer or a processor, the before-mentioned method.
In a further aspect the invention provides an audio decoder for decoding an audio bitstream and a metadata bitstream related to the audio bitstream, which are produced in particular by an audio encoder according to the present invention, the audio decoder comprising:
an audio processing chain configured to receive a decoded audio signal derived from the audio bitstream and to adjust characteristics of an audio output signal of the audio processing chain, the audio processing chain comprising a plurality of adjustment stages including a dynamic range control stage for adjusting a dynamic range of the audio output signal and a guided clipping prevention stage for preventing of clipping of the audio output signal; and
a metadata decoder configured to receive the metadata bitstream and to extract dynamic range control gain sequences and guided clipping prevention gain sequences from the metadata bitstream, at least a part of the dynamic range control gain sequences being supplied to the dynamic range control stage, and at least a part of the guided clipping prevention gain sequences being supplied to the guided clipping prevention stage.
The metadata decoder receives the metadata bitstream containing the compressed dynamic range control gain sequences and guided clipping prevention gain sequences, for example from a unified speech and audio coding decoder.
The metadata decoder generates the desired dynamic range control gain sequence from the compressed metadata bitstream. Additionally, scaling or mapping of the resulting dynamic range control gains may be applied.
The metadata decoder additionally generates the desired guiding clipping prevention gain sequence from the bitstream containing compressed guided clipping prevention metadata. Scaling or mapping of the guided clipping prevention gains can be applied. This is especially useful if the audio decoder target level is lower than the target level that has been used for determining the guided clipping prevention gains sequence at the audio encoder. Then, mapping of the guided clipping prevention gains is possible, which optimally restores signal headroom while still assuring that no clipping occurs at the audio decoder output signal.
The dynamic range control stage receives the uncompressed and optionally scaled or mapped dynamic range control gain sequences for each audio frame directly or indirectly from the metadata decoder. The metadata decoder also may ensure that the final time-domain dynamic range control gain values are interpolated with a temporal resolution corresponding to the temporal resolution of the audio samples. These final dynamic range control gains are then applied to the decoded audio signal, where assignment of a certain dynamic range control sequence to the correct channel or object group is observed.
The guided clipping prevention stage receives the uncompressed and optionally scaled or mapped guided clipping prevention gain sequences for each audio frame directly or indirectly from the metadata decoder. The metadata decoder also may ensure that the final time-domain guided clipping prevention gain values are interpolated with a temporal resolution corresponding to the temporal resolution of the audio samples. These final guiding clipping prevention gains are then applied to the decoded audio signals, where assignment of a certain guided clipping prevention sequence to the correct channel group is observed.
The invention provides flexibility at the audio decoder side while leaving the control of the entire processing chain at the encoder side. The separation of the metadata used for dynamic range control and guided clipping prevention allows for separate modification (scaling or mapping) of each of the gains, said modification depending on the audio decoder configuration and the playback scenario.
The invention allows changing the underlying dynamic range control characteristic of a dynamic range control gain sequence from heavy compression to light compression if the dynamic range control gains are transmitted separately from the guided clipping prevention gains. This can be achieved by means of appropriate scaling or mapping of the values of the dynamic range control gain sequence.
In the event that the decoder target level is lower than the target level used for computing the gains for guided clipping prevention at the encoder, a reduced attenuation of signal peaks can be allowed at the decoder by appropriately scaling the guided clipping prevention gains. Then, the level of strong signal peaks can be maintained or at least increased as compared to the case of applying the guided clipping prevention gains in an unmodified manner, which means that available headroom can be preserved.
According to an embodiment of the invention the metadata decoder is configured to extract from the metadata bitstream at least two dynamic range control gain sequences for the same audio frame comprising different dynamic range control gains.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
By means of these features it is possible to provide multiple dynamic range control gain sequences for the channels of an audio track in order to enable output signals at the decoder which have different compression characteristics.
According to an embodiment of the invention the metadata decoder is configured to extract from the metadata bitstream a dynamic range control gain sequence comprising at least two dynamic range control gains related to different audio channels and/or to different audio objects.
Within each dynamic range control sequence it is possible to define a set of different dynamic range control gains for different channels or groups of channels, each channel usually being associated with exactly one channel group. For example, in multi-channel movie sound it is often desired to apply a specific dynamic range control gain to the dialog channel. The remaining channels such as front left, front right, rear left, rear right, for example, may be processed by using a different dynamic range control gain.
By analogous with the channel case, multiple dynamic range control sequences that are associated with audio objects or groups of objects can be supported. These object-related dynamic range control sequences can also be considered as being associated with a specific channel group within a channel-related set of dynamic range control gains. The term audio objects herein relates to single source sounds such as a door bell.
According to an embodiment of the invention the metadata decoder is configured to extract from the metadata bitstream a dynamic range control gain sequence comprising at least two dynamic range control gains related to different frequency bands of the audio decoder.
In an optional extension supporting multi-band dynamic range control, the metadata decoder can be extended to also accept dynamic range control gain sequences having different dynamic range control gains for different frequency bands as input.
In case of multi-band dynamic range control extension, the time-domain audio signal has to be transformed into the appropriate frequency domain representation before applying multi-band dynamic range control gains.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
According to an embodiment of the invention the metadata decoder is configured to extract from the metadata bitstream at least two guided clipping prevention gain sequences comprising different guided clipping prevention gains.
By means of these features it is possible to provide multiple guided clipping prevention gain sequences for an audio track in order to match the corresponding dynamic range control gain sequences.
According to an embodiment of the invention the metadata decoder is configured to extract from the metadata bitstream a guided clipping prevention gain sequence comprising at least two guided clipping prevention gains related to different audio channels and/or to different audio objects.
As with the dynamic range control gains, it is possible to define a set of different guided clipping prevention gains for different channels or groups of channels within each guided clipping prevention sequence, where each channel usually is associated with exactly one channel group. In typical operation modes the same guided clipping prevention gains are applied to all channels.
The definitions of guided clipping prevention gain sequences for objects are analogous to the dynamic range control case.
According to an embodiment of the invention the audio decoder further comprises a metadata and parameter control stage configured to provide metadata and parameters to at least one of the adjustment stages on the basis of configuration information received from a configuration providing stage.
The metadata and parameter control stage at the audio decoder may select the correct part of the metadata bitstream in accordance with the desired dynamic range control gain sequences. The scaling and mapping information can also be part of or derived from the decoder configuration information.
By analogy, the metadata and parameter control stage at the audio decoder selects the correct part of the bitstream in accordance with the desired guided clipping prevention gain sequences.
According to an embodiment of the invention the metadata and parameter control stage is configured to select, in the event that a plurality of dynamic range control gain sequences are received, which of the plurality of dynamic range control gain sequences is supplied to the dynamic range control stage. The selection of the dynamic range control sequence on the part of the metadata and parameter control stage can be based on the decoder configuration information such as channel layout, downmix instructions, object metadata, dynamic range control instructions, loudness information, and decoder target level.
According to an embodiment of the invention the metadata and parameter control stage is configured to select, in the event that a plurality of guided clipping prevention gain sequences is received, which of the plurality of guided clipping prevention gain sequences is supplied to the guided clipping prevention stage.
The selection of the guided clipping prevention gain sequence on the part of the metadata and parameter control block is usually based on audio decoder configuration information described above.
According to an embodiment of the invention the dynamic range control stage in the direction of the signal flow is the first adjustment stage of the audio adjustment chain.
Dynamic range control processing for channels may be performed before a potential downmixing or format conversion of the decoded audio channels in order to enable different gaining for the channel groups. Accordingly, the dynamic range control gains are applied to the objects before rendering. In the event that both—channels and objects—are present, the location of the dynamic range control processing remains the same: the channel related dynamic range control should be performed directly before the format converter stage, whereas the object related dynamic range control is performed before the object renderer.
According to an embodiment of the invention the audio adjustment chain comprises a format converter stage configured to adjust a channel configuration of the audio output signal. The format converter stage, also referred to as downmixer (DMX), is configured to adapt the channel configuration of the audio output signal to the transducers used for playback. For example, the format converter stage may convert a 5.1 surround signal into a stereo signal.
According to an embodiment of the invention the audio adjustment chain comprises a loudness normalization stage configured to normalize the loudness of the audio output signal.
The loudness normalization stage may scale its audio input signal such that the output signal has the correct target loudness level. The scaling factor is derived from the difference between the program reference level (PRL) and the decoder target level (DTL) and provided by the decoder's metadata and parameter control to the loudness normalization block. The program reference level may be obtained from the loudness information which is included, e.g., in the file header, whereas the decoder target level is a decoder configuration parameter. It is possible that multiple program reference level values are provided within the loudness information, where each corresponds to a specific configuration of an applied dynamic range control sequence and/or an applied downmix. In this case, the metadata and parameter control stage chooses the correct program reference level value while considering the given audio decoder configuration. The location of the loudness-processing step depends on the actual output configuration of the audio decoder. In general, the loudness normalization should be performed on the output channels of the audio decoder, e.g. after the mixer, or after format conversion, if applicable.
According to an embodiment of the invention the audio adjustment chain comprises a peak limiter stage configured to limit peaks of the audio output signal in the event that a threshold is exceeded.
According to an embodiment of the invention the peak limiter stage in the direction of the signal flow is the last adjustment stage of the audio adjustment chain.
There are a number of potential sources of unavoidable sample clipping in the audio processing chain of a typical audio decoder, including:
The peak limiter stage is therefore placed at the very end of the processing chain of the audio decoder to prevent any undesired clipping of the audio samples, e.g. just before the time domain output signal is converted from the floating point to the fixed point pulse code modulation format (PCM format). This also means that any dynamic range control stage and loudness normalization stage described in the previous section is located before the peak limiter stage. In the context of MPEG-H 3D Audio [M30324], the peak limiter stage receives different signals as input, depending on the actual playback configuration. In case of binaural rendering, the two output channels for the headphones may be processed by the peak limiter stage. If the output channels of the mixer are played back directly, the peak limiter stage may process the corresponding loudspeaker channels. The same applies if the mixer output channels are converted to a different loudspeaker configuration (e.g. downmixed) by the format converter first.
The peak limiter stage may detect audio samples in the time-domain signal that exceed the limiting threshold, and applies a level reduction to the respective signal portions so that the samples of the audio output signal stay below the limiting threshold. To prevent audible distortions, the level reduction should be performed gradually, i.e. the gain factor applied to the signal may only change slowly over time, which is ensured by a gain smoothing filter. A look-ahead delay of the input signal of the peak limiter stage before applying the limiter gain factor is also used in order to allow for a smooth reduction of the gain starting already before sharp signal peaks. The delay can be adjusted to a given requirement, a practical choice being 5 ms. In case of multi-channel audio a common gain factor may be applied to all audio channels to reduce computational complexity.
The information about the maximum peak of the audio signal, which may be included in the loudness information of a file header, can be exploited to discard the peak limiter stage if the decoder configuration implies that no clipping can occur in the audio processing chain. The peak limiter stage may also be discarded, e.g., if the audio decoder outputs audio samples with floating point precision and a clipping prevention is performed at a later point in the audio chain of the playback device. Obviously, if the decoder configuration for a given playback scenario allows application of correct guided clipping prevention gains, the peak limiter stage may also be disabled if no additional codec clipping occurs.
The peak limiter may be considered as being an essential component in practice. There are numerous sources of clipping within the audio processing chain of the decoder. Special configurations may be covered by providing guided clipping prevention gain sequences. However, for flexible operation of the decoder, the peak limiter may be provided to assure that no clipping occurs.
According to an embodiment of the invention the audio adjustment chain comprises an object renderer stage configured to mix audio objects into channels of the audio output signal.
According to an embodiment of the invention the audio adjustment chain comprises a transducer adaption stage configured to adjust characteristics of the audio output signal to a transducer system used for reproducing the audio output signal.
In order to reduce the necessitated limiting strength of the peak limiter stage, a frequency dependent transducer adaptation processing, e.g. implemented by an equalization filter, can be included in the processing chain.
The transducer adaptation stage receives an audio input signal and information about the characteristics of the transducer used for reproduction (loudspeaker or headphones).
The task of the transducer adaption stage is to adapt the audio output signal to the transducer characteristics, especially when transducers have a limited frequency range and thereby will limit the frequency range of the audio output signal. By limiting the frequency range by using appropriate filters mimicking the transfer function of the transducer prior to the peak limiting stage, the input signal of the peak limiter stage is reduced in level. As a consequence, signal peaks that exceed the limiting thresholds are reduced in level. Consequently, the effect of the peak limiting stage is less severe. This is advantageous because
In addition to the filtering, the transducer adaptation stage can also include signal-adaptive processing such that the band-limiting of the transducer is compensated for. Especially very small transducers are not capable of reproducing low-frequency signals.
This can be compensated for by increasing the perceived bass response of the transducer, e.g. by artificially generating and adding harmonics of the low-frequency notes to the signal.
In a further aspect the invention provides a method for operating an audio decoder, in particular an audio decoder according to the claims, for decoding an audio bitstream and a metadata bitstream related to the audio bitstream, which are produced in particular by an audio encoder according to one of claims 1 to 9, the method comprising the steps of:
deriving a decoded audio signal from the audio bitstream;
using an audio processing chain having a plurality of adjusting stages for adjusting characteristics of an audio output signal of the audio processing chain including adjusting a dynamic range of the audio output signal by a dynamic range control stage, which is an adjustment stage of the adjustment chain, and preventing of clipping of the audio output signal by a guided clipping prevention stage, which is an adjustment stage of the adjustment chain;
receiving, on the part of a metadata decoder, the metadata bitstream and extracting dynamic range control gain sequences and guided clipping prevention gain sequences from the metadata bitstream;
supplying at least a part of the dynamic range control gain sequences to the dynamic range control stage; and
supplying at least a part of the guided clipping prevention gain sequences to the guided clipping prevention stage.
In a further aspect the invention provides a computer program for performing, when running on a computer or a processor, the before-mentioned method.
Embodiments of the present invention will be detailed subsequently referring to the appended drawings, in which:
The audio encoder 1 is configured to produce an audio bitstream comprising one or more audio channels AC and/or one or more audio objects AO, the audio encoder 1 comprising a metadata encoder 2 for producing a metadata bitstream MBS configured:
to receive at least one dynamic range control gain sequence DS for an audio frame comprising one or more dynamic range control gains for a dynamic range control stage 5 (see
to receive at least one guided clipping prevention gain sequence GS for the audio frame, said guided clipping prevention gain sequence GS comprising one or more guided clipping prevention gains for a guided clipping prevention stage 6 (see
to include at least one of said dynamic range control gain sequences DS and at least one of said guided clipping prevention gain sequences GS into the metadata bitstream MBS.
The inventive concept is based on the combination of several processing blocks, which together provide the necessitated functionalities of a joint solution for dynamic range compression (DRC) and guided clipping prevention (gCP).
The inventive concept is particularly suitable for audio systems wherein related configuration information as defined, e.g., in [M30100, M30101] is already available at the audio encoder 1 and at the audio decoder 3. This information may be included, for example, in the header for file based transmission or in the unified speech and audio coding (USAC) configuration extension. The configuration information may include channel layouts, downmix instructions (e.g. downmix coefficients), dynamic range control instructions (e.g. applied dynamic range control characteristic, number of dynamic range control gain sequences for a track), and loudness information (e.g. program loudness, anchor loudness, true peak value). More details can be found in [M30100, M30101]. The same applies to corresponding guided clipping prevention instructions, which may be handled in the same manner as the information of the dynamic range control instructions box.
The audio encoder 1 according to the invention is capable of producing a metadata bitstream MBS which comprises dynamic range control gain sequences DS for a dynamic range control stage 5 of an audio decoder 3 as well as guided clipping prevention gain sequences GS for a guided clipping prevention stage 6 of the audio decoder 3, wherein the dynamic range control gain sequences DS may be transmitted separately from the guided clipping prevention gain sequences GS.
The metadata encoder uses, as input, dynamic range control gain sequences DS that are provided externally, e.g., by an external tool operated by a content provider.
The possible temporal resolution of the dynamic range control gains may be in the range of a few samples. The dynamic range control gain values may usually be represented with sufficient resolution of up to 0.125 dB.
Additionally, the metadata encoder takes guided clipping prevention gain sequences GS as input.
The compressed dynamic range control gain sequences DS and guided clipping prevention gain sequences GS may be transmitted to the receiver as side information included in the unified speech and audio coding extension payload.
It should be noted that dynamic range control gain sequences DS should only include dynamic range control gains to perform dynamic range compression, whereas guided clipping prevention gains for clipping prevention are accommodated by the guided clipping prevention gains sequences GS.
The temporal resolution of the guided clipping prevention gains may be the same as for the dynamic range control gains.
The guided clipping prevention gain sequences GS are used to assure that no sample clipping occurs at the audio output signal AOS (see
The inventive concept for dynamic range processing described above represents an approach to audio encoder side control of the entire audio processing chain 4 (see
With the inventive concept it is possible to change the underlying dynamic range control characteristic of a dynamic range control gain sequence DS from heavy compression to light compression if the dynamic range control gains are transmitted separately from the guided clipping prevention gains GS. This can be achieved by means of appropriate scaling or mapping of the values of the dynamic range control gain sequence DS.
The inventive concept gives the content provider full control of the final audio output signal AOS of the audio decoder 3 in order to meet given quality requirements. In this case, both dynamic range control gain sequences DS and guided clipping prevention gain sequences GS can be included for specific audio decoder configurations considered to be most important. A peak limiter stage 12 may be discarded in many cases due to combined use of dynamic range control gain sequences DS and guided clipping prevention gain sequences GS. It has to be noted that guided clipping prevention at the audio decoder side, which is achieved by simply applying guided clipping prevention gains, is computationally more efficient than using a peak limiter 12.
According to an embodiment of the invention the metadata encoder 2 is configured to receive at least two dynamic range control gain sequences DS for the same audio frame comprising different dynamic range control gains, and to include the at least two dynamic range control gain sequences DS comprising the different dynamic range control gains into the metadata bitstream MBS.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences DS may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
By means of these features it is possible to provide multiple dynamic range control gain sequences DS for the channels of an audio track in order to enable output signals at the audio decoder 3 which have different compression characteristics.
According to an embodiment of the invention the metadata encoder is configured to receive a dynamic range control gain sequence DS comprising at least two dynamic range control gains related to different audio channels AC and/or to different audio objects AO, the metadata encoder 2 being configured to include the at least two dynamic range control gains DS related to different audio channels AC and/or to different audio objects AO and, optionally, the relationships of the dynamic range control gains to the audio channels AC and/or the audio objects AO into the metadata bitstream MBS.
Within each dynamic range control sequence DS it is possible to define a set of different dynamic range control gains for different audio channels AC or groups of audio channels AC, wherein each audio channel AC usually is associated with exactly one channel group. For example, in multi-channel movie sound it is often desired to apply a specific dynamic range control gain to the dialog channel. The remaining channels such as front left, front right, rear left, rear right, for example, may be processed by using a different dynamic range control gain.
By analogy with the channel case, multiple dynamic range control sequences DS that are associated with audio objects AO or groups of objects AO can be supported. These object-related dynamic range control sequences DS can also be considered as being associated with a specific channel group within a channel-related set of dynamic range control gains. The term audio objects herein relates to single source sounds such as a door bell.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences DS may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
According to an embodiment of the invention the metadata encoder 2 is configured to receive a dynamic range control gain sequence DS comprising at least two dynamic range control gains related to different frequency bands of the audio decoder, the metadata encoder 2 being configured to include the at least two dynamic range control gains DS related to different frequency bands of the audio decoder 3 and, optionally, the relationships of the dynamic range control gains to the frequency bands of the audio decoder 3 into the metadata bitstream MBS.
In an optional extension supporting multi-band dynamic range control, the metadata encoder 2 can be extended to also accept, as input, dynamic range control gain sequences DS having different dynamic range control gains for different frequency bands.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences DS may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
According to an embodiment of the invention the metadata encoder is configured to receive at least two guided clipping prevention gain sequences GS comprising different guided clipping prevention gains and to include the at least two guided clipping prevention gain sequences GS comprising the different guided clipping prevention gains into the metadata bitstream MBS.
According to an embodiment of the invention each dynamic range control sequence DS is related to one of the guided clipping prevention gain sequences GS, the metadata encoder 2 being configured to include relationships between the dynamic range control sequences DS and the guided clipping prevention gain sequences GS into the metadata bitstream MBS.
According to an embodiment of the invention the metadata encoder is configured to receive a guided clipping prevention gain sequence GS comprising at least two guided clipping prevention gains related to different audio channels AC and/or to different audio objects AO, the metadata encoder 2 being configured to include the guided clipping prevention sequence GS comprising the at least two guided clipping prevention gains related to different audio channels AC and/or to different audio objects AO and, optionally, the relationships of the guided clipping prevention gains to the audio channels AC and/or the audio objects AO into the metadata bitstream MBS.
As with the dynamic range control gains, it is possible to define a set of different guided clipping prevention gains for different audio channels AC or groups of audio channels AC within each guided clipping prevention sequence GS, where each audio channel AC usually is associated with exactly one audio channel group. In typical operation modes the same guided clipping prevention gains are applied to all audio channels AC.
The definitions of guided clipping prevention gain sequences for audio objects AO are analogous to the dynamic range control case.
In another aspect the invention provides a method for operating an audio encoder 1 for producing an audio bitstream comprising one or more audio channels and/or one or more audio objects, the audio encoder comprising a metadata encoder 2 for producing a metadata bitstream MBS, the method comprising the steps of:
receiving, on the part of the metadata encoder 2, at least one dynamic range control gain sequence DS comprising one or more dynamic range control gains for a dynamic range control stage 5 of an audio decoder 3;
receiving, on the part of the metadata encoder 2, at least one guided clipping prevention gain sequence GS comprising one or more guided clipping prevention gains for a guided clipping prevention stage 6 of the audio decoder 3; and
including, on the part of the metadata encoder 2, at least one of said dynamic range control gain sequences DS and at least one of said guided clipping prevention gain sequences GS into the metadata bitstream MBS.
In a further aspect the invention provides a computer program for performing, when running on a computer or a processor, the before-mentioned method.
The following figures for decoder side processing are based on the proposal for a 3D audio coding approach as presented in [M30324].
The audio decoder 3 for decoding an audio bitstream and a metadata bitstream MBS related to the audio bitstream, which are produced in particular by an audio encoder 1 according to the present invention, the audio decoder 3 comprising:
an audio processing chain 4 configured to receive a decoded audio signal DAS derived from the audio bitstream and configured to adjust characteristics of an audio output signal AOS of the audio processing chain 4, the audio processing chain 4 comprising a plurality of adjustment stages 5, 6, 10, 11, 12, 13, 14 (see also
a metadata decoder 7 configured to receive the metadata bitstream MBS and configured to extract dynamic range control gain sequences DS and guided clipping prevention gain sequences GS from the metadata bitstream MBS, at least a part of the dynamic range control gain sequences DS being supplied to the dynamic range control stage 5, and at least a part of the guided clipping prevention gain sequences GS being supplied to the guided clipping prevention stage 6.
The metadata decoder 7 receives the metadata bitstream MBS containing the compressed dynamic range control gain sequences DS and guided clipping prevention gain sequences GS, for example from a unified speech and audio coding decoder.
The metadata decoder 7 generates the uncompressed dynamic range control gain sequence DS from the compressed metadata bitstream MBS. Additionally, scaling or mapping of the resulting dynamic range control gains may be applied.
The metadata decoder 7 additionally generates the uncompressed guiding clipping prevention gain sequences GS from the bitstream MBS containing compressed guided clipping prevention metadata. A scaling or mapping of the guided clipping prevention gains can be applied. This is especially useful if the audio decoder target level is lower than the target level that has been used for determining the guided clipping prevention gains sequence GS at the audio encoder 1. Then, mapping of the guided clipping prevention gains is possible, which optimally restores signal headroom while still assuring that no clipping occurs at the audio decoder output signal AOS.
The dynamic range control stage 5 receives the uncompressed and optionally scaled or mapped dynamic range control gain sequences DS for each audio frame directly or indirectly from the metadata decoder 7. The metadata decoder 7 also may ensure that the final time-domain dynamic range control gain values are interpolated with a temporal resolution corresponding to the temporal resolution of the audio samples. These final dynamic range control gains may then be applied to the decoded audio signal DAS, where assignment of a certain dynamic range control sequence to the channels and/or objects is observed.
The guided clipping prevention stage 6 receives the uncompressed and optionally scaled or mapped guided clipping prevention gain sequences GS for each audio frame directly or indirectly from the metadata decoder 7. The metadata decoder 7 may also ensure that the final time-domain guided clipping prevention gain values are interpolated with a temporal resolution corresponding to the temporal resolution of the audio samples. These final guiding clipping prevention gains may then be applied to the decoded audio signals or to signals ISG (or IGS in
The invention provides flexibility at the audio decoder side while leaving the control of the entire processing chain at the encoder side. The separation of the metadata used for dynamic range control and guided clipping prevention allows for separate modification (scaling or mapping) of each of the gains, said modification depending on the audio decoder configuration and the playback scenario.
The invention allows changing the underlying dynamic range control characteristic of a dynamic range control gain sequence DS from heavy compression to light compression if the dynamic range control gains are transmitted separately from the guided clipping prevention gains. This can be achieved by means of appropriate scaling or mapping of the values of the dynamic range control gain sequence DS.
In the event that the decoder target level is lower than the target level used for computing the gains for guided clipping prevention at the audio encoder 1, reduced attenuation of signal peaks can be allowed at the audio decoder 3 by appropriately scaling the guided clipping prevention gains. Then, the level of strong signal peaks can be maintained or at least be increased as compared to the case of applying the guided clipping prevention gains in an unmodified manner, which means that available headroom can be preserved.
According to an embodiment of the invention the metadata decoder 7 is configured to extract from the metadata bitstream MBS at least two dynamic range control gain sequences DS for the same audio frame comprising different dynamic range control gains.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences DS may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
By means of these features it is possible to provide multiple dynamic range control gain sequences DS for the channels of an audio track in order to enable audio output signals AOS at the decoder 1 which have different compression characteristics.
According to an embodiment of the invention the metadata decoder 7 is configured to extract from the metadata bitstream MBS a dynamic range control gain sequence DS comprising at least two dynamic range control gains related to different frequency bands of the audio decoder 3.
In an optional extension supporting multi-band dynamic range control, the metadata decoder 7 can be extended to also accept, as input, dynamic range control gain sequences DS having different dynamic range control gains for different frequency bands.
In case of a multi-band dynamic range control extension, the time-domain audio signal has to be transformed into the appropriate frequency domain representation before applying multi-band dynamic range control gains.
The information about which dynamic range control characteristics are associated with the different dynamic range control gain sequences DS may be included in the dynamic range control instruction contained in the file header in case of file based delivery or in the unified speech and audio coding configuration extensions.
According to an embodiment of the invention the metadata decoder 7 is configured to extract from the metadata bitstream MBS at least two guided clipping prevention gain sequences GS comprising different guided clipping prevention gains.
By means of these features it is possible to provide multiple guided clipping prevention gain sequences GS for an audio track in order to match the corresponding dynamic range control gain sequences DS.
In a further aspect the invention provides a method for operating an audio decoder 3, in particular an audio decoder 3 according to the invention, for decoding an audio bitstream and a metadata bitstream MBS related to the audio bitstream, which are produced in particular by an audio encoder according to the invention, the method comprises the steps of:
deriving a decoded audio signal DAS from the audio bitstream;
using an audio processing chain for having a plurality of adjusting stages 5, 6, 10, 11, 12, 13, 14 for adjusting characteristics of an audio output signal AOS of the audio processing chain 4 including adjusting a dynamic range of the audio output signal AOS by a dynamic range control stage 5, which is an adjustment stage 5 of the adjustment chain 4 and preventing of clipping of the audio output signal AOS by a guided clipping prevention stage 6, which is an adjustment stage 6 of the adjustment chain 4;
receiving, on the part of a metadata decoder 7, the metadata bitstream MBS and extracting dynamic range control gain sequences DS and guided clipping prevention gain sequences GS from the metadata bitstream MBS;
supplying at least a part of the dynamic range control gain sequences DS to the dynamic range control stage 5; and
supplying at least a part of the guided clipping prevention gain sequences GS to the guided clipping prevention stage 6.
In a further aspect the invention provides a computer program for performing, when running on a computer or a processor, the before-mentioned method.
According to an embodiment of the invention the metadata decoder 7 is configured to extract from the metadata bitstream MBS a dynamic range control gain sequence DS comprising at least two dynamic range control gains related to different audio channels.
Within each dynamic range control sequence DS it is possible to define a set of different dynamic range control gains for different channels or groups of channels, each channel usually being associated with exactly one channel group. For example, in multi-channel movie sound it is often desired to apply a specific dynamic range control gain to the dialog channel. The remaining channels such as front left, front right, rear left, rear right, for example, may be processed by using a different dynamic range control gain.
According to an embodiment of the invention the metadata decoder 7 is configured to extract from the metadata bitstream MBS a guided clipping prevention gain sequence GS comprising at least two guided clipping prevention gains related to different audio channels.
As with the dynamic range control gains, it is possible to define a set of different guided clipping prevention gains for different channels or groups of channels within each guided clipping prevention sequence, where each channel usually is associated with exactly one channel group. In typical operation modes the same guided clipping prevention gains are applied to all channels.
According to an embodiment of the invention the audio decoder 3 further comprises a metadata and parameter control stage 8 configured to provide metadata and parameters DS, GS, CLA, DI, DTL, PRL, IS, OMD, ICT to at least one of the adjustment stages 5, 6, 10, 11, 12, 13, 14 on the basis of configuration information received from a configuration providing stage 9 (see also
The metadata and parameter control stage 8 at the audio decoder may select the correct part of the metadata bitstream MBS in accordance with the desired dynamic range control gain sequences DS by sending a gain sequence selection signal GSS to the metadata decoder 7. The scaling and mapping information can also be part of or derived from the decoder configuration information CI.
By analogy, the metadata and parameter control stage 8 at the audio decoder 3 selects the correct part of the bitstream MBS in accordance with the desired guided clipping prevention gain sequences GS.
According to an embodiment of the invention the metadata and parameter control stage 8 is configured to select, in the event that a plurality of dynamic range control gain sequences DS is received, which of the plurality of dynamic range control gain sequences DS is supplied to the dynamic range control stage 5. The selection of the dynamic range control sequences DS on the part of the metadata and parameter control stage 8 can be based on the decoder configuration information CI such as channel layout CLA, downmix instructions DI, object metadata OMD (see
According to an embodiment of the invention the metadata and parameter control stage 8 is configured to select, in the event that a plurality of guided clipping prevention gain sequences GS is received, which of the plurality of guided clipping prevention gain sequences GS is supplied to the guided clipping prevention stage 6.
The selection of the guided clipping prevention gain sequence GS on the part of the metadata and parameter control block 8 is usually based on audio decoder configuration information CI described above.
According to an embodiment of the invention the dynamic range control stage 5 in the direction of the signal flow is the first adjustment stage of the audio adjustment chain 4.
Dynamic range control processing for channels may be performed before a potential downmixing or format conversion of the decoded audio channels AC in order to enable different gaining for the channel groups. Accordingly, the dynamic range control gains are applied to the objects AO before rendering (see
According to an embodiment of the invention the audio adjustment chain 4 comprises a format converter stage 10 configured to adjust a channel configuration of the audio output signal AOS. The format converter stage 10, also referred to as downmixer (DMX), is configured to adapt the channel configuration of the audio output signal AOS to the transducers used for playback. For example, the format converter stage may convert a 5.1 surround signal into a stereo signal.
According to an embodiment of the invention the audio adjustment chain 4 comprises a loudness normalization stage 11 configured to normalize the loudness of the audio output signal AOS.
The loudness normalization stage 11 may scale its audio input signal OCF such that the output signal IGS has the correct target loudness level. The scaling factor is derived from the difference between the program reference level PRL and the decoder target level DTL and provided by the decoder's metadata and parameter control stage 8 to the loudness normalization stage 11. The program reference level PRL may be obtained from the loudness information included, e.g., in the file header, whereas the decoder target level is a decoder configuration parameter. It is possible that multiple program reference level PRL values are provided within the loudness information, where each corresponds to a specific configuration of an applied dynamic range control sequence DS and/or an applied downmix. In this case, the metadata and parameter control stage 8 chooses the correct program reference level value PRL while considering the given audio decoder configuration. The location of the loudness-processing step depends on the actual output configuration of the audio decoder 3. In general, the loudness normalization should be performed on the output channels of the audio decoder 3, e.g. after the mixer, or after format conversion stage 10, if applicable.
According to an embodiment of the invention the audio adjustment chain 4 comprises a peak limiter stage 12 configured to limit peaks of the audio output signal AOS in the event that a threshold is exceeded.
According to an embodiment of the invention the peak limiter stage 12 in the direction of the signal flow is the last adjustment stage of the audio adjustment chain 4.
There are a number of potential sources of unavoidable sample clipping in the audio processing chain 4 of a typical audio decoder, including:
The peak limiter stage 12 is therefore placed at the very end of the processing chain 4 of the audio decoder 3 to prevent any undesired clipping of the audio samples, e.g. just before the time domain output signal is converted from the floating point to the fixed point pulse code modulation format (PCM format). This also means that any dynamic range control stage 5 and loudness normalization stage 11 described in the previous section is located before the peak limiter stage 12. In the context of MPEG-H 3D Audio [M30324], the peak limiter stage receives different signals IPL as input, depending on the actual playback configuration. In case of binaural rendering, the two output channels for the headphones may be processed by the peak limiter stage 12. If the output channels of the mixer are played back directly, the peak limiter stage 12 may process the corresponding loudspeaker channels. The same applies if the mixer output channels are converted to a different loudspeaker configuration (e.g. downmixed) by the format converter 10 first.
The peak limiter stage 12 may detect audio samples in the time-domain signal that exceed the limiting threshold, and applies a level reduction to the respective signal portions so that the samples of the audio output signal AOS stay below the limiting threshold. To prevent audible distortions, the level reduction should be performed gradually, i.e. the gain factor applied to the signal may only change slowly over time, which is ensured by a gain smoothing filter. A look-ahead delay of the input signal of the peak limiter stage before applying the limiter gain factor is also used in order to allow for a smooth reduction of the gain starting already before sharp signal peaks. The delay can be adjusted to a given requirement, a practical choice being 5 ms. In case of multi-channel audio a common gain factor may be applied to all audio channels to reduce computational complexity.
The information about the maximum peak IS of the audio signal DAS, which may be included in the loudness information of a file header, can be exploited to discard the peak limiter stage 12 if the decoder configuration implies that no clipping can occur in the audio processing chain. The peak limiter stage 12 may also be discarded, e.g., if the audio decoder 3 outputs audio samples with floating point precision, and clipping prevention is performed at a later point in the audio chain of the playback device. Obviously, if the decoder configuration for a given playback scenario allows application of correct guided clipping prevention gains, the peak limiter stage may also be disabled if no additional codec clipping occurs.
The peak limiter 12 may be considered as being an essential component in practice. There are numerous sources of clipping within the audio processing chain of the audio decoder 3. Special configurations may be covered by providing guided clipping prevention gain sequences. However, for flexible operation of the decoder, the peak limiter may be provided to assure that no clipping occurs.
As shown in
According to an embodiment of the invention the audio adjustment chain 4 comprises an object renderer stage 13 configured to mix audio objects AO into channels of the audio output signal AOS.
According to an embodiment of the invention the metadata decoder 7 is configured to extract from the metadata bitstream MBS a dynamic range control gain sequence DS comprising at least two dynamic range control gains related to different audio objects AO.
By analogy with the channel case, multiple dynamic range control sequences DS that are associated with audio objects or groups of objects can be supported. These object-related dynamic range control sequences can also be considered as being associated with a specific channel group within a channel-related set of dynamic range control gains. The term audio objects AO herein relates to single source sounds such as a door bell.
According to an embodiment of the invention the metadata decoder 7 is configured to extract from the metadata bitstream MBS a guided clipping prevention gain sequence GS comprising at least two guided clipping prevention gains related to different audio objects.
As with the dynamic range control gains, it is possible to define a set of different guided clipping prevention gains for different audio objects or groups of audio objects within each guided clipping prevention sequence, where each channel usually is associated with exactly one audio object. In typical operation modes the same guided clipping prevention gains are applied to all audio objects.
The definitions of guided clipping prevention gain sequences for objects are analogous to the dynamic range control case.
Another realization of the concept is shown in
According to an embodiment of the invention the audio adjustment chain 4 comprises a transducer adaption stage 14 configured to adjust characteristics of the audio output signal AOS to a transducer system used for reproducing the audio output signal.
In order to reduce the necessitated limiting strength of the peak limiter stage 12, frequency dependent transducer adaptation processing, e.g. implemented by an equalization filter, can be included in the processing chain 4.
The transducer adaptation stage 14 receives an audio input signal ITA and information ICT about the characteristics of the transducer used for reproduction (loudspeaker or headphones).
The task of the transducer adaption stage 14 is to adapt the audio output signal AOS to the transducer characteristics, especially when transducers have a limited frequency range and thereby will limit the frequency range of the audio output signal. By limiting the frequency range by using appropriate filters mimicking the transfer function of the transducer prior to the peak limiting stage 12, the input signal IPL of the peak limiter stage is reduced in level. As a consequence, signal peaks that exceed the limiting thresholds are reduced in level. Consequently, the effect of the peak limiting stage 12 is less severe. This is advantageous because
In addition to the filtering, the transducer adaptation stage 14 can also include signal-adaptive processing such that the band-limiting of the transducer is compensated for. Especially very small transducers are not capable of reproducing low-frequency signals.
This can be compensated for by increasing the perceived bass response of the transducer, e.g. by artificially generating and adding harmonics of the low-frequency notes to the signal.
With respect to the decoder, the encoder, and the methods of the described embodiments the following shall be noted:
Although some aspects have been described in the context of an apparatus, it is clear that these aspects also represent a description of the corresponding method, where a block or device corresponds to a method step or a feature of a method step. Analogously, aspects described in the context of a method step also represent a description of a corresponding block or item or feature of a corresponding apparatus.
Depending on certain implementation requirements, embodiments of the invention can be implemented in hardware or in software. The implementation can be performed using a digital storage medium, for example a floppy disk, a DVD, a CD, a ROM, a PROM, an EPROM, an EEPROM or a FLASH memory, having electronically readable control signals stored thereon, which cooperate (or are capable of cooperating) with a programmable computer system such that the respective method is performed.
Some embodiments according to the invention comprise a data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system such that one of the methods described herein is performed.
Generally, embodiments of the present invention can be implemented as a computer program product with a program code, the program code being operative for performing one of the methods when the computer program product runs on a computer. The program code may for example be stored on a machine readable carrier.
Other embodiments comprise the computer program for performing one of the methods described herein, which is stored on a machine readable carrier or a non-transitory storage medium.
In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.
A further embodiment of the inventive methods is, therefore, a data carrier (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, the computer program for performing one of the methods described herein.
A further embodiment of the inventive method is, therefore, a data stream or a sequence of signals representing the computer program for performing one of the methods described herein. The data stream or the sequence of signals may be configured, for example, to be transferred via a data communication connection, for example via the Internet.
A further embodiment comprises a processing means, for example a computer, or a programmable logic device, configured or adapted to perform one of the methods described herein.
A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
In some embodiments, a programmable logic device (for example a field programmable gate array) may be used to perform some or all of the functionalities of the methods described herein. In some embodiments, a field programmable gate array may cooperate with a microprocessor in order to perform one of the methods described herein. Generally, the methods are advantageously performed by any hardware apparatus.
While this invention has been described in terms of several advantageous embodiments, there are alterations, permutations, and equivalents which fall within the scope of this invention. It should also be noted that there are many alternative ways of implementing the methods and compositions of the present invention. It is therefore intended that the following appended claims be interpreted as including all such alterations, permutations, and equivalents as fall within the true spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
13189754.8 | Oct 2013 | EP | regional |
This application is a continuation of copending U.S. application Ser. No. 15/136,324, filed Apr. 22, 2016, which is a continuation of copending International Application No. PCT/EP2014/072431, filed Oct. 20, 2014, which is incorporated herein by reference in its entirety, and additionally claims priority from European Application No. EP 13189754.8, filed Oct. 22, 2013, which is also incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 15136324 | Apr 2016 | US |
Child | 17174269 | US | |
Parent | PCT/EP2014/072431 | Oct 2014 | US |
Child | 15136324 | US |