Commit Graph

1858 Commits

Author SHA1 Message Date
Nick Mowen
51a09b43d0 Merge branch 'dev' of github.com:blakeblackshear/frigate into audio-events 2023-06-30 06:47:15 -06:00
Nicolas Mowen
0a8249d6fb
Fix Bad Resize For Camera Snapshot (#6797)
* Catch cases where incorrect size is requested

* Set a default if calculated height is incorrect
2023-06-30 07:34:10 -05:00
Sergey Krashevich
b6fce8f0bb
Integrate ccache into libusb and nginx build scripts for improved build speed (#6886)
* Add ccache to libusb and nginx build scripts

* Add ccache support to Dockerfile for faster builds

* Add ccache to PATH and use it for compiling nginx with Makefile in build_nginx.sh script
2023-06-30 07:28:48 -05:00
Blake Blackshear
d51197eaa2
use a different method for blur and contrast to reduce CPU (#6940)
* use a different method for blur and contrast to reduce CPU

* blur with radius instead

* use faster interpolation for motion

* improve contrast based on averages

* increase default threshold to 30

* ensure mask is applied after contrast improvement

* update opencv

* update benchmark script
2023-06-30 07:27:31 -05:00
Nicolas Mowen
d2a2643cd6
Apply zone filter before inertia (#6854)
* Apply zone filter before intertia

* Formatting
2023-06-30 07:15:55 -05:00
Nicolas Mowen
bd17e7d824
Show object attributes when hovering or tapping timeline bounding box (#6879)
* Show overlay when hovering on timeline box

* Make it work with mobile too

* Fix lint

* Fix ratio

* Update web/src/components/TimelineEventOverlay.jsx

Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>

* Show overlay when hovering on timeline box

* Make it work with mobile too

* Fix lint

* Fix ratio

* Remove label and make overlay respect selected theme

---------

Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>
2023-06-30 07:15:19 -05:00
spacebares
ed0d2be321
configurable ffmpeg timeout (#6897)
* configurable ffmpeg timeout

* configurable ffmpeg healthcheck interval

rename timeout to healthcheck_interval
only grab config value once

* configurable ffmpeg retry interval

rename healthcheck_interval to retry_interval

* add retry_interval to docs

- update retry_interval text in config.py
2023-06-30 07:14:39 -05:00
Nicolas Mowen
9137f1594b
Remove legacy recordings file cleanup (#6947)
* Remove legacy recordings file cleanup

* Remove unused
2023-06-30 07:13:00 -05:00
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