mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 21:44:13 +03:00
Add warning for recommending users to use better sub streams (#20482)
This commit is contained in:
parent
1a1ec8cf91
commit
a96a617fc9
@ -275,7 +275,13 @@
|
|||||||
"noAudioWarning": "No audio detected for this stream, recordings will not have audio.",
|
"noAudioWarning": "No audio detected for this stream, recordings will not have audio.",
|
||||||
"audioCodecRecordError": "The AAC audio codec is required to support audio in recordings.",
|
"audioCodecRecordError": "The AAC audio codec is required to support audio in recordings.",
|
||||||
"audioCodecRequired": "An audio stream is required to support audio detection.",
|
"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."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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;
|
return result;
|
||||||
}, [stream, wizardData, t]);
|
}, [stream, wizardData, t]);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user