Allowing transcoding to 5.1ch if appropriate output connected
This commit is contained in:
parent
ff732dd4a9
commit
99b50d99c4
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user