[Camera Support]: Issues Setting Up PTZ and Auto Tracking #9927
-
Describe the problem you are havingTook a bit to get online but have finally got my PTZ online via Onvif (AXIS P5534 ) and the manual Ptz controls work from frigate UI but are quite laggy.
Version13.1 Frigate config fileui:
# Optional: Set the default live mode for cameras in the UI (default: shown below)
#live_mode: mse
# Optional: Set a timezone to use in the UI (default: use browser local time)
# timezone: America/Denver
# Optional: Use an experimental recordings / camera view UI (default: shown below)
use_experimental: false
# Optional: Set the time format used.
# Options are browser, 12hour, or 24hour (default: shown below)
#time_format: browser
# Optional: Set the date style for a specified length.
# Options are: full, long, medium, short
# Examples:
# short: 2/11/23
# medium: Feb 11, 2023
# full: Saturday, February 11, 2023
# (default: shown below).
#date_style: short
# Optional: Set the time style for a specified length.
# Options are: full, long, medium, short
# Examples:
# short: 8:14 PM
# medium: 8:15:22 PM
# full: 8:15:22 PM Mountain Standard Time
# (default: shown below).
# time_style: medium
# Optional: Ability to manually override the date / time styling to use strftime format
# https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
# possible values are shown above (default: not set)
#strftime_fmt: "%Y/%m/%d %H:%M"
#environment_vars:
#logger:
# Optional: default log level (default: shown below)
#default: warning
# Optional: module by module log level configuration
# logs:
#frigate.mqtt: error
#timestamp_style:
# Optional: Position of the timestamp (default: shown below)
# "tl" (top left), "tr" (top right), "bl" (bottom left), "br" (bottom right)
#position: "tl"
# Optional: Format specifier conform to the Python package "datetime" (default: shown below)
# Additional Examples:
# german: "%d.%m.%Y %H:%M:%S"
#format: "%m/%d/%Y %H:%M:%S"
# Optional: Color of font
# color:
# All Required when color is specified (default: shown below)
# red: 255
# green: 255
# blue: 255
# Optional: Line thickness of font (default: shown below)
#thickness: 1
# Optional: Effect of lettering (default: shown below)
# None (No effect),
# "solid" (solid background in inverse color of font)
# "shadow" (shadow for font)
#effect: solid
mqtt:
host: 192.168.1.44
port: 1883
user: mqtt
password:
#birdseye:
#enabled: True
#width: 1280
#height: 760
#quality: 1
#mode: objects
birdseye:
# Optional: Enable birdseye view (default: shown below)
enabled: true
# Optional: Width of the output resolution (default: shown below)
width: 1280
# Optional: Height of the output resolution (default: shown below)
height: 720
# Optional: Encoding quality of the mpeg1 feed (default: shown below)
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
quality: 4
# Optional: Mode of the view. Available options are: objects, motion, and continuous
# objects - cameras are included if they have had a tracked object within the last 30 seconds
# motion - cameras are included if motion was detected in the last 30 seconds
# continuous - all cameras are included always
mode: objects
restream: true
#database:
# path: /media/NAS/cctv/frigate/frigate.db
record:
enabled: true
retain:
days: 14
mode: motion
events:
pre_capture: 6
post_capture: 20
retain:
default: 29
mode: active_objects
snapshots:
enabled: true
timestamp: false
clean_copy: true
bounding_box: true
crop: true
# Optional: height to resize the snapshot to (default: original size)
# height: 300
quality: 100
retain:
default: 15
objects:
person: 15
ffmpeg:
hwaccel_args: preset-nvidia-h264
#Global Object Settings
objects:
track:
- person
- car
- cat
- dog
- bird
- bicycle
#- cell phone
# filters:
# person:
# min_area: 1000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
# min_score: 0.6
# threshold: 0.75
# cat:
# min_area: 1000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
# min_score: 0.6
# threshold: 0.75
#dog:
# min_area: 1000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
# min_score: 0.6
# threshold: 0.75
rtmp:
enabled: false
go2rtc:
streams:
# 360cam:
# - 192.168.1.66:50000/live/mainview3.html?Language=0
#- rtsp://admin:@192.168.1.66:554/MediaInput/h264
# - "ffmpeg:360cam#video=h264"
front_entry:
- rtsp://admin:@192.168.1.226:554/cam/realmonitor?channel=1&subtype=0
- ffmpeg:front_entry#video=h264#audio=aac
front_deck:
- rtsp://admin:@192.168.1.30:554/Streaming/channels/201
driveway_cam:
- rtsp://admin:@192.168.1.30:554/Streaming/channels/101
back_shed:
- rtsp://admin:@192.168.1.30:554/Streaming/channels/301
sand_pit:
- rtsp://admin:@192.168.1.30:554/Streaming/channels/401
ptzcamera:
- rtsp://root:@192.168.1.90:554/axis-media/media.amp
# rtsp://127.0.0.1:8554/sand_pit
# rtsp://127.0.0.1:8554/back_shed
# rtsp://127.0.0.1:8554/driveway_cam
# rtsp://127.0.0.1:8554/front_deck
# rtsp://127.0.0.1:8554/front_entry
# rtsp://127.0.0.1:8554/360cam
detectors:
tensorrt:
type: tensorrt
device: 0 # This is the default, select the first GPU
#coral1:
# type: edgetpu
# device: usb
model:
path: /config/model_cache/tensorrt/yolov7x-320.trt #yolov7-640.trt #yolov7-320.trt #yolov7-320.trt #/config/model_cache/tensorrt/yolov7-320.trt #trt-models/yolov7-tiny-416.trt
input_tensor: nchw
input_pixel_format: rgb
width: 320
height: 320
#########################################################################################################################################
cameras:
########################################################################################################################################
driveway_cam:
ui:
order: 0
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/driveway_cam #rtsp://admin:@192.168.1.30:554/Streaming/channels/101
roles:
- record
- detect
motion:
threshold: 40
#contour_area: 55
#frame_height: 150
mask:
# - 2385,0,2429,519,2114,403,1667,465,1640,354,489,1072,465,2160,0,2160,27,27
# - 3840,2160,1323,2160,1541,1863,1851,1930,2358,1310,2680,1146,2773,767,2692,253,2301,0,3840,0
- 2385,0,2589,249,2534,508,2299,414,2153,485,1678,689,1636,356,433,1607,414,2121,0,1888,27,27
- 3840,2160,1629,2160,1778,1943,1953,1684,2661,1397,2425,1025,2699,750,2764,556,2686,297,2441,449,2163,407,2301,0,3840,0
zones:
zone_driveway_cars:
coordinates: 2258,399,2279,607,2040,752,1738,860,2677,1219,2960,614
objects:
- car
filters:
car:
min_area: 10000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.60
threshold: 0.77
zone_driveway_all:
coordinates: 2168,411,1708,666,1694,866,759,1720,279,1144,0,1388,0,2160,3840,2160,3840,935
objects:
- person
- cat
- dog
- bicycle
# - bird
filters:
person:
min_area: 5000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.77
cat:
min_area: 2500
max_area: 4200
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.75
dog:
min_area: 4000
max_area: 6000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.7
bicycle:
min_area: 5000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.77
# bird:
# min_area: 100
# max_area: 7000
# min_score: 0.6
# threshold: 0.7
zone_driveway_entrance_people:
coordinates: 2195,426,1635,627,2753,1008,2917,656
objects:
- person
filters:
person:
min_area: 5000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.7
zone_cars_road:
coordinates: 2709,215,1907,86,1116,179,455,286,477,453,1405,318,2261,367,2917,587,3172,565,3840,864,3840,573
objects:
- car
- person
- cat
- dog
- bicycle
filters:
car:
min_area: 5000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.75
person:
min_area: 5400
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.70
cat:
min_area: 800
max_area: 4500
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.7
dog:
min_area: 2000
max_area: 9000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.7
bicycle:
min_area: 800
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.77
detect:
width: 3840
height: 2160
fps: 6
objects:
filters:
car:
mask:
- 2748,1309,2976,534,3840,857,3840,2160,1572,2160,0,2160,0,0,1574,0,1662,932
- 1725,918,1659,364,2085,387,2352,538,2227,734
# - 1494,0,806,54,466,150,483,387,532,688,1267,288,1871,271,2869,574,3810,742,3818,25
person:
mask:
- 3120,1178,3207,2160,3785,2160,3796,993
- 385,1374,756,1778,566,2160,0,1943
bicycle:
mask:
- 3483,2160,3294,1438,1034,703,0,1380,0,2160
record:
events:
required_zones:
- zone_driveway_cars
- zone_driveway_all
- zone_cars_road
- zone_driveway_entrance_people
snapshots:
required_zones:
- zone_driveway_cars
- zone_driveway_all
- zone_cars_road
- zone_driveway_entrance_people
###############################################################################################################################
#####################################################################################################################################
front_entry:
ui:
order: 1
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/front_entry #rtsp://admin:@192.168.1.226:554/cam/realmonitor?channel=1&subtype=0
roles:
- record
- detect
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps
1 -strftime 1 -c:v copy -c:a copy
motion:
threshold: 25
#contour_area: 55
#frame_height: 150
mask:
- 1226,266,336,499,378,675,21,802,23,0,3072,0,3072,548,2599,383,2185,507
- 621,422,453,766,1014,1177,1942,1709,2418,2048,3072,2048,2811,1373,2878,1050,2625,820,2240,1107
- 0,2048,1645,2048,1707,1901,959,1350,835,1156,649,1089,0,841
zones:
zone_front_entry_people:
coordinates: 3072,1630,2372,1180,2036,1027,2386,732,2753,915,3072,997
objects:
- person
filters:
person:
min_area: 15000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.82
zone_front_entry_area:
coordinates: 462,2048,2793,2048,2612,1857,488,627,0,806,293,1406,161,1493
objects:
- person
# - cell phone
- cat
- dog
# - bird
filters:
# cell phone:
# min_score: 0.3
# threshold: 0.7
person:
min_area: 91500
# max_area: 100000
# min_ratio: 0.7
# max_ratio: 1.2
min_score: 0.6
threshold: 0.89
cat:
min_area: 5000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.80
dog:
min_area: 8000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.84
# bird:
## min_area: 100
# max_area: 7000
# min_score: 0.6
# threshold: 0.7
zone_front_entry_dakoats_door:
coordinates: 2561,527,2848,645,2783,863,2413,712
objects:
- person
filters:
person:
min_area: 8000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.79
zone_front_entry_cat:
coordinates: 177,1192,840,854,505,588,0,808
objects:
- cat
- dog
filters:
cat:
min_area: 30000
# max_area: 39000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.80
dog:
min_area: 38000
# max_area: 39000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.85
detect:
width: 3072
height: 2048
fps: 6
objects:
filters:
person:
mask:
- 500,456,472,83,753,0,1125,0,1117,297
- 827,1066,2515,2048,3072,2048,3072,1650,2919,1512,1641,749,596,437,566,862
- 601,1134,1713,1878,1621,2048,0,2048,0,1365,0,1080
- 0,236,279,146,346,614,0,777
car:
mask:
- 3072,1664,2686,1361,2814,920,3072,789
record:
events:
required_zones:
- zone_front_entry_people
- zone_front_entry_dakoats_door
- zone_front_entry_area
- zone_front_entry_cat
snapshots:
required_zones:
- zone_front_entry_people
- zone_front_entry_dakoats_door
- zone_front_entry_area
- zone_front_entry_cat
####################################################################################################################################################
front_deck:
ui:
order: 2
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/front_deck #rtsp://admin:@192.168.1.30:554/Streaming/channels/201
roles:
- record
- detect
motion:
threshold: 38
#contour_area: 55
#frame_height: 150
mask:
- 0,2160,857,2160,169,793,0,0
- 2664,537,3120,343,3323,504,3220,873,3627,1261,3611,1623
- 2124,1245,2276,1005,2567,1154,2460,1426
- 2017,215,2079,488,2051,869,1442,617,1434,343,959,188,698,233,0,0,1966,0,2050,0,2528,0,3840,0,3840,482,3468,284,2912,218
zones:
zone_front_deck:
coordinates: 34,2160,0,270,2267,106,3115,900,3840,1748,3840,2160
objects:
- person
- cat
- dog
- bird
filters:
person:
min_area: 210000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.78
cat:
min_area: 100000
# max_area: 500000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.5
threshold: 0.70
dog:
min_area: 100000
# max_area: 500000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.5
threshold: 0.75
bird:
min_area: 50
max_area: 4000
min_score: 0.6
threshold: 0.7
zone_front_deck_road:
coordinates: 2726,332,2461,130,2626,0,3840,452,3840,1473
objects:
- car
- person
- dog
- bicycle
filters:
car:
min_area: 12000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.60
person:
min_area: 1900
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.65
dog:
min_area: 800
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.65
bicycle:
min_area: 800
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.67
detect:
width: 3840
height: 2160
fps: 8
objects:
filters:
car:
mask:
- 2254,0,3840,1401,3840,2160,0,2160,0,752,0,0
person:
mask:
- 3608,598,3585,702,3495,650,3530,543
record:
events:
required_zones:
- zone_front_deck
- zone_front_deck_road
snapshots:
required_zones:
- zone_front_deck
- zone_front_deck_road
###############################################################################################################################################################
back_shed:
ui:
order: 3
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/back_shed #rtsp://admin:@192.168.1.30:554/Streaming/channels/301
roles:
- record
- detect
motion:
# threshold: 20
#contour_area: 55
#frame_height: 150
mask:
- 0,2160,1645,2160,656,1253,357,1125,87,879,71,883,0,1684
- 0,783,1187,463,2323,480,3840,803,3840,0,877,0,0,0
- 3381,252,3120,407,3044,826,3581,939,3557,520
detect:
width: 3840
height: 2160
fps: 6
objects:
track:
- person
- cat
- dog
# - bird
filters:
person:
min_area: 62000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.75
mask:
- 281,1167,162,918,0,879,0,2160,1241,2160
cat:
min_area: 29000
max_area: 155000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.7
dog:
min_area: 29000
max_area: 155000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.7
# bird:
# min_area: 100
# max_area: 7000
# min_score: 0.6
# threshold: 0.7
##########################################################################################################################################################
sand_pit:
ui:
order: 4
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/sand_pit #rtsp://admin:@192.168.1.30:554/Streaming/channels/401
roles:
- record
- detect
motion:
threshold: 28
#contour_area: 55
#frame_height: 150
mask:
- 0,2160,0,0,1419,0,1387,230,1358,627,899,708,905,595,48,766,110,1283,508,1209,982,1793,1128,2160
- 453,0,3840,0,3840,972,2866,614,2897,905,3171,637,3436,831,3388,1193,3666,1232,3840,1322,3840,2160,3031,2160,1793,1232,1626,934,1762,449,1442,388,1429,233
- 702,795,1148,905,1445,899,1671,1290,1400,1552,731,1545,336,1089
zones:
zone_sand_pit:
coordinates: 32,2136,0,890,1278,647,1293,546,1753,543,2876,902,3673,1539,3840,2160
objects:
- person
- cat
- dog
# - bird
filters:
person:
min_area: 100000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.79
cat:
min_area: 6000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.7
dog:
min_area: 8000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
# min_score: 0.5
threshold: 0.7
# bird:
# min_area: 100
# max_area: 7000
# min_score: 0.6
# threshold: 0.7
zone_sand_pit_over_fence_area:
coordinates: 2984,848,1915,489,1443,376,1450,224,3840,651,3815,1669
objects:
- person
- car
- bicycle
filters:
person:
min_area: 900
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.6
car:
min_area: 13000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.65
bicycle:
min_area: 800
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.77
detect:
width: 3840
height: 2160
fps: 6
record:
events:
required_zones:
- zone_sand_pit_over_fence_area
- zone_sand_pit
snapshots:
required_zones:
- zone_sand_pit_over_fence_area
- zone_sand_pit
###########################################################################################################################
360cam:
ui:
order: 6
ffmpeg:
inputs:
- path: rtsp://admin:@192.168.1.66:554/MediaInput/h264
roles:
- record
- detect
motion:
threshold: 75
contour_area: 55
#frame_height: 150
mask:
- 1256,302,1920,360,1920,0,803,0,870,48,1038,40,1259,61
- 0,0,0,918,280,826,1287,693,1366,768,1540,723,1524,540,787,543,626,535,692,0
- 1920,535,1920,1080,1681,1080,1658,551
zones:
zone_360_nextdoor:
coordinates: 1561,262,1276,198,1057,0,1203,0,1920,0,1920,261
objects:
- person
filters:
person:
min_area: 10000
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.75
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- cat
- dog
# - bird
filters:
person:
min_area: 19600
# max_area: 100000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.85
cat:
min_area: 5000
max_area: 24000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.75
dog:
min_area: 5000
max_area: 24000
# min_ratio: 0.5
# max_ratio: 2.0
min_score: 0.6
threshold: 0.75
# bird:
# min_area: 100
# max_area: 7000
# min_score: 0.6
# threshold: 0.7
#####################################################################################################################################
#testing
#####################################################################################################################################
# restream formate rtsp://127.0.0.1:8554/front_deck - input_args: preset-rtsp-restream
###########################################
################# PTZ ###############
###########################################
ptzcamera:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/ptzcamera
roles:
# - record
- detect
onvif:
host: 192.168.1.90
port: 80
user: admin
password: admin
autotracking:
# Optional: enable/disable object autotracking. (default: shown below)
enabled: false
# Optional: calibrate the camera on startup (default: shown below)
# A calibration will move the PTZ in increments and measure the time it takes to move.
# The results are used to help estimate the position of tracked objects after a camera move.
# Frigate will update your config file automatically after a calibration with
# a "movement_weights" entry for the camera. You should then set calibrate_on_startup to False.
calibrate_on_startup: false
# Optional: the mode to use for zooming in/out on objects during autotracking. (default: shown below)
# Available options are: disabled, absolute, and relative
# disabled - don't zoom in/out on autotracked objects, use pan/tilt only
# absolute - use absolute zooming (supported by most PTZ capable cameras)
# relative - use relative zooming (not supported on all PTZs, but makes concurrent pan/tilt/zoom movements)
zooming: disabled
# Optional: A value to change the behavior of zooming on autotracked objects. (default: shown below)
# A lower value will keep more of the scene in view around a tracked object.
# A higher value will zoom in more on a tracked object, but Frigate may lose tracking more quickly.
# The value should be between 0.1 and 0.75
zoom_factor: 0.3
# Optional: list of objects to track from labelmap.txt (default: shown below)
track:
- person
# Required: Begin automatically tracking an object when it enters any of the listed zones.
required_zones:
- zone_name
# Required: Name of ONVIF preset in camera's firmware to return to when tracking is over. (default: shown below)
return_preset: home
# Optional: Seconds to delay before returning to preset. (default: shown below)
timeout: 10
# Optional: Values generated automatically by a camera calibration. Do not modify these manually. (default: shown below)
# movement_weights: Relevant log outputdocker-compose logs
frigate | s6-rc: info: service s6rc-fdholder: starting
frigate | s6-rc: info: service s6rc-oneshot-runner: starting
frigate | s6-rc: info: service s6rc-oneshot-runner successfully started
frigate | s6-rc: info: service fix-attrs: starting
frigate | s6-rc: info: service s6rc-fdholder successfully started
frigate | s6-rc: info: service fix-attrs successfully started
frigate | s6-rc: info: service legacy-cont-init: starting
frigate | s6-rc: info: service legacy-cont-init successfully started
frigate | s6-rc: info: service trt-model-prepare: starting
frigate | s6-rc: info: service log-prepare: starting
frigate | s6-rc: info: service log-prepare successfully started
frigate | s6-rc: info: service nginx-log: starting
frigate | s6-rc: info: service go2rtc-log: starting
frigate | s6-rc: info: service frigate-log: starting
frigate | s6-rc: info: service go2rtc-log successfully started
frigate | s6-rc: info: service go2rtc: starting
frigate | s6-rc: info: service nginx-log successfully started
frigate | s6-rc: info: service frigate-log successfully started
frigate | s6-rc: info: service go2rtc successfully started
frigate | s6-rc: info: service go2rtc-healthcheck: starting
frigate | s6-rc: info: service go2rtc-healthcheck successfully started
frigate | No models to convert.
frigate | s6-rc: info: service trt-model-prepare successfully started
frigate | s6-rc: info: service frigate: starting
frigate | s6-rc: info: service frigate successfully started
frigate | s6-rc: info: service nginx: starting
frigate | 2024-02-20 15:53:09.105768970 [INFO] Preparing new go2rtc config...
frigate | s6-rc: info: service nginx successfully started
frigate | s6-rc: info: service legacy-services: starting
frigate | 2024-02-20 15:53:09.109799487 [INFO] Preparing Frigate...
frigate | 2024-02-20 15:53:09.112219754 [INFO] Starting NGINX...
frigate | s6-rc: info: service legacy-services successfully started
frigate | 2024-02-20 15:53:09.123284037 [INFO] Starting Frigate...
frigate | 2024-02-20 15:53:09.393939697 [INFO] Starting go2rtc...
frigate | 2024-02-20 15:53:09.448123030 15:53:09.448 INF go2rtc version 1.8.4 linux/amd64
frigate | 2024-02-20 15:53:09.448467875 15:53:09.448 INF [api] listen addr=:1984
frigate | 2024-02-20 15:53:09.448534731 15:53:09.448 INF [rtsp] listen addr=:8554
frigate | 2024-02-20 15:53:09.448641090 15:53:09.448 INF [webrtc] listen addr=:8555
frigate | 2024-02-20 15:53:10.270019412 [2024-02-20 15:53:10] frigate.app INFO : Starting Frigate (0.13.1-34fb1c2)
frigate | 2024-02-20 15:53:11.141772608 2024/02/20 15:53:11 [error] 165#165: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.208.1, server: , request: "GET /ws HTTP/1.1", upstream: "http://127.0.0.1:5002/", host: "localhost:5000"
frigate | 2024-02-20 15:53:11.141786047 192.168.208.1 - - [20/Feb/2024:15:53:11 +1300] "GET /ws HTTP/1.1" 502 157 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0" "-"
frigate | 2024-02-20 15:53:12.115755042 [2024-02-20 15:53:12] peewee_migrate.logs INFO : Starting migrations
frigate | 2024-02-20 15:53:12.118212008 [2024-02-20 15:53:12] peewee_migrate.logs INFO : There is nothing to migrate
frigate | 2024-02-20 15:53:12.406955748 [2024-02-20 15:53:12] frigate.app INFO : Recording process started: 474
frigate | 2024-02-20 15:53:12.409189265 [2024-02-20 15:53:12] frigate.app INFO : go2rtc process pid: 102
frigate | 2024-02-20 15:53:12.436445771 [2024-02-20 15:53:12] frigate.app INFO : Output process started: 486
frigate | 2024-02-20 15:53:12.444964692 [2024-02-20 15:53:12] detector.tensorrt INFO : Starting detection process: 484
frigate | 2024-02-20 15:53:12.613384474 [2024-02-20 15:53:12] frigate.detectors.plugins.tensorrt INFO : Loaded engine size: 148 MiB
frigate | 2024-02-20 15:53:12.738118221 [2024-02-20 15:53:12] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +7, GPU +8, now: CPU 385, GPU 417 (MiB)
frigate | 2024-02-20 15:53:12.741204190 [2024-02-20 15:53:12] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuDNN: CPU +1, GPU +10, now: CPU 386, GPU 427 (MiB)
frigate | 2024-02-20 15:53:12.749683316 [2024-02-20 15:53:12] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +147, now: CPU 0, GPU 147 (MiB)
frigate | 2024-02-20 15:53:12.752842027 [2024-02-20 15:53:12] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 238, GPU 419 (MiB)
frigate | 2024-02-20 15:53:12.752909855 [2024-02-20 15:53:12] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuDNN: CPU +0, GPU +8, now: CPU 238, GPU 427 (MiB)
frigate | 2024-02-20 15:53:12.752911906 [2024-02-20 15:53:12] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +19, now: CPU 0, GPU 166 (MiB)
frigate | 2024-02-20 15:53:13.277994962 2024/02/20 15:53:13 [error] 170#170: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.44, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001stats", host: "192.168.1.95:5000"
frigate | 2024-02-20 15:53:16.714793303 Traceback (most recent call last):
frigate | 2024-02-20 15:53:16.714800039 File "/usr/local/lib/python3.9/dist-packages/onvif/client.py", line 23, in wrapped
frigate | 2024-02-20 15:53:16.714988167 return func(*args, **kwargs)
frigate | 2024-02-20 15:53:16.714994061 File "/usr/local/lib/python3.9/dist-packages/onvif/client.py", line 153, in wrapped
frigate | 2024-02-20 15:53:16.715126306 return call(params, callback)
frigate | 2024-02-20 15:53:16.715132124 File "/usr/local/lib/python3.9/dist-packages/onvif/client.py", line 140, in call
frigate | 2024-02-20 15:53:16.715232299 ret = func(**params)
frigate | 2024-02-20 15:53:16.715236317 File "/usr/local/lib/python3.9/dist-packages/zeep/proxy.py", line 46, in __call__
frigate | 2024-02-20 15:53:16.715331261 return self._proxy._binding.send(
frigate | 2024-02-20 15:53:16.715334999 File "/usr/local/lib/python3.9/dist-packages/zeep/wsdl/bindings/soap.py", line 135, in send
frigate | 2024-02-20 15:53:16.715407892 return self.process_reply(client, operation_obj, response)
frigate | 2024-02-20 15:53:16.715418963 File "/usr/local/lib/python3.9/dist-packages/zeep/wsdl/bindings/soap.py", line 229, in process_reply
frigate | 2024-02-20 15:53:16.715530004 return self.process_error(doc, operation)
frigate | 2024-02-20 15:53:16.715540842 File "/usr/local/lib/python3.9/dist-packages/zeep/wsdl/bindings/soap.py", line 391, in process_error
frigate | 2024-02-20 15:53:16.715713590 raise Fault(
frigate | 2024-02-20 15:53:16.715728369 zeep.exceptions.Fault: Action failed
frigate | 2024-02-20 15:53:16.715736703
frigate | 2024-02-20 15:53:16.715739865 During handling of the above exception, another exception occurred:
frigate | 2024-02-20 15:53:16.715742169
frigate | 2024-02-20 15:53:16.715744828 Traceback (most recent call last):
frigate | 2024-02-20 15:53:16.715753412 File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
frigate | 2024-02-20 15:53:16.715888150 return _run_code(code, main_globals, None,
frigate | 2024-02-20 15:53:16.715912556 File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
frigate | 2024-02-20 15:53:16.716032553 exec(code, run_globals)
frigate | 2024-02-20 15:53:16.716038141 File "/opt/frigate/frigate/__main__.py", line 17, in <module>
frigate | 2024-02-20 15:53:16.716078968 frigate_app.start()
frigate | 2024-02-20 15:53:16.716082797 File "/opt/frigate/frigate/app.py", line 685, in start
frigate | 2024-02-20 15:53:16.716369715 self.start_ptz_autotracker()
frigate | 2024-02-20 15:53:16.716375507 File "/opt/frigate/frigate/app.py", line 461, in start_ptz_autotracker
frigate | 2024-02-20 15:53:16.716557269 self.ptz_autotracker_thread = PtzAutoTrackerThread(
frigate | 2024-02-20 15:53:16.716563095 File "/opt/frigate/frigate/ptz/autotrack.py", line 153, in __init__
frigate | 2024-02-20 15:53:16.716672293 self.ptz_autotracker = PtzAutoTracker(
frigate | 2024-02-20 15:53:16.716678022 File "/opt/frigate/frigate/ptz/autotrack.py", line 215, in __init__
frigate | 2024-02-20 15:53:16.716797017 self._autotracker_setup(camera_config, camera)
frigate | 2024-02-20 15:53:16.716802850 File "/opt/frigate/frigate/ptz/autotrack.py", line 267, in _autotracker_setup
frigate | 2024-02-20 15:53:16.716943761 movestatus_supported = self.onvif.get_service_capabilities(camera)
frigate | 2024-02-20 15:53:16.716949764 File "/opt/frigate/frigate/ptz/onvif.py", line 505, in get_service_capabilities
frigate | 2024-02-20 15:53:16.717089431 service_capabilities = onvif.get_service("ptz").GetServiceCapabilities(
frigate | 2024-02-20 15:53:16.717101884 File "/usr/local/lib/python3.9/dist-packages/onvif/client.py", line 26, in wrapped
frigate | 2024-02-20 15:53:16.717169162 raise ONVIFError(err)
frigate | 2024-02-20 15:53:16.717182922 onvif.exceptions.ONVIFError: Unknown error: Action failed FFprobe output from your cameraFfprobe Output
Stream 0:
Return Code: 0
Video:
Codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
Resolution: 1280x720
FPS: 25/1
Audio:
Codec: AAC (Advanced Audio Coding Frigate statsVainfo Output
Return Code: 0
Process Output:
vainfo: VA-API version: 1.17 (libva 2.10.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointFEI
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
Copy
Close Operating systemDebian Install methodDocker Compose Coral versionOther Network connectionWired Camera make and modelAXIS P5534 Any other information that may be helpfulthis image is when Frigate loads up and I disable all the auto-track options |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 7 replies
-
CC @hawkeye217 |
Beta Was this translation helpful? Give feedback.
-
Can you add this to your
|
Beta Was this translation helpful? Give feedback.
-
Ok first log output is with the tracking config disabled and frigate working but no tracking.
Part 2
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the logs! Unfortunately your camera doesn't fully conform the ONVIF standard, which is why you're seeing the error. The ONVIF protocol says here that the Your camera's firmware is returning an unknown error when the We've encountered a number of cameras like yours that don't implement the ONVIF standard properly. Some work is being done for the next version of Frigate that may bring autotracking to more cameras, but for now you might want to see if there's a firmware update available for your camera. |
Beta Was this translation helpful? Give feedback.
-
Awwww dam, I have like 5 of these PZTs lol I wonder if other fw versions would support it if I run a update. How would one check if a camera supports this GetServiceCapabilities. Do read the firmware docs for that specific camera? |
Beta Was this translation helpful? Give feedback.
-
Thank you guys for all the help. Very much appreciated. Version 13 is working well quiet for me sofar impressed. Shame about the PTZs I have 😔. I love having people detection triggering my Google speakers to tell me what area a person's in when I arm my perimeter Alarm. Feel alot safer at night lol. Thank you guys so much. Definitely do frigate + soon |
Beta Was this translation helpful? Give feedback.
Thanks for the logs!
Unfortunately your camera doesn't fully conform the ONVIF standard, which is why you're seeing the error.
The ONVIF protocol says here that the
GetServiceCapabilities
call should returnTrue
if the camera supportsMoveStatus
information. ThisMoveStatus
parameter is used by Frigate's autotracking to determine when your PTZ is moving.Your camera's firmware is returning an unknown error when the
GetServiceCapabilities
call is sent to it.We've encountered a number of cameras like yours that don't implement the ONVIF standard properly. Some work is being done for the next version of Frigate that may bring autotracking to more cameras, but for now you might want to see i…