blakeblackshear / frigate-hass-addons

Frigate hass.io addons
MIT License
250 stars 133 forks source link

Clips mp4 not created, only screenshot in folder clips and 24/7 records in folder recordings after latest update 2.0 #46

Closed ukrolelo closed 3 years ago

ukrolelo commented 3 years ago

[2021-10-08 21:20:20] ws4py INFO : Using epoll [2021-10-08 21:20:25] ws4py INFO : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59346] [2021-10-08 21:20:30] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:53172] [2021-10-08 21:20:31] ws4py DEBUG : Closing message received (1000) 'b''' [2021-10-08 21:20:31] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:53172] [2021-10-08 21:20:35] peewee.sqliteq DEBUG : received query INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?) [2021-10-08 21:20:35] peewee DEBUG : ('INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?)', ['1633720824.0-hzt825', 'CAM_obyvak', '/media/frigate/recordings/2021-10/08/21/CAM_obyvak/20.24.mp4', 1633720824.0, 1633720834.017, 10.017]) [2021-10-08 21:20:39] frigate.events DEBUG : Event received: start CAM_obyvak 1633720838.468235-rzbam6 [2021-10-08 21:20:39] frigate.events DEBUG : Event received: start CAM_obyvak 1633720838.468235-24vwvo [2021-10-08 21:20:45] peewee.sqliteq DEBUG : received query INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?) [2021-10-08 21:20:45] peewee DEBUG : ('INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?)', ['1633720831.0-g1eh9j', 'CAM_obyvak', '/media/frigate/recordings/2021-10/08/21/CAM_obyvak/20.31.mp4', 1633720831.0, 1633720840.986, 9.986]) [2021-10-08 21:20:46] frigate.events DEBUG : Event received: end CAM_obyvak 1633720838.468235-rzbam6 [2021-10-08 21:20:47] frigate.events DEBUG : Event received: end CAM_obyvak 1633720838.468235-24vwvo [2021-10-08 21:20:53] frigate.events DEBUG : Event received: start CAM_obyvak 1633720853.313453-nb4kgm [2021-10-08 21:20:56] peewee.sqliteq DEBUG : received query INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?) [2021-10-08 21:20:56] peewee DEBUG : ('INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?)', ['1633720841.0-9um0ps', 'CAM_obyvak', '/media/frigate/recordings/2021-10/08/21/CAM_obyvak/20.41.mp4', 1633720841.0, 1633720850.997, 9.997]) [2021-10-08 21:21:02] frigate.events DEBUG : Event received: end CAM_obyvak 1633720853.313453-nb4kgm [2021-10-08 21:21:02] peewee.sqliteq DEBUG : received query INSERT INTO "event" ("id", "label", "camera", "start_time", "end_time", "top_score", "false_positive", "zones", "thumbnail", "has_clip", "has_snapshot", "region", "box", "area") VALUES (?, ?, ?, ?, ?, ?, ?, json(?), ?, ?, ?, json(?), json(?), ?) [2021-10-08 21:21:02] peewee DEBUG : ('INSERT INTO "event" ("id", "label", "camera", "start_time", "end_time", "top_score", "false_positive", "zones", "thumbnail", "has_clip", "has_snapshot", "region", "box", "area") VALUES (?, ?, ?, ?, ?, ?, ?, json(?), ?, ?, ?, json(?), json(?), ?)', ['1633720853.313453-nb4kgm', 'person', 'CAM_obyvak', 1633720848.313453, 1633720871.314901, 0.8046875, False, '["zone_0"]', 'xxxxx', True, True, '[1229, 731, 1577, 1079]', '[1312, 741, 1513, 1069]', 65928]) [2021-10-08 21:21:03] frigate.events DEBUG : Event received: start CAM_obyvak 1633720861.837085-w77kib [2021-10-08 21:21:06] peewee.sqliteq DEBUG : received query INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?) [2021-10-08 21:21:06] peewee DEBUG : ('INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?)', ['1633720851.0-rb0n8l', 'CAM_obyvak', '/media/frigate/recordings/2021-10/08/21/CAM_obyvak/20.51.mp4', 1633720851.0, 1633720860.99, 9.99]) [2021-10-08 21:21:09] frigate.events DEBUG : Event received: end CAM_obyvak 1633720861.837085-w77kib [2021-10-08 21:21:16] peewee.sqliteq DEBUG : received query INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?) [2021-10-08 21:21:16] peewee DEBUG : ('INSERT INTO "recordings" ("id", "camera", "path", "start_time", "end_time", "duration") VALUES (?, ?, ?, ?, ?, ?)', ['1633720861.0-w4qe4b', 'CAM_obyvak', '/media/frigate/recordings/2021-10/08/21/CAM_obyvak/21.01.mp4', 1633720861.0, 1633720870.985, 9.985])

screenshot: https://community-assets.home-assistant.io/original/3X/5/e/5e80a55c26f558f119104d6977ee698ac1cc59b5.png

` CAM_obyvak:

ffmpeg:
  inputs:
    - path: rtsp://xxxx:xxxx@xxxx:554/cam/realmonitor?channel=1&subtype=0&authbasic=xxxxx
      roles:
        - detect
        - record

zones:
  zone_0:
    coordinates: 0,1080,1429,1080,1855,583,1876,490,1309,380,1333,0,0,0
detect:
  enabled: True
  max_disappeared: 25
  width: 1920
  height: 1080
  fps: 5
  #best_image_timeout: 60

record:
  enabled: True
  retain_days: 0
  events:
    post_capture: 10
    pre_capture: 5
    objects:
      - person
    retain:
      default: 5
rtmp:
  enabled: False
snapshots:
  enabled: True
  timestamp: False
  bounding_box: True
  crop: False
  retain:
    default: 5
    #objects:
      #person: 15
mqtt:
  enabled: False
  timestamp: True
  bounding_box: True
  crop: True
  height: 270
objects:
  track:
    - person
  filters:
    person:
      min_area: 1000
      max_area: 100000
      min_score: 0.5
      threshold: 0.77`

Same this guy: https://community.home-assistant.io/t/local-realtime-person-detection-for-rtsp-cameras/103107/5621

blakeblackshear commented 3 years ago

There won't be any mp4 files in the clips directory. I would set logging back to the defaults and see if you have messages around the time of the events that are not playing.

ukrolelo commented 3 years ago

I don't know what happened but it's working. <3 thank you