Skip to main content
VIDEO · COMPRESSION

H.264 vs H.265: What Is the Difference?

H.265, also called HEVC, is the newer video compression standard that followed H.264, or AVC. It can deliver similar picture quality at up to about half the bitrate, which cuts network traffic and storage per camera. The trade-off is more processing to encode and decode, and less universal playback support than H.264.

01

What H.264 and H.265 are

H.264 and H.265 are video compression standards: rules for how an encoder shrinks raw video into a stream that can be sent over a network and stored, and how a decoder rebuilds it. Both were developed jointly by the ITU-T and ISO/IEC MPEG, which is why each has two names. H.264 is also called AVC, Advanced Video Coding, and was published in 2003. H.265 is also called HEVC, High Efficiency Video Coding, and was published in 2013 as its successor.

H.264 became the default codec for almost everything: IP cameras, video calls, Blu-ray, broadcast and the web. H.265 was designed to do the same job at roughly half the bitrate, mainly to make 4K and high-resolution surveillance practical. Our codec FAQ explains how video codecs work in general; this page compares these two in detail.

02

Why H.265 compresses better

Both codecs work the same basic way. They split each frame into blocks, predict each block from nearby blocks or from earlier frames, and store only the difference. H.265 does each step more flexibly.

  • //
    Larger, more flexible blocks. H.264 uses macroblocks of 16 by 16 pixels. H.265 uses coding tree blocks of up to 64 by 64 pixels that can be split into smaller pieces only where there is detail, so flat areas such as sky or walls cost very little.
  • //
    Better intra prediction. H.265 has 35 ways to predict a block from its neighbours, against nine in H.264, so it predicts edges and textures more accurately.
  • //
    Improved motion prediction. More accurate motion vectors and merge modes mean moving objects need fewer bits to describe.
  • //
    Better filtering. An extra in-loop filter reduces banding and ringing, so H.265 holds quality at lower bitrates.
03

H.264 vs H.265 side by side

The table sets out the main differences. Real savings depend on the scene and the encoder settings.

Feature H.264 (AVC) H.265 (HEVC)
Published 2003 2013
Block size 16 × 16 macroblocks Up to 64 × 64 coding tree blocks
Bitrate at similar quality Baseline Typically 25 to 50% lower
Typical 1080p30 camera stream Around 4 to 6 Mb/s Around 2 to 3 Mb/s
Encode and decode load Lower Higher, best done in hardware
Highest common resolution 4K, 8K in later levels 8K
10-bit and HDR Rarely used Widely supported
Browser playback Almost universal Depends on browser and hardware
Licensing Single main patent pool Several patent pools

Savings are largest at high resolutions and on static scenes, which is why H.265 suits fixed surveillance cameras so well. On low-resolution, high-motion video the gap narrows.

04

What the bitrate saving means for storage

For recording, a lower bitrate means more days of footage on the same drives or more cameras on the same network. A camera streaming at 4 Mb/s around the clock writes roughly 43 GB a day. Halve the bitrate by switching to H.265 and the same drives keep footage for about twice as long, or the same retention needs about half the storage. Our bitrate FAQ shows how to work out file size from bitrate.

The saving also applies to the network. More camera streams fit on one PoE switch uplink or one cellular connection, which matters on vehicles and remote sites. Our guide to PoE in surveillance and NVR systems covers how that affects a whole system.

05

Compatibility and licensing

H.264’s biggest advantage is that almost everything can play it: every current browser, phone, smart TV, video management system and media player. H.265 support is good on hardware made in the last several years but less even in software. Browsers generally play HEVC only where the computer has a hardware decoder, and some older video management systems and web viewers cannot display it at all. Licensing is part of the reason. H.264 patents are largely handled by one pool, while HEVC patents are split across several pools and individual holders, which slowed its adoption in browsers and free software. Before switching a fleet of cameras to H.265, check that every viewer, recorder and analytics package in the chain decodes it.

06

Hardware encoding and decoding

H.265 takes considerably more processing than H.264, so real-time encoding and decoding at scale needs a hardware codec rather than the CPU. Most current options include both: NVIDIA GPUs and most Jetson modules have NVENC and NVDEC engines, Intel processors include Quick Sync Video, and IP cameras encode in a dedicated chip. It is worth checking the exact module, because the hardware differs. The Jetson Orin Nano, for example, has a hardware decoder but no hardware encoder.

Codec choice sets how much storage and decode power a recorder needs. Our video encoders and decoders include hardware H.264 and H.265 encoders, and our industrial NVRs record and analyse camera feeds in both formats. Our NVR FAQ covers the recorder itself.

07

Quick answers on H.264 vs H.265

H.264 and H.265: common questions

Is H.265 better than H.264?

For storage and bandwidth, yes. It gives similar quality at a lower bitrate. H.264 still makes sense where older decoders, browsers or software must play the stream.

Is HEVC the same as H.265?

Yes. H.265 is the ITU-T name and HEVC (High Efficiency Video Coding) is the name used by ISO/IEC MPEG. They are the same standard.

Should I use H.264 or H.265 for CCTV?

H.265 in most new systems. Use it where the cameras, recorder and viewing software all support it. Keep H.264 for streams that must play in older software or in any browser.

Does H.265 reduce video quality?

Not at a matched quality setting. Both are lossy, but at the same bitrate H.265 usually looks better, and at the same quality it uses fewer bits.

What replaces H.265?

AV1 and H.266. AV1 is a royalty-free codec from the Alliance for Open Media, and H.266, or VVC, is the 2020 successor to HEVC. Both compress further but need newer hardware.

We configure industrial NVRs and encoders with the codec, bitrate and storage set for each project as standard, and validate recording and playback before the system ships.