mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Set export sub process to be lower priority (#7862)
This commit is contained in:
parent
8728139ae3
commit
3797340efa
@ -17,6 +17,10 @@ from frigate.ffmpeg_presets import (
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
def lower_priority():
|
||||||
|
os.nice(10)
|
||||||
|
|
||||||
|
|
||||||
class PlaybackFactorEnum(str, Enum):
|
class PlaybackFactorEnum(str, Enum):
|
||||||
realtime = "realtime"
|
realtime = "realtime"
|
||||||
timelapse_25x = "timelapse_25x"
|
timelapse_25x = "timelapse_25x"
|
||||||
@ -86,6 +90,7 @@ class RecordingExporter(threading.Thread):
|
|||||||
ffmpeg_cmd,
|
ffmpeg_cmd,
|
||||||
input="\n".join(playlist_lines),
|
input="\n".join(playlist_lines),
|
||||||
encoding="ascii",
|
encoding="ascii",
|
||||||
|
preexec_fn=lower_priority,
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user