mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
backwards compatibility for segment_type
This commit is contained in:
parent
80b72c75d9
commit
2e494477a6
@ -563,6 +563,14 @@ class CameraConfig(FrigateBaseModel):
|
|||||||
if isinstance(self.ffmpeg.output_args.record, list)
|
if isinstance(self.ffmpeg.output_args.record, list)
|
||||||
else self.ffmpeg.output_args.record.split(" ")
|
else self.ffmpeg.output_args.record.split(" ")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# backwards compatibility check for segment_format change from mp4 to ts
|
||||||
|
record_args = (
|
||||||
|
" ".join(record_args)
|
||||||
|
.replace("-segment_format mp4", "-segment_format ts")
|
||||||
|
.split(" ")
|
||||||
|
)
|
||||||
|
|
||||||
ffmpeg_output_args = (
|
ffmpeg_output_args = (
|
||||||
record_args
|
record_args
|
||||||
+ [f"{os.path.join(CACHE_DIR, self.name)}-%Y%m%d%H%M%S.ts"]
|
+ [f"{os.path.join(CACHE_DIR, self.name)}-%Y%m%d%H%M%S.ts"]
|
||||||
|
Loading…
Reference in New Issue
Block a user