From 9bd581cb46c06350dc42fb74e242fa3a491c6816 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 10 Aug 2021 16:41:08 +0200 Subject: [PATCH] adjust volume after decode --- ffmpeg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffmpeg.py b/ffmpeg.py index 6e5bcbe..6b5c0ed 100755 --- a/ffmpeg.py +++ b/ffmpeg.py @@ -115,11 +115,11 @@ for clip in edit: else: aid = src_info['audio'][0]['id'] audio = [] + audio_map = ['-map', '0:%s,0:0' % aid, '-map', '0:%s,0:1' % vid] if clip.get('volume', 1) != 1: - audio += [ + audio_map += [ '-filter:a', 'volume=%s' % clip['volume'] ] - audio_map = ['-map', '0:%s,0:0' % aid, '-map', '0:%s,0:1' % vid] cmd = [ 'ffmpeg', '-nostats', '-loglevel', 'error',