From 3f40c6c5d5a062d8a112a5ee281695fc3e2a9231 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sun, 23 Jan 2022 19:43:19 +0000 Subject: [PATCH] Add -strict -2 --- Community/Tdarr_Plugin_00td_action_keep_one_audio_stream.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Community/Tdarr_Plugin_00td_action_keep_one_audio_stream.js b/Community/Tdarr_Plugin_00td_action_keep_one_audio_stream.js index b415d22..5925da3 100644 --- a/Community/Tdarr_Plugin_00td_action_keep_one_audio_stream.js +++ b/Community/Tdarr_Plugin_00td_action_keep_one_audio_stream.js @@ -89,6 +89,9 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { ); response.preset = transcodeKeepOneAudioStream.preset; + if (['dca', 'truehd'].includes(audioCodec)) { + response.preset += ' -strict -2'; + } response.container = `.${file.container}`; response.handbrakeMode = false; response.FFmpegMode = true;