Allowing transcoding to 5.1ch if appropriate output connected

This commit is contained in:
Neil Burrows 2020-05-01 17:50:40 +01:00
parent ff732dd4a9
commit 99b50d99c4

View File

@ -106,6 +106,12 @@ function getTranscodeParameters(meta as object)
else else
audioCodec = "aac" audioCodec = "aac"
audioChannels = 2 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 end if
return { return {
"VideoCodec": "h264", "VideoCodec": "h264",