Merge pull request #199 from neilsb/transcode-5.1
Allowing transcoding to 5.1ch if appropriate output connected
This commit is contained in:
commit
f18e88f843
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user