flush configurable

This commit is contained in:
2026-04-03 12:05:29 -03:00
parent 074925c360
commit ade92069c0
3 changed files with 13 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ from cht.config import (
STREAM_PORT,
RELAY_PORT,
SCENE_THRESHOLD,
SCENE_FLUSH_FRAMES,
SESSIONS_DIR,
AUDIO_EXTRACT_INTERVAL,
AUDIO_SAFETY_MARGIN,
@@ -197,6 +198,7 @@ class StreamManager:
node = ff.receive_record_relay_and_detect(
self.stream_url, self.recording_path, self.relay_url,
scene_threshold=self.scene_threshold,
flush_frames=SCENE_FLUSH_FRAMES,
)
proc = ff.run_async(node, pipe_stdout=True, pipe_stderr=True)
self._procs["recorder"] = proc