From f8e0248c5b8e1a112507c7bdcb5a6d508a627cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 13 Feb 2025 21:38:54 +0200 Subject: [PATCH] trying go2rtc --- modules/services/frigate/default.nix | 30 ++++++++++++++++------------ 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/modules/services/frigate/default.nix b/modules/services/frigate/default.nix index 15a30c7..041b358 100644 --- a/modules/services/frigate/default.nix +++ b/modules/services/frigate/default.nix @@ -38,15 +38,15 @@ in enable = true; settings = { streams = { - "vno4-dome-panorama-high" = [ - "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=0" - ]; - "vno4-dome-panorama-low" = [ - "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=1" - ]; - "vno4-dome-ptz-high" = [ - "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=2&subtype=0" - ]; + #"vno4-dome-panorama-high" = [ + # "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=0" + #]; + #"vno4-dome-panorama-low" = [ + # "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=1" + #]; + #"vno4-dome-ptz-high" = [ + # "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=2&subtype=0" + #]; "vno4-dome-ptz-low" = [ "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=2&subtype=1" ]; @@ -86,14 +86,16 @@ in }; inputs = [ { - path = "rtsp://localhost:8554/vno4-dome-panorama-high"; + #path = "rtsp://localhost:8554/vno4-dome-panorama-high"; + path = "rtsp://frigate:{FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=0"; roles = [ "audio" "record" ]; } { - path = "rtsp://localhost:8554/vno4-dome-panorama-low"; + #path = "rtsp://localhost:8554/vno4-dome-panorama-low"; + path = "rtsp://frigate:{FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=1"; roles = [ "detect" ]; } ]; @@ -107,14 +109,16 @@ in }; inputs = [ { - path = "rtsp://localhost:8554/vno4-dome-ptz-high"; + #path = "rtsp://localhost:8554/vno4-dome-ptz-high"; + path = "rtsp://frigate:{FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=2&subtype=0"; roles = [ "audio" "record" ]; } { - path = "rtsp://localhost:8554/vno4-dome-ptz-low"; + path = "rtsp://frigate:{FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=2&subtype=1"; + #path = "rtsp://localhost:8554/vno4-dome-ptz-low"; roles = [ "detect" ]; } ];