From 73c093be43f056d39e6ea9806763c3f116d24b37 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 8 Apr 2024 06:36:50 -0600 Subject: [PATCH] Use fast start for exports (#10879) --- frigate/record/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/record/export.py b/frigate/record/export.py index 2a5b46fa3..238d7b117 100644 --- a/frigate/record/export.py +++ b/frigate/record/export.py @@ -103,14 +103,14 @@ class RecordingExporter(threading.Thread): if self.playback_factor == PlaybackFactorEnum.realtime: ffmpeg_cmd = ( - f"ffmpeg -hide_banner {ffmpeg_input} -c copy {file_path}" + f"ffmpeg -hide_banner {ffmpeg_input} -c copy -movflags +faststart {file_path}" ).split(" ") elif self.playback_factor == PlaybackFactorEnum.timelapse_25x: ffmpeg_cmd = ( parse_preset_hardware_acceleration_encode( self.config.ffmpeg.hwaccel_args, f"{TIMELAPSE_DATA_INPUT_ARGS} {ffmpeg_input}", - f"{self.config.cameras[self.camera].record.export.timelapse_args} {file_path}", + f"{self.config.cameras[self.camera].record.export.timelapse_args} -movflags +faststart {file_path}", EncodeTypeEnum.timelapse, ) ).split(" ")