Video formats: H264 Vs Mjpeg

Video formats: H264 Vs Mjpeg

CCam2 allows you to choose between H264 compressed Mp4 video or Mjpeg. If you have not already experienced both then you might be wondering what is better. Let us look at various aspect of these two formats.

Technically speaking:

H264 is a very popular compression format for HD videos. Mp4 is the most supported container format that is compatible with most of the popular browsers. So H264 contained in Mp4 container can be viewed in almost any browser and gives you good quality audio and video.  To create a H264 video you need to encode the camera inputs for some duration. In case you use it for your surveillance camera then you need reasonably good bandwidth. If bandwidth is bad and you lose a part of such encoded video you lose all of the videos for that duration. There will also be a slight lag in surveillance feed for the duration that the camera uses for encoding and some more if there is buffering to show you smooth camera view.

A mjpeg video, on the other hand, is a sequence of packed images. A drop in the frame does not affect the subsequent images. The video feels as if it has small jerks in it. Overall the image quality is better. This kind of stream works with low bandwidth. You cannot add audio to Mjpeg. The lag is almost negligible in surveillance cameras as it need not wait to encode subsequent images.

Viewing quality

H264 gives you a smooth and crisp video. On the other hand, Mjpeg gives you crisp and jerking video. One major issue with H264 is that when there is movement in the camera view the size of the H264 chunk increases, sometimes if bandwidth is not good you may miss out period that was of interest. This issue is not there with Mjpeg videos.

Mjpeg works in most of the major browsers across various devices. H264 videos though not as compatible as Mjpeg also work with major browsers. Many mobile devices like iPhone and Android cannot play video in the browser window but take up full screen to play them.  So on compatibility with devices, Mjpeg is one step ahead.

CCam2 provides storage support for both the formats. It is easier to scroll or play the Mjpeg motion alerts, while to drill down H264 history you need to play the chunk.

CCam2 specializes in delivering the surveillance data that can be accessed from major browsers on any device via the cloud. We also provide video AI that can be switched on from your cloud account and make the camera interpret events and alert you as required.

For a comparative view of Mjpeg and H264, you can access the application website here https://app.ibeyonde.com. You can log in using username=demo and password=demo123.