Is H.264 Lower Quality?

Author: Sarit Williams, Published on Nov 14, 2013

Is H.264 lower quality? Even Avigilon now says no, but many still argue yes. 

One of These Images is H.264, the Other MJPEG

Take a look at these two images, one of them uses H.264, the other uses MJPEG:

 So, which one is which?

How The Images Were Generated

Both images are from the same camera set to the same bitrate / bandwidth (1 Mb/s). Image A was captured with the CODEC set to MJPEG, while Image B was captured when set to H.264. They are both cropped from a 720p shot of a conference room wall.

Why Do They Look So Different?

The key issue is that we fixed the bandwidth. When bandwidth is locked, the compression level of any CODEC needs to adjust (this is the basis of CBR). When bandwidth is low like we did here, the compression levels must go higher (i.e., quality goes down).

Why is H.264 Better Quality Here?

Many assume that H.264 compression is higher and that MJPEG delivers either uncompressed or low compressed video. This is not the case. All CODECS compress video.

The key difference is how 'smart' the CODECs are in compressing. MJPEG only compresses individual frames (intra-frame compression) while H.264 compresses across frames (inter-frame compression) as well. Becuase H.264 can compress across multiple frames and find what stays the same over time, it can more intelligently reduce bitrate without impacting quality. This is why MJPEG's quality is so much worse in this example.

Background References

IPVM has a wealth of training and tests of video quality and CODECs, including:

1 report cite this report:

Major Manufacturers Dropping MJPEG on Nov 04, 2016
MJPEG has hung on for years, still in use in some systems despite H.264's dominance for the better part of the past decade. However, now some...
Comments (34): PRO Members only. Login. or Join.

Related Reports on Bandwidth

Save $50 - IP Networking Course September 2017 on Aug 16, 2017
Tomorrow, Thursday, August 17th is the last day to save $50 on the September IP Networking Course. This is the only networking course designed...
Cat 5e vs Cat 6 vs Cat 6a Network Cable Usage Statistics on Aug 16, 2017
Cat 5e? Cat 6? Cat 6a? What do integrators use in practice, today? 140+ integrators told IPVM. Here are the results: For those who want to...
IP Camera Specification / RFP Guide 2017 on Aug 14, 2017
RFPs are hard. Do them 'right' and it takes a lot of knowledge and time. Do them 'wrong' and you can be (a) unwittingly locked into a specific...
IR Surveillance Guide on Jul 31, 2017
Infrared (IR) has become an increasing core component to video surveillance systems. In particular, the expansion of integrated IR cameras that...
H.265 / HEVC Codec Tutorial 2017 on Jun 30, 2017
For years, video surveillance professionals have talked about the potential for H.265. Now, in 2017, H.265 is starting to gain mainstream...
Hikvision H.265+ Tested on Jun 27, 2017
Hikvision, which in the past few years released H.264+ (see test results) has now released H.265+, that claims even greater bandwidth savings. We...
Axis 20MP Q1659 Camera Tested on Jun 13, 2017
Axis has joined the super high resolution camera trend with their Q1659, a 20MP model equipped with Canon's APS-C sensor. We tested the Q1659...
48MP 180 Camera (Digital Watchdog) Test on May 10, 2017
Camera resolution continues to advance, with Digital Watchdog offering the MegaPIX PANO 48MP 180° camera, the highest resolution mainstream camera...
Hanwha Lowest Cost WiseNet X Camera (XND-6010) Tested on Apr 13, 2017
IPVM bought and tested the lowest-cost WiseNet X model, the indoor 2MP fixed focal XND-6010 dome, continuing our testing of Hanwha's new WiseNet X...
Pelco Surevision 3 Tested on Apr 12, 2017
Pelco has released generation 3 of its Surevision cameras, claiming improved performance in both super low light and WDR performance. We bought...

Most Recent Industry Reports

Save $50 - IP Networking Course September 2017 on Aug 16, 2017
Tomorrow, Thursday, August 17th is the last day to save $50 on the September IP Networking Course. This is the only networking course designed...
Hikvision Responds To Cracked Security Codes on Aug 15, 2017
Hikvision has responded to IPVM's report on Hikvision's security code being cracked, both with a 2 page update to dealers and communication...
Stolen Video NVR / DVR Statistics on Aug 15, 2017
"But what happens if someone steals my recorder?" Anyone who has done more than a handful of jobs has probably heard this question several times....
Hikvision Europe Cutting Out Unauthorized End User Sales on Aug 15, 2017
The days of anyone buying Hikvision from anywhere off the Internet are numbered, at least in Europe, if Hikvision's plan comes to fruition. In...
Axis Laser Focus PTZ Tested on Aug 14, 2017
Axis has been touting its new Q6155-E laser focus PTZ as 'always in focus' and 'always in color'. Does it really deliver? We bought and tested...
Vulnerability Directory For Access Control Cards on Aug 14, 2017
Knowing which access credentials are insecure can be unclear, especially because most look and feel the same. Even the most insecure 125 kHz types...
IP Camera Specification / RFP Guide 2017 on Aug 14, 2017
RFPs are hard. Do them 'right' and it takes a lot of knowledge and time. Do them 'wrong' and you can be (a) unwittingly locked into a specific...
Cellphone Usage Issues For Integrators (Statistics) on Aug 11, 2017
Cellphones clearly offer significant advantages in communication and problem solving. But they can also be a major pain point if employees...
Rebooting IP Camera Statistics And Practices on Aug 10, 2017
Dahua cameras automatically reboot weekly, by default. Is this an innovation by the Chinese mega-manufacturer or a sign of a problems? 125...
Avigilon Profits Surge, Stock Jumps (Q2 2017) on Aug 10, 2017
Avigilon said earlier this year they would shift their strategy to maximizing profits. Now, they are delivering it and the stock market is...

The world's leading video surveillance information source, IPVM provides the best reporting, testing and training for 10,000+ members globally. Dedicated to independent and objective information, we uniquely refuse any and all advertisements, sponsorship and consulting from manufacturers.

About | FAQ | Contact