Mar 19, 2024

What Is Video Encoding?

Leave a message

Before talking about the video, let's first talk about the images. An image is composed of many colored dots. This point is called a pixel, which is the basic unit of image display. Usually, the size of an image is 1920 x 1080, which is 1920 pixels in length and 1080 pixels in width. The product is 2073600, which means this image is two million pixels. 1920 x 1080, also known as the resolution of this image.


So, what is commonly referred to as PPI? PPI is the number of pixels per inch. That is to say, how many "pixels" can be placed on the screen of a mobile phone (or monitor) per inch. The higher the PPI, the clearer and more delicate the image will be.

In computer systems, colors are expressed using numbers. In computers, R, G, and B are also referred to as the "primary color components". Their values range from 0 to 255, with a total of 256 levels (256 is the 8th power of 2). So, any color can be represented by a combination of R, G, and B.

 

Through this method, a total of 256 x 256 x 256=16777216 colors can be expressed, also known as 16 million colors. RGB three colors, each with 8 bits, express colors in this way, also known as 24 bit colors (occupying 24 bits). This color range has exceeded all visible colors to the human eye, so it is also called true color. No matter how high it is, it is meaningless for the human eye and completely unrecognizable.

 

Having finished talking about the images, now let's start talking about the videos.

 

A large number of images connected together form a video. The most important factor in measuring a video is its frame rate. In a video, a frame refers to a still image. Frame rate refers to the number of frames included in a video per second. The higher the frame rate, the more realistic and smooth the video becomes. After having the video, there are two issues involved: storage and transmission. The key to video encoding lies in this: a video, if not encoded, has a very large volume.

Take a video with a resolution of 1920 x 1280 and a frame rate of 30 as an example. 1920 x 1280=2073600 pixels per pixel, which means 2073600 x 24=49766400 bits per image. 8 bits=1 byte. Therefore, 49766400 bits=6220800 bytes ≈ 6.22MB. This is the original size of a 1920 x 1280 image, multiplied by a frame rate of 30, which means that the video size per second is 186.6MB, which is approximately 11GB per minute. A 90 minute movie is approximately 1000GB.

 

What is encoding?

 

Encoding is the process of converting information from one form (format) to another using a specified method. Video encoding is the process of converting one video format into another. The ultimate goal of coding is to compress. Various video encoding methods are used to make videos smaller in size, which is beneficial for storage and transmission. Let's take a look at the entire process of recording and playing the video first

 

Firstly, there is video capture. Usually, cameras are used for video capture. After collecting video data, analog-to-digital conversion is required to convert the analog signal into a digital signal. Actually, nowadays many cameras directly output digital signals. After the signal output, preprocessing is also required to convert the RGB signal into a YUV signal.

 

Previously, RGB signal was introduced, but what is YUV signal?

 

Simply put, YUV is another digital representation of colors. The reason why video communication systems use YUV instead of RGB is mainly because RGB signals are not conducive to compression. In YUV, the concept of brightness is added.

 

In the past decade, video engineers have found that the eyes are more sensitive to brightness and darkness than to color, meaning that the human eye is less sensitive to chromaticity than to brightness. So, engineers believe that in video storage, it is not necessary to store all color signals. We can allocate more bandwidth to black white signals (referred to as "brightness") and slightly less bandwidth to color signals (referred to as "chromaticity"). So, there was YUV.

 

The "Y" in YUV represents brightness (Luma), while "U" and "V" represent chromaticity (Chroma).

The occasionally seen Y'CbCr, also known as YUV, is a compressed version of YUV. The difference lies in the fact that Y'CbCr is used in the digital image field, YUV is used in the analog signal field, and the commonly used YUV in MPEG, DVD, and cameras is actually Y'CbCr.

 

Send Inquiry