From 99b50d99c43a3f4ca05cfe19405bfd7d16245307 Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Fri, 1 May 2020 17:50:40 +0100 Subject: [PATCH] Allowing transcoding to 5.1ch if appropriate output connected --- source/VideoPlayer.brs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/VideoPlayer.brs b/source/VideoPlayer.brs index 44ac94ab..c555457e 100644 --- a/source/VideoPlayer.brs +++ b/source/VideoPlayer.brs @@ -106,6 +106,12 @@ function getTranscodeParameters(meta as object) else audioCodec = "aac" audioChannels = 2 + + ' If 5.1 Audio Output is connected then allow transcoding to 5.1 + di = CreateObject("roDeviceInfo") + if di.GetAudioOutputChannel() = "5.1 surround" then + audioChannels = 6 + end if end if return { "VideoCodec": "h264",