frigate: [PTZ]: PTZ With autotracking not working

Describe the problem you are having

Hello,

When the camera detect someone and try to follow it i got an error.

I’m running frigate in a container on proxmox.

Thanks for your help

Version

0.13.0-Beta5

Frigate config file

logger:
  # Optional: default log level (default: shown below)
  default: debug
  # Optional: module by module log level configuration

mqtt:
  host: 10.0.0.220
  user: <user>
  password: <pass>


cameras:
 
  Test:
    rtmp:
      enabled: false
    onvif:
      # Required: host of the camera being connected to.
      host: 10.0.0.124
      # Optional: ONVIF port for device (default: shown below).
      port: 80
      # Optional: username for login.
      # NOTE: Some devices require admin to access ONVIF.
      user: test
      # Optional: password for login.
      password: <password>
      # Optional: PTZ camera object autotracking. Keeps a moving object in
      # the center of the frame by automatically moving the PTZ camera.
      autotracking:
        # Optional: enable/disable object autotracking. (default: shown below)
        enabled: true
        # 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_0
        # 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)
    ffmpeg:
      inputs:
        #Low Res
      - path: rtsp://frigate:<pass>@10.0.0.124:554/Streaming/Channels/2
        roles:
        - detect
        #High res
      - path: rtsp://frigate:<pass>@10.0.0.124:554/Streaming/Channels/1
        roles:
        - record
    detect:
      width: 704
      height: 576
      fps: 20
    motion:
      mask:
      - 137,61,412,51,413,0,0,0,0,51,82,47

    zones:
      zone_0:
        coordinates: 704,576,704,77,525,21,0,30,0,576
objects:
  track:
  - person
  - car
  - dog
  - cat
  - bird
  filters:
    person:
      #min_area: 3000
      # Optional: minimum score for the object to initiate tracking (default: shown below)
      min_score: 0.65

detectors:
  cpu1:
    type: cpu
    num_threads: 3
  cpu2:
    type: cpu
    num_threads: 3
  cpu3:
    type: cpu
    num_threads: 3
  cpu4:
    type: cpu
    num_threads: 3
  cpu5:
    type: cpu
    num_threads: 3
  cpu6:
    type: cpu
    num_threads: 3
  cpu7:
    type: cpu
    num_threads: 3
  cpu8:
    type: cpu
    num_threads: 3
  cpu9:
    type: cpu
    num_threads: 3
  cpu10:
    type: cpu
    num_threads: 3
  cpu11:
    type: cpu
    num_threads: 3
  cpu12:
    type: cpu
    num_threads: 3
  cpu13:
    type: cpu
    num_threads: 3
  cpu14:
    type: cpu
    num_threads: 3
  cpu15:
    type: cpu
    num_threads: 3
  cpu16:
    type: cpu
    num_threads: 3

snapshots:
  # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
  # This value can be set via MQTT and will be updated in startup based on retained value
  enabled: true
  # Optional: print a timestamp on the snapshots (default: shown below)
  timestamp: false
  # Optional: draw bounding box on the snapshots (default: shown below)
  bounding_box: true
  # Optional: crop the snapshot (default: shown below)
  crop: false
  # Optional: Restrict snapshots 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: 15
record:
  enabled: true
  events:
    retain:
      default: 10

Relevant log output

023-11-10 17:24:44.102872975  [2023-11-10 17:24:44] frigate.comms.ws               DEBUG   : payload for Test/person/snapshot wasn't text. Skipping...
2023-11-10 17:24:44.280817367  [2023-11-10 17:24:44] frigate.comms.mqtt             DEBUG   : MQTT connected
2023-11-10 17:24:46.305275360  [2023-11-10 17:24:46] frigate.comms.mqtt             DEBUG   : MQTT connected
2023-11-10 17:24:48.312710284  [2023-11-10 17:24:48] frigate.ptz.autotrack          DEBUG   : Test: New object: 1699637079.463852-ec95ey (162, 221, 219, 452) 1699637084.037035
2023-11-10 17:24:48.327444823  [2023-11-10 17:24:48] frigate.ptz.autotrack          DEBUG   : Test: Zooming: None Zoom amount: 0
2023-11-10 17:24:48.328975045  [2023-11-10 17:24:48] frigate.ptz.autotrack          DEBUG   : Test: Enqueue movement for frame time: 1699637084.037035 pan: -0.4602272727272727, tilt: -0.16666666666666674, zoom: 0
2023-11-10 17:24:48.329295931  [2023-11-10 17:24:48] frigate.ptz.onvif              DEBUG   : Test called RelativeMove: pan: -0.4602272727272727 tilt: -0.16666666666666674 zoom: 0
2023-11-10 17:24:48.329685179  [2023-11-10 17:24:48] frigate.ptz.onvif              DEBUG   : Test: PTZ start time: 1699637085.781747
2023-11-10 17:24:48.330350438  [2023-11-10 17:24:48] frigate.comms.mqtt             DEBUG   : MQTT connected
2023-11-10 17:24:48.336594585  [2023-11-10 17:24:48] zeep.transports                DEBUG   : HTTP Post to http://10.0.0.124/onvif/PTZ:
2023-11-10 17:24:48.336604585  <?xml version='1.0' encoding='utf-8'?>
2023-11-10 17:24:48.336638359  <soap-env:Envelope xmlns:soap-env="http://www.w3.org/2003/05/soap-envelope"><soap-env:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken><wsse:Username>test</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">1aHLpBcShXGH2XwBLy/zYg78UsE=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">ylPsYb8G3t0xnnbrEthG3Q==</wsse:Nonce><wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2023-11-10T17:24:48+00:00</wsu:Created></wsse:UsernameToken></wsse:Security></soap-env:Header><soap-env:Body><ns0:RelativeMove xmlns:ns0="http://www.onvif.org/ver20/ptz/wsdl"><ns0:ProfileToken>Profile_1</ns0:ProfileToken><ns0:Translation><ns1:PanTilt xmlns:ns1="http://www.onvif.org/ver10/schema" x="-0.4602272727272727" y="-0.16666666666666674" space="http://www.onvif.org/ver10/tptz/PanTiltSpaces/TranslationSpaceFov"/><ns2:Zoom xmlns:ns2="http://www.onvif.org/ver10/schema" x="0" space="http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace"/></ns0:Translation><ns0:Speed><ns3:PanTilt xmlns:ns3="http://www.onvif.org/ver10/schema" x="1" y="1"/><ns4:Zoom xmlns:ns4="http://www.onvif.org/ver10/schema" x="1"/></ns0:Speed></ns0:RelativeMove></soap-env:Body></soap-env:Envelope>
2023-11-10 17:24:48.337002156  [2023-11-10 17:24:48] urllib3.connectionpool         DEBUG   : Resetting dropped connection: 10.0.0.124
2023-11-10 17:24:48.375866297  [2023-11-10 17:24:48] frigate.events.maintainer      DEBUG   : Event received: tracked_object update Test 1699637079.463852-ec95ey
2023-11-10 17:24:48.376279745  [2023-11-10 17:24:48] urllib3.connectionpool         DEBUG   : http://10.0.0.124:80 "POST /onvif/PTZ HTTP/1.1" 500 2446
2023-11-10 17:24:48.376641242  [2023-11-10 17:24:48] zeep.transports                DEBUG   : HTTP Response from http://10.0.0.124/onvif/PTZ (status: 500):
2023-11-10 17:24:48.376650628  <?xml version="1.0" encoding="UTF-8"?>
2023-11-10 17:24:48.376695586  <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tst="http://www.onvif.org/ver10/storage/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl" xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12" xmlns:http="http://schemas.xmlsoap.org/wsdl/http" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2" xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsrf-r="http://docs.oasis-open.org/wsrf/r-2" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tas="http://www.onvif.org/ver10/advancedsecurity/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:axt="http://www.onvif.org/ver20/analytics"><env:Body><env:Fault><env:Code><env:Value>env:Sender</env:Value>
2023-11-10 17:24:48.376702856  <env:Subcode><env:Value>ter:InvalidArgVal</env:Value>
2023-11-10 17:24:48.376708329  <env:Subcode><env:Value>ter:SpaceNotSupported</env:Value>
2023-11-10 17:24:48.376713107  </env:Subcode>
2023-11-10 17:24:48.376717637  </env:Subcode>
2023-11-10 17:24:48.376721954  </env:Code>
2023-11-10 17:24:48.376728687  <env:Reason><env:Text xml:lang="en">A space is referenced in an argument which is not supported by the PTZ Node.</env:Text>
2023-11-10 17:24:48.376733377  </env:Reason>
2023-11-10 17:24:48.376737507  </env:Fault>
2023-11-10 17:24:48.376742507  </env:Body>
2023-11-10 17:24:48.376746940  </env:Envelope>

FFprobe output from your camera

Stream 0:
Return Code: 0

Video:

Codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
Resolution: 704x576
FPS: 25/1

Stream 1:
Return Code: 0

Video:

Codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
Resolution: 2560x1440
FPS: 25/1

Frigate stats

No response

Operating system

Proxmox

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Hikvision DS-2DE2A404IW-DE3

Any other information that may be helpful

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15

Most upvoted comments

I subscribed to the merge request. I will try when it get merged. Thanks you