mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
audio
This commit is contained in:
parent
9ff0b408a4
commit
a383cfc95f
1 changed files with 8 additions and 16 deletions
|
|
@ -73,37 +73,29 @@ in
|
|||
};
|
||||
living_room = {
|
||||
enabled = true;
|
||||
detect = {
|
||||
detect.enabled = false; # No motion detection for indoor
|
||||
audio = {
|
||||
enabled = true;
|
||||
width = 640;
|
||||
height = 480;
|
||||
listen = [ "bark" "fire_alarm" "scream" "speech" "yell" ];
|
||||
};
|
||||
ffmpeg.inputs = [
|
||||
{
|
||||
path = "rtsp://127.0.0.1:8554/living_room";
|
||||
roles = [ "record" ];
|
||||
}
|
||||
{
|
||||
path = "rtsp://127.0.0.1:8554/living_room_sub";
|
||||
roles = [ "detect" ];
|
||||
roles = [ "record" "audio" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
kitchen = {
|
||||
enabled = true;
|
||||
detect = {
|
||||
detect.enabled = false; # No motion detection for indoor
|
||||
audio = {
|
||||
enabled = true;
|
||||
width = 640;
|
||||
height = 480;
|
||||
listen = [ "bark" "fire_alarm" "scream" "speech" "yell" ];
|
||||
};
|
||||
ffmpeg.inputs = [
|
||||
{
|
||||
path = "rtsp://127.0.0.1:8554/kitchen";
|
||||
roles = [ "record" ];
|
||||
}
|
||||
{
|
||||
path = "rtsp://127.0.0.1:8554/kitchen_sub";
|
||||
roles = [ "detect" ];
|
||||
roles = [ "record" "audio" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue