Allow for a default birdseye view

This commit is contained in:
niten 2023-11-29 16:09:19 -08:00
parent 483653ff36
commit 91032aa4fc
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,7 @@ let
ffmpeg.hwaccel_args = optional (cfg.hwaccel != null) cfg.hwaccel; ffmpeg.hwaccel_args = optional (cfg.hwaccel != null) cfg.hwaccel;
cameras = mapAttrs' (_: camOpts: cameras = mapAttrs' (_: camOpts:
nameValuePair camOpts.name { nameValuePair camOpts.name {
birdseye.mode = "objects"; birdseye.mode = if camOpts.default then "continuous" else "objects";
ffmpeg.inputs = [ ffmpeg.inputs = [
{ {
path = camOpts.streams.high; path = camOpts.streams.high;
@ -160,6 +160,8 @@ in {
default = name; default = name;
}; };
default = mkEnableOption "Make camera the primary birds-eye view.";
streams = { streams = {
low = mkOption { low = mkOption {
type = str; type = str;