Skip to content

Commit

Permalink
af_drc: remove
Browse files Browse the repository at this point in the history
Remove low quality drc filter. Anyone whishing to have dynamic range
compression should use the much more powerful acompressor ffmpeg filter:

    mpv --af=lavfi=[acompressor] INPUT

Or with parameters:

    mpv --af=lavfi=[acompressor=threshold=-25dB:ratio=3:makeup=8dB] INPUT

Refer to https://ffmpeg.org/ffmpeg-filters.html#acompressor for a full
list of supported parameters.

Signed-off-by: wm4 <wm4@nowhere>
  • Loading branch information
medhefgo authored and wm4 committed Mar 25, 2017
1 parent d663a0e commit 222899f
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 460 deletions.
1 change: 1 addition & 0 deletions DOCS/interface-changes.rst
Expand Up @@ -25,6 +25,7 @@ Interface changes
- remove ppm, pgm, pgmyuv, tga choices from the --screenshot-format and
--vo-image-format options
- the "jpeg" choice in the option above now leads to a ".jpg" file extension
- --af=drc is gone (you can use e.g. lavfi/acompressor instead)
--- mpv 0.24.0 ---
- deprecate --hwdec-api and replace it with --opengl-hwdec-interop.
The new option accepts both --hwdec values, as well as named backends.
Expand Down
23 changes: 0 additions & 23 deletions DOCS/man/af.rst
Expand Up @@ -319,29 +319,6 @@ Available filters are:
the mixing matrix at runtime, without reinitializing the entire filter
chain.

``drc[=method:target]``
Applies dynamic range compression. This maximizes the volume by compressing
the audio signal's dynamic range. (Formerly called ``volnorm``.)

``<method>``
Sets the used method.

1
Use a single sample to smooth the variations via the standard
weighted mean over past samples (default).
2
Use several samples to smooth the variations via the standard
weighted mean over past samples.

``<target>``
Sets the target amplitude as a fraction of the maximum for the sample
type (default: 0.25).

.. note::

This filter can cause distortion with audio signals that have a very
large dynamic range.

``scaletempo[=option1:option2:...]``
Scales audio tempo without altering pitch, optionally synced to playback
speed (default).
Expand Down
2 changes: 1 addition & 1 deletion DOCS/mplayer-changes.rst
Expand Up @@ -212,7 +212,7 @@ Command Line Switches
``-no<opt>`` ``--no-<opt>`` (add a dash)
``-a52drc level`` ``--ad-lavc-ac3drc=level``
``-ac spdifac3`` ``--ad=spdif:ac3`` (see ``--ad=help``)
``-af volnorm`` ``--af=drc`` (renamed)
``-af volnorm`` (removed; use acompressor ffmpeg filter instead)
``-afm hwac3`` ``--ad=spdif:ac3,spdif:dts``
``-ao alsa:device=hw=0.3`` ``--ao=alsa:device=[hw:0,3]``
``-aspect`` ``--video-aspect``
Expand Down
99 changes: 0 additions & 99 deletions TOOLS/lua/drc-control.lua

This file was deleted.

2 changes: 0 additions & 2 deletions audio/filter/af.c
Expand Up @@ -36,7 +36,6 @@ extern const struct af_info af_info_format;
extern const struct af_info af_info_volume;
extern const struct af_info af_info_equalizer;
extern const struct af_info af_info_pan;
extern const struct af_info af_info_drc;
extern const struct af_info af_info_lavcac3enc;
extern const struct af_info af_info_lavrresample;
extern const struct af_info af_info_scaletempo;
Expand All @@ -50,7 +49,6 @@ static const struct af_info *const filter_list[] = {
&af_info_volume,
&af_info_equalizer,
&af_info_pan,
&af_info_drc,
&af_info_lavcac3enc,
&af_info_lavrresample,
#if HAVE_RUBBERBAND
Expand Down

0 comments on commit 222899f

Please sign in to comment.