Allow multiple output formats when aac fallback is triggered.
authorAndrew Strong <andrew.david.strong@gmail.com>
Tue, 19 Jul 2016 08:23:39 +0000 (18:23 +1000)
committerAndrew Strong <andrew.david.strong@gmail.com>
Tue, 19 Jul 2016 08:23:39 +0000 (18:23 +1000)
Thanks to Birk Bremer for the bug report. This closes Issue 35:

   https://abcde.einval.com/bugzilla/show_bug.cgi?id=35

abcde
changelog

diff --git a/abcde b/abcde
index 901686a..b9c622c 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -4706,7 +4706,8 @@ if [ "$CHECKFAACBUILD" = "y" ] && [ "$AACENCODERSYNTAX" = "faac" ] ; then
        if faac --help 2>&1 | grep -q -F 'MP4 support unavailable.'; then 
                echo "WARNING: Your copy of Faac does not have mp4 support"
                echo "WARNING: Encoding untagged files to aac..."
-               OUTPUTTYPE=aac
+               # Replace m4a with aac for single and multi-output encodes:
+               OUTPUTTYPE=$(echo "$OUTPUTTYPE" | sed 's/m4a/aac/')
        else
                echo "Using Faac to Tag AAC Tracks..."
        fi
index 59bb6f8..e00f809 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,5 +1,8 @@
 abcde 2.7.3
 
+  * Fix to allow multiple output formats when aac fallback is triggered.
+    Thanks to Birk Bremer for the bug report. This closes Issue 35:
+    https://abcde.einval.com/bugzilla/show_bug.cgi?id=35
   * Fix for some erroneous error and status logging. Thanks to Christian
     Wasem for the bug report and fix. This closes Issue 32:
     https://abcde.einval.com/bugzilla/show_bug.cgi?id=32