From 9791246895a18b94b3b637cc9596f215135ebdf3 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 3 Jan 2023 12:54:02 -0700 Subject: [PATCH] Add video codec to restream config --- frigate/config.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frigate/config.py b/frigate/config.py index 6b97b2e1a..161ab8db9 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -514,8 +514,19 @@ class JsmpegStreamConfig(FrigateBaseModel): quality: int = Field(default=8, ge=1, le=31, title="Live camera view quality.") +class RestreamCodecEnum(str, Enum): + """Represents different options for encoding the restream.""" + + copy = "copy" + h264 = "h264" + h265 = "h265" + + class RestreamConfig(FrigateBaseModel): enabled: bool = Field(default=True, title="Restreaming enabled.") + video_codec: RestreamCodecEnum = Field( + defualt=RestreamCodecEnum.copy, title="Method for encoding the restream." + ) force_audio: bool = Field( default=True, title="Force audio compatibility with the browser." )