Closed ratsputin closed 1 year ago
Given that the recordings are ahead of the snapshot, the only explanation I can think of is that the detect feed is behind the recording feed.
Usually this would be due to differences in the streams but given that both are using a single stream it would seem likely that the decoder is what is introducing the delay.
The variability of it adds to this, meaning the decoder is usually fine but can sometimes get behind.
Ah! That's what I was looking for. Thank you.
Unfortunately, the Jetson's jtop
utility only provides the clock speed of the NVDEC, not its activity level. I've noticed it's pegged at 857MHz continually and wondered if that might be a problem.
The Jetson is an impressive little platform. The fact that it can (mostly) keep up with decoding and performing motion detection across seven high-res camera feeds for just 25W power draw and leverage the yolov7-640 model for detections says a lot.
Once again, thank you for the assistance.
That was exactly the issue. I checked the cameras with a direct connection vs. through Frigate and the video was lagging by 20+ seconds. I reduced the framerate on the cameras from 30fps to 20fps across seven total cameras and it is now keeping up. Thank you again for the help.
Describe the problem you are having
I'm trying to track down an issue where the video clip associated with an event starts ~20 seconds after the actual event. This isn't consistent and is difficult to identify, as it is only an issue when a detection occurs near the edge of a the camera image.
For example, a camera is facing the street and someone is walking. Say the detection takes place 10 seconds before they leave the frame. The snapshot tied to the event will show the person at the time of the detection, let's say at 07:00:00. Now, the person leaves the frame at 07:00:10. The issue I'm running into is the clip associated with the event only starts at 07:00:20 and runs until 07:01:20, completely missing the actual event.
Version
0.12.1-AB50D0B
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
Other Linux
Install method
Docker Compose
Coral version
Other
Network connection
Wired
Camera make and model
Reolink RLC-410
Any other information that may be helpful
Note, this is on my port of Frigate and its supporting tools to the NVIDIA Jetson Orin NX (aarch64 with NVIDIA GPU acceleration). I'm just trying to track down whether this is a known issue and what the cause might be or if it's something I've introduced somehow.
The fact that detections and recordings seem to be in sync the majority of the time (~90%+) leads me to believe everything is working properly and there are circumstances that trigger this.
I've also noticed that there are random instances where I get an error that the clip is entirely missing for an event.
Can you offer any insight into what might be happening and where I might look?