blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18.94k stars 1.73k forks source link

[Support]: Turn off Camera - Work around #2353

Closed sudheeshb closed 2 years ago

sudheeshb commented 2 years ago

Describe the problem you are having

Hello,

I know here are multiple request to add a feature for enabling/disabling camera. I am trying to achieve same thing with a work around till the proper solution is available. I need couple of cameras ( out of total 4 ) to be turned off completely during day time.

Initially I used the single config file, and just turned off the camera ( via automation based POE switch ) during day time. But ffmpeg is still running and keeps generating errors. Not a good solution.

Now I am using two config files one with two camera and the other with 4 cameras, and night time I use config file with two cameras. I also restart the frigate container after the config file swap. This works fine and no ffmpeg errors as only two camera is present in the config file. But looks like this approach delete the clips/recording related to the camera's which are turned off. Is that expected?. Any other work around possible for this?

Version

0.10.0 Beta 4

Frigate config file

Couple of files used.  One with two camera and the other with 4.  Config files swapped two times a day followed with frigate restart.

Relevant log output

None

FFprobe output from your camera

None

Frigate stats

No response

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

Amcrest

Any other information that may be helpful

No response

blakeblackshear commented 2 years ago

I can't think of any workarounds.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.