2015-02-22, 14:04
As with virtually all hardware and software AC3 (Dolby Digital) decoders, the dynamic range compression is enabled by default. I can't find an option in Kodi to disable it. So, how do I disable it (and for all other formats)?
<advancedsettings>
<audio>
<!-- Whether to use DRC on AC3 and DTS streams -->
<applydrc>false</applydrc>
</audio>
</advancedsettings>
Quote:Metadata provides a number of key parameters that are specifically intended to change the sound of the program delivered to the consumer’s unique listening environment. These metadata parameters are known as dialogue level (aka dialogue normalization or dialnorm), dynamic range control, and downmixing.
#define OPT_BASE_STRUCT struct ad_lavc_params
struct ad_lavc_params {
float ac3drc;
int downmix;
int threads;
char **avopts;
};
const struct m_sub_options ad_lavc_conf = {
.opts = (const m_option_t[]) {
OPT_FLOATRANGE("ac3drc", ac3drc, 0, 0, 2),
OPT_FLAG("downmix", downmix, 0),
OPT_INTRANGE("threads", threads, 0, 1, 16),
OPT_KEYVALUELIST("o", avopts, 0),
{0}
},
.size = sizeof(struct ad_lavc_params),
.defaults = &(const struct ad_lavc_params){
.ac3drc = 1.,
.downmix = 1,
.threads = 1,
},
};
// snip snip
// Always try to set - option only exists for AC3 at the moment
av_opt_set_double(lavc_context, "drc_scale", opts->ac3drc, AV_OPT_SEARCH_CHILDREN);
Quote:``--ad-lavc-ac3drc=<level>``
Select the Dynamic Range Compression level for AC-3 audio streams.
``<level>`` is a float value ranging from 0 to 1, where 0 means no
compression and 1 (which is the default) means full compression (make loud
passages more silent and vice versa). Values up to 2 are also accepted, but
are purely experimental. This option only shows an effect if the AC-3 stream
contains the required range compression information.
wikipedia Wrote:libavcodec is a free and open-source[5] library of codecs for encoding and decoding video and audio data.[6] Because of a project fork, libraries with this name are provided by FFmpeg[7] and Libav,[8] but they are incompatible.[citation needed]