From 0de0071adc4d5f7d4d20e81e24b6c3bc06ba6ed1 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Sun, 1 Oct 2023 20:03:50 -0400 Subject: [PATCH] convert aac and opus 5.1 to ac3 instead of eac3 --- components/ItemGrid/LoadVideoContentTask.brs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/ItemGrid/LoadVideoContentTask.brs b/components/ItemGrid/LoadVideoContentTask.brs index f94c3817b..31c10e3e7 100644 --- a/components/ItemGrid/LoadVideoContentTask.brs +++ b/components/ItemGrid/LoadVideoContentTask.brs @@ -228,9 +228,11 @@ sub addVideoContentURL(video, mediaSourceId, audio_stream_idx, fully_external) if not di.CanDecodeAudio({ Codec: selectedAudioStream.Codec, ChCnt: selectedAudioStream.Channels, PassThru: 1 }).Result print "Users receiver can not decode the selected multichannel audio stream" ' check to see if the receiver can decode our preferred audio codec - preferredCodec = "eac3" + preferredCodec = "ac3" if m.global.session.user.settings["playback.forceDTS"] - preferredCodec = "dts" + if selectedAudioStream.Container = "webm" or selectedAudioStream = "mkv" + preferredCodec = "dts" + end if end if if di.CanDecodeAudio({ Codec: preferredCodec, ChCnt: selectedAudioStream.Channels, PassThru: 1 }).Result print "Attempting to transcode audio to our preferred multichannel codec"