Skip to content

Commit

Permalink
Merge pull request #409 from Unmanic/pr-encoder_audio_ac3
Browse files Browse the repository at this point in the history
[encoder_audio_ac3] v0.0.7
  • Loading branch information
Josh5 authored Mar 24, 2024
2 parents 001d8ae + 74735e6 commit 56e98da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions source/encoder_audio_ac3/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

**<span style="color:#56adda">0.0.7</span>**
- fix stray character in custom stream mapping function

**<span style="color:#56adda">0.0.6</span>**
- add an '-ac` parameter to encoder to avoid unsupported channel layout error when normalizing 6 channel streams

Expand Down
2 changes: 1 addition & 1 deletion source/encoder_audio_ac3/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.6"
"version": "0.0.7"
}
2 changes: 1 addition & 1 deletion source/encoder_audio_ac3/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ 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'))
channels = int(stream_info.get('channels'))
stream_encoding += [
'-ac:a:{}'.format(stream_id), '{}'.format(channels), '-b:a:{}'.format(stream_id), "{}k".format(calculated_bitrate)
]
Expand Down

0 comments on commit 56e98da

Please sign in to comment.