Skip to content

Commit

Permalink
asad_audio_encoder [0.0.1]
Browse files Browse the repository at this point in the history
  • Loading branch information
yajrendrag committed Apr 18, 2024
1 parent b142d89 commit 8067739
Show file tree
Hide file tree
Showing 12 changed files with 1,067 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@
[submodule "source/convert_multichannel_audio_to_aac_or_ac3/lib/ffmpeg"]
path = source/convert_multichannel_audio_to_aac_or_ac3/lib/ffmpeg
url = https://github.com/Josh5/unmanic.plugin.helpers.ffmpeg.git
[submodule "source/asad_audio_encoder/lib/ffmpeg"]
path = source/asad_audio_encoder/lib/ffmpeg
url = https://github.com/Josh5/unmanic.plugin.helpers.ffmpeg.git
4 changes: 4 additions & 0 deletions source/asad_audio_encoder/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/__pycache__
*.py[cod]
**/site-packages
settings.json
674 changes: 674 additions & 0 deletions source/asad_audio_encoder/LICENSE

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions source/asad_audio_encoder/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ASAD Audio Encoder
Plugin for [Unmanic](https://github.com/Unmanic)

---

### Information:

- [Description](description.md)
- [Changelog](changelog.md)
3 changes: 3 additions & 0 deletions source/asad_audio_encoder/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

**<span style="color:#56adda">0.0.1</span>**
- initial version
41 changes: 41 additions & 0 deletions source/asad_audio_encoder/description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

---

##### Links:

- [Support](https://unmanic.app/discord)

---

##### Description:

This plugin is for use on Audio files - not video files.

It will transcode all audio streams in the file to the encoder specified in the plugin configuration.

If any stream has greater than 6 channels, it will be encoded to have only 6 channels - this is a current limitation of ffmpeg.

This Plugin will set the bit rate for each stream based on the channel rate specified and number of channels in the stream OR optionally it will use the bit rate of the original stream

As a rule of thumb, for audible transparency, use 64 kBit/s for each channel (so 128 kBit/s for stereo, 384 kBit/s for 5.1 surround sound).

This Plugin will detect the number of channels in each stream and apply a bitrate in accordance with this rule.

---

##### Documentation:

For information on the available encoder settings:
- [High Quality Lossy Audio Encoding](https://trac.ffmpeg.org/wiki/Encode/HighQualityAudio)

---

### Config description:

#### <span style="color:blue">Select Encoder</span>

- Select the desired encoder: libmp3lame, libfdk_aac, flac, alac, libopus, vorbis.
- Select the desired channel rate: 64k, 128k 192k, 384k or "keep each stream's existing rate".
- Select the customize box if you wish to add custom audio encoder options or specifiy a custom file suffix.
- Text Areas for custom audio options and custom suffix will appear if check box is checked otherwise these fields are hidden.

Binary file added source/asad_audio_encoder/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions source/asad_audio_encoder/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"author": "yajrendrag",
"compatibility": [
2
],
"description": "Encode all audio streams in an audio file based on the configured encoder and options",
"icon": "https://raw.githubusercontent.com/Unmanic/plugin.encoder_audio_aac/master/icon.png",
"id": "asad_audio_encoder",
"name": "ASAD Audio Encoder",
"platform": [
"all"
],
"priorities": {
"on_library_management_file_test": 99,
"on_worker_process": 0
},
"tags": "audio,encoder,ffmpeg,library file test",
"version": "0.0.1"
}
23 changes: 23 additions & 0 deletions source/asad_audio_encoder/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
plugins.__init__.py
Written by: Josh.5 <[email protected]>
Date: 23 Aug 2021, (20:38 PM)
Copyright:
Copyright (C) 2021 Josh Sunnex
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License along with this program.
If not, see <https://www.gnu.org/licenses/>.
"""
1 change: 1 addition & 0 deletions source/asad_audio_encoder/lib/ffmpeg
Submodule ffmpeg added at 5c4741
Loading

0 comments on commit 8067739

Please sign in to comment.