From 381c04a313cd781dc727fd86285924b1226c4f67 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 7 Nov 2024 13:59:48 -0700 Subject: [PATCH] Don't pass hwaccel args to preview --- frigate/output/preview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/output/preview.py b/frigate/output/preview.py index 9eae6b7dea..ae2ba4591c 100644 --- a/frigate/output/preview.py +++ b/frigate/output/preview.py @@ -78,7 +78,7 @@ def __init__( # write a PREVIEW at fps and 1 key frame per clip self.ffmpeg_cmd = parse_preset_hardware_acceleration_encode( config.ffmpeg.ffmpeg_path, - config.ffmpeg.hwaccel_args, + "default", input="-f concat -y -protocol_whitelist pipe,file -safe 0 -threads 1 -i /dev/stdin", output=f"-threads 1 -g {PREVIEW_KEYFRAME_INTERVAL} -bf 0 -b:v {PREVIEW_QUALITY_BIT_RATES[self.config.record.preview.quality]} {FPS_VFR_PARAM} -movflags +faststart -pix_fmt yuv420p {self.path}", type=EncodeTypeEnum.preview,