init commit

This commit is contained in:
2026-04-01 13:53:09 -03:00
commit 453601c072
22 changed files with 1525 additions and 0 deletions

19
cht/config.py Normal file
View File

@@ -0,0 +1,19 @@
from pathlib import Path
APP_ID = "com.cht.StreamAgent"
APP_NAME = "CHT"
# Default session data location
DATA_DIR = Path.home() / ".local" / "share" / "cht"
SESSIONS_DIR = DATA_DIR / "sessions"
# Stream defaults
STREAM_HOST = "0.0.0.0"
STREAM_PORT = 4444
# Frame extraction
SCENE_THRESHOLD = 0.3 # 0-1, lower = more sensitive
MAX_FRAME_INTERVAL = 30 # seconds, fallback if no scene change
# Segment recording
SEGMENT_DURATION = 60 # seconds per .ts segment