From 59590d4d08ec7d7c6cb47367767bfb9e01b7d0cd Mon Sep 17 00:00:00 2001
From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Sun, 24 Mar 2024 20:02:11 +0000
Subject: [PATCH] [encoder_audio_aac] v0.0.6
---
source/encoder_audio_aac/changelog.md | 3 +++
source/encoder_audio_aac/info.json | 2 +-
source/encoder_audio_aac/plugin.py | 3 ++-
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/source/encoder_audio_aac/changelog.md b/source/encoder_audio_aac/changelog.md
index 45dffaab7..fc58b0a40 100644
--- a/source/encoder_audio_aac/changelog.md
+++ b/source/encoder_audio_aac/changelog.md
@@ -1,4 +1,7 @@
+**0.0.6**
+- add 'ac' parameter to ffmpeg command to ensure proper channel_layout field for compatiability with normalization plugin to avoid unsupported channel layout error
+
**0.0.5**
- Update FFmpeg helper
- Remove support for v1 plugin executor
diff --git a/source/encoder_audio_aac/info.json b/source/encoder_audio_aac/info.json
index 93985be39..38d67c0ba 100644
--- a/source/encoder_audio_aac/info.json
+++ b/source/encoder_audio_aac/info.json
@@ -15,5 +15,5 @@
"on_worker_process": 0
},
"tags": "audio,encoder,ffmpeg,library file test",
- "version": "0.0.5"
+ "version": "0.0.6"
}
diff --git a/source/encoder_audio_aac/plugin.py b/source/encoder_audio_aac/plugin.py
index 84f4ee0f3..eacbaa837 100644
--- a/source/encoder_audio_aac/plugin.py
+++ b/source/encoder_audio_aac/plugin.py
@@ -151,8 +151,9 @@ def custom_stream_mapping(self, stream_info: dict, stream_id: int):
if stream_info.get('channels'):
# Use 64K for the bitrate per channel
calculated_bitrate = self.calculate_bitrate(stream_info)
+ channels = int(stream_info.get('channels'))
stream_encoding += [
- '-b:a:{}'.format(stream_id), "{}k".format(calculated_bitrate)
+ '-ac:a:{}'.format(stream_id), '{}'.format(channels), '-b:a:{}'.format(stream_id), "{}k".format(calculated_bitrate)
]
return {