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

*** **** **** **** **** *********** to **** ******* ****** **** ***** and ******. **** ****** **** ******* prediction *****. ***** *** **** **** degrees ***** *** ******* ** ****** can *********. 

 

(1)
U
Undisclosed #1
Oct 17, 2018

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

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

* ***** *********** ***-**** ** ********* however * ***** ******* *** **** bit **** **** *** ****** ** the ** ** **** *********. * say **** ******* **** ********* ******* and **** **** ** ****** *** incident **** **** ****** ** **** night ** *** **** ***. **** need **** ******* ******* ** ****. You **** *** ***** ***** ** capacity ** **** ****.

AS
Amitkumar Sirjusingh
Dec 31, 2020

************ ***** ***** ** ********* **** in ***** ******* *** *******, ***** codecs **** *** ****** ** ** a ******* *** ***** ******** ** the **** ***** *** ********* *********** in *** ********* ** **. *** 'sweet **** ** **' ****** ** adhered.