From c384b2f84f9ea631c6d3a45d822ca414331f5971 Mon Sep 17 00:00:00 2001 From: Rob-Powell <7034920+Rob-Powell@users.noreply.github.com> Date: Tue, 3 Jan 2023 23:04:48 +1100 Subject: [PATCH] check stream specific hwaccel_args for gpu stats --- frigate/stats.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frigate/stats.py b/frigate/stats.py index 3b6683037..710e4a209 100644 --- a/frigate/stats.py +++ b/frigate/stats.py @@ -121,6 +121,15 @@ async def set_gpu_stats(config: FrigateConfig, all_stats: dict[str, Any]) -> Non if args and args not in hwaccel_args: hwaccel_args.append(args) + + for stream_input in camera.ffmpeg.inputs: + args = stream_input.hwaccel_args + + if isinstance(args, list): + args = " ".join(args) + + if args and args not in hwaccel_args: + hwaccel_args.append(args) stats: dict[str, dict] = {}