From 702176088f0e6e405b1aa308c19a3752691921c7 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Mon, 22 Jul 2024 12:23:33 -0700 Subject: [PATCH] chore(motion): tweak video_params --- nixos/cameras/kitchen.nix | 8 ++++---- nixos/cameras/printer.nix | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/nixos/cameras/kitchen.nix b/nixos/cameras/kitchen.nix index 0d1776a3..5cb6803d 100644 --- a/nixos/cameras/kitchen.nix +++ b/nixos/cameras/kitchen.nix @@ -9,10 +9,10 @@ in { services.motion.cameras.kitchencam.settings = mapDefaults { videodevice = "/dev/kitchencam"; - v4l2_palette = 8; - width = 640; - height = 480; - framerate = 5; + video_params = "auto_brightness=2,palette=8"; # MJPG=8, YUYV=15 + width = 1280; + height = 720; + framerate = 2; camera_id = 1; text_left = "kitchen"; }; diff --git a/nixos/cameras/printer.nix b/nixos/cameras/printer.nix index e09553fa..31ff1e80 100644 --- a/nixos/cameras/printer.nix +++ b/nixos/cameras/printer.nix @@ -9,9 +9,10 @@ in { services.motion.cameras.printercam.settings = mapDefaults { videodevice = "/dev/printercam"; - width = 1280; - height = 720; - framerate = 5; + video_params = "auto_brightness=1,palette=8"; # MJPG=8, YUYV=15 + width = 1920; + height = 1080; + framerate = 2; camera_id = 2; text_left = ""; #text_right = "";