From 527d2ab27b51265ef8a4f99c4f7930f39eb41dcc Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 22 May 2024 12:25:58 -0600 Subject: [PATCH] Fix extra space in command (#11487) --- 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 a520f2bc6..1669012d6 100644 --- a/frigate/output/preview.py +++ b/frigate/output/preview.py @@ -77,7 +77,7 @@ class FFMpegConverter(threading.Thread): self.ffmpeg_cmd = parse_preset_hardware_acceleration_encode( config.ffmpeg.hwaccel_args, input="-f concat -y -protocol_whitelist pipe,file -safe 0 -i /dev/stdin", - output=f"-g {PREVIEW_KEYFRAME_INTERVAL} {'-fpsmax 2' if int(os.getenv('LIBAVFORMAT_VERSION_MAJOR', '59')) >= 59 else ''} -bf 0 -b:v {PREVIEW_QUALITY_BIT_RATES[self.config.record.preview.quality]} {FPS_VFR_PARAM} -movflags +faststart -pix_fmt yuv420p {self.path}", + output=f"-g {PREVIEW_KEYFRAME_INTERVAL}{' -fpsmax 2' if int(os.getenv('LIBAVFORMAT_VERSION_MAJOR', '59')) >= 59 else ''} -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, )