From 79e940e8b32fab1dd3f458b58e654c4de3fd6e89 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Tue, 28 Sep 2021 15:05:09 +0200 Subject: [PATCH] Fix merge audio with 3 audio files Signed-off-by: Bensuperpc --- audio/merge-audio.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/audio/merge-audio.sh b/audio/merge-audio.sh index 9178978..ad50fa3 100644 --- a/audio/merge-audio.sh +++ b/audio/merge-audio.sh @@ -9,8 +9,8 @@ #////////////////////////////////////////////////////////////// #// // #// Script, 2021 // -#// Created: 27, September, 2021 // -#// Modified: 27, September, 2021 // +#// Created: 28, September, 2021 // +#// Modified: 28, September, 2021 // #// file: - // #// - // #// Source: https://superuser.com/a/587553/1057976 // @@ -25,7 +25,7 @@ if (($# == 3)); then -map '[out]' "$3" elif (($# == 4)); then ffmpeg -i "$1" -i "$2" -i "$3" \ - -filter_complex '[0:0][1:0][2:0][3:0]concat=n=4:v=0:a=1[out]' \ + -filter_complex '[0:0][1:0][2:0]concat=n=3:v=0:a=1[out]' \ -map '[out]' "$4" elif (($# == 6)); then ffmpeg -i "$1" -i "$2" -i "$3" -i "$4" \