mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-01 20:36:51 +03:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5826df806 | ||
|
|
c160a0dfeb | ||
|
|
4c11de87b0 | ||
|
|
fab48ce4a2 | ||
|
|
50dc7bb6ba |
@@ -981,7 +981,9 @@ cameras:
|
|||||||
# Optional: Adjust sort order of cameras in the UI. Larger numbers come later (default: shown below)
|
# Optional: Adjust sort order of cameras in the UI. Larger numbers come later (default: shown below)
|
||||||
# By default the cameras are sorted alphabetically.
|
# By default the cameras are sorted alphabetically.
|
||||||
order: 0
|
order: 0
|
||||||
# Optional: Whether or not to show the camera in the Frigate UI (default: shown below)
|
# Optional: Whether or not to show the camera on the default All Cameras live dashboard.
|
||||||
|
# The camera is still available everywhere else, including camera groups and settings
|
||||||
|
# (default: shown below)
|
||||||
dashboard: True
|
dashboard: True
|
||||||
# Optional: Whether this camera is visible in review (the review page and its camera
|
# Optional: Whether this camera is visible in review (the review page and its camera
|
||||||
# filter, motion review, and the history view) (default: shown below)
|
# filter, motion review, and the history view) (default: shown below)
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ When your browser runs into problems playing back your camera streams, it will l
|
|||||||
|
|
||||||
- **stalled**
|
- **stalled**
|
||||||
- What it means: Playback has stalled because the player has fallen too far behind live (extended buffering or no data arriving).
|
- What it means: Playback has stalled because the player has fallen too far behind live (extended buffering or no data arriving).
|
||||||
- What to try: This is usually indicative of the browser struggling to decode too many high-resolution streams at once. Try selecting a lower-bandwidth stream (substream), reduce the number of live streams open, improve the network connection, or lower the camera resolution. Also check your camera's keyframe (I-frame) interval: shorter intervals make playback start and recover faster. You can also try increasing the timeout value in the UI pane of Frigate's settings.
|
- What to try: This is usually indicative of the browser struggling to decode too many high-resolution streams at once. Try selecting a lower-bandwidth stream (substream), reduce the number of live streams open, improve the network connection, or lower the camera resolution. Also check your camera's keyframe (I-frame) interval: shorter intervals make playback start and recover faster. You can also try increasing the timeout value in <NavPath path="Settings > UI" /> .
|
||||||
|
|
||||||
- Possible console messages from the player code:
|
- Possible console messages from the player code:
|
||||||
- `Buffer time (10 seconds) exceeded, browser may not be playing media correctly.`
|
- `Buffer time (10 seconds) exceeded, browser may not be playing media correctly.`
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ The per-clip variation is typically quite low and is mostly an artifact of keyfr
|
|||||||
|
|
||||||
Debug Replay lets you re-run Frigate's detection pipeline against a section of recorded video without manually configuring a dummy camera. It automatically extracts the recording, creates a temporary camera with the same detection settings as the original, and loops the clip through the pipeline so you can observe detections in real time.
|
Debug Replay lets you re-run Frigate's detection pipeline against a section of recorded video without manually configuring a dummy camera. It automatically extracts the recording, creates a temporary camera with the same detection settings as the original, and loops the clip through the pipeline so you can observe detections in real time.
|
||||||
|
|
||||||
The replay camera behaves like a live camera feed rather than History's video player: it loops the clip continuously as Frigate analyzes it and has no playback controls, so you cannot pause, scrub, or step through it frame by frame.
|
The replay camera behaves like a live camera feed rather than History's video player: it loops the clip continuously as Frigate analyzes it and has no playback controls, so you cannot pause, scrub, or step through it frame by frame. The Debug Replay camera does not save recordings or snapshots or surface anything in Explore, but it otherwise behaves like a regular camera, including running enrichments such as Face Recognition, LPR, and custom classification.
|
||||||
|
|
||||||
Debug Replay isn't intended to be a one-stop pane for all Frigate diagnostics or a comprehensive debugging environment for every Frigate feature. It merely makes it easier to spin up a "dummy camera" and perform some common adjustments in real time. You'll still need to use the normal tools (logs, an MQTT client, etc) to debug your feature.
|
Debug Replay isn't intended to be a one-stop pane for all Frigate diagnostics or a comprehensive debugging environment for every Frigate feature. It merely makes it easier to spin up a "dummy camera" and perform some common adjustments in real time. You'll still need to use the normal tools (logs, an MQTT client, etc) to debug your feature.
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ class CameraUiConfig(FrigateBaseModel):
|
|||||||
)
|
)
|
||||||
dashboard: bool = Field(
|
dashboard: bool = Field(
|
||||||
default=True,
|
default=True,
|
||||||
title="Show in UI",
|
title="Show on Live dashboard",
|
||||||
description="Toggle whether this camera is visible everywhere in the Frigate UI. Disabling this will require manually editing the config to view this camera in the UI again.",
|
description="Toggle whether this camera is visible on the default All Cameras live dashboard. The camera remains available everywhere else in the UI, including camera groups and settings.",
|
||||||
)
|
)
|
||||||
review: bool = Field(
|
review: bool = Field(
|
||||||
default=True,
|
default=True,
|
||||||
|
|||||||
@@ -859,8 +859,8 @@
|
|||||||
"description": "Numeric order used to sort the camera in the UI (default dashboard and lists); larger numbers appear later."
|
"description": "Numeric order used to sort the camera in the UI (default dashboard and lists); larger numbers appear later."
|
||||||
},
|
},
|
||||||
"dashboard": {
|
"dashboard": {
|
||||||
"label": "Show in UI",
|
"label": "Show on Live dashboard",
|
||||||
"description": "Toggle whether this camera is visible everywhere in the Frigate UI. Disabling this will require manually editing the config to view this camera in the UI again."
|
"description": "Toggle whether this camera is visible on the default All Cameras live dashboard. The camera remains available everywhere else in the UI, including camera groups and settings."
|
||||||
},
|
},
|
||||||
"review": {
|
"review": {
|
||||||
"label": "Show in review",
|
"label": "Show in review",
|
||||||
|
|||||||
@@ -1543,8 +1543,8 @@
|
|||||||
"description": "Numeric order used to sort the camera in the UI (default dashboard and lists); larger numbers appear later."
|
"description": "Numeric order used to sort the camera in the UI (default dashboard and lists); larger numbers appear later."
|
||||||
},
|
},
|
||||||
"dashboard": {
|
"dashboard": {
|
||||||
"label": "Show in UI",
|
"label": "Show on Live dashboard",
|
||||||
"description": "Toggle whether this camera is visible everywhere in the Frigate UI. Disabling this will require manually editing the config to view this camera in the UI again."
|
"description": "Toggle whether this camera is visible on the default All Cameras live dashboard. The camera remains available everywhere else in the UI, including camera groups and settings."
|
||||||
},
|
},
|
||||||
"review": {
|
"review": {
|
||||||
"label": "Show in review",
|
"label": "Show in review",
|
||||||
|
|||||||
@@ -499,7 +499,7 @@
|
|||||||
"webuiUrlHelp": "URL to visit the camera's web UI directly from the Debug view. Leave blank to disable the link.",
|
"webuiUrlHelp": "URL to visit the camera's web UI directly from the Debug view. Leave blank to disable the link.",
|
||||||
"webuiUrlInvalid": "Must be a valid URL (e.g., https://example.com).",
|
"webuiUrlInvalid": "Must be a valid URL (e.g., https://example.com).",
|
||||||
"dashboardLabel": "Show on Live dashboard",
|
"dashboardLabel": "Show on Live dashboard",
|
||||||
"dashboardHelp": "Show this camera on the Live dashboard.",
|
"dashboardHelp": "Show this camera on the default All Cameras live dashboard. It remains available everywhere else, including camera groups.",
|
||||||
"reviewLabel": "Show in Review",
|
"reviewLabel": "Show in Review",
|
||||||
"reviewHelp": "Show this camera in Review, including the camera filter, motion review, and the history view."
|
"reviewHelp": "Show this camera in Review, including the camera filter, motion review, and the history view."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ export default function ZoneEditPane({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return Object.values(config.cameras)
|
return Object.values(config.cameras)
|
||||||
.filter((conf) => conf.ui.dashboard && conf.enabled_in_config)
|
.filter((conf) => conf.enabled_in_config)
|
||||||
.sort((aConf, bConf) => aConf.ui.order - bConf.ui.order);
|
.sort((aConf, bConf) => aConf.ui.order - bConf.ui.order);
|
||||||
}, [config]);
|
}, [config]);
|
||||||
|
|
||||||
|
|||||||
+42
-23
@@ -198,6 +198,19 @@ export default function Events() {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const reviewCamerasParam = useMemo(() => {
|
||||||
|
const selected: string | undefined = reviewSearchParams["cameras"];
|
||||||
|
|
||||||
|
if (!selected) {
|
||||||
|
return reviewCameras.join(",");
|
||||||
|
}
|
||||||
|
|
||||||
|
const selectedCameras = new Set(selected.split(","));
|
||||||
|
return reviewCameras
|
||||||
|
.filter((camera) => selectedCameras.has(camera))
|
||||||
|
.join(",");
|
||||||
|
}, [reviewCameras, reviewSearchParams]);
|
||||||
|
|
||||||
useSearchEffect("labels", (labels: string) => {
|
useSearchEffect("labels", (labels: string) => {
|
||||||
setReviewFilter({
|
setReviewFilter({
|
||||||
...reviewFilter,
|
...reviewFilter,
|
||||||
@@ -330,8 +343,12 @@ export default function Events() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const getKey = useCallback(() => {
|
const getKey = useCallback(() => {
|
||||||
|
if (!timezone) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
cameras: reviewSearchParams["cameras"],
|
cameras: reviewCamerasParam,
|
||||||
labels: reviewSearchParams["labels"],
|
labels: reviewSearchParams["labels"],
|
||||||
zones: reviewSearchParams["zones"],
|
zones: reviewSearchParams["zones"],
|
||||||
reviewed: null, // We want both reviewed and unreviewed items as we filter in the UI
|
reviewed: null, // We want both reviewed and unreviewed items as we filter in the UI
|
||||||
@@ -339,7 +356,7 @@ export default function Events() {
|
|||||||
after: reviewSearchParams["after"] || last24Hours.after,
|
after: reviewSearchParams["after"] || last24Hours.after,
|
||||||
};
|
};
|
||||||
return ["review", params];
|
return ["review", params];
|
||||||
}, [reviewSearchParams, last24Hours]);
|
}, [reviewSearchParams, reviewCamerasParam, last24Hours, timezone]);
|
||||||
|
|
||||||
const { data: reviews, mutate: updateSegments } = useSWR<ReviewSegment[]>(
|
const { data: reviews, mutate: updateSegments } = useSWR<ReviewSegment[]>(
|
||||||
getKey,
|
getKey,
|
||||||
@@ -361,10 +378,6 @@ export default function Events() {
|
|||||||
const motion: ReviewSegment[] = [];
|
const motion: ReviewSegment[] = [];
|
||||||
|
|
||||||
reviews?.forEach((segment) => {
|
reviews?.forEach((segment) => {
|
||||||
if (config?.cameras[segment.camera]?.ui?.review === false) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
all.push(segment);
|
all.push(segment);
|
||||||
|
|
||||||
switch (segment.severity) {
|
switch (segment.severity) {
|
||||||
@@ -386,7 +399,7 @@ export default function Events() {
|
|||||||
detection: detections,
|
detection: detections,
|
||||||
significant_motion: motion,
|
significant_motion: motion,
|
||||||
};
|
};
|
||||||
}, [reviews, config?.cameras]);
|
}, [reviews]);
|
||||||
|
|
||||||
// update review items in place when a review segment ends
|
// update review items in place when a review segment ends
|
||||||
const reviewUpdate = useFrigateReviews();
|
const reviewUpdate = useFrigateReviews();
|
||||||
@@ -450,15 +463,17 @@ export default function Events() {
|
|||||||
// review summary
|
// review summary
|
||||||
|
|
||||||
const { data: reviewSummary, mutate: updateSummary } = useSWR<ReviewSummary>(
|
const { data: reviewSummary, mutate: updateSummary } = useSWR<ReviewSummary>(
|
||||||
[
|
timezone
|
||||||
"review/summary",
|
? [
|
||||||
{
|
"review/summary",
|
||||||
timezone: timezone,
|
{
|
||||||
cameras: reviewSearchParams["cameras"] ?? null,
|
timezone: timezone,
|
||||||
labels: reviewSearchParams["labels"] ?? null,
|
cameras: reviewCamerasParam,
|
||||||
zones: reviewSearchParams["zones"] ?? null,
|
labels: reviewSearchParams["labels"] ?? null,
|
||||||
},
|
zones: reviewSearchParams["zones"] ?? null,
|
||||||
],
|
},
|
||||||
|
]
|
||||||
|
: null,
|
||||||
{
|
{
|
||||||
revalidateOnFocus: true,
|
revalidateOnFocus: true,
|
||||||
refreshInterval: 30000,
|
refreshInterval: 30000,
|
||||||
@@ -473,13 +488,17 @@ export default function Events() {
|
|||||||
|
|
||||||
// recordings summary
|
// recordings summary
|
||||||
|
|
||||||
const { data: recordingsSummary } = useSWR<RecordingsSummary>([
|
const { data: recordingsSummary } = useSWR<RecordingsSummary>(
|
||||||
"recordings/summary",
|
timezone
|
||||||
{
|
? [
|
||||||
timezone: timezone,
|
"recordings/summary",
|
||||||
cameras: reviewSearchParams["cameras"] ?? null,
|
{
|
||||||
},
|
timezone: timezone,
|
||||||
]);
|
cameras: reviewCamerasParam,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: null,
|
||||||
|
);
|
||||||
|
|
||||||
// preview videos
|
// preview videos
|
||||||
const previewTimes = useMemo(() => {
|
const previewTimes = useMemo(() => {
|
||||||
|
|||||||
@@ -706,12 +706,7 @@ export default function Settings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return Object.values(config.cameras)
|
return Object.values(config.cameras)
|
||||||
.filter(
|
.filter((conf) => conf.enabled_in_config && !isReplayCamera(conf.name))
|
||||||
(conf) =>
|
|
||||||
conf.ui.dashboard &&
|
|
||||||
conf.enabled_in_config &&
|
|
||||||
!isReplayCamera(conf.name),
|
|
||||||
)
|
|
||||||
.sort((aConf, bConf) => aConf.ui.order - bConf.ui.order);
|
.sort((aConf, bConf) => aConf.ui.order - bConf.ui.order);
|
||||||
}, [config]);
|
}, [config]);
|
||||||
|
|
||||||
|
|||||||
@@ -1024,6 +1024,9 @@ function MotionReview({
|
|||||||
if (!allowedCameras.includes(cam.name)) {
|
if (!allowedCameras.includes(cam.name)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (cam.ui?.review === false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (selectedCams && !selectedCams.includes(cam.name)) {
|
if (selectedCams && !selectedCams.includes(cam.name)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1033,6 +1036,11 @@ function MotionReview({
|
|||||||
return cameras.sort((a, b) => a.ui.order - b.ui.order);
|
return cameras.sort((a, b) => a.ui.order - b.ui.order);
|
||||||
}, [config, filter, allowedCameras]);
|
}, [config, filter, allowedCameras]);
|
||||||
|
|
||||||
|
const reviewCamerasParam = useMemo(
|
||||||
|
() => reviewCameras.map((cam) => cam.name).join(","),
|
||||||
|
[reviewCameras],
|
||||||
|
);
|
||||||
|
|
||||||
const videoPlayersRef = useRef<{ [camera: string]: PreviewController }>({});
|
const videoPlayersRef = useRef<{ [camera: string]: PreviewController }>({});
|
||||||
|
|
||||||
// motion data
|
// motion data
|
||||||
@@ -1052,7 +1060,7 @@ function MotionReview({
|
|||||||
before: alignedBefore,
|
before: alignedBefore,
|
||||||
after: alignedAfter,
|
after: alignedAfter,
|
||||||
scale: segmentDuration / 2,
|
scale: segmentDuration / 2,
|
||||||
cameras: filter?.cameras?.join(",") ?? null,
|
cameras: reviewCamerasParam,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -1061,7 +1069,7 @@ function MotionReview({
|
|||||||
{
|
{
|
||||||
before: alignedBefore,
|
before: alignedBefore,
|
||||||
after: alignedAfter,
|
after: alignedAfter,
|
||||||
cameras: filter?.cameras?.join(",") ?? null,
|
cameras: reviewCamerasParam,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -540,6 +540,36 @@ export default function GeneralMetrics({
|
|||||||
return Object.keys(series).length > 0 ? Object.values(series) : undefined;
|
return Object.keys(series).length > 0 ? Object.values(series) : undefined;
|
||||||
}, [statsHistory]);
|
}, [statsHistory]);
|
||||||
|
|
||||||
|
// Number of cards the hardware grid renders. Which ones appear depends on
|
||||||
|
// the vendor, so the column count follows the count rather than assuming a
|
||||||
|
// fixed set is present.
|
||||||
|
const hardwareCardCount = useMemo(() => {
|
||||||
|
if (!statsHistory[0]?.gpu_usages) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
const hasNpu = statsHistory[0].npu_usages != undefined;
|
||||||
|
|
||||||
|
return (
|
||||||
|
1 + // gpu usage always renders alongside gpu_usages
|
||||||
|
(gpuMemSeries ? 1 : 0) +
|
||||||
|
(gpuEncSeries?.length ? 1 : 0) +
|
||||||
|
(gpuComputeSeries?.length ? 1 : 0) +
|
||||||
|
(gpuDecSeries?.length ? 1 : 0) +
|
||||||
|
(gpuTempSeries?.length ? 1 : 0) +
|
||||||
|
(hasNpu ? 1 : 0) +
|
||||||
|
(hasNpu && npuTempSeries?.length ? 1 : 0)
|
||||||
|
);
|
||||||
|
}, [
|
||||||
|
statsHistory,
|
||||||
|
gpuMemSeries,
|
||||||
|
gpuEncSeries,
|
||||||
|
gpuComputeSeries,
|
||||||
|
gpuDecSeries,
|
||||||
|
gpuTempSeries,
|
||||||
|
npuTempSeries,
|
||||||
|
]);
|
||||||
|
|
||||||
// other processes stats
|
// other processes stats
|
||||||
|
|
||||||
const hardwareType = useMemo(() => {
|
const hardwareType = useMemo(() => {
|
||||||
@@ -763,12 +793,9 @@ export default function GeneralMetrics({
|
|||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2",
|
"mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2",
|
||||||
gpuTempSeries?.length && "md:grid-cols-3",
|
hardwareCardCount >= 3 && "lg:grid-cols-3",
|
||||||
(gpuEncSeries?.length || gpuComputeSeries?.length) &&
|
hardwareCardCount >= 4 && "xl:grid-cols-4",
|
||||||
"xl:grid-cols-4",
|
hardwareCardCount >= 5 && "3xl:grid-cols-5",
|
||||||
(gpuEncSeries?.length || gpuComputeSeries?.length) &&
|
|
||||||
gpuTempSeries?.length &&
|
|
||||||
"3xl:grid-cols-5",
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{statsHistory[0]?.gpu_usages && (
|
{statsHistory[0]?.gpu_usages && (
|
||||||
|
|||||||
Reference in New Issue
Block a user