switch to mpegts format for cache and create mp4 with faststart

This commit is contained in:
Blake Blackshear
2021-10-15 21:08:43 -05:00
parent ef82c5c691
commit c809494c98
2 changed files with 27 additions and 8 deletions

View File

@@ -298,7 +298,7 @@ RECORD_FFMPEG_OUTPUT_ARGS_DEFAULT = [
"-segment_time",
"10",
"-segment_format",
"mp4",
"ts",
"-reset_timestamps",
"1",
"-strftime",
@@ -562,7 +562,7 @@ class CameraConfig(FrigateBaseModel):
)
ffmpeg_output_args = (
record_args
+ [f"{os.path.join(CACHE_DIR, self.name)}-%Y%m%d%H%M%S.mp4"]
+ [f"{os.path.join(CACHE_DIR, self.name)}-%Y%m%d%H%M%S.ts"]
+ ffmpeg_output_args
)