Commit Graph

1850 Commits

Author SHA1 Message Date
Nick Mowen
46e1355586 Merge branch 'dev' of github.com:blakeblackshear/frigate into audio-events 2023-06-28 06:22:31 -06:00
Cody Cutrer
ef14a43930
optimize frame-per-second calculations (#6887)
* optimize frame-per-second calculations

FPS is never calculated over differing periods for even given
counter. By only storing timestamps within the period that is
used, we avoid having to iterate 1000 entries every time it's
re-calculated (multiple times per second). 1000 entries would
normally only be needed if something is running at 100fps. A
more common speed - anywhere from 5 to 30fps, only needs 50
to 300 entries.

This isn't a huge improvement in the grand scheme, but when motion
detection is disabled, it takes nearly as much time in a flamegraph
as actually transferring the video frame.

* fix python checks
2023-06-28 05:55:53 -05:00
Cody Cutrer
ee4a133655
actually keep track of skipped frames (#6889)
* actually keep track of skipped frames

fixes #6863

* fix black errors
2023-06-28 05:53:28 -05:00
Nicolas Mowen
ece070fee1
Load labels dynamically for event filters (#6896)
* Load labels dynamically to include custom events and audio, do not include attribute labels

* Formatting

* Fix sorting

* Also filter tracked object list on camera page

* isort

* Don't fail before load
2023-06-28 05:51:53 -05:00
spacebares
3d40ed5d47
fix tooltip not showing if too far left (#6909) 2023-06-28 05:45:54 -05:00
Sergey Krashevich
e640981cc4
Performance: multiprocessing improvement (#6936)
* Add faster-fifo dependency for improved performance

* isort
2023-06-28 05:39:39 -05:00
Nick Mowen
b487e87352 Use var for localhost 2023-06-26 11:28:49 -06:00
Nick Mowen
ba3c7f59e5 Simplify if statement 2023-06-25 20:40:07 -06:00
Nick Mowen
23f1b51455 Use correct field 2023-06-25 20:39:46 -06:00
Nick Mowen
f553cb053a Cleanup process close 2023-06-22 17:08:38 -06:00
Nick Mowen
b087d55580 Remove log 2023-06-22 16:28:04 -06:00
Blake Blackshear
9e531b0b5b
reduce grid size for contrast improvement (#6870) 2023-06-21 08:38:51 -05:00
Nick Mowen
7f106976c0 Handle cases where args are a string 2023-06-20 06:19:23 -06:00
Nick Mowen
5494aa7631 Fix web tests 2023-06-19 17:01:52 -06:00
Nick Mowen
6fa001d82e Fix web tests 2023-06-19 16:55:17 -06:00
Nick Mowen
0fa7c744ba Formatting 2023-06-19 16:52:08 -06:00
Nick Mowen
9f8e2fd51c Isort 2023-06-19 16:50:30 -06:00
Nick Mowen
edd7e14237 Close logpipe 2023-06-19 16:47:32 -06:00
Nick Mowen
f8b2643ca8 Fix audio enabling 2023-06-19 16:29:53 -06:00
Nick Mowen
2555232f45 Set initial audio value 2023-06-19 16:20:54 -06:00
Nick Mowen
85cc348751 Add ability to toggle audio with mqtt 2023-06-19 16:19:55 -06:00
Nick Mowen
8198165fa7 Add audio icon in frontend 2023-06-19 15:44:21 -06:00
Nick Mowen
8444cc450d Cleanup labelmap 2023-06-19 15:23:38 -06:00
Nick Mowen
c73118ae49 Add const for float 2023-06-19 15:13:23 -06:00
Nick Mowen
cc11cf1737 Only start audio process if at least one camera is enabled 2023-06-19 08:12:33 -06:00
Nick Mowen
b89c6c30f7 remove unused 2023-06-19 08:10:57 -06:00
Nick Mowen
4239110af5 Close threads when stop event is sent 2023-06-19 08:05:26 -06:00
Nick Mowen
5c230ee0f5 Get events working 2023-06-19 08:00:47 -06:00
Nick Mowen
cc0cb3a78d Use api instead of event queue to save audio events 2023-06-19 07:50:02 -06:00
Nick Mowen
f0a59da933 End events correctly 2023-06-19 07:32:31 -06:00
Nick Mowen
5748efb352 Fixes 2023-06-19 07:11:49 -06:00
Nick Mowen
6c1fda11f6 Stop ffmpeg when shutting down 2023-06-19 06:57:11 -06:00
Nick Mowen
936cba75fb Use not heard config 2023-06-19 06:44:43 -06:00
Nick Mowen
1f1917742f End events if not heard for 30 seconds 2023-06-19 06:44:05 -06:00
Nick Mowen
734eb07a23 Save event to db 2023-06-18 17:11:11 -06:00
Nick Mowen
b5acd6a287 Get audio detection working 2023-06-18 16:34:38 -06:00
Nick Mowen
c017ceabf7 Add ffmpeg input args 2023-06-18 13:59:35 -06:00
Nick Mowen
16b6bcca9a Try to cleanup restarting 2023-06-18 13:50:06 -06:00
Nick Mowen
7e1ca34fc6 Fix startup issues 2023-06-18 13:42:15 -06:00
Nick Mowen
10e194b0d1 Start audio process 2023-06-18 13:37:52 -06:00
Nick Mowen
386e388f75 Fix config bugs 2023-06-18 13:30:13 -06:00
Nick Mowen
bf4cb22118 Load labelmap correctly 2023-06-18 13:04:41 -06:00
Nick Mowen
b6bb1cd185 Build out base config 2023-06-18 12:51:49 -06:00
Blake Blackshear
7c1568fcb9
use clahe for contrast improvement (#6835)
* use clahe for contrast improvement

* update tests
2023-06-18 11:56:41 -05:00
Nick Mowen
87a4d1d15b Add audio detection process keypoints 2023-06-17 17:14:43 -06:00
Nick Mowen
2a83a3626c Add the detector 2023-06-17 16:48:41 -06:00
Nick Mowen
e43a7e65f9 Start adding config for audio 2023-06-17 16:20:42 -06:00
Nick Mowen
8055fbc6e8 Merge branch 'dev' of github.com:blakeblackshear/frigate into audio-events 2023-06-17 09:55:57 -06:00
Nick Mowen
021ed5c141 Cleanup 2023-06-17 09:54:29 -06:00
Nick Mowen
51e1e5b7a5 Keep audio labelmap local 2023-06-17 09:49:45 -06:00