Isaac Connor
5df2fbfff2
fix logic to handle no pre_event frames
2018-05-15 15:53:25 -04:00
Isaac Connor
4ca77fdd69
Merge branch 'storageareas' of github.com:ConnorTechnology/ZoneMinder into storageareas
2018-05-15 12:44:36 -04:00
Isaac Connor
98b2a3f6f0
improve structure/spacing
2018-05-15 12:44:24 -04:00
Isaac Connor
da8a232f01
Merge branch 'storageareas' into zma_to_thread
2018-05-12 19:45:48 -04:00
Isaac Connor
d9fff848e7
change Groups to a vector, add GroupNames function
2018-05-12 14:37:26 -07:00
Isaac Connor
0a5980ce2e
Fix prealarmcount > alarm_frames. If Alarm frames is 1 and PreEventCount == 0, then the old line would have evaluated to true. By making it > alarm_count instead of >= alarm_count-1, we get the same behaviour for non-zero preevent counts, and also since alarm_frames >= 1 always, we handle the preeventcount=0 case.
2018-05-11 12:18:24 -04:00
Isaac Connor
94377a4652
Merge branch 'storageareas' into zma_to_thread
2018-05-05 12:57:50 -04:00
Isaac Connor
f6139d33ed
Merge branch 'storageareas' into zma_to_thread
2018-05-05 12:25:11 -04:00
Isaac Connor
1cd7b73114
turn off closing event in a separate thread, add Groups
2018-05-02 12:20:01 -07:00
Isaac Connor
d46c06d201
remove extra event=NULL and spaces
2018-05-01 12:19:46 -04:00
Isaac Connor
a4da624f4c
break out of loops when zm-terminate is set
2018-04-27 13:20:38 -07:00
Isaac Connor
8a80cf686b
Merge branch 'master' into storageareas
2018-04-26 21:58:34 -04:00
Isaac Connor
184596ed4b
Merge branch 'storageareas' of github.com:ConnorTechnology/ZoneMinder into storageareas
2018-04-25 04:29:35 -04:00
Isaac Connor
20f6985dff
implement capturing bandwidth
2018-04-24 14:11:27 -04:00
Andy Bauer
678503b992
fix ftbs on el7
2018-04-24 12:16:19 -05:00
Isaac Connor
cc525b2397
Output more detailed shared mem size info
2018-04-24 11:41:54 -04:00
Isaac Connor
5f7d404a0c
spacing & style. Put locking around db accesses in RealoadLinkedMonitors
2018-04-23 16:24:15 -04:00
Isaac Connor
56186a42ef
change signal_check_points to a per-monitor variable instead of parts of config. Only call SignalCheck if signal_check_points is > 0
2018-04-19 10:10:14 -04:00
Isaac Connor
eb21a5113e
Add a debug line in SignaCheck function
2018-04-19 09:34:14 -04:00
Isaac Connor
fd1c69d48a
switch to uint64_t for event_id because long long can actually be 128 bit
2018-04-17 13:51:20 -04:00
Isaac Connor
3b0282f6ec
Merge branch 'storageareas' of github.com:ConnorTechnology/ZoneMinder into storageareas
2018-04-17 12:32:10 -04:00
Isaac Connor
0198ac832d
improve logging around loss of signal and lock around static sql
2018-04-17 12:30:58 -04:00
Isaac Connor
34111251d9
Introduce Close() to camera and monitor api. Use it to close a camera when there is an error with capturing. Remove the sleep10 on error.
2018-04-17 07:02:52 -07:00
Isaac Connor
73239a0dba
If no progress in analysis, bail
2018-04-14 17:03:45 -04:00
Isaac Connor
c7deb91319
Merge branch 'zma_to_thread' of github.com:ConnorTechnology/ZoneMinder into zma_to_thread
2018-04-14 14:58:25 -04:00
Isaac Connor
cd3046abb3
Merge branch 'storageareas' into zma_to_thread
2018-04-14 11:03:08 -04:00
Isaac Connor
f9f78e9aa3
Convert event_id to a 64bit unsigned int
2018-04-12 13:40:11 -07:00
Isaac Connor
8518278476
coverity scan fixes/cleanups
2018-04-12 11:29:35 -04:00
Isaac Connor
c766c1ddd1
spacing cleanup
2018-04-12 10:28:22 -04:00
Isaac Connor
71d5984eb0
delete stream after use
2018-04-12 10:26:18 -04:00
Isaac
64cfb39043
do an initial fps report early on
2018-04-06 23:21:22 +02:00
Isaac Connor
ec5f955d26
more db locking
2018-04-05 11:30:14 -04:00
Isaac Connor
dfc35721f9
ensure that sections are always > section_length
2018-04-03 07:03:12 -07:00
Isaac Connor
a5b77a59d3
allow 0 pre_event_count
2018-03-29 12:35:03 -04:00
Isaac Connor
b22911f554
wait to closeEvent on monitor shutdown
2018-03-28 14:03:56 -04:00
Isaac Connor
b8a792cfb7
whitespace google code style
2018-03-27 11:04:40 -04:00
Isaac Connor
bcc7011871
update sql loading code in Reload, which will automatically do the db locking
2018-03-27 10:04:19 -04:00
Isaac Connor
11cf3ce482
whitespace
2018-03-22 11:33:24 -04:00
Isaac Connor
e8e310b156
Merge branch 'storageareas' into zma_to_thread
2018-03-15 11:45:32 -04:00
Isaac Connor
ea38f7cca4
Merge branch 'storageareas' of github.com:connortechnology/ZoneMinder into storageareas
2018-03-15 11:43:15 -04:00
Isaac Connor
e523067df7
Merge branch 'storageareas' into zma_to_thread
2018-03-15 11:28:14 -04:00
Isaac Connor
27736fb5d9
Merge ../ZoneMinder.master into storageareas
2018-03-15 11:04:41 -04:00
Isaac Connor
6f3d16fe10
label_format can be null
2018-03-13 12:06:03 -07:00
Isaac Connor
cefd00d1ea
load User and Pass as well
2018-03-13 14:50:41 -04:00
Pliable Pixels
704ccaee73
2059 alarm cause ( #2060 )
...
* added alarm_cause as a test
* initial attempt to integrate with notes
* testing sizeof
* add zone labels
* fixed typo
* fixed typo
* comments and formatting
* Downgraded invalid attribute to error
* Removed Error downgrade. Instead do a undefined check on field params
* Added help text
2018-03-12 19:38:12 -04:00
Isaac Connor
5ca7871510
Merge branch 'zma_to_thread' of github.com:connortechnology/ZoneMinder into zma_to_thread
2018-03-10 10:12:22 -05:00
Isaac Connor
2291816f4e
fix memleak
2018-03-10 10:12:12 -05:00
Isaac Connor
a419906361
Merge branch 'storageareas' into zma_to_thread
2018-03-09 09:03:19 -05:00
Isaac Connor
7fb1c8921b
reorder functions to put them in a better order
2018-03-09 07:50:47 -05:00
Isaac Connor
dcf7c4fdde
rework loading Monitor using consistent db query
2018-03-09 07:23:40 -05:00
Isaac Connor
80127cbf81
Merge branch 'storageareas' into zma_to_thread
2018-03-06 10:57:49 -05:00
Isaac Connor
03d3f5e665
Merge branch 'storageareas' into zma_to_thread
2018-03-03 13:28:01 -08:00
Isaac Connor
91c9714e43
cleanup
2018-03-02 18:26:21 -08:00
Isaac Connor
28342b907b
add a thread for deleting the event. This is because writing out the final frames of an mp4 can take a long time, during which we are not analyzing.
2018-03-01 19:22:22 -08:00
Isaac Connor
c443168389
split out codec and encoder, allowing one to specify which encoder to use
2018-02-28 07:17:16 -08:00
Isaac Connor
f00983b450
Don't setup snap and timestamp if it's an audio packet
2018-02-27 20:19:39 -05:00
Isaac Connor
3586825c90
fix preevent_count==0 causing div/0
2018-02-26 17:08:05 -08:00
Isaac Connor
e3802954f7
Merge branch 'storageareas' of github.com:ConnorTechnology/ZoneMinder into storageareas
2018-02-23 19:01:46 -05:00
Isaac Connor
a231f500ec
better debug, whitespace
2018-02-23 19:01:42 -05:00
Isaac Connor
ee1eef50cb
Merge branch 'zma_to_thread' of github.com:ConnorTechnology/ZoneMinder into zma_to_thread
2018-02-18 11:00:55 -05:00
Isaac Connor
d514e95606
Merge branch 'zma_to_thread' of github.com:connortechnology/ZoneMinder into zma_to_thread
2018-02-17 12:26:08 -05:00
Isaac Connor
ec7f2e48d0
add back AnalysisFPS reporting and move the gettimeofday in after it is actually needed
2018-02-17 10:54:53 -05:00
Isaac Connor
84b7e85259
Add a mutex around mysql operations
2018-02-15 15:54:13 -05:00
Isaac Connor
9fd2b6be52
fix fps reporting
2018-02-15 14:07:55 -05:00
Isaac Connor
b5e0745ac7
Merge branch 'storageareas' into zma_to_thread
2018-02-14 13:56:03 -05:00
Isaac Connor
657fda818b
code docs
2018-02-13 05:26:30 -05:00
Isaac Connor
cd606dbab8
whitespace
2018-02-07 08:03:01 -05:00
Isaac Connor
d8e4b0abfb
Merge branch 'storageareas' into zma_to_thread
...
Conflicts:
scripts/zmwatch.pl.in
src/zm_ffmpeg_camera.cpp
src/zm_monitor.cpp
src/zmc.cpp
2018-02-06 10:34:17 -05:00
Isaac Connor
a4c956da7d
Only update db entry when value changes
2018-02-05 22:59:22 -05:00
Isaac Connor
e25af4b40c
cleanup, reset result
2018-02-02 16:07:13 -05:00
Isaac Connor
4b7ddd81bf
Merge branch 'storageareas' into zma_to_thread
2018-02-02 14:24:02 -05:00
Isaac Connor
868e17a414
Allow Method in Monitors to be NULL
2018-02-02 10:31:55 -05:00
Isaac Connor
67b365948e
Merge branch 'storageareas' into zma_to_thread
...
Conflicts:
src/zm_ffmpeg_camera.cpp
src/zm_monitor.cpp
web/includes/Monitor.php
web/skins/classic/views/js/add_monitors.js
web/skins/classic/views/js/console.js
2018-01-29 15:53:26 -05:00
Isaac Connor
cfb0461fcf
Rename column Id to MonitorId in MonitorStatus
2018-01-29 09:31:43 -05:00
Isaac Connor
057509637a
TUrn a warning into a debug
2018-01-28 15:16:06 -05:00
Isaac Connor
6a42dab4e8
Fix
2018-01-24 12:18:39 -05:00
Isaac Connor
71263c525b
:Merge branch 'storageareas' into zma_to_thread
...
Conflicts:
src/zm_ffmpeg_camera.cpp
src/zm_monitor.cpp
2018-01-24 11:55:32 -05:00
Isaac Connor
50fc4a2d94
Use a memory table called Monitor_Status to store FPS and Status info for Monitors. This is to reduce locking and updates on the main Monitors table.
2018-01-24 11:51:11 -05:00
Isaac Connor
e37d27e972
Merge branch 'storageareas' into zma_to_thread
...
Conflicts:
src/zm_monitor.cpp
2018-01-18 13:44:26 -05:00
Isaac Connor
59a1272307
bump version
2018-01-18 11:39:33 -05:00
Isaac Connor
a2211bf438
Merge branch 'storageareas' into zma_to_thread
...
Conflicts:
src/zm_event.cpp
src/zm_monitor.cpp
2018-01-16 13:36:57 -05:00
Isaac Connor
26cea49f1a
handle nulls in event_prefix and label_format in Monitor::Reload
2018-01-16 11:08:35 -05:00
Isaac Connor
2c121fb784
If we get a term signal while waiting for zmc, die.
2018-01-12 07:12:54 -08:00
Isaac Connor
0ea6fd9807
Merge branch 'storageareas' into zma_to_thread
2017-12-19 14:06:58 -05:00
Isaac Connor
e16852ee8e
fix compile, impose minimum 10 second event length
2017-12-18 13:39:08 -05:00
Isaac Connor
14eedf4927
rework state machine
2017-12-16 17:07:53 -05:00
Isaac Connor
49214a8902
Merge branch 'zma_to_thread' of github.com:/ConnorTechnology/ZoneMinder into zma_to_thread
2017-12-15 10:47:53 -05:00
Isaac Connor
ebcd63f280
fixes to compile using avconv
2017-12-15 10:47:44 -05:00
Isaac Connor
212cd7e6c4
tidy ups
2017-12-15 10:46:43 -05:00
Isaac Connor
bcdadc67bf
Merge branch 'storageareas' into zma_to_thread
2017-12-12 15:29:19 -05:00
Isaac Connor
a304af727b
debug GetFPS
2017-12-12 14:37:02 -05:00
Isaac Connor
70d43d2d27
fix strncpy calls
2017-12-12 13:42:48 -05:00
Isaac Connor
34668db43b
use return value of WriteJpeg
2017-12-12 13:39:36 -05:00
Isaac Connor
fe74c41723
fix integer division instead of double
2017-12-12 12:56:19 -05:00
Isaac Connor
db915b2c56
Don't do an unneccesary assignemnt
2017-12-12 12:52:30 -05:00
Isaac Connor
f8738f2387
quiet coverity
2017-12-12 12:37:49 -05:00
Isaac Connor
dd384e9e6d
reduce wait time when waiting for first frame
2017-12-08 21:29:05 -05:00
Isaac Connor
af37eeeeed
fix int64 = int*int multiply
2017-12-08 15:17:45 -05:00
Isaac Connor
aff08358f4
more debug
2017-12-08 13:46:02 -05:00
APHW2 MFGENG
0cfc42b9fd
some cleanups/fixes
2017-12-05 13:16:52 -08:00