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 {