Have run this configuration for a couple of months and it has worked. But for the last 1-2 weeks, I only get a black box on the camera framsida. If I receive the broadcast via the go2rtc integration, it will also work in the tapos app. What can I change in the code?
mqtt:
enabled: True
host: 192.168.68.123
#host: homeasissistant.local
topic_prefix: frigate
user: mqttBroker
password: Bor0738198536
stats_interval: 300
database:
path: /config/frigate.db
detectors:
coral:
type: edgetpu
device: usb
timestamp_style:
position: "tr"
format: "%d/%m/%Y %H:%M:%S"
thickness: 2
#ffmpeg:
# hwaccel_args: -c:v h264_v4l2m2m
#- preset-rpi-64-h264
#ffmpeg:
# hwaccel_args:
# - -c:v
# - h264_v4l2m2m
# - preset-rpi-64-h264
##### från github####
ffmpeg:
hwaccel_args: preset-rpi-64-h264
###########https://www.homeautomationguy.io/blog/home-assistant-tips/tweaking-frigate-to-get-the-best-results
#### användarnamn: lösenord
go2rtc:
streams:
carport:
- rtsp://daaxcamera:[email protected]:554/stream1
#- tapo://admin:[email protected]
carport_sub:
- rtsp://daaxcamera:[email protected]:554/stream2
- ffmpeg:carport_sub
#- "ffmpeg:carport_sub#audio=aac"
#- tapo://admin:[email protected]
hallen:
- ffmpeg:rtsp://admin:[email protected]:554/live/profile.0/video
hallen_sub:
- ffmpeg:rtsp://admin:[email protected]:554/live/profile.1/video
framsida:
- ffmpeg:rtsp://daaxcamera1:[email protected]:554/stream1
framsida_sub:
- ffmpeg:rtsp://daaxcamera1:[email protected]:554/stream2
#- ffmpeg:framsida_sub
test:
- ffmpeg:rtsp://admin:[email protected]:554/live/profile.0/video
test_sub:
- ffmpeg:rtsp://admin:[email protected]:554/live/profile.1/video
hallen_ny:
- rtsp://daaxcamera3:[email protected]:554/stream1
- "ffmpeg:hallen_ny#audio=aac"
hallen_ny_sub:
- rtsp://daaxcamera3:[email protected]:554/stream2
- ffmpeg:hallen_ny_sub
#- "ffmpeg:hallen_nu#video=h264#audio=aac"
cameras:
##### UTE BAKSIDA #####
camera_carport: # <------ Namnge kameran
ffmpeg:
inputs:
- path: rtsp://192.168.68.123:8554/carport
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://192.168.68.123:8554/carport_sub
input_args: preset-rtsp-restream
roles:
- detect
# input_args: -rtsp_transport tcp
detect:
enabled: true # <---- disable detection until you have a working camera feed
width: 640 # <---- update for your camera's resolution 2304
height: 360 # <---- update for your camera's resolution 1296
fps: 5
stationary:
interval: 20
threshold: 50
rtmp:
enabled: False
snapshots: # <----- Enable snapshots
enabled: True
timestamp: True
bounding_box: True
required_zones:
- zone_infart_carport
- zon_trapp
- zon_infart
retain:
default: 10
record:
enabled: True
retain:
days: 5
mode: motion
events:
pre_capture: 15
post_capture: 20
required_zones:
- zone_infart_carport
- zon_trapp
- zon_infart
retain:
default: 8
mode: active_objects
objects:
track:
- person
- car
- bicycle
- motorcycle
- cat
- dog
filters:
bicycle:
mask:
car:
mask:
cat:
mask:
dog:
mask:
motorcycle:
mask:
person:
mask:
- 237,360,228,333,180,336,178,360
threshold: 0.7
motion:
mask:
- 255,0,0,0,0,37,253,31
- 640,0,640,65,461,0
- 640,249,599,226,583,220,573,204,558,184,572,173,586,159,610,145,640,137
zones:
#zon_carport:
# coordinates: 372,81,617,202,640,97,396,0
# objects:
# - person
zon_trapp:
coordinates: 86,360,117,360,113,229,85,132,38,144
objects:
- person
- cat
- dog
zon_infart:
coordinates: 361,142,394,223,551,337,399,360,311,360,81,67,152,51,197,51,268,44,395,57
objects:
- car
- bicycle
- motorcycle
zone_infart_carport:
coordinates: 364,360,640,360,640,102,402,0,145,43,139,130,264,169,249,237
objects:
- person
- cat
- dog
#####ute framsida #####
camera_framsida: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://192.168.68.123:8554/framsida
input_args: preset-rtsp-restream
#- path: rtsp://daaxcamera:[email protected]:554/stream1 # <----- The stream you want to use for detection
roles:
- record
- path: rtsp://192.168.68.123:8554/framsida_sub
input_args: preset-rtsp-restream
#- path: rtsp://daaxcamera1:[email protected]:554/stream2 # <----- The stream you want to use for detection
roles:
- detect
#- rtmp
#####test 14/01###
# input_args: -rtsp_transport tcp
detect:
enabled: true # <---- disable detection until you have a working camera feed
width: 640 # <---- update for your camera's resolution 2304
height: 360 # <---- update for your camera's resolution 1296
fps: 5
objects:
track:
- person
- cat
- dog
filters:
person:
threshold: 0.65
rtmp:
enabled: False
snapshots: # <----- Enable snapshots
enabled: True
timestamp: True
bounding_box: True
required_zones:
- zone_framsida
retain:
default: 8
record:
enabled: True
retain:
days: 5
mode: motion
events:
pre_capture: 15
post_capture: 20
required_zones:
- zone_framsida
retain:
default: 8
mode: active_objects
motion:
mask:
- 0,0,0,50,284,47,285,0
- 640,0,640,320,640,360,279,360,288,304,456,339,557,77,565,0,640,0
zones:
zone_framsida:
coordinates: 0,360,440,360,466,311,474,260,421,171,407,153,421,106,516,113,535,79,508,54,0,54
objects:
- person
camera_hallen_ny: # <------ Name the camera
ffmpeg:
#output_args: #####för ljud
# record: preset-record-generic-audio-copy #####för ljud
inputs:
- path: rtsp://192.168.68.123:8554/hallen_ny
input_args: preset-rtsp-restream
#- path: rtsp://daaxcamera:[email protected]:554/stream1 # <----- The stream you want to use for detection
roles:
- record
- path: rtsp://192.168.68.123:8554/hallen_ny_sub
input_args: preset-rtsp-restream
#- path: rtsp://daaxcamera1:[email protected]:554/stream2 # <----- The stream you want to use for detection
roles:
- detect
#- rtmp
#####test 14/01###
# input_args: -rtsp_transport tcp
detect:
enabled: true # <---- disable detection until you have a working camera feed
width: 640 # <---- update for your camera's resolution 2304
height: 360 # <---- update for your camera's resolution 1296
fps: 5
snapshots: # <----- Enable snapshots
enabled: True
timestamp: True
bounding_box: True
#required_zones:
#- zone_0
retain:
default: 3
record:
enabled: True
retain:
days: 5
mode: motion
events:
retain:
default: 8
mode: active_objects
pre_capture: 20
# Optional: Number of seconds after the event to include (default: shown below)
post_capture: 20
objects:
track:
- person
filters:
person:
threshold: 0.7
motion:
mask:
- 0,0,0,50,284,47,285,0