mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
fix ffmpeg config
This commit is contained in:
parent
76d46fe5ed
commit
477334d9dd
@ -599,12 +599,13 @@ class CameraConfig(FrigateBaseModel):
|
|||||||
if "_ffmpeg_cmds" in self:
|
if "_ffmpeg_cmds" in self:
|
||||||
return
|
return
|
||||||
ffmpeg_cmds = []
|
ffmpeg_cmds = []
|
||||||
for ffmpeg_input in self.ffmpeg.inputs:
|
if self.ffmpeg:
|
||||||
ffmpeg_cmd = self._get_ffmpeg_cmd(ffmpeg_input)
|
for ffmpeg_input in self.ffmpeg.inputs:
|
||||||
if ffmpeg_cmd is None:
|
ffmpeg_cmd = self._get_ffmpeg_cmd(ffmpeg_input)
|
||||||
continue
|
if ffmpeg_cmd is None:
|
||||||
|
continue
|
||||||
|
|
||||||
ffmpeg_cmds.append({"roles": ffmpeg_input.roles, "cmd": ffmpeg_cmd})
|
ffmpeg_cmds.append({"roles": ffmpeg_input.roles, "cmd": ffmpeg_cmd})
|
||||||
self._ffmpeg_cmds = ffmpeg_cmds
|
self._ffmpeg_cmds = ffmpeg_cmds
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user