mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 17:54:08 -05:00
split go2rtc and frigate
This commit is contained in:
parent
12cf967fc8
commit
3f21fbe164
2 changed files with 79 additions and 0 deletions
|
|
@ -9,5 +9,6 @@
|
|||
./umami.nix
|
||||
./lubelogger.nix
|
||||
./openhab.nix
|
||||
./frigate.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
78
modules/users/overseer/services/frigate.nix
Normal file
78
modules/users/overseer/services/frigate.nix
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
services.go2rtc = {
|
||||
enable = true;
|
||||
settings = {
|
||||
streams = {
|
||||
wce-0001 = [
|
||||
"ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.173:554/ch0"
|
||||
"ffmpeg:wce-0001#audio=opus"
|
||||
];
|
||||
wce-0001_sub = "ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.173:554/ch1";
|
||||
wce-0002 = [
|
||||
"ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.26:554/ch0"
|
||||
"ffmpeg:wce-0002#audio=opus"
|
||||
];
|
||||
wce-0002_sub = "ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.26:554/ch1";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.frigate = {
|
||||
enable = true;
|
||||
hostname = "frigate.wanderingcrow.net";
|
||||
settings = {
|
||||
cameras = {
|
||||
wce-0001 = {
|
||||
ffmpeg = {
|
||||
inputs = [
|
||||
{
|
||||
path = "rtsp://127.0.0.1:8554/wce-0001?timeout=30";
|
||||
input_args = "preset-rtsp-restream-low-latency";
|
||||
roles = ["record"];
|
||||
}
|
||||
{
|
||||
path = "rtsp://127.0.0.1:8554/wce-0001_sub?timeout=30";
|
||||
input_args = "preset-rtsp-restream-low-latency";
|
||||
roles = ["detect" "audio"];
|
||||
}
|
||||
];
|
||||
};
|
||||
motion = {
|
||||
mask = [
|
||||
"0.005,0.006,0.005,0.041,0.195,0.041,0.196,0.008"
|
||||
"0.904,0.007,0.903,0.042,0.994,0.042,0.994,0.006"
|
||||
];
|
||||
};
|
||||
live.stream_name = "wce-0001";
|
||||
};
|
||||
wce-0002 = {
|
||||
ffmpeg = {
|
||||
inputs = [
|
||||
{
|
||||
path = "rtsp://127.0.0.1:8554/wce-0002?timeout=30";
|
||||
input_args = "preset-rtsp-restream-low-latency";
|
||||
roles = ["record"];
|
||||
}
|
||||
{
|
||||
path = "rtsp://127.0.0.1:8554/wce-0002_sub?timeout=30";
|
||||
input_args = "preset-rtsp-restream-low-latency";
|
||||
roles = ["detect" "audio"];
|
||||
}
|
||||
];
|
||||
};
|
||||
motion = {
|
||||
mask = [
|
||||
"0.005,0.006,0.005,0.041,0.195,0.041,0.196,0.008"
|
||||
"0.904,0.007,0.903,0.042,0.994,0.042,0.994,0.006"
|
||||
];
|
||||
};
|
||||
live.stream_name = "wce-0002";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue