Deferred loudness adjustment for dynamic range control.

By normalizing loudness at the decoder side using integrated loudness updates, the solution addresses the challenge of unknown program loudness in live audio streaming and recording, reducing artifacts and enhancing the listening experience through accurate dynamic range control.

GB2627588AActive Publication Date: 2024-08-28APPLE INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
GB2024005585
Authority / Receiving Office
GB · GB
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-11-10
Filing Date
2021-11-10
Publication Date
2024-08-28
Estimated Expiration
2041-11-10

AI Technical Summary

Technical Problem

In live audio streaming and recording applications, dynamic range compression (DRC) faces challenges due to unknown program loudness, leading to misaligned compressor characteristics and audible artifacts like pumping effects, as loudness normalization is typically performed at the encoder side without knowing the actual program loudness.

Method used

Deferred loudness adjustment is implemented by performing loudness normalization at the decoder side, where integrated loudness updates are used to dynamically adjust the DRC gains, allowing for real-time alignment with the audio signal's loudness profile.

Benefits of technology

This approach reduces unwanted loudness shifts and artifacts, improving the listening experience by ensuring accurate dynamic range control even in real-time scenarios where initial loudness measurements are uncertain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The disclosure relates to dynamic range control (DRC), and particularly to methods of transferring (‘deferring’) loudness adjustment (loudness normalisation) from the encoder to the decoder during liv
Need to check novelty before this filing date? Find Prior Art

Description

[0001] A sound program, such as music, a podcast, a live recorded short video clip, or a feature film, has loud and soft segments that define its dynamics and dynamic range. In many situations, such as listening through a headset in a noisy environment or through loudspeakers at home in a late-night scenario, it is desirable to reduce the dynamics and dynamic range of the playback sound to improve the listener’s experience. Dynamic range compressors are used for that purpose. They are digital signal processors that apply a time-varying gain to an input, digital audio signal (of the sound program) so as to amplify soft segments and attenuate loud segments of the audio signal. To avoid audible pumping artifacts that can result from dynamic range compression of an audio signal, a loudness normalization process can be performed that “aligns” the input audio signal to a compression characteristic or profile, while compressing the audio signal according to the compression characteristic. This may be done by offsetting the instantaneous loudness of the input audio signal with its program loudness, where program loudness is a computed value that aims at describing the overall loudness of the sound program (also referred to as integrated loudness.) SUMMARY

[0002] Audio coding standards define methods for dynamic range compression that generate dynamic range control, DRC, gains at an encoder side where the sound program is being created or is being prepared for distribution or for storage / archiving. The DRC gains are referred to here as a DRC gain sequence that is time aligned with its associated sound program, such that one or more gain values in the sequence are to be applied to a corresponding digital audio frame of the sound program. The DRC gain sequence is then formatted for example as metadata associated with the sound program, into one or more bitstreams. A decoder side obtains the bitstream and applies the in-stream DRC gains to compress the dynamic range of the decoded audio signal, if desired by the decoder side (typically during playback of the decoded audio signal.) An advantage of such a metadata-based approach is quality improvement due to a larger look-ahead time interval for offline encoding of the DRC gains, than otherwise possible for real-time compression. Another advantage is that the compression characteristic can be controlled at the encoder side, for example according to the expertise of the sound program creator or distributer.

[0003] For metadata-based DRC in online applications (e.g., live audio streaming, and recording live audio to a file), there is a challenge if the program loudness of the sound program that is being streamed for playback or written to a file for storage is yet unknown (because the sound program has not ended yet). That is because the compressor characteristic might not be properly adjusted (or loudness normalized) if the actual program loudness of the sound program (which can only be determined once the sound program has ended) deviates significantly from what was expected or predicted.

[0004] Several aspects of the disclosure here are novel digital signal processing methods of deferring loudness adjustment (loudness normalization) for dynamic range control (DRC), from the encoder side to the decoder side. Other aspects are techniques for changing the compressor characteristic in the decoder side when using metadatabased DRC gain sequence processing, with loudness normalization. These aspects are especially beneficial for applications such as live streaming and also live recording to a file.

[0005] The above summary does not include an exhaustive list of all aspects of the present disclosure. It is contemplated that the disclosure includes all systems and methods that can be practiced from all suitable combinations of the various aspects summarized above, as well as those disclosed in the Detailed Description below and particularly pointed out in the Claims section. Such combinations may have particular advantages not specifically recited in the above summary. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Several aspects of the disclosure here are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to "an" or “one” aspect in this disclosure are not necessarily to the same aspect, and they mean at least one. Also, in the interest of conciseness and reducing the total number of figures, a given figure may be used to illustrate the features of more than one aspect of the disclosure, and not all elements in the figure may be required for a given aspect.

[0007] Fig. 1 shows example DRC characteristic curves.

[0008] Fig. 2 is a block diagram of an audio codec system that applies DRC in the decoder side, and without loudness normalization being performed in the encoder side.

[0009] Fig. 3 is a block diagram of an audio codec system that applies DRC in the decoder side, without loudness normalization being performed in the encoder side, suitable for live streaming.

[0010] Fig. 4 is a block diagram of an audio codec system that applies DRC in the decoder side, without loudness normalization being performed in the encoder side, suitable for live recording to storage or archive.

[0011] Fig. 5 depicts part of an MPEG-D DRC compliant audio codec system that applies DRC in the decoder side.

[0012] Fig. 6 depicts part of an MPEG-D DRC compliant audio codec system that applies DRC in the decoder side with loudness normalization in the encoder side.

[0013] Fig. 7 depicts part of an MPEG-D DRC compliant audio codec system that applies DRC with loudness normalization in the decoder side.

[0014] Fig. 8 is a flow diagram of a new encoder side process that can generate backwards compatible and non-backwards compatible MPEG-D DRC bitstream extensions.

[0015] Fig. 9 is a flow diagram of a new decoder side process that can produce a DRC gain sequence using either backwards compatible or non-backwards compatible MPEG-D DRC bitstream extensions.

[0016] Fig. 10A and Fig. 10B are a block diagram of an MPEG-D DRC compliant audio codec system in which a backwards compatible encoder side produces a backwards compatible bitstream that is being processed by both a new decoder and a legacy decoder. DETAILED DESCRIPTION

[0017] Several aspects of the disclosure with reference to the appended drawings are now explained. Whenever the shapes, relative positions and other aspects of the parts described are not explicitly defined, the scope of the invention is not limited only to the parts shown, which are meant merely for the purpose of illustration. Also, while numerous details are set forth, it is understood that some aspects of the disclosure may be practiced without these details. In other instances, well-known circuits, structures, and techniques have not been shown in detail so as not to obscure the understanding of this description.

[0018] In order to properly apply dynamic range control to an audio signal, a compressor characteristic (DRC characteristic, DRC profile) should be “aligned” with the loudness level range of the audio signal. For instance, referring to Fig. 1, the alignment is along the input level axis so that the zero-crossing of the DRC characteristic curve is roughly at the center of the loudness level range of the audio signal. The level at the zero-crossing point is also referred to as DRC input loudness target - in the example set of characteristic curves shown in Fig. 1, that level is approximately -31 dB. The center of the loudness level range may for example be the average level of the sound program, or the average dialog level in the sound program. The process for achieving such alignment is referred to here as loudness normalization, in connection with DRC of an audio signal, to a given loudness target. For example, the loudness of the audio signal (sound program) may be a single value known as integrated loudness. Integrated loudness is a measure of loudness of an audio signal, that is similar to a root mean squared, RMS, but more truthful in terms of human hearing. It may be equivalent to program loudness in that it measures how loud a sound program is over its entire duration. To achieve loudness normalization, the integrated loudness when given in units of decibels, dB, can be subtracted from the DRC input loudness target to derive the normalization gain in dB. The normalization gain is added to the output of a loudness model that is computing the instantaneous loudness of the audio signal (sound program.) The instantaneous loudness may be a sequence of loudness values each computed based upon (and representing human perceived loudness of) a respective, digital audio frame that constitutes the input digital audio signal. Another way to achieve loudness normalization is to shift the DRC characteristic curves depicted in Fig. 1 to the right or to the left of zero dB (by the amount of the normalization gain.) In the example of Fig. 1, the curves have been shifted left to -31 dB (the loudness target, in this example), and is therefore properly aligned with (and can therefore be applied directly) to a sound program having an integrated loudness of -31 dBA (A-weighted) or LKFS (loudness K-weighted level full scale) - in other words, the normalization gain in that case would be zero dBA.

[0019] If the integrated loudness of a sound program is yet unknown when the dynamic range control signal processing is ongoing, as is the case for live audio, then a prediction needs to be made for applying loudness normalization. The prediction however may be incorrect thereby resulting in DRC gains that have an undesired bias in them, or resulting in DRC gains that produce pumping effects - undesired loudness shifts between the uncompressed portions and the compressed portions of the audio signal.

[0020] To reduce the likelihood of the undesirable loudness shift, an aspect of the disclosure here applies loudness normalization to DRC in the decoder side, rather than in the encoder side, of an audio codec system or method. An example of the audio codec system and associated method is shown in the hardware block diagram of Fig. 2. The various hardware blocks of the audio codec system and method may be implemented by programmed processors. In such a method, the integrated loudness (which is needed by the loudness normalization performed in connection with DRC for playback or for archiving / storage of the decoded audio signal) can be obtained in at least two instances which will be described below in connection with Fig. 3 and Fig. 4.

[0021] Beginning with Fig. 2, the audio codec system has an encoder side that may be implemented by one or more processors that execute or are configured by instructions stored in memory generically referred to here as “a programmed processor”, for example in one or more servers. The upper audio signal processing path includes a side chain, which includes a loudness model that computes or estimates the instantaneous loudness of a digital, input audio signal (sequence), also referred to here as the sound program. This estimation is based on a perceptual loudness scale (such as a sone scale), hence it is approximately logarithmic. To smooth the instantaneous loudness sequence over time, a smoothing filter can be applied as shown. It results in smoothing in areas of the input audio sequence where compression gain changes are not desired but keeps macro-dynamic loudness transitions unaffected.

[0022] The lower audio signal processing path includes a delay block that delays the input audio sequence, to compensate for the delay that is due to the side chain. The smoothed loudness sequence and the delayed input audio sequence are then fed to an encoder.

[0023] The encoder performs bitrate reduction operations upon one or both of its inputs, and may produce one or more bitstreams that contain bitrate reduced versions of one or both of its inputs. The one or more bitstreams may then be either transmitted to a decoder side (e.g., over the Internet.) or they may be written to a file for storage or archiving until accessed by a decoder side process. The smoothed loudness (referring to a sequence of smoothed loudness values, or to a single smoothed loudness value) may be carried as metadata in the same bitstream as the delayed input audio sequence, e.g., associated with their “corresponding” Advanced Audio Coding, AAC, audio frames. This is also referred to as being in the audio layer. Alternatively, the smoothed loudness sequence and other loudness values such as integrated loudness updates and DRC payloads (as discussed further below) may be transmitted not in the audio layer but in a higher layer such as in the file format level. In both instances, one or more bitstreams are produced in which the encoded audio is provided along with associated metadata such as the smoothed loudness sequence or as described below in other aspects, instructions to the decoder side for applying an encoder-sourced DRC gain sequence.

[0024] The decoder side may also be implemented as a programmed processor, e.g., one or more processors that execute or are configured by instructions stored in memory as part of an audio playback device. Note here that the decoder side processes may be implemented in the same audio playback device as the encoder side processes. Alternatively, the decoder side processes may be implemented in an audio playback device that is separate from the programmed processor that performs the encoder side processes. Examples of the audio playback device include a smartphone, a tablet computer, a digital media player, a headset, or a vehicle infotainment system. In the decoder side, a decoder undoes the bitrate reduction operations of the encoder, to recover the smoothed loudness sequence and the delayed input audio sequence. The decoded smoothed loudness value is then mapped to a “corresponding” DRC or compression gain value. This mapping is a memory-less input-output function that implements for example one of the curves illustrated in Fig. 1 (or alternatively any other desired curve.) The mapping constitutes the compressor characteristic or compressor profile (DRC characteristic) whose output is a time-varying gain (a sequence of DRC gain values) that is a function of a time-varying input loudness level. The mapping may also include a conversion from the logarithmic loudness domain to the linear domain of the DRC gain. The DRC gain values (sequence) are then applied, as depicted by the multiplier symbol in the figure, to the decoded audio signal, if compression is desired. Although not shown, the compressed audio may then be passed to a playback processing block that ultimately produces transducer (speaker) driver input signals that convert the compressed audio into sound.

[0025] In Fig. 2, it can be seen that the smoothed loudness sequence is adjusted or normalized, in the decoder side, prior to being input to the DRC mapping block. For example, a constant, integrated loudness (a single value) can be subtracted (in dB domain) from the DRC input loudness target to derive the normalization gain in dB. The normalization gain is added to each smoothed loudness value that is in the smoothed loudness sequence, to yield a normalized loudness sequence which is used in the DRC process. There are at least two applications of such a DRC process, e.g., live or real-time streaming and live recording to file for storage or archive.

[0026] In one such application, referring now to Fig. 3, the input audio at the encoder side is a live or real-time digital audio recording that is being streamed to the decoder side, e.g., over the Internet. The input audio contains audio capture of a live or real-time event taking place contemporaneously with the encoding and bitstream transmission. As such, a single, integrated loudness value that represents the entire sound program cannot be computed until the live event has ended. Until then, an integrated loudness measure block in the encoder side collects samples of the live audio, that is being sent to the encoder delayed for time alignment, over a time interval that is longer than a single audio frame of 5-100 msec, such as a few seconds, and computes a measure of loudness of that interval. It then “integrates” or collects several of such measures going back to the start of the sound program, e.g., averages them, to compute an integrated loudness update. The integrated loudness update may be a measure of integrated loudness only for the portion of the sound program that has been played back or streamed until the current update. This measure is repeated, e.g., periodically, to produce in effect a “running average” integrated loudness, and transmits the latest, integrated loudness update (which is a single value) to the decoder side. Note that the term “running average” as used here does not require an actual average to be performed, just some measure of loudness of the sound program from the start of the program until the current update, based on collecting loudness measurements including evaluating statistics of the collected loudness measurements. The updates (running averages) may be computed and then provided as part of a bitstream that also contains the encoded sound program (encoded audio signal), as a plurality of instances of an integrated loudness update field, with adjacent instances in the bitstream being between one to ten seconds apart, over the duration of the sound program.

[0027] Note also that the term “integrated loudness update” may also be referred to as a running average loudness or a “partial integrated loudness”; at the end of the sound program the last or final integrated loudness update may represent the loudness of the entire sound program (also referred to as the integrated loudness or program loudness as for example described in Recommendation ITU-R BS. 1770-4 (10 / 2015) Algorithms to measure audio programme loudness and true-peak audio level.)

[0028] In the decoder side, a decoder obtains the bitstream and extracts therefrom the integrated loudness update which a decoder side process then applies to loudness normalize the DRC process. This may be done by for example adding a single, loudness normalization gain value (e.g., the difference between the DRC input loudness target and the integrated loudness update value) to a decoded or recovered instantaneous loudness sequence before input to the DRC characteristic mapping block. Alternatively, loudness normalization may be done by shifting the DRC characteristic along its input axis by an amount equal to the loudness normalization gain value. The loudness normalization gain may be periodically updated during transmission of the bitstream (sound program), with the latest, partial integrated loudness value (integrated loudness update) that has been computed in the encoder side for the lapsed portion of the live event.

[0029] In another application, referring now to Fig. 4, the input audio at the encoder side is a live or real-time digital audio recording of an event that is to be written to a file at the end of the recording (when the event ends) for purposes of archiving or storage. A single, integrated loudness value that represents the program loudness of the entire live audio event can be computed at the end of the recording by the integrated loudness model block and provided to the encoder, as soon as the event has ended. The encoder writes the integrated loudness value into a file along with an encoded version of the live audio, and with an encoded version of the instantaneous (and smoothed) loudness sequence that was being computed by the loudness model (based upon the same live audio). In the decoder side, a decoder obtains the file (bitstream), and decodes the input audio and the instantaneous loudness sequence from the file, extracts the integrated loudness value from the file. A decoder side process then uses the integrated loudness value to loudness normalize the decoded, instantaneous loudness sequence before input to a DRC (compression) mapping block, the output of which is then applied to the decoded input audio (if compression is desired) during playback.

[0030] In one aspect, the smoothing filter is a nonlinear filter such one that is described in US patent no. 10,109,288. A useful property of the filter is that its output can be level-shifted by the same amount as the input. That means, when defining / (x) as the nonlinear filter function, x(n) as the input signal, andy(n) as the output, one can write y(n) = / (x(n))

[0031] Given a shift of the input signal by AL, f(x) fulfills the shift property if the output is shifted by AL, or expressed mathematically: y(n) + AL = / (x(n) + AL)

[0032] This is beneficial because it avoids any sidechain processing in the encoder side that has a dependency on absolute loudness values.

[0033] Another aspect of the disclosure here is a way to apply DRC in compliance with the MPEG-D DRC standard ISO / IEC, “Information technology -MPEG Audio Technologies - Part 4: Dynamic Range Control,” ISO / IEC 23003-4:2020 (“MPEG-D DRC”), extended to support loudness normalization at the encoder side. Fig. 5 shows a simplified block diagram of part of the MPEG-D DRC processing that generates and applies the DRC gains, based on decoding the DRC gains from the metadata in a bitstream obtained from the encoder side. MPEG-D DRC provides predefined DRC characteristics and flexible ways to encode parameterized characteristics.

[0034] In Fig. 5, the encoder side applies a smoothed, instantaneous loudness sequence (computed for an input audio sequence) to a selected DRC characteristic (also referred to as a “mapping block” as used above in connection with Fig. 2.) An output of the DRC characteristic mapping block produces a DRC gain sequence which is then fed to a DRC encoder. The latter is performing bitrate reduction to encode its input sequences into one or more bitstreams that are then transmitted to or otherwise made available to the decoder side. In the decoder side, a DRC decoder undoes the bitrate reduction encoding, to recover the DRC gain sequence (decoded DRC gain sequence.) The decoded DRC gain sequence is then applied to the decoded audio signal (if compression is desired.)

[0035] MPEG-D DRC also supports a type of decoder side processing which changes the DRC characteristic that is applied to compress the sound program, from the one used in the encoder side as seen in Fig. 5 (to compute the DRC gain sequence that was inserted into the bitstream as metadata), to a different one that may be selected by decoder side processing based on a current playback or listening condition. This is achieved in the decoder side as shown in Fig. 6, by first applying the encoder side DRC gain sequence to an inverse characteristic A, which is an inverse of the DRC characteristic A that is being applied in the encoder side to produce the encoder side DRC gain sequence. An index (identifier or pointer) to the DRC characteristic A (that was used in the encoder side to produce the DRC gain sequence) may be provided in the bitstream, so that the decoder side can identify the inverse characteristic A. Applying the DRC gain sequence as input to the inverse characteristic A results in a recovered, smoothed instantaneous loudness sequence. If quantization effects are ignored, the recovered loudness sequence (at the output of the inverse characteristic A block) is essentially the smoothed loudness sequence that was used by the encoder side processing. As a result, the recovered loudness sequence can be applied to a second DRC characteristic B, to produce a second DRC gain sequence that may be more suitable to compress the decoded audio signal (than DRC characteristic A.) The second DRC gain sequence is then applied to the decoded audio (if compression is desired for example during playback.)

[0036] In accordance with one aspect of the disclosure here, the loudness normalization of the sidechain in the encoder side shown in Fig. 6 is replaced using the approach shown in Error! Reference source not found.. That means, the integrated loudness-based offset (normalization gain) is applied in the decoder side instead of in the encoder side. Fig. 7 shows a block diagram of such a system. This is also referred to here as an enhanced MPEG-D DRC compliant system (also referred to below as having a “new” encoder and a “new” decoder.) Such a system has, in its encoder side, a block called integrated loudness measure whose output provides integrated loudness value updates, as was discussed above in connection with Fig. 3. The integrated loudness updates are provided to an audio encoder. Here, the encoder is a DRC encoder that also encodes a DRC gain sequence (in addition to the input audio.) The DRC gain sequence may have been determined as described above in connection with Fig. 6. The encoded DRC gain sequence and the integrated loudness updates are provided via one or more bitstreams to the decoder side. The DRC gain sequence may be formatted as metadata, associated with the encoded input audio that is also being provided to the decoder side.

[0037] The integrated loudness measure is a running measurement (also referred to here as a running average) of integrated loudness, taken starting at the beginning of the sound program and continues over time to “integrate” the audio signal of the sound program for the purpose of computing an integrated loudness value only for the elapsed portion of the sound program. As the audio signal (sound program) continues, the integrated loudness measure produces updates, e.g., periodically, for example every ten seconds. These integrated loudness updates are written into the bitstream (e.g., by the DRC encoder.) This can be supported in MPEG-D DRC by either writing the updates into extension fields or extension pay loads of the audio bitstream or writing them into a separate metadata track as part of an MP4 file. Without introducing additional system delay, the updates can have a look-ahead equal to the latency of the sidechain that is producing the DRC gain sequence (at the output of the DRC characteristic A block.) A larger look-ahead can improve the first integrated loudness update at the start of the sound program, i.e. it may be closer to the program loudness of the sound program.

[0038] In a first case that may be illustrated by Fig. 7, the input audio is live audio that, via the bitstream, is being contemporaneously streamed to the decoder side (for example over the Internet) to a decoder side. In that case, the program loudness cannot be provided during the streaming (because the live audio event has not ended yet.) In that case the DRC (being applied in the decoder side) is dynamically adjusted or loudness normalized, based on the in-stream integrated loudness updates as shown -a dynamically changing normalization gain that may be equal to the difference between the DRC input loudness target value and the dynamically changing integrated loudness update. To limit the rate of change in the integrated loudness update, the update sequence may be smoothed at the beginning of the stream but not at the end of the stream. Also, the initial update values (at the beginning of the stream) may take into account an expected loudness of the input audio. For example, the expected loudness may be the outcome of a careful professional studio setup and pilot measurements of the lapsed initial portion of the input audio.

[0039] In a second case, the input audio (in the encoder side) is a live audio recording that is being written to an audio file in the encoder side as in Fig. 4 (rather than being live streamed.) In that case, the final integrated loudness update (the true, integrated loudness or program loudness of the sound program) can be written to the file at the end of the recording, without requiring a rewrite of the file. When seeking to comply with MPEG-D DRC this can be accomplished by writing (in the encoder side) the final integrated loudness update to a loudness “box” or field at the ISO Base Media File Format level. The Audio Stream Loudness box type is called ludt. Still referring to Fig. 7, when the encoded audio and its associated encoder side DRC gain sequence and integrated loudness updates are obtained by the decoder side, a decoder side process may apply DRC by determining the DRC gain sequence (using DRC characteristic B) based on a loudness normalized version of the decoded audio signal. This normalization, which in this example adjusts the recovered smoothed instantaneous loudness at the output of the inverse characteristic A, is preferably accomplished by using the final integrated loudness update value that was written into the loudness box. If the recording ended in the encoder side without adding the loudness box into the stream, then the DRC can still be applied with loudness normalization in the decoder side, by using the in-stream integrated loudness updates.

[0040] Since the in-stream integrated loudness updates may vary slowly over time, for example every 1-10 seconds, the normalization will effectively cause the DRC characteristic B to shift accordingly. This shift might become audible during playback of the decoded audio, at the beginning of the recording or stream, when the integrated loudness updates are based on a short duration (elapsed time interval) of the sound program. To limit the rate at which the integrated loudness updates change, the updates themselves may be smoothed at the beginning of the recording or streaming, but not at the end.

[0041] In an encoder side process that is in accordance with Fig. 6 where the input audio is a live recording to file, the input audio may be compressed (DRC) using sidechain loudness normalization and then encoded and written to file, in the encoder side. This might essentially result in compressed audio output that is comparable if not essentially the same as that which is available from a decoder side process that is in accordance with Fig. 7 where the decoded audio is compressed in the decoder side with loudness normalization being based on the bitstream-contained integrated loudness updates. However, an advantage of deferring the loudness normalization to the decoder side as in Fig. 7 is that by merely adding, when the recording or event has ended, the final integrated loudness update at the ISO Base Media File Format level MP4 level, the listening experience is improved when the file is played back.

[0042] Turning now to Fig. 8, this is a flow diagram of a new, encoder side process that can generate both backwards compatible and non-backwards compatible MPEG-D DRC bitstream extensions, for DRC by a decoder side. A backwards compatible bitstream extension field or payload is one that can be processed by a legacy decoder (decoder side process) to perform DRC as per the extension but without loudness normalization (when applying DRC to a decoded audio signal.) An example of such a legacy decoder can be seen in Fig. 6. A non-backwards compatible bitstream extension is one that cannot be processed by the legacy decoder (to produce compressed audio.) This dual feature may be enabled as follows.

[0043] A flag may be defined that is contained in the bitstream, referred to as for example characteristicVl Override. The encoder side may set or clear this flag, as follows. To produce a backwards compatible bitstream, the flag is given a first value such as characteristicVl Override =1, and in that case the bitstream will also contain a loudness normalization gain, also referred to as encDrcNormGainDb. In this mode, the encoder side process determines the first DRC gain sequence by applying the audio signal to the first DRC characteristic with loudness normalization, using the loudness normalization gain (also referred to here as an encoder side DRC normalization gain.) See Fig. 10A and Fig. 10B which is a block diagram of an MPEG-D DRC compliant audio codec system in which a backwards compatible encoder side produces a backwards compatible bitstream that is being processed by both a new decoder and a legacy decoder. In the case where the input audio is a live recording, integrated loudness updates are also being computed and provided to the encoder (to be incorporated into the bitstream.) The loudness normalization gain may be computed as shown in Fig. 10A, by subtracting a predicted program loudness value from the DRC input loudness target (assuming units of dBA, for example.)

[0044] The loudness normalization gain, encDrcNormGainDb, is the value that is applied in a new, backwards compatible encoder side process, in order to produce a backwards compatible bitstream in which the DRC gain sequence was obtained with loudness normalization (to DRC characteristic A.) This bitstream can be processed by both a new decoder and a legacy decoder, for example as shown in Fig. 10B. When this bitstream is processed by a legacy decoder, the latter does not apply loudness normalization during DRC. When the bitstream is processed by a new decoder that applies loudness normalization during DRC, encDrcNormGainDb is used to compensate for or neutralize or undo the application of encDrcNormGainDb by the backwards compatible encoder, in order to apply a more accurate loudness normalization using the integrated loudness update. In other words, the processor of the new decoder compensates for the encoder side DRC normalization gain, when applying a decoder side DRC loudness normalization.

[0045] Returning to Fig. 8, to enable its processing by both legacy and new decoders, the backwards compatible bitstream may also contain, when the flag has the first value, e.g., characteristicVlOverride=l, a first DRC configuration field, e.g., UNIDRCCONFEXT, W, and a second DRC configuration field, e.g., UNIDRCCONFEXT _V2. The first DRC configuration field instructs a decoder side process to apply DRC to the decode audio signal without loudness normalization, for example as seen in the legacy decoder block of Fig. 10B. The second DRC configuration field instructs a decoder side process to apply DRC to the decoded audio signal with loudness normalization, for example as seen in the new decoder block of Fig. 10B.

[0046] Still referring to Fig. 8, the new encoder side can create a non-backwards compatible MPEG-D DRC bitstream extension (one that cannot be processed by a legacy decoder to produce compressed audio), as follows. Note that the encoder side may wish to do so if it recognizes that only a new decoder side will be processing the bitstream. In such a bitstream, the flag has a second value, e.g., characteristicV1 Override=Q, and the bitstream does not contain a loudness normalization gain (that is intended for use by the decoder side.) In addition, the first DRC configuration field, e.g., UNIDRCCONFEXT, V7, is also omitted from the bitstream. Fig. 9 shows a new decoder, which can process such a bitstream. In other words, when the flag has the second value, e.g., characteristicV 1 Override =0, the bitstream contains the second DRC configuration field and not the first DRC configuration field.

[0047] Fig. 9 is a flow diagram of a new decoder side process that can produce a DRC gain sequence using either backwards compatible or non-backwards compatible MPEG-D DRC bitstream extensions. The process may begin with parsing the bitstream to detect the second DRC configuration field, e.g., UNIDRCCONFEXT _V2, and the flag, characteristicV 1 Override. In response to the flag having the first value, e.g., characteristicV I Override =1, the process applies DRC to the audio signal for example as shown in Fig. 10B (new decoder block), using the DRC characteristic B and with loudness normalization that uses i) the loudness normalization gain (e.g., encDrcNormGainDb ) and ii) the plurality of instances of integrated loudness update (both of which are decoded from the obtained bitstream by the DRC decoder along with the audio signal.)

[0048] In one aspect, still referring to Fig. 9, when the flag has the first value, e.g., characteristicV 1 Override =1, the index of the first DRC characteristic that may be contained in the first DRC configuration field is overridden by the index of the first DRC characteristic that is contained in the second DRC configuration field. For example, the MPEG-D DRC may define DRC characteristics 1-6 which are recognizable by legacy MPEG-D DRC decoders (also referred to here as legacy index values or a legacy range.) In this disclosure, in accordance with an enhanced MPEG-D DRC procedure, those same characteristics are duplicated with different index values (also referred to here as new index values or a new range), e.g., 65-70. In other words, the legacy characteristics can be referenced by either their legacy indices 1-6, or by their new indicates 65-70; their parameters remain the same, as seen in the table below. Table 6 -Parameters of DRC characteristics in index ranges 1 to 6 and 65 to 70 Parameter DrcCharacteristic 1,65 2,66 3, 67 4,68 5, 69 6, 70 ioRatio 0,0 0,2 0,4 0,6 0,8 1,0 expLo 9,0 9,0 9,0 9,0 6,0 5,0 expHi 12,0 12,0 12,0 12,0 8,0 6,0

[0049] When a new encoder side process generates a backwards compatible bitstream (characteristicV 10verride= 1, right side of the flow diagram in Fig. 8), it generates both the first (VI) and second (V2) DRC configuration extension fields, where the first DRC configuration field refers to one or more of the legacy indices 1-6, not any of the new indices 65-70, to enable backwards compatibility with legacy decoders. The V2 extension field may refer to one or more of the new index values, or it may refer to one or more of the legacy index values.) The new index values effectively signal a new decoder (one that is in compliance with the enhanced MPEG-D DRC procedure in this disclosure) that loudness normalization may be required when it is producing a second DRC gain sequence. Only the UNIDRCCONFEXT_V2 extension supports DRC characteristic indices 65-70 which require loudness normalization in the decoder.

[0050] A new decoder side process may decode both the VI and V2 extension fields as shown in the right side of Fig. 9, resulting in extracting two indices (two different index values) that point to the same, DRC characteristic A. The V2 index is said to override the VI index in this case, because characteristicV10verride= 1, in that the new decoder will replace the DRC characteristic indices obtained from the UNIDRCCONFEXT_V1 extension by the ones from the UNIDRCCONFEXT.V2 extension.

[0051] Returning to Fig. 8, when a non-backwards compatible bitstream is generated (to be provided to a new decoder, not a legacy decoder), the flag, characteristicVI Override is set to zero and the UNIDRCCONFEXT_V2 extension is generated in the bitstream. The UNIDRCCONFEXT_V2 extension contains substantially the same bitstream fields as the UNIDRCCONFEXT _V 1 extension. While UNIDRCCONFEXT_V 1 does not support characteristics 65-70, the transmitted UNIDRCCONFEXT_V2 does. Since loudness normalization for generating the DRC sequence in the encoder side is not applied in this case - see Fig. 7 - it is not compensated for in the decoder (as also seen in Fig. 7.) That situation is equivalent to setting the normalization gain, e.g., encDrcNormGainDb, to zero in the decoder side process of Fig. 10B. When such a bitstream is parsed by the new decoder side process, in response to i) the flag having the second value and ii) the index being a first value (e.g., in the range 65-70), the decoder side process applies DRC to the audio signal using the second DRC characteristic B and with loudness normalization that uses the integrated loudness update but without using the loudness normalization gain (e.g., the value of encDrcNormGainDb in the summation block is set to zero.) In other words, encDrcNonnGainDb is set to zero when generating the normalized loudness sequence at the input of DRC characteristic B.

[0052] If, however, the new decoder encounters i) the flag having the second value and ii) the index being a second value that is different than the first value (e.g., in the range 1-6), then the decoder side process applies DRC to the audio signal (using the second DRC characteristic B) but without loudness normalization. In other words, referring to Fig. 10B, the recovered, smoothed instantaneous loudness sequence at the output of the inverse characteristic A is not adjusted (before being input to the DRC characteristic B) - the summation block shown in that figure is thus absent.

[0053] The Appendix below includes a draft specification of the proposed method for deferred loudness normalization in the framework of the MPEG-D DRC standard. The document includes an efficient method to generate bitstreams with the new information that can also be decoded with legacy decoders.

[0054] While certain aspects have been described and shown in the accompanying drawings, it is to be understood that such are merely illustrative of and not restrictive on the broad invention, and that the invention is not limited to the specific constructions and arrangements shown and described, since various other modifications may occur to those of ordinary skill in the art. The description is thus to be regarded as illustrative instead of limiting. Numbered statements of invention 1. An audio decoder apparatus comprising: a processor; and memory having stored therein instructions that configure the processor to obtain a bitstream, the bitstream comprising an encoded version of an audio signal; a first dynamic range control, DRC, gain sequence, that was determined by an encoder side process applying the audio signal to a first DRC characteristic, an index of the first DRC characteristic, wherein the index identifies or points to the first DRC characteristic, and a plurality of instances over time of integrated loudness update. 2. The audio decoder apparatus of 1 wherein in response to the index having a first value the processor performs loudness normalization when applying DRC to the audio signal. 3. The audio decoder apparatus of 1 wherein the bitstream comprises a loudness normalization gain that was applied by an encoder side, when determining the first DRC gain sequence by applying the audio signal to the first DRC characteristic, wherein the bitstream instructs the processor to perform loudness normalization after applying an inverse DRC characteristic to the DRC gain sequence, by using the loudness normalization gain in the bitstream to compensate for or undo a loudness normalization gain that was applied by the encoder side when determining the DRC gain sequence. 4. The audio decoder apparatus of 1 wherein the bitstream comprises a flag, and when the flag has a first value, the first DRC gain sequence was determined by the encoder side process applying the audio signal to the first DRC characteristic with loudness normalization. 5. The audio decoder apparatus of 4 wherein when the flag has a second value, the first DRC gain sequence was determined by the encoder side process applying the audio signal to the first DRC characteristic without loudness normalization. 6. The audio decoder apparatus of any one of 1-5 wherein the memory has stored therein instructions that configure the processor to recover a loudness sequence by applying the first DRC gain sequence to an inverse of the first DRC characteristic, perform loudness normalization upon the recovered loudness sequence, produce a second DRC gain sequence by applying the recovered loudness sequence to a second DRC characteristic, and apply the second DRC gain sequence to the audio signal. 7. The audio decoder apparatus of 6 wherein the loudness normalization gain is in units of dB, and performing loudness normalization comprises combining the loudness normalization gain with the recovered loudness sequence and an instance of the integrated loudness update. 8. The audio decoder apparatus of any one of 1-6 wherein performing the loudness normalization comprises shifting the second DRC characteristic along its input axis by an amount that is based on the loudness normalization gain and an instance of the integrated loudness update. 9. The audio decoder apparatus of any one of 1-8 wherein the processor, for each instance of the integrated loudness update, calculates an update to a normalization gain as a difference between a DRC input loudness target and the instance of the integrated loudness update and adds the normalization gain to the recovered loudness sequence to produce a normalized loudness sequence, before applying the normalized loudness sequence to the second DRC characteristic to produce the second DRC gain sequence. 10. The audio decoder apparatus of any one of 1-9 wherein adjacent instances of the integrated loudness update are separated by one to ten seconds. 11. The audio decoder apparatus of any one of 1-10 wherein the integrated loudness update represents a running average integrated loudness of the audio signal. 12. The audio decoder apparatus of 1 wherein the processor is configured to extract from the bitstream the index to the first DRC characteristic and use the extracted index to obtain an inverse of the first DRC characteristic, recover a loudness sequence by applying the first DRC gain sequence to the inverse of the first DRC characteristic, if the index has a first predefined value then for each instance of integrated loudness update, calculate a normalization gain update as a difference between i) a DRC input loudness target and ii) a sum of the instance of integrated loudness update and an encoder side loudness normalization gain that was used by an encoder side process, and add the normalization gain update to the recovered loudness sequence to produce a normalized loudness sequence, produce a second DRC gain sequence by applying the normalized loudness sequence to a second DRC characteristic, and apply the second DRC gain sequence to the audio signal. 13. The audio decoder apparatus of 12 wherein the processor is configured to, if the index has a second predefined value then produce the second DRC gain sequence by applying the recovered loudness sequence without loudness normalization, to the second DRC characteristic. 14. The audio decoder apparatus of 1 wherein the bitstream comprises a flag, wherein when the flag has a first value the bitstream contains an encoder side loudness normalization gain, or when the flag has a second value the bitstream does not contain the encoder side loudness normalization gain. 15. The audio decoder apparatus of 14 wherein in response to the flag having the first value, the processor applies DRC to the audio signal using a second DRC characteristic and with loudness normalization using i) the encoder side loudness normalization gain and ii) the plurality of instances of integrated loudness update. 16. The audio decoder apparatus of 14 wherein in response to i) the flag having the second value and ii) when the index has a first value, the processor applies DRC to the audio signal using a second DRC characteristic and with loudness normalization that uses the plurality of instances of integrated loudness update but without using an encoder side loudness normalization gain. 17. The audio decoder apparatus of 16 wherein in response to the index being a second value that is different than the first value, the processor applies DRC to the audio signal using the second DRC characteristic but without loudness normalization. 18. The audio decoder apparatus of any one of 1-13 wherein the bitstream contains a flag, and when the flag has a first value the processor replaces some or all legacy DRC characteristic index values of a legacy extension payload in the bitstream with DRC characteristic index values that are contained in a new extension payload in the bitstream. 19. The audio decoder apparatus of 18 wherein the processor is performing a legacy decoder side process and ignores the new extension pay load. 20. The audio decoder apparatus of 18 or 19 wherein the bitstream contains an encoder side DRC normalization gain, the processor compensates for the encoder side DRC normalization gain when applying a decoder side DRC loudness normalization. 21. An audio encoder apparatus comprising: a processor; and memory having stored therein instructions that configure the processor to produce a bitstream, the bitstream comprising an encoded version of an audio signal, a first dynamic range control, DRC, gain sequence, that is determined by an encoder side process applying the audio signal to a first DRC characteristic, an index of the first DRC characteristic, and a plurality of instances over time of integrated loudness update, wherein the bitstream controls how a decoder side process applies DRC to the audio signal while performing loudness normalization. 22. The audio encoder apparatus of 21 wherein the processor inserts a flag into the bitstream, wherein when the flag has a first value the bitstream contains an encoder side loudness normalization gain, or when the flag has a second value the bitstream does not contain the encoder side loudness normalization gain. 23. The audio encoder apparatus of 22 wherein when the flag has the first value, the loudness normalization gain was applied by the encoder side process when determining the first DRC gain sequence. 24. The audio encoder apparatus of any one of 21-23 wherein the loudness normalization gain represents a difference between a DRC input loudness target and an integrated loudness of the audio signal. 25. The audio encoder apparatus of any one of 21-24 wherein when the flag has the first value the bitstream contains a first DRC configuration field and a second DRC configuration field, or when the flag has the second value the bitstream contains the second DRC configuration field and not the first DRC configuration field. 26. The audio encoder apparatus of 25 wherein the first DRC configuration field instructs a decoder side process to apply DRC to the audio signal, without performing loudness normalization when applying a second DRC characteristic to a recovered instantaneous loudness sequence, and the second DRC configuration field instructs a decoder side process to apply DRC to the audio signal with loudness normalization. 27. The audio encoder apparatus of 25 or 26 wherein when the flag has the first value, the index of the first DRC characteristic that is contained in the first DRC configuration field is overridden by an index of the first DRC characteristic that is contained in the second DRC configuration field, and the second DRC configuration field comprises an encoder side loudness normalization gain. 28. The audio encoder apparatus of 27 wherein overriding the index means that DRC is to be applied to the audio signal in the decoder side while performing loudness normalization when applying a DRC characteristic. 29. The audio encoder apparatus of any one of 21-24 wherein when the flag has the second value, the encoder side process does not apply loudness normalization when determining the first DRC gain sequence. 30. A digital audio process comprising: obtaining a bitstream, the bitstream comprising an encoded version of an audio signal, a first dynamic range control, DRC, gain sequence, that was determined by an encoder side process applying the audio signal to a first DRC characteristic, an index of the first DRC characteristic, wherein the index identifies or points to the first DRC characteristic, and a plurality of instances over time of integrated loudness update; using the index to obtain an inverse DRC characteristic; performing loudness normalization after applying the inverse DRC characteristic to the first DRC gain sequence, to produce a normalized loudness sequence; applying the normalized loudness sequence to a second DRC characteristic to produce a second DRC gain sequence; and applying the second DRC gain sequence to the audio signal to produce compressed audio. 31. The process of 30 wherein the bitstream comprises a loudness normalization gain that was applied by an encoder side, when determining the first DRC gain sequence by applying the audio signal to the first DRC characteristic, wherein the bitstream instructs the processor to perform loudness normalization by using the loudness normalization gain in the bitstream to compensate for or undo a loudness normalization gain that was applied by the encoder side when determining the first DRC gain sequence. 32. The process of 30 wherein the bitstream comprises a flag, and when the flag has a first value, the first DRC gain sequence was determined by the encoder side process applying the audio signal to the first DRC characteristic with loudness normalization. 33. The process of 32 wherein when the flag has a second value, the first DRC gain sequence was determined by the encoder side process applying the audio signal to the first DRC characteristic without loudness normalization. 34. The process of any one of 30-33 performing loudness normalization compries adjusting the recovered loudness sequence and then applying the adjusted recovered loudness sequence to the second DRC characteristic. 35. A digital audio process comprising: encoding an audio signal to produce an encoded version of the audio signal; processing the audio signal to produce a plurality of instances over time of integrated loudness update; applying the audio signal to a dynamic range control, DRC, characteristic to determine a DRC gain sequence; and producing a bitstream that comprises the encoded version of the audio signal, the DRC gain sequence, an index of the DRC characteristic, and the plurality of instances over time of integrated loudness update, wherein the bitstream controls how a decoder side process applies DRC to the audio signal while performing loudness normalization. 36. The process of 35 further comprising inserting a flag into the bitstream, wherein when the flag has a first value the bitstream contains an encoder side loudness normalization gain, or when the flag has a second value the bitstream does not contain the encoder side loudness normalization gain. 37. The audio encoder apparatus of 36 wherein when the flag has the first value, the loudness normalization gain was applied when determining the first DRC gain sequence. 38. The audio encoder apparatus of any one of 35-37 wherein the loudness normalization gain represents a difference between a DRC input loudness target and an integrated loudness of the audio signal. 39. The audio encoder apparatus of any one of 35-38 wherein when the flag has the first value the bitstream contains a first DRC configuration field and a second DRC configuration field, or when the flag has the second value the bitstream contains the second DRC configuration field and not the first DRC configuration field. 40. An audio decoder apparatus comprising: a processor; and memory having stored therein instructions that configure the processor to obtain a bitstream, the bitstream comprising an encoded version of an audio signal, an instantaneous loudness sequence and an integrated loudness value, compute a normalization gain by combining a DRC input loudness target with the integrated loudness value extracted from the bitstream, adjust the instantaneous loudness sequence extracted from the bitstream using the loudness normalization gain, to produce a normalized instantaneous loudness sequence, and produce a DRC gain sequence by applying the normalized instantaneous loudness sequence to a DRC characteristic, and perform DRC upon the audio signal by applying the DRC gain sequence to the audio signal. 41. The audio decoder apparatus of 40 wherein the instantaneous loudness sequence in the bitstream has not been loudness normalized. 42. The audio decoder apparatus of 40 or 41 wherein combining the DRC input loudness target with the integrated loudness comprises subtracting the integrated loudness from the DRC input loudness target. 43. The audio decoder apparatus of any one of 40-42 wherein adjusting the instantaneous loudness sequence with the loudness normalization gain comprises adding the normalization gain to the instantaneous loudness sequence to produce the normalized instantaneous loudness sequence. 44. The audio decoder apparatus of any one of 40-43 wherein the integrated loudness value is one instance of a plurality of instances of integrated loudness update contained in the bitstream, with adjacent instances being separated by for example one to ten seconds, wherein the integrated loudness update represents a running average integrated loudness of the audio signal. 45. The audio decoder apparatus of 44 wherein for each instance of the integrated loudness update, the processor calculates a normalization gain update as a difference between the DRC input loudness target and the instance of the integrated loudness update, and adds the normalization gain update to the instantaneous loudness sequence. 46. The audio decoder apparatus of any one of 40-43 wherein the bitstream is a file to which the integrated loudness value has been written along with the instantaneous loudness sequence and the encoded version of the audio signal. 47. An audio encoder apparatus comprising: a processor; and memory having stored therein instructions that configure the processor to produce a bitstream, the bitstream comprising an encoded version of an audio signal, an instantaneous loudness sequence for the audio signal, and instructions for controlling how a decoder side applies dynamic range control, DRC, to the audio signal with loudness normalization when applying the instantaneous loudness sequence to a DRC characteristic. 48. The audio encoder apparatus of 47 wherein the memory has stored therein instructions that configure the processor to write the bitstream to a file for storage, compute an integrated loudness value representing program loudness of the audio signal, and write the integrated loudness value into the file. 49. The audio encoder apparatus of 47 wherein the audio signal is live audio and the memory has stored therein instructions that configure the processor to stream the bitstream to a decoder side. 50. The audio encoder apparatus of 49 wherein the memory has stored therein instructions that configure the processor to determine a plurality of instances of an integrated loudness update based on processing the live audio to measure its loudness, and insert the plurality of instances of the integrated loudness update into the bitstream. 51. The audio encoder apparatus of 50 wherein adjacent instances of the integrated loudness update in the bitstream are between one to ten seconds apart, over a duration of the live audio. 52. A digital audio process comprising: obtaining a bitstream, the bitstream comprising an encoded version of an audio signal, an instantaneous loudness sequence and an integrated loudness value; computing a normalization gain by combining a DRC input loudness target with the integrated loudness value from the bitstream; adjusting the instantaneous loudness sequence from the bitstream using the loudness normalization gain, to produce a normalized instantaneous loudness sequence; producing a DRC gain sequence by applying the normalized instantaneous loudness sequence to a DRC characteristic; and performing DRC upon the audio signal by applying the DRC gain sequence to the audio signal. 53. The process of 52 wherein the instantaneous loudness sequence in the bitstream has not been loudness normalized. 54. The process of 52 or 53 wherein combining the DRC input loudness target with the integrated loudness comprises subtracting the integrated loudness from the DRC input loudness target. 55. The process of any one of 52-54 wherein adjusting the instantaneous loudness sequence using the loudness normalization gain comprises adding the normalization gain to the instantaneous loudness sequence to produce the normalized instantaneous loudness sequence. 56. The process of any one of 52-55 wherein the integrated loudness value is one instance of a plurality of instances of integrated loudness update contained in the bitstream, with adjacent instances being separated by for example one to ten seconds, wherein the integrated loudness update represents a running average integrated loudness of the audio signal. 57. The audio decoder apparatus of 56 wherein for each instance of the integrated loudness update, the processor calculates a normalization gain update as a difference between the DRC input loudness target and the instance of the integrated loudness update, and adds the normalization gain update to the instantaneous loudness sequence. 58. The audio decoder apparatus of any one of 52-55 wherein the bitstream is a file to which the integrated loudness value has been written along with the instantaneous loudness sequence and the encoded version of the audio signal. 59. A digital audio process comprising: encoding an audio signal to produce an encoded version of the audio signal; processing the audio signal to produce an instantaneous loudness sequence for the audio signal; producing a bitstream that comprises the encoded version of the audio signal, the instantaneous loudness sequence, and instructions for controlling how a decoder side applies dynamic range control, DRC, to the audio signal with loudness normalization when applying the instantaneous loudness sequence to a DRC characteristic. 60. The process of 59 further comprising writing the bitstream to a file for storage; and computing an integrated loudness value representing program loudness of the audio signal, and write the integrated loudness value into the file. 61. The process of 59 wherein the audio signal is live audio and the process further comprises streaming the bitstream to a decoder side. 62. The process of 61 further comprising determining a plurality of instances of an integrated loudness update based on processing the live audio to measure its loudness; and inserting the plurality of instances of the integrated loudness update into the bitstream. 63. The process of 62 wherein adjacent instances of the integrated loudness update in the bitstream are between one to ten seconds apart, over a duration of the live audio. INTERNATIONAL ORGANISATION FOR STANDARDISATION ORGANISATION INTERNATIONALE DE NORMALISATION ISO / IEC JTC1 / SC29 / WG6, MPEG AUDIO CODING ISO / SEC JTC1 / SC29 / WG6 Ttxxxx 2020; Virtual Title Proposed Amendment for ISO / IEC 23003-4 to improve support for real-time encoding Source Frank Baumgarte, Apple Inc. 1 introduction MPEG-D DRC (ISO / IEC 23003-4) is a codec-agnostic tool for loudness and dynamic range control based on metadata. When DRC gain metadata is generated by a dynamic range compressor in the encoder, the audio signal is commonly loudness-normalized at the input of the compressor. The normalization is used to align the DRC characteristic with the loudness profile of the source signal. In case of real-time encoding, for example for live broadcasting, the loudness profile of the source signal may be unknown when the encoding starts and the alignment of the DRC characteristic may be off. 2 Problem Description The MPEG-D DRC standard recommends to use a two-pass approach for encoding. In the first pass, the integrated loudness of the audio content is measured. In the second pass, the DRC input, signal is normalized based on the loudness measurement and the metadata is encoded. This approach is not applicable for live encoding or real-time applications. Therefore, the loudness measurement cannot be done prior to the start of the encoding pass. A workaround is possibly a calibration of the audio as often used in professional studios which can achieve a fairly predictable production loudness, which can serve as an estimate for the measurement. In other environments the loudness of the audio signal is much less predictable and may therefore significantly deviate from an expected value that was used to set up the encoder. Such a deviation may result in undesired compression artifacts, such as pumping, and an undesired loudness shift after the compression gains are applied. It is caused by a misaligned DRC characteristic where the audio signal loudness is not centered within the characteristic. 3 Proposed Improvements The proposed solution is a new mode of DRC processing, where the DRC input loudness normalization is moved from the encoder to the decoder. This solution does not need a first pass to measure the loudness of the content before encoding can start. In contrast, the loudness measurement can be done in parallel to the encoding. Updated loudness values can be written into the audio stream that will be used by the decoder for DRC input loudness normalization. For live recordings to file, the loudness value for the entire recording can be written to the MP4 File Format header when the recording ends and the value can then be used for the normalization in the decoder. Other than that, the file does not need to be re-written or re-encoded to achieve the desired normalization for the DRC input to properly adjust the DRC characteristic in the decoder. For backwards compatibility, the proposed bitstream supports an efficient syntax to serve both, iegacy and new decoders. This mode allows to apply loudness normalization for the DRC chain in the encoder, as needed for legacy system. The encoder normalization gain is transmitted in the proposed bitstream syntax and is compensated for when the loudness normalization is applied in new decoders. Section 4 and 5 of this contribution contain draft text for Amendments to I5O / IEC 23003-4 [1] and ISO / IEC 23091-3 [2]. Changes and additions relative to the latest published standards are highlighted in grey to simplify the review process. The highlighting shall be removed when the text is merged. 4 Proposed Amendment to ISO / IEC 23003-4 In 6.1.1 replace the second last paragraph by: uniDrcConfigO contains all blocks except for the foudnessInfoQ blocks which are bundled in loudnesslnfoSetO. The last part of the uniDrcConfigO payload can include future extension payloads. In the event that a umDrcConfigExiType value is received that is not equal to UNIDRCC0NFEXT_TERM, the DRC tool parser shall read and discard the bits (otherBit) of the extension payload. Similarly, the last part of the loudnesslnfoSetO payload can include future extension payloads. In the event that a loudness! nfoSetExtType value is received that is not equal to UNIDRCLOUDEXTTERM, the DRC tool parser shall read and discard the bits [otherBit] of the extension payload. Each extension payload type in uniDrcConfigQ or loudnesslnfoSetO shall not appear more than once in the bitstream if not stated otherwise. An extension payload of type UN1DRCC0NFEXT.V1 or UNIDRCC0NFEXT.V2 shall preceed an extension payload of type UN1DRCC0NFEXT PARAM. DRC in the hitstream if both payloads are present. For ISO / IEC 14496-12, configuration extension payloads are provided according to Table 76. Replace the following paragraph in clause 6.4.6: The in-stream drcCoefficient syntax is given in Table 65, Table 67 and Table 68. The syntax for the corresponding block for ISO / IEC 14496-12 (ISO base media file format) is shown in Table 66 and Table 69. The corresponding blocks carry essentially the same information. Values that are identically included in both blocks are coded the same way except for drcLocation. By: The in-stream drcCoefficient syntax is given in Table 65, Table 67 and Table 68. The syntax for the corresponding block for ISO / IFU 144uo 12 (ISO base media file format) is shown in Table 66 and Table 69. The corresponding blocks carry essentially the same information. Values that are identically included in both blocks are coded the same way except for drcLocation. The drcCoefficientslimDrcO payload for 1SO / IEC 14496-12 [see Table 69) for ver57on=2 and EharGCteristiaVIOverrids-l carries essentially the same mformation as the extension UNIDRCCQNFEXT„V2. The corresponding bitstream fields are coded the same way as specified in Table A. 10 Replace the following paragraph in clause 6.4.6: In a drcCoefficientsUniDrcVIO payload, custom DRC characteristics can be defined to support more flexible gain modifications. These parametric characteristics can be used to describe the encoderside DRC and the target characteristic. If a target characteristic is defined, it shaii be applied after inverting the encoder-side characteristic. Hence, for the most general use, the encoder-side characteristic shall be invertible, i.e. have either a negative or positive slope for the entire gain range. Moreover, if the target characteristic has a section with constant gain, the encoder-side characteristic may also have constant gain in those sections. The parametric characteristics are computed as indicated in Table 19 and Table 20. Further details can be found in 1:.4, By: In a drcCoefficientsUniDrcVIO payload, custom DRC characteristics can be defined to support more flexible gain modifications. These parametric characteristics can be used to describe the encoderside DRC and the target characteristic. If a target characteristic is defined, it shall be applied after inverting the encoder-side characteristic. Hence, for the most general use, the encoder-side characteristic shall be invertible, i.e. have either a negative or positive slope for the entire gain range. Moreover, if the target characteristic has a section with constant gain, the encoder-side characteristic may also have constant gain in those sections. The parametric characteristics are computed as indicated in Table 19 and Table 20. Further details can be found in E.4. if the encoder-side characteristic is provided in the bitstream, it is recommended to use linear gain interpolation. ISO / IEC 23091-3 (CiCP) encoder characteristics in the range of 65 to 70 are only supported by ilrcCoetTicienLsl.hi^ as part of a UNIDRCC0NFEXT_v2 extension. 'These characlmistfcs shall not be used otherwise. When a C1CP characteristic in this range is inverted in the decoder, loudness normalization shall be applied after the inversion based.on the available loudness metadata and encoder normalization gain, il applicable. This is shown in the pseudocode of Table E.3, where the output of the inverse characteristic is computed with an offset depending on the value at saurceLoudness and encDrcNormGainDb. sourceLoudness is the integrated DRC input loudness at the encoder before any normalization. The value of sourcefoudness is obtained from the loudness metadata for the DRC. eiicDrcNonnGainDb is the signal gain in dB applied at the encoder DRC input. This gain value is available in a UNIDRCCONFEXT..V2 extension pay load to support legacy devices when characterise [see also E4). The value of drediputloiidnessTarget is the target input loudness of the DRC characteristic applied to generate the DRC gains in the decoder. The dreCoeiTicientslhuDreO payload of the Base Media File Format ISO / IFC '14496-12 supports CICP characteristics 69 to 76 only if v(Tdor,>~2 (sec also Table 69). Replace Table 17 by: Table 17 — Conversion of a DRC gain sample and associated slope from dB to linear domain (slopeIsNegative==l if the source DRC characteristic has a negative slope) toLinear (gamDb, slopeDb) { SLOPEJACTORDELTCLUNEAR = 0.115 If; EFFECT.BIT CUPPING = 0x0100; EFFECT.BIT FADE = 0x0200; EFFECT_BITS_DUCKING == 0x0400 I 0x0800; / * In(lO) / 20 V / * drcSetEffect 9 (Ciip.Prev.) * / / * drcSetEffect 10 (Fade) * / / * drcSetEffect 11 or 12 (Ducking) * / gainRatio == 1.0; gamDOMvd. = gamLH if (((■ircSiDEiteA x. EFFECT JSiTS.DUCKING) == 0) &&(drcSetEffect i = EFFECT.BIT FADE) &&(drcSetEffect ! = EFFECT.BIT. CUPPING)) { if (drcChavadcristfcTi^ 0) ( g^inbbMod nMpdatnfgamhbb / ’ target characteristic from host * / i else if (drcCoetticiemsUniDrcVlPresent == 11 { if (((gainDh >= 0.0}&& fsiopalsNcgatttv ==1)) {{gainbb <= 0.0J &&(sjApefeNogative == 0))) ( if (targetCharacterisncLeftPresenc === 1) { gainDbMod = nrapG3}i!(g3iiiDb!; p target characteristic in payload * / } _____________________________________________________________________________________________________________________________ Ust >f I ((gwhh <- O 0) KN Bk.p( isNegatko-- i ); ((gwiDE >~OOj KN fslops IsNogaiW — 0}jj ( if (targetCharactensticRightPresent == 1) { gahiDbMod. == mapGainCgainQb); / ' target characteristic in payload * / } gainRatio *= compress; eise { gainRatio *= boost; } } if (gainScalingPresent) { if d <0 0) j gainRatio *= attenuationScaiing; } else { gainRatio *= atnplificationScaling; } } if (duckingScaltngPresent &&(drcSetEffect &EFFECT.BITS.DUCKING)) { gainRatio *= duckingScaling; gaiiitin - pawf 2.0. gaMatio * gataE^bMod / 6.>h; slopeLin = SLOPE_FACTOR_DB_TO_LINEAR ♦ gainRatio * gainLin * slopeDb; if (gainOffsetPresent] [ gainLin *= pow(2, gainOffset / 6.0); } / * The only drcSetEffect is "clipping prevention’’ * / if (limiterPeakTargetPresent &&(drcSetEffect =- EFFECT_BIT_CLIPP1NG)J { gainLin *= pow(2, max(0.0, -limiterPeakTarget-loudnessNormalizationGainDb 4oudnessNormalizationGamModificationDb) / 6.0); if (gainLin >= 1.0} { gainLin = 1.0; slopeLin = 0.0; J return (gainLin, slopeLin}; Replace Table A.10 by: Table A. 10 — Coding of top level fields of imiDrcConfigO, uniDreCoufigExteusionO, and IoudnessInfoSet() Field label Encoding Mnemonic Decoded value Description uniDrcCOnflgExtType SIB Table .A, 12 Configuration extension type drcCoeffl cion tsOraridoCount i Shits uknsbf Number Gl’drcLocatioBs; of drcCoefficiente for drcLocation A' BIO utasbf drclocation for override gainSetCcant ibo uimsbf I the same drcLocatksn baadCount i 4 bits uimsbf i Number of audiq:Mi|B^ be identical to bandCount in uniDreCoehiCientiVil ] ^or overt! eC icpCha racte natic 1 t' bits ufmsbf A DRC characteristic iacies iliiiiliiiiiiiiiiiii IgiilBlifiiiiO value of drcCharacteristK in the same drcLocaticn..... Field label Encoding Mnemonic Decoded value Description bsEncNornvTuB See Table 03 Normalization gain applied at the encoder associated with the averrideCicpCh^ bsSampleRate A 18 bits u imsbf fs = p + 1000 Audio sample rate in [Hz] downmixInstructionsCount, downmixInstructionsVICount F 7 bits uimsbf Nd - n Number of downmixlnstructionsQ and down mixl nstructions V IQ blocks, respectively drcCoefficientsBasicCount, drcCoe fficients Uni DrcCo u nt, drcCoefficientsUni DrcV 1 Count 3 bits uimsbf Nc=u N umber of drcCoefficients blocks drdnstructionsBasicCount, drcInstructionsUniDrcCount, drcInstructionsUniDrcVICount F 4, 6 bits uimsbf Number of drclnstructions blocks loudnessin fo AJ bumCount, loud ne s s I n fo V1 Al b u m Co u n t R 6 bits uimsbf nLA = M Number of loudnessInfoQ and loudnessInfoVlQ blocks for albums loudnessInfoCount, loudnessInfoVICount F 6 bits uimsbf Nl-T Number of loudnessInfoQ and loudnessInfoVlQ blocks Replace Table A.16 by: Table A. 16 — Coding of metadata in drcCoefficientsBasic(), drcCoeffidentslIniDrcf), drcCoefficientsUniDrcVl() Metadata field Description drcLocation See Table 2. drcFrameSizePresent A value of 1 indicates that bsDrcFrameSize value is present. bsDrcFrameSize Encoding of DRC frame size according to Table A.17. drcCharacteristicLeftPresent. drcCharacteristicRightPresent Flag to indicate if a characteristic is defined (11 or not (0J. characteristicLeftCount, characteristicRightCount Number of defined characteristics. characteristicFormat Format of characteristic: sigmoidal (0), segment-wise (1) representation. bsGainLeft, bsGainRigbt Encoded DRC gain according to Table A.24 and Table A.25. bsIoRatioLeft, bsloRatioRight Encoded I / O ratio for sigmoidal characteristic according to Table A.26. Metadata field Description bsExpLeft, bsExp Right Encoded exponent for sigmoidal characteristic according to Table A.27. fhpSignLeft, flipSignRight Flag to indicate if the DRC characteristic is multiplied by -1 i'll or not (0). bsCharNodeCount Encoded node count for segment-wise representation according to Table A.28. bsNodeLevelDelta Encoded differential DRC gain for this node according to Table A.29. bsNodeGain Encoded DRC gain for this node according to Table A.30. shapeFiltersPresent A value of 1 indicates that shape filter parameters are present. shapeFilterCount Number of shape filter parameter sets. I fC utF ilte r P re s e nt, IfBoostFilterPresent, hfCutFilterPresent, hfBoostFilterPresent, A value of 1 indicates that the corresponding shape filter parameters are present IfCornerFreqlndex, hfCorner Freq Index Index of corner frequency parameter for low-frequency and high-frequency shape filters, respectively. ] fFil terStrengthI nd ex, hfFilterStrengthlndex, Index of filter strength parameter for low-frequency and high-frequency shape filters, respectively. gainSequenceCount Number of gain sequences in the uniDrcGainQ payload. gainSetCount Number of gain sequence sets. A set for multi-band DRC can include multiple gain sequences. gainCodingProfile See Table A.18, gainlnterpoIationType See Table A.19. fullFrame A value of 1 signals that the last node is always at the end of the; frame. In low-delay mode, it shall be 1. timeAlignment A bit field that indicates whether the gain sample is aligned with the end (0) or the center (1) of the deltaTmin interval. delayMode A bit field that indicates whether the received gains are applied immediately or with a delay of one frame (see Table A.20J. ti m e D e 1 ta M i n P r e s e n t A value of 1 indicates that a bsTimeDeltaMin value is present. bsTimeDeltaMin This field indicates the custom time resolution of a DRC sequence which overrides the default deltaTmin value. The values are encoded according to Table A.21, bandCount The number of DRC bands for this gain set dreBandType A bit field, which signals if the "crossoverFreqlndex-syntax" (1) or the "startSubBandlndex-syntax" (01 should be used. If multi-band DRC gains are applied in the time-domain by using the multi-band DRC filter bank like specified in 6.4.12, only the “crossoverFreqlndex-syntax" is allowed. If the "startSubBandlndex-syntax” is used, the frequency smoothing / fading with overlap weights according to Table 30 is not applied. indexPresent A value of 1 indicates that a bslndex value is present. Metadata field Description bslndex Encoded gain sequence index that is copied into gainSequencelndex which refers to the gain sequences in uniDrcGainf) numbered in the order of appearance. drcCharacteristicPresent Flag indicating whether a source characteristic for the gain sequence is present (1) or not (0). drcCharacteristicFormatlsCICP Flag indicating whether the index of the characteristic is based on ISO / IEC 23008-1, (1) or not (0J. drcCharacteristic A value of 0 means that the DRC characteristic is undefined for a DRC sequence. Values of 65.,.70 are only supported if drcCneffidenLslhdDfcVl^ is in a UtWRCOWEXT ¥2 extension. Values ^^cifiedin (CJCP). drcCharacteristicLeftlndex, drcCharacteristicRightlndex Index of source ORC characteristic of the gain sequence referring to characteristicLefilndex and characteristicRightlndex in drcCoefficientsUniDrcVl 0. crossoverFreqlndex See Tabie A.8. startSubBand Index Zero-based sub-band index for an available sub-band domain. The field is used to signal the start index for a specific DRC band. Replace caption of Table A.22 by: Table A.22 — Coding of drcCharacteristic and overrideCicpQiaracteristic fields Add new Table after Table A.22: Table .4,23 — Coding of buEncDrcNormGain Encoding Size Mnemonic emdlrcNormGamDb jdB| Range b bits uimsbf ■■ 31 -s f -31,..32 dB, 1 dB step size Replace Table 69 by: Table 69 — Syntax of drcCoefficientsUniDrc() payload for ISO / IEC 14496-12 aiigned(8) class DRCCoefflcientsUniDrc extends FullBox('udc2’, version, flags=0) { / / N copies ol this box, one of these per DRC_location, plus boxes witncharacberisiicVlOvemde * characterlsfcVlOverride = 0; if (version >= 2) { bit( I'J ch a racte risti eV 10verride; if (diaraoteristicVlGw 1} { =■ .1 bittO reserved === 0; signed int(5) DRCJocation; UBvigacd :n1[Ci gsspSeJOa'Br; for (j=i; j<-gaSnSei£ount; fw) { bit[3) reserved '- Q; bit(f) characterisdcGverridePresent; unsigned int(4) bandCounl; iffcharactBristj^verridePresenE^ 1) { for (k=l; k<=baBdCouBh k++) { bi If;?) reserved -• 0; unsigned int(7)overrideCtcpQ3aracrerisUc; unsigned int(6) bsEncDrcNormGain; iiiiiiill:il^ iiiii 99 if (characteristic lOverrtde ==- 0) { iiiiiiliiiiiiiii biiiiii^ iiii signed int(5) DRCJocation; bit(l) drcjrame^sizejjresent; if (drc_frame_size_present ====== 1] { bitflj reserved === 0; unsigned int(15) bs_drc_frame_size; } if (version >== 1] { bit(5j reserved == 0; bit( 1) drc_characteristic_left_present; bi 1.( 1) drc_characteristic_rlght_present; bit(l) shape_filters_present; if (drc_characteristic_Ieft_present== 1) { bit(4) reserved = 0; unsigned int(4) characteristic_left_count; for (k==l; k<=characteristicjeft_count; k++) { bit(7j reserved = 0; unsigned int(l) characteristicjormat; if (characteristic_format==OJ { bitfl) reserved = 0; unsigned int(6) bs_gain_left; unsigned int(4) bs_io_ratio_left; unsigned intf4) bs.expJeft; bitfl) flip, signJeft; } else { bit(6) reserved = 0; un s i gn e d i n if 2) b s. ch a r_n o d e_co u nt; for (n=l; n<=bs..char node..count+l; n++] { bit(3) reserved = 0; unsigned int(5) bs.nodeJeveL.delta; unsigned int(8) bs..node..gain; } 1 1 J if [drc_characteristic_right_present ===== 1) { bit(4] unsigned int(4) reserved === 0; diaracteristicj'ight.count; for (k= 1; k<=characteristic_right_count; k++J { bit(7) reserved === 0; unsigned int(l) characteristicjbrmat; if (characteristic_format--0) { bitflj unsigned int(6j unsigned int(4) unsigned int(4) bitfl J } else { bitf6) unsigned intf2j reserved == 0; bs^galn^right: bsjo^ratioj'ight; bs_exp_right; flip_sign_right; reserved = 0; bs_char_node_count; for (n=l; n<=bs_char_node_count+l; n++] { nit(3) unsigned int[5) unsigned int(8) } } } if fshape.filters Dresent==l) { reserved ~ 0; bs_node_level_delta bsjwde^gain: bit(4) reserved = 0; unsigned inti 4) shape..ffiter_count; for (k =1; k<=shape..filter..count; k++) { bit(4) reserved = 0; bit( 1) LF..cut. filter, .present; bit( 1) LF..boost.filter..present; bit( 1) HF..cut fOter..present; bit( 1) HF. boost .filter, present; if (LF..cut.fi]ter..present) { bit[3) reserved = 0; unsigned int(3) LF_corner_freq_index; unsigned int(2) LF.filter.strengthjndex; } if (LF_boost_filter_p resent) { bit(3) reserved = 0; unsigned int(.3) LFjtornerJreqJndex: unsigned int(_2] LF_filter_strengthJndex; } if (HF_cut_filter_p resent) { bit[3) reserved = 0; unsigned int(3) HF^cornerJreqJ.ndex; unsigned mtf2) HFJilterjtrengthJndex; } if (H F_boost_filter_present) { bit(3) reserved = 0; unsigned int(3j HF_cornerJreq_mdex; unsigned int(2) H FJilter_strength_index; 1 J bit(l) reserved = 0; unsigned int(l) deiayMode; if (version >~ 1} { bit(2) reserved = 0; unsigned int(6] gain.sequence.count: unsigned int(6) gain...set.count; for (i=l; i<=gain..set.count; i++) { bit(2] reserved = 0; unsigned int(21 ga in.co din g..p ro fi le; unsigned int(l] ga in. in te rp ola ti on. ty pe; unsigned int(l] full..frame; unsigned int( 1 j time.alignment; bit( 11 time..delta..min..present; if (time_delta_mln_present== 1) { bit(5) reserved ~ 0; unsigned int(ll) bs_time„delta_min; } if (gain_coding_profile!=3) { bit(3) reserved = 0; unsigned int(4) band_count; / / shall be >= 1 unsigned int( 1) drc_band_type; for (j = 1; j <= band_count; j+ i ) { if (version>=l) { unsigned int(61 bsjndex; bit(l) drc^characteristi ^present bit(l) drc_characteristic_format_is_CICP if (drc_characteristic_present==l) { if (drc„characteristic_format„is_CICP-- l) { bit(lj reserved; unsigned int(7) drc_characteristic; } e^se ( unsigned int(4) drc^characteristicjeftjndex; unsigned int(4) drc_characteristic_right_index; } } else { bit(l) reserved = 0; unsigned int(7) drc_characterlstic; } } for (j = 2; j <= band..count; j++]{ if (drc.band.type == 1) { bit(4) reserved = 0; unsigned int(4) crossover..freq..index; } else { bit(6) reserved = 0; unsigned int(10) start.sub..band..index; } } } } Replace Table 75 by: Table 75 — Syntax of uniDrcConfigExtensionQ payload Syntax No. of bits Mnemoni c uniDrcConfigExtensionO { while (uniDrcConfigExtType != UNiDRCCONFEXT TERM) { extSizeBits = bitSizeLen + 4; extBitSize = bitSize + 1; switch (uniDrcConfigExtType) { case UNIDRCCONFEXT_PARAM_DRC: drcCoefflcientsParametricDrcO; 4 4 extSizeBits uimsbf uimsbf uimsbf Syntax No. of bits Mnemoni c parametricDrcInstructionsCouBt; for 0=0; kparametricDrcinstructionsCount; i++J { parametricDrdnstructions Q; } break; case imiDRCOWEXT V2; 4 wimsbf irfcharsctemtkVlOyem^^1} { 1 btJhf drc0oeffidentsGvx*mdeCount; i+t}| i uunsbf drcLocation; i mmsbf gain Self aunt; i uimsbf if (charaetertefkOverndePresent— 11 { 1 bslhl bandCouut; l uimsbf OTerriik^’kpCharaclerislk; 1 uimsbf bsEndheNormGahi; / } i unnsbl t downmixtastructiorisVlPresent; if (downinixInstructionsVl Present==l) { i bslbf dowmmxInstructioiJsVlCount; for (i=0; kdownmixJnstructionsVlCount; i++) { d ownmixJ n s tructio nsV 10; 7 uimsbf } drcCoeffsAndlnstructionslJniDrcVlPresent; if fdrcCoeffsAndInstructionsUniDrcVlPresent== 1] { 1 bslbf Syntax No. of bits Mnemoni c drcCoefficientsUuiDrcVlCouBt; for [1=0; kdrcCoefficientsUniDrcVlCount; i++) { drcCoefficientsUni DrcV 1 fl; } drcInstructionsUniDrcVICount; for [1=0; i<drcInstructionsUniDrcVlCount; i++) { drclnstructionsllni DrcV 1 [); -» J 3 6 uimsbf uimsbf loudEqtBstractionsPreseBt; 1 bslbf it [loudEqlnstructionsPresent—1) { 1 oudE ql nstruc tionsCount; 4 uimsbf for [i=0; i<loudEqlnstructionsCount; i++) { ioudEqlnstructionsQ; } eqPreseiBt; 1 bslbf if (eqPresent“l) { eqCoefficientsQ; eqlnstructionsCount; 4 uimsbf for (1=0; i<eqJnstructionsCount; i++) { eqlnstructionsQ; r < break; / * add future extensions here * / default: for(i=0; i<extBitSize; 1++) { otherBit; 1 bslbf } 1 J Syntax No. of bits Mnemoni c Replace Table 101 by: Table 101 — Reserved types Type Reserved values Part of extension payload uniDrcGainExtType Larger than UNIDRCGA1N'EXT_TERM uniDrcGainExtensionO uniDrcConfigExtType Larger than uniDrcConligExtensionQ J oudn essinfoSetExtTy pe Larger than UN1DRCI.OLDEXT EQ loadnesslnfoSetExtensionO param etricDrcType Larger than PARAM JJRC TYPE JJM parametncDrcfnstructionsO uniDrcInterfaceExtType Larger than UNIDRC1NTERFACEEXT.EQ uniDrdnterface Extension!) Reptace Table A.12 by: Table A.l — UniDre configuration extension types Symbol Value of uniDrcConfigExtType Purpose U N1D RCCO N F EXT. TERM 0x0 Termination tag (JNIDRCCONFEXT PARAM_DRC 0x1 Parametric DRC UN1DRCCONFEXTV1 0x2 Efficient multi-band DRC coding, dynamic EQ, loudness EQ {JNlDRCCCWm\y2 Bilpihs® (reserved) (All remaining values) For future use NOTE The extension rypes UNiDRCC0NFEXTPARA'’1J?RC and I’NIDRCCONFFXl edition ofthis document (iSO / IEC 23003-4:2020, Th> 'X'nw an *vpo 0MORCCO second edition of this decutnent. _V1 are first available with the second XFEXT.V2 ts not available m the first ami Add the following paragraph before clause D.2.8: DRC source characteristics in the range of 65 to 70 as specified in 1S0 / 1EC 23091-3 (CICP) are only supported in a drcCoeffidentsUrnDrcVlO payload as part of a UNlDRCC0NFEXT.v2 extension. They are useful for live content where the integrated loudness of the audio signal is nut known in advance and two pass encoding cannot be used. Pot such applications, loudness normalization ot the DRC input signal can be done at the decoder instead of the encoder. Such a "deferred" normalization can provide an opportunity to gain a loudness measurement in the encoder that can be used for normalization in the decoder. Based on the charactensdcVlOverride flag, if clear, the UNIDRCCONFEXTJ'2 extension payload contains all information of a UNIDRCCONFEX'LVl extension payload enhanced by the support of DRC characteristics 65 to 70, or, if the Hag is set, it will override the source charact.enst.lcs of drcCoefl’icientsUnlDrcVlO payloads in a UNfDRCCONFEXTJ / l extension. The latter behavior is useful in deployments that have some decoders that support UNIDRCCONFEXT..V2 extension and other decoders that only support extensions up to UNIL)RCXX)NFEXT_yR Since adrctkiefficientsUniDrcv i (j payload can he provided caiiab® wi^iBB^acteristics 65 to 2&i in non-backwards compatible mode IchcwaerlsticVlOvem^ the bitstream shall not contain a UNJDRCCONFEXT_V.L extension and at the File Format level a drcCoefficientsUniDrcQ payload with version-! shall not be present In backwards compatible mode (characteristicY^ the bitstream shall contain a UNIDRCCONFEXT VI exbmsicm which matches the pattern of the override information present m the UNIDRCCQNFEXT..V2 extension. At the File Format level, for each drcCoefficiemsb niDrcQ payloads with version-2 there shall be a drcCoefficientsUniDrcQ In clause E.4 replace the paragraph: The inverse of the transmitter characteristic 1 to 6 is computed according to Table E.3 and Table E.4. Characteristic 1 does not have a useful inverse because the gain is always 0 dB. By: The inverse of the transmitter characteristic 1 to 6 and 65 to 70 (see ISO / iEC 23091 -3) is computed according to Table E.3 and Table E.4. Characteristic 1 not have a useful inverse because the sain is always 0 .IB. Clause 0.1.1 explains the DRC input loudness normalization in the encoder to match the DRC characteristic. This encoder side normalization requires that the content loudness is known, but it. may not be known, for example for live content, if ‘die content, loudness is unknown when the encoding starts, it is possible to omit loudness normalization in ‘die encoder when using a DRC characteristic in the index range of 65 to 70. These characteristics will cause the DRC decoder to apply loudness normairiation. so that norm arization at the encoder is not necessary. There are two options to apply DRC input loudness normalization in the decoder The first option is non-backwards in the range of65.,.70. The encoder should not apply DRC input normalization. The second option is backwards compatible, it is indicated by setting characteristicViOvermie--^ sending a UNiDRCCONFEXTV1 extension with a drcCoefficientsUniDrcVlC} payload that, shall not include dreCharatensdc values in the range of65 ...70, and sending a UN1DRCCGNFEXT_V2 extension payload with override characteristic indices including Indices in the range of 65-70 and encoder normalization gain, values hsEncNorniCrainDb. DRC input normalization is usually applied in the encoder for backwards-compatibiiity with legacy decoders. For DRCs with target charactm istics it is recummeiided to use linear DRC gain coding Ijainlrrterpolatioiilype-]) and to ignore the slope information and to use linear interpolation In the decoder if die gains are encoded for spline interpolation. Replace Table E.3 by: Table E,3— Computation of the inverse encoder DRC characteristic 1 to 6 and 65 to 70 inverseCompressorlO(gaiiiQuant) { drdnputLoudnessTarget = -31; gamObMin = -32.1; gainDbMax = 32.1; if (gainQuant >= 0.0) tmp == gainQuant / pow(l - powfgainQuant / gainDbMax, expLo J, 1 / expLo); eise tmp - gainQuant / pow(T - pow(gainQuant / gainDbMin. exp Hi), 1 / expHi); inLev = drcInputLoudnessTarget - tmp / ioRatio; if (dcpChararteristL'h^ 65) &&{dcpCharacfensricIndcx 70) i if fdwKwSenstivV 1 Overode—b i eacbrcNot m.QainDb =• 0.0; inLuv ■= inLev + (drcInputLoudnessTarget - scnirceLnudness) - eneDrcNonnGamVb; return inLev; Replace Table E.4 by: Table E.4 — Parameters of DRC characteristics in index ranges 1 to 6 and 65 to 70 Parameter DrcCharacteristic 1,65 2, 66 ■■ 4,68 5, 69 iii io Ratio 0,0 0,2 0,4 0,6 0,8 1,0 expLo 9,0 9,0 9,0 9,0 6,0 5,0 expHi 12,0 12,0 12,0 12,0 8,0 6,0 Replace Table 1.2 by: Table 1.2— Supported in-stream payload processing for each profile In-stream Payload Defined in subdause Loudness Control profile Dynamic Range Control profile loudnesslnfoQ 7,3 X X ioudnessInfoV 1 () 7.3 X X uniDrcGainQ 7.3 X channel Layout!) 7.3 X X downmixlnstructions() 7.3 downm ixl nstru ction sV 10 drcCoefficientsBasicO 7.3 7.3 X X In-stream Payload Defined in subdause Loudness Control profile Dynamic Range Control profile d rcCo e fficien ts Uni D re () 7.3 drcCoefficientsUniDrcVIO 7.3 9 drdnstructionsBaslcQ 7.3 drcInstructionsUniDrcf) 7.3 d rd n structio ns U n ID rcV 1(] 7.3 drcCoefficientsParametricDrcQ 7.3 X param etr ic D rc i ns tru ctio n s (] 7.3 X loud Eqinstructions (] 7.3 ec; instructions!] 7.3 eqCoefficients () 7.3 u n IDrcConfigEidTvpe == UWRCCONFEXT V2 AA3 uniDrdnterfaceO B.2 X u si ID rc I nterface Eixte n s io n (] Ann ex B X Key x: is supported 8 Stipportod QCF characteristics are limited te the iadex range of 1 to n Replace Table 1.3 by: Table 1.3— Support of MPEG-4 File Format box processing for each profile File Format payload FourCC Versio n Defined in ISO / IEC Defined in sub- clause Loudnes s Control profile Dynami c Range Control profile Track reference for additional audio track adds n / a 14496-12 6.4.5 a a Track reference for DRC metadata track adre n / a 14496-12 6.1.1 b DRC sample entry unid n I a 14496-12 6.1.1 b b ChannelLayout() chnl 1 14496-12 12.2.4 X X Down m ixhistru ctlonsQ dmix 0 14496-12 12.2.5 File Format payload FourCC Versio n Defined in ISO / IEC Defined in sub-clause Loudnes s Control profile Dynami c Range Control profile DowmnixlnstructkmsQ dm lx 1 14496-12 12,2.5 X X LoudnessInfoSetf) ludt n / a 14496-12 12.2.7 X X L o ud n e s s B as e B ox Q clou or alou 0 14496-12 12.2,7 LoudnessBaseBox() Clou or alou 1 14496-12 12.2.7 X X DRCCoefflci ents Bas ic() udcl 0 23003-4 7.3 DRCCoefficientsUniDrcf) tide 2 0 23003-4 7.3 DRCCoefficientsllmDrcQ udc2 1 23003-1 7.3 X' D RCCoeffide atsU Hi D rcQ tide? 2 23003-4 7.3 DRCInstru ctio n sBaslcQ itdil 0 23003-4 7,3 DRCInstrucllonsUniDrc() udl2 0 23003-4 7.3 DRClnstructionsUniDrcQ udi2 1 23003-4 7.3 X UniDrcConfigExtensionQ nd ex n / a 23003-4 7.3 X DRCCoefficients-ParametricDrcQ pdcl 0 23003-4 7.3 X ParametricDrc-InstructionsQ pdil 0 23003-4 7.3 X LoudEQInstructionsQ leqi 0 23003-4 7.3 EQCoefficientsf) ueqi 0 23003-4 7.3 EQlnstructionsQ ueqc 0 23003-4 7.3 Key x: is supported a Shall be supported if Systems layer supports playback based on a combination of multiple audio tracks. Out of scope. Support of these features may depend on the infrastructure available at the Systems level. 5 Proposed Amendment to ISO / IEC 23091-3 In clause 6.12 replace: The definition of all DRC characteristics is based on a loudness normalized DRC input level of-31 LKFS. By: The definition of the characteristics in the range of indices from 1 to 11 is based on a loudness normalized DRC input level of --31 LKFS. For characteristics in the index range of 65 to 70, no loudness normalization shah he applied Lo the DRC input. In clause 6.12 replace: Table 6 — Parameters of DRC characteristic index values 1 to 6 Parameter DrcC ha racteristic 1 2 3 4 5 6 ioRatio 0,0 0,2 0,4 0,6 0,8 1,0 expLo 9,0 9,0 9,0 9,0 6,0 5,0 exp Hi 12,0 12,0 12,0 12,0 8,0 6,0 By: Table 6 — Parameters of DRC characteristics in index ranges 1 to 6 and 65 to 70 Parameter DrcCharacteristic 1,65 2, 66 3,,67 4,68 5,69 6, 70 io Ratio 0,0 0,2 0,4 0,6 0,8 1,0 expLo 9,0 9,0 9,0 9,0 6,0 5,0 exp Hi 12,0 12,0 12,0 12,0 8,0 6,0 6 Conclusion This document proposes improvements to the DRC standard for real-time encoding. It includes proposed text for draft Amendments of ISO / IEC 23003-4 and ISO / IEC 23091-3. The Source kindly requests to issue draft Amendments to the two standards using the text provided. 7 References [1] ISO / IEC 23003-4:2020 Information technology — MPEG audio technologies — Part 4: Dynamic range control. [2] ISO / IEC 23091.-3:2018 Information technology — Coding independent code points — Part 3: Audio.

Claims

1. A digital audio process comprising:obtaining a bitstream, the bitstream comprisingan encoded version of an audio signal,a first dynamic range control, DRC, gain sequence, that was determined by an encoder side process applying the audio signal to a first DRC characteristic,an index of the first DRC characteristic, wherein the index identifies or points to the first DRC characteristic, andan integrated loudness value;using the index to obtain an inverse DRC characteristic;performing loudness normalization after applying the inverse DRC characteristic to the first DRC gain sequence, to produce a normalized loudness sequence;applying the normalized loudness sequence to a second DRC characteristic to produce a second DRC gain sequence; andapplying the second DRC gain sequence to the audio signal to produce compressed audio.

2. The process of claim 1 wherein the bitstream comprises a loudness normalization gain that was applied by an encoder side process when determining the first DRC gain sequence by applying the audio signal to the first DRC characteristic, and said performing loudness normalization comprisesusing the loudness normalization gain and the integrated loudness value in the bitstream to compensate for or undo a loudness normalization that was performed by the encoder side when determining the first DRC gain sequence.

3. The process of claim 1 wherein the bitstream comprises a flag, and when the flag has a first value, the first DRC gain sequence was determined by the encoder side process applying the audio signal to the first DRC characteristic with loudness normalization.

4. The process of claim 3 wherein when the flag has a second value, the first DRC gain sequence was determined by the encoder side process applying the audio signal to the first DRC characteristic without loudness normalization.

5. The process of claim 2 wherein applying the inverse DRC characteristic to the first DRC gain sequence results in a recovered loudness sequence, and performing loudness normalization comprisesadjusting the recovered loudness sequence using the loudness normalization gain and the integrated loudness value, to produce the normalized loudness sequence.

6. The process of claim 5 wherein the loudness normalization gain is in units of dB, and performing loudness normalization comprises combining the loudness normalization gain with the recovered loudness sequence and the integrated loudness value.

7. The process of claim 2 wherein applying the inverse DRC characteristic to the first DRC gain sequence results in a recovered loudness sequence,and wherein performing loudness normalization and applying the normalized loudness sequence to the second DRC characteristic to produce the second DRC gain sequence comprisesshifting the second DRC characteristic along its input axis by an amount that is based on the loudness normalization gain and the integrated loudness value.

8. The process of claim 2 further comprising:producing a recovered loudness sequence by applying the first DRC gain sequence to the inverse DRC characteristic; andin response to tire index having a predefined value, calculating a normalization gain as a difference between i) a DRC input loudness target and ii) a sum of the integrated loudness value and the loudness normalization gain that was used by the encoder side process, and adding the normalization gain to the recovered loudness sequence to produce the normalized loudness sequence.

9. An audio decoder apparatus comprising:a processor; andmemory having stored therein instructions that configure the processor to perform the process in any one of claims 1-8.

10. A memory having stored therein instructions that configure a processor to perform the process in any one of claims 1-8.

Citation Information

Patent Citations

  • Metadata driven dynamic range control

    US20140297291A1