Merge pull request #199 from neilsb/transcode-5.1

Allowing transcoding to 5.1ch if appropriate output connected
This commit is contained in:
Charles Ewert 2020-05-02 09:51:55 -04:00 committed by GitHub
commit f18e88f843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" and di.CanDecodeAudio({ Codec: "aac", ChCnt: 6 }).result then
audioChannels = 6
end if
end if
return {
"VideoCodec": "h264",