Skip to content

4) ๐Ÿ”Š Audio Transcoding

Jordan Lambrecht edited this page Apr 9, 2025 · 4 revisions

Introduction

I have several plex users that have older TVs, so each video should have a base aac 2ch regardless of quality. Additional qualities might be added, depending on the source audio. A few example scenarios:

  • Source: 8ch FLAC | Removed by default. Outcome if keep_8ch_audio is true: 8ch AC3, no 6ch, 2ch AAC
  • Source: 6ch AAC | Outcome: 6ch AAC, 2ch AAC
  • Source: 2ch AC3 | Outcome: 2ch AAC
  • Source: 2ch AAC | Outcome: 2ch AAC
  • Source: mono, any codec | Outcome: 2ch AAC
  • Commentary | Not altered unless remove_commentary is true

The only allowed audio formats are AAC and AC3, all other formats will be discarded.

The following are discarded: dca,dts,flac,mp2,mp3,truehd,vorbis,wav,wma,eac3.

PLEASE NOTE: THIS FLOW CONTAINS CUSTOM-WRITTEN PLUGINS THAT HAVE NOT YET BEEN MERGED INTO HaveAGitGat/Tdarr_Plugins. FOR NOW, YOU WILL NEED TO MANUALLY INSTALL THEM.

There are three plugins you need to create:

  1. Tdarr_Plugin_jordy_Upmix_Mono_to_Stereo.js
  2. Tdarr_Plugin_jordy_Remove_Audio_By_Codec_Channels.js
  3. Tdarr_Plugin_jordy_filter_by_audio_codec_and_channels.js

You can do this by going to Classic Plugins > Creator > Create Plugin From there, go to Classic Plugins > Local. Find the plugin you just made, hit the edit button, and copy the code in.

Current Related Issues

  • Audio transcoding #6