Update FrigateConfig to set default values for stream_info if resolution detection fails

This commit is contained in:
Sergey Krashevich 2023-06-26 04:17:46 +03:00
parent 76886ec2f7
commit 2682aa9989
No known key found for this signature in database
GPG Key ID: 625171324E7D3856

View File

@ -966,6 +966,7 @@ class FrigateConfig(FrigateBaseModel):
logger.warn(
f"Error detecting stream resolution automatically for {input.path} Applying default values."
)
stream_info = {"width": 0, "height": 0}
camera_config.detect.width = (
stream_info["width"]