blakeblackshear / frigate

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

[Support]: Unable to keep up with recording segments #8881

Closed xavan83 closed 9 months ago

xavan83 commented 10 months ago

Describe the problem you are having

I am seeing a lot of the following message: frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest... The server is running on a 512Gb ssd with 8gb DDR4 and an Intel i3 8100

According to the others posts I increase shm size and tmpfs size without any luck. This happens only for one of my 9 cameras (same resolution, fps, bitrate, model than the others).

Version

0.13.0-614A36A (beta6)

Frigate config file

record:
  enabled: True
  events:
    pre_capture: 15
    post_capture: 15
    objects:
      - person
      - bicycle
      - car
      - motorcycle
      - bus
      - train
      - car
      - dog
      - horse
    retain:
      default: 30
      mode: motion
 parking:
    ffmpeg:
      inputs:
        - path: rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.64/Streaming/Channels/101
          roles:
            - detect,record
    detect:
      enabled: True
      width: 3072
      height: 2048
    motion:
      mask:
        - 3072,734,2258,225,2268,75,1525,175,1557,379,1060,474,1153,586,1936,492,2054,766,1549,709,1317,756,1065,811,1073,866,821,938,823,1006,604,1065,596,1175,354,1225,349,1375,90,1400,120,1220,282,1030,357,851,324,736,289,507,0,536,0,0,3072,0
        - 379,2048,384,1490,606,1445,659,1238,941,1240,923,1128,1168,1055,1163,968,1450,856,1929,754,2206,906,2438,1155,2770,1652,2111,2048
        - 3072,1118,3072,821,2518,442,2211,264,2171,282,2221,402
        - 2962,1510,2849,1599,2256,916,2323,781
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    objects:
      filters:
        person:
           min_score: 0.3
           threshold: 0.5
        cars:
          min_score: 0.3
          threshold: 0.5
      track:
        - person
        - bicycle
        - car
        - bus

Relevant log output

2023-12-07 11:16:39.391631965  [2023-12-07 11:16:39] frigate.record.maintainer      DEBUG   : Found 2 old frames.
2023-12-07 11:16:54.398448397  [2023-12-07 11:16:54] frigate.record.maintainer      DEBUG   : Found 2 old frames.
2023-12-07 11:17:04.396813625  [2023-12-07 11:17:04] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:17:09.396479900  [2023-12-07 11:17:09] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:17:14.393190558  [2023-12-07 11:17:14] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:17:24.414849613  [2023-12-07 11:17:24] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:17:29.396691809  [2023-12-07 11:17:29] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:17:34.401661121  [2023-12-07 11:17:34] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:17:39.396387419  [2023-12-07 11:17:39] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:18:14.404016744  [2023-12-07 11:18:14] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:18:29.404335135  [2023-12-07 11:18:29] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:20:09.406235303  [2023-12-07 11:20:09] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:20:14.407044166  [2023-12-07 11:20:14] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:20:19.413958008  [2023-12-07 11:20:19] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:20:29.406385655  [2023-12-07 11:20:29] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:20:44.411299018  [2023-12-07 11:20:44] frigate.record.maintainer      DEBUG   : Found 2 old frames.
2023-12-07 11:20:49.411138376  [2023-12-07 11:20:49] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:21:04.415786496  [2023-12-07 11:21:04] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:21:39.430643247  [2023-12-07 11:21:39] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:21:49.427821375  [2023-12-07 11:21:49] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:21:54.422721967  [2023-12-07 11:21:54] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:21:59.424579051  [2023-12-07 11:21:59] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:22:04.434288257  [2023-12-07 11:22:04] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:22:09.430729376  [2023-12-07 11:22:09] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:22:14.432765478  [2023-12-07 11:22:14] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:22:19.445335061  [2023-12-07 11:22:19] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-07 11:22:24.437231371  [2023-12-07 11:22:24] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-07 11:22:29.426342601  [2023-12-07 11:22:29] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:22:29.438222900  [2023-12-07 11:22:29] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-07 11:22:34.440305411  [2023-12-07 11:22:34] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-07 11:23:09.435497427  [2023-12-07 11:23:09] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:23:34.434275364  [2023-12-07 11:23:34] frigate.record.maintainer      DEBUG   : Found 2 old frames.
2023-12-07 11:23:34.638852690  [2023-12-07 11:23:34] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/10/sonnette/23.20.mp4 in 0.09511899948120117 seconds.
2023-12-07 11:23:39.432274980  [2023-12-07 11:23:39] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:24:34.718435412  [2023-12-07 11:24:34] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/10/sonnette/24.20.mp4 in 0.18874406814575195 seconds.
2023-12-07 11:24:44.628199860  [2023-12-07 11:24:44] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/10/sonnette/24.30.mp4 in 0.1081228256225586 seconds.
2023-12-07 11:25:19.439872713  [2023-12-07 11:25:19] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:25:24.448370362  [2023-12-07 11:25:24] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-07 11:25:29.436683259  [2023-12-07 11:25:29] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:25:34.442164410  [2023-12-07 11:25:34] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:25:39.442782533  [2023-12-07 11:25:39] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:25:54.441442554  [2023-12-07 11:25:54] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:27:14.697901916  [2023-12-07 11:27:14] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/10/sonnette/27.00.mp4 in 0.1575920581817627 seconds.
2023-12-07 11:27:24.680611258  [2023-12-07 11:27:24] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/10/sonnette/27.10.mp4 in 0.14252805709838867 seconds.
2023-12-07 11:28:04.606074018  [2023-12-07 11:28:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/10/sonnette/27.50.mp4 in 0.08147597312927246 seconds.
2023-12-07 11:29:54.464980143  [2023-12-07 11:29:54] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 11:29:59.471063624  [2023-12-07 11:29:59] frigate.record.maintainer      DEBUG   : Found 3 old frames.
2023-12-07 11:31:18.150025469  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150033912  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150035711  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150037454  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150039349  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150040886  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150042684  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150044211  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150046199  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150047671  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150049295  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150050963  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150052525  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150053825  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150055246  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150056543  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150057832  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150059075  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150060367  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150061605  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150062875  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150064227  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150065492  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150066803  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150068063  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150080976  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150082249  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150083503  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150084739  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150086003  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150087239  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150088795  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150090112  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150091344  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150092610  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150093850  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150095084  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150096348  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150097598  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150098850  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150100121  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150101426  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150102691  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150103921  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150105145  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150106411  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150107641  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150108884  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150110122  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150111332  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150465808  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150664900  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.150927060  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.151174111  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.151175960  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.151177299  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-07 11:31:18.153448246  [2023-12-07 11:31:18] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.

FFprobe output from your camera

ffprobe version 6.0-6ubuntu1 Copyright (c) 2007-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-2ubuntu1)
  configuration: --prefix=/usr --extra-version=6ubuntu1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --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-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Input #0, rtsp, from 'rtsp://192.168.0.64/Streaming/Channels/101':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.100000, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 3072x2048 [SAR 1:1 DAR 3:2], 20 fps, 10 tbr, 90k tbn

Frigate stats

{
"cameras": {
"allee": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5.1,
"capture_pid": 351,
"detection_enabled": 1,
"detection_fps": 0,
"ffmpeg_pid": 364,
"pid": 322,
"process_fps": 5.1,
"skipped_fps": 0
},
"garage": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5,
"capture_pid": 355,
"detection_enabled": 1,
"detection_fps": 2.2,
"ffmpeg_pid": 367,
"pid": 323,
"process_fps": 5,
"skipped_fps": 0
},
"jardin": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5,
"capture_pid": 346,
"detection_enabled": 1,
"detection_fps": 1,
"ffmpeg_pid": 363,
"pid": 320,
"process_fps": 5,
"skipped_fps": 0
},
"lateraldroite": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5,
"capture_pid": 376,
"detection_enabled": 1,
"detection_fps": 0,
"ffmpeg_pid": 717,
"pid": 335,
"process_fps": 5.1,
"skipped_fps": 0
},
"lateralgauche": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5.1,
"capture_pid": 369,
"detection_enabled": 1,
"detection_fps": 0,
"ffmpeg_pid": 411,
"pid": 329,
"process_fps": 5.1,
"skipped_fps": 0
},
"parking": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5,
"capture_pid": 359,
"detection_enabled": 1,
"detection_fps": 0,
"ffmpeg_pid": 385,
"pid": 324,
"process_fps": 5,
"skipped_fps": 0
},
"porteentree": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5,
"capture_pid": 365,
"detection_enabled": 1,
"detection_fps": 0,
"ffmpeg_pid": 387,
"pid": 327,
"process_fps": 5,
"skipped_fps": 0
},
"sonnette": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5,
"capture_pid": 338,
"detection_enabled": 1,
"detection_fps": 0,
"ffmpeg_pid": 48460,
"pid": 315,
"process_fps": 5,
"skipped_fps": 0
},
"terrasse": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5,
"capture_pid": 340,
"detection_enabled": 1,
"detection_fps": 0,
"ffmpeg_pid": 352,
"pid": 317,
"process_fps": 5,
"skipped_fps": 0
}
},
"cpu_usages": {
"1": {
"cmdline": "/package/admin/s6/command/s6-svscan -d4 -- /run/service",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"15": {
"cmdline": "s6-supervise s6-linux-init-shutdownd",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"16": {
"cmdline": "/package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"24": {
"cmdline": "s6-supervise s6rc-fdholder",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"25": {
"cmdline": "s6-supervise go2rtc-healthcheck",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"26": {
"cmdline": "s6-supervise frigate-log",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"27": {
"cmdline": "s6-supervise go2rtc",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"28": {
"cmdline": "s6-supervise s6rc-oneshot-runner",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"29": {
"cmdline": "s6-supervise frigate",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"30": {
"cmdline": "s6-supervise go2rtc-log",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"31": {
"cmdline": "s6-supervise nginx",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"32": {
"cmdline": "s6-supervise nginx-log",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"41": {
"cmdline": "/package/admin/s6-2.11.3.2/command/s6-fdholderd -1 -i data/rules",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"42": {
"cmdline": "/package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"78": {
"cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"81": {
"cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"82": {
"cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"89": {
"cmdline": "/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml",
"cpu": "1.1",
"cpu_average": "1",
"mem": "0.3"
},
"105": {
"cmdline": "python3 -u -m frigate",
"cpu": "2.8",
"cpu_average": "3",
"mem": "9.1"
},
"114": {
"cmdline": "bash ./run.user go2rtc-healthcheck",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"120": {
"cmdline": "nginx: master process nginx",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.2"
},
"144": {
"cmdline": "nginx: worker process",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.4"
},
"145": {
"cmdline": "nginx: worker process",
"cpu": "0.1",
"cpu_average": "0",
"mem": "0.4"
},
"146": {
"cmdline": "nginx: worker process",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.3"
},
"159": {
"cmdline": "nginx: worker process",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.3"
},
"172": {
"cmdline": "nginx: cache manager process",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.1"
},
"294": {
"cmdline": "frigate.logger       ",
"cpu": "0.0",
"cpu_average": "0",
"mem": "1.3"
},
"296": {
"cmdline": "frigate.recording_manager",
"cpu": "0.9",
"cpu_average": "1",
"mem": "2.2"
},
"305": {
"cmdline": "/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(73)",
"cpu": "0.6",
"cpu_average": "0",
"mem": "0.1"
},
"306": {
"cmdline": "frigate.detector.ov  ",
"cpu": "27.0",
"cpu_average": "62",
"mem": "5.4"
},
"308": {
"cmdline": "frigate.output       ",
"cpu": "5.5",
"cpu_average": "4",
"mem": "2.4"
},
"311": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.2"
},
"312": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 2560x1440 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.2"
},
"314": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 3072x1728 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.2"
},
"315": {
"cmdline": "frigate.process:sonnette",
"cpu": "1.3",
"cpu_average": "2",
"mem": "2.6"
},
"317": {
"cmdline": "frigate.process:terrasse",
"cpu": "1.3",
"cpu_average": "2",
"mem": "2.6"
},
"318": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 2688x1520 -i pipe: -f mpegts -s 1273x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.7"
},
"320": {
"cmdline": "frigate.process:jardin",
"cpu": "2.7",
"cpu_average": "3",
"mem": "2.6"
},
"322": {
"cmdline": "frigate.process:allee",
"cpu": "1.2",
"cpu_average": "2",
"mem": "2.6"
},
"323": {
"cmdline": "frigate.process:garage",
"cpu": "1.9",
"cpu_average": "3",
"mem": "2.6"
},
"324": {
"cmdline": "frigate.process:parking",
"cpu": "3.0",
"cpu_average": "4",
"mem": "2.6"
},
"327": {
"cmdline": "frigate.process:porteentree",
"cpu": "1.5",
"cpu_average": "1",
"mem": "2.6"
},
"328": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 2688x1520 -i pipe: -f mpegts -s 1273x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.6"
},
"329": {
"cmdline": "frigate.process:lateralgauche",
"cpu": "1.3",
"cpu_average": "2",
"mem": "2.6"
},
"335": {
"cmdline": "frigate.process:lateraldroite",
"cpu": "1.6",
"cpu_average": "2",
"mem": "2.6"
},
"337": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 3072x2048 -i pipe: -f mpegts -s 1080x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.2"
},
"338": {
"cmdline": "frigate.capture:sonnette",
"cpu": "2.7",
"cpu_average": "2",
"mem": "2.0"
},
"340": {
"cmdline": "frigate.capture:terrasse",
"cpu": "4.3",
"cpu_average": "4",
"mem": "2.0"
},
"346": {
"cmdline": "frigate.capture:jardin",
"cpu": "6.7",
"cpu_average": "6",
"mem": "2.1"
},
"347": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 2688x1520 -i pipe: -f mpegts -s 1273x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.7"
},
"351": {
"cmdline": "frigate.capture:allee",
"cpu": "4.8",
"cpu_average": "5",
"mem": "2.1"
},
"352": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.0.68:7083/Streaming/Channels/101 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/terrasse@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=2560:h=1440:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "14.2",
"cpu_average": "15",
"mem": "1.5"
},
"353": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 2688x1520 -i pipe: -f mpegts -s 1273x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.2"
},
"355": {
"cmdline": "frigate.capture:garage",
"cpu": "5.0",
"cpu_average": "5",
"mem": "2.0"
},
"359": {
"cmdline": "frigate.capture:parking",
"cpu": "7.0",
"cpu_average": "7",
"mem": "2.1"
},
"363": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.0.69:7091/Streaming/Channels/101 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/jardin@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=3072:h=1728:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "23.4",
"cpu_average": "22",
"mem": "2.4"
},
"364": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.0.71/Streaming/Channels/101 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/allee@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=2688:h=1520:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "19.7",
"cpu_average": "20",
"mem": "1.0"
},
"365": {
"cmdline": "frigate.capture:porteentree",
"cpu": "5.2",
"cpu_average": "5",
"mem": "2.0"
},
"366": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 2688x1520 -i pipe: -f mpegts -s 1273x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.2"
},
"367": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.0.72/Streaming/Channels/101 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/garage@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=2688:h=1520:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "20.1",
"cpu_average": "20",
"mem": "1.0"
},
"369": {
"cmdline": "frigate.capture:lateralgauche",
"cpu": "4.5",
"cpu_average": "5",
"mem": "2.0"
},
"376": {
"cmdline": "frigate.capture:lateraldroite",
"cpu": "5.8",
"cpu_average": "5",
"mem": "2.0"
},
"377": {
"cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.2"
},
"385": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.0.64/Streaming/Channels/101 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/parking@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=3072:h=2048:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "23.8",
"cpu_average": "25",
"mem": "2.2"
},
"387": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.0.65:7006/Streaming/Channels/101 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/porteentree@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=2688:h=1520:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "21.3",
"cpu_average": "19",
"mem": "1.5"
},
"411": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.0.67:7063/Streaming/Channels/101 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/lateralgauche@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=2688:h=1520:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "18.5",
"cpu_average": "19",
"mem": "1.5"
},
"717": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.0.66:7033/Streaming/Channels/101 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/lateraldroite@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=2688:h=1520:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "21.1",
"cpu_average": "19",
"mem": "1.6"
},
"48460": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/sonnette -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/sonnette@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1920:h=1080:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "10.0",
"cpu_average": "9",
"mem": "0.9"
},
"49048": {
"cmdline": "sleep 30s",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
}
},
"detection_fps": 3.2,
"detectors": {
"ov": {
"detection_start": 0,
"inference_speed": 37.34,
"pid": 306
}
},
"gpu_usages": {
"intel-vaapi": {
"gpu": "41.43%",
"mem": "-%"
}
},
"processes": {
"go2rtc": {
"pid": 89
},
"logger": {
"pid": 294
},
"recording": {
"pid": 296
}
},
"service": {
"last_updated": 1701954317,
"latest_version": "0.12.1",
"storage": {
"/dev/shm": {
"free": 3971.6,
"mount_type": "tmpfs",
"total": 4048,
"used": 76.4
},
"/media/frigate/clips": {
"free": 305867.5,
"mount_type": "ext4",
"total": 479620.9,
"used": 149318.3
},
"/media/frigate/recordings": {
"free": 305867.5,
"mount_type": "ext4",
"total": 479620.9,
"used": 149318.3
},
"/tmp/cache": {
"free": 1873.3,
"mount_type": "tmpfs",
"total": 1907.4,
"used": 34.1
}
},
"temperatures": {},
"uptime": 12668,
"version": "0.13.0-614a36a"
}
}

Operating system

Other Linux

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Hikvision

Any other information that may be helpful

version: "3.9" services: frigate: container_name: frigate privileged: true # this may not be necessary for all setups restart: unless-stopped image: ghcr.io/blakeblackshear/frigate:0.13.0-beta6 shm_size: "4048mb" # update for your cameras based on calculation above devices:

- /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions

  #- /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
  - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
  - /etc/localtime:/etc/localtime:ro
  - /home/xavan/frigate/confighd.yml:/config/config.yml:ro
  - /home/xavan/frigate/storage:/media/frigate
  - /home/xavan/frigate/db:/db
  - /home/xavan/yologoogle/content:/yolo
  - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
    target: /tmp/cache
    tmpfs:
      size: 2000000000
ports:
  - "5000:5000"
  - "1935:1935" # RTMP feeds
NickM-27 commented 10 months ago

it would be good to see your full config and also a full set of logs not just a small section

it also might be helpful if you enable debug recording logs

logger:
  logs:
   frigate.record.maintainer: debug
xavan83 commented 10 months ago

it would be good to see your full config and also a full set of logs not just a small section

it also might be helpful if you enable debug recording logs

logger:
  logs:
   frigate.record.maintainer: debug

I add more log that where there is a lot of errors from my intercom.

NickM-27 commented 10 months ago

then we need to see those logs, the problem is not related to recordings but to the camera going offline

xavan83 commented 10 months ago
2023-12-07 15:18:09.134309415  [INFO] Preparing Frigate...
2023-12-07 15:18:09.146250151  [INFO] Starting Frigate...
2023-12-07 15:18:10.163782940  [2023-12-07 15:18:10] frigate.app                    INFO    : Starting Frigate (0.13.0-614a36a)
2023-12-07 15:18:10.241214139  [2023-12-07 15:18:10] frigate.config                 WARNING : Customizing more than a detector model path is unsupported.
2023-12-07 15:18:10.269327276  [2023-12-07 15:18:10] peewee_migrate.logs            INFO    : Starting migrations
2023-12-07 15:18:10.272755236  [2023-12-07 15:18:10] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-12-07 15:18:10.278196815  [2023-12-07 15:18:10] frigate.app                    INFO    : Recording process started: 297
2023-12-07 15:18:10.280199683  [2023-12-07 15:18:10] frigate.app                    INFO    : go2rtc process pid: 89
2023-12-07 15:18:10.308653435  [2023-12-07 15:18:10] frigate.app                    INFO    : Output process started: 309
2023-12-07 15:18:10.309907845  [2023-12-07 15:18:10] detector.ov                    INFO    : Starting detection process: 307
2023-12-07 15:18:10.341628969  [2023-12-07 15:18:10] frigate.app                    INFO    : Camera processor started for sonnette: 314
2023-12-07 15:18:10.348825002  [2023-12-07 15:18:10] frigate.app                    INFO    : Camera processor started for terrasse: 316
2023-12-07 15:18:10.355993877  [2023-12-07 15:18:10] frigate.app                    INFO    : Camera processor started for jardin: 319
2023-12-07 15:18:10.363692141  [2023-12-07 15:18:10] frigate.app                    INFO    : Camera processor started for allee: 321
2023-12-07 15:18:10.369914827  [2023-12-07 15:18:10] frigate.app                    INFO    : Camera processor started for garage: 322
2023-12-07 15:18:10.382740650  [2023-12-07 15:18:10] frigate.app                    INFO    : Camera processor started for parking: 325
2023-12-07 15:18:10.394120912  [2023-12-07 15:18:10] frigate.app                    INFO    : Camera processor started for porteentree: 328
2023-12-07 15:18:10.400537156  [2023-12-07 15:18:10] frigate.app                    INFO    : Camera processor started for lateralgauche: 329
2023-12-07 15:18:10.406846964  [2023-12-07 15:18:10] frigate.app                    INFO    : Camera processor started for lateraldroite: 335
2023-12-07 15:18:10.413610312  [2023-12-07 15:18:10] frigate.app                    INFO    : Capture process started for sonnette: 339
2023-12-07 15:18:10.425624873  [2023-12-07 15:18:10] frigate.app                    INFO    : Capture process started for terrasse: 340
2023-12-07 15:18:10.426644955  [2023-12-07 15:18:10] frigate.app                    INFO    : Capture process started for jardin: 343
2023-12-07 15:18:10.433335964  [2023-12-07 15:18:10] frigate.app                    INFO    : Capture process started for allee: 347
2023-12-07 15:18:10.440435520  [2023-12-07 15:18:10] frigate.app                    INFO    : Capture process started for garage: 350
2023-12-07 15:18:10.452385192  [2023-12-07 15:18:10] frigate.app                    INFO    : Capture process started for parking: 354
2023-12-07 15:18:10.460109116  [2023-12-07 15:18:10] frigate.app                    INFO    : Capture process started for porteentree: 361
2023-12-07 15:18:10.478609045  [2023-12-07 15:18:10] frigate.app                    INFO    : Capture process started for lateralgauche: 368
2023-12-07 15:18:10.500704063  [2023-12-07 15:18:10] frigate.app                    INFO    : Capture process started for lateraldroite: 376
2023-12-07 15:18:23.206101308  [2023-12-07 15:18:23] frigate.detectors.plugins.openvino INFO    : Model Input Shape: [1,3,416,416]
2023-12-07 15:18:23.206105692  [2023-12-07 15:18:23] frigate.detectors.plugins.openvino INFO    : Model Output-0 Shape: [1,84,3549]
2023-12-07 15:18:23.206109949  [2023-12-07 15:18:23] frigate.detectors.plugins.openvino INFO    : Model has 1 Output Tensors
2023-12-07 15:18:25.289987512  [2023-12-07 15:18:25] frigate.record.maintainer      DEBUG   : Found 15 old frames.
2023-12-07 15:18:30.294536635  [2023-12-07 15:18:30] frigate.record.maintainer      DEBUG   : Found 10 old frames.
2023-12-07 15:18:40.290108113  [2023-12-07 15:18:40] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 15:18:45.289476240  [2023-12-07 15:18:45] frigate.record.maintainer      DEBUG   : Found 6 old frames.
2023-12-07 15:18:50.298290264  [2023-12-07 15:18:50] frigate.record.maintainer      DEBUG   : Found 7 old frames.
2023-12-07 15:18:55.307785507  [2023-12-07 15:18:55] frigate.record.maintainer      DEBUG   : Found 6 old frames.
2023-12-07 15:19:00.294907588  [2023-12-07 15:19:00] frigate.record.maintainer      DEBUG   : Found 10 old frames.
2023-12-07 15:19:05.293151909  [2023-12-07 15:19:05] frigate.record.maintainer      DEBUG   : Found 12 old frames.
2023-12-07 15:19:10.290296676  [2023-12-07 15:19:10] frigate.record.maintainer      DEBUG   : Found 5 old frames.
2023-12-07 15:19:15.295623645  [2023-12-07 15:19:15] frigate.record.maintainer      DEBUG   : Found 6 old frames.
2023-12-07 15:19:20.298297875  [2023-12-07 15:19:20] frigate.record.maintainer      DEBUG   : Found 6 old frames.
2023-12-07 15:19:25.297412211  [2023-12-07 15:19:25] frigate.record.maintainer      DEBUG   : Found 8 old frames.
2023-12-07 15:19:30.293062377  [2023-12-07 15:19:30] frigate.record.maintainer      DEBUG   : Found 5 old frames.
2023-12-07 15:19:35.293026200  [2023-12-07 15:19:35] frigate.record.maintainer      DEBUG   : Found 5 old frames.
2023-12-07 15:19:40.298664413  [2023-12-07 15:19:40] frigate.record.maintainer      DEBUG   : Found 6 old frames.
2023-12-07 15:19:45.292707769  [2023-12-07 15:19:45] frigate.record.maintainer      DEBUG   : Found 7 old frames.
2023-12-07 15:19:50.298385757  [2023-12-07 15:19:50] frigate.record.maintainer      DEBUG   : Found 6 old frames.
2023-12-07 15:19:55.294429745  [2023-12-07 15:19:55] frigate.record.maintainer      DEBUG   : Found 9 old frames.
2023-12-07 15:20:00.298626415  [2023-12-07 15:20:00] frigate.record.maintainer      DEBUG   : Found 6 old frames.
2023-12-07 15:20:05.294740619  [2023-12-07 15:20:05] frigate.record.maintainer      DEBUG   : Found 2 old frames.
2023-12-07 15:20:10.298539053  [2023-12-07 15:20:10] frigate.record.maintainer      DEBUG   : Found 4 old frames.
2023-12-07 15:20:15.297861240  [2023-12-07 15:20:15] frigate.record.maintainer      DEBUG   : Found 3 old frames.
2023-12-07 15:20:20.297030356  [2023-12-07 15:20:20] frigate.record.maintainer      DEBUG   : Found 4 old frames.
2023-12-07 15:20:25.298333511  [2023-12-07 15:20:25] frigate.record.maintainer      DEBUG   : Found 3 old frames.
2023-12-07 15:20:30.297726968  [2023-12-07 15:20:30] frigate.record.maintainer      DEBUG   : Found 3 old frames.
2023-12-07 15:20:35.296247423  [2023-12-07 15:20:35] frigate.record.maintainer      DEBUG   : Found 2 old frames.
2023-12-07 15:20:40.298556065  [2023-12-07 15:20:40] frigate.record.maintainer      DEBUG   : Found 2 old frames.
2023-12-07 15:20:45.302336330  [2023-12-07 15:20:45] frigate.record.maintainer      DEBUG   : Found 3 old frames.
2023-12-07 15:20:50.297981723  [2023-12-07 15:20:50] frigate.record.maintainer      DEBUG   : Found 5 old frames.
2023-12-07 15:20:55.299914459  [2023-12-07 15:20:55] frigate.record.maintainer      DEBUG   : Found 4 old frames.
2023-12-07 15:21:00.300282796  [2023-12-07 15:21:00] frigate.record.maintainer      DEBUG   : Found 3 old frames.
2023-12-07 15:21:05.302454326  [2023-12-07 15:21:05] frigate.record.maintainer      DEBUG   : Found 3 old frames.
2023-12-07 15:21:10.310686376  [2023-12-07 15:21:10] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 15:21:20.306292209  [2023-12-07 15:21:20] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 15:21:50.302798588  [2023-12-07 15:21:50] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 15:21:55.313565247  [2023-12-07 15:21:55] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 15:22:00.305461972  [2023-12-07 15:22:00] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 15:24:25.535534358  [2023-12-07 15:24:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/allee/24.14.mp4 in 0.21112608909606934 seconds.
2023-12-07 15:24:30.374740481  [2023-12-07 15:24:30] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/parking/24.04.mp4 in 0.04632091522216797 seconds.
2023-12-07 15:24:35.815962595  [2023-12-07 15:24:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/allee/24.22.mp4 in 0.4647979736328125 seconds.
2023-12-07 15:24:35.816814373  [2023-12-07 15:24:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/garage/24.02.mp4 in 0.4090578556060791 seconds.
2023-12-07 15:24:35.831117060  [2023-12-07 15:24:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/garage/24.14.mp4 in 0.3613090515136719 seconds.
2023-12-07 15:24:35.831125973  [2023-12-07 15:24:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/garage/24.22.mp4 in 0.28843212127685547 seconds.
2023-12-07 15:24:35.831127665  [2023-12-07 15:24:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/parking/24.17.mp4 in 0.11189603805541992 seconds.
2023-12-07 15:24:45.526497021  [2023-12-07 15:24:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/allee/24.34.mp4 in 0.196058988571167 seconds.
2023-12-07 15:24:45.528180326  [2023-12-07 15:24:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/parking/24.30.mp4 in 0.023913145065307617 seconds.
2023-12-07 15:24:55.528767946  [2023-12-07 15:24:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/allee/24.42.mp4 in 0.1844329833984375 seconds.
2023-12-07 15:24:55.632288761  [2023-12-07 15:24:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/sonnette/24.41.mp4 in 0.12024807929992676 seconds.
2023-12-07 15:25:00.420986385  [2023-12-07 15:25:00] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/parking/24.43.mp4 in 0.08470296859741211 seconds.
2023-12-07 15:25:05.788833471  [2023-12-07 15:25:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/allee/24.54.mp4 in 0.4145078659057617 seconds.
2023-12-07 15:25:05.846898487  [2023-12-07 15:25:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/sonnette/24.51.mp4 in 0.22557997703552246 seconds.
2023-12-07 15:25:15.523659372  [2023-12-07 15:25:15] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/sonnette/25.01.mp4 in 0.1000669002532959 seconds.
2023-12-07 15:32:35.548363470  [2023-12-07 15:32:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/sonnette/32.21.mp4 in 0.1058511734008789 seconds.
2023-12-07 15:32:45.564182507  [2023-12-07 15:32:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/sonnette/32.31.mp4 in 0.11220002174377441 seconds.
2023-12-07 15:32:55.734368754  [2023-12-07 15:32:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/sonnette/32.41.mp4 in 0.2714550495147705 seconds.
2023-12-07 15:33:05.588717112  [2023-12-07 15:33:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/sonnette/32.51.mp4 in 0.10651397705078125 seconds.
2023-12-07 15:33:15.703985318  [2023-12-07 15:33:15] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/sonnette/33.01.mp4 in 0.16013002395629883 seconds.
2023-12-07 15:33:25.661494935  [2023-12-07 15:33:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/sonnette/33.11.mp4 in 0.16036605834960938 seconds.
2023-12-07 15:33:45.690583058  [2023-12-07 15:33:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/allee/33.33.mp4 in 0.23328399658203125 seconds.
2023-12-07 15:33:55.579137902  [2023-12-07 15:33:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/parking/33.28.mp4 in 0.19844317436218262 seconds.
2023-12-07 15:33:55.582204333  [2023-12-07 15:33:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/parking/33.42.mp4 in 0.13630986213684082 seconds.
2023-12-07 15:33:55.601410017  [2023-12-07 15:33:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/allee/33.41.mp4 in 0.0477299690246582 seconds.
2023-12-07 15:34:00.359075509  [2023-12-07 15:34:00] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-07 15:34:00.513545095  [2023-12-07 15:34:00] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/parking/33.43.mp4 in 0.14394688606262207 seconds.
2023-12-07 15:34:00.514855800  [2023-12-07 15:34:00] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/garage/33.33.mp4 in 0.07274603843688965 seconds.
2023-12-07 15:34:00.522178200  [2023-12-07 15:34:00] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/garage/33.41.mp4 in 0.030246973037719727 seconds.
2023-12-07 15:34:05.575779301  [2023-12-07 15:34:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/allee/33.53.mp4 in 0.19318079948425293 seconds.
2023-12-07 15:34:05.581166966  [2023-12-07 15:34:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/garage/33.53.mp4 in 0.14755702018737793 seconds.
2023-12-07 15:34:10.485567190  [2023-12-07 15:34:10] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/parking/33.56.mp4 in 0.11706805229187012 seconds.
2023-12-07 15:34:15.626804024  [2023-12-07 15:34:15] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/allee/34.01.mp4 in 0.09545207023620605 seconds.
2023-12-07 15:34:15.686410626  [2023-12-07 15:34:15] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/garage/34.01.mp4 in 0.1252291202545166 seconds.
2023-12-07 15:34:25.569808706  [2023-12-07 15:34:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/garage/34.13.mp4 in 0.20128393173217773 seconds.
2023-12-07 15:34:25.573791627  [2023-12-07 15:34:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/parking/34.07.mp4 in 0.026388883590698242 seconds.
2023-12-07 15:34:35.518169904  [2023-12-07 15:34:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-07/14/garage/34.21.mp4 in 0.04223012924194336 seconds.
2023-12-07 15:35:45.564871872  [h264 @ 0x7f7da80e2980] negative number of zero coeffs at 10 33
2023-12-07 15:35:45.564901393  [h264 @ 0x7f7da80e2980] error while decoding MB 10 33
2023-12-07 15:35:50.366920081  [2023-12-07 15:35:50] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-07 15:35:55.370573193  [2023-12-07 15:35:55] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-07 15:36:00.371997427  [2023-12-07 15:36:00] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-07 15:36:05.433698973  [2023-12-07 15:36:05] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-07 15:36:10.370332544  [2023-12-07 15:36:10] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-07 15:36:15.367565337  [2023-12-07 15:36:15] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
NickM-27 commented 10 months ago

let's see the full config

xavan83 commented 10 months ago
motion:
  contour_area: 20
  improve_contrast: True  
  threshold: 20
  lightning_threshold: 1
  mqtt_off_delay: 30
  frame_height: 100 
ffmpeg:
  hwaccel_args: preset-vaapi
  output_args:
    record: preset-record-generic-audio-aac
database:
  path: /db/frigate.db
mqtt:
  enabled: True
  host: 192.168.0.50
  port: 1884
  topic_prefix: frigate
  client_id: frigate
logger:
  default: info
  logs:
    frigate.object_detection: debug
    frigate.record.maintainer: debug
detectors:
  ov:
    type: openvino
    device: GPU #AUTO
    model:
      path: /yolo/yolov8s/yolov8s.xml
model:
  width: 416 
  height: 416
  input_tensor: nchw
  input_pixel_format: bgr
  model_type: yolov8  
go2rtc:
  streams:
    sonnette:
      - rtsp://192.168.0.70:554/Streaming/Channels/101#timeout=10
cameras:
  sonnette:
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-aac
      inputs:
        - path: rtsp://127.0.0.1:8554/sonnette
          roles:
            - detect,record
    detect:
      fps: 5
      enabled: True
      width: 1920 
      height: 1080 
    motion:
      mask:
        - 0,674,880,739,1514,672,1920,597,1920,0,0,0  
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    objects:
      filters:
        person:
           min_score: 0.3
           threshold: 0.5
           min_area: 10000
        cars:
          min_score: 0.3
          threshold: 0.5
      track:
        - person
        - bicycle
        - car
        - motorcycle
        - bus
        - cat
        - dog
        - horse
  terrasse:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.0.68:7083/Streaming/Channels/101 #rtsp://127.0.0.1:8554/terrasse
          roles:
            - record,detect
    detect:
      enabled: True
      width: 2560
      height: 1440
      fps: 5  
    motion:
      mask:
        - 2560,1440,2560,815,630,1416
        - 1961,484,2086,432,2560,524,2560,0,0,0,1728,349,1599,412,1283,339,986,351,1466,482,1060,663,1241,694,1551,653,1622,622,1740,591,1876,603,2017,638,2227,595 
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    objects:
      filters:
        person:
          min_score: 0.3
          threshold: 0.5
      track:
        - person
        - dog
        - cat
  jardin:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.0.69:7091/Streaming/Channels/101
          roles:
            - detect,record
    detect:
      enabled: True
      width: 3072
      height: 1728
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    objects:
      filters:
        person:
          mask:
            - 619,394,359,389,347,566,624,551
          min_score: 0.3
          threshold: 0.5
      track:
        - person
        - dog
        - cat
    motion:
      mask:
        - 0,0,3072,0,3072,394,1647,192,684,152,489,147,220,177,0,180
  allee:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.0.71/Streaming/Channels/101 #rtsp://127.0.0.1:8554/allee
          roles:
            - detect,record
    detect:
      enabled: True
      width: 2688
      height: 1520
      fps: 5
    motion:
      mask:
        - 389,1520,0,1520,0,797,181,1006
        - 0,0,2688,0,2688,703,0,836,0,769
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    objects:
      filters:
        person:
           min_score: 0.3
           threshold: 0.5
        cars:
          min_score: 0.3
          threshold: 0.5
      track:
        - person
        - bicycle
        - car
        - bus
  garage:
    record:
      events:
        required_zones:
          - pieton
          - voiture
    ffmpeg:
      inputs:
        - path: rtsp://192.168.0.72/Streaming/Channels/101 #rtsp://127.0.0.1:8554/garage
          roles:
            - detect,record
    detect:
      enabled: True
      width: 2688
      height: 1520
      fps: 5
    motion:
      mask:
        - 2295,620,2688,544,2688,0,2087,0,0,0,0,819,1386,618,1699,579,1854,533,2096,461,2092,555,1860,585,1882,672
        - 2688,651,2033,603,1915,851,2070,1087,2688,1052
        - 2688,616,1491,683,1380,703,1282,701,1166,723,124,952,0,989,0,1142
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    zones:
      voiture:
        coordinates: 1797,1520,1840,1098,747,1028,365,1131,0,1201,0,1520
        objects:
          - car
          - bus
      pieton:
        coordinates: 0,1520,2688,1520,2688,616,2148,426,1568,583,0,758
        objects:
          - person
          - bicycle
    objects:
      filters:
        person:
           min_score: 0.3
           threshold: 0.5
        cars:
          min_score: 0.3
          threshold: 0.5
      track:
        - person
        - bicycle
        - car
        - bus
  parking:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.0.64/Streaming/Channels/101
          roles:
            - detect,record
    detect:
      enabled: True
      width: 3072
      height: 2048
    motion:
      mask:
        - 3072,734,2258,225,2268,75,1525,175,1557,379,1060,474,1260,512,1936,492,2054,766,1549,709,1317,756,1065,811,1073,866,821,938,823,1006,604,1065,596,1175,354,1225,349,1375,90,1400,120,1220,282,1030,357,851,324,736,289,507,0,536,0,0,3072,0
        - 379,2048,384,1490,606,1445,659,1238,941,1240,923,1128,1168,1055,1163,968,1450,856,1929,754,2206,906,2438,1155,2770,1652,2111,2048
        - 3072,1118,3072,821,2518,442,2211,264,2171,282,2221,402
        - 2962,1510,2849,1599,2256,916,2323,781
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    objects:
      filters:
        person:
           min_score: 0.3
           threshold: 0.5
        cars:
          min_score: 0.3
          threshold: 0.5
      track:
        - person
        - bicycle
        - car
        - bus
  porteentree:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.0.65:7006/Streaming/Channels/101
          roles:
            - detect,record
    detect:
      enabled: True
      width: 2688
      height: 1520
    motion:
      mask:
        - 2688,1520,2688,0,1830,0,2170,94,1991,271,1840,214,1703,170,1552,223,1262,157,1011,131,751,216,400,378,0,670,0,1020,327,793,600,688,799,672,1037,718,1498,463,1607,579,400,1520,908,1520,2157,321,2284,148,2493,181,2332,919,2386,926,2179,1520
        - 725,0,0,0,0,395
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    objects:
      filters:
        person:
           min_score: 0.3
           threshold: 0.5
      track:
        - person
        - bicycle
  lateralgauche:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.0.67:7063/Streaming/Channels/101
          roles:
            - detect,record
    detect:
      enabled: True
      width: 2688
      height: 1520
    motion:
      mask:
        - 0,0,0,380,585,190,1028,155,1799,168,2443,247,2688,343,2688,0
        - 0,1520,341,1520,0,720
        - 1253,1347,1183,1443,827,1275,845,1161
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    objects:
      filters:
        person:
          min_score: 0.3
          threshold: 0.5
      track:
        - person
        - dog
        - cat
  lateraldroite:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.0.66:7033/Streaming/Channels/101
          roles:
            - detect,record
    detect:
      enabled: True
      width: 2688
      height: 1520
    motion:
      mask:
        - 0,310,535,135,1061,48,1074,120,1183,100,1179,46,1655,63,1974,103,2391,223,2688,365,2688,0,0,0
        - 2688,1520,2688,731,2688,491,2598,421,2522,299,2380,303,2157,262,1995,273,1749,325,1714,664,2059,1081,2471,701,2655,803,2463,1264,2292,1520
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
    objects:
      filters:
        person:
          min_score: 0.3
          threshold: 0.5
      track:
        - person
        - dog
        - cat
objects:
  filters:
    person:
      min_score: 0.3
      threshold: 0.5
      min_area: 20000
  track:
    - person
    - dog
    - cat
record:
  enabled: True
  events:
    pre_capture: 15
    post_capture: 15
    objects:
      - person
      - bicycle
      - car
      - motorcycle
      - bus
      - train
      - car
      - dog
      - horse  
    retain:
      default: 30
      mode: motion
NickM-27 commented 10 months ago

it looks like a lot of these cameras are running on the full res stream which is not recommended. Most likely the GPU (or CPU) is struggling to keep frame pacing high enough which is why the logs show old frames data

a screenshot of the system page might help show more data

xavan83 commented 10 months ago

Yes all cameras are running almost full resolution stream. This is the way I found for frigate to give better detection results. Low resolution streams are only 640*480. image

NickM-27 commented 10 months ago

because you are using ffmpeg with hwaccel preset you can set a different detect resolution and frigate will use the GPU to scale the stream down to that resolution

xavan83 commented 10 months ago

I test this configuration on one camera stream and it drastically reduce the cpu usage without to much increasing gpu usage. How does frigate work? Does Frigate read the same stream twice or is it possible to read it completely for the record process and resize and skip frames for the detect process ?

I need to check how much this will reduce detection accuracy

NickM-27 commented 10 months ago

recording is always copied directly from the camera, changing the detect resolution does not affect recordings in any way

xavan83 commented 10 months ago

These errors still occur with low cpu usage: 2023-12-12 10:07:35.554772269 [2023-12-12 10:07:35] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest... 2023-12-12 10:07:40.554756347 [2023-12-12 10:07:40] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest... 2023-12-12 10:07:45.555212074 [2023-12-12 10:07:45] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...

NickM-27 commented 10 months ago

Need a full copy of the logs with debugging enabled same as earlier

xavan83 commented 10 months ago
2023-12-12 10:18:58.280063947  [INFO] Preparing Frigate...
2023-12-12 10:18:58.290731390  [INFO] Starting Frigate...
2023-12-12 10:18:59.284366904  [2023-12-12 10:18:59] frigate.app                    INFO    : Starting Frigate (0.13.0-614a36a)
2023-12-12 10:18:59.357812026  [2023-12-12 10:18:59] frigate.config                 WARNING : Customizing more than a detector model path is unsupported.
2023-12-12 10:18:59.389887543  [2023-12-12 10:18:59] peewee_migrate.logs            INFO    : Starting migrations
2023-12-12 10:18:59.393276855  [2023-12-12 10:18:59] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-12-12 10:18:59.398333258  [2023-12-12 10:18:59] frigate.app                    INFO    : Recording process started: 296
2023-12-12 10:18:59.400582658  [2023-12-12 10:18:59] frigate.app                    INFO    : go2rtc process pid: 89
2023-12-12 10:18:59.428466262  [2023-12-12 10:18:59] frigate.app                    INFO    : Output process started: 308
2023-12-12 10:18:59.430178386  [2023-12-12 10:18:59] detector.ov                    INFO    : Starting detection process: 306
2023-12-12 10:18:59.496441418  [2023-12-12 10:18:59] frigate.app                    INFO    : Camera processor started for sonnette: 316
2023-12-12 10:18:59.497657047  [2023-12-12 10:18:59] frigate.app                    INFO    : Camera processor started for terrasse: 317
2023-12-12 10:18:59.504146831  [2023-12-12 10:18:59] frigate.app                    INFO    : Camera processor started for jardin: 320
2023-12-12 10:18:59.511273200  [2023-12-12 10:18:59] frigate.app                    INFO    : Camera processor started for allee: 322
2023-12-12 10:18:59.518286486  [2023-12-12 10:18:59] frigate.app                    INFO    : Camera processor started for garage: 326
2023-12-12 10:18:59.525473605  [2023-12-12 10:18:59] frigate.app                    INFO    : Camera processor started for parking: 327
2023-12-12 10:18:59.532711986  [2023-12-12 10:18:59] frigate.app                    INFO    : Camera processor started for porteentree: 329
2023-12-12 10:18:59.539712939  [2023-12-12 10:18:59] frigate.app                    INFO    : Camera processor started for lateralgauche: 333
2023-12-12 10:18:59.549514179  [2023-12-12 10:18:59] frigate.app                    INFO    : Camera processor started for lateraldroite: 335
2023-12-12 10:18:59.556305390  [2023-12-12 10:18:59] frigate.app                    INFO    : Capture process started for sonnette: 337
2023-12-12 10:18:59.563208784  [2023-12-12 10:18:59] frigate.app                    INFO    : Capture process started for terrasse: 340
2023-12-12 10:18:59.570035476  [2023-12-12 10:18:59] frigate.app                    INFO    : Capture process started for jardin: 350
2023-12-12 10:18:59.585646313  [2023-12-12 10:18:59] frigate.app                    INFO    : Capture process started for allee: 353
2023-12-12 10:18:59.592676316  [2023-12-12 10:18:59] frigate.app                    INFO    : Capture process started for garage: 360
2023-12-12 10:18:59.603405344  [2023-12-12 10:18:59] frigate.app                    INFO    : Capture process started for parking: 364
2023-12-12 10:18:59.609890359  [2023-12-12 10:18:59] frigate.app                    INFO    : Capture process started for porteentree: 383
2023-12-12 10:18:59.618711363  [2023-12-12 10:18:59] frigate.app                    INFO    : Capture process started for lateralgauche: 390
2023-12-12 10:18:59.625608351  [2023-12-12 10:18:59] frigate.app                    INFO    : Capture process started for lateraldroite: 396
2023-12-12 10:19:05.840546273  [2023-12-12 10:19:05] frigate.detectors.plugins.openvino INFO    : Model Input Shape: [1,300,300,3]
2023-12-12 10:19:05.840654933  [2023-12-12 10:19:05] frigate.detectors.plugins.openvino INFO    : Model Output-0 Shape: [1,1,100,7]
2023-12-12 10:19:05.840678581  [2023-12-12 10:19:05] frigate.detectors.plugins.openvino INFO    : Model has 1 Output Tensors
2023-12-12 10:24:24.524085423  [2023-12-12 10:24:24] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/24.10.mp4 in 0.04525613784790039 seconds.
2023-12-12 10:24:34.529250427  [2023-12-12 10:24:34] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/24.20.mp4 in 0.04296994209289551 seconds.
2023-12-12 10:32:34.438362079  [2023-12-12 10:32:34] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-12 10:32:44.452113726  [h264 @ 0x7f796c2a9f40] negative number of zero coeffs at 55 25
2023-12-12 10:32:44.452119231  [h264 @ 0x7f796c2a9f40] error while decoding MB 55 25
2023-12-12 10:32:59.622101289  [2023-12-12 10:32:59] watchdog.sonnette              INFO    : No frames received from sonnette in 20 seconds. Exiting ffmpeg...
2023-12-12 10:32:59.622309001  [2023-12-12 10:32:59] watchdog.sonnette              INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-12 10:32:59.655317545  [2023-12-12 10:32:59] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-12 10:32:59.655410595  [2023-12-12 10:32:59] frigate.video                  ERROR   : sonnette: ffmpeg process is not running. exiting capture thread...
2023-12-12 10:33:09.657903865  [2023-12-12 10:33:09] watchdog.sonnette              ERROR   : Ffmpeg process crashed unexpectedly for sonnette.
2023-12-12 10:33:09.657907982  [2023-12-12 10:33:09] watchdog.sonnette              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-12 10:33:09.657911569  [2023-12-12 10:33:09] ffmpeg.sonnette.detect         ERROR   : [rtsp @ 0x55eed62282c0] Missing PPS in sprop-parameter-sets, ignoring
2023-12-12 10:33:09.657913688  [2023-12-12 10:33:09] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x55eed622d340] non-existing PPS 0 referenced
2023-12-12 10:33:09.657931220  [2023-12-12 10:33:09] ffmpeg.sonnette.detect         ERROR   :     Last message repeated 1 times
2023-12-12 10:33:09.657932731  [2023-12-12 10:33:09] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x55eed622d340] decode_slice_header error
2023-12-12 10:33:09.657955223  [2023-12-12 10:33:09] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x55eed622d340] no frame!
2023-12-12 10:33:09.657956843  [2023-12-12 10:33:09] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x55eed637a380] Using possibly-incompatible profile 100 instead.
2023-12-12 10:33:09.657969319  [2023-12-12 10:33:09] ffmpeg.sonnette.detect         ERROR   :     Last message repeated 1 times
2023-12-12 10:33:09.657970722  [2023-12-12 10:33:09] ffmpeg.sonnette.detect         ERROR   : rtsp://127.0.0.1:8554/sonnette: Connection timed out
2023-12-12 10:33:09.657973030  [2023-12-12 10:33:09] ffmpeg.sonnette.detect         ERROR   : [segment @ 0x55eed6242580] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-12-12 10:33:49.439150336  [2023-12-12 10:33:49] frigate.record.maintainer      DEBUG   : Found 1 old frames.
2023-12-12 10:38:14.546803915  [2023-12-12 10:38:14] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/38.01.mp4 in 0.04564404487609863 seconds.
2023-12-12 10:44:44.541978316  [2023-12-12 10:44:44] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/44.21.mp4 in 0.06042790412902832 seconds.
2023-12-12 10:44:44.575108927  [2023-12-12 10:44:44] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/44.31.mp4 in 0.05113720893859863 seconds.
2023-12-12 10:44:54.555969155  [2023-12-12 10:44:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/44.41.mp4 in 0.05074715614318848 seconds.
2023-12-12 10:45:04.567297966  [2023-12-12 10:45:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/44.51.mp4 in 0.04912900924682617 seconds.
2023-12-12 10:45:19.556185016  [2023-12-12 10:45:19] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/45.01.mp4 in 0.04534792900085449 seconds.
2023-12-12 10:45:29.691077559  [2023-12-12 10:45:29] watchdog.sonnette              INFO    : No frames received from sonnette in 20 seconds. Exiting ffmpeg...
2023-12-12 10:45:29.691271657  [2023-12-12 10:45:29] watchdog.sonnette              INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-12 10:45:29.733874155  [2023-12-12 10:45:29] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-12 10:45:29.734010964  [2023-12-12 10:45:29] frigate.video                  ERROR   : sonnette: ffmpeg process is not running. exiting capture thread...
2023-12-12 10:45:39.740316406  [2023-12-12 10:45:39] watchdog.sonnette              ERROR   : Ffmpeg process crashed unexpectedly for sonnette.
2023-12-12 10:45:39.740395340  [2023-12-12 10:45:39] watchdog.sonnette              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-12 10:45:39.740532347  [2023-12-12 10:45:39] ffmpeg.sonnette.detect         ERROR   : [rtsp @ 0x564e067112c0] Missing PPS in sprop-parameter-sets, ignoring
2023-12-12 10:45:39.740567331  [2023-12-12 10:45:39] ffmpeg.sonnette.detect         ERROR   : [segment @ 0x564e06831000] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-12-12 10:45:39.740601777  [2023-12-12 10:45:39] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x564e0681de80] Using possibly-incompatible profile 100 instead.
2023-12-12 10:45:39.740896955  [2023-12-12 10:45:39] ffmpeg.sonnette.detect         ERROR   :     Last message repeated 1 times
2023-12-12 10:45:39.741018585  [2023-12-12 10:45:39] ffmpeg.sonnette.detect         ERROR   : [segment @ 0x564e06831000] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
2023-12-12 10:45:39.741020658  [2023-12-12 10:45:39] ffmpeg.sonnette.detect         ERROR   : rtsp://127.0.0.1:8554/sonnette: Connection timed out
2023-12-12 10:45:54.569830534  [2023-12-12 10:45:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/45.41.mp4 in 0.05910205841064453 seconds.
2023-12-12 10:46:04.553563008  [2023-12-12 10:46:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/45.51.mp4 in 0.04624509811401367 seconds.
2023-12-12 10:47:54.558549893  [2023-12-12 10:47:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/47.41.mp4 in 0.04395103454589844 seconds.
2023-12-12 10:48:04.564620928  [2023-12-12 10:48:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/47.51.mp4 in 0.050640106201171875 seconds.
2023-12-12 10:48:14.573215678  [2023-12-12 10:48:14] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/48.01.mp4 in 0.060276031494140625 seconds.
2023-12-12 10:48:34.557332267  [2023-12-12 10:48:34] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/48.11.mp4 in 0.06466484069824219 seconds.
2023-12-12 10:48:34.586385204  [2023-12-12 10:48:34] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/48.21.mp4 in 0.04542899131774902 seconds.
2023-12-12 10:48:44.567008899  [2023-12-12 10:48:44] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/48.31.mp4 in 0.04759693145751953 seconds.
2023-12-12 10:48:54.602171923  [2023-12-12 10:48:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/48.41.mp4 in 0.06479597091674805 seconds.
2023-12-12 10:49:04.613817616  [2023-12-12 10:49:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/48.51.mp4 in 0.07570600509643555 seconds.
2023-12-12 10:49:39.485943186  [2023-12-12 10:49:39] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 10:49:44.486123473  [2023-12-12 10:49:44] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 10:49:49.487451023  [2023-12-12 10:49:49] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 10:49:54.481955362  [2023-12-12 10:49:54] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 10:49:59.482370371  [2023-12-12 10:49:59] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 10:50:04.482969461  [2023-12-12 10:50:04] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 10:50:09.493197785  [2023-12-12 10:50:09] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 10:50:14.489922376  [2023-12-12 10:50:14] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 10:50:19.488982321  [2023-12-12 10:50:19] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 10:50:24.484881291  [2023-12-12 10:50:24] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 10:50:29.489591548  [2023-12-12 10:50:29] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 10:50:34.487032912  [2023-12-12 10:50:34] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 10:50:39.489304979  [2023-12-12 10:50:39] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 10:50:44.487620354  [2023-12-12 10:50:44] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 10:50:49.489772483  [2023-12-12 10:50:49] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-12 10:51:04.660079624  [2023-12-12 10:51:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/50.41.mp4 in 0.1513688564300537 seconds.
2023-12-12 10:51:04.660843171  [2023-12-12 10:51:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/50.51.mp4 in 0.09363102912902832 seconds.
2023-12-12 10:51:14.625465512  [2023-12-12 10:51:14] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/51.01.mp4 in 0.06998705863952637 seconds.
2023-12-12 10:51:24.594107537  [2023-12-12 10:51:24] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/51.11.mp4 in 0.05441689491271973 seconds.
2023-12-12 10:56:14.574145266  [2023-12-12 10:56:14] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/56.01.mp4 in 0.05133390426635742 seconds.
2023-12-12 10:56:24.581979280  [2023-12-12 10:56:24] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/56.11.mp4 in 0.05139613151550293 seconds.
2023-12-12 10:56:34.576905718  [2023-12-12 10:56:34] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/56.21.mp4 in 0.04944920539855957 seconds.
2023-12-12 10:57:54.571996415  [2023-12-12 10:57:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/57.41.mp4 in 0.045446157455444336 seconds.
2023-12-12 10:58:04.573790585  [2023-12-12 10:58:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/09/sonnette/57.51.mp4 in 0.043695926666259766 seconds.
2023-12-12 11:00:34.507378044  [2023-12-12 11:00:34] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-12 11:00:39.502080218  [2023-12-12 11:00:39] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 11:00:44.503473378  [2023-12-12 11:00:44] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 11:00:49.506228629  [2023-12-12 11:00:49] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 11:00:54.502310261  [2023-12-12 11:00:54] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 11:00:59.503391165  [2023-12-12 11:00:59] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-12 11:14:39.533947265  [2023-12-12 11:14:39] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 11:14:44.534201587  [2023-12-12 11:14:44] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 11:14:49.532858928  [2023-12-12 11:14:49] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 11:16:04.644072912  [2023-12-12 11:16:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/15.51.mp4 in 0.07128500938415527 seconds.
2023-12-12 11:16:14.648332170  [2023-12-12 11:16:14] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/16.01.mp4 in 0.07181692123413086 seconds.
2023-12-12 11:17:29.538391766  [2023-12-12 11:17:29] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 11:17:34.538570038  [2023-12-12 11:17:34] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-12 11:18:49.540868605  [2023-12-12 11:18:49] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-12 11:18:54.544861969  [2023-12-12 11:18:54] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 11:18:59.543055772  [2023-12-12 11:18:59] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 11:25:34.562338106  [h264 @ 0x7f796c13f740] mb_type 223 in I slice too large at 46 24
2023-12-12 11:25:34.562342147  [h264 @ 0x7f796c13f740] error while decoding MB 46 24
2023-12-12 11:28:44.649338808  [2023-12-12 11:28:44] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/28.31.mp4 in 0.057025909423828125 seconds.
2023-12-12 11:28:54.658128682  [2023-12-12 11:28:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/28.41.mp4 in 0.0652008056640625 seconds.
2023-12-12 11:36:39.578376036  [2023-12-12 11:36:39] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 11:36:44.578233490  [2023-12-12 11:36:44] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 11:36:49.578745521  [2023-12-12 11:36:49] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 11:36:54.578760867  [2023-12-12 11:36:54] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 11:41:24.668042882  [2023-12-12 11:41:24] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/41.11.mp4 in 0.04368901252746582 seconds.
2023-12-12 11:41:34.665233790  [2023-12-12 11:41:34] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/41.21.mp4 in 0.042951107025146484 seconds.
2023-12-12 11:49:54.710147941  [2023-12-12 11:49:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/49.41.mp4 in 0.0723729133605957 seconds.
2023-12-12 11:50:04.738595946  [2023-12-12 11:50:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/49.51.mp4 in 0.08005118370056152 seconds.
2023-12-12 11:50:14.699970041  [2023-12-12 11:50:14] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/50.01.mp4 in 0.05559897422790527 seconds.
2023-12-12 11:50:24.699425366  [2023-12-12 11:50:24] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/50.11.mp4 in 0.05747580528259277 seconds.
2023-12-12 11:50:34.697019062  [2023-12-12 11:50:34] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/10/sonnette/50.21.mp4 in 0.05582308769226074 seconds.
2023-12-12 12:22:19.884848670  [2023-12-12 12:22:19] watchdog.sonnette              INFO    : No frames received from sonnette in 20 seconds. Exiting ffmpeg...
2023-12-12 12:22:19.884990654  [2023-12-12 12:22:19] watchdog.sonnette              INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-12 12:22:19.945153221  [2023-12-12 12:22:19] frigate.video                  ERROR   : sonnette: Unable to read frames from ffmpeg process.
2023-12-12 12:22:19.945478638  [2023-12-12 12:22:19] frigate.video                  ERROR   : sonnette: ffmpeg process is not running. exiting capture thread...
2023-12-12 12:22:29.951798964  [2023-12-12 12:22:29] watchdog.sonnette              ERROR   : Ffmpeg process crashed unexpectedly for sonnette.
2023-12-12 12:22:29.951942930  [2023-12-12 12:22:29] watchdog.sonnette              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-12 12:22:29.951945475  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   : [rtsp @ 0x557cc1fec2c0] Missing PPS in sprop-parameter-sets, ignoring
2023-12-12 12:22:29.952048067  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x557cc1ff1340] non-existing PPS 0 referenced
2023-12-12 12:22:29.952118416  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   :     Last message repeated 1 times
2023-12-12 12:22:29.952359230  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x557cc1ff1340] decode_slice_header error
2023-12-12 12:22:29.952361741  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x557cc1ff1340] no frame!
2023-12-12 12:22:29.952363650  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   : [segment @ 0x557cc2000940] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-12-12 12:22:29.952365182  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x557cc21071c0] Using possibly-incompatible profile 100 instead.
2023-12-12 12:22:29.952470212  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   :     Last message repeated 1 times
2023-12-12 12:22:29.952472657  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   : [segment @ 0x557cc2000940] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
2023-12-12 12:22:29.952497324  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   : [h264 @ 0x557cc21071c0] Increasing reorder buffer to 1
2023-12-12 12:22:29.952571791  [2023-12-12 12:22:29] ffmpeg.sonnette.detect         ERROR   : rtsp://127.0.0.1:8554/sonnette: Connection timed out
2023-12-12 12:26:04.737643788  [2023-12-12 12:26:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/11/sonnette/25.51.mp4 in 0.03930807113647461 seconds.
2023-12-12 12:26:14.730890081  [2023-12-12 12:26:14] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/11/sonnette/26.01.mp4 in 0.03840494155883789 seconds.
2023-12-12 12:53:24.830132227  [2023-12-12 12:53:24] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/11/sonnette/53.11.mp4 in 0.04334211349487305 seconds.
2023-12-12 13:21:34.876508335  [2023-12-12 13:21:34] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/12/sonnette/21.21.mp4 in 0.05505704879760742 seconds.
2023-12-12 13:27:44.897289069  [2023-12-12 13:27:44] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/12/sonnette/27.31.mp4 in 0.045089006423950195 seconds.
2023-12-12 13:27:54.899241791  [2023-12-12 13:27:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/12/sonnette/27.41.mp4 in 0.04772806167602539 seconds.
2023-12-12 13:28:04.890749792  [2023-12-12 13:28:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/12/sonnette/27.51.mp4 in 0.04503607749938965 seconds.
2023-12-12 13:30:19.816532681  [2023-12-12 13:30:19] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 13:30:24.814105565  [2023-12-12 13:30:24] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 13:30:29.811219319  [2023-12-12 13:30:29] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 13:30:34.811162493  [2023-12-12 13:30:34] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 13:30:39.813665930  [2023-12-12 13:30:39] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 13:30:44.900701743  [2023-12-12 13:30:44] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/12/sonnette/30.31.mp4 in 0.04584693908691406 seconds.
2023-12-12 13:39:34.832902928  [2023-12-12 13:39:34] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 13:39:39.834507206  [2023-12-12 13:39:39] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 13:39:44.831074101  [2023-12-12 13:39:44] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 13:39:49.830541551  [2023-12-12 13:39:49] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 13:39:54.832194682  [2023-12-12 13:39:54] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 13:39:59.831540022  [2023-12-12 13:39:59] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
NickM-27 commented 10 months ago

Something seems off, the logs are only referring to 2 cameras while the config shows 9. Can you show the current config for these logs?

xavan83 commented 10 months ago

The others cameras have no activity, the config has not changed (only the resolution as you suggested)

NickM-27 commented 10 months ago

Okay this looks to be an issue with the camera

2023-12-12 11:36:39.578376036  [2023-12-12 11:36:39] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 11:36:44.578233490  [2023-12-12 11:36:44] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...

we can see here that two logs occur 5 seconds apart and yet 2 more segments were created. These recording segments are supposed to be 10 seconds long, but when cameras send bad timestamps it can cause the durations to be incorrect. In this case I would suggest trying to restream the parking camera as well and see if it helps

xavan83 commented 10 months ago

Like this because problem still occurs with this config:

go2rtc:
  streams:
    parking:
      - rtsp://192.168.0.64/Streaming/Channels/101
cameras:  
 parking:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/parking
          input_args: preset-rtsp-restream
          roles:
            - detect,record
    detect:
      enabled: True
      width: 1536 #3072
      height: 1024 #2048
NickM-27 commented 10 months ago

Maybe try

go2rtc:
  streams:
    parking:
      - "ffmpeg:rtsp://192.168.0.64/Streaming/Channels/101"
cameras:  
 parking:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/parking
          input_args: preset-rtsp-restream
          roles:
            - detect,record
    detect:
      enabled: True
      width: 1536 #3072
      height: 1024 #2048
xavan83 commented 10 months ago

Still the same:

2023-12-12 15:17:59.429487026  [INFO] Preparing Frigate...
2023-12-12 15:17:59.441242567  [INFO] Starting Frigate...
2023-12-12 15:18:00.441245092  [2023-12-12 15:18:00] frigate.app                    INFO    : Starting Frigate (0.13.0-614a36a)
2023-12-12 15:18:00.507495413  [2023-12-12 15:18:00] frigate.config                 WARNING : Customizing more than a detector model path is unsupported.
2023-12-12 15:18:00.536158578  [2023-12-12 15:18:00] peewee_migrate.logs            INFO    : Starting migrations
2023-12-12 15:18:00.539744021  [2023-12-12 15:18:00] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-12-12 15:18:00.544800322  [2023-12-12 15:18:00] frigate.app                    INFO    : Recording process started: 297
2023-12-12 15:18:00.546964812  [2023-12-12 15:18:00] frigate.app                    INFO    : go2rtc process pid: 89
2023-12-12 15:18:00.576083722  [2023-12-12 15:18:00] frigate.app                    INFO    : Output process started: 309
2023-12-12 15:18:00.579656431  [2023-12-12 15:18:00] detector.ov                    INFO    : Starting detection process: 307
2023-12-12 15:18:00.608391226  [2023-12-12 15:18:00] frigate.app                    INFO    : Camera processor started for sonnette: 315
2023-12-12 15:18:00.614989731  [2023-12-12 15:18:00] frigate.app                    INFO    : Camera processor started for terrasse: 317
2023-12-12 15:18:00.621222693  [2023-12-12 15:18:00] frigate.app                    INFO    : Camera processor started for jardin: 319
2023-12-12 15:18:00.627815940  [2023-12-12 15:18:00] frigate.app                    INFO    : Camera processor started for allee: 323
2023-12-12 15:18:00.634759389  [2023-12-12 15:18:00] frigate.app                    INFO    : Camera processor started for garage: 325
2023-12-12 15:18:00.643362382  [2023-12-12 15:18:00] frigate.app                    INFO    : Camera processor started for parking: 327
2023-12-12 15:18:00.649806673  [2023-12-12 15:18:00] frigate.app                    INFO    : Camera processor started for porteentree: 329
2023-12-12 15:18:00.656214775  [2023-12-12 15:18:00] frigate.app                    INFO    : Camera processor started for lateralgauche: 331
2023-12-12 15:18:00.662479189  [2023-12-12 15:18:00] frigate.app                    INFO    : Camera processor started for lateraldroite: 333
2023-12-12 15:18:00.669567470  [2023-12-12 15:18:00] frigate.app                    INFO    : Capture process started for sonnette: 335
2023-12-12 15:18:00.679861686  [2023-12-12 15:18:00] frigate.app                    INFO    : Capture process started for terrasse: 345
2023-12-12 15:18:00.686423585  [2023-12-12 15:18:00] frigate.app                    INFO    : Capture process started for jardin: 347
2023-12-12 15:18:00.693491022  [2023-12-12 15:18:00] frigate.app                    INFO    : Capture process started for allee: 351
2023-12-12 15:18:00.700347829  [2023-12-12 15:18:00] frigate.app                    INFO    : Capture process started for garage: 355
2023-12-12 15:18:00.711904295  [2023-12-12 15:18:00] frigate.app                    INFO    : Capture process started for parking: 362
2023-12-12 15:18:00.723029362  [2023-12-12 15:18:00] frigate.app                    INFO    : Capture process started for porteentree: 366
2023-12-12 15:18:00.730620258  [2023-12-12 15:18:00] frigate.app                    INFO    : Capture process started for lateralgauche: 370
2023-12-12 15:18:00.745891987  [2023-12-12 15:18:00] frigate.app                    INFO    : Capture process started for lateraldroite: 373
2023-12-12 15:18:06.827005403  [2023-12-12 15:18:06] frigate.detectors.plugins.openvino INFO    : Model Input Shape: [1,300,300,3]
2023-12-12 15:18:06.827078617  [2023-12-12 15:18:06] frigate.detectors.plugins.openvino INFO    : Model Output-0 Shape: [1,1,100,7]
2023-12-12 15:18:06.827108867  [2023-12-12 15:18:06] frigate.detectors.plugins.openvino INFO    : Model has 1 Output Tensors
2023-12-12 15:25:35.661158030  [2023-12-12 15:25:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/25.22.mp4 in 0.047757863998413086 seconds.
2023-12-12 15:25:55.641920414  [2023-12-12 15:25:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/allee/25.44.mp4 in 0.054657936096191406 seconds.
2023-12-12 15:26:05.684880989  [2023-12-12 15:26:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/allee/25.52.mp4 in 0.10144591331481934 seconds.
2023-12-12 15:26:05.685325350  [2023-12-12 15:26:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/garage/25.44.mp4 in 0.08286499977111816 seconds.
2023-12-12 15:26:05.685879208  [2023-12-12 15:26:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/garage/25.52.mp4 in 0.06271004676818848 seconds.
2023-12-12 15:26:05.693166777  [2023-12-12 15:26:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/parking/25.30.mp4 in 0.021484851837158203 seconds.
2023-12-12 15:26:15.658987615  [2023-12-12 15:26:15] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/allee/26.04.mp4 in 0.06728601455688477 seconds.
2023-12-12 15:26:15.658993908  [2023-12-12 15:26:15] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/garage/26.04.mp4 in 0.04618406295776367 seconds.
2023-12-12 15:26:20.621867871  [2023-12-12 15:26:20] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/parking/25.53.mp4 in 0.034332990646362305 seconds.
2023-12-12 15:26:25.665662128  [2023-12-12 15:26:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/allee/26.12.mp4 in 0.08051109313964844 seconds.
2023-12-12 15:26:25.669206067  [2023-12-12 15:26:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/garage/26.12.mp4 in 0.06223416328430176 seconds.
2023-12-12 15:26:25.699435049  [2023-12-12 15:26:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/26.12.mp4 in 0.052001953125 seconds.
2023-12-12 15:26:35.666131159  [2023-12-12 15:26:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/26.22.mp4 in 0.04841113090515137 seconds.
2023-12-12 15:26:45.662600434  [2023-12-12 15:26:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/26.32.mp4 in 0.04503202438354492 seconds.
2023-12-12 15:26:55.666660039  [2023-12-12 15:26:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/26.42.mp4 in 0.049729108810424805 seconds.
2023-12-12 15:28:40.592624780  [2023-12-12 15:28:40] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 15:28:45.584962382  [2023-12-12 15:28:45] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 15:28:50.587650366  [2023-12-12 15:28:50] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 15:28:55.585049711  [2023-12-12 15:28:55] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 15:29:00.586070419  [2023-12-12 15:29:00] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 15:29:05.586401548  [2023-12-12 15:29:05] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 15:29:10.585723119  [2023-12-12 15:29:10] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 15:29:15.585029531  [2023-12-12 15:29:15] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 15:29:20.585548461  [2023-12-12 15:29:20] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 15:29:25.586280317  [2023-12-12 15:29:25] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-12 15:35:25.689376133  [2023-12-12 15:35:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/35.11.mp4 in 0.05565500259399414 seconds.
2023-12-12 15:35:35.699795995  [2023-12-12 15:35:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/35.22.mp4 in 0.051724910736083984 seconds.
2023-12-12 15:35:45.680724836  [2023-12-12 15:35:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/allee/35.31.mp4 in 0.0239560604095459 seconds.
2023-12-12 15:35:45.694550461  [2023-12-12 15:35:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/35.31.mp4 in 0.05724000930786133 seconds.
2023-12-12 15:35:50.623707069  [2023-12-12 15:35:50] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/parking/35.24.mp4 in 0.016418933868408203 seconds.
2023-12-12 15:35:55.695085162  [2023-12-12 15:35:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/allee/35.43.mp4 in 0.0860140323638916 seconds.
2023-12-12 15:35:55.695544134  [2023-12-12 15:35:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/garage/35.43.mp4 in 0.07293200492858887 seconds.
2023-12-12 15:35:55.727701143  [2023-12-12 15:35:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/35.41.mp4 in 0.05610203742980957 seconds.
2023-12-12 15:36:00.623537831  [2023-12-12 15:36:00] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/parking/35.39.mp4 in 0.016082048416137695 seconds.
2023-12-12 15:36:05.676914129  [2023-12-12 15:36:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/allee/35.51.mp4 in 0.03790712356567383 seconds.
2023-12-12 15:36:05.678679929  [2023-12-12 15:36:05] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/garage/35.51.mp4 in 0.02039504051208496 seconds.
2023-12-12 15:36:15.661336950  [2023-12-12 15:36:15] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/garage/36.03.mp4 in 0.051239967346191406 seconds.
2023-12-12 15:36:25.681624365  [2023-12-12 15:36:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/garage/36.11.mp4 in 0.04312610626220703 seconds.
2023-12-12 15:36:25.686399391  [2023-12-12 15:36:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/parking/35.58.mp4 in 0.017498016357421875 seconds.
2023-12-12 15:36:35.662831731  [2023-12-12 15:36:35] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/garage/36.23.mp4 in 0.053344011306762695 seconds.
2023-12-12 15:41:45.692918964  [2023-12-12 15:41:45] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/41.31.mp4 in 0.04590606689453125 seconds.
2023-12-12 15:41:55.698721036  [2023-12-12 15:41:55] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/41.41.mp4 in 0.04656696319580078 seconds.
2023-12-12 15:43:55.619797964  [2023-12-12 15:43:55] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 15:44:00.618029454  [2023-12-12 15:44:00] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 15:44:05.618180298  [2023-12-12 15:44:05] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 15:44:10.618169708  [2023-12-12 15:44:10] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 15:44:15.618348723  [2023-12-12 15:44:15] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 15:44:20.620736935  [2023-12-12 15:44:20] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 9 and discarding the rest...
2023-12-12 15:44:25.620829719  [2023-12-12 15:44:25] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for parking. Keeping the 6 most recent segments out of 8 and discarding the rest...
2023-12-12 15:50:25.707420349  [2023-12-12 15:50:25] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-12-12/14/sonnette/50.11.mp4 in 0.0440678596496582 seconds.
NickM-27 commented 10 months ago

what is the ffprobe for the parking camera?

xavan83 commented 10 months ago

ffprobe: [{"return_code":0,"stderr":"","stdout":{"programs":[],"streams":[{"avg_frame_rate":"20/1","codec_long_name":"H.265/HEVC(HighEfficiencyVideoCoding)","display_aspect_ratio":"3:2","height":2048,"width":3072}]}}]

ffmpeg command: ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/parking -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/parking@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1536:h=1024:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:

NickM-27 commented 10 months ago

Can you see in the camera settings what the iframe interval is?

xavan83 commented 10 months ago

Iframe field is disabled image

NickM-27 commented 10 months ago

something seems wrong here, the frame rate on the camera info shows 20 fps but here it shows as 10 fps.

xavan83 commented 10 months ago

I investigate the fps a little bit more. For the parking camera, the fps is different between ffprobe and Hikvision gui (as you mention). I reset the camera settings and reconfigure it and now the fps is correct (thanks Hikvision).

I check the others cameras and for half of them the fps was incorrect. I try to reset a second camera but I am unable to set the fps to 10 in ffprobe so I save it to 25fps.

I reset a third camera and the ffprobe output of frigate gives me 20FPS but when I try ffprobe outside docker directly on the host machine:

ffprobe rtsp://192.168.0.69:554/Streaming/Channels/101 --> Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 3840x2160 [SAR 633:704 DAR 211:132], 20 fps, 4 tbr, 90k tbn

ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate rtsp://192.168.0.69:554/Streaming/Channels/101 --> 10/1

The second command reflect the value of the Hikvision gui every time I changed it

xavan83 commented 10 months ago

I reset and reconfigure all my cameras. I am only able to set the correct fps for the substream. The mainstream is stucked to the maximum that the camera can support.

xavan83 commented 10 months ago

I made a table with the camera name, the fps in hikvision gui, the output of ffprobe and the output of ffprobe with args image Values in red are incorrect, and green are correct I notice a strange behavior: if I set fps to 1 in the gui ffprobe takes 25sec to display the result (25fps) if I set the fps to 25 in the gui the ffprobe takes only 1sec to display the result. So it seems that the change of the fps value change something to the stream

NickM-27 commented 10 months ago

yes, that is because an iframe is required to get stream info. So with 1 fps and a seemingly hardcoded iframe interval, it will take longer.

I have a hikvision camera and it has none of these issues, is this a first party hikvision camera or some reseller and hikvision firmware flashed?

xavan83 commented 10 months ago

So the change in the gui seems to update the fps but the metadata in the stream are incorrect? i.e. with 10fps in the gui frigate waits 2sec to receive the 20fps expected according to the metadata

All the cameras are coming from ertech.co.uk Flashed with the last available firmware Older models are on top of the list (2017 and last firmware from 2019)

image

xavan83 commented 10 months ago

I disable the h265+ encoding on this "old" cameras and using simple h265 I was able to set the fps correctly. I will wait to see if the problem is solved

NickM-27 commented 10 months ago

ah yes, h265+ is definitely not recommended

xavan83 commented 9 months ago

Problem seems to be solved

AnonymousWebHacker commented 9 months ago

Just a control question. How is the connection from the Server to the cameras? intermediary switch? what speed?

There may be 2 problems, 1 is that the cameras transmitting in HEVC is a tough problem for CPUs to crack, and the other possible problem is the network speed between the cameras and the frigate server.

xavan83 commented 9 months ago

I use one Linksys gigabit switch (with poe port for the cameras). CAT6A cables Server connected to the same switch. But as I said, switching from H265+ to H265 solve the issue (this configuration uses more bandwidth)

AnonymousWebHacker commented 9 months ago

I use one Linksys gigabit switch (with poe port for the cameras). CAT6A cables Server connected to the same switch. But as I said, switching from H265+ to H265 solve the issue (this configuration uses more bandwidth)

I was processing 32 cameras on a Rayzen 5 5500 with a Coral TPU and a fucking 100Mbps ethernet switch :V hahahah.

Your problem then was that H265+ was very difficult for your hardware (in this case CPU) to process.

HEVC itself has double compression, so it provides an excellent size/low bitrate ratio for transmitting over the network, but it requires a lot of computing power to encode or decode.

When changing from H265+ to H265, the CPU has to work less (not as much, it's still hevc)