Skip to content

Commit

Permalink
Merge pull request #1 from yajrendrag/pr-normalise_aac
Browse files Browse the repository at this point in the history
[normalise_aac] 0.0.7
  • Loading branch information
Josh5 authored Mar 24, 2024
2 parents 0e917a4 + 541e9b8 commit c653d62
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

**<span style="color:#56adda">0.0.7</span>**
- add 'ac' parameter to ffmpeg command performing normalization to avoid unsupported channel layout error

**<span style="color:#56adda">0.0.6</span>**
- Update FFmpeg helper
- Add platform declaration
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"on_worker_process": 0
},
"tags": "audio,ffmpeg,library file test",
"version": "0.0.6"
"version": "0.0.7"
}
3 changes: 2 additions & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]
}
Expand Down

0 comments on commit c653d62

Please sign in to comment.