From b24bb3eb181092ac4dbd02e7fe55a591b1f8490e Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 2 Jul 2021 07:50:09 -0500 Subject: [PATCH] add range to birdseye quality config --- frigate/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frigate/config.py b/frigate/config.py index 1561a160f..55b421fcd 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -231,7 +231,12 @@ class BirdseyeConfig(BaseModel): enabled: bool = Field(default=True, title="Enable birdseye view.") width: int = Field(default=1280, title="Birdseye width.") height: int = Field(default=720, title="Birdseye height.") - quality: int = Field(default=8, title="Encoding quality.") + quality: int = Field( + default=8, + title="Encoding quality.", + ge=1, + le=31, + ) mode: BirdseyeModeEnum = Field( default=BirdseyeModeEnum.objects, title="Tracking mode." )