Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Config Support]: MQTT End event sent before event is over #6662

Closed
InfriaAB opened this issue May 31, 2023 · 12 comments
Closed

[Config Support]: MQTT End event sent before event is over #6662

InfriaAB opened this issue May 31, 2023 · 12 comments

Comments

@InfriaAB
Copy link

InfriaAB commented May 31, 2023

Describe the problem you are having

Hi!
This might just be me not understanding Frigate, but I have an issue where the videos sent to my Telegram group (based on "end" events) are sometimes cut short. To me this sounds like either the event is not truly over, or the video is only partially returned from the frigate API.

I wrote the Python code to send the videos myself and added wait-steps of a few seconds to give Frigate time to save the video but still the Video I get when I download from frigates API can sometimes be a lot shorter than the entire video that is available through the Frigate UI.

I can directly go into the Frigate UI after the video is uploaded to Telegram and get the whole video.

Version

0.12.0-da3e197

Frigate config file

#Guide: https://docs.frigate.video/configuration/index/

mqtt:
  host: 10.10.10.8
  port: 1883
  user: user
  password: pass
  topic_prefix: frigate
  client_id: frigate

detectors:
  coral:
    type: edgetpu
    device: usb

motion:
  improve_contrast: True

detect:
  stationary:
    max_frames:
      # Optional: Default for all object types (default: not set, track forever)
      default: 300
      # Optional: Object specific values
      objects:
        person: 300

objects:
  track:
    - person
    - bicycle
    - car
    - bus
    - boat
    - motorcycle
    - cat
    - dog
    - horse
    - bear
    - sheep
    - bird
  filters:
    bird:
      threshold: 0.8
    elephant:
      threshold: 0.8
    car:
      mask: 930,56,1280,0,1280,231,1243,334,1093,224      
      

record:
  enabled: True
  retain:
    days: 2
    mode: all
  events:
    pre_capture: 8
    post_capture: 11
    retain:
      default: 3
      mode: motion

snapshots:
  enabled: True
  clean_copy: True
  bounding_box: True
  crop: False
  retain:
    default: 30

timestamp_style:
  format: "%Y-%m-%d %H:%M:%S"

ffmpeg:
  #hwaccel_args: -c:v h264_v4l2m2m
  output_args:
    record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac

rtmp:
  enabled: false

cameras:
  driveway:
    ffmpeg:
      inputs:
        - path: rtsp://user:[email protected]:554/cam/realmonitor?channel=1&subtype=2
          roles:
            - detect
        - path: rtsp://user:[email protected]:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
            
  backyard:
    ffmpeg:
      inputs:
        - path: rtsp://user:[email protected]:554/cam/realmonitor?channel=1&subtype=2
          roles:
            - detect
        - path: rtsp://user:[email protected]:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record

Relevant log output

2023-05-30 11:25:43.327128185  [INFO] Starting Frigate...
2023-05-30 11:25:50.489344901  [2023-05-30 13:25:50] frigate.app                    INFO    : Starting Frigate (0.12.0-da3e197)
2023-05-30 11:25:50.594007982  [2023-05-30 13:25:50] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-05-30 11:25:50.603215355  [2023-05-30 13:25:50] peewee_migrate                 INFO    : Starting migrations
2023-05-30 11:25:50.627825269  [2023-05-30 13:25:50] peewee_migrate                 INFO    : There is nothing to migrate
2023-05-30 11:25:50.718289183  [2023-05-30 13:25:50] frigate.app                    INFO    : Output process started: 302
2023-05-30 11:25:50.771279559  [2023-05-30 13:25:50] frigate.app                    INFO    : Camera processor started for driveway: 309
2023-05-30 11:25:50.818553779  [2023-05-30 13:25:50] frigate.app                    INFO    : Camera processor started for backyard: 311
2023-05-30 11:25:50.878165910  [2023-05-30 13:25:50] frigate.app                    INFO    : Capture process started for driveway: 313
2023-05-30 11:25:50.921124125  [2023-05-30 13:25:50] frigate.app                    INFO    : Capture process started for backyard: 314
2023-05-30 11:25:53.448239088  [2023-05-30 13:25:50] detector.coral                 INFO    : Starting detection process: 300
2023-05-30 11:25:53.468949548  [2023-05-30 13:25:50] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-05-30 11:25:53.470335791  [2023-05-30 13:25:53] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-05-30 11:28:34.960059024  [2023-05-30 13:28:34] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 11:28:34.966792722  [2023-05-30 13:28:34] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 11:34:50.977534065  [2023-05-30 13:34:50] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 11:34:50.992023744  [2023-05-30 13:34:50] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 11:37:20.291367182  [2023-05-30 13:37:20] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 11:37:20.296994836  [2023-05-30 13:37:20] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 11:45:14.405727524  [2023-05-30 13:45:14] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-30 11:45:14.427295801  [2023-05-30 13:45:14] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-30 12:17:26.919599770  [2023-05-30 14:17:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 12:17:26.928033539  [2023-05-30 14:17:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 12:28:47.467992923  [2023-05-30 14:28:47] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 12:28:47.476178141  [2023-05-30 14:28:47] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 12:35:59.890776976  [2023-05-30 14:35:59] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 12:35:59.920911581  [2023-05-30 14:35:59] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 12:38:00.740656877  [2023-05-30 14:38:00] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 12:38:00.774901079  [2023-05-30 14:38:00] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 12:50:48.106733050  [2023-05-30 14:50:48] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 12:50:48.115444779  [2023-05-30 14:50:48] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 12:52:09.531413904  [2023-05-30 14:52:09] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 12:52:09.539163756  [2023-05-30 14:52:09] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 12:57:26.022643826  [2023-05-30 14:57:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 12:57:26.037199763  [2023-05-30 14:57:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 13:19:37.732745383  [2023-05-30 15:19:37] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 13:19:37.779872638  [2023-05-30 15:19:37] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 13:31:16.538094705  [2023-05-30 15:31:16] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 13:31:16.546365569  [2023-05-30 15:31:16] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 13:42:44.787313073  [2023-05-30 15:42:44] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 13:42:44.818075539  [2023-05-30 15:42:44] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 14:08:43.758798724  [2023-05-30 16:08:43] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-30 14:08:43.779073503  [2023-05-30 16:08:43] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-30 14:12:21.524556254  [2023-05-30 16:12:21] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 14:12:21.531712022  [2023-05-30 16:12:21] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 14:33:44.712499721  [2023-05-30 16:33:44] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 14:33:44.719853023  [2023-05-30 16:33:44] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 14:59:10.076005853  [2023-05-30 16:59:10] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 14:59:10.089777801  [2023-05-30 16:59:10] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 15:59:01.012628489  [2023-05-30 17:59:01] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 15:59:01.021390088  [2023-05-30 17:59:01] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 16:00:59.328732200  [2023-05-30 18:00:59] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 16:00:59.337087638  [2023-05-30 18:00:59] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 16:24:07.150669096  [2023-05-30 18:24:07] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 16:24:07.158655427  [2023-05-30 18:24:07] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 16:30:42.274895643  [2023-05-30 18:30:42] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 16:30:42.292678893  [2023-05-30 18:30:42] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 16:55:50.125712842  [2023-05-30 18:55:50] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 16:55:50.154711795  [2023-05-30 18:55:50] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 17:11:36.299959337  [2023-05-30 19:11:36] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 17:11:36.306560629  [2023-05-30 19:11:36] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 17:38:09.150389530  [2023-05-30 19:38:09] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 17:38:09.159125945  [2023-05-30 19:38:09] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 17:46:13.612002701  [2023-05-30 19:46:13] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 17:46:13.646747419  [2023-05-30 19:46:13] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 18:14:33.074503368  [2023-05-30 20:14:33] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 18:14:33.104266031  [2023-05-30 20:14:33] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-30 19:11:33.218843256  [2023-05-30 21:11:33] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-30 19:11:33.242192016  [2023-05-30 21:11:33] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-30 20:01:19.206606194  [2023-05-30 22:01:19] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 20:01:19.216720871  [2023-05-30 22:01:19] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 20:39:51.887043123  [2023-05-30 22:39:51] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 20:39:51.900810629  [2023-05-30 22:39:51] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 21:08:57.640349148  [2023-05-30 23:08:57] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 21:08:57.648135944  [2023-05-30 23:08:57] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 21:27:46.074834437  [2023-05-30 23:27:46] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 21:27:46.099273110  [2023-05-30 23:27:46] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-30 21:44:51.845406789  [2023-05-30 23:44:51] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 21:44:51.852612279  [2023-05-30 23:44:51] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 22:30:32.019719665  [2023-05-31 00:30:32] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-30 22:30:32.029270163  [2023-05-31 00:30:32] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 00:18:37.373280921  [2023-05-31 02:18:37] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 00:18:37.382547384  [2023-05-31 02:18:37] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 01:41:24.291008866  [2023-05-31 03:41:24] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 01:41:24.299045823  [2023-05-31 03:41:24] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 02:06:30.102377560  [2023-05-31 04:06:30] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 02:06:30.118382365  [2023-05-31 04:06:30] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 02:17:32.652170506  [2023-05-31 04:17:32] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 02:17:32.659178790  [2023-05-31 04:17:32] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 02:46:04.381315154  [2023-05-31 04:46:04] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-31 02:46:04.410444712  [2023-05-31 04:46:04] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-31 02:53:03.722850196  [2023-05-31 04:53:03] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 02:53:03.736056217  [2023-05-31 04:53:03] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 02:55:02.942082357  [2023-05-31 04:55:02] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 03:05:26.438840140  [2023-05-31 05:05:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 03:05:26.458240142  [2023-05-31 05:05:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 03:08:47.526519546  [2023-05-31 05:08:47] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 03:08:47.536578034  [2023-05-31 05:08:47] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 03:16:28.879733478  [2023-05-31 05:16:28] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 03:16:28.893325252  [2023-05-31 05:16:28] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 03:51:58.899340480  [2023-05-31 05:51:58] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 03:51:58.907233897  [2023-05-31 05:51:58] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 03:54:01.780551453  [2023-05-31 05:54:01] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-31 03:54:01.815355659  [2023-05-31 05:54:01] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 9 and discarding the rest...
2023-05-31 04:05:43.684665763  [2023-05-31 06:05:43] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 04:05:43.698742901  [2023-05-31 06:05:43] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 04:07:22.661448919  [2023-05-31 06:07:22] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 04:07:22.670614582  [2023-05-31 06:07:22] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 06:20:09.497152511  [2023-05-31 08:20:09] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 06:20:09.504080352  [2023-05-31 08:20:09] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 06:59:33.527209627  [2023-05-31 08:59:33] frigate.object_processing      WARNING : Unable to create jpg because frame 1685516372.753037 is not in the cache
2023-05-31 06:59:44.422784734  [2023-05-31 08:59:44] frigate.object_processing      WARNING : Unable to create jpg because frame 1685516383.754478 is not in the cache
2023-05-31 06:59:49.200686539  [2023-05-31 08:59:49] frigate.object_processing      WARNING : Unable to create jpg because frame 1685516383.754478 is not in the cache
2023-05-31 06:59:49.203101546  [2023-05-31 08:59:49] frigate.object_processing      WARNING : Unable to save snapshot for 1685516336.181142-vwat4n.
2023-05-31 06:59:49.203114601  [2023-05-31 08:59:49] frigate.object_processing      WARNING : Unable to create clean png because frame 1685516383.754478 is not in the cache
2023-05-31 06:59:49.203155545  [2023-05-31 08:59:49] frigate.object_processing      WARNING : Unable to save clean snapshot for 1685516336.181142-vwat4n.
2023-05-31 06:59:49.205701014  [2023-05-31 08:59:49] frigate.object_processing      WARNING : Unable to create jpg because frame 1685516383.754478 is not in the cache
2023-05-31 07:48:57.209611395  [2023-05-31 09:48:57] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 07:48:57.218588434  [2023-05-31 09:48:57] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 08:01:26.095052886  [2023-05-31 10:01:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 08:01:26.111867107  [2023-05-31 10:01:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 08:26:26.423458244  [2023-05-31 10:26:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-31 08:26:26.444916042  [2023-05-31 10:26:26] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-31 09:11:27.507391299  [2023-05-31 11:11:27] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 10 and discarding the rest...
2023-05-31 09:11:27.566744584  [2023-05-31 11:11:27] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 10 and discarding the rest...
2023-05-31 09:14:20.230026956  [2023-05-31 11:14:20] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 09:14:20.244358265  [2023-05-31 11:14:20] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 09:44:44.585870130  [2023-05-31 11:44:44] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 09:44:44.602575338  [2023-05-31 11:44:44] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 09:57:40.246769577  [2023-05-31 11:57:40] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-31 09:57:40.289117939  [2023-05-31 11:57:40] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 8 and discarding the rest...
2023-05-31 10:03:37.306341463  [2023-05-31 12:03:37] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 10:03:37.322470213  [2023-05-31 12:03:37] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 10:08:19.191020282  [2023-05-31 12:08:19] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 10:08:19.204847230  [2023-05-31 12:08:19] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 7 and discarding the rest...
2023-05-31 10:15:33.899059793  [2023-05-31 12:15:33] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 10:15:33.912699704  [2023-05-31 12:15:33] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 10:24:13.216497072  [2023-05-31 12:24:13] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 10:55:23.544314442  [2023-05-31 12:55:23] frigate.watchdog               INFO    : Detection appears to be stuck. Restarting detection process...
2023-05-31 10:55:23.544332164  [2023-05-31 12:55:23] root                           INFO    : Waiting for detection process to exit gracefully...
2023-05-31 10:55:53.575315352  [2023-05-31 12:55:53] root                           INFO    : Detection process didnt exit. Force killing...
2023-05-31 10:55:53.601582274  [2023-05-31 12:55:53] root                           INFO    : Detection process has exited...
2023-05-31 10:55:53.689768740  [2023-05-31 12:55:53] detector.coral                 INFO    : Starting detection process: 83688
2023-05-31 10:55:53.765742688  [2023-05-31 12:55:53] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-05-31 10:55:57.173599749  [2023-05-31 12:55:56] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-05-31 12:02:08.111945776  [2023-05-31 14:02:08] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 12:02:08.121089464  [2023-05-31 14:02:08] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 12:03:10.585086263  [2023-05-31 14:03:10] frigate.record                 WARNING : Unable to keep up with recording segments in cache for backyard. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 12:03:10.592471527  [2023-05-31 14:03:10] frigate.record                 WARNING : Unable to keep up with recording segments in cache for driveway. Keeping the 5 most recent segments out of 6 and discarding the rest...
2023-05-31 12:03:58.123398019  [2023-05-31 14:03:58] frigate.http                   ERROR   : ffmpeg version 4.3.5-0+deb11u1+rpt3 Copyright (c) 2000-2022 the FFmpeg developers
2023-05-31 12:03:58.123411259    built with gcc 10 (Debian 10.2.1-6)
2023-05-31 12:03:58.123518776    configuration: --prefix=/usr --extra-version=0+deb11u1+rpt3 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-mmal --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-sand --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
2023-05-31 12:03:58.123575350    libavutil      56. 51.100 / 56. 51.100
2023-05-31 12:03:58.123578627    libavcodec     58. 91.100 / 58. 91.100
2023-05-31 12:03:58.123580720    libavformat    58. 45.100 / 58. 45.100
2023-05-31 12:03:58.123582664    libavdevice    58. 10.100 / 58. 10.100
2023-05-31 12:03:58.123641942    libavfilter     7. 85.100 /  7. 85.100
2023-05-31 12:03:58.123645516    libavresample   4.  0.  0 /  4.  0.  0
2023-05-31 12:03:58.123647349    libswscale      5.  7.100 /  5.  7.100
2023-05-31 12:03:58.123649201    libswresample   3.  7.100 /  3.  7.100
2023-05-31 12:03:58.123651682    libpostproc    55.  7.100 / 55.  7.100
2023-05-31 12:03:58.123653719  /dev/stdin: Invalid data found when processing input
2023-05-31 12:03:58.123654923  
2023-05-31 12:04:02.707594433  [2023-05-31 14:04:02] frigate.http                   ERROR   : ffmpeg version 4.3.5-0+deb11u1+rpt3 Copyright (c) 2000-2022 the FFmpeg developers
2023-05-31 12:04:02.707606266    built with gcc 10 (Debian 10.2.1-6)
2023-05-31 12:04:02.707632136    configuration: --prefix=/usr --extra-version=0+deb11u1+rpt3 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-mmal --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-sand --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
2023-05-31 12:04:02.707635284    libavutil      56. 51.100 / 56. 51.100
2023-05-31 12:04:02.707637451    libavcodec     58. 91.100 / 58. 91.100
2023-05-31 12:04:02.707639451    libavformat    58. 45.100 / 58. 45.100
2023-05-31 12:04:02.707641339    libavdevice    58. 10.100 / 58. 10.100
2023-05-31 12:04:02.707643228    libavfilter     7. 85.100 /  7. 85.100
2023-05-31 12:04:02.707645099    libavresample   4.  0.  0 /  4.  0.  0
2023-05-31 12:04:02.707646969    libswscale      5.  7.100 /  5.  7.100
2023-05-31 12:04:02.707648839    libswresample   3.  7.100 /  3.  7.100
2023-05-31 12:04:02.707650728    libpostproc    55.  7.100 / 55.  7.100
2023-05-31 12:04:02.707652802  /dev/stdin: Invalid data found when processing input
2023-05-31 12:04:02.707654043

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Any other information that may be helpful

The code that listens to the mqtt / gets the video files is run on a separate server.

The code for my "Frigate to Telegram Sender" can be found here. It is a WIP.
https://github.com/InfriaAB/FrigateSender/

@blakeblackshear
Copy link
Owner

The event is over, but the last video segment may be in the cache for up to 10 seconds before it's available. You just need to add a delay.

@InfriaAB
Copy link
Author

InfriaAB commented May 31, 2023

Ah, ok. I'll try that. I have just added wait for two seconds so far.

Is it possible to reduce that delay without degradation? One of the reasons I want to get the video out fast is in case someone cuts the power to the house, or finds the Raspberry Pi. I want the videos to be backup up to Telegram as quick as possible.

No real big deal though, I doubt anything like that will ever happen.

@NickM-27
Copy link
Collaborator

MP4 files require the end trailer to be written so the delay will be as long as the segment is. 10 seconds is the optimal duration of a segment and reducing that duration will lead to various issues and inefficiencies

@InfriaAB
Copy link
Author

Ok, thank you. Ill add a delay to my code :)

@InfriaAB
Copy link
Author

InfriaAB commented Jun 1, 2023

I've now rewritten my code and added a 20 second delay after the "end" event for video retrieval .
I'm still not getting the whole video as I can view it in Frigate.

I'm running this on a raspberry pi 4. Its doing nothing else though and does not seem maxxed out, but I'm guessing it simply can't go that fast?

Is there an API call I can check to see if the event/video is written completely to disk?

@NickM-27
Copy link
Collaborator

NickM-27 commented Jun 1, 2023

Are you watching the clip at the same time as you are pulling it? Because if it's available in the webUI we would expect the same to be shown in the downloaded clip. What are you using to pull the clip?

@InfriaAB
Copy link
Author

InfriaAB commented Jun 1, 2023

No, it's happening later. I run out to trigger camera event, get the event on phone after a bit, and then load the UI in Frigate when I have run back to my PC :).
The UI has more time to save. I just mean it is storing the video corretly its probably just slow. I can just add more delay, but would be nice to have a more definite, "it is really done" check besides just adding more delays in my code.

@NickM-27
Copy link
Collaborator

NickM-27 commented Jun 1, 2023

Yes, there is an existing feature request for that

@InfriaAB
Copy link
Author

InfriaAB commented Jun 1, 2023

Ah, Nice. Ill just add another 10 second delay then and wait for that.
Thank you.

@InfriaAB
Copy link
Author

InfriaAB commented Jun 1, 2023

@NickM-27 I tried to find the feature request but failed.

Just a suggestion on it, maybe you could send an event after "end" with "completed" or something similar which signals that all recording is also done and written. Then I could just listen to that instead of also having to poll an API.

@NickM-27
Copy link
Collaborator

NickM-27 commented Jun 1, 2023

#2128 is the feature request. If the additional delay worked then I think this issue can be closed

@github-actions
Copy link

github-actions bot commented Jul 2, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jul 2, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants