Video Quality / Compression Tutorial

By: IPVM Team, Published on Oct 17, 2018

While CODECs, like H.264, H.265, and MJPEG, get a lot of attention, a camera's 'quality' or compression setting has a big impact on overall quality. In this training, we explain what this level is, what options you have and how you should optimize it.

To start, review these two images, (A) and (B):

camera a camera b

And answer this question before continuing:

With the information presented, the best answer is that it cannot be determined. We used the same camera for each image and simply increased compression for the 'B' image (while keeping everything else the same, including resolution and codec).

The fact that two exact shots with the same resolution can look significantly different has a number of important implications. Inside, we explain why, covering:

  • Quantization levels
  • Bandwidth vs. quality loss
  • Image quality examples
  • Manufacturer differences
  • MBR/VBR/CBR impact
  • Smart codec impact
  • Recommendations

Quantization Levels

Regardless of codec used (H.264, H.265, MJPEG, etc.), all IP cameras offer quality levels, often called 'compression' or 'quantization'.

H.264 and H.265 quantization is measured on a standard scale ranging from 0 to 51, with lower numbers meaning less compression, and thus higher quality. If this seems counter intuitive to you, it is understandable, but these are simply the measurements defined in H.264 and H.265 standards.

Key Tradeoff: Bandwidth Vs. Quality Loss

The key tradeoff in setting quantization is determining how much 'loss' you are willing to accept for a particular decrease in bandwidth. All production surveillance video compression is 'lossy', meaning that some information will be lost when video is compressed, making a crucial configuration decision:

***** ******, **** *.***, H.265, *** *****, *** a lot ** *********, * camera's '*******' ** *********** setting *** * *** impact ** ******* *******. In **** ********, ** explain **** **** ***** is, **** ******* *** have *** *** *** should ******** **.

** *****, ****** ***** *** images, (*) *** (*):

camera a camera b

*** ****** **** ******** before **********:

**** *** *********** *********, the **** ****** ** that ** ****** ** determined. ** **** *** same ****** *** **** image *** ****** ********* compression *** *** '*' image (***** ******* ********** else *** ****, ********* resolution *** *****).

*** **** **** *** exact ***** **** *** same ********** *** **** significantly ********* *** * number ** ********* ************. Inside, ** ******* ***, covering:

  • ************ ******
  • ********* **. ******* ****
  • ***** ******* ********
  • ************ ***********
  • ***/***/*** ******
  • ***** ***** ******
  • ***************

************ ******

********** ** ***** **** (H.264, *.***, *****, ***.), all ** ******* ***** quality ******, ***** ****** 'compression' ** '************'.

*.*** *** *.*** ************ is ******** ** * standard ***** ******* **** 0 ** **, **** lower ******* ******* **** compression, *** **** ****** quality. If **** ***** ******* intuitive ** ***, ** is **************, *** ***** are ****** *** ************ defined ** *.*** *** H.265 *********.

Key ********: ********* **. ******* ****

*** *** ******** ** setting quantization ** *********** *** much '****' *** *** willing ** ****** *** a ********** ******** ** bandwidth. *** ********** ************ video *********** ** '*****', ******* **** **** information **** ** **** when ***** ** **********, making * ******* ************* decision:

[***************]

  • ******** ***********/***** *** ******* level *** *** **** on *********, *** ****** quality.
  • ******** *******/****** *********** *** you *** **** ****** details, *** *** **** bandwidth *** ****** ******* time.

Demonstrated ** ********

*** ***** ***** ***** the ****** ** ******** quality ******. ** ***** to **** ****, ** took ******** **** *** scenes (****** / ****** and ******* / *******) and ******** *******. *** quantization ****** *** ** seen ********** ** **** scenes ** ******* **** up. *********, ***** ******* increases, **** **** ********** and ******** ** *******.

Manufacturer **********

*** ************* *** ******* quality ******. **** ** you ***** ***** ***** settings, *** ************ **** make * ****** *** you. *******, **** *** **** majority ** ************ *******, ************* options *** ********* ** let ******** ***** ****** this.

*****, ** **** ** a *** ************* ** better *********** ***** **********. However, ******* ****** *** our ** ****** ************ *********** Comparison **** *** **** ******* of **+ ************* *********** scales *** *** ** default ***** ******* ** "average" ***********. ** ******* from ****:

Axis *** **. *** *** *********

**** **** *** ********* web **********. **** ******* cameras *** *** ********** ***** ******* *** **** *********** and **** *** ******* browser ******* *** *.***/*.*** video. **** *** *** old *** *** ***** to ******* ** "***********", with ****** ******* ***** more **********/***** *********. ****** of ****, ** ************* users *** ****** ******** the ***** ******** ** increases ***** *******. 

*** *** *** ********* uses * ******/****** *****:

***** *** *** ********* simply ****** **** *****:

********** ** ***** ** is ****, **** *********** 30 ******* ** ~** on *** ************ *****.

*****

*****'* ***** ***** ***** quantization ** *-******, **** I-frames ******* ** **** by * ******** ****** ("I/P-frame ***** **" *****). So ** *-****** *** set ** ** *** I-frames *** ** -*, I-frames **** *** * minimum ** ** ************. This ***** ** ******** to ******* ************ ** a ******** *****, ********* some ***** *** ***** in * ***** ***** to ******.

callouts

*********

*********'* *********** ******** *** under *** *****/***** ***, on * ***** ** "lowest" (**** ***********) ** "highest" (***** ***********), ********** to "******." ***** ******** are ****** ** ******** quantization ******, ******* **** ~20-35. ***** ******** *** corresponding ************ ****** *** the **** ***** **** H.264 *** *.***.

Important: ***/***/*** ******

**** ************ *********** *** variable *** **** ********* (VBR), ***** ****** ********* in ***** ** ******** a ***-*** ******* *****, sometimes **** * ******* bit **** *** (****** MBR). *** ****** *** above ****** *** ************ level *** ****** ** targeting, *.*., ** **** camera **** ****** ************ level **, **** ******* increasing *** ********** ** necessary.

*******, ** ******* *** set ** ******** *** rate, quality ***** ** *** configurable ******* *** *** rate, ** ********** ** 'constant', **** ******* ***** automatically ******** ** **** bandwidth *** ****. *** instance, ** *** **** a *** ***** ****** set ** ***/* ******* at * ***** ****, the ****** *** *** a '****' ******* ***** since ** ** **** to ********. *******, ** the ****** *** ****** off *** * **** is ***** ** ***** of *** ******, ** *** need ** **** **** to '***' ******* ** maintain *** **** ***/* constant *** **** ** compression ** **** *********.

*** **** ** *** key ****** ** ***** streaming *****, *** ****** ** *** ** MBR - ************ ********* ********.

Smart ***** ******

***** ************ ******** *** ************ level ****** ********* ***** of *** ***** / frame / *****. ************, a ****** ************ ***** was **** *** ** entire *****. **** ***** codecs, *** ****** ************* between *** **********, ********* it * ****** ************ (thereby ********* **** *********) vs ******* **** * lower ************ *****. ** an *******,  * ****** or ******* ****** ******* a ******* *** **** be higher *******, ***** ****** cars *** ***** ** the ********** *** ***** quality. *** *** ** lowering ******* ********* ***** maintaining ******* *** ********* objects.

*******, ** ******** ********* readers **** ***** ****** in *** ***** ***** the ****** **** ** installed, ** **** ******** image ******* ******* *** be ****. *** *******, in *** ** *** tests, ****** ****** ** smart ***** ******** ****** blurring/smearing/artifacts ** *** *****, visible ** *** ******* and ********** *****. ******** ****** be ********* ******** ** avoid ***** ******.

******* ****** **** *** our ***** ***** ***** *** **** *********** ** these *** ***** **************.

What ****** *** ***?

**********, *** **** ********* question **: **** ******* setting is ********* ** *** camera's application?

*************, ** ** ********** to **** * ********* answer **:

  • *** ***** ***** ** a ********** ******** ****. Changing **** * ************ level ** ** ** 29 ** **** ** to ** ******** ** magical **********. ***** *** changes *** ****** ************* and *********.
  • *** ***** ***** ******* on *** ********** ** the *****. **** ******* scenes (**** ** ************) will ********* ******* **** a ****** ******* ****** than * ****** ***** (like * *********). *** smaller *** ******** ***** observed (**** * ****** across ** ************), *** more ****** ******* ****** can ******* ********** *******.

*******, ***** ***** *****, ** ***** *** key ***************:

  • ************ ~** ** *** "sweet ****":***** ** ***** ** ongoing *******, ** **** found ** ** ***** the **** ********* ******* bandwidth *** ***** *******. Many ************* ******* ** 28-30, ****** ***** ****** see *** ** ****** ************ *********** Comparison *** **** ******* ** *** to *********** ******.
  • *** ***** ****** (*** carefully):******* ** ***** ******* bitrate ********** ** **** scenes, ** ********* ***** codecs ** **** ******** possible, ** ***** *** be **** ** ******** image ******* ***** *********, while ******** ****** ***** than ******* ******. 

[[****: **** **** *** originally ******* ** **** but ************* ******* ** 2015, ****, *** **** to ******* ******* ***** options, ***** ***** *****, and ** ** **** recommendations]]

Comments (3)

*** **** **** **** from *********** ** **** precise ****** **** ***** and ******. **** ****** more ******* ********** *****. There *** **** **** degrees ***** *** ******* of ****** *** *********. 

 

*** **** ********* ******...

* ***** *********** ***-**** is ********* ******* * think ******* *** **** bit **** **** *** camera ** *** ** is **** *********. * say **** ******* **** something ******* *** **** need ** ****** *** incident **** **** ****** it **** ***** ** the **** ***. **** need **** ******* ******* to ****. *** **** not ***** ***** ** capacity ** **** ****.

Login to read this IPVM report.
Why do I need to log in?
IPVM conducts unique testing and research funded by member's payments enabling us to offer the most independent, accurate and in-depth information.

Related Reports

Open Access Controller Guide (Axis, HID, Isonas, Mercury) on Sep 19, 2019
In the access control market, there are many software platforms, but only a few companies that make non-proprietary door controllers. Recently,...
Installation Course - Last Chance - Register Now on Sep 12, 2019
Last Chance - Register Now - September 2019 Video Surveillance Install Course. Thursday, September 12th is your last chance to register for the...
Fingerprints for Access Control Guide on Sep 09, 2019
Users can lose badges, but they never misplace a finger, right? The most common biometric used in access are fingerprints, and it has become one...
Mobotix First CNPP CCTV Cybersecurity Certification Examined on Sep 05, 2019
Mobotix recently became the first video surveillance manufacturer to receive the CNPP cybsersecurity certification for its cameras, in which they...
Register Now - October 2019 IP Networking Course on Aug 28, 2019
Register now for the Fall 2019 IP Networking Course. This is the only networking course designed specifically for video surveillance...
Mobile Access Control Guide on Aug 28, 2019
One of the biggest trends in access for the last few years has been the marriage of mobile phones and access cards. But how does this...
UK Facewatch GDPR Compliance Questioned on Aug 27, 2019
Even as the GDPR strictly regulates biometrics, a UK company called Facewatch is selling anti-shoplifter facial recognition systems to hundreds of...
Dahua 4K Camera Shootout on Aug 20, 2019
Dahua's new Pro Series 4K N85CL5Z claims to "deliver superior images in all lighting and environmental conditions", but how does this compare to...
Biometrics Usage Statistics 2019 on Aug 13, 2019
Biometrics are commonly used in phones, but how frequently are they used for access? 150+ integrators told us how often they use biometrics,...
Proactive CCTV "Only Affordable Video Archiving Solution" Profile on Aug 12, 2019
Proactive CCTV is claiming to offer "the only affordable video archiving solution on the market", reducing the storage typically required for H.265...

Most Recent Industry Reports

ONVIF Suspends Huawei on Sep 20, 2019
Huawei has been 'suspended', and effectively expelled, from ONVIF so long as US sanctions remain on the mega Chinese manufacturer. Inside this...
Open Access Controller Guide (Axis, HID, Isonas, Mercury) on Sep 19, 2019
In the access control market, there are many software platforms, but only a few companies that make non-proprietary door controllers. Recently,...
Axis Perimeter Defender Improves, Yet Worse Than Dahua and Wyze on Sep 19, 2019
While Axis Perimeter Defender analytics improved from our 2018 testing, the market has improved much faster, with much less expensive offerings...
Directory of 68 Video Surveillance Startups on Sep 18, 2019
This directory provides a list of video surveillance startups to help you see and research what companies are new or not yet broadly known. 2019...
Uniview Prime Series 4K Camera Tested on Sep 18, 2019
Is the new Uniview 'Prime' better than the more expensive existing Uniview 'Pro'? In August, IPVM tested Uniview 4K 'Pro' but members advocated...
US Army Base To Buy Banned Honeywell Surveillance on Sep 17, 2019
The U.S. Army's Fort Gordon, home to their Cyber Center of Excellence, has issued a solicitation to purchase Honeywell products that are US...
Vivotek "Neural Network-Powered Detection Engine" Analytics Tested on Sep 17, 2019
Vivotek has released "a neural network-powered detection engine", named Smart Motion Detection, claiming that "swaying vegetation, vehicles passing...
Schmode is Back, Aims To Turn Boulder AI Into Giant on Sep 16, 2019
One of the most influential and controversial executives in the past decade is back. Bryan Schmode ascended and drove the hypergrowth of Avigilon...
Manufacturers Unhappy With Weak ASIS GSX 2019 And 2020 Shift on Sep 16, 2019
Manufacturers were generally unhappy with ASIS GSX, both for weak 2019 booth traffic and a scheduling shift for the 2020 show, according to a new...