Commit Graph

1395 Commits

Author SHA1 Message Date
Rui Alves
55d33cebb8 Use body for multiple events endpoints 2024-09-16 16:53:22 +01:00
Rui Alves
1b601b8c35 Convert events endpoints to FastAPI 2024-09-16 10:44:03 +01:00
Rui Alves
cc259736da Fix path parameters 2024-09-15 18:48:36 +01:00
Rui Alves
ce1c048adc Convert export endpoints to FastAPI 2024-09-15 18:45:37 +01:00
Rui Alves
349891b0a6 Convert remaining review API endpoints to FastAPI 2024-09-15 18:29:42 +01:00
Rui Alves
640dce6bc2 Convert first review API endpoints to FastAPI 2024-09-15 17:40:23 +01:00
Rui Alves
023f1431f2 Convert all notifications API endpoints to FastAPI 2024-09-15 17:08:41 +01:00
Rui Alves
1f11d825ef Merge branch 'fastapi-poc' into fastapi-poc-media-endpoints
# Conflicts:
#	frigate/api/media.py
2024-09-15 14:46:23 +01:00
Rui Alves
aa82e56db6 Merge branch 'dev' into fastapi-poc 2024-09-15 14:40:24 +01:00
Nicolas Mowen
d5acd11164
Ffmpeg fixes (#13739)
* Only include hwaccel args if detect is being used

* Include both libmfx libraries
2024-09-14 13:22:03 -05:00
Nicolas Mowen
088a0fb4a5
Ffmpeg cleanup (#13737) 2024-09-14 07:03:39 -06:00
Josh Hawkins
5aee70ac7a
Explore view fixes (#13726)
* return description consistently under data object

* description type

* navigate to history view from explore video tab
2024-09-13 14:44:31 -06:00
Nicolas Mowen
5ff476c6f9
Configurable ffmpeg (#13722)
* Install multiple ffmpeg versions and add config to make it configurable

* Update docs

* Run ffprobe too

* Cleanup

* Apply config to go2rtc as well

* Fix ffmpeg bin

* Docs

* Restore path

* Cleanup env var

* Fix ffmpeg path for encoding

* Fix export

* Formatting
2024-09-13 15:14:51 -05:00
Rui Alves
abf9e76d77 Merge branch 'fastapi-poc' into fastapi-poc-media-endpoints
# Conflicts:
#	web/src/components/overlay/dialog/FrigatePlusDialog.tsx
#	web/src/pages/SubmitPlus.tsx
2024-09-12 13:51:43 +01:00
Rui Alves
b04f6938b9 Merge branch 'dev' into fastapi-poc 2024-09-12 13:48:58 +01:00
Nicolas Mowen
62657ad05a
Ensure detections are not immediately deleted (#13683)
* Ensure detections are not immediately deleted

* Formatting
2024-09-11 15:46:24 -05:00
Nicolas Mowen
3972642ba0
Refactor search details into Explore Page (#13665) 2024-09-11 08:41:16 -06:00
Rui Alves
8e4a70d9e9 Merge branch 'fastapi-poc' into fastapi-poc-media-endpoints 2024-09-10 19:08:36 +01:00
Rui Alves
30f45fe9f3 Merge branch 'dev' into fastapi-poc 2024-09-10 19:08:04 +01:00
Nicolas Mowen
07d1692f2b
Make notifications toggleable via MQTT (#13657)
* Add ability to toggle mqtt state from MQTT / ws

* Listen to notification config updates

* Add docs for notifications
2024-09-10 11:24:44 -06:00
Nicolas Mowen
8db9824842
Don't save preview frames if recording is not enabled (#13656)
* Simplify check

* Don't write frames

* Write frames only if recording enabled
2024-09-10 11:12:42 -06:00
Nicolas Mowen
ceb7aa8b36
Improve handling of empty frames (#13651) 2024-09-10 08:39:37 -05:00
Rui Alves
98eec0a2b6 Merge branch 'fastapi-poc' into fastapi-poc-media-endpoints 2024-09-10 10:27:54 +01:00
Rui Alves
41d643894b Merge branch 'dev' into fastapi-poc 2024-09-10 10:27:40 +01:00
Josh Hawkins
cae11cbb86
Add ability to filter based on search type (#13641) 2024-09-09 14:45:19 -05:00
Rui Alves
cb63989a92 Merge branch 'dev' into fastapi-poc
# Conflicts:
#	frigate/api/preview.py
2024-09-09 19:31:12 +01:00
Nicolas Mowen
f5dbcd5465
Add types to date preview & vod api (#13636)
* Add types to date preview api

* Formatting
2024-09-09 11:03:53 -05:00
Rui Alves
f5cb44adb9 Merge branch 'dev' into fastapi-poc-media-endpoints 2024-09-09 16:46:35 +01:00
Rui Alves
bcdaf20607 Merge branch 'dev' into fastapi-poc 2024-09-09 16:45:20 +01:00
Josh Hawkins
f143fceceb
UI tweaks (#13633)
* Object lifecycle and semantic search UI tweaks

* prevent console errors for sheet component
2024-09-09 09:33:38 -05:00
Nicolas Mowen
8be139d4d1
Fix thumbnail failure (#13634)
* Fix thumbnail failure

* Formatting

* Fix logic
2024-09-09 09:29:05 -05:00
Rui Alves
012c953dfb Convert all media endpoints to FastAPI. Added /media prefix (/media/camera && media/events && /media/preview) 2024-09-08 15:33:56 +01:00
Rui Alves
b83f9532ab POC: lint 2024-09-07 21:09:44 +01:00
Rui Alves
93b88e5d08 POC: Converted two more endpoints to FastAPI 2024-09-07 18:49:42 +01:00
Rui Alves
773d211017 POC: Converted preview related endpoints to FastAPI 2024-09-07 17:06:49 +01:00
Rui Alves
c50283b55e POC: Added FastAPI with one endpoint (get /logs/service) 2024-09-07 16:45:39 +01:00
Nicolas Mowen
18a6aa1824
Update ffmpeg to 7.0.2 (#13578)
* Update to ffmpeg 7.0

* Reduce CPU by not changing pixel format

* Add basic vulkan support

* Adjust gamma after vaapi change

* Formatting
2024-09-05 18:27:32 -06:00
Nicolas Mowen
055f0dfc22
Fix birdseye opening and not closing frames (#13553) 2024-09-04 08:25:00 -06:00
Josh Hawkins
ddf9163c47
Implement object lifecycle pane (#13550)
* Object lifecycle pane

* fix thumbnails and annotation offset math

* snapshot endpoint height and format, yaml types, bugfixes

* clean up for new type

* use get_image_from_recording in recordings snapshot api

* make height optional
2024-09-04 07:46:49 -06:00
Nicolas Mowen
e80322dab7
Fix recording cleanup logic again (#13527) 2024-09-03 16:56:26 -05:00
Nicolas Mowen
7626dd239a
Fix incorrect recording config access (#13524)
* Fix incorrect access

* Formatting
2024-09-03 16:27:19 -05:00
Nicolas Mowen
9afa1354da
Limit shm frame count (#12363)
* Limited shm frame count (#12346)

* Only keep 2x detect fps frames in SHM

* Don't delete previous shm frames in output

* Catch case where images do not exist

* Ensure files are closed

* Clear out all frames when shutting down

* Correct the number of frames saved

* Simplify empty shm error handling

* Improve frame safety

* Add handler logs when frame is None

* Don't fail on cleanup

* Cleanup logging

* Update docs

* Update calculation

* Restore condition

* Fix case where thumbnail is saved without frame

* Adjust debug logs

* Calculate best shm frame count

* Fix shm count calculation

* Catch missing frame

* Formatting

* Clarify docs

* Catch none frame in autotracking
2024-09-03 10:22:30 -06:00
Nicolas Mowen
58a471e466
Fix hardcoded camera name (#13520)
* Fix hardcoded camera name

* Simplify logic
2024-09-03 10:14:30 -06:00
Nicolas Mowen
e66f47bdf6
Cleanup after recordings refactor (#13518)
* Cleanup after recordings refactor

* Fix default retention mode

* Formatting

* Fix review item query

* Default review retention
2024-09-03 08:49:50 -06:00
gwmullin
5239790835
Emit an 'active' metric for events to address issue #7667 (#13279)
* Initial implementation of active object counters. Need to clean up a bit more and examine reuse of stationary/active logic in neighboring modules.

* A bit more cleanup for references to active, referencing the tracked object method rather than duplicating logic.

* Minor formatting and readability cleanup

* Update docs with the new active mqtt metric definition.

* Move the check for a change in active status into the code block protected by a false positive check.

* - Add 'active' to the tracked object dictionary, use the previous object for active comparison.

  - I also missed emitting updates when a tracked object is no longer tracked, and added handling for emitting zeros on object types.
2024-09-02 07:24:15 -06:00
Nicolas Mowen
0acbd3d5e8
Refactor recordings retention to be based on review items (#13355)
* Refactor recordings config to be based off of review items

* Update object processing logic for when an event is created

* Migrate to deciding recording retention based on review items

* Refactor recording expiration to be based off of review items

* Remove remainder of recording events access

* Handle migration automatically

* Update version and cleanup

* Update docs

* Clarify docs

* Cleanup

* Target camera config

* Safely access all fields
2024-09-02 07:22:53 -06:00
Josh Hawkins
e3da5ef2d5
Lower onvif timeouts to 10s (#13473) 2024-08-31 16:15:10 -05:00
Martin Weinelt
ecaba82c9d
Use escapse string in get_intel_gpu_stats (#13452)
````
frigate/util/services.py:299: SyntaxWarning: invalid escape sequence '\d'
    for result in re.findall('"Video/\d":{[a-z":\d.,%]+}', reading):
````
2024-08-31 10:49:13 -06:00
Nicolas Mowen
921c9de241
Fix preview generation for offline camera (#13449)
* Handle case where camera is offline when generating previews

* Don't rely on slow system

* Simplify checks to rely on other cameras

* Formatting

* Cleanup
2024-08-31 10:48:58 -06:00
Nicolas Mowen
01fa1777ac Fix ZMQ race condition with events (#13198) 2024-08-29 20:19:50 -06:00