From 7209f7d854a6f1e22d56ff0e467a178485711802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 16 Feb 2025 21:37:44 +0200 Subject: [PATCH] remove audio from panorama --- modules/services/frigate/default.nix | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/modules/services/frigate/default.nix b/modules/services/frigate/default.nix index 36c75ae..207a98f 100644 --- a/modules/services/frigate/default.nix +++ b/modules/services/frigate/default.nix @@ -37,6 +37,7 @@ in services.go2rtc = { enable = true; settings = { + # https://github.com/AlexxIT/go2rtc/issues/831 #log = { # format = "text"; # level = "trace"; @@ -45,26 +46,14 @@ in "vno4-dome-panorama-high" = [ "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=2" ]; - "vno4-dome-panorama-med" = [ - "ffmpeg:rtsp://localhost:8554/vno4-dome-panorama-high#video=h264#width=1280#hardware=vaapi" - ]; "vno4-dome-panorama-low" = [ - "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=1" + "ffmpeg:rtsp://localhost:8554/vno4-dome-panorama-high#video=h264#width=1280#hardware=vaapi" ]; "vno4-dome-ptz-high" = [ "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=2&subtype=0" ]; - "vno4-dome-ptz-med" = [ - "ffmpeg:rtsp://localhost:8554/vno4-dome-ptz-high" - "hwaccel=vaapi" - "hwaccel_device=/dev/dri/renderD128" - "decoder=h264_vaapi" - "encoder=h264_vaapi" - "resolution=1280x720" - "preset=fast" - ]; "vno4-dome-ptz-low" = [ - "ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=2&subtype=1" + "ffmpeg:rtsp://localhost:8554/vno4-dome-ptz-high#video=h264#width=1280#hardware=vaapi" ]; }; }; @@ -98,15 +87,12 @@ in ffmpeg = { hwaccel_args = "preset-vaapi"; output_args = { - record = "preset-record-generic-audio-copy"; + record = "preset-record-generic"; }; inputs = [ { path = "rtsp://localhost:8554/vno4-dome-panorama-high"; - roles = [ - "audio" - "record" - ]; + roles = [ "record" ]; } { #path = "rtsp://localhost:8554/vno4-dome-panorama-med"; @@ -126,8 +112,8 @@ in { path = "rtsp://localhost:8554/vno4-dome-ptz-high"; roles = [ - "audio" "record" + "audio" ]; } {