From 804804b345459446de11ff3af9e93faf9791a6fe Mon Sep 17 00:00:00 2001 From: GiantDwarf Date: Tue, 1 Jun 2021 21:26:49 +0000 Subject: [PATCH] fixed 7.1 bug Since FFMPEG does not support converting 7.1 to AC3 the plugin was previously downmixing 7.1 audio to 5.1. Since I'm also running Tdarr_Plugin_MC93_Migz5ConvertAudio to downmix tracks anyway, this caused me to end up with duplicate 5.1 tracks in all of my videos. This update does not fix the fundamental issue of ffmpeg not converting 7.1 to AC3, instead it just makes the plugin ignore 7.1 streams entirely. Combined with Tdarr_Plugin_MC93_Migz5ConvertAudio, this should allow users to have stereo and 5.1 audio streams encoded in AC3 while keeping the original 7.1 stream if it exist. --- Community/Tdarr_Plugin_b39x_the1poet_surround_sound_to_ac3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community/Tdarr_Plugin_b39x_the1poet_surround_sound_to_ac3.js b/Community/Tdarr_Plugin_b39x_the1poet_surround_sound_to_ac3.js index b7c2726..de11ac6 100644 --- a/Community/Tdarr_Plugin_b39x_the1poet_surround_sound_to_ac3.js +++ b/Community/Tdarr_Plugin_b39x_the1poet_surround_sound_to_ac3.js @@ -48,7 +48,7 @@ function plugin(file) { try { if ( - file.ffProbeData.streams[i].channels >= 6 && + file.ffProbeData.streams[i].channels == 6 && file.ffProbeData.streams[i].codec_name !== "ac3" && file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" ) {