mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Don't assume camera sizes
This commit is contained in:
parent
3aeb6b8440
commit
16ad0e5477
@ -94,7 +94,7 @@ class CameraMaintainer(threading.Thread):
|
||||
|
||||
# leave room for 2 cameras that are added dynamically, if a user wants to add more cameras they may need to increase the SHM size and restart after adding them.
|
||||
cam_total_frame_size += 2 * round(
|
||||
(camera.detect.width * camera.detect.height * 1.5 + 270480) / 1048576,
|
||||
(1280 * 720 * 1.5 + 270480) / 1048576,
|
||||
1,
|
||||
)
|
||||
|
||||
|
||||
@ -93,7 +93,7 @@ class AudioProcessor(util.Process):
|
||||
|
||||
if any(
|
||||
[
|
||||
conf.audio_transcription.enabled_in_config
|
||||
conf.audio_transcription.enabled_in_config == True
|
||||
for conf in config.cameras.values()
|
||||
]
|
||||
):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user