diff --git a/frigate/config.py b/frigate/config.py index f8c5967fd..ddba65c78 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -524,7 +524,9 @@ class JsmpegStreamConfig(FrigateBaseModel): class RestreamConfig(FrigateBaseModel): enabled: bool = Field(default=True, title="Restreaming enabled.") - force_audio: bool = Field(default=False, title="Force audio compatibility with the browser.") + force_audio: bool = Field( + default=False, title="Force audio compatibility with the browser." + ) jsmpeg: JsmpegStreamConfig = Field( default_factory=JsmpegStreamConfig, title="Jsmpeg Stream Configuration." ) diff --git a/frigate/restream.py b/frigate/restream.py index db37ef827..3168bd922 100644 --- a/frigate/restream.py +++ b/frigate/restream.py @@ -30,7 +30,10 @@ class RestreamApi: for input in camera.ffmpeg.inputs: if "restream" in input.roles: - if input.path.startswith("rtsp") and not camera.restream.force_audio: + if ( + input.path.startswith("rtsp") + and not camera.restream.force_audio + ): self.relays[cam_name] = input.path else: # go2rtc only supports rtsp for direct relay, otherwise ffmpeg is used