Commit Graph

706 Commits

Author SHA1 Message Date
Nick Mowen
65e7e2d1d1 Formatting 2022-10-29 16:08:43 -06:00
Nick Mowen
f782816de4 Add option to force audio compatibility 2022-10-29 16:08:43 -06:00
Nick Mowen
04373c4fc6 Fix tests 2022-10-24 07:50:38 -06:00
Nick Mowen
b90e71d209 Remove RTMP from default list of roles 2022-10-24 07:01:36 -06:00
Nick Mowen
2c8057252f Remove access of live config 2022-10-22 08:13:36 -06:00
Nick Mowen
c298c7c233 Remove live config 2022-10-22 07:19:27 -06:00
Nick Mowen
3a4b358ea7 Remove live source 2022-10-22 07:18:26 -06:00
Nick Mowen
8ce56926e0 Move stream configs to restream 2022-10-22 07:18:14 -06:00
Nick Mowen
bf24b827e4 Mock requests 2022-10-21 14:58:19 -06:00
Nick Mowen
d1d9711123 Format tests 2022-10-21 14:50:56 -06:00
Nick Mowen
965d6dfc16 Add restream tests 2022-10-21 14:50:35 -06:00
Nick Mowen
5a86715b0f Cleanup stream creation 2022-10-21 14:39:56 -06:00
Nick Mowen
d424202934 Adjust audio codec to enable browser audio by default 2022-10-21 14:38:01 -06:00
Nick Mowen
6717c467bb Use full path since go2rtc can't see PATH var 2022-10-21 10:15:31 -06:00
Nick Mowen
0e000e7ee6 Make jsmpeg the default 2022-10-21 08:29:31 -06:00
Nick Mowen
d8f29ce58d Formatting 2022-10-21 07:47:34 -06:00
Nick Mowen
f6b87531b9 Support all stream types 2022-10-21 07:46:04 -06:00
Nick Mowen
948598767d Add restream tests 2022-10-16 16:11:55 -06:00
Nick Mowen
ab5934887c Fix tests 2022-10-16 16:11:10 -06:00
Nick Mowen
9f51897782 Adjust rtmp test and add restream test 2022-10-16 16:06:45 -06:00
Nick Mowen
7028de3612 Add webrtc player 2022-10-14 18:02:10 -06:00
Nick Mowen
8e7c545eee Formatting 2022-10-14 14:46:58 -06:00
Nick Mowen
000b76e13f Make mp4 the default streaming for now 2022-10-14 14:40:05 -06:00
Nick Mowen
5bced8376a Add multiple options from restream live view 2022-10-14 10:16:44 -06:00
Nick Mowen
7ff2dae9d5 Fix restream 2022-10-13 17:34:39 -06:00
Nick Mowen
65b9e12c94 Send restream to camera level 2022-10-13 17:22:54 -06:00
Nick Mowen
1c22b3a342 Start restream on frigate start 2022-10-13 17:16:28 -06:00
Nick Mowen
82bfd8fd5d Disable RTMP by default and use restream 2022-10-13 16:45:56 -06:00
Nick Mowen
eae7123cf3 Add camera live source config 2022-10-13 16:45:39 -06:00
Nick Mowen
636a88e00e Add restream role 2022-10-13 16:39:00 -06:00
Nick Mowen
53e7e0457b Add restream role 2022-10-13 16:37:09 -06:00
Nick Mowen
7eb3547979 Add relay controller for go2rtc 2022-10-13 16:34:59 -06:00
Nicolas Mowen
b4d4adb75b
Limit recording retention to available storage (#3942)
* Add field and migration for segment size

* Store the segment size in db

* Add comment

* Add default

* Fix size parsing

* Include segment size in recordings endpoint

* Start adding storage maintainer

* Add storage maintainer and calculate average sizes

* Update comment

* Store segment and hour avg sizes per camera

* Formatting

* Keep track of total segment and hour averages

* Remove unused files

* Cleanup 2 hours of recordings at a time

* Formatting

* Fix bug

* Round segment size

* Cleanup some comments

* Handle case where segments are not deleted on initial run or is only retained segments

* Improve cleanup log

* Formatting

* Fix typo and improve logging

* Catch case where no recordings exist for camera

* Specifically define sort

* Handle edge case for cameras that only record part time

* Increase definition of part time recorder

* Remove warning about not supported storage based retention

* Add note about storage based retention to recording docs

* Add tests for storage maintenance calculation and cleanup

* Format tests

* Don't run for a camera with no recording segments

* Get size of file from cache

* Rework camera stats to be more efficient

* Remove total and other inefficencies

* Rewrite storage cleanup logic to be much more efficient

* Fix existing tests

* Fix bugs from tests

* Add another test

* Improve logging

* Formatting

* Set back correct loop time

* Update name

* Update comment

* Only include segments that have a nonzero size

* Catch case where camera has 0 nonzero segment durations

* Add test to cover zero bandwidth migration case

* Fix test

* Incorrect boolean logic

* Formatting

* Explicity re-define iterator
2022-10-09 06:28:26 -05:00
Nicolas Mowen
66dc8c772b
Remove snapshot requirement for thumbnail event query (#4039) 2022-10-07 21:13:15 -05:00
Nicolas Mowen
65c211bb6d
Catch ffprobe empty stdout (#4016) 2022-10-04 19:56:04 -05:00
Nicolas Mowen
60ad38261b
Fix sub label access (#4015)
* Fix access

* Formatting
2022-10-04 18:49:37 -05:00
Blake Blackshear
8669c29e3d
don't overwrite segments that already exist (#3995) 2022-10-01 18:11:29 -05:00
Nicolas Mowen
f0e836e5b6
Update MQTT along with enabling motion detection (#3898) 2022-10-01 09:01:43 -05:00
Nicolas Mowen
a1ae5b67d8
Mqtt sub labels (#3899)
* Set sub label on object data if event is in progress

* Include sub_label in dict

* Don't need to set and passively get

* Formatting

* Don't expect event to be valid

* Update docs to reflect that sub label is included
2022-10-01 09:00:56 -05:00
Nicolas Mowen
53f7190d42
Set a timeout on github release check (#3969)
* Set a timeout on github release check

* Formatting
2022-10-01 08:58:23 -05:00
Nicolas Mowen
df40b96b44
BUG: Fixes and cleanup around region / bounding box calculation (#3879)
* -1 so ensure indexes are correct

* Catch case of zero division

* Due to the -1, it may be negative

* Ignore source of error

The error is occurring due to a detections bounding box starting beyond the frame, this should be immediately ignored

* Formatting

* Check horizontal placement as well

* Remove original frame clamping
2022-09-22 08:07:16 -05:00
Nick Mowen
1bc8d94312 Fix edge of frame after region adjustments 2022-09-15 06:33:32 -05:00
Nick Mowen
7e9f913ff6 Fix edge case where browser sends multiple requests to download file. 2022-09-15 06:32:54 -05:00
uvjustin
9df415b3f2
Fix VOD issues with longer keyframe intervals (#3671)
* Fix VOD issues with longer keyframe intervals

* Move probe function to util
Update comment

* Use recording duration for keyFrameDurations

* Remove unused early return

* Avoid clipping first clip
2022-08-26 06:32:34 -05:00
uvjustin
8c45dab9b8
Handle spaces in labels (#3679)
* Unquote label in flask routes
Encode label in Camera.jsx

* Don't use preprocessor

* Update nginx location for cacheable images
2022-08-25 07:32:30 -05:00
Nicolas Mowen
911d6fdfa7
Ensure bounding box is within camera frame (#3702)
* Ensure bounding box is within camera frame

* Account for 0 index
2022-08-24 07:39:47 -05:00
Blake Blackshear
37325c70ba fix plus enabled for addons 2022-07-22 08:12:58 -05:00
Blake Blackshear
3c46a33992 revert false warning messages 2022-07-20 06:55:06 -05:00
deviant77
ed1897db71
Add log message when discarding recording segments in cache (#3439)
* Add log message when discarding recording segments in cache

Currently Frigate silently discards recording segments in cache if there's more than "keep_count" for a camera, which can happen on high load/busy/slow systems.
This results in recording segments being lost with no apparent cause in the logs (even when set to debug).
This PR adds a warning log entry when discarding segments, in the same way as discarding corrupted segments

* Add explanatory warning and properly format cache_path warning

* lint fixes

Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>
2022-07-19 07:24:44 -05:00
Nick Mowen
061fb15a80 Reset motion to false on startup 2022-07-19 06:59:20 -05:00