[Frigate 0.9.0 RC5] Event videos contain no event
See original GitHub issueDescribe the bug Sometimes I have the problem that an event has a very good snapshot/preview, but the video does not contain the event. The recognized object is then simply not visible. It looks as if a different point in time was recorded.
Version of frigate 0.9.0-aa807d2
Config file
logger:
default: info
# logs:
# frigate.events: debug
detectors:
coral1:
type: edgetpu
device: pci:0
mqtt:
host: IP
topic_prefix: frigate
client_id: frigate
user: USER
password: PASS
stats_interval: 600
ffmpeg:
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- nobuffer
- -flags
- low_delay
- -strict
- experimental
- -fflags
- +genpts+discardcorrupt
- -rw_timeout
- "5000000"
- -use_wallclock_as_timestamps
- "1"
- -f
- live_flv
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
detect:
enabled: True
width: 2560
height: 1440
fps: 5
max_disappeared: 100
objects:
track:
- person
- car
- motorcycle
- bicycle
- cat
- dog
record:
enabled: True
retain_days: 0
events:
pre_capture: 5
post_capture: 5
objects:
- person
- car
- motorcycle
- bicycle
- cat
- dog
retain:
default: 30
snapshots:
enabled: True
timestamp: True
bounding_box: False
retain:
default: 30
rtmp:
enabled: False
timestamp_style:
position: "tl"
format: "%d.%m.%Y %H:%M:%S"
thickness: 1
cameras:
carport:
ffmpeg:
inputs:
- path: rtmp://IP/bcs/channel0_main.bcs?channel=0&stream=0&user=USER&password=PASS
roles:
- detect
- record
best_image_timeout: 240
mqtt:
enabled: True
timestamp: True
bounding_box: False
crop: True
height: 360
objects:
filters:
car:
mask:
- 811,1147,1062,912,1138,844,1496,712,1448,425,1671,158,2560,87,2560,1440,722,1440
zones:
carport_cars:
coordinates: 349,1440,1000,413,1549,398,1549,189,2560,189,2560,1440,1571,1440
carport_road:
coordinates: 1560,184,1556,391,993,418,351,1440,0,1440,0,189
entrance:
ffmpeg:
inputs:
- path: rtmp://IP/bcs/channel0_main.bcs?channel=0&stream=0&user=USER&password=PASS
roles:
- detect
- record
best_image_timeout: 240
mqtt:
enabled: True
timestamp: True
bounding_box: False
crop: True
height: 360
motion:
mask:
- 1562,0,2560,0,2560,1440,1909,1440
- 0,1440,0,0,518,0,647,860,996,936,1060,1440
zones:
entrance_steps:
coordinates: 1124,1180,1029,944,638,849,616,642,1273,549,1300,356,1740,389,1904,1440,940,1440
objects:
- person
entrance_road:
coordinates: 627,262,662,0,1742,0,1691,364
frontdoor:
ffmpeg:
inputs:
- path: rtmp://IP/bcs/channel0_main.bcs?channel=0&stream=0&user=USER&password=PASS
roles:
- detect
- record
best_image_timeout: 240
mqtt:
enabled: True
timestamp: True
bounding_box: False
crop: True
height: 360
motion:
mask:
- 1946,0,2560,0,2560,1440,1760,1440
- 0,0,844,0,970,1440,0,1440
zones:
frontdoor_steps:
coordinates: 1982,82,2560,82,2560,1440,1762,1440
frontdoor_door:
coordinates: 853,84,1980,84,1773,1389,991,1373
Frigate container logs Nothing relevant found
Frigate stats
{"carport":{"camera_fps":5.1,"capture_pid":232,"detection_fps":0.0,"pid":219,"process_fps":5.1,"skipped_fps":0.0},"detection_fps":0.0,"detectors":{"coral1":{"detection_start":0.0,"inference_speed":7.19,"pid":215}},"entrance":{"camera_fps":5.3,"capture_pid":237,"detection_fps":0.0,"pid":222,"process_fps":5.3,"skipped_fps":0.0},"frontdoor":{"camera_fps":5.4,"capture_pid":241,"detection_fps":0.0,"pid":228,"process_fps":5.4,"skipped_fps":0.0},"service":{"storage":{"/dev/shm":{"free":116.5,"mount_type":"tmpfs","total":134.2,"used":17.7},"/media/frigate/clips":{"free":1772014.4,"mount_type":"btrfs","total":2000397.9,"used":227008.7},"/media/frigate/recordings":{"free":1772014.4,"mount_type":"btrfs","total":2000397.9,"used":227008.7},"/tmp/cache":{"free":989.0,"mount_type":"tmpfs","total":1000.0,"used":11.0}},"uptime":3678,"version":"0.9.0-aa807d2"}}
FFprobe from your camera
Run the following command and paste output below
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, flv, from 'rtmp://IP/bcs/channel0_main.bcs?channel=0&stream=0&user=USER&password=PASS':
Metadata:
displayWidth : 2560
displayHeight : 1440
Duration: 00:00:00.00, start: 326315.858000, bitrate: N/A
Stream #0:0: Data: none
Stream #0:1: Video: h264, yuv420p(progressive), 2560x1440, 6 fps, 6.25 tbr, 1k tbn
Stream #0:2: Audio: aac, 16000 Hz, mono, fltp
Unsupported codec with id 0 for input stream 0
Screenshots I could prepare a video where you can see no object if that helps 😉
Computer Hardware
- OS: Ubuntu
- Install method: Docker Compose
- Coral Version: m.2 PCIe
- Network Setup: Wired
Camera Info:
- Manufacturer: Reolink
- Model: RLC-520
- Resolution: 2560x1440
- FPS: 6
Issue Analytics
- State:
- Created 2 years ago
- Comments:32 (10 by maintainers)
Top Results From Across the Web
[Frigate 0.9.0 RC5] Event videos contain no event - Codesti
Sometimes I have the problem that an event has a very good snapshot/preview, but the video does not contain the event. The recognized...
Read more >0.9.0 Release · Discussion #1502 · blakeblackshear/frigate
Separating events and recording this way has significant benefits. Overlapping events no longer mean that the same video footage is stored multiple times...
Read more >Frigate NVR
Frigate is an open source NVR built around real-time AI object detection. ... One of the most starred network video recorders on GitHub....
Read more >Static Object Detection in Frigate V 0.10! - YouTube
I'll outline some breaking changes, retain modes, stationary object detection, in-progress events and cache handl...
Read more >Frigate version 0.9 Updates. Change your config! - YouTube
In this video, I talk about the newest (as of this recording) version of Frigate - version 0.9. This update includes BREAKING CHANGES...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Give this image a try
blakeblackshear/frigate:record_debug-04a5614-amd64
. This is going to log information for each recording segment evaluated during the expiration job. It will generate a lot of logs every minute. Set your logging config to the following:Once it happens again, gzip the log file and post here.
In the other issue you actually gave me an idea how to validate that.
you see that every segment is less than 10 seconds. some recordings were more that 10 seconds.
and in total the whole hour (3600 seconds) recordings didn’t get 130 seconds. Because my example was towards to the end of the hour, so there were about 120 seconds delay. During last 10 minutes I’ve lost about 10 seconds.
here is the camera’s config (reolink 520)
the issue I see on amcrest ip-5mp camera but I’l loosing a bit less.
So on Amcrest camera I’ve lost 44 seconds vs 130 on Reolink.