mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
ad_lavc: disable AC3 DRC by default
This commit is contained in:
@@ -917,11 +917,14 @@ Audio
|
||||
``--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
|
||||
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=<yes|no>``
|
||||
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
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user