blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18.46k stars 1.68k forks source link

[Config Support]: #8936

Closed kiloptero closed 9 months ago

kiloptero commented 9 months ago

Describe the problem you are having

After about 3 weeks I had the cameras disconnected. I reconnected everything. Without any change and now it does not start frigate. The strange thing is that it is still delivering information to MQTT and it is also recording. This configuration was working perfectly, but now it is delivering an error that I had never seen before. I did a backup restore from 3 weeks ago and it delivers the same error. The only change, during this period we updated to beta version 6. You can that Frigate NVR still recording Another weird part is that Frigate integration is working Screenshot 2023-12-12 at 1 22 27 PM Screenshot 2023-12-12 at 1 24 11 PM

Screenshot 2023-12-12 at 1 22 27 PM

Version

Current version: 0.13.0-beta6 (Changelog)

Frigate config file

mqtt:
  host: 10.1.2.100
  user: user
  password: password
  topic_prefix: frigate

objects:
 #Optional: list of objects to track from labelmap.txt (default: shown below)
  track:
  - person
  - cat
  - car
audio:
  enabled: true
  listen:
  - scream
  - speech
  - meow
  - purr
  - cat

ffmpeg:
  hwaccel_args: preset-vaapi

go2rtc:
  streams:
    EntradaCasasub:
    - rtsp://admin:password@10.1.2.110:554/h264Preview_01_sub
    - ffmpeg:EntradaCasasub#audio=opus
    EntradaCasa:
    - rtsp://admin:password@10.1.2.110:554/h264Preview_01_main
    - ffmpeg:EntradaCasa#audio=opus
    reolink:
    - rtsp://admin:password@10.1.2.111:554/h264Preview_01_main
    - ffmpeg:reolink#audio=opus
    Reolink520-1:
    - rtsp://admin:password@10.1.2.112:554/h264Preview_01_main
    - ffmpeg:reolink#audio=opus
    Reolink520-2:
    - rtsp://admin:password@10.1.2.113:554/h264Preview_01_main
    - ffmpeg:reolink#audio=opus
    Reolinkduo2-1:
    - rtsp://admin:password@10.1.2.114:554/h264Preview_01_main
    - ffmpeg:reolink#audio=opus
    Reolinkduo2-1sub:
    - rtsp://admin:password@10.1.2.114:554/h264Preview_01_sub
    - ffmpeg:reolink#audio=opus
    Reolinkduo2-2:
    - rtsp://admin:password@10.1.2.115:554/h264Preview_01_main
    - ffmpeg:reolink#audio=opus
    Reolinkduo2-2sub:
    - rtsp://admin:password@10.1.2.115:554/h264Preview_01_sub
    - ffmpeg:reolink#audio=opus

  webrtc:
    candidates:
    - 10.1.2.100:8555
    - stun:8555

cameras:
  EntradaCasa:
    live:
      stream_name: EntradaCasasub
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
      - path: rtsp://127.0.0.1:8554/EntradaCasa?video=copy&audio=aac
        input_args: preset-rtsp-restream
        roles:
        - record
        - detect
        - audio

      - path: rtsp://127.0.0.1:8554/EntradaCasasub?video=copy&audio=aac
        input_args: preset-rtsp-restream
        roles:
        - record
        - detect
        - audio
    objects:
# Optional: list of objects to track from labelmap.txt (default: shown below)
      track:
      - person
      - cat
      - car
      filters:
          bicycle:
            threshold: 0.8
          person:
            threshold: 0.75
          cat:
            threshold: 0.75
          car:
            threshold: 0.75

    audio:
      listen:
      - meow
      - speech

    zones:
      tele_pieza:
        coordinates: 1515,0,1555,347,516,403,556,0
        objects:
          # Optional: list of objects to track from labelmap.txt (default: shown below)
          - car
          - person

            # Optional: list of objects to track from labelmap.txt (default: shown below)

        filters:
            bicycle:
              threshold: 0.8
            person:
              threshold: 0.80
            cat:
              threshold: 0.80
            car:
              threshold: 0.80

  Reolinkduo2-1:
    live:
      stream_name: Reolinkduo2-1sub
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
      - path: rtsp://127.0.0.1:8554/Reolinkduo2-1?video=copy&audio=aac
        input_args: preset-rtsp-restream
        roles:
        - record
        - detect
        - audio
    audio:
      enabled: false
    objects:
      # Optional: list of objects to track from labelmap.txt (default: shown below)
            track:
            - person
            - cat
            - car
            filters:
              #  bicycle:
              #    threshold: 0.8
                person:
                  threshold: 0.75
                cat:
                  threshold: 0.75
                car:
                  threshold: 0.75

  Reolinkduo2-2:
    live:
      stream_name: Reolinkduo2-2sub
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
      - path: rtsp://127.0.0.1:8554/Reolinkduo2-2?video=copy&audio=aac
        input_args: preset-rtsp-restream
        roles:
        - record
        - detect
        - audio
    audio:
      enabled: false
    objects:
      # Optional: list of objects to track from labelmap.txt (default: shown below)
            track:
            - person
            - cat
            - car
            filters:
              #  bicycle:
              #    threshold: 0.8
                person:
                  threshold: 0.75
                cat:
                  threshold: 0.75
                car:
                  threshold: 0.75

  reolink:
    live:
      stream_name: reolink
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
      - path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac
        input_args: preset-rtsp-restream
        roles:
        - detect
        - record
        - audio
    audio:
      enabled: false
    objects:
      # Optional: list of objects to track from labelmap.txt (default: shown below)
            track:
            - person
            - cat
            - car
            filters:
              #  bicycle:
              #    threshold: 0.8
                person:
                  threshold: 0.75
                cat:
                  threshold: 0.75
                car:
                  threshold: 0.75

  Reolink520-1:
    live:
      stream_name: Reolink520-1
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
      - path: rtsp://127.0.0.1:8554/Reolink520-1?video=copy&audio=aac
        input_args: preset-rtsp-restream
        roles:
        - record
        - detect
        - audio
    audio:
      enabled: false
    objects:
      # Optional: list of objects to track from labelmap.txt (default: shown below)
            track:
            - person
            - cat
            - car
            filters:
              #  bicycle:
              #    threshold: 0.8
                person:
                  threshold: 0.75
                cat:
                  threshold: 0.75
                car:
                  threshold: 0.75

  Reolink520-2:
    live:
      stream_name: Reolink520-2
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
      - path: rtsp://127.0.0.1:8554/Reolink520-2?video=copy&audio=aac
        input_args: preset-rtsp-restream
        roles:
        - record
        - detect
        - audio
    audio:
      enabled: false
    objects:
      # Optional: list of objects to track from labelmap.txt (default: shown below)
            track:
            - person
            - cat
            - car
            filters:
              #  bicycle:
              #    threshold: 0.8
                person:
                  threshold: 0.75
                cat:
                  threshold: 0.75
                car:
                  threshold: 0.75

record:
  enabled: true
  retain:
    days: 15
    mode: all

snapshots:
  enabled: true
  retain:
    default: 100

detectors:
  coral:
    type: edgetpu
    device: usb

database:
  path: /config/frigate.db
    # model:
    #  path: "/custom_model.tflite"

birdseye:
  enabled: true
    # 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
  quality: 20
  mode: objects

detect:

  fps: 5
  enabled: true

ui:
  live_mode: mse

Relevant log output

s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service go2rtc-healthcheck successfully started
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
2023-12-12 16:13:34.879973808  [INFO] Preparing Frigate...
2023-12-12 16:13:34.880466154  [INFO] Starting NGINX...
2023-12-12 16:13:34.882073573  [INFO] Preparing new go2rtc config...
s6-rc: info: service legacy-services successfully started
2023-12-12 16:13:34.888729368  [INFO] Starting Frigate...
2023-12-12 16:13:34.914460696  [INFO] Got IP address from supervisor: 10.1.2.100
2023-12-12 16:13:34.943556200  [INFO] Got WebRTC port from supervisor: 8555
2023-12-12 16:13:35.195655233  [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-12-12 16:13:35.221948435  [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one
2023-12-12 16:13:35.221951491  [INFO] Starting go2rtc...
2023-12-12 16:13:35.286657525  13:13:35.286 INF go2rtc version 1.8.3 linux/amd64
2023-12-12 16:13:35.287110748  13:13:35.287 INF [api] listen addr=:1984
2023-12-12 16:13:35.287198786  13:13:35.287 INF [rtsp] listen addr=:8554
2023-12-12 16:13:35.287579469  13:13:35.287 INF [webrtc] listen addr=:8555
2023-12-12 16:13:36.063818729  [2023-12-12 13:13:36] frigate.app                    INFO    : Starting Frigate (0.13.0-614a36a)
2023-12-12 16:13:36.064640172  [2023-12-12 13:13:36] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-12-12 16:13:44.877884818  [INFO] Starting go2rtc healthcheck service...
2023-12-12 16:13:49.906623170  2023/12/12 13:13:49 [error] 148#148: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
2023-12-12 16:13:51.838551629  [2023-12-12 13:13:51] peewee_migrate.logs            INFO    : Starting migrations
2023-12-12 16:13:51.841579686  [2023-12-12 13:13:51] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-12-12 16:13:51.845658183  [2023-12-12 13:13:51] frigate.app                    INFO    : Recording process started: 426
2023-12-12 16:13:51.848009514  [2023-12-12 13:13:51] frigate.app                    INFO    : go2rtc process pid: 88
2023-12-12 16:13:51.870429459  [2023-12-12 13:13:51] detector.coral                 INFO    : Starting detection process: 436
2023-12-12 16:13:51.873564978  [2023-12-12 13:13:51] frigate.app                    INFO    : Output process started: 439
2023-12-12 16:13:51.914383935  [2023-12-12 13:13:51] frigate.app                    INFO    : Camera processor started for EntradaCasa: 449
2023-12-12 16:13:51.921335298  [2023-12-12 13:13:51] frigate.app                    INFO    : Camera processor started for Reolinkduo2-1: 451
2023-12-12 16:13:51.927279357  [2023-12-12 13:13:51] frigate.app                    INFO    : Camera processor started for Reolinkduo2-2: 453
2023-12-12 16:13:51.933911352  [2023-12-12 13:13:51] frigate.app                    INFO    : Camera processor started for reolink: 455
2023-12-12 16:13:51.940541178  [2023-12-12 13:13:51] frigate.app                    INFO    : Camera processor started for Reolink520-1: 459
2023-12-12 16:13:51.947722155  [2023-12-12 13:13:51] frigate.app                    INFO    : Camera processor started for Reolink520-2: 474
2023-12-12 16:13:51.952803876  [2023-12-12 13:13:51] frigate.app                    INFO    : Capture process started for EntradaCasa: 476
2023-12-12 16:13:51.958731696  [2023-12-12 13:13:51] frigate.app                    INFO    : Capture process started for Reolinkduo2-1: 481
2023-12-12 16:13:51.963783377  [2023-12-12 13:13:51] frigate.app                    INFO    : Capture process started for Reolinkduo2-2: 486
2023-12-12 16:13:51.968884312  [2023-12-12 13:13:51] frigate.app                    INFO    : Capture process started for reolink: 491
2023-12-12 16:13:51.974402725  [2023-12-12 13:13:51] frigate.app                    INFO    : Capture process started for Reolink520-1: 496
2023-12-12 16:13:51.979487736  [2023-12-12 13:13:51] frigate.app                    INFO    : Capture process started for Reolink520-2: 501
2023-12-12 16:13:51.984502131  [2023-12-12 13:13:51] frigate.app                    INFO    : Audio process started: 505
2023-12-12 16:13:54.492133962  [2023-12-12 13:13:51] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-12-12 16:13:54.506191140  [2023-12-12 13:13:54] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-12-12 16:14:37.239006503  [aac @ 0x7f4f8800ef00] channel element 0.0 is not allocated
2023-12-12 16:15:06.341376499  127.0.0.1 - - [12/Dec/2023:13:15:06 -0300] "POST /api/events/EntradaCasa/speech/create HTTP/1.1" 200 95 "-" "python-requests/2.31.0" "-"
2023-12-12 16:15:36.988926190  [aac @ 0x7f4f88357f40] Input buffer exhausted before END element found
2023-12-12 16:15:37.041951996  127.0.0.1 - - [12/Dec/2023:13:15:37 -0300] "PUT /api/events/1702397705.587827-zff4kf/end HTTP/1.1" 200 55 "-" "python-requests/2.31.0" "-"
2023-12-12 16:15:38.842594634  127.0.0.1 - - [12/Dec/2023:13:15:38 -0300] "POST /api/events/EntradaCasa/speech/create HTTP/1.1" 200 95 "-" "python-requests/2.31.0" "-"
2023-12-12 16:16:06.989099065  [aac @ 0x7f4f880e8d00] Input buffer exhausted before END element found
2023-12-12 16:16:36.946595727  [aac @ 0x7f4f88173140] channel element 1.7 is not allocated
2023-12-12 16:16:50.767241487  127.0.0.1 - - [12/Dec/2023:13:16:50 -0300] "PUT /api/events/1702397738.074188-1kko9o/end HTTP/1.1" 200 55 "-" "python-requests/2.31.0" "-"
2023-12-12 16:17:05.344209387  127.0.0.1 - - [12/Dec/2023:13:17:05 -0300] "POST /api/events/EntradaCasa/speech/create HTTP/1.1" 200 95 "-" "python-requests/2.31.0" "-"
2023-12-12 16:17:47.048095842  [aac @ 0x7f4f881db900] channel element 3.10 is not allocated
2023-12-12 16:18:11.536581332  127.0.0.1 - - [12/Dec/2023:13:18:11 -0300] "PUT /api/events/1702397824.613232-vg9rfi/end HTTP/1.1" 200 55 "-" "python-requests/2.31.0" "-"
2023-12-12 16:18:15.229329082  127.0.0.1 - - [12/Dec/2023:13:18:15 -0300] "POST /api/events/EntradaCasa/speech/create HTTP/1.1" 200 95 "-" "python-requests/2.31.0" "-"
2023-12-12 16:18:45.643023640  127.0.0.1 - - [12/Dec/2023:13:18:45 -0300] "PUT /api/events/1702397894.495314-xwoaa3/end HTTP/1.1" 200 55 "-" "python-requests/2.31.0" "-"
2023-12-12 16:18:56.974841343  [aac @ 0x7f4f881dd600] Input buffer exhausted before END element found
2023-12-12 16:19:06.978814086  [aac @ 0x7f4f881db900] Input buffer exhausted before END element found
2023-12-12 16:19:16.987660998  [aac @ 0x7f4f88175b00] Input buffer exhausted before END element found
2023-12-12 16:19:37.042218775  [aac @ 0x7f4f882abc00] Input buffer exhausted before END element found
2023-12-12 16:19:42.297346353  172.30.32.1 - - [12/Dec/2023:13:19:42 -0300] "GET /api/config HTTP/1.1" 200 26950 "-" "HomeAssistant/2023.12.0 aiohttp/3.9.1 Python/3.11" "-"
2023-12-12 16:22:37.038990946  [aac @ 0x7f4f88054ec0] channel element 2.12 is not allocated

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Any other information that may be helpful

No response

NickM-27 commented 9 months ago

it's possible you have multiple frigate addons running

kiloptero commented 9 months ago

Weird,the issue is I can't start the frigate NVR.. The integration works fine..

NickM-27 commented 9 months ago

the logs you have shown indicate that frigate is running, the integration receiving data means that frigate is running. So most likely another frigate addon is running or something else is being misunderstood

kiloptero commented 9 months ago

any recomendation? Uninstall frigate / restart / install again ( nvr + integration)

NickM-27 commented 9 months ago

just check the addon page and see what addons are installed would be a good start. It's not clear why you say frigate can't start when it is running according to the logs and the integration

kiloptero commented 9 months ago

Frigate NVR Web Ui.. can't start. (the UI where you see the cameras and config the zones.. for example

NickM-27 commented 9 months ago

screenshot?

kiloptero commented 9 months ago

Screenshot 2023-12-12 at 2 17 22 PM Screenshot 2023-12-12 at 2 17 35 PM Screenshot 2023-12-12 at 2 18 25 PM

This, as you can see. The Frigate is working.. But I can't access The NVR..

NickM-27 commented 9 months ago

this looks like an HA OS bug, I would suggest restarting the host device

kiloptero commented 9 months ago

I will reboot a Hardware level. Give me a few minute.. I Already try a restore from yesterday, but lets try again this method

kiloptero commented 9 months ago

YES!! Hardware Reset and everything is working. Sorry !!