How does a security camera work?
Overview
Short answer
Infrared LEDs for night vision, motion detection that compares frames, and compression that fits days of video on one drive.
A security camera is a small digital camera with three extra tricks: it sees in the dark, it notices when something moves, and it squeezes days of video into a manageable amount of storage.
Play with the figure, then press Next (or the → key) to go step by step.
Seeing in the dark with infrared
Camera sensors can detect near-infrared light that our eyes can't see. By day, an IR-cut filter sits in front of the sensor to block it, or colours would look washed out. At dusk, a light sensor tells the camera to swing the filter away (that soft click) and switch on a ring of infrared LEDs, flooding the scene with invisible light. Because infrared carries no colour information, night pictures are black and white. Some cameras add a white spotlight or a very sensitive sensor for colour night video.
Spotting motion
Basic motion detection compares each frame with the previous one; if enough pixels change, it records and alerts you. That also triggers on swaying trees, headlights and rain. Better cameras use a PIR sensor that responds to the body heat of people and animals, or on-device AI trained to tell people, cars and parcels from everything else.
Squeezing the video
Raw video would fill a drive in hours. Codecs like H.264 and the newer H.265 save only what changes between frames, which works brilliantly for a mostly still scene. H.265 needs roughly half the storage for the same quality. Recording only when motion is detected cuts storage further.
Where the video goes
Wired CCTV sends video along cables to a recorder (DVR or NVR) with a hard drive. Wi-Fi cameras send it through your router to a cloud service, a memory card in the camera or both. Cloud storage survives the camera being stolen but usually needs a subscription; local storage keeps footage private and free.
Common myths
- "Infrared cameras see through walls." Near-infrared bounces off surfaces like visible light; it can't see through walls or reliably through glass, which reflects the IR LEDs back.
- "Higher resolution is always better." 4K uses far more storage and bandwidth; lens quality, low-light performance and placement often matter more.
- "Cameras are secure out of the box." Change default passwords, update firmware and turn on two-factor login.
Questions people ask
Why is my security camera black and white at night?
It has switched to infrared night mode. Infrared light carries no colour information, so the image is monochrome. Colour night vision needs a spotlight or a very sensitive sensor.
How much storage does a security camera need?
A 1080p camera recording 24/7 with H.265 uses about 20 GB a day; with H.264 about 40 GB. Motion-only recording can cut that by 80% or more.
Why doesn’t night vision work through a window?
The glass reflects the camera’s own infrared LEDs straight back, creating glare. Turn IR off and rely on outdoor lighting, or mount the camera outside.
What is the difference between a DVR and an NVR?
A DVR records analogue cameras over coaxial cable; an NVR records IP cameras over the network, often powered through the same Ethernet cable (PoE).
Do security cameras work without the internet?
Wired systems and cameras with memory cards keep recording locally; you just can’t view them remotely or receive alerts until the connection returns.
Test yourself
Pick an answer for each question. Every answer comes with an explanation.
0/4 answered01What lets a camera see in the dark?
02Why are infrared night images black and white?
03How does H.265 save storage?
04What does a PIR sensor detect?
Sources & more
Sources
- Closed-circuit television (Wikipedia)(opens in a new tab)
- Night vision (Wikipedia)(opens in a new tab)
- High Efficiency Video Coding (Wikipedia)(opens in a new tab)
- Passive infrared sensor (Wikipedia)(opens in a new tab)
Last updated 2026-11-26
Keep exploring
- Money & SecurityExplore it
How does tap-to-pay work?
- Money & SecurityExplore it
How does an ATM work?
- Money & SecurityExplore it
How does a bank card chip work?
- Money & SecurityExplore it
How does two-factor authentication work?
- Money & SecurityExplore it
How do online card payments work?
- Money & SecurityExplore it
How do metal detectors and airport scanners work?