Commit Graph

5709 Commits

Author SHA1 Message Date
Isaac Connor
df29df0f0a Handle ffmpeg 7 deprecations 2024-05-08 14:28:18 -04:00
Isaac Connor
bf14b5f2a7 ENsure that dts increases. Not enough to just == last_dts 2024-04-27 10:07:14 -04:00
Isaac Connor
90b5b1f154 Reduce time jump amount to 20seconds. We have many cameras that jump more than 20, but less than 40 and so the dts are accepted by reordering. Better to restart capture I think. 2024-04-07 11:30:22 -04:00
Aaron Kling
2b730601e0 Allow backtrace on non-x86 platforms 2024-04-05 16:27:49 -05:00
Isaac Connor
5e1596d9f5 Fix panning not working when paused. Also fixes SCALE. Fixes #3947 2024-04-05 09:32:05 -04:00
Aaron Kling
c4683d90a9 Format code using astyle google format
Commands used:
astyle --style=google --indent=spaces=2 --keep-one-line-blocks src/*.cpp
astyle --style=google --indent=spaces=2 --keep-one-line-blocks src/*.h
2024-03-26 13:43:58 -05:00
Isaac Connor
83cd5200b0 Free user if token is expired. 2024-03-25 09:56:10 -04:00
Isaac Connor
8e87fc2809 Add default values for ONVIF_EVENTS_PATH and ONVIF_Alarm_Text 2024-03-22 09:31:55 -04:00
Isaac Connor
a184f3adeb Always restart the analysis thread. It is needed. Also free convert_context in Pause 2024-03-19 14:55:21 -04:00
Isaac Connor
92e6a9b5d0 Rough in startup_delay function 2024-03-18 12:54:30 -04:00
Isaac Connor
9eb3565483 Set reorder_queue size to 2*keyframe interval as 1* does not seem to be enough. 2024-03-15 12:11:22 -04:00
Isaac Connor
56fcd8472e Fix motion events having cause continuous. Fixes #3858 2024-03-14 11:54:15 -04:00
Isaac Connor
07153f6773 Don't set snap score when skipping frames. Don't exit alarms when we havn't done motion detection. As a result, alarm_frame_count shouldn't cause immediate alarm anymore and because we aren't clearing prealarm frames, event recording should start 2024-03-12 21:22:58 -04:00
Isaac Connor
2981966b1c Don't treat stream already exists as an error. 2024-03-05 16:20:16 -05:00
Isaac Connor
3bab238ee4 Limit score to 255 2024-03-04 17:54:25 -05:00
Isaac Connor
fb37cd3c30 Remove refs to event from Info because there might not be an event. Fix crash. 2024-03-04 17:31:06 -05:00
Isaac Connor
f5cdab131f Include rc in debug 2024-03-04 14:13:41 -05:00
Isaac Connor
067ca68549 Add debugging of db failures 2024-03-04 13:20:21 -05:00
Isaac Connor
6f467dd0d4 Revert "regexp: port to pcre2"
This reverts commit fd09feb5f4.
2024-03-04 09:54:18 -05:00
Isaac Connor
b9da90522b Wait forever until reconnect, the fallthrough case had us retrying the sql on a closed connection which may have led to a crash. 2024-03-04 09:32:15 -05:00
David Aguilar
fd09feb5f4 regexp: port to pcre2
Update pcre usage to be compatible with pcre2.
2024-03-02 17:19:08 -08:00
Isaac Connor
26231c4579 Return 0 if packet is not for video or audio stream 2024-03-02 11:19:27 -05:00
Isaac Connor
e4a2f9879e Don't assume video if not audio, could be data 2024-03-02 11:00:03 -05:00
Isaac Connor
bb4858103d Increase time jump to 40 seconds because Avigilon cameras seem to do this a lot 2024-03-02 09:58:22 -05:00
Isaac Connor
04017b20f1 Make recording=onmotion respect post_event_count 2024-02-29 09:02:07 -05:00
Isaac Connor
3eede7228c Use Importance when logging about time jumping back too far 2024-02-27 17:39:52 -05:00
Isaac Connor
c5db82c082 Remove TAPE state. 2024-02-26 15:47:39 -05:00
Isaac Connor
e78c873944 Remove TAPE state. 2024-02-26 14:36:27 -05:00
Isaac Connor
2c7f83f96f Merge pull request #3841 from ovargasp/master
Makes the "Events" part of the ONVIF URL configurable
2024-02-24 16:22:01 -05:00
Server
58d8cf0adf Makes the "Events" part of the ONVIF URL configurable
as required per some ONVIF version 21.06 cameras
by default sets the Events Path equals to "/Events"
to maintain functionality
2024-02-24 11:05:08 -06:00
Isaac Connor
692e1ec745 Only allow loading user by only username if AUTH_RELAY=none. Log successful login as Debug 2024-02-24 07:54:40 -05:00
Isaac Connor
e1a141ed7d Remove event_start_mode, not going to be used 2024-02-23 16:56:55 -05:00
Isaac Connor
06134c387b Remove event_start_mode, not going to be used 2024-02-23 16:52:21 -05:00
Isaac Connor
5e704c3a1c Remove event_start_mode, not going to be used 2024-02-23 16:51:13 -05:00
Isaac Connor
29d120f059 Add CLOSE_DURATION, remove EventStartMode 2024-02-23 16:50:57 -05:00
Isaac Connor
920568c704 Use switch instead of ifs and add CLOSE_DURATION as valid value 2024-02-23 16:50:44 -05:00
Isaac Connor
824d6ec032 Remove EventStartMode stuff 2024-02-22 16:58:03 -05:00
Isaac Connor
eeb8856157 Ad EventStartMode and EventCLoseMode to monitor 2024-02-22 10:46:36 -05:00
Isaac Connor
0d98b2523d Split recording=ONMOTION and recording=ALWAYS logic out explicitly, even though it leads to redundant code, it should be easier to debug. 2024-02-22 10:39:38 -05:00
Isaac Connor
ae2dc039ac Merge branch 'master' of github.com:ZoneMinder/zoneminder 2024-02-22 10:02:46 -05:00
Isaac Connor
364d0c438e Split the if so that we get better debug output 2024-02-22 09:52:17 -05:00
BHMSD-bdailey
025fc939a9 Update debug to make it unique 2024-02-22 07:49:49 -05:00
BHMSD-bdailey
ebee72bf65 Prevent events from exceeding the section_length even if we are still in alarm 2024-02-21 17:10:18 -05:00
Isaac Connor
63b3f2bd36 Always increment alarm_frames if it is an alarm packet. Doesn't have to have an image. 2024-02-21 14:21:16 -05:00
Isaac Connor
15e4a7ac65 Move setting of last_signal up to where it is used for clarity 2024-02-21 12:09:24 -05:00
BHMSD-bdailey
ec24235cd3 Merge branch 'ZoneMinder:master' into master 2024-02-21 10:48:24 -05:00
BHMSD-bdailey
7e6efde1a9 Simple typo and consistency fixes. 2024-02-21 10:47:53 -05:00
Isaac Connor
0994e9da48 Merge pull request #3832 from webgeek1234/rpi-dec
Fix raspberry pi hardware decoding
2024-02-21 09:52:21 -05:00
Isaac Connor
72cbf4a393 Include unistd because we use sleep 2024-02-20 20:29:49 -05:00
Isaac Connor
e03afd678a Add a return value to zmDbReconnect which seems to fix the crashing 2024-02-20 19:31:11 -05:00