Skip to content

Commit 9b00b37

Browse files
authored
Merge branch 'ZoneMinder:master' into patch-23613
2 parents 2de31a9 + 8e46bc0 commit 9b00b37

File tree

135 files changed

+9557
-1138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+9557
-1138
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
web/api/lib
55
web/includes/csrf/
66
web/js/videojs.zoomrotate.js
7+
web/js/video-stream.js
8+
web/js/video-rtc.js
79
web/js/fontfaceobserver.standalone.js
810
web/skins/classic/js/bootstrap-4.5.0.js
911
web/skins/classic/js/bootstrap.bundle.min.js

.github/workflows/ci-bookworm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
libcurl4-gnutls-dev libvlc-dev libvncserver-dev
4949
libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libwww-perl
5050
libpolkit-gobject-1-dev
51+
nlohmann-json3-dev
5152
${{ matrix.crypto_package }} ${{ matrix.jwt_package }}
5253
- name: Prepare
5354
run: mkdir build

.github/workflows/ci-bullseye.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
libcurl4-gnutls-dev libvlc-dev libvncserver-dev
4949
libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libwww-perl
5050
libpolkit-gobject-1-dev
51+
nlohmann-json3-dev
5152
catch2
5253
${{ matrix.crypto_package }} ${{ matrix.jwt_package }}
5354
- name: Prepare

.github/workflows/ci-focal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
libcurl4-gnutls-dev libvlc-dev libvncserver-dev
4646
libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libwww-perl
4747
libpolkit-gobject-1-dev
48+
nlohmann-json3-dev
4849
${{ matrix.crypto_package }} ${{ matrix.jwt_package }}
4950
- name: Prepare
5051
run: mkdir build

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ set(ZM_WEB_GROUP "" CACHE STRING
146146
Leave empty to be the same as the web user")
147147
set(ZM_DIR_EVENTS "${ZM_CONTENTDIR}/events" CACHE PATH
148148
"Location where events are recorded to, default: ZM_CONTENTDIR/events")
149+
set(ZM_DIR_MODELS "${ZM_CONTENTDIR}/models" CACHE PATH
150+
"Location of AI models default: ${ZM_CONTENTDIR}/models")
149151
set(ZM_DIR_SOUNDS "sounds" CACHE PATH
150152
"Location to look for optional sound files, default: sounds")
151153
set(ZM_PATH_ZMS "/cgi-bin/nph-zms" CACHE PATH
@@ -484,6 +486,7 @@ find_package(FFMPEG 55.34.100 REQUIRED
484486
COMPONENTS
485487
avcodec
486488
avdevice
489+
avfilter
487490
avformat
488491
avutil
489492
swresample
@@ -588,6 +591,14 @@ if(HAVE_LIBPCRE AND HAVE_PCRE_H)
588591
set(ZM_PCRE 1)
589592
endif()
590593

594+
find_package(nlohmann_json CONFIG)
595+
if(nlohmann_json_FOUND)
596+
set(ZM_HAS_NLOHMANN_JSON 1)
597+
else()
598+
set(ZM_HAS_NLOHMANN_JSON 0)
599+
message(AUTHOR_WARNING "nlohmann_json headers weren't found - AI results will not be available")
600+
endif()
601+
591602
# Check for mmap and enable in all components
592603
set(ZM_MEM_MAPPED 0)
593604
set(ENABLE_MMAP no)

db/zm_create.sql.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ CREATE TABLE `Events` (
203203
`TotScore` int(10) unsigned NOT NULL default '0',
204204
`AvgScore` smallint(5) unsigned default '0',
205205
`MaxScore` smallint(5) unsigned default '0',
206+
`MaxScoreFrameId` int(10) unsigned default NULL,
206207
`Archived` tinyint(3) unsigned NOT NULL default '0',
207208
`Videoed` tinyint(3) unsigned NOT NULL default '0',
208209
`Uploaded` tinyint(3) unsigned NOT NULL default '0',

db/zm_update-1.37.68.sql

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--
2+
-- Update Events table to have MaxScoreFrameId
3+
--
4+
5+
SELECT 'Checking for MaxScoreFrameId in Events';
6+
SET @s = (SELECT IF(
7+
(SELECT COUNT(*)
8+
FROM INFORMATION_SCHEMA.COLUMNS
9+
WHERE table_name = 'Events'
10+
AND table_schema = DATABASE()
11+
AND column_name = 'MaxScoreFrameId'
12+
) > 0,
13+
"SELECT 'Column MaxScoreFrameId already exists in Events'",
14+
"ALTER TABLE `Events` ADD COLUMN `MaxScoreFrameId` int(10) unsigned default NULL AFTER `MaxScore`"
15+
));
16+
PREPARE stmt FROM @s;
17+
EXECUTE stmt;

distros/redhat/zoneminder.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
%global zmtargetdistro %{?rhel:el%{rhel}}%{!?rhel:fc%{fedora}}
1919

2020
Name: zoneminder
21-
Version: 1.37.66
21+
Version: 1.37.68
2222
Release: 1%{?dist}
2323
Summary: A camera monitoring and analysis tool
2424
Group: System Environment/Daemons

docs/installationguide/ubuntu.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Alternatively
3737

3838
::
3939

40-
apt-get install mariab-server
40+
apt-get install mariadb-server
4141

4242
**Step 4:** Configure the ZoneMinder Database
4343

scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,11 @@ our @options = (
447447
},
448448
{
449449
name => 'ZM_GO2RTC_PATH',
450-
default => 'http://127.0.0.1:1984',
450+
default => 'http://127.0.0.1:1984/api',
451451
description => 'URL for Go2RTC API.',
452452
help => q`This value points to the location of the Go2RTC API
453453
install, including username and password. If left blank, this
454-
will default to 127.0.0.1:1984
454+
will default to http://127.0.0.1:1984/api
455455
`,
456456
type => $types{string},
457457
category => 'system',
@@ -1633,7 +1633,7 @@ our @options = (
16331633
`,
16341634
type => {
16351635
db_type => 'string',
1636-
hint => 'normal|collapsed',
1636+
hint => 'normal|collapsed|left',
16371637
pattern => qr|^([nc])|i,
16381638
format => q( ($1 =~ /^n/) ? 'normal' : 'collapsed' )
16391639
},
@@ -2834,11 +2834,11 @@ our @options = (
28342834
{
28352835
name => 'ZM_WEB_LIST_THUMBS',
28362836
default => 'yes',
2837-
description => 'Display mini-thumbnails of event images in event lists',
2837+
description => 'Display mini-thumbnails of event images in event lists and on console',
28382838
help => q`
2839-
Ordinarily the event lists just display text details of the
2840-
events to save space and time. By switching this option on you
2841-
can also display small thumbnails to help you identify events
2839+
Originally the event lists and console just displayed text details of the
2840+
events and monitors to save space and time. By switching this option on you
2841+
can also display small thumbnails to help you identify events or cameras
28422842
of interest. The size of these thumbnails is controlled by the
28432843
following two options.
28442844
`,
@@ -2848,10 +2848,10 @@ our @options = (
28482848
{
28492849
name => 'ZM_WEB_LIST_THUMB_WIDTH',
28502850
default => '48',
2851-
description => 'The width of the thumbnails that appear in the event lists',
2851+
description => 'The width of the thumbnails that appear in the event lists and on console',
28522852
help => q`
28532853
This options controls the width of the thumbnail images that
2854-
appear in the event lists. It should be fairly small to fit in
2854+
appear in the event lists and on the console. It should be fairly small to fit in
28552855
with the rest of the table. If you prefer you can specify a
28562856
height instead in the next option but you should only use one
28572857
of the width or height and the other option should be set to

0 commit comments

Comments
 (0)