1
0
mirror of https://github.com/blakeblackshear/frigate.git synced 2025-03-27 00:17:27 +01:00

Use fast start for exports ()

This commit is contained in:
Nicolas Mowen 2024-04-08 06:36:50 -06:00 committed by GitHub
parent 8148a4f9d6
commit 73c093be43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(" ")