frigate: Event does not have recordings / No recordings found for the requested time range [Config Support]:

Describe the problem you are having

Hello everyone, first of all, thanks for the amazing work you have done with frigate, i love it and it’s working great since a long time in my home assistant home server. Long story short, i keep getting the following error :

  • Event does not have recordings / No recordings found for the requested time range when i look back at certain events, usually they are older than few hours but it changes, can be less than 24 hours,it’s happening on all cameras, i cannot detect some strange beheviour based on a certain camera. What i’ve done to solve the issue so far :
  • checked the camera configuration (seems good so far)
  • checked the network (everything is cabled with a dedicated switch), rebooted
  • checked the logs, nothing so far
  • looked for similar issues in the “issue” section of github (tried all the possible solutions suggested) since i’m always looking forward for improvements, please correct any other issue you may find in the configuration (eg hw acc). Thanks!!!

Version

SYSTEM 0.12.1-367D724

Frigate config file

mqtt:
  host: 192.168.1.10
  user: *USER*
  password: *PASS*

detectors:
  coral:
    type: edgetpu
    device: usb 
rtmp:
  enabled: False
go2rtc:
  streams:
    camera1: 
      - "ffmpeg:http://192.168.1.120/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=user&password=pass#video=copy#audio=copy#audio=opus"
    camera1_sub: 
      - "ffmpeg:http://192.168.1.120/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass"
    camera2: 
      - "ffmpeg:http://192.168.1.121/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=user&password=pass#video=copy#audio=copy#audio=opus"
    camera2_sub: 
      - "ffmpeg:http://192.168.1.121/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass"
    camera3: 
      - "ffmpeg:http://192.168.1.122/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=user&password=pass#video=copy#audio=copy#audio=opus"
    camera3_sub: 
      - "ffmpeg:http://192.168.1.122flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass"
    camera4: 
      - "ffmpeg:http://192.168.1.123/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=user&password=pass#video=copy#audio=copy#audio=opus"
    camera4_sub: 
      - "ffmpeg:http://192.168.1.123/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass"
    camera5: 
      - "ffmpeg:http://192.168.1.124/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=user&password=pass#video=copy#audio=copy#audio=opus"
    camera5_sub: 
      - "ffmpeg:http://192.168.1.124/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass"
    camera6: 
      - "ffmpeg:http://192.168.1.125/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=user&password=pass#video=copy#audio=copy#audio=opus"
    camera6_sub: 
      - "ffmpeg:http://192.168.1.125/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass"
    camera7: 
      - "ffmpeg:http://192.168.1.127/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=user&password=pass#video=copy#audio=copy#audio=opus"
    camera7_sub: 
      - "ffmpeg:http://192.168.1.127/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass"


ffmpeg:
  input_args: 
    - -avoid_negative_ts
    - preset-intel-qsv-h264
    - -analyzeduration
  output_args:
    record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac

live:
  height: 1920
  quality: 1   
cameras:
##############################################
########## CAMERA 1 #########################
##############################################
  camera1:
    ffmpeg:
      inputs:
        - path: http://192.168.1.120/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass
          input_args: preset-http-reolink
          roles:
            - detect
            - record
            - rtmp

    objects:
      track:
        - person
        - car
      mask: 0,0,1000,0,1000,200,0,200
      filters:
        person:
          min_area: 1000
          max_area: 100000
          min_ratio: 0.5
           max_ratio: 2.0
          min_score: 0.5
           threshold: 0.7
          mask: 0,0,1000,0,1000,200,0,200
    detect:
      width: 1280
      height: 720
      fps: 5
       enabled: True
      max_disappeared: 25
      stationary:
        interval: 0
        threshold: 50
        max_frames:
          default: 3000
          objects:
            person: 1000

    record:
      enabled: True
      expire_interval: 60
      retain:
        days: 2
        mode: all
      events:
        pre_capture: 5
        post_capture: 5
        objects:
          - person
          - car
        retain:
          default: 2
          mode: motion

##############################################
########## CAMERA 2 #########################
##############################################

  camera2:
    ffmpeg:
      inputs:
        - path: http://192.168.1.121/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass
          input_args: preset-http-reolink
          roles:
            - detect
            - record
            - rtmp
    objects:
      track:
        - person
        - car
      mask: 0,0,1000,0,1000,200,0,200
      filters:
        person:
          min_area: 1000
          max_area: 100000
          min_ratio: 0.5
          max_ratio: 2.0
          min_score: 0.5
          threshold: 0.7
          mask: 0,0,1000,0,1000,200,0,200
    detect:
      width: 1280
      height: 720
      fps: 5
      enabled: True
      max_disappeared: 25
      stationary:
        interval: 0
        threshold: 50
        max_frames:
          default: 3000
          objects:
            person: 1000
    record:
      enabled: True
      expire_interval: 60
      retain:
        days: 2
        mode: all
      events:
        pre_capture: 5
        post_capture: 5
        objects:
          - person
          - car
        retain:
          default: 2
          mode: motion


##############################################
########## CAMERA 3 #########################
##############################################

  camera3:
    ffmpeg:
      inputs:
        - path: http://192.168.1.122/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass
          input_args: preset-http-reolink
          roles:
            - detect
            - record
            - rtmp
    objects:
      track:
        - person
      mask: 0,0,1000,0,1000,200,0,200
      filters:
        person:
          min_area: 1000
          max_area: 100000
          min_ratio: 0.5
          max_ratio: 2.0
          min_score: 0.5
          threshold: 0.7
          mask: 0,0,1000,0,1000,200,0,200
    detect:
      width: 1280
      height: 720
      fps: 5
      enabled: True
      max_disappeared: 25
      stationary:
        interval: 0
        threshold: 50
        max_frames:
          default: 3000
          objects:
            person: 1000
    record:
      enabled: True
      expire_interval: 60
      retain:
        days: 2
        mode: all
      events:
        pre_capture: 5
        post_capture: 5
        objects:
          - person
          - car
        retain:
          default: 2
          mode: motion

##############################################
########## CAMERA 4 #########################
##############################################


  camera4:
    ffmpeg:
      inputs:
        - path: http://192.168.1.123/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=user
          input_args: preset-http-reolink
          roles:
            - detect
            - record
            - rtmp
    objects:
      track:
        - person

      mask: 0,0,1000,0,1000,200,0,200
      filters:
        person:
          min_area: 1000
          max_area: 100000
          min_ratio: 0.5
          max_ratio: 2.0
          min_score: 0.5
          threshold: 0.7
          mask: 0,0,1000,0,1000,200,0,200
    detect:
      width: 1280
      height: 720
      fps: 5
      enabled: True
      max_disappeared: 25
      stationary:
        interval: 0
        threshold: 50
        max_frames:
          default: 3000
          objects:
            person: 1000
    record:
      enabled: True
      expire_interval: 60
      retain:
        days: 2
        mode: all
      events:
        pre_capture: 5
        post_capture: 5
        objects:
          - person

        retain:
          default: 2
          mode: motion
##############################################
########## CAMERA 5 #########################
##############################################


  camera5:
    ffmpeg:
      inputs:
        - path: http://192.168.1.124/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass
          input_args: preset-http-reolink
          roles:
            - detect
            - record
            - rtmp
    objects:
      track:
        - person
        - dog
      mask: 0,0,1000,0,1000,200,0,200
      filters:
        person:
          min_area: 1000
          max_area: 100000
          min_ratio: 0.5
          max_ratio: 2.0
          min_score: 0.5
          threshold: 0.7
          mask: 0,0,1000,0,1000,200,0,200
    detect:
      width: 1280
      height: 720
      fps: 5
      enabled: True
      max_disappeared: 25
      stationary:
        interval: 0
        threshold: 50
        max_frames:
          default: 3000
          objects:
            person: 1000
    record:
      enabled: True
      expire_interval: 60
      retain:
        days: 2
        mode: all
      events:
        pre_capture: 5
        post_capture: 5
        objects:
          - person
          - dog
        retain:
          default: 2
          mode: motion
##############################################
########## CAMERA 6 #########################
##############################################

 
  camera6:
    ffmpeg:
      inputs:
        - path: http://192.168.1.125/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass
          input_args: preset-http-reolink
          roles:
            - detect
            - record
            - rtmp
    objects:
      track:
        - person
        - car
      mask: 0,0,1000,0,1000,200,0,200
      filters:
        person:
          min_area: 1000
          max_area: 100000
          min_ratio: 0.5
          max_ratio: 2.0
          min_score: 0.5
          threshold: 0.7
          mask: 0,0,1000,0,1000,200,0,200
    detect:
      width: 1280
      height: 720
      fps: 5
      enabled: True
      max_disappeared: 25
      stationary:
        interval: 0
        threshold: 50
        max_frames:
          default: 3000
          objects:
            person: 1000
    record:
      enabled: True
      expire_interval: 60
      retain:
        days: 2
        mode: all
      events:
        pre_capture: 5
        post_capture: 5
        objects:
          - person
          - car
        retain:
          default: 2
          mode: motion
##############################################
########## CAMERA 7 #########################
##############################################
  camera7:
    ffmpeg:
      inputs:
        - path: http://192.168.1.127/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=pass
          roles:
            - detect
        - path: http://192.168.1.127/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=user&password=pass
          roles:
            - record
            - rtmp
      global_args: -hide_banner -loglevel info
      input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
    objects:
      track:
        - person
      #  - car
      mask: 0,0,1000,0,1000,200,0,200
      filters:
        person:
          min_area: 1000
          max_area: 100000
          min_ratio: 0.5
          max_ratio: 2.0
          min_score: 0.5
          threshold: 0.7
          mask: 0,0,1000,0,1000,200,0,200

    detect:
      width: 1280
      height: 720
      fps: 5
      enabled: True
      max_disappeared: 25
      stationary:
        interval: 10
        threshold: 50
        max_frames:
          default: 3000
          objects:
            person: 1000
    record:
      enabled: True
      expire_interval: 60
      retain:
        days: 2
        mode: all
      events:
        pre_capture: 5
        post_capture: 5
        objects:
          - person
          - car
        retain:
          default: 2
          mode: motion

Relevant log output

2023-08-27 07:39:01.713153060  [INFO] Starting Frigate...
2023-08-27 07:39:03.394433517  [2023-08-27 09:39:03] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-27 07:39:03.494931311  [2023-08-27 09:39:03] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-08-27 07:39:03.495089105  [2023-08-27 09:39:03] peewee_migrate                 INFO    : Starting migrations
2023-08-27 07:39:03.500754415  [2023-08-27 09:39:03] peewee_migrate                 INFO    : There is nothing to migrate
2023-08-27 07:39:03.521020273  [2023-08-27 09:39:03] frigate.app                    INFO    : Output process started: 588
2023-08-27 07:39:03.523172516  [2023-08-27 09:39:03] detector.coral                 INFO    : Starting detection process: 587
2023-08-27 07:39:03.544219918  [2023-08-27 09:39:03] frigate.app                    INFO    : Camera processor started for camera1: 592
2023-08-27 07:39:03.546940132  [2023-08-27 09:39:03] frigate.app                    INFO    : Camera processor started for camera2: 597
2023-08-27 07:39:03.547271829  [2023-08-27 09:39:03] frigate.app                    INFO    : Camera processor started for camera3: 599
2023-08-27 07:39:03.558454040  [2023-08-27 09:39:03] frigate.app                    INFO    : Camera processor started for camera4: 601
2023-08-27 07:39:03.568621888  [2023-08-27 09:39:03] frigate.app                    INFO    : Camera processor started for camera5: 603
2023-08-27 07:39:03.579439465  [2023-08-27 09:39:03] frigate.app                    INFO    : Camera processor started for camera6: 605
2023-08-27 07:39:03.587925790  [2023-08-27 09:39:03] frigate.app                    INFO    : Camera processor started for camera7: 607
2023-08-27 07:39:03.595284206  [2023-08-27 09:39:03] frigate.app                    INFO    : Capture process started for camera1: 609
2023-08-27 07:39:03.602649081  [2023-08-27 09:39:03] frigate.app                    INFO    : Capture process started for camera2: 615
2023-08-27 07:39:03.610418412  [2023-08-27 09:39:03] frigate.app                    INFO    : Capture process started for camera3: 624
2023-08-27 07:39:03.616097742  [2023-08-27 09:39:03] frigate.app                    INFO    : Capture process started for camera4: 628
2023-08-27 07:39:03.622685481  [2023-08-27 09:39:03] frigate.app                    INFO    : Capture process started for camera5: 635
2023-08-27 07:39:03.629764321  [2023-08-27 09:39:03] frigate.app                    INFO    : Capture process started for camera6: 641
2023-08-27 07:39:03.636426192  [2023-08-27 09:39:03] frigate.app                    INFO    : Capture process started for camera7: 645
2023-08-27 07:39:06.438314214  [2023-08-27 09:39:03] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-08-27 07:39:06.446919616  [2023-08-27 09:39:06] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-08-27 14:13:05.097104431  [2023-08-27 16:13:05] frigate.http                   ERROR   : No recordings found for the requested time range
2023-08-27 14:13:05.149768202  [2023-08-27 16:13:05] frigate.http                   ERROR   : Event does not have recordings: 1693123751.297878-8a1oc6
2023-08-27 14:22:18.333314617  [2023-08-27 16:22:18] frigate.object_processing      WARNING : Unable to create jpg because frame 1693146133.532967 is not in the cache
2023-08-27 14:22:21.093781875  [2023-08-27 16:22:21] frigate.object_processing      WARNING : Unable to create jpg because frame 1693146133.532967 is not in the cache
2023-08-28 07:37:31.964646023  [2023-08-28 09:37:31] frigate.http                   ERROR   : No recordings found for the requested time range
2023-08-28 07:37:32.004322423  [2023-08-28 09:37:31] frigate.http                   ERROR   : Event does not have recordings: 1693157459.21207-prlgip
2023-08-28 07:44:44.676859124  [2023-08-28 09:44:44] frigate.http                   ERROR   : No recordings found for the requested time range
2023-08-28 07:44:44.707494624  [2023-08-28 09:44:44] frigate.http                   ERROR   : Event does not have recordings: 1693157552.179532-fbp3tu
2023-08-28 07:44:48.424049622  [2023-08-28 09:44:48] frigate.http                   ERROR   : No recordings found for the requested time range
2023-08-28 07:44:48.445691611  [2023-08-28 09:44:48] frigate.http                   ERROR   : Event does not have recordings: 1693157665.748558-plvopk
2023-08-28 07:44:49.616785863  [2023-08-28 09:44:49] frigate.http                   ERROR   : No recordings found for the requested time range
2023-08-28 07:44:49.678267318  [2023-08-28 09:44:49] frigate.http                   ERROR   : Event does not have recordings: 1693157686.288836-8eex4y
2023-08-28 07:44:51.366140712  [2023-08-28 09:44:51] frigate.http                   ERROR   : No recordings found for the requested time range
2023-08-28 07:44:51.403160869  [2023-08-28 09:44:51] frigate.http                   ERROR   : Event does not have recordings: 1693157689.401889-oprw5l
2023-08-28 07:44:52.176500656  [2023-08-28 09:44:52] frigate.http                   ERROR   : No recordings found for the requested time range
2023-08-28 07:44:52.202916268  [2023-08-28 09:44:52] frigate.http                   ERROR   : Event does not have recordings: 1693157714.403101-p4cayy
2023-08-28 07:44:53.801212525  [2023-08-28 09:44:53] frigate.http                   ERROR   : No recordings found for the requested time range
2023-08-28 07:44:53.839562078  [2023-08-28 09:44:53] frigate.http                   ERROR   : Event does not have recordings: 1693175269.062913-3hk3a0

Frigate stats

sorry for the noob here, i was not able to get these stats

Operating system

HassOS in proxmox VM

Install method

HassOS Addon

Coral version

USB

Any other information that may be helpful

i have 2 type of cameras :

  • reolink RLC-520 (camera1 to camera6 included)
  • RLC-820A (camera7)

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 68

Most upvoted comments

What is your full config

but I m not recording continuously only the events where movement is detected

you ARE recording continuously according to the last config you posted

    record:
      enabled: True
      expire_interval: 60
      retain:
        days: 2
        mode: all
  input_args: 
    - -avoid_negative_ts
    - preset-intel-qsv-h264
    - -analyzeduration

you should remove this, this is entirely incorrect and not doing anything currently

      global_args: -hide_banner -loglevel info
      input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an

all of this is wrong and the source of your problem, you should be using presets instead of manual args

I’d definitely suggest following the docs https://docs.frigate.video/configuration/camera_specific#reolink-cameras and connect to the restream instead of another connection to the camera directly and using correct args instead of random input_args