From ebef5da074b7bfd1cf3a9f6e110d71e87eaa1901 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 30 Mar 2015 19:44:52 +0200 Subject: ad_lavc: disable AC3 DRC by default --- DOCS/man/options.rst | 7 +++++-- audio/decode/ad_lavc.c | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 45e312eea7..da0012c948 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -917,11 +917,14 @@ Audio ``--ad-lavc-ac3drc=`` Select the Dynamic Range Compression level for AC-3 audio streams. ```` 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 + compression (which is the default) and 1 means full compression (make loud + passages more silent and vice versa). Values up to 6 are also accepted, but are purely experimental. This option only shows an effect if the AC-3 stream contains the required range compression information. + The standard mandates that DRC is enabled by default, but mpv (and some + other players) ignore this for the sake of better audio quality. + ``--ad-lavc-downmix=`` Whether to request audio channel downmixing from the decoder (default: yes). Some decoders, like AC-3, AAC and DTS, can remix audio on decoding. The diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c index fd09eca0b7..4768349ec3 100644 --- a/audio/decode/ad_lavc.c +++ b/audio/decode/ad_lavc.c @@ -59,7 +59,7 @@ struct ad_lavc_params { const struct m_sub_options ad_lavc_conf = { .opts = (const m_option_t[]) { - OPT_FLOATRANGE("ac3drc", ac3drc, 0, 0, 2), + OPT_FLOATRANGE("ac3drc", ac3drc, 0, 0, 6), OPT_FLAG("downmix", downmix, 0), OPT_INTRANGE("threads", threads, 0, 1, 16), OPT_KEYVALUELIST("o", avopts, 0), @@ -67,7 +67,7 @@ const struct m_sub_options ad_lavc_conf = { }, .size = sizeof(struct ad_lavc_params), .defaults = &(const struct ad_lavc_params){ - .ac3drc = 1., + .ac3drc = 0, .downmix = 1, .threads = 1, }, -- cgit v1.2.3