Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

H.264 Security Cameras: Codec Meaning & How to Check

· 7 min read · Home Security

In this article
  1. What Is a Codec and Why Does H.264 Matter?
  2. How to Check What Codec Your Camera Uses
  3. H.264 vs. H.265 vs. MJPEG: What's the Difference?
  4. How H.264 Affects Storage and Bandwidth
  5. Common Problems with H.264 Cameras and How to Fix Them
  6. How to Choose the Right H.264 Camera for Your Needs
  7. Security and Privacy Considerations with H.264
  8. Frequently Asked Questions

H.264 is a video compression standard (codec) that security cameras use to shrink video file sizes while keeping good image quality, and you can check which codec a camera uses in its settings menu, its spec sheet, or by inspecting the video file's properties. This article explains what H.264 means for your security system, how it compares to other codecs, and the practical steps to verify what your camera actually records with.

What Is a Codec and Why Does H.264 Matter?

A codec (coder-decoder) is software or hardware that compresses video when it's recorded and decompresses it when you play it back. Without compression, a single 1080p security camera would generate roughly 1.5 GB of data per hour—that's 36 GB per day per camera. H.264 (also called AVC, Advanced Video Coding) is the most widely used video codec in security cameras because it reduces file sizes by about 80–90% compared to uncompressed video, while retaining acceptable detail for identifying faces, license plates, and movement.

H.264 works by storing only the changes between frames rather than every full frame. It creates a full reference frame (I-frame) periodically, then records only the differences in subsequent frames (P-frames and B-frames). This makes it far more efficient than older codecs like MJPEG, which stores every frame as a separate JPEG image.

How to Check What Codec Your Camera Uses

There are three reliable ways to determine the codec of a security camera:

  • Check the camera's spec sheet or box: Look for "Video Compression" or "Video Codec" in the specifications. It will list H.264, H.265, MJPEG, or another codec.
  • Look in the camera's web interface or app: Log into the camera's settings (often via a web browser or mobile app). Find the "Video" or "Encoding" section. The codec is usually shown as a dropdown or a read-only field.
  • Inspect a recorded video file: Download a short clip from the camera, then right-click the file and select "Properties" (Windows) or "Get Info" (Mac). Under the "Details" or "Codecs" tab, the video codec (e.g., H.264, H.265) will be listed. Alternatively, free tools like MediaInfo or VLC's codec information window show the exact codec.

If you're looking at a live view and not a recording, the codec is still the same—it's used for both streaming and storage. Most cameras use the same codec for both, though some allow separate settings for live view and recording.

H.264 vs. H.265 vs. MJPEG: What's the Difference?

H.264 is an older but extremely compatible codec. Its successor, H.265 (also called HEVC, High Efficiency Video Coding), can compress video to about half the file size of H.264 at the same quality. That means H.265 cameras can store more footage on the same hard drive or use less bandwidth for remote viewing. However, H.265 requires newer hardware to decode—older NVRs, computers, or phones may not support it.

MJPEG (Motion JPEG) is a codec that stores each frame as a separate JPEG image. It's simple and reliable, but it produces very large files—often 5–10 times larger than H.264. MJPEG is rarely used in modern IP cameras except for some older models or as a fallback mode.

For most users, H.264 is the safe choice because it's universally supported. H.265 is better if you have newer equipment and want to maximize storage efficiency. If you're buying a new camera, H.265 is increasingly common and worth considering, but check that your recorder and viewing devices support it.

How H.264 Affects Storage and Bandwidth

The bitrate—the amount of data recorded per second—determines how much storage and bandwidth your camera uses. H.264 cameras typically allow you to adjust the bitrate, either as a fixed value (CBR) or variable (VBR). Here's a rough guide for a single 1080p camera at 15 frames per second:

  • Low quality: ~2 Mbps → about 0.9 GB per day
  • Medium quality: ~4 Mbps → about 1.8 GB per day
  • High quality: ~8 Mbps → about 3.6 GB per day

These numbers are approximate and vary with scene complexity—a busy street with lots of movement will produce larger files than a static empty room. To estimate your storage needs, multiply the bitrate (in Mbps) by 0.011 to get GB per hour, then multiply by hours of recording per day.

Bandwidth matters for remote viewing. If you have a 10 Mbps upload speed, a single 4 Mbps stream will use 40% of your bandwidth, which may cause lag. Lowering the bitrate or using a sub-stream (a lower-resolution secondary stream) can help.

Common Problems with H.264 Cameras and How to Fix Them

Even though H.264 is mature, users often encounter these issues:

  • Video won't play on an old device: If your NVR or phone doesn't support H.264, you'll see a black screen or an error. Solution: update firmware, use a compatible player like VLC, or switch the camera to MJPEG if available.
  • Choppy or laggy live view: This is usually a bandwidth issue. Reduce the bitrate, lower the resolution, or use a wired connection instead of Wi-Fi.
  • Recordings are blurry or pixelated: The bitrate is too low for the resolution. Increase the bitrate or lower the frame rate (e.g., from 30 fps to 15 fps).
  • File size unexpectedly large: Check if the camera is set to a high bitrate or if the scene has constant motion (e.g., trees moving). Try enabling VBR or lowering the bitrate.

If you're having trouble playing H.264 files, VLC Media Player is a free, reliable tool that handles virtually all H.264 variants.

How to Choose the Right H.264 Camera for Your Needs

When shopping for an H.264 security camera, consider these factors:

  • Resolution: 1080p (1920×1080) is the minimum for identifying faces. 4K (3840×2160) gives more detail but requires more storage and bandwidth.
  • Frame rate: 15 fps is usually enough for security; 30 fps is smoother but doubles the bitrate.
  • Bitrate control: Look for cameras that let you adjust bitrate. Fixed bitrate is predictable; variable bitrate saves space when nothing is happening.
  • H.264 profile: Main Profile is standard; High Profile offers slightly better compression but may be less compatible. Most cameras use Main or High.
  • Compatibility: If you have an existing NVR, check that it supports H.264 (most do). If you plan to use H.265, ensure all devices are H.265-compatible.

Also consider whether the camera supports dual streams—one high-quality stream for recording and a lower-quality stream for live viewing on your phone. This is a standard feature in most modern IP cameras.

Security and Privacy Considerations with H.264

H.264 itself doesn't affect security, but how you use it does. Encrypted video (via HTTPS or RTSP over TLS) is recommended to prevent interception. Many cameras offer encryption, but it's often disabled by default. Enable it in the camera's settings.

Another concern is that H.264 files can be edited or tampered with. For forensic evidence, some cameras offer watermarking or hash verification, but this is not standard. For most home users, the main risk is unauthorized access to the camera feed, so change default passwords and keep firmware updated.

Finally, be aware that H.264 is a patented technology. Some open-source projects (like OpenH264) have licensing implications, but for consumers using commercial cameras, this is rarely an issue.

Frequently Asked Questions

Is H.264 the same as MP4?

No. H.264 is a video codec (compression algorithm), while MP4 is a container format (a file wrapper). An MP4 file can contain H.264 video, but it can also contain other codecs like H.265 or MPEG-4. Security cameras often record in MP4 or in a proprietary format that uses H.264 inside.

Can I convert H.264 recordings to another format?

Yes. Use a free tool like HandBrake or VLC to convert H.264 files to H.265 (smaller size) or to a more compatible format like AVI. However, re-encoding reduces quality slightly, so it's best to keep the original files if you need them for evidence.

Why does my H.264 camera use so much bandwidth?

Bandwidth is determined by bitrate, not just the codec. If your camera is set to a high bitrate (e.g., 8 Mbps), it will use a lot of bandwidth. Lower the bitrate in the camera settings, or use a sub-stream for remote viewing. Also, check if the camera is set to a high frame rate (30 fps) which increases bitrate.

Is H.265 worth it over H.264?

If you have newer hardware that supports H.265, yes—it cuts storage and bandwidth needs by about 50%. However, if you have older devices, H.264 is more compatible. For a single camera, the difference may not be huge, but for a multi-camera system, H.265 can save significant storage space.

How do I know if my NVR supports H.264?

Check the NVR's specifications or user manual. Almost all NVRs made in the last decade support H.264. If you're unsure, look for the codec in the NVR's recording settings—if you can select H.264, it's supported. If not, you may need to update firmware or use a different camera.