set max video width and height in codec profiles

This commit is contained in:
Charles Ewert 2023-08-30 19:37:44 -04:00
parent 9f2fe6e8fc
commit 7ac0214d64

View File

@ -472,6 +472,18 @@ function getDeviceProfile() as object
"Value": h264VideoRangeTypes,
"IsRequired": false
},
{
"Condition": "LessThanEqual",
"Property": "Width",
"Value": m.global.device.videoWidth,
"IsRequired": true
},
{
"Condition": "LessThanEqual",
"Property": "Height",
"Value": m.global.device.videoHeight,
"IsRequired": true
},
{
"Condition": "LessThanEqual",
"Property": "VideoLevel",
@ -507,7 +519,19 @@ function getDeviceProfile() as object
"Property": "VideoLevel",
"Value": mpeg2Levels.join("|"),
"IsRequired": false
}
},
{
"Condition": "LessThanEqual",
"Property": "Width",
"Value": m.global.device.videoWidth,
"IsRequired": true
},
{
"Condition": "LessThanEqual",
"Property": "Height",
"Value": m.global.device.videoHeight,
"IsRequired": true
},
]
}
bitRateArray = GetBitRateLimit("mpeg2")
@ -566,7 +590,19 @@ function getDeviceProfile() as object
"Property": "VideoLevel",
"Value": (120 * av1HighestLevel).ToStr(),
"IsRequired": false
}
},
{
"Condition": "LessThanEqual",
"Property": "Width",
"Value": m.global.device.videoWidth,
"IsRequired": true
},
{
"Condition": "LessThanEqual",
"Property": "Height",
"Value": m.global.device.videoHeight,
"IsRequired": true
},
]
}
bitRateArray = GetBitRateLimit("av1")
@ -636,7 +672,19 @@ function getDeviceProfile() as object
"Property": "VideoLevel",
"Value": hevcLevelString,
"IsRequired": false
}
},
{
"Condition": "LessThanEqual",
"Property": "Width",
"Value": m.global.device.videoWidth,
"IsRequired": true
},
{
"Condition": "LessThanEqual",
"Property": "Height",
"Value": m.global.device.videoHeight,
"IsRequired": true
},
]
}
@ -672,7 +720,19 @@ function getDeviceProfile() as object
"Property": "VideoRangeType",
"Value": vp9VideoRangeTypes,
"IsRequired": false
}
},
{
"Condition": "LessThanEqual",
"Property": "Width",
"Value": m.global.device.videoWidth,
"IsRequired": true
},
{
"Condition": "LessThanEqual",
"Property": "Height",
"Value": m.global.device.videoHeight,
"IsRequired": true
},
]
}