Test: H.264 I vs P Frame Impact

By: Ethan Ace, Published on Oct 02, 2013

Codecs like H.264 reduce bandwidth by only sending full frames every so often, mixing them with partial frames only capturing changes in between the full ones. They are called 'I' frames because they are the initial / full frames, followed by 'P', or predictive frames.*

Note: if you are not familiar with codecs, please read our Surveillance CODEC Guide before continuing.

I Frame Questions

Since I frames require much more bandwidth than P frames (frequently 10 or 20x more), some will argue that reducing the rate of I frames will reduce overall bandwidth significantly. For instance, instead of having an I frame each second, reduce it to 1 every 5 seconds.

On the other hand, some will argue that reducing I frames can result in quality problems because it can be harder for the processor to continue to faithfully update and represent the image if it has changed significantly since the last I frame.

We seek to answer these two questions:

  • How much bandwidth savings can you achieve by reducing the I frame interval?
  • How much quality degradation can occur by reducing the I frame interval?

The Tests Conducted

In order to answer these questions, we used five 720p cameras at various price points and performance levels:

  • Avigilon H3 1MP
  • Axis M1114
  • Axis Q1604
  • Bosch NBN-733V
  • Dahua HF3101

We aimed these cameras at a toy train set to create consistent motion, and varied I-frame levels from a default of one per second to as high as five and as low as one every four seconds.

There are several key takeaways from this test:

Get Notified of Video Surveillance Breaking News
Get Notified of Video Surveillance Breaking News

  • Increasing I-frame frequency results in minimal image quality improvement, but a large increase in bandwidth consumption. Increases of 20-35% were common when doubling I-frames from 1 to 2 per second, while increases of 60-90% were observed when moving from 1 to 5.
  • Decreasing the number of I-frames per second results in a significant reduction in image quality for moving objects, but a very small gain in bandwidth. Moving from one I-frame per second to one every two seconds decreased bandwidth by 5-15%. 10-25% reductions were seen when reducing I-frames to one every four seconds.
  • While bandwidth generally increased as I-frame interval decreased, and vice versa, the exact amount of this change varied across manufacturers and models from the same manufacturer. 
  • Each camera's P-frame size remained consistent regardless of I-frame interval.
  • The Bosch NBN-733V was the only camera in this test that did not increase bandwidth with the number of I-frames. Instead, the camera increased quantization, keeping the stream size constant. However, reducing the number of I-frames resulted in bandwidth reductions typical of other cameras.
  • The Dahua HF3101 did not allow for more than one I-frame per second, though slower rates were possible.

Image Quality Impact

In this video, we show I-frame interval's impact on image quality due to varying degrees of artifacting. Intervals tested include:

  • 1 I-frame per second
  • 2.5 I-frames per second
  • 5 I-frames per second
  • 1 I-frame every 2 seconds
  • 1 I-frame every 4 seconds

Users should note the drastic reduction in image quality as the number of I-frames is reduced, as well as the minimal gains when increasing.

Bandwidth Impact 

When increasing the time between I frames, bandwidth declined across all cameras, but modestly, as shown by this graph:

The chart below shows the raw numbers and exact percentages:

By contrast, increasing the number of I frames so that there were multiple ones in a second, significantly increased bandwidth:

 

This chart shows the differences in bandwidth when increasing from one I-frame per second to 2.5 and 5. Notes that Dahua did not allow for faster rates, so was excluded from these tests. Also, see our notes about Bosch's bandwidth/compression performance.

P-frame Frequency/Size

The images below, taken from AVInaptic, illustrates two things:

  • First, note the increasing quantity of I-frames in each image (moving from left to right). I-frames are shown as the taller blue lines, while P-frames are green/red.
  • Second, the P-frame size of each camera remains relatively consistent regardless of I-frame interval. This was true in both the relatively low motion train test, and in a high motion scene created with a stage laser.

Bosch NBN-733 Performance 

Unlike all other cameras in the test, the NBN-733V did not increase bandwidth when I-frame interval was decreased, instead staying approximately static around 3 Mb/s. Checking this camera in a stream analyzer, we discovered that the camera compensated for the additional I-frames by increasing quantization. Average quantization was as follows:

  • 1 I-frame per second: ~25 
  • 2.5 I-frames per second: ~27
  • 5 I-frames per second: ~29

Note that quantization remained unchanged when moving from one I-frame per second to one every two or four seconds, steady around 25.

6 reports cite this report:

Smart Codec Guide on Feb 01, 2018
"Smart Codec" was once seemingly a marketing buzzword, but in 2020, nearly...
Hikvision H.265+ Tested on Jun 27, 2017
Hikvision, which in the past few years released H.264+ (see test results) has...
Video Surveillance Bandwidth Guide on Dec 16, 2016
Bandwidth is one of the most fundamental, complex and overlooked aspects of...
Major Manufacturers Dropping MJPEG on Nov 04, 2016
MJPEG has hung on for years, still in use in some systems despite H.264's...
Frame Rate Guide for Video Surveillance on Aug 07, 2014
This is the industry's most in depth guide to frame rates in video...
Training: Frame Rates for IP Cameras on Apr 18, 2010
This is the industry's most in depth guide to frame rates in video...
Comments (14) : Members only. Login. or Join.

Related Reports

TVT / InVid White Light Camera Tested Vs Hikvision ColorVu on Mar 18, 2020
With mega China manufacturers Dahua and Hikvision facing both bans and human...
Uniview Deep Learning Camera Tested on Jul 14, 2020
Uniview's intrusion analytics have performed poorly in our shootouts. Now,...
Vivotek LPR Camera Tested on Apr 15, 2020
Vivotek has historically sold license plate capture cameras but not LPR. Now,...
Cheap Camera Problems at Night on Feb 19, 2020
Cheap cameras generally have problems at night, despite the common perception...
HLC Camera Shootout - Avigilon, Axis, Dahua, Hanwha, Hikvision, Panasonic, Uniview, Vivotek on Mar 02, 2020
Highlight Compensation (HLC) claims to reduce the effects of strong light...
Camera Resolution Usage Statistics 2020 on Mar 12, 2020
The average resolution used, for new cameras, is now 4MP, according to new...
Video Surveillance History on May 06, 2020
The video surveillance market has changed significantly since 2000, going...
BICSI For IP Video Surveillance Guide on Feb 11, 2020
Spend enough time around networks and eventually someone will mention BICSI,...
Integrated IR Camera Shootout 2020 - Avigilon, Axis, Bosch, Dahua, Hanwha, Hikvision, Panasonic, Uniview, Vivotek on Jan 30, 2020
The best and worst cameras tested in this IPVM shootout showed major...
IBM Video Analytics Reborn on May 01, 2020
IBM is back in video analytics and they are even offering AI-based fever...
Video Analytics 101 on Mar 16, 2020
This guide teaches the fundamentals of video surveillance...
Hanwha Wisenet X Plus PTRZ Tested on Feb 14, 2020
Hanwha has released their PTRZ camera, the Wisenet X Plus XNV-6081Z, claiming...
IR Surveillance Camera Guide on Feb 06, 2020
Integrated infrared (IR) cameras are everywhere in 2020, but not all IR is...
USA ICI Elevated Skin Temperature Detectors Examined on Apr 06, 2020
Infrared Cameras, Inc. (ICI) is aiming to help slow the spread of COVID-19...
Fever Camera Sales From Integrators Surveyed on Jun 01, 2020
Fever cameras are the hottest trend in video surveillance currently but how...

Recent Reports

Indian Government Restricts PRC Manufacturers From Public Projects on Aug 04, 2020
In a move that mirrors the U.S. government’s ban on Dahua and Hikvision...
Directory of 199 "Fever" Camera Suppliers on Aug 04, 2020
This directory provides a list of "Fever" scanning thermal camera providers...
Face Masks Increase Face Recognition Errors Says NIST on Aug 04, 2020
COVID-19 has led to widespread facemask use, which as IPVM testing has shown...
Dahua Loses Australian Medical Device Approval on Aug 04, 2020
Dahua has cancelled its medical device registration after "discussions" with...
Google Invests in ADT, ADT Stock Soars on Aug 03, 2020
Google has announced a $450 million investment in the Florida-based security...
US Startup Fever Inspect Examined on Aug 03, 2020
Undoubtedly late to fever cameras, this US company, Fever Inspect, led by a...
Motorola Solutions Acquires Pelco on Aug 03, 2020
Motorola Solutions has acquired Pelco, pledging to bring blue back and make...
False: Verkada: "If You Want To Remote View Your Cameras You Need To Punch Holes In Your Firewall" on Jul 31, 2020
Verkada falsely declared to “3,000+ customers”, “300 school districts”, and...
US GSA Explains NDAA 889 Part B Blacklisting on Jul 31, 2020
With the 'Blacklist Clause' going into effect August 13 that bans the US...
Access Control Online Show July 2020 - On-Demand Recording of 45+ Manufacturers Presentations on Jul 30, 2020
The show featured 48 Access Control presentations, all now recorded and...
Face Detection Shootout - Dahua, Hanwha, Hikvision, Uniview, Vivotek on Jul 30, 2020
Face detection analytics are available from a number of manufactures...
Sunell is The First China Manufacturer to Market NDAA Compliance on Jul 30, 2020
Most China manufacturers are going to be impacted by the NDAA 'Blacklist...
Ink Labs Relabels China YCX Fever Camera And Steals Dahua's Marketing on Jul 30, 2020
A US company marketed a 'thermal temperature scanner' as its own, selling...
Genetec and Dahua-Backed Intelbras Split Examined on Jul 29, 2020
China is the cause of the breakup between Canada's and Brazil's largest video...
This YouTuber is Now Selling ThermoHealth Temperature Screening on Jul 29, 2020
An enterprising 20-year old is mass marketing medical devices on Facebook and...