From eff481e9bd4cd21bbfba516c505bd439e7e78854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 14 Feb 2025 16:30:38 +0200 Subject: [PATCH] ptz detect: from downscaled go2rtc --- modules/services/frigate/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/services/frigate/default.nix b/modules/services/frigate/default.nix index f17a1cd..eda8b29 100644 --- a/modules/services/frigate/default.nix +++ b/modules/services/frigate/default.nix @@ -41,6 +41,15 @@ in "vno4-dome-panorama-high" = [ "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=0" ]; + "vno4-dome-panorama-med" = [ + "ffmpeg:rtsp://localhost:8554/vno4-dome-panorama-high" + "hwaccel=vaapi" + "hwaccel_device=/dev/dri/renderD128" + "decoder=h264_vaapi" + "encoder=h264_vaapi" + "resolution=1280x720" + "preset=fast" + ]; "vno4-dome-panorama-low" = [ "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=1" ]; @@ -124,8 +133,7 @@ in ]; } { - #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-med"; roles = [ "detect" ]; } ];