From 60c174101fd50aaa892dd2555c5777468e8fa409 Mon Sep 17 00:00:00 2001 From: Samuel Nilsson Date: Mon, 29 Jul 2019 10:32:19 +0200 Subject: [PATCH] ffmpeg replaygain backend: Only calculate replaygain for audio stream. Fixed documentation for backend option. --- beetsplug/replaygain.py | 1 + docs/plugins/replaygain.rst | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index a618939b8..f9373835f 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -456,6 +456,7 @@ class FfmpegBackend(Backend): "-hide_banner", "-i", item.path, + "-map a:0", "-filter", "ebur128=peak={0}".format(peak_method), "-f", diff --git a/docs/plugins/replaygain.rst b/docs/plugins/replaygain.rst index ea119167d..9602618da 100644 --- a/docs/plugins/replaygain.rst +++ b/docs/plugins/replaygain.rst @@ -92,7 +92,8 @@ configuration file. The available options are: - **auto**: Enable ReplayGain analysis during import. Default: ``yes``. -- **backend**: The analysis backend; either ``gstreamer``, ``command``, or ``audiotools``. +- **backend**: The analysis backend; either ``gstreamer``, ``command``, ``audiotools`` + or ``ffmpeg``. Default: ``command``. - **overwrite**: Re-analyze files that already have ReplayGain tags. Default: ``no``.