Camera settings for a recorder
12 min Read in this browser
You will be able to
- Turn on the streams a recorder reads, brand by brand
- Remove the timestamp overlay, or plan to mask it
- Set the camera so the recorder spends its effort on real motion
A camera fresh out of the box is set up for its own app, not for a recorder. Spend ten minutes in its settings on the bench, before it goes up the ladder: the streams, the codec, the overlay and the clock. This lesson goes through them in order.
Before anything else
You already know these from A network for cameras:
- Update the firmware.
- Set a strong admin password, and create a viewer account for the recorder.
- Reserve its address on the router, and name it (
cam-driveway). - Point its clock at a time server it can reach, and set its timezone.
Turn on the streams
A recorder reads RTSP, and finds the camera's streams over ONVIF. Many cameras ship with one or both off:
| Brand | What to turn on |
|---|---|
| Reolink | RTSP and ONVIF in the network's advanced port settings. Some models keep the full-quality ("Clear") stream disabled in Home Assistant: enable it there too. |
| UniFi Protect | RTSPS for each camera, in Protect. G5 cameras and newer share their video only through a Protect console. |
| Tapo | A camera account (username and password) in the Tapo app, separate from the cloud account. |
| Hikvision, Dahua, Amcrest | Usually on already; check ONVIF and its user. |
Then make sure the camera serves two streams: the main stream at full resolution, and a sub stream between 640×360 and 1280×720. A camera with only one stream still works, but it either records in low quality or detects on the expensive full-size picture.
Codec and encoder
Set what Streams, codecs and bitrate explains: 15 fps on the main stream and 5 fps on the sub stream, one keyframe a second, constant bitrate, smart codecs off.
For the codec, choose H.264 on both streams. It plays in every browser and in the Home Assistant app, so the customer can watch any clip anywhere. H.265 saves disk, but a clip that won't play on the customer's phone the day they need it costs more than a bigger disk.
The timestamp overlay
Most cameras print the date and time on the picture, an OSD (on-screen display). The seconds change every second, and a recorder that looks for motion sees that change all day long. It then spends its effort on frames where nothing happens.
- Turn the time overlay off in the camera's display (OSD) settings. The recorder already knows when every frame was taken, and shows it.
- If the customer wants it on the picture anyway, leave it on and mask it in the recorder. The Frigate track shows how.
- A camera name printed on the picture never changes, so it does no harm. It's still clutter: most customers prefer it off.
The camera's own smarts
Many cameras detect people, ring an alarm or record to an SD card on their own. With a recorder, the recorder does that work:
- Turn off the camera's cloud and remote access through its app, as on any camera you install.
- Leave its own detection alone if Home Assistant uses it (a Reolink's person sensor, for instance). It costs the recorder nothing.
- An SD card is a useful backup if the network goes down. It's not where the customer's footage lives.
Night
- Leave day and night switching on automatic.
- Look at the night picture once the camera is up, in the dark: infrared glare and spider webs only show there.
Codec
The method a camera uses to compress its video, and a player to decompress it. Cameras use H.264 or H.265.
NTP
Network Time Protocol: how a device sets its clock from a time server. Without it, a device's clock drifts, and so do the times on its recordings.
RTSP
Real Time Streaming Protocol: how a camera serves its live video over the network, usually on port 554. A recorder such as Frigate opens a stream at an address like rtsp://192.168.1.50:554/main.
ONVIF
A standard that lets a recorder find a camera on the network, read its settings and streams, and move it if it pans and tilts. It doesn't carry the video: RTSP does.
RTSPS
RTSP encrypted with TLS, as UniFi Protect serves it. Frigate reads it like RTSP once it's turned on for each camera.
Main stream
A camera's full-resolution stream, at a high bitrate. Frigate records it.
Sub stream
The camera's second, smaller stream of the same picture, such as 640×480 at 5 fps. Frigate detects on it, which costs a fraction of the main stream.
Frame rate
How many pictures a stream sends each second (frames per second). 15 fps is smooth enough to record; detection needs about 5.
Keyframe
A complete picture in a stream; the frames between hold only what changed. A recording can only start on one, so set one keyframe a second: the interval equals the frame rate.
Constant bitrate
The camera sends the same bitrate whatever the scene, so the disk fills at a rate you can plan for. Variable bitrate (VBR) climbs at night and in bad weather.
Smart codec
A camera setting (H.264+, H.265+, Smart Codec) that saves a little space by spacing keyframes far apart. Recordings then start late or won't play from where you click: turn it off.
H.264
The most widely supported video codec: it plays in every browser, phone and recorder. The default for cameras on Frigate.
H.265
A newer video codec that needs about half the bitrate of H.264 for the same picture, but that some browsers can't play and that costs more to decode.
OSD
On-screen display: the date, time or name a camera prints on its picture. The clock changes every second, which a recorder sees as motion.
Frigate
The open-source recorder Selora runs on the Hub. It records the cameras and detects people, vehicles and animals in what they see, locally.
Infrared
Light people can't see, which a camera shines at night to see in black and white. It reflects off nearby eaves, walls and glass back into the lens.
Go further on selorahomes.com
What you read is saved in this browser only. Sign in to keep it in your account, take the quizzes and get certified.
This lesson by Selora Homes is licensed CC BY 4.0 : share and adapt it, even commercially, crediting Selora Homes with a link. Photos by others keep their own licences, as credited.