Skip to content

NVR with realtime local object detection for IP cameras

Add warning for recommending users to use better sub streams (#20482)

Nicolas Mowena96a617fc977
diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.json
index cc6f5b22b5..16290ea800 100644
--- a/web/public/locales/en/views/settings.json
+++ b/web/public/locales/en/views/settings.json
@@ -275,7 +275,13 @@
"noAudioWarning": "No audio detected for this stream, recordings will not have audio.",
"audioCodecRecordError": "The AAC audio codec is required to support audio in recordings.",
"audioCodecRequired": "An audio stream is required to support audio detection.",
- "restreamingWarning": "Reducing connections to the camera for the record stream may increase CPU usage slightly."
+ "restreamingWarning": "Reducing connections to the camera for the record stream may increase CPU usage slightly.",
+ "dahua": {
+ "substreamWarning": "Substream 1 is locked to a low resolution. Many Dahua / Amcrest / EmpireTech cameras support additional substreams that need to be enabled in the camera's settings. It is recommended to check and utilize those streams if available."
+ },
+ "hikvision": {
+ "substreamWarning": "Substream 1 is locked to a low resolution. Many Hikvision cameras support additional substreams that need to be enabled in the camera's settings. It is recommended to check and utilize those streams if available."
+ }
}
}
},
diff --git a/web/src/components/settings/wizard/Step3Validation.tsx b/web/src/components/settings/wizard/Step3Validation.tsx
index 130305342e..9a8737f4b2 100644
--- a/web/src/components/settings/wizard/Step3Validation.tsx
+++ b/web/src/components/settings/wizard/Step3Validation.tsx
@@ -500,6 +500,28 @@ function StreamIssues({
}
}
+ // Substream Check
+ if (
+ wizardData.brandTemplate == "dahua" &&
+ stream.roles.includes("detect") &&
+ stream.url.includes("subtype=1")
+ ) {
+ result.push({
+ type: "warning",
+ message: t("cameraWizard.step3.issues.dahua.substreamWarning"),
+ });
+ }
+ if (
+ wizardData.brandTemplate == "hikvision" &&
+ stream.roles.includes("detect") &&
+ stream.url.includes("/102")
+ ) {
+ result.push({
+ type: "warning",
+ message: t("cameraWizard.step3.issues.hikvision.substreamWarning"),
+ });
+ }
+
return result;
}, [stream, wizardData, t]);