8ff / firescrew

Firescrew - Spotting moving objects on your RTSP network cameras faster than a caffeinated cat!
https://firescrew.com
GNU Affero General Public License v3.0
142 stars 11 forks source link

Fast moving person or vehicle is left out #17

Closed VishalBCA-ops closed 6 months ago

VishalBCA-ops commented 8 months ago

Hello !, Great Work here. I just found out firescrew and I love it and Im adding stuff to it too.

While I was testing, There was two times a bike crossed my camera and It got screenshotted by firescrew and recognized by yolo as person but The video starts after like the bike or car left the camera view. Why is it?

I did the same with frigate but It captures video from way before they enter the screen and to after they leave.

How to fix this? Thanks!

VishalBCA-ops commented 8 months ago

@chiefMarlin

chiefMarlin commented 7 months ago

Hi, Could you provide more details on what type of stream you were using ? Also please check (if possible) the timestamps on the screenshot and the video captured to figure out whether the video clip is ahead or before the screenshot.

One of the reasons you could be seeing this issue is if rtsp stream for hi res is delayed and when motion is detected on low res stream and recording is triggered, data on hi res stream is different. Seeing some timestamps on video screenshot and clip would help.

VishalBCA-ops commented 7 months ago

My IP camera (No Name Brand from Aliexpress) has only one 1080p stream, so i used the same stream for both hi-res and low-res streams. So i don't know whats the problem.

Also I used the same camera for testing using Frigate and It worked good. It starts recording before the person or object enters the frame and stops after leaving. Can Firescrew do that too?

chiefMarlin commented 7 months ago

As i mentioned please take a look at the timestamps on the screenshot and video clip to determine how much of a difference is between them, and which of them is ahead. In addition to this you can increase this parameter in config file: "prebufferSeconds": 10, it controls how many seconds of prerecording will be stored before the event. Firescrew is using 2 streams (LO/HI) to avoid wasting resources, if HI res feed is provided on the Lo res url, it will have to resize the image for object detection which adds cpu load. For the HI res url there is minimal processing as well, as it just dumps the HI res stream to a file (again to avoid any kind of processing/cpu load).