post error logs from frigate after you make that change
error log will say why crashing/stopping. possible that symptom is same but cause is different so important to always verify, especially after any change.
I only reply here and you may post resolution to other thread if ever resolved
frigate.events WARNING : More than 90% of the cache is used.
frigate.events WARNING : Consider increasing space available at /tmp/cache or reducing max_seconds in your clips config.
frigate.events WARNING : Proactively cleaning up the cache...
frigate.events WARNING : More than 90% of the cache is used.
frigate.events WARNING : Consider increasing space available at /tmp/cache or reducing max_seconds in your clips config.
frigate.events WARNING : Proactively cleaning up the cache...
In this case, try increase memory available for /dev/shm in VM or at least check current size
run “df” in vm command line should provide current size.
I have (6) cam with 60mb and doesnt even blink but when using larger input image it freeze
I assuming larger size for /dev/shm will help based on “recommended” from frigate github install guide and the errors you receive that point to this. You should aslo see current use % so this may provide insight of if this is causing error or not. Error says “warning 90%” so I guess maybe it just crash or frigate stop at 100
frigate.app WARNING : Camera voordeur has clips assigned to an input, but clips is not enabled.
frigate.app WARNING : Camera schuurachter has clips assigned to an input, but clips is not enabled.
frigate.app WARNING : Camera parkeerplaats has clips assigned to an input, but clips is not enabled.
frigate.app WARNING : Camera terras has clips assigned to an input, but clips is not enabled.
I see that when I restart frigate and go with another browser/session to the interface the “clips” icon is not turned on. I can turn it on by hand then… how can I “keep it on”?
ffmpeg still need cpu
it is used to retrieve, decode, encode and create videos/clips/images
TPU is only for detection
Part of my config below
use this for example of how clips should be. Must set clips config for each camera and enable clips as role for an available image source
################################
# MQTT #
################################
mqtt:
host: 172.17.0.3
port: 1883
topic_prefix: frigate
client_id: frigate
user: frigate
password: frigate
# Optional: interval in seconds for publishing stats (default: shown below)
stats_interval: 60
################################
# DETECTORS #
################################
detectors:
coral_pci:
type: edgetpu
device: pci
################################
# CAMERAS #
################################
cameras:
#Each role can only be assigned to one input per camera. The options for roles are as follows:
###detect Main feed for object detection
###clips Clips of events from objects detected in the detect feed. docs
###record Saves 60 second segments of the video feed. docs
###rtmp Broadcast as an RTMP feed for other services to consume. doc
#######################################
# GATE-02 #
#######################################
Gate-02:
ffmpeg:
inputs:
- path: rtsp://10.88.20.92:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
- rtmp
- clips
#- record
# width: 2592
# height: 1944
width: 704
height: 480
fps: 10
# Optional: timeout for highest scoring image before allowing it
# to be replaced by a newer image. (default: shown below)
best_image_timeout: 60
record:
# Optional: Enable recording (default: global setting)
enabled: False
# Optional: Number of days to retain (default: global setting)
retain_days: 30
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- animal
- car
- motorcycle
- person
# Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
required_zones: []
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
car: 20
animal: 3
person: 20
motorcycle: 10
Frigate is amazing but the config file is like Homeassistant
I really want to know if this can be split like homeassistants. I only be using frigate about 8 hrs and have shutdown but motioneye and doods in favor of this
the error says you have set something wrong in the config for the “terras” camera for “clips” “max_seconds” value. Check this part of config and make sure no extra spaces or incorrect spacing
extra keys not allowed @ data['cameras']['terras']['clips']['max_seconds']
post current config if you cant find error
EDIT
max_seconds was not in my config example and I not find it in documentation
maybe it not belong in config
Think I got ‘that’ part now running… all cams are now saving clips.
although yesterday it was running more smooth up until this morning and then it froze again… I could not see ‘any’ sensible thing in log so I restarted the container.
will update on this. thanks so far! very much appreciated.
EDIT: Update
It is hopeless… the reason for having a more stable situation yesterday seems to be the fact there was less motion due to wind. This morning ther eis more motion and it keeps crashing…
part of the log I was able to capture:
File "/usr/lib/python3.8/multiprocessing/process.py", line 315 in _bootstrap
File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 75 in _launch
File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 19 in __init__
File "/usr/lib/python3.8/multiprocessing/context.py", line 277 in _Popen
File "/usr/lib/python3.8/multiprocessing/context.py", line 224 in _Popen
File "/usr/lib/python3.8/multiprocessing/process.py", line 121 in start
File "/opt/frigate/frigate/app.py", line 182 in start_camera_capture_processes
File "/opt/frigate/frigate/app.py", line 228 in start
File "/opt/frigate/frigate/__main__.py", line 15 in <module>
File "/usr/lib/python3.8/runpy.py", line 87 in _run_code
File "/usr/lib/python3.8/runpy.py", line 194 in _run_module_as_main
Fatal Python error: Bus error
More info:
root INFO : Detection process didnt exit. Force killing...
detector.coral INFO : Starting detection process: 3528
frigate.edgetpu INFO : Attempting to load TPU as usb
frigate.edgetpu INFO : TPU found
frigate.http DEBUG : Received mqtt message on frigate200/stats.
This is my final config with still the “when a lot of motion it crashes”
#logger:
# Optional: default log level (default: shown below)
#default: debug
ffmpeg:
# Optional: global ffmpeg args (default: shown below)
global_args: -hide_banner -loglevel warning
# Optional: global hwaccel args (default: shown below)
# NOTE: See hardware acceleration docs for your specific device
hwaccel_args: []
# Optional: global input args (default: shown below)
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1
# Optional: global output args
output_args:
# Optional: output args for detect streams (default: shown below)
detect: -f rawvideo -pix_fmt yuv420p
# Optional: output args for record streams (default: shown below)
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# Optional: output args for clips streams (default: shown below)
clips: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# MQTT Config ##########################################################################################################
mqtt:
host: 192.168.1.142
# Optional: port (default: shown below)
port: 1883
# Optional: topic prefix (default: shown below)
# WARNING: must be unique if you are running multiple instances
topic_prefix: frigate200
# Optional: client id (default: shown below)
# WARNING: must be unique if you are running multiple instances
client_id: frigate200
# Optional: user
user: mqtt
# Optional: password
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
# eg. password: '{FRIGATE_MQTT_PASSWORD}'
password: mqtt
# Optional: interval in seconds for publishing stats (default: shown below)
stats_interval: 60
# Cameras Config ######################################################################################################
cameras:
# FRONT Camera ########################################################################################################
voordeur:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/Streaming/Channels/102/
roles:
- detect
- clips
width: 704
height: 576
fps: 6
snapshots:
enabled: true
crop: false
objects:
track:
- person
- dog
- cat
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
- dog
- cat
# Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
required_zones: []
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 200
dog: 20
cat: 200
# SCHUUR Camera ########################################################################################################
schuurachter:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/Streaming/Channels/102/
roles:
- detect
- clips
width: 704
height: 576
fps: 6
snapshots:
enabled: true
crop: false
objects:
track:
- person
- car
- dog
- bicycle
- cat
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
- car
- dog
- bicycle
- cat
# Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
required_zones: []
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 200
car: 200
dog: 20
cat: 200
bicycle: 200
# PARKING Camera ########################################################################################################
parkeerplaats:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/Streaming/Channels/102/
roles:
- detect
- clips
width: 640
height: 480
fps: 6
snapshots:
enabled: true
crop: false
objects:
track:
- person
- car
- dog
- bicycle
motion:
mask: 402,30,461,47,455,170,640,230,640,0,474,0,56,0,58,45,207,57,206,34,233,32,229,88,326,77,354,54,379,38
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
- car
- dog
- bicycle
- cat
# Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
required_zones: []
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 200
car: 200
dog: 20
cat: 200
bicycle: 200
# TERRAS Camera ########################################################################################################
terras:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/Streaming/Channels/101/
roles:
- detect
- clips
width: 3840
height: 2160
fps: 4
snapshots:
enabled: true
crop: false
objects:
track:
- bird
- dog
- cat
motion:
mask: 3840,0,3840,1290,3193,1383,3069,769,3001,378,2723,0
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- bird
- dog
- cat
# Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
required_zones: []
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
bird: 200
dog: 3
cat: 200
detectors:
coral:
type: edgetpu
device: usb