This commit is contained in:
Sergey Krashevich 2023-06-15 03:13:48 +03:00
parent a53fc32d1a
commit 5ca3035cbf
No known key found for this signature in database
GPG Key ID: 625171324E7D3856

View File

@ -29,8 +29,8 @@ from frigate.util import (
deep_merge, deep_merge,
escape_special_characters, escape_special_characters,
get_ffmpeg_arg_list, get_ffmpeg_arg_list,
load_config_with_no_duplicates,
get_video_properties, get_video_properties,
load_config_with_no_duplicates,
) )
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -676,9 +676,8 @@ class CameraConfig(FrigateBaseModel):
"detect" in input.get("roles", []) "detect" in input.get("roles", [])
): ):
try: try:
streamInfo = get_video_properties(input.get("path")) streamInfo = get_video_properties(input.get("path"))
config["detect"]["width"] = streamInfo["width"] config["detect"]["width"] = streamInfo["width"]
config["detect"]["height"] = streamInfo["height"] config["detect"]["height"] = streamInfo["height"]
break break
except Exception: except Exception: