Skip to content

Commit

Permalink
use resolution of clip
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Feb 19, 2022
1 parent 0695bb0 commit 0e43f45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions process_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ def process(path, label, output, debug_path):
logger.info(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

frigate_config = FrigateConfig(**json_config)
Expand Down

0 comments on commit 0e43f45

Please sign in to comment.