H.264 (AVC) and H.265 (HEVC) are the two most common video codecs used by IP security cameras for RTSP streaming. H.265 offers approximately 50% better compression than H.264 at the same quality, reducing storage and bandwidth requirements — at the cost of higher processing power to encode and decode.
For most modern setups, H.265 is the better choice for recording and storage, while H.264 remains the most universally compatible option for legacy NVRs and older viewer software. On Apple devices running SmartRTSP, both codecs are decoded in hardware, making the battery impact of H.265 negligible.
H.264 vs H.265 — Comparison
A side-by-side breakdown of the two codecs across the criteria that matter most for IP camera deployments.
| Feature | H.264 (AVC) | H.265 (HEVC) |
|---|---|---|
| Standard | ITU-T H.264 / MPEG-4 AVC (2003) | ITU-T H.265 / MPEG-H HEVC (2013) |
| Compression efficiency | Baseline | ~50% better than H.264 |
| Bandwidth usage | Higher (e.g. 4 Mbps for 1080p) | Lower (e.g. 2 Mbps for same quality) |
| Storage requirements | ~2× more space per hour | ~50% less storage vs H.264 |
| Encode CPU load (camera) | Low — supported by all cameras | Higher — requires modern camera SoC |
| Decode on Apple devices | Hardware (VideoToolbox) — all devices | Hardware (VideoToolbox) — iPhone 7+, A9+ chip |
| Compatibility | Universal — all NVRs and viewers | Modern NVRs and apps only |
| Best use case | Legacy systems, universal compatibility | 4K cameras, 24/7 recording, storage savings |
Which Cameras Use H.265?
H.265 support is common in mid-range and high-end IP cameras released after 2016. Most modern 4MP, 5MP, and 4K cameras support H.265 as their primary codec, though they almost always retain an H.264 fallback option in the web interface. Here are the major brands with H.265 support:
DS-2CD3xxx and DS-2CD7xxx series. Hikvision brands it "H.265+" (their smart codec variant). Enable via web UI: Configuration → Video → Video Encoding → Video Type.
RLC-810A, RLC-820A, RLC-823A, and most newer 4K/8MP models. Configurable in the Reolink app or web UI under Video Settings.
IPC-HFW5xxx, IPC-HDW5xxx, and most Starlight/WizMind series. Dahua also uses "H.265+" branding for their smart codec.
Newer 4K Ultra HD models (IP8M series and above) support H.265. Most 1080p models are H.264 only. Check product specs before purchasing.
Most IPC3xxx and IPC5xxx series support H.265 encoding. Professional-grade cameras with H.265 enabled by default.
Even on H.265 cameras, an H.264 fallback is almost always available. Switch to H.264 if you encounter compatibility issues with legacy NVR or recording software.
Hardware Acceleration on Apple Devices
Apple's VideoToolbox framework provides hardware-accelerated video decoding for both H.264 and H.265 on all modern Apple Silicon Macs, Intel Macs (2016 and later), iPhone 7 and later (A10 chip and newer), and iPad models with A9X chip and newer.
SmartRTSP uses VideoToolbox for all RTSP stream decoding. This means the encoded H.264 or H.265 video frames from your IP camera are decoded by dedicated hardware blocks on the chip — not by the CPU. The practical result is that running an H.265 stream in SmartRTSP consumes barely more battery than running an H.264 stream of the same resolution.
On Apple Silicon Macs (M1, M2, M3, M4 and later) and recent iPhone models, VideoToolbox can decode multiple simultaneous H.265 streams with negligible CPU usage, making SmartRTSP's multi-view mode highly efficient even when all cameras are streaming at 4K H.265.
How to Switch Between H.264 and H.265
The codec setting is configured on the camera itself, not in SmartRTSP. The location in the web interface varies by brand, but the path is typically:
After switching codecs, the camera will typically apply the change immediately without rebooting. SmartRTSP will automatically detect and decode the new codec on the next connection. No settings change is needed in the app.
Main Stream vs Sub-Stream Codec
IP cameras typically expose two RTSP streams: a main stream (high quality) and a sub-stream (lower resolution/bitrate). The codec used for each stream can be configured independently:
- • Full resolution (1080p, 4MP, 4K)
- • H.264 or H.265 depending on camera setting
- • Higher bitrate — best for recording and archiving
- • Use H.265 here for maximum storage savings
- • Lower resolution (typically 640×480 or 1280×720)
- • Usually H.264 even on H.265 cameras
- • Very low bitrate — ideal for multi-view on mobile
- • Good choice for SmartRTSP's 4-camera grid view
A common approach: record the main stream in H.265 on your NVR for storage efficiency, and view the sub-stream in H.264 via SmartRTSP when monitoring multiple cameras simultaneously.