From 70d77dd2890280428dbd5e282482fa16be76acf7 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 16 Sep 2023 10:31:03 -0600 Subject: [PATCH] Add args to ignore audio and only process keyframes --- frigate/record/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/record/export.py b/frigate/record/export.py index bfa47a07e..7c0d50301 100644 --- a/frigate/record/export.py +++ b/frigate/record/export.py @@ -99,7 +99,7 @@ class RecordingExporter(threading.Thread): ffmpeg_cmd = ( parse_preset_hardware_acceleration_encode( self.config.ffmpeg.hwaccel_args, - ffmpeg_input, + "-an -skip_frame nokey" + ffmpeg_input, # make sure only keyframes and no audio is not processed for time-lapse f"-vf setpts=0.04*PTS -r 30 -an {file_name}", EncodeTypeEnum.timelapse, )