74 lines
1.8 KiB
Nix
74 lines
1.8 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
networking.firewall.allowedTCPPorts = [80 5000 8554 8555];
|
|
|
|
#services.go2rtc = {
|
|
# enable = true;
|
|
# settings = {
|
|
# streams = {
|
|
# burgi_cam = [
|
|
# "rtsp://admin:XpkFk5Df912VWSwM@10.0.42.60:554/Streaming/Channels/101/?transportmode=unicast"
|
|
# "ffmpeg:burgi_cam_sub#audio=opus"
|
|
# ];
|
|
# burgi_cam_sub = [
|
|
# "rtsp://admin:XpkFk5Df912VWSwM@10.0.42.60:554/Streaming/Channels/102/?transportmode=unicast"
|
|
# ];
|
|
# };
|
|
# webrtc = {
|
|
# candidates = [ "192.168.42.11:8555" ];
|
|
# };
|
|
# };
|
|
#};
|
|
|
|
services.frigate = {
|
|
enable = true;
|
|
hostname = "frigate";
|
|
settings = {
|
|
cameras.burgi = {
|
|
ffmpeg = {
|
|
inputs = [
|
|
{
|
|
path = "rtsp://admin:XpkFk5Df912VWSwM@10.0.42.60:554/Streaming/Channels/101/?transportmode=unicast";
|
|
#path = "rtsp://127.0.0.1:8554/burgi_cam";
|
|
#input_args = "preset-rtsp-restream";
|
|
roles = [
|
|
"record"
|
|
"rtmp"
|
|
];
|
|
}
|
|
{
|
|
path = "rtsp://admin:XpkFk5Df912VWSwM@10.0.42.60:554/Streaming/Channels/102/?transportmode=unicast";
|
|
#path = "rtsp://127.0.0.1:8554/burgi_cam_sub";
|
|
#input_args = "preset-rtsp-restream";
|
|
roles = [
|
|
"detect"
|
|
];
|
|
}
|
|
];
|
|
};
|
|
detect = {
|
|
width = 1280;
|
|
height = 720;
|
|
fps = 5;
|
|
};
|
|
};
|
|
objects.track = [ "person" "dog" ];
|
|
|
|
mqtt = {
|
|
enabled = true;
|
|
host = "127.0.0.1";
|
|
user = "frigate";
|
|
password = "rDAnboXJhW8K2OJlPI5KpZhggPJusA==";
|
|
};
|
|
|
|
rtmp.enabled = true;
|
|
|
|
#detectors.coral = {
|
|
# type = "edgetpu";
|
|
# device = "usb";
|
|
#};
|
|
};
|
|
};
|
|
}
|