Require setting process priority for FrigateProcess (#19207)

This commit is contained in:
Nicolas Mowen
2025-08-16 10:20:33 -05:00
committed by Blake Blackshear
parent d071325ca7
commit 20104761e8
11 changed files with 63 additions and 12 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ from frigate.const import (
EXPORT_DIR,
MAX_PLAYLIST_SECONDS,
PREVIEW_FRAME_TYPE,
PROCESS_PRIORITY_LOW,
)
from frigate.ffmpeg_presets import (
EncodeTypeEnum,
@@ -36,7 +37,7 @@ TIMELAPSE_DATA_INPUT_ARGS = "-an -skip_frame nokey"
def lower_priority():
os.nice(10)
os.nice(PROCESS_PRIORITY_LOW)
class PlaybackFactorEnum(str, Enum):