Documentation
¶
Overview ¶
Package presence keeps a battery camera present to a recorder without waking it. Its stream is made only from what reostream already has: the last picture, repeated while nothing happens; each motion clip the camera uploads, played in at real speed as it arrives; and the live picture whenever someone has woken the camera to watch it.
A recorder such as Frigate can then hold the stream open around the clock. Repeated identical pictures are no motion to it, and a clip is real motion, so its own detection runs on the footage.
The stream always has a sound track, AAC-LC at 16 kHz mono, which is what these cameras record: a clip's own audio while it plays, silence the rest of the time. See audioLocked.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
Player is one battery camera's presence stream.
func (*Player) Frame ¶
Frame passes a live frame through (the camera is awake because someone is watching it), on the stream's own clock. It is the sink the camera's on-demand main stream writes to.