blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.44k stars 1.79k forks source link

New camera role: Clips #2082

Open darkalfx opened 3 years ago

darkalfx commented 3 years ago

Describe what you are trying to accomplish and why in non technical terms

I have cameras with very high resolutions, I want to be able to do continuous recording of the lower resolution input stream but whenever a detection occurs, I want the associated clips to be taken from the high resolution input stream, not from the lower resolution input stream.

Describe the solution you'd like

A new camera role called something like "Clips" would allow users to choose which input stream to use for generating clips instead of assuming that this should come from the continous recording role.

Describe alternatives you've considered

I could duplicate the camera in Frigate to achieve this, however this would also mean running detection twice for the same stream which is highly undesirable.

I could also do continuous recording of the high resolution input stream but that would take very large amounts of disk space, not ideal.

UltraSub commented 3 years ago

+1 for this. It would also help in using Doubletake and Compreface. Have it up and running but the resolution of the clip used is to low for face detection, too many incorrect results. Same goes for using the clip for a doorbell notification.

blakeblackshear commented 3 years ago

My understanding is that Doubletake and Compreface use still images for detection, not video clips. This won't help increase the resolution snapshots.

UltraSub commented 3 years ago

Yes, but doubletake grabs the snapshot from Frigate and passes that to compreface. The snapshot resolution is from the substream, because that is used for detection. Would be awesome I f we could pass a snapshot from the mainstream.

/edit I now see my mistake, I mixed up clips (video) and snapshots (stills).