Multicam (b) yaml

This commit is contained in:
chk
2026-06-06 08:17:43 +02:00
parent 7baec1ab37
commit 81bebc0158
2 changed files with 15 additions and 9 deletions

View File

@@ -34,11 +34,15 @@ for (const cam of camsConfig) {
if (!cam.id || !cam.device) {
console.error(`cameras.json: Eintrag ohne id/device: ${JSON.stringify(cam)}`); process.exit(1);
}
// Per-Kamera-Felder in cameras.json überschreiben die globalen Env-Werte
switches[cam.id] = new CameraSwitch({
id: cam.id, device: cam.device,
liveSize: LIVE_SIZE, liveFps: LIVE_FPS,
hiresSize: HIRES_SIZE, hiresFps: HIRES_FPS,
encode: ENCODE_MODE, onDemand: ON_DEMAND, idleGraceMs: IDLE_GRACE_MS,
liveSize: cam.liveSize ?? LIVE_SIZE,
liveFps: cam.liveFps ?? LIVE_FPS,
hiresSize: cam.hiresSize ?? HIRES_SIZE,
hiresFps: cam.hiresFps ?? HIRES_FPS,
encode: cam.encode ?? ENCODE_MODE,
onDemand: ON_DEMAND, idleGraceMs: IDLE_GRACE_MS,
});
camsMeta.push({
id: cam.id,