Video Codec/Container

October 15, 2020 0 By king.97


Without any shape of compression in video streaming, the network can’t transmit the raw statistics. Also, due to large report sizes, storing data on limited ability of disk drives is not possible. That’s why we want to use compression, particularly in video surveillance systems. Video compression eliminates redundant video statistics, in order that the video record can be transmitted or saved effectively. Video content material is encoded and decoded by means of using a video codec approach, interior a box format, so the video first-class is not degraded on the time of shifting over the community. We have a look at the concept and a few one of a kind kinds of video codecs and video boxes along with their differences. local video listings

What is video codec?

A codec is a software program used to compress or decompress a virtual media record for transmission over a statistics network. In reality, a pair of encoding and interpreting algorithms that paintings together is known as a video codec, in order that encoder makes use of these algorithms to correctly compress the scale of the video report, and then decoder decompress it when needed. Some formats include both of those components and others include one of them. Moreover, formats are divided into two categories: lossless and lossy codec. In lossless codec all the facts is stored within the unique move, thus the video exceptional is preserved. On the other hand, in lossy codec due to using lower statistics bandwidth and missing some of the original statistics to gain the first-rate compression, the great might be decreased.

There are one of a kind requirements of codec which use exceptional technology to encode and decode the video document related to meant application. Since video content material that is compressed the usage of one trendy can not be decompressed with other standard, distinct implementation of video codecs are usually not compatible with every different. Because, one algorithm can’t efficaciously decode the output from any other set of rules.

However, enforcing many special algorithms inside the equal software program or hardware is possible, so multiple codecs can be compressed. Utilizing different techniques of compacting information ends in variation bitrate, exceptional and latency. The time it takes to compress, send, decompress and show a record, called latency.

How video compression can help video surveillance?

Video compression methods use a codec to lessen or cast off needless documents or frames from video documents, without any big degradation in very last video. This makes the video record smaller, so more video can be saved on NVR hard drives or documents may be saved for longer intervals of time.

Due to huge capacity of high resolution video documents, video compression is a treasured device whilst the surveillance system has garage and bandwidth hindrance. It is really worth citing that to achieve favored picture first-rate in spite of compression, the satisfactory balance of photo first-class and compression method need to be determined.

In IP video, encoding could be executed through the IP camera encoder and the interpreting is typically accomplished at the computer or tool that’s showing the stay video.

Compressing video results in document moving over community with out big put off, resulting in excessive velocity statistics switch, which is specifically vital in mobile viewing with a clever smartphone in video surveillance.

Different forms of video codec:

Similar to a virtual photograph digicam, a network digicam captures person photographs and compresses them into a format. The camera captures and compresses person photos according to second (fps), after which lead them to a continuous waft of pics over a network to a viewing station. At a body fee of about 16 fps and above, the viewer will understand complete motion video. Since every character photograph is a complete compressed photo, they will have the identical nice, determined by the compression level described for the network digital camera. So, Video compression is achieved routinely by surveillance camera and choosing the compression stage is an crucial issue to reap the quality video satisfactory. Here, we take a look at a number of video compression techniques.


Motion JPEG (MJPEG) is a video codec wherein every video discipline (body) is separately compressed right into a JPEG image. As JPEG is a compression approach to compress the photographs, MJPEG is an algorithm to compress multiple frames of films and ship them as man or woman JPEG pictures. The ensuing fine of videos is impartial from the motion in the photograph, so first-class isn’t reduced whilst the video contains masses of motion.

Due to presenting minimum latency in photo processing and preserving image high-quality during transmission over low bandwidth availability, MJPEG is still a usable compression layout regardless of being an old lossy codec.


MPEG, status for Moving Picture Experts Group, is considered one of the largest households in video codec and the most not unusual video format. Its algorithms compress data into small bits that may be without problems transmitted after which decompressed. Since some of data can be eliminated in MPEG, this method is a lossy compression, but this disorder is normally invisible to the human eye. The maximum common styles of MPEG include MPEG1 (used within the production of VCD and the download of some movies), MPEG2 (used within the manufacturing of the DVD and also in a number of the HDTV and excessive call for video enhancing), and MPEG4. MPEG4 transmits video and pix over a slim bandwidth, meaning that it reduces the community bandwidth utilized by the surveillance system. Also, MPEG4 reduces the amount of needed garage and will increase the quantity of time that video can be saved, which make it useful for video surveillance. On the other hand, MPEG4 can become aware of and cope with separate audio and video gadgets inside the body, which lets in character factors to be compressed greater efficiently. Hence, it may blend video with text, portraits and a couple of-D and 3-D animation layers.

It is likewise crucial to point out that, due to using video sequencing compression which transports only the changes within the series, MPEG makes use of much less community bandwidth and storage than MJPEG. However, the great often reduced wherein there masses of motion available in video, it’s far a downside of MPEG.


DivX because the famous MPEG4 primarily based codec advanced through DivX, Inc, permits user to play and create excessive best videos in a fast manner and the first-class satisfactory. DivX can compress a DVD film to healthy on a CD, and DivX HD can reduce an HD movie to in shape on a DVD.


It is an open source version of DivX, so movies which encoded by means of XviD can be decoded through all MPEG4 like minded decoder. The XviD codec can compress a full length DVD nice movie to healthy on a unmarried CD, at the same time as authentic photo first-rate remains kept. It is used for compressing video statistics with a view to facilitate video records shifting and garage development on difficult disks.


H.264 is the newest and most green compression method particularly in video surveillance. This era evaluates small organizations of frames together as a series to take away duplicate content material in each frame without converting. Low bandwidth utilization, decreased storage requirements, higher decision and better high-quality snap shots encourage the safety surveillance packages to apply H.264 codec.

Why H.264 video compression is suggested in video surveillance?

To detect the prevalence of one compression layout to any other, a few factors must be considered such as bandwidth intake, storage requirement, latency and photograph first-class.

The popular video compression standards are MJPEG, MPEG4, and H.264, while a few capabilities of H.264 make it extra famous in video security systems.

The H.264 video compression wellknown presents approximately twice the compression of the previous MPEG4 preferred for the equal video pleasant.

The bitrate is the whole quantity of bits which transferred between devices. The bitrate of an IP camera immediately affects the most amount of statistics that could transfer over community at any given time (bandwidth). If surveillance machine uses greater bandwidth than to be had, video feeds will lost. So, via lowering the bitrate greater information may be transmitted and the transmission price might be accelerated. H.264 gives low bitrate for reduction in bandwidth utilization, 80% decrease than MJPEG video and 30-50% lower than MPEG4. The lower bitrate is preferred for security packages which need fast frame rate such as on line casino, traffic tracking, object counting (consisting of motors, human beings), and many others.

On the opposite hand, in video surveillance machine the most quantity of garage capacity shows what number of recorded days can be retained, so the amount of required storage for recording needs to be taken into consideration. Low bitrate reduces the file sizes being saved, in order that using H.264 will offer 30-eighty% overall saving on garage space as compared to conventional compression formats. Therefore, the protection length for recorded archive might be expanded.

Low latency is a requirement for video surveillance, due to the fact photographs must seem in real time in surveillance monitoring. H.264 presents low latency, so this compression approach is required in video surveillance. Also, image nice is an crucial thing for any video surveillance machine in conjunction with savings in bandwidth and storage area, so the green compression technique must provide high video resolution. High definition video encoding by H.264 enables the IP camera to capture details and affords high nice photos which makes it an ideal video codec for mission vital video surveillance.

H.264 affords strategies to create higher video encoders, ensuing in higher excellent video streams, higher body rate and better resolution at decrease bit fee compared with other video formats.

Technically, H.264 introduces a new and advanced intra prediction scheme that could be a key part of its performance in video surveillance. The new intra prediction is used to encode I-frames (the primary image in a video series is continually an I-body) which substantially reduces the bit length of an I-body and maintains high pleasant via sequential prediction of smaller blocks of pixels inside each macro block in a body.

Reducing information while there is a lot of movement in a video is other vital element in video compression methods. This desires strategies inclusive of block based totally movement compensation, which divides a body into a sequence or macro block. This method has been progressed in H.264 encoder, confirming its efficiency in crowded surveillance scenes in which the excessive fine is demanded. Also a certain filter utilized in H.264, smoothes block side using an adaptive strength to reap an nearly extremely good decompressed video.