Help with ONVIF control for EmpireTech/Dahua SD1A404XB-GNR #10011
-
Describe the problem you are havingNo control for EmpireTech/Dahua camera, same one as listed as the dev PTZ camera. Hoping someone can take a look at the logs below and point me in the right direction. The PTZ camera test script fails with this error (full log at the bottom): Traceback (most recent call last): Version0.13.2 Frigate config filedriveway:
ffmpeg:
inputs:
- path: rtsp://admin:password@192.168.88.51:554/cam/realmonitor?channel=1&subtype=1 # subnet
roles:
- detect
- record
onvif:
host: 192.168.88.51
port: 80
user: admin
password: password
# autotracking:
# enabled: False
# calibrate_on_startup: True
# zooming: relative
# zoom_factor: 0.3
# track:
# - person
# - vehicle
# - sheep
# - cat
# - dog
# required_zones:
# - zone_driveway
# return_preset: Preset
# timeout: 10 Relevant log output2024-02-23 16:29:06.284570270 [INFO] Preparing Frigate...
2024-02-23 16:29:06.316968511 [INFO] Starting Frigate...
2024-02-23 16:29:08.735105773 [2024-02-23 16:29:08] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
2024-02-23 16:29:09.987064570 [2024-02-23 16:29:09] peewee_migrate.logs INFO : Starting migrations
2024-02-23 16:29:09.994310704 [2024-02-23 16:29:09] peewee_migrate.logs INFO : There is nothing to migrate
2024-02-23 16:29:10.288125476 [2024-02-23 16:29:10] frigate.app INFO : Recording process started: 303
2024-02-23 16:29:10.292196820 [2024-02-23 16:29:10] frigate.app INFO : go2rtc process pid: 89
2024-02-23 16:29:10.336282941 [2024-02-23 16:29:10] frigate.app INFO : Output process started: 316
2024-02-23 16:29:10.381714964 [2024-02-23 16:29:10] frigate.app INFO : Camera processor started for doorbell: 324
2024-02-23 16:29:10.390536948 [2024-02-23 16:29:10] frigate.app INFO : Camera processor started for driveway: 325
2024-02-23 16:29:10.401230647 [2024-02-23 16:29:10] frigate.app INFO : Camera processor started for patio: 328
2024-02-23 16:29:10.421807813 [2024-02-23 16:29:10] frigate.app INFO : Camera processor started for rear: 330
2024-02-23 16:29:10.433666229 [2024-02-23 16:29:10] frigate.app INFO : Camera processor started for rear-door: 332
2024-02-23 16:29:10.453870512 [2024-02-23 16:29:10] frigate.app INFO : Capture process started for doorbell: 335
2024-02-23 16:29:10.465456277 [2024-02-23 16:29:10] frigate.app INFO : Capture process started for driveway: 340
2024-02-23 16:29:10.493935135 [2024-02-23 16:29:10] frigate.app INFO : Capture process started for patio: 347
2024-02-23 16:29:10.513811857 [2024-02-23 16:29:10] frigate.app INFO : Capture process started for rear: 350
2024-02-23 16:29:10.530874510 [2024-02-23 16:29:10] frigate.app INFO : Capture process started for rear-door: 355
2024-02-23 16:29:12.979134161 [2024-02-23 16:29:10] detector.coral INFO : Starting detection process: 313
2024-02-23 16:29:12.985786309 [2024-02-23 16:29:10] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
2024-02-23 16:29:12.986521627 [2024-02-23 16:29:12] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-02-23 17:27:49.164605533 [2024-02-23 17:27:49] frigate.ptz.onvif DEBUG : Onvif media xaddr for driveway: http://192.168.88.51/onvif/media_service
2024-02-23 17:27:49.166409564 [2024-02-23 17:27:49] frigate.ptz.onvif DEBUG : Onvif capabilities for driveway: ('http://192.168.88.51/onvif/ptz_service', '/usr/local/lib/python3.9/site-packages/wsdl/ptz.wsdl', '{http://www.onvif.org/ver20/ptz/wsdl}PTZBinding')
2024-02-23 17:27:49.237493590 [2024-02-23 17:27:49] frigate.ptz.onvif DEBUG : Selected Onvif profile for driveway: {
2024-02-23 17:27:49.237500889 'Name': 'IH1024x768',
2024-02-23 17:27:49.237502609 'VideoSourceConfiguration': {
2024-02-23 17:27:49.237504226 'Name': 'VideoSourceConfig_Channel1',
2024-02-23 17:27:49.237507418 'UseCount': 5,
2024-02-23 17:27:49.237508990 'SourceToken': '00000',
2024-02-23 17:27:49.237530067 'Bounds': {
2024-02-23 17:27:49.237531818 'x': 0,
2024-02-23 17:27:49.237533283 'y': 0,
2024-02-23 17:27:49.237534648 'width': 2048,
2024-02-23 17:27:49.237536871 'height': 1536
2024-02-23 17:27:49.237538131 },
2024-02-23 17:27:49.237539585 '_value_1': [
2024-02-23 17:27:49.237541405 <Element {http://www.onvif.org/ver10/schema}Extension at 0x7ff7ac6272c0>
2024-02-23 17:27:49.237567046 ],
2024-02-23 17:27:49.237569002 'Extension': None,
2024-02-23 17:27:49.237570366 'token': '00000',
2024-02-23 17:27:49.237571849 '_attr_1': {
2024-02-23 17:27:49.237573053 }
2024-02-23 17:27:49.237574229 },
2024-02-23 17:27:49.237575624 'AudioSourceConfiguration': {
2024-02-23 17:27:49.237593069 'Name': 'AudioSourceConfig_Channel1',
2024-02-23 17:27:49.237594975 'UseCount': 5,
2024-02-23 17:27:49.237596332 'SourceToken': '00000',
2024-02-23 17:27:49.237597887 '_value_1': None,
2024-02-23 17:27:49.237599196 'token': '00000',
2024-02-23 17:27:49.237600462 '_attr_1': {
2024-02-23 17:27:49.237601666 }
2024-02-23 17:27:49.237602972 },
2024-02-23 17:27:49.237604338 'VideoEncoderConfiguration': {
2024-02-23 17:27:49.237605839 'Name': 'VideoEncoderConfig_Channel1_SubStream2',
2024-02-23 17:27:49.237607152 'UseCount': 2,
2024-02-23 17:27:49.237621894 'Encoding': 'H264',
2024-02-23 17:27:49.237623776 'Resolution': {
2024-02-23 17:27:49.237625113 'Width': 1280,
2024-02-23 17:27:49.237626442 'Height': 720
2024-02-23 17:27:49.237627629 },
2024-02-23 17:27:49.237629077 'Quality': 4.0,
2024-02-23 17:27:49.237630380 'RateControl': {
2024-02-23 17:27:49.237631778 'FrameRateLimit': 17,
2024-02-23 17:27:49.237633118 'EncodingInterval': 1,
2024-02-23 17:27:49.237634427 'BitrateLimit': 2048
2024-02-23 17:27:49.237652502 },
2024-02-23 17:27:49.237654435 'MPEG4': None,
2024-02-23 17:27:49.237655691 'H264': {
2024-02-23 17:27:49.237657040 'GovLength': 34,
2024-02-23 17:27:49.237658424 'H264Profile': 'High'
2024-02-23 17:27:49.237659576 },
2024-02-23 17:27:49.237660803 'Multicast': {
2024-02-23 17:27:49.237662314 'Address': {
2024-02-23 17:27:49.237663611 'Type': 'IPv4',
2024-02-23 17:27:49.237665053 'IPv4Address': '224.1.0.2',
2024-02-23 17:27:49.237666436 'IPv6Address': None
2024-02-23 17:27:49.237667691 },
2024-02-23 17:27:49.237669025 'Port': 40016,
2024-02-23 17:27:49.237670295 'TTL': 64,
2024-02-23 17:27:49.237671727 'AutoStart': False,
2024-02-23 17:27:49.237673083 '_value_1': None,
2024-02-23 17:27:49.237674426 '_attr_1': None
2024-02-23 17:27:49.237675582 },
2024-02-23 17:27:49.237677136 'SessionTimeout': datetime.timedelta(seconds=60),
2024-02-23 17:27:49.237678432 '_value_1': None,
2024-02-23 17:27:49.237679728 'token': '00002',
2024-02-23 17:27:49.237707512 '_attr_1': {
2024-02-23 17:27:49.237709276 }
2024-02-23 17:27:49.237710431 },
2024-02-23 17:27:49.237711848 'AudioEncoderConfiguration': None,
2024-02-23 17:27:49.237713287 'VideoAnalyticsConfiguration': None,
2024-02-23 17:27:49.237714646 'PTZConfiguration': None,
2024-02-23 17:27:49.237716028 'MetadataConfiguration': None,
2024-02-23 17:27:49.237717335 'Extension': None,
2024-02-23 17:27:49.237718648 'token': 'IH1024x768',
2024-02-23 17:27:49.237720117 'fixed': False,
2024-02-23 17:27:49.237721369 '_attr_1': {
2024-02-23 17:27:49.237722495 }
2024-02-23 17:27:49.237723587 }
2024-02-23 17:27:49.237761568 [2024-02-23 17:27:49] frigate.ptz.onvif DEBUG : Onvif ptz config for media profile in driveway: None
2024-02-23 17:27:49.388304485 [2024-02-23 17:27:49] frigate.http ERROR : Exception on /driveway/ptz/info [GET]
2024-02-23 17:27:49.388307963 Traceback (most recent call last):
2024-02-23 17:27:49.388310126 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2190, in wsgi_app
2024-02-23 17:27:49.388311749 response = self.full_dispatch_request()
2024-02-23 17:27:49.388313784 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1486, in full_dispatch_request
2024-02-23 17:27:49.388315322 rv = self.handle_user_exception(e)
2024-02-23 17:27:49.388317214 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1484, in full_dispatch_request
2024-02-23 17:27:49.388318624 rv = self.dispatch_request()
2024-02-23 17:27:49.388320516 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1469, in dispatch_request
2024-02-23 17:27:49.388322251 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
2024-02-23 17:27:49.388323948 File "/opt/frigate/frigate/http.py", line 1428, in camera_ptz_info
2024-02-23 17:27:49.388325574 return jsonify(current_app.onvif.get_camera_info(camera_name))
2024-02-23 17:27:49.388327263 File "/opt/frigate/frigate/ptz/onvif.py", line 534, in get_camera_info
2024-02-23 17:27:49.388328702 self._init_onvif(camera_name)
2024-02-23 17:27:49.388330393 File "/opt/frigate/frigate/ptz/onvif.py", line 121, in _init_onvif
2024-02-23 17:27:49.388332042 request.ConfigurationToken = profile.PTZConfiguration.token
2024-02-23 17:27:49.388333660 AttributeError: 'NoneType' object has no attribute 'token' FFprobe output from your cameravideo works fine Frigate statsNo response Operating systemDebian Install methodDocker Compose Coral versionUSB Network connectionWired Camera make and modelEmpireTech/Dahua SD1A404XB-GNR Any other information that may be helpful
python3 ./fovtest.py Connected to ONVIF camera Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 18 replies
-
There was a change made in 0.13.2 that might be causing your issue. Can you try using version 0.13.1 and see if you still receive the error? |
Beta Was this translation helpful? Give feedback.
If the calibration moved the camera, then there's no problems with frigate's code. Based on your config, an object would need to appear in the
zone_driveway
zone in order for autotracking to begin. Make sure you've defined that zone in your config.