use resolution of clip

This commit is contained in:
Blake Blackshear 2021-11-08 07:29:01 -06:00
parent 0695bb097d
commit 0e43f452d2

View File

@ -269,6 +269,10 @@ def process(path, label, output, debug_path):
logger.info(c) logger.info(c)
frame_shape = get_frame_shape(c) frame_shape = get_frame_shape(c)
json_config["cameras"]["camera"]["detect"] = {
"height": frame_shape[0],
"width": frame_shape[1],
}
json_config["cameras"]["camera"]["ffmpeg"]["inputs"][0]["path"] = c json_config["cameras"]["camera"]["ffmpeg"]["inputs"][0]["path"] = c
frigate_config = FrigateConfig(**json_config) frigate_config = FrigateConfig(**json_config)