diff --git a/changelog.md b/changelog.md
index 923e476..5f12c76 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,7 @@
+**0.0.7**
+- add 'ac' parameter to ffmpeg command performing normalization to avoid unsupported channel layout error
+
**0.0.6**
- Update FFmpeg helper
- Add platform declaration
diff --git a/info.json b/info.json
index 98344ca..877e950 100644
--- a/info.json
+++ b/info.json
@@ -16,5 +16,5 @@
"on_worker_process": 0
},
"tags": "audio,ffmpeg,library file test",
- "version": "0.0.6"
+ "version": "0.0.7"
}
diff --git a/plugin.py b/plugin.py
index 8e9871a..9a7f1b4 100644
--- a/plugin.py
+++ b/plugin.py
@@ -90,10 +90,11 @@ def test_stream_needs_processing(self, stream_info: dict):
return False
def custom_stream_mapping(self, stream_info: dict, stream_id: int):
+ channels = int(stream_info.get('channels'))
return {
'stream_mapping': ['-map', '0:a:{}'.format(stream_id)],
'stream_encoding': [
- '-c:a:{}'.format(stream_id), 'aac',
+ '-c:a:{}'.format(stream_id), 'aac', '-ac:a:{}'.format(stream_id), '{}'.format(channels),
'-filter:a:{}'.format(stream_id), audio_filtergraph(self.settings),
]
}