From f40d1b1d130dc11eea0ba398205f44a5a3500f20 Mon Sep 17 00:00:00 2001 From: Zsin Skri Date: Wed, 19 Jun 2019 22:43:15 +0200 Subject: [PATCH] replaygain: ffmpeg: set targetlevel for R128_*_GAIN tags When using the ffmpeg replaygain backend to create R128_*_GAIN tags, automatically set the targetlevel to -23 LUFS. Note: This will be made configurable by GitHub PullRequest #3065 --- beetsplug/replaygain.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index 71395de54c..1edd54bcbc 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -522,6 +522,10 @@ def _parse_float(self, line): .format(value) ) + def use_ebu_r128(self): + """Set this Backend up to use EBU R128.""" + self._target_level = -23 + # mpgain/aacgain CLI tool backend. class CommandBackend(Backend):