remove audio from panorama

This commit is contained in:
2025-02-16 21:37:44 +02:00
parent d4458896b0
commit 7209f7d854

View File

@@ -37,6 +37,7 @@ in
services.go2rtc = { services.go2rtc = {
enable = true; enable = true;
settings = { settings = {
# https://github.com/AlexxIT/go2rtc/issues/831
#log = { #log = {
# format = "text"; # format = "text";
# level = "trace"; # level = "trace";
@@ -45,26 +46,14 @@ in
"vno4-dome-panorama-high" = [ "vno4-dome-panorama-high" = [
"ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=2" "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" = [ "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" = [ "vno4-dome-ptz-high" = [
"ffmpeg:rtsp://frigate:\${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=2&subtype=0" "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" = [ "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 = { ffmpeg = {
hwaccel_args = "preset-vaapi"; hwaccel_args = "preset-vaapi";
output_args = { output_args = {
record = "preset-record-generic-audio-copy"; record = "preset-record-generic";
}; };
inputs = [ inputs = [
{ {
path = "rtsp://localhost:8554/vno4-dome-panorama-high"; path = "rtsp://localhost:8554/vno4-dome-panorama-high";
roles = [ roles = [ "record" ];
"audio"
"record"
];
} }
{ {
#path = "rtsp://localhost:8554/vno4-dome-panorama-med"; #path = "rtsp://localhost:8554/vno4-dome-panorama-med";
@@ -126,8 +112,8 @@ in
{ {
path = "rtsp://localhost:8554/vno4-dome-ptz-high"; path = "rtsp://localhost:8554/vno4-dome-ptz-high";
roles = [ roles = [
"audio"
"record" "record"
"audio"
]; ];
} }
{ {