From 2e9c03718a27185ad5432b0e06388dad5adab400 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Sun, 1 Oct 2023 20:59:25 -0400 Subject: [PATCH] try to fix ff bug in files being force transcoded --- components/ItemGrid/LoadVideoContentTask.brs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/components/ItemGrid/LoadVideoContentTask.brs b/components/ItemGrid/LoadVideoContentTask.brs index 0421a8bb9..842b007c8 100644 --- a/components/ItemGrid/LoadVideoContentTask.brs +++ b/components/ItemGrid/LoadVideoContentTask.brs @@ -229,26 +229,23 @@ sub addVideoContentURL(video, mediaSourceId, audio_stream_idx, fully_external) print "Users receiver can not decode the selected multichannel audio stream" ' check to see if the receiver can decode our preferred audio codec preferredCodec = "ac3" - forceMKV = false if selectedAudioStream.Container = "webm" or selectedAudioStream.Container = "mkv" if m.global.session.user.settings["playback.forceDTS"] preferredCodec = "dts" end if - else - ' if the file is aac and not mkv, force container to be mkv - if selectedAudioStream.Codec = "aac" - forceMKV = true - 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" ' transcode the audio to keep multichannel support ' otherwise the roku device will downmix aac/opus to stereo - params.Delete("Static") + params.Static = false + params.context = "Streaming" params.audioCodec = preferredCodec - if forceMKV + ' force all + if selectedAudioStream.Codec = "aac" params.container = "mkv" end if + video.isTranscoded = true video.directplaysupported = false params.transcodeReasons = "Switching audio codecs to preserve multichannel audio support"