Isaac Connor
|
77793da70e
|
If no max_fps set we don't care how long it takes to send frame
|
2021-12-17 13:29:30 -05:00 |
Isaac Connor
|
1bc0e1820e
|
fix build on older c++
|
2021-12-16 17:02:20 -05:00 |
Isaac Connor
|
7101a70774
|
Switch to steady_clock
|
2021-12-16 16:35:42 -05:00 |
Isaac Connor
|
60d2186ff4
|
Move from SystemTimePoint to SteadyTimePoint where possible. Implement MAXFPS command. Change the logic of calculating sleep time to make more sense. Get rid of frame_mod use in favour of calculating when then next frame should get sent and just waiting till then.
|
2021-12-16 16:35:20 -05:00 |
Isaac Connor
|
7b7ac8fc7e
|
Add utility functions TimePointToString and SystemTimePointToString
|
2021-12-16 16:30:26 -05:00 |
Isaac Connor
|
d10d5201ac
|
log max fps
|
2021-12-15 16:57:27 -05:00 |
Isaac Connor
|
4edd5c1bf5
|
Don't alter maxfps. Just report that we are too slow. Don't use ZM_RATE_BASE in sleep time calculations it amplifies the sleep seconds by 100 times. Removing allows us to view a full framerate.
|
2021-12-15 16:57:17 -05:00 |
Isaac Connor
|
854d11ce9d
|
List the connkey that isn't open, differentiate logs a bit to help debug.
|
2021-12-15 09:11:55 -05:00 |
Isaac Connor
|
61fe35a32a
|
Don't log errors when querying a monitor in NONE Function. Just report a 0 status.Fixes #3397
|
2021-12-15 09:11:55 -05:00 |
Isaac Connor
|
cca7953856
|
include user and function error message about insufficient permissions. Will make it easier to figure out who tried what.
|
2021-12-14 12:26:26 -05:00 |
Isaac Connor
|
b4511a8fc3
|
Merge branch 'master' of github.com:ZoneMinder/zoneminder
|
2021-12-10 16:20:54 -05:00 |
Isaac Connor
|
c42b75a252
|
must clear the monitors array before terminating log.
|
2021-12-10 16:20:44 -05:00 |
Isaac Connor
|
4cbc55d160
|
spacing
|
2021-12-10 16:19:41 -05:00 |
Isaac Connor
|
5a57122891
|
fix typpo
|
2021-12-10 16:17:54 -05:00 |
Isaac Connor
|
090c803b98
|
Wait for closeEvent thread to finish. Fixes unfinished event when zmc told to restart
|
2021-12-09 12:33:59 -05:00 |
Isaac Connor
|
27e87fc21f
|
Move all the opening of events code into one function called openEvent.
|
2021-12-03 13:25:50 -05:00 |
Isaac Connor
|
eef172379c
|
Move all the opening of events code into one function called openEvent.
|
2021-12-03 13:25:50 -05:00 |
Isaac Connor
|
1cddac4efd
|
remove remaining signal blocking cruft, add ignoring sigchld so that anything we spawn doesn't become a zombie.
|
2021-11-29 18:34:19 -05:00 |
Isaac Connor
|
c927ef4b52
|
Aim to do db updates every 5 seconds instead of 1 second
|
2021-11-29 18:34:19 -05:00 |
Isaac Connor
|
7b9c86111c
|
Move Cleanup and framebuffer freeing into Close() so that we don't crash on Reload
|
2021-11-29 16:21:34 -05:00 |
pkubaj
|
74a2276671
|
Fix build on FreeBSD/armv7
1. FreeBSD uses elf_aux_info instead of getauxval.
2. FreeBSD uses HWCAP_NEON macro for Neon.
|
2021-11-29 00:03:45 +00:00 |
Isaac Connor
|
b626de50dc
|
Add code to fork and exec EventStartCommand and EventEndCommand
|
2021-11-26 19:21:51 -05:00 |
Isaac Connor
|
e8bb095730
|
include monitor dimensions when logging about zone mismatch
|
2021-11-24 14:28:31 -05:00 |
Isaac Connor
|
e061f3b34a
|
typo
|
2021-11-24 14:28:15 -05:00 |
Isaac Connor
|
77d3109152
|
Increase to 20 before warning about db queue size. Put lock in it's own scope so that we unlock before notifying
|
2021-11-24 13:44:45 -05:00 |
Isaac Connor
|
4be9c6cdd2
|
Code comments and make warning when the first packet in queue is locked.
|
2021-11-24 12:42:31 -05:00 |
Isaac Connor
|
2529765df3
|
timestamp image before scaling. Fixes lack of scaling when TIMESTAMP_ON_CAPTURE
is off
|
2021-11-19 11:59:19 -05:00 |
Isaac Connor
|
96b4af6255
|
Enable multi-threading on decode
|
2021-11-17 14:43:13 -05:00 |
Isaac Connor
|
036d47a832
|
proper fix to memleak
|
2021-11-11 14:42:08 -05:00 |
Isaac Connor
|
6d30f5431b
|
Merge branch 'master' of github.com:ZoneMinder/zoneminder
|
2021-11-11 13:58:56 -05:00 |
Isaac Connor
|
883772295d
|
spacing and log the new log level string as well as number
|
2021-11-11 13:51:17 -05:00 |
Isaac Connor
|
6cd1f6b5f3
|
Fix memleak on event creation due to not freeing storage object
|
2021-11-11 13:50:18 -05:00 |
Isaac Connor
|
8d85d0f640
|
Make state enum start at 0 as we are indexing into an array for StateStrings
|
2021-11-10 16:53:29 -05:00 |
Isaac Connor
|
5ac9f88d00
|
Use event->StartTime instead of GetVideoWriterStartTime. Add some parenthesis to make logic clearer and add more info to debug statements
|
2021-11-10 16:53:07 -05:00 |
Isaac Connor
|
44d88edbbb
|
Fix some build warnings on arm
|
2021-11-09 17:01:13 -05:00 |
Isaac Connor
|
508be72e08
|
Don't exit(0) on QUIT. Instead set zm_terminate=true so that all the cleanup routines run.
|
2021-11-09 15:49:44 -05:00 |
Isaac Connor
|
5d23362ae0
|
use != Monitor instead of all the other cases
|
2021-11-09 13:59:14 -05:00 |
Isaac Connor
|
38105c6796
|
Spacing
|
2021-11-09 13:59:14 -05:00 |
Isaac Connor
|
7aefd657c7
|
Cleanup and spacing. Rework last_motion_score to be a bit more efficient and use fewer lines. Fix case where MOCORD was not ending/starting event on alarm.
|
2021-11-09 13:59:14 -05:00 |
Isaac Connor
|
8c2dec03b6
|
Default to now instead of ... epoch? when endtime is null. Fixes video playing when event is incomplete
|
2021-11-09 13:59:14 -05:00 |
Isaac Connor
|
364ae03195
|
Set zm_terminate on crash so that other threads exit instead of continuing
|
2021-11-03 17:04:13 -04:00 |
Isaac Connor
|
0119ff46aa
|
Remove redundant debug
|
2021-11-03 17:03:54 -04:00 |
Isaac Connor
|
93055f44e8
|
Merge UpdateCaptureFPS and UpdateAnalysisFPS into UpdateFPS and call it from zmc after capture.
|
2021-11-03 17:03:29 -04:00 |
Isaac Connor
|
814eca2b4f
|
Include the codec in the resulting mp4 filename. Remove event update setting the mp4 filename after insert, do it on event completing instead. Saves 1 db update.
|
2021-11-03 17:02:02 -04:00 |
Isaac Connor
|
a799eb3ad9
|
add function get_codec to return the codec used in the output mp4
|
2021-11-03 17:01:11 -04:00 |
Isaac Connor
|
8619971864
|
Better debug messages
|
2021-11-02 17:24:05 -04:00 |
Isaac Connor
|
61f7989bec
|
Actually report the # of dbQueue entries
|
2021-11-02 17:24:05 -04:00 |
Isaac Connor
|
dd949bb129
|
av_write_trailer can return a positive value which is not an error
|
2021-11-02 17:10:02 -04:00 |
Isaac Connor
|
e063f0715f
|
reset starttime when changing events. Fixes super fast playback after switch to next event. Also, skip some unneeded calculations and logging.
|
2021-10-28 13:00:41 -04:00 |
Isaac Connor
|
c2bd2dc129
|
Add a warning if db queue is larger than 10
|
2021-10-28 10:46:50 -04:00 |