Video Quality / Compression Tutorial

Last Updated Dec 15, 2022 18:25 PM

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):

IPVM Image

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, 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.

IPVM Image

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:

  • ******** ***********/***** *** ******* ***** *** you **** ** *********, *** ****** quality.
  • ******** *******/****** *********** *** *** *** gain ****** *******, *** *** **** bandwidth *** ****** ******* ****.

Demonstrated ** ********

*** ***** ***** ***** *** ****** of ******** ******* ******. ** ***** to **** ****, ** **** ******** from *** ****** (****** / ****** and ******* / *******) *** ******** bitrate. *** ************ ****** *** ** seen ********** ** **** ****** ** bitrate **** **. *********, ***** ******* increases, **** **** ********** *** ******** on *******.

IPVM Image

Manufacturer **********

*** ************* *** ******* ******* ******. Even ** *** ***** ***** ***** settings, *** ************ **** **** * choice *** ***. *******, **** *** vast ******** ** ************ *******, ************* options *** ********* ** *** ******** users ****** ****.

*****, ** **** ** * *** manufacturers ** ****** *********** ***** **********. However, ******* ****** *** ***** ****** ************ *********** ************** *** **** ******* ** **+ manufacturers *********** ****** *** *** ** default ***** ******* ** "*******" ***********. An ******* **** ****:

IPVM Image

Axis ******** *** **********

**** **** *** ********* *** **********. Most ******* ******* *** *** ********** ***** ******* *** **** *********** *** **** not ******* ******* ******* *** *.***/*.*** video. **** *** *** *** *** UIs ***** ** ******* ** "***********", with ****** ******* ***** **** **********/***** bandwidth. ****** ** ****, ** ************* users *** ****** ******** *** ***** thinking ** ********* ***** *******.

*** *** *** ********* **** * slider/manual *****:

IPVM Image

***** *** *** ********* ****** ****** free *****:

IPVM Image

********** ** ***** ** ** ****, Axis *********** ** ******* ** ~** on *** ************ *****.

*****

*****'* ***** ***** ***** ************ ** P-frames, **** *-****** ******* ** **** by * ******** ****** ("*/*-***** ***** QP" *****). ** ** *-****** *** set ** ** *** *-****** *** to -*, *-****** **** *** * minimum ** ** ************. **** ***** it ******** ** ******* ************ ** a ******** *****, ********* **** ***** and ***** ** * ***** ***** to ******.

IPVM Image

*********

*********'* *********** ******** *** ***** *** video/audio ***, ** * ***** ** "lowest" (**** ***********) ** "*******" (***** compression), ********** ** "******." ***** ******** are ****** ** ******** ************ ******, ranging **** ~**-**. ***** ******** *** corresponding ************ ****** *** *** **** using **** *.*** *** *.***.

IPVM Image

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

**** ************ *********** *** ******** *** rate ********* (***), ***** ****** ********* in ***** ** ******** * ***-*** quality *****, ********* **** * ******* bit **** *** (****** ***). *** levels *** ***** ****** *** ************ level *** ****** ** *********, *.*., an **** ****** **** ****** ************ level **, **** ******* ********** *** decreasing ** *********.

*******, ** ******* *** *** ** constant *** ****, ******* ***** ** NOT ************ ******* *** *** ****, by ********** ** '********', **** ******* level ************* ******** ** **** ********* the ****. *** ********, ** *** have * *** ***** ****** *** at ***/* ******* ** * ***** wall, *** ****** *** *** * 'high' ******* ***** ***** ** ** easy ** ********. *******, ** *** lights *** ****** *** *** * hand ** ***** ** ***** ** the ******, ** *** **** ** drop **** ** '***' ******* ** maintain *** **** ***/* ******** *** rate ** *********** ** **** *********.

*** **** ** *** *** ****** of ***** ********* *****, *** ****** ** *** ** *** - Surveillance *****************.

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

***** ************ ******** *** ************ ***** ****** different ***** ** *** ***** / frame / *****. ************, * ****** quantization ***** *** **** *** ** entire *****. **** ***** ******, *** camera ************* ******* *** **********, ********* it * ****** ************ (******* ********* less *********) ** ******* **** * lower ************ *****.

** ** *******, * ****** ******* down * ******* **** ** ****** quality, ***** *** ********** ** ***** quality. *** *** ** ******** ******* bandwidth ***** *********** ******* *** ********* objects.

IPVM Image

*******, ** ******** ********* ******* **** smart ****** ** *** ***** ***** the ****** **** ** *********, ** some ******** ***** ******* ******* *** be ****. *** *******, ** *** of *** *****, ****** ****** ** smart ***** ******** ****** ********/********/********* ** the *****, ******* ** *** ******* and ********** *****. ******** ****** ** carefully ******** ** ***** ***** ******.

******* ****** **** *** ******** ***** ******** **** *********** ** ***** *** other **************.

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

**********, *** **** ********* ******** **: what ******* ******* ** ********* ** the ******'* ***********?

*************, ** ** ********** ** **** a ********* ****** **:

  • *** ***** ***** ** * ********** judgment ****. ******** **** * ************ level ** ** ** ** ** even ** ** ** ******** ** magical **********. ***** *** ******* *** nearly ************* *** *********.
  • *** ***** ***** ******* ** *** complexity ** *** *****. **** ******* scenes (**** ** ************) **** ********* benefit **** * ****** ******* ****** than * ****** ***** (**** * stairwell). *** ******* *** ******** ***** observed (**** * ****** ****** ** intersection), *** **** ****** ******* ****** can ******* ********** *******.

*******, ***** ***** *****, ** ***** *** *** ***************:

  • ************ ~** ** *** "***** ****":***** ** ***** ** ******* *******, we **** ***** ** ** ***** the **** ********* ******* ********* *** image *******. **** ************* ******* ** 28-30, ****** ***** ****** *** ***** ****** ************ *********** ************* **** ******* ** *** ** standardize ******.
  • *** ***** ****** (*** *********):******* ** ***** ******* ******* ********** in **** ******, ** ********* ***** codecs ** **** ******** ********, ** users *** ** **** ** ******** image ******* ***** *********, ***** ******** remain ***** **** ******* ******.

[[****: **** **** *** ********** ******* in **** *** ************* ******* ** 2015-20201to ******* ******* ***** *******, ***** codec *****, *** ** ** **** recommendations]]

Comments (4)
U
Undisclosed #1
Oct 17, 2018

You also have gone from macroblocks to more precise coding tree units and blocks. This allows more precise prediction units. There are also more degrees which the vectors of blocks can translate. 

 

(1)
U
Undisclosed #1
Oct 17, 2018

but that zipstream though...

AS
Alfredo Santiago
Feb 05, 2019
ALFREDO'S TELEPHONE SERVICE

I think compression bit-rate is important however I think Quality and high bit rate from the camera to the HD is more important. I say this because when something happens and they need to review the incident they will review it that night or the next day. They need high quality picture to view. You need not worry about HD capacity at that time.

AS
Amitkumar Sirjusingh
Dec 31, 2020

Quantization level plays an important role in image quality and clarity, smart codecs does not appear to be a feature one would activate as the norm given its haphazard application in its operation to me. The 'sweet spot of 28' should be adhered.