question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: Detections are not stored

See original GitHub issue

Describe the problem you are having

I have a single Hikvision DS-2CD1343G0E-I IP-based camera mounted at the main entrance of my apartment. I am running HomeAssistant version core-2021.10.2 which is latest along with the latest version of Frigate The issue is that any person that comes into the frame is not being logged or stored. I don’t want a continuous recording, I only want motioned-based detections and alerts that too if it’s a person. Below is my config file and all details I could find.

As you can see in the below screenshot, it detected the person image But when I go into Events I see nothing image

Version

0.9.1-800F33E

Frigate config file

mqtt:
  host: 192.168.192.31
  user: aasim
  password: pppppassss
cameras:
  MainDoor_Cam:
    ffmpeg:
      hwaccel_args:
        - -hwaccel
        - vaapi
        - -hwaccel_device
        - /dev/dri/renderD128
        - -hwaccel_output_format
        - yuv420p
      inputs:
        - path: rtsp://viewer:password@ipaddress:554/Streaming/Channels/101
          roles:
            - detect
    objects:
      track:
      - person
detectors:
  cpu1:
    type: cpu
    cpu2:
      type: cpu  
detect:
  enabled: True
  max_disappeared: 25

Relevant log output

{
  "birdseye": {
    "enabled": true,
    "height": 720,
    "mode": "objects",
    "quality": 8,
    "width": 1280
  },
  "cameras": {
    "MainDoor_Cam": {
      "best_image_timeout": 60,
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 720,
        "max_disappeared": 25,
        "width": 1280
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [
          "-hwaccel",
          "vaapi",
          "-hwaccel_device",
          "/dev/dri/renderD128",
          "-hwaccel_output_format",
          "yuv420p"
        ],
        "input_args": [
          "-avoid_negative_ts",
          "make_zero",
          "-fflags",
          "+genpts+discardcorrupt",
          "-rtsp_transport",
          "tcp",
          "-stimeout",
          "5000000",
          "-use_wallclock_as_timestamps",
          "1"
        ],
        "inputs": [
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://viewer:password@ipaddress:554/Streaming/Channels/101",
            "roles": [
              "detect"
            ]
          }
        ],
        "output_args": {
          "detect": [
            "-f",
            "rawvideo",
            "-pix_fmt",
            "yuv420p"
          ],
          "record": [
            "-f",
            "segment",
            "-segment_time",
            "10",
            "-segment_format",
            "mp4",
            "-reset_timestamps",
            "1",
            "-strftime",
            "1",
            "-c",
            "copy",
            "-an"
          ],
          "rtmp": [
            "-c",
            "copy",
            "-f",
            "flv"
          ]
        }
      },
      "ffmpeg_cmds": [
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://viewer:password@ipaddress:554/Streaming/Channels/101 -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "detect"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 99,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 180,
        "mask": "",
        "threshold": 25
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "MainDoor_Cam",
      "objects": {
        "filters": {
          "person": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          }
        },
        "mask": "",
        "track": [
          "person"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "max_seconds": 300,
          "objects": null,
          "post_capture": 5,
          "pre_capture": 5,
          "required_zones": [],
          "retain": {
            "default": 10,
            "objects": {}
          }
        },
        "retain_days": 0
      },
      "rtmp": {
        "enabled": true
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": true,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 10,
          "objects": {}
        },
        "timestamp": false
      },
      "timestamp_style": {
        "color": {
          "blue": 255,
          "green": 255,
          "red": 255
        },
        "effect": null,
        "format": "%m/%d/%Y %H:%M:%S",
        "position": "tl",
        "thickness": 2
      },
      "zones": {}
    }
  },
  "database": {
    "path": "/media/frigate/frigate.db"
  },
  "detect": {
    "enabled": true,
    "fps": 5,
    "height": 720,
    "max_disappeared": 25,
    "width": 1280
  },
  "detectors": {
    "cpu1": {
      "device": "usb",
      "num_threads": 3,
      "type": "cpu"
    }
  },
  "environment_vars": {},
  "ffmpeg": {
    "global_args": [
      "-hide_banner",
      "-loglevel",
      "warning"
    ],
    "hwaccel_args": [],
    "input_args": [
      "-avoid_negative_ts",
      "make_zero",
      "-fflags",
      "+genpts+discardcorrupt",
      "-rtsp_transport",
      "tcp",
      "-stimeout",
      "5000000",
      "-use_wallclock_as_timestamps",
      "1"
    ],
    "output_args": {
      "detect": [
        "-f",
        "rawvideo",
        "-pix_fmt",
        "yuv420p"
      ],
      "record": [
        "-f",
        "segment",
        "-segment_time",
        "10",
        "-segment_format",
        "mp4",
        "-reset_timestamps",
        "1",
        "-strftime",
        "1",
        "-c",
        "copy",
        "-an"
      ],
      "rtmp": [
        "-c",
        "copy",
        "-f",
        "flv"
      ]
    }
  },
  "live": {
    "height": 720,
    "quality": 8
  },
  "logger": {
    "default": "info",
    "logs": {}
  },
  "model": {
    "height": 320,
    "labelmap": {},
    "labelmap_path": null,
    "path": null,
    "width": 320
  },
  "motion": null,
  "mqtt": {
    "client_id": "frigate",
    "host": "ipaddress",
    "password": "password",
    "port": 1883,
    "stats_interval": 60,
    "tls_ca_certs": null,
    "tls_client_cert": null,
    "tls_client_key": null,
    "tls_insecure": null,
    "topic_prefix": "frigate",
    "user": "aasim"
  },
  "objects": {
    "filters": null,
    "mask": "",
    "track": [
      "person"
    ]
  },
  "record": {
    "enabled": false,
    "events": {
      "max_seconds": 300,
      "objects": null,
      "post_capture": 5,
      "pre_capture": 5,
      "required_zones": [],
      "retain": {
        "default": 10,
        "objects": {}
      }
    },
    "retain_days": 0
  },
  "rtmp": {
    "enabled": true
  },
  "snapshots": {
    "bounding_box": true,
    "clean_copy": true,
    "crop": false,
    "enabled": false,
    "height": null,
    "quality": 70,
    "required_zones": [],
    "retain": {
      "default": 10,
      "objects": {}
    },
    "timestamp": false
  },
  "timestamp_style": {
    "color": {
      "blue": 255,
      "green": 255,
      "red": 255
    },
    "effect": null,
    "format": "%m/%d/%Y %H:%M:%S",
    "position": "tl",
    "thickness": 2
  }
}

FFprobe output from your camera

ffprobe 'rtsp://viewer:password@ipaddress:554/Streaming/Channels/101'
ffprobe version 4.1.6-1~deb10u1 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 1 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 3 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 3 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 3 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 2 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 1 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 3 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 2 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 1 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 2 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 1 packets
[rtsp @ 0x55cce253c000] max delay reached. need to consume packet
[rtsp @ 0x55cce253c000] RTP: missed 2 packets
Input #0, rtsp, from 'rtsp://viewer:password@ipaddress:554/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), 2560x1440, 20 tbr, 90k tbn, 90k tbc

Frigate stats

No response

Operating system

Debian

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Hikvision DS-2CD1343G0E-I

Any other information that may be helpful

The issue is that any person that comes into the frame is not being logged or stored. I don’t want a continuous recording, I only want motioned-based detections and alerts that too if it’s a person.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:42 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
tovmaxcommented, Oct 13, 2021

It’s already here: https://github.com/blakeblackshear/frigate/issues/1986 BTW, I’ve got the very same issue like yours and still unable to solve it too.

0reactions
aasimenatorcommented, Dec 29, 2021

@aasimenator Did you find a solution? I am having the same issue

Nope, no solution. Just looking and testing other NVR solutions

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Crash Detection on iPhone or Apple Watch to call for help ...
Raw audio is never collected or stored for the purposes of Crash Detection or to improve Crash Detection.
Read more >
Troubleshoot external storage detection on Xbox
If your console doesn't detect an external storage drive​​ To update: Press the Xbox button  to open the guide, and then select...
Read more >
Secret Detection - GitLab Docs
To help prevent secrets from being committed to a Git repository, you can use Secret Detection to scan your repository for secrets. Scanning...
Read more >
Intelligent Threat Detection – Amazon GuardDuty FAQs
GuardDuty is an intelligent threat detection service that continuously ... Note that GuardDuty does not store the logs and only uses them for...
Read more >
Setting Up Incident Detection on a Garmin Device
Incident Detection does not work with activity apps that are downloaded from the Connect IQ Store. The Garmin device must have LTE service...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found