blakeblackshear / frigate

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

[Support]: Recording too short regarding event duration #8805

Closed xavan83 closed 11 months ago

xavan83 commented 12 months ago

Describe the problem you are having

I want to record 15sec before and 15sec after the event. I see that the event length is 40sec (seems correct). The recording is only 10sec. I try to increase shm size 2gb for 9cameras mostly h265 one and 4megapixels each. I don't see any pertinent error in the log

Version

0.13.0-614A36A (beta6)

Frigate config file

ffmpeg:
  hwaccel_args: preset-vaapi
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.event: debug
    frigate.storage: debug
    frigate.object_detection: debug
    frigate.record.cleanup: debug
    frigate.record.maintainer: debug
detectors:
  ov:
    type: openvino
    device: GPU #AUTO
    model:
      path: /openvino-model/ssdlite_mobilenet_v2.xml
model:
  width: 300
  height: 300
  input_tensor: nhwc
  input_pixel_format: bgr
  labelmap_path: /openvino-model/coco_91cl_bkgr.txt
go2rtc:
  streams:
    sonnette:
      - ffmpeg:rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.70:554/Streaming/Channels/102#input -use_wallclock_as_timestamps 1
    terrasse:
      - rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.68:7083/Streaming/Channels/102
    jardin:
      - rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.69:7091/Streaming/Channels/102
    allee:
      - rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.71/Streaming/Channels/102
    garage:
      - rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.72/Streaming/Channels/102
    parking:
      - rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.64/Streaming/Channels/102
    porteentree:
      - rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.65:7006/Streaming/Channels/102
    lateralgauche:
      - rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.67:7063/Streaming/Channels/102
    lateraldroite:
      - rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.0.66:7033/Streaming/Channels/102
cameras:
  sonnette:
    ffmpeg:
      input_args: -use_wallclock_as_timestamps 1 
      output_args:
          record: preset-record-generic-audio-aac
      inputs:
        - path: rtsp://127.0.0.1:8554/sonnette
          roles:
            - detect
        - path: rtsp://192.168.0.70:554/Streaming/Channels/101
          roles:
            - record
    detect:
      enabled: True
    live:
      stream_name: sonnette
    zones:
      zone_0:
        coordinates: 0,576,704,576,704,205,0,229
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      required_zones: []
  terrasse:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/terrasse
          roles:
            - detect
        - path: rtsp://192.168.0.68:7083/Streaming/Channels/101
          roles:
            - record
    detect:
      enabled: True
    live:
      stream_name: terrasse
    zones:
      zone_0:
        coordinates: 480,356,117,640,0,640,0,116,161,144
  jardin:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/jardin
          roles:
            - detect
        - path: rtsp://192.168.0.69:7091/Streaming/Channels/101
          roles:
            - record
    detect:
      enabled: True
    live:
      stream_name: jardin
    zones:
      zone_0:
        coordinates: 0,480,640,480,640,107,318,55,0,51
  allee:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/allee
          roles:
            - detect
        - path: rtsp://192.168.0.71/Streaming/Channels/101
          roles:
            - record
    detect:
      enabled: True
    live:
      stream_name: allee
    zones:
      zone_0:
        coordinates: 2688,1520,0,1520,0,784,616,572,1334,524,2688,627
  garage:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/garage
          roles:
            - detect
        - path: rtsp://192.168.0.72/Streaming/Channels/101
          roles:
            - record
    detect:
      enabled: True
    live:
      stream_name: garage
    zones:
      zone_0:
        coordinates: 0,480,640,480,640,197,475,161,0,167
  parking:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/parking
          roles:
            - detect
        - path: rtsp://192.168.0.64/Streaming/Channels/101
          roles:
            - record
    detect:
      enabled: True
    live:
      stream_name: parking
    zones:
      zone_0:
        coordinates: 0,480,640,480,640,114,467,21,0,124
  porteentree:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/porteentree
          roles:
            - detect
        - path: rtsp://192.168.0.65:7006/Streaming/Channels/101
          roles:
            - record
    detect:
      enabled: True
    live:
      stream_name: porteentree
    zones:
      zone_0:
        coordinates: 640,0,640,480,0,480,0,53,90,0
  lateralgauche:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/lateralgauche
          roles:
            - detect
        - path: rtsp://192.168.0.67:7063/Streaming/Channels/101
          roles:
            - record
    detect:
      enabled: True
    live:
      stream_name: lateralgauche 
    zones:
      zone_0:
        coordinates: 0,480,640,480,640,102,471,56,0,30    
  lateraldroite:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/lateraldroite
          roles:
            - detect
        - path: rtsp://192.168.0.66:7033/Streaming/Channels/101
          roles:
            - record
    detect:
      enabled: True
    live:
      stream_name: lateraldroite
    zones:
      zone_0:
        coordinates: 0,480,640,480,640,371,640,119,486,37,263,22,0,97
objects:
  track:
    - person
    - bicycle
    - car
    - motorcycle
    - bus
    - train
    - car
    - dog
    - horse
  filters:
    person:
      threshold: 0.8
record:
  enabled: True
  events:
    pre_capture: 15
    post_capture: 15
    objects:
      - person
      - bicycle
      - car
      - motorcycle
      - bus
      - train
      - car
      - dog
      - horse  
    retain:
      default: 30
      mode: active_objects

Relevant log output

2023-11-30 17:08:44.178321257  [2023-11-30 17:08:44] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-11-30/16/sonnette/08.29.mp4 in 0.0430450439453125 seconds.
2023-11-30 17:09:54.155033819  [2023-11-30 17:09:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-11-30/16/sonnette/09.39.mp4 in 0.05787205696105957 seconds.
2023-11-30 17:10:04.194164204  [2023-11-30 17:10:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-11-30/16/sonnette/09.49.mp4 in 0.06239509582519531 seconds.
2023-11-30 17:10:24.205141883  [2023-11-30 17:10:24] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-11-30/16/garage/10.14.mp4 in 0.09935498237609863 seconds.
2023-11-30 17:10:29.173623852  [2023-11-30 17:10:29] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-11-30/16/allee/10.11.mp4 in 0.07171797752380371 seconds.
2023-11-30 17:12:54.241830663  [2023-11-30 17:12:54] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-11-30/16/sonnette/12.39.mp4 in 0.045506954193115234 seconds.
2023-11-30 17:13:04.222334451  [2023-11-30 17:13:04] frigate.record.maintainer      DEBUG   : Copied /media/frigate/recordings/2023-11-30/16/sonnette/12.49.mp4 in 0.04500102996826172 seconds.
2023-11-30 17:13:19.364180165  [2023-11-30 17:13:19] frigate.storage                DEBUG   : terrasse has a bandwidth of 0 MiB/hr.
2023-11-30 17:13:19.368909222  [2023-11-30 17:13:19] frigate.storage                DEBUG   : jardin has a bandwidth of 0 MiB/hr.
2023-11-30 17:13:19.371560171  [2023-11-30 17:13:19] frigate.storage                DEBUG   : allee has a bandwidth of 2188.49 MiB/hr.
2023-11-30 17:13:19.377749911  [2023-11-30 17:13:19] frigate.storage                DEBUG   : garage has a bandwidth of 3291.3 MiB/hr.
2023-11-30 17:13:19.382609044  [2023-11-30 17:13:19] frigate.storage                DEBUG   : parking has a bandwidth of 0 MiB/hr.
2023-11-30 17:13:19.388359265  [2023-11-30 17:13:19] frigate.storage                DEBUG   : porteentree has a bandwidth of 0 MiB/hr.
2023-11-30 17:13:19.390159144  [2023-11-30 17:13:19] frigate.storage                DEBUG   : lateralgauche has a bandwidth of 0 MiB/hr.
2023-11-30 17:13:19.391796681  [2023-11-30 17:13:19] frigate.storage                DEBUG   : lateraldroite has a bandwidth of 0 MiB/hr.
2023-11-30 17:13:19.392135916  [2023-11-30 17:13:19] frigate.storage                DEBUG   : Default camera bandwidths: {'sonnette': {'needs_refresh': False, 'bandwidth': 790.41}, 'terrasse': {'needs_refresh': True, 'bandwidth': 0}, 'jardin': {'needs_refresh': True, 'bandwidth': 0}, 'allee': {'needs_refresh': True, 'bandwidth': 2188.49}, 'garage': {'needs_refresh': True, 'bandwidth': 3291.3}, 'parking': {'needs_refresh': True, 'bandwidth': 0}, 'porteentree': {'needs_refresh': True, 'bandwidth': 0}, 'lateralgauche': {'needs_refresh': True, 'bandwidth': 0}, 'lateraldroite': {'needs_refresh': True, 'bandwidth': 0}}.

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.72/Streaming/Channels/101':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.080000, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], 12 fps, 25 tbr, 90k tbn

Frigate stats

{"cameras":{"allee":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.1,"capture_pid":397,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":417,"pid":369,"process_fps":5.1,"skipped_fps":0.0},"garage":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.1,"capture_pid":403,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":408,"pid":371,"process_fps":5.1,"skipped_fps":0.0},"jardin":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.1,"capture_pid":392,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":404,"pid":365,"process_fps":5.1,"skipped_fps":0.0},"lateraldroite":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.0,"capture_pid":423,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":448,"pid":383,"process_fps":5.0,"skipped_fps":0.0},"lateralgauche":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.1,"capture_pid":420,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":444,"pid":377,"process_fps":5.1,"skipped_fps":0.0},"parking":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.0,"capture_pid":407,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":424,"pid":373,"process_fps":5.0,"skipped_fps":0.0},"porteentree":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.1,"capture_pid":416,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":457,"pid":375,"process_fps":5.1,"skipped_fps":0.0},"sonnette":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.1,"capture_pid":386,"detection_enabled":1,"detection_fps":0.1,"ffmpeg_pid":410,"pid":361,"process_fps":5.1,"skipped_fps":0.0},"terrasse":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.0,"capture_pid":389,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":396,"pid":363,"process_fps":5.0,"skipped_fps":0.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"},"79":{"cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx","cpu":"0.0","cpu_average":"0","mem":"0.0"},"80":{"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"},"88":{"cmdline":"/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml","cpu":"4.2","cpu_average":"4","mem":"0.3"},"96":{"cmdline":"python3 -u -m frigate","cpu":"6.3","cpu_average":"5","mem":"2.7"},"103":{"cmdline":"bash ./run.user go2rtc-healthcheck","cpu":"0.0","cpu_average":"0","mem":"0.0"},"112":{"cmdline":"nginx: master process nginx","cpu":"0.0","cpu_average":"0","mem":"0.2"},"145":{"cmdline":"nginx: worker process","cpu":"0.0","cpu_average":"0","mem":"0.1"},"146":{"cmdline":"nginx: worker process","cpu":"0.0","cpu_average":"0","mem":"0.1"},"147":{"cmdline":"nginx: worker process","cpu":"0.0","cpu_average":"0","mem":"0.2"},"148":{"cmdline":"nginx: worker process","cpu":"0.0","cpu_average":"0","mem":"0.3"},"149":{"cmdline":"nginx: cache manager process","cpu":"0.0","cpu_average":"0","mem":"0.1"},"295":{"cmdline":"frigate.logger       ","cpu":"0.0","cpu_average":"0","mem":"1.3"},"343":{"cmdline":"frigate.recording_manager","cpu":"0.9","cpu_average":"1","mem":"1.7"},"352":{"cmdline":"/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(73)","cpu":"1.1","cpu_average":"1","mem":"0.1"},"353":{"cmdline":"frigate.detector.ov  ","cpu":"0.0","cpu_average":"8","mem":"5.2"},"355":{"cmdline":"frigate.output       ","cpu":"3.6","cpu_average":"3","mem":"1.5"},"358":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 704x576 -i pipe: -f mpegts -s 880x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.2"},"359":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 480x640 -i pipe: -f mpegts -s 540x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.2"},"361":{"cmdline":"frigate.process:sonnette","cpu":"2.1","cpu_average":"3","mem":"1.6"},"362":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.2"},"363":{"cmdline":"frigate.process:terrasse","cpu":"1.8","cpu_average":"1","mem":"1.6"},"365":{"cmdline":"frigate.process:jardin","cpu":"1.7","cpu_average":"3","mem":"1.6"},"368":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.2"},"369":{"cmdline":"frigate.process:allee","cpu":"2.0","cpu_average":"2","mem":"1.6"},"371":{"cmdline":"frigate.process:garage","cpu":"2.2","cpu_average":"3","mem":"1.6"},"373":{"cmdline":"frigate.process:parking","cpu":"2.1","cpu_average":"2","mem":"1.6"},"375":{"cmdline":"frigate.process:porteentree","cpu":"2.2","cpu_average":"2","mem":"1.6"},"377":{"cmdline":"frigate.process:lateralgauche","cpu":"2.0","cpu_average":"2","mem":"1.6"},"383":{"cmdline":"frigate.process:lateraldroite","cpu":"2.5","cpu_average":"2","mem":"1.6"},"385":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.2"},"386":{"cmdline":"frigate.capture:sonnette","cpu":"1.5","cpu_average":"1","mem":"1.4"},"388":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.2"},"389":{"cmdline":"frigate.capture:terrasse","cpu":"1.2","cpu_average":"1","mem":"1.4"},"392":{"cmdline":"frigate.capture:jardin","cpu":"1.0","cpu_average":"1","mem":"1.4"},"395":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.2"},"396":{"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/terrasse -r 5 -vf fps=5,scale_vaapi=w=480:h=640:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"3.2","cpu_average":"3","mem":"0.7"},"397":{"cmdline":"frigate.capture:allee","cpu":"1.1","cpu_average":"1","mem":"1.4"},"403":{"cmdline":"frigate.capture:garage","cpu":"1.2","cpu_average":"1","mem":"1.4"},"404":{"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/jardin -r 5 -vf fps=5,scale_vaapi=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"3.2","cpu_average":"3","mem":"0.7"},"407":{"cmdline":"frigate.capture:parking","cpu":"1.2","cpu_average":"1","mem":"1.4"},"408":{"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/garage -r 5 -vf fps=5,scale_vaapi=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"3.2","cpu_average":"3","mem":"0.7"},"410":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/sonnette -r 5 -vf fps=5,scale_vaapi=w=704:h=576:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"6.3","cpu_average":"6","mem":"0.6"},"413":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.2"},"415":{"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 copy -an /tmp/cache/terrasse@%Y%m%d%H%M%S%z.mp4","cpu":"1.6","cpu_average":"3","mem":"0.3"},"416":{"cmdline":"frigate.capture:porteentree","cpu":"1.4","cpu_average":"1","mem":"1.4"},"417":{"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/allee -r 5 -vf fps=5,scale_vaapi=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"3.3","cpu_average":"3","mem":"0.7"},"418":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.2"},"419":{"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 copy -an /tmp/cache/jardin@%Y%m%d%H%M%S%z.mp4","cpu":"0.5","cpu_average":"0","mem":"0.3"},"420":{"cmdline":"frigate.capture:lateralgauche","cpu":"1.2","cpu_average":"1","mem":"1.4"},"423":{"cmdline":"frigate.capture:lateraldroite","cpu":"1.5","cpu_average":"1","mem":"1.4"},"424":{"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/parking -r 5 -vf fps=5,scale_vaapi=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"3.3","cpu_average":"3","mem":"0.7"},"430":{"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"},"437":{"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 copy -an /tmp/cache/parking@%Y%m%d%H%M%S%z.mp4","cpu":"0.4","cpu_average":"2","mem":"0.3"},"442":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -use_wallclock_as_timestamps 1 -i rtsp://192.168.0.70:554/Streaming/Channels/101 -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","cpu":"4.6","cpu_average":"4","mem":"0.3"},"443":{"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 copy -an /tmp/cache/garage@%Y%m%d%H%M%S%z.mp4","cpu":"4.7","cpu_average":"2","mem":"0.3"},"444":{"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/lateralgauche -r 5 -vf fps=5,scale_vaapi=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"3.3","cpu_average":"3","mem":"0.7"},"448":{"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/lateraldroite -r 5 -vf fps=5,scale_vaapi=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"3.6","cpu_average":"3","mem":"0.7"},"451":{"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 copy -an /tmp/cache/allee@%Y%m%d%H%M%S%z.mp4","cpu":"3.0","cpu_average":"2","mem":"0.3"},"454":{"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 copy -an /tmp/cache/lateralgauche@%Y%m%d%H%M%S%z.mp4","cpu":"2.5","cpu_average":"2","mem":"0.3"},"457":{"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/porteentree -r 5 -vf fps=5,scale_vaapi=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"3.6","cpu_average":"3","mem":"0.7"},"460":{"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 copy -an /tmp/cache/lateraldroite@%Y%m%d%H%M%S%z.mp4","cpu":"2.3","cpu_average":"2","mem":"0.3"},"480":{"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 copy -an /tmp/cache/porteentree@%Y%m%d%H%M%S%z.mp4","cpu":"2.3","cpu_average":"2","mem":"0.3"},"11311":{"cmdline":"ffmpeg -hide_banner -v error -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://192.168.0.70:554/Streaming/Channels/102 -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://127.0.0.1:8554/12ddf4eb3293b423a2db5e2d2fa63e51","cpu":"1.2","cpu_average":"0","mem":"0.3"},"12158":{"cmdline":"sleep 30s","cpu":"0.0","cpu_average":"0","mem":"0.0"}},"detection_fps":0.1,"detectors":{"ov":{"detection_start":0.0,"inference_speed":17.01,"pid":353}},"gpu_usages":{"intel-vaapi":{"gpu":"2.08%","mem":"-%"}},"processes":{"go2rtc":{"pid":88},"logger":{"pid":295},"recording":{"pid":343}},"service":{"last_updated":1701362167,"latest_version":"0.12.1","storage":{"/dev/shm":{"free":2038.9,"mount_type":"tmpfs","total":2048.0,"used":9.1},"/media/frigate/clips":{"free":319723.8,"mount_type":"ext4","total":479620.9,"used":135462.0},"/media/frigate/recordings":{"free":319723.8,"mount_type":"ext4","total":479620.9,"used":135462.0},"/tmp/cache":{"free":870.8,"mount_type":"tmpfs","total":953.7,"used":82.9}},"temperatures":{},"uptime":2868,"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

No response

NickM-27 commented 12 months ago

this is somewhat expected, you have set your recording.events retention mode to active_objects. So if the time period before does not have an active object the recordings will not be retained.

If you want the event clips to contain more than just when an object was active, you should use motion or all mode

xavan83 commented 11 months ago

Ok I didn't understand that part of the documentation correctly