mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-05-26 01:16:07 +02:00
check stream specific hwaccel_args for gpu stats (#4869)
* check stream specific hwaccel_args for gpu stats * fix indentation Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com> * check special chars for linter Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
parent
ebef38e408
commit
9fd13aad11
@ -122,6 +122,15 @@ async def set_gpu_stats(config: FrigateConfig, all_stats: dict[str, Any]) -> Non
|
|||||||
if args and args not in hwaccel_args:
|
if args and args not in hwaccel_args:
|
||||||
hwaccel_args.append(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] = {}
|
stats: dict[str, dict] = {}
|
||||||
|
|
||||||
for args in hwaccel_args:
|
for args in hwaccel_args:
|
||||||
|
Loading…
Reference in New Issue
Block a user