Video Basics and Compression Part 3


Free Download Mp4Gain
picture

Video Basics and Compression Part 3

Video Compression

Drawing method

video compression

The drawing method is a method of scanning video signals.
There are “progressives” and “interlaced”.

Progressive performs one scan drawing at a time. Interlacing, on the other hand, is a gradual and clear drawing method.

Main video compression methods and functions
From here, I will explain the following three main video compression methods.

MPEG
H.264
Motion JPEG (MJPEG)
MPEG
MPEG is read as “Mpeg”. It is one of the standards for compressing video and audio.

MPEG Features
High degree of freedom in encoder control.
Not suitable for taking a frame clearly.
Originally, it was an abbreviation taken by the acronym for “Moving Picture Experts Group”, an international standardization organization for video encoding, but it has come to be used as the name of the encoding method (compression method) standardized by that organization. . .

MPEG processes the differences frame by frame block by block.

The “block” here refers to a group of adjacent pixels.

In video compression, groups of adjacent pixels in a square range are generally treated as a group, and this is called a macroblock. This block is compared to the block at the same position in the next frame, and only the difference is sent as data.

Quoted from Wikipedia “Data compression” (last consultation: 05/21/2020)

A frame is a “one-by-one still image”.

If multiple still images (frames) continue, “shifting portions” and “unchanging portions” will appear.
The part that does not change is the “duplicate information”, so it can be compressed.

Thus, in MPEG, the part that changes and the part that does not change for each frame are processed in block units.

H.264
H.264 is read as “H.dot Nirokuyon”. This is also the standard method for video compression.

H.264 Features
High compression rate. (More than twice that of MPEG-2)
The bit rate is low.
It is sometimes called “MPEG-4 AVC” because it is standardized as “MPEG-4 Part 10 Advanced Video Coding” in the MPEG-4 standard. (MPEG-4 AVC is read as “Mpeg for AVC”. AVC is an abbreviation for “Advanced Video Coding”).

Motion JPEG (MJPEG)
Motion JPEG is read as “Motion Jepeg”. Also written as “MJPEG”.
As the name suggests, the still images (frames) that make up a movie are “JPEG images.” (To be exact, the frame is compressed in JPEG format.)

These JPEG images are made continuous like a flip book.
So to speak, “a set of continuous JPEG images” is the video data.

Motion JPEG (MJPEG) features
It is beautiful even if you look at it in a painting.
The video capacity is great.
The compression ratio is not as high as MPEG.
However, due to the characteristics of MPEG processing in “block units”, there is a drawback that “block noise” occurs when the bit rate is low.
Also, in cases where there is a lot of movement (the change is large for each frame), the image tends to be rough, but in the case of Motion JPEG, it can be handled even in cases where there is a lot of movement. .

In addition, Motion JPEG has a powerful advantage that MPEG and H.264 do not have, ie “you can extract a frame clearly”.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Video Basics and Compression Part 2

Video Basics and Compression Part 2

Video Compression

The amount of data is huge because video is made up of a series of “still images.”

VIDEO COMPRESSION

Therefore, as it is, the amount of data is large and unwieldy (cannot be handled), so “compression” is required.

Compressing video is called “encoding.”
Encoding is “scrambling the data”, which refers to the conversion (compression in this case) of the data according to certain rules (compression algorithms).

Restoring the converted data to its original state is called “decoding.”

Please note that it does not necessarily include audio
It’s easy to think of video as “audio is a set”, but that’s not the case.

Certainly it generally comes with audio that is in sync with the video, but since “video” is just a “continuous still image” it can be called “video” even if it does not come with audio data.

Machine Vision Page

Video Data Terms
From here, I will explain the terms related to “compression” of video data.

frames per second
Bit rate
Compression rate
Drawing method (progressive, interlaced)
These words are “video specifications” and are closely related to compression.

frames per second
The frame rate represents the number of still images per unit of time.
In the case of video, it generally refers to “how many still images are composed per second”. The unit is fps (frames per second).

Explanatory frame rate drawing
For example, in the case of “5 still images per second”, 5 fps.
In the case of “10 still images per second”, it is 10 fps.

The frame rate represents the “smoothness of movement”.
For example, if the frame rate is small, it will be a “messy video”. On the other hand, the higher the frame rate, the smoother the motion of the video, but the greater the amount of data.

Bit rate
Bit rate is the amount of data per unit of time.
The frame rate was “the number of still images per second”, but in the case of bit rate, it means “the amount of data per second”.

If the frame rate is high, the amount of data will be large, so the bit rate will also be high.
Also, if the resolution of the “still image” is high, the amount of data will be large. (Comparing HD and Full HD, Full HD has a higher amount of data.)

Compression rate
It is a percentage that shows how much the amount of information in the compressed data has decreased compared to the original data.