Key considerations when selecting a video compression algorithm: Part 2

A comparison between H.264, MJPEG and other common compression schemes for surveillance video

In the first article of this series, we covered the basics between temporal and frame-based compression and identified nine factors a decision maker should consider when in the market for a high quality network video surveillance system. The nine factors are:

  1. RESOLUTION [User Requirement] (Article 1)
  2. FRAME RATE [User Requirement] (Article 1)
  3. WEATHER [Video Environment]
  4. LIGHTING [Video Environment]
  5. SCENE MOTION [Video Environment]
  6. OBJECT SPEED [Video Environment]
  7. CAMERA MOTION [Video Environment]
  8. RECORDING [User Requirement] (to be discussed in article 3 of this series)
  9. LIVE VIEWING [User Requirement] (to be discussed in article 3 of this series)

The considerations fall into two categories: "User Requirement" which will vary depending on the customer's preferences, and "Video Environment," which are the variables in an application that will likely have an impact on your video.

In this article, we will review considerations 3 through 7, comprising all factors for the video environment and their impact on system variability. To frame the discussion, it is our position that a video system should always be optimized to achieve a desired image quality, and then adjusted for frame rate to maximize bandwidth and storage efficiencies. When dealing with MJPEG, we encourage a compression setting no lower than medium (MJPEG= 50). With H.264, we recommend nothing lower than the MAIN profile and that you allow the bit rate to vary (VBR) to ensure delivery of the best quality image. Remember, the customer is paying for a video recording system that should meet their expectations in all conditions, not just optimal ones. As system designers and architects, we must work diligently to guarantee that the choices made during the design and configuration of the system do not degrade the video's quality during those times when events of interest occur.

3. Weather [Video Environment]

Weather can have many characteristics, but the four elements that have the largest impact on video are rain, snow, changing light and wind. In this section we will consider the impact of rain and snow and we will address changing light and wind in subsequent sections. Video compression treats rain and snow like motion and will do its best to try to reproduce it accurately. With MJPEG, rain and snow have no impact on image quality and very little impact on bandwidth and storage as MJPEG handles each image separately. However, the steady-state bandwidth and storage consumption of MPJEG video will be higher than H.264 when there is no rain or snow. Rain and snow will have a significant impact on H.264 bandwidth and storage as it interprets rain and snow as a 100 percent scene change from one frame to the next.

This means a well-designed network, which properly accounts for the worst-case scenario will budget enough bandwidth for these events -- possibly budgeting the same amount of bandwidth as you would with an MJPEG system. Essentially, you will need to factor into your bandwidth and storage calculations the number of days out of the year you can expect rain or snow. The impact on image quality with H.264 can also be quite profound as the cameras are forced to predict not only the motion associated with the rain and snow, which is typically vertical, but also the motion of any subjects of interest which is often horizontal or diagonal. These extraordinary processing demands can sometimes be too much for a camera to handle and the resulting images will have substantial compression artifacts, often described as blurriness or blockiness.

4. Lighting [Video Environment]

This content continues onto the next page...