NVR (Network Video Recorder)
A recorder for IP cameras. Each camera compresses its own video and sends it over the network, and the NVR stores the streams on its drives in the building. It is sized by channel count and incoming bandwidth.
Two video compression standards used by cameras and recorders. H.265 was designed to match the picture of H.264 at about half the bitrate, so a drive holds more days, but savings vary by scene and every device must support it.
H.264, also called AVC, was first approved by the ITU-T in 2003, and H.265, also called HEVC, in 2013. In the developers' published tests, H.265 matched the picture quality of H.264 at about 50 percent less bitrate on average, which on a camera system roughly doubles the days a drive holds.
Definitions checked against the standards listed at the end.
Uncompressed, one 4MP picture (2,560 × 1,440 pixels at the 12 bits a pixel video uses) is about 5.5 MB, so 15 a second is about 660 megabits every second. An example H.264 stream for that camera, 5 Mbps, is about 130 times smaller. Both codecs get there the same way. An I-frame is coded on its own, like a photograph. The frames after it, P-frames, store only what changed since the frame before: which blocks moved, and a small correction for each. A new I-frame comes often every 1 to 4 seconds; that spacing is the I-frame interval, or GOP length.
Each picture is first cut into blocks. H.264 works in macroblocks of 16 × 16 pixels, split smaller where there is detail. H.265 starts from coding tree units of up to 64 × 64 pixels and splits each one only as far as the picture needs, so a plain wall costs a few large blocks instead of dozens of small ones. Figure 1 draws both, with the size of every frame in four seconds of video.
Swipe the drawing sideways to see all 60 frames.
I-frame: every block of the picture is coded from scratch, so this frame is 130 kB. Playback and export can start here.
(130 kB + 29 × 17.5 kB) × 8 ÷ 2 s = 2.55 Mbps
2.55 Mbps × 86,400 s ÷ 8 ÷ 1,000 = 27.5 GB a day
The codec shrinks every frame, I and P alike. The I-frame interval matters most where nothing moves: in the empty corridor, with H.264, the example bitrate falls from 2.50 Mbps with an I-frame every second to 1.34 Mbps with one every 4 seconds. In the busy corridor it falls only from 6.00 to 4.65 Mbps, because there the P-frames carry most of the bits.
| Scene | Codec | Bitrate | Storage a day |
|---|---|---|---|
| Empty corridor | H.264 | 1.73 Mbps | 18.7 GB |
| Empty corridor | H.265 | 0.86 Mbps | 9.3 GB |
| Busy corridor | H.264 | 5.10 Mbps | 55.1 GB |
| Busy corridor | H.265 | 2.55 Mbps | 27.5 GB |
H.265 keeps the toolbox of H.264 and makes the tools bigger and finer. The main changes, from the overview published by its developers:
| H.264 (AVC) | H.265 (HEVC) | |
|---|---|---|
| First approved by ITU-T | May 2003 | April 2013 |
| Largest coding block | 16 × 16 macroblock | Coding tree unit of 16 × 16, 32 × 32 or 64 × 64 |
| Intra prediction | 8 directional modes | 33 directional modes, plus planar and DC |
| Transform sizes | 4 × 4 and 8 × 8 | 4 × 4 up to 32 × 32 |
| Motion | Quarter pixel motion vectors | Quarter pixel, plus merge mode and advanced motion vector prediction |
| Filters inside the loop | Deblocking | Deblocking and sample adaptive offset |
| Parallel processing | Slices | Slices, tiles and wavefront processing |
| Bitrate for the same picture | The reference | About 50% less on average, in subjective tests |
The price is computation: more block sizes, directions and modes to try for every part of the picture. Cameras and recorders do this in dedicated chips, so a recorder or computer built for H.264 may not decode H.265 at all, and no setting changes that.
In the developers' tests, with viewers judging the pictures, H.265 gave the same quality at about 50 percent less bitrate on average. Storage follows bitrate one for one, so half the bitrate means about twice the days on the same drive.
Storage per day = Mbps × 86,400 seconds ÷ 8 bits per byte ÷ 1,000 = Mbps × 10.8 GB
For the busy corridor in Figure 1, one camera writes 55 GB a day with H.264 and 28 GB with H.265. Eight such cameras on an 8 TB drive keep about 18 days with H.264 and about 36 with H.265. The calculator in our guide to how long security camera recordings last works it out for your drives.
The same halving applies to a recorder's incoming bandwidth, a switch uplink and an internet upload for phone viewing or a cloud copy. Our comparison of cloud storage and a local NVR or DVR works out what an upload can carry.
Fifty percent is an average across test videos, not a promise for your camera: the saving depends on the scene, the camera's encoder and its settings. Read each camera's bitrate on the recorder over a full day before you size storage on it.
To compare H.264 and H.265 for your own cameras, use our security camera storage calculator.
H.265 saves space only if every device that decodes the video can do it.
Across makers, the common language is ONVIF. Profile T lists both H.264 and H.265 streaming; Profile S, the older one, is being retired, with March 31, 2027 as its last date for conformance submissions. For H.265, look for Profile T on both sides.
Many buildings in New York and New Jersey carry several generations of equipment: a recorder from one upgrade, cameras from another, sometimes a DVR still on coax, which compresses the video itself (the recent DVR spec sheets we checked list both codecs). Three situations come up often.
Ask these about any camera system, including a security camera installation from us.
A recorder for IP cameras. Each camera compresses its own video and sends it over the network, and the NVR stores the streams on its drives in the building. It is sized by channel count and incoming bandwidth.
A recorder for analog and HD over coax cameras. Each camera sends its picture on its own coax cable, and the DVR converts it to digital, compresses it with H.264 or H.265 and stores it on its drives.
A camera with its own network address that compresses its own video and sends it over an Ethernet cable, usually Cat6, which also carries its power by PoE. It records to an NVR, a cloud service or its own card.
Areas of a camera view where movement starts a recording or an alert. Recording on motion saves storage, but nothing outside the zones is kept, and rain, headlights and moving trees can set it off.
Bandwidth is the most a link or service is rated to carry; throughput is what actually gets through after overhead, sharing and retries. Size camera uploads and Wi-Fi on measured throughput, not the rate on the box.
For storage and bandwidth, yes: it was designed to deliver the same picture at about half the bitrate, and published tests found close to that on average. It is not better if a recorder, app or computer in the chain cannot play it, so check every device first.
Not at a fair bitrate: at the same bitrate it usually looks as good as H.264 or better. The risk is a smart mode or a very low bitrate setting used to save more, which can blur moving faces, so check recorded video of a person walking past.
About half on average, so a drive holds roughly twice the days. In the example on this page, a 4MP camera in a busy corridor writes 55 GB a day with H.264 and 28 GB with H.265. Real savings vary, so read the bitrates on your recorder.
Usually, if the recorder supports H.265 at all, since each channel records whatever its camera sends. Check the spec sheet for H.265 on every channel at the resolution you need, and for ONVIF Profile T when the cameras come from another maker.
The computer or browser has no H.265 decoder for it. Safari plays H.265, while Chrome, Edge and Firefox play it only on some hardware and systems. Export with the recorder's own player, or ask whether it can export a copy in H.264.
We walk the building, then send a written scope. Same-day quotes when we can. Licensed and insured.