Add Max Audio Channel condition to supported codecs

This commit is contained in:
Neil Burrows 2021-10-12 08:13:25 +01:00
parent d727f0b924
commit f27c5e206a

View File

@ -38,12 +38,13 @@ function getDeviceProfile() as object
tsAudioCodecs = "aac"
end if
DirectPlayProfile = GetDirectPlayProfiles()
return {
"MaxStreamingBitrate": 120000000,
"MaxStaticBitrate": 100000000,
"MusicStreamingTranscodingBitrate": 192000,
"DirectPlayProfiles": GetDirectPlayProfiles(),
"DirectPlayProfiles": DirectPlayProfile,
"TranscodingProfiles": [
{
"Container": "aac",
@ -111,6 +112,18 @@ function getDeviceProfile() as object
}
]
},
{
"Type": "VideoAudio",
"Codec": DirectPlayProfile[1].AudioCodec, ' Use supported MKV Audio list
"Conditions": [
{
"Condition": "LessThanEqual",
"Property": "AudioChannels",
"Value": StrI(maxAudioChannels) ' Currently Jellyfin server expects this as a string
"IsRequired": false
}
]
},
{
"Type": "Video",
"Codec": "h264",