Is H.264 Lower Quality?

By: 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 (33) : Members only. Login. or Join.

Related Reports

Video Analytics 101 on Mar 16, 2020
This guide teaches the fundamentals of video surveillance analytics. Inside we cover: Why Use Video Analytics Video Analytics Warning Where...
AI/Smart Camera Tutorial on Feb 20, 2020
Cameras with video analytics, sometimes called 'Smart' camera or 'AI' cameras, etc. are one of the most promising growth areas of video...
Vivotek LPR Camera Tested on Apr 15, 2020
Vivotek has historically sold license plate capture cameras but not LPR. Now, they have released their own cameras with embedded LPR. How do they...
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 rights abuse sanctions, many budget buyers are turning to smaller...
Glossary / Acronyms for Video Surveillance on Feb 10, 2020
This directory provides definitions and explanations for over 90 common video surveillance industry terms, including links to related IPVM...
Camera Analytics Shootout 2020 - Avigilon, Axis, Bosch, Dahua, Hanwha, Hikvision, Uniview, Vivotek on Jan 22, 2020
Analytics are hot again, thanks to a slew of AI-powered cameras, but whose analytics really work? And how do these new smart cameras compare to top...
Monitoreal "Completely Autonomous" Home AI Tested on Feb 12, 2020
Monitoreal claims to allow users to "see the things you want (people, vehicles, animals) and ignore the things you don’t”, using AI to distinguish...
Multi-Imagers Added to IPVM Camera Calculator on Jun 15, 2020
IPVM has added multi-imager cameras to the Camera Calculator, supporting this growing category of cameras offering 2 to 5 imagers with both fixed...
Leica Launches LIDAR / Thermal / IP Camera on Mar 04, 2020
Swiss manufacturer Leica is launching what it calls a "real-time reality capture device" fusing LIDAR, thermal cameras, IP cameras and more. In...
Hikvision Global News Reports Directory on Jun 18, 2020
Hikvision has received the most global news reporting of any video surveillance company, ever, ranging from the WSJ, the Financial Times, Reuters,...

Most Recent Industry Reports

Remove Dahua and Hikvision Equipment "Immediately" Or Else Banned From US Government Contracts on Jul 10, 2020
The US government has directed contractors to remove covered equipment, such as Dahua, Hikvision, and Huawei Hisilicon products, "immediately." If...
ZeroEyes Presents Firearm Detection Video Analytics on Jul 09, 2020
ZeroEyes presented its Firearm detection Video Analytics system at the May 2020 IPVM Startups show. A 30-minute video from ZeroEyes...
Directory of 162 "Fever" Camera Suppliers on Jul 09, 2020
This directory provides a list of "Fever" scanning thermal camera providers to help you see and research what options are available. There are...
Clinton Public View Monitor (PVM) Mask Detection Tested on Jul 09, 2020
Face mask detection, or more specifically not wearing one, is expanding amidst the pandemic. Clinton Electronics has added this capability to their...
These Florida Real Estate Agents Are Now Selling "SafeCheck USA" Temperature Detectors on Jul 09, 2020
The "Kakon Brothers", William and Nathan, are self-described "south Florida Power Agents specializing in Luxury Real Estate" who "have closed over...
Avigilon ACC Cloud Tested on Jul 08, 2020
Avigilon merged Blue and ACC, adding VSaaS features to its on-premise VMS, offering remote video and health monitoring that was previously limited...
Hikvision's India Dominance Faces Threat on Jul 08, 2020
While Hikvision has become a dominant video surveillance provider in India, recent tension between the governments of India and the PRC is...
The US Fight Over Facial Recognition Explained on Jul 08, 2020
The controversy around facial recognition has grown significantly in 2020, with Congress members and activists speaking out against it while video...
Sperry West / Alibaba Tablet Temperature Measurement Tested on Jul 07, 2020
In April, we ordered a ~$500 temperature tablet from Alibaba. We set it to the side while doing 18 other temperature screening tests but, after...
Facial Recognition: Weak Sales, Anti Regulation, No Favorite, Says Security Integrators on Jul 07, 2020
While facial recognition has gained greater prominence, a new IPVM study of security systems integrators shows weak sales, opposition to...