Skip to content

Commit

Permalink
[encoder_audio_aac] v0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 24, 2024
1 parent 8ae43d9 commit 59590d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions source/encoder_audio_aac/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

**<span style="color:#56adda">0.0.6</span>**
- add 'ac' parameter to ffmpeg command to ensure proper channel_layout field for compatiability with normalization plugin to avoid unsupported channel layout error

**<span style="color:#56adda">0.0.5</span>**
- Update FFmpeg helper
- Remove support for v1 plugin executor
Expand Down
2 changes: 1 addition & 1 deletion source/encoder_audio_aac/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"on_worker_process": 0
},
"tags": "audio,encoder,ffmpeg,library file test",
"version": "0.0.5"
"version": "0.0.6"
}
3 changes: 2 additions & 1 deletion source/encoder_audio_aac/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 59590d4

Please sign in to comment.