YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

MPEG-1 and MPEG-2 Digital Video Coding Standards

Author: Thomas SikoraPresenter: Chaojun Liang

Page 2: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Overview

• Introduction• Intra-picture Coding Techniques• Inter-picture Coding Techniques

Page 3: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

What is MPEG?

• Stands for Moving Picture Expert Group

• Nickname to a family of International standards used for coding audio-visual information in a digital compressed format.

• Includes MPEG-1, MPEG-2, and upcoming MPEG-4.

Page 4: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

MPEG-1

• Finalized in 1991• Optimized to work at 352*240, 30

f/s or 352*288, 25f/s• Bit-rate is optimized for application

of around 1.5 Mb/sec• Defined for progressive frames

only

Page 5: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

MPEG-2• Finalized in 1994• Digital television broadcasting• Target bit-rate raised to 4-9Mb/sec• Main Profile, Main Level

– 720*480 pixels, 30 frame/sec, 15Mb/sec

• Main Profile, High Level (HDTV)– 1920*1280 pixels, 30 frame/sec,

80Mb/sec

Page 6: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

MPEG Video Layers

Page 7: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Intra Frame Coding Techniques

Video Filter

DCT QuantizerRun-length Encoding

Bitstream Buffer

Bit-Rate Control

Page 8: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Video Filter

• Subjective Redundancy– Eyes more sensitive to changes in

Luminance, less to variations in Chrominance

• R G B -> Y Cb Cr• Sample Chrominance 2:1 in both

directions

Page 9: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

R G B Y Cb Cr Y Cb Cr

Color Space Transform Sample

Video Filter

Page 10: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Statistical Redundancy

Page 11: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Discrete Cosine Transform

• Closely related to Discrete Fourier Transform

• Performed on 8*8 blockForward DCT

Inverse DCT

Page 12: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

DCT Basis Patterns

Page 13: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

DCT Basis Patterns

Increasing Vertical Frequency (Down)

Increase Horizontal Frequency (Right)

Page 14: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Variance Distribution of DCT Coefficients

Page 15: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

DCT Coefficient Quantization

• Higher frequency -> Larger step size -> more coarsely quantized

• Force as many of the DCT-Coefficients as possible to zero or near zero

)),(

),((),(

vuQ

vuFndIntegerRouvuFQ

Page 16: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Example Coefficients

Page 17: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Run-Length Encoding

Run-Amplitude Pairs Bit Stream

Variable Length Code Table

Page 18: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Inter Frame Coding Techniques• Exploit temporal redundancy• Use Motion Estimation to eliminate

temporal redundancy

Page 19: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Picture Types

• Intra Pictures (I-Pictures)• Predicted Pictures (P-Pictures)• Bi-directional Pictures (B-Pictures)

Page 20: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Intra Pictures

• Coded with only info in the picture itself

• Random access points into the compressed data

• Moderate compress: about 2 bits per coded pixel

Page 21: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Predicted Pictures

• Coded with respect to the nearest previous I-Picture or P-Picture

Page 22: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Bi-directional Pictures

• Use both a past and future picture as a reference.

Page 23: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Video Stream Composition

• Encoder chose frequency and location of I-Pictures

• Typical display order

Page 24: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Video Stream vs Display order

Page 25: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Motion Estimation

Tree moved down to the right

People moved farther to the right than tree

Frame 1 Frame 2

Page 26: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Motion Estimation

• To adequately represent the change, or the difference, between 2 video frames

• Frame-wise direct minus not effective

• Macroblock-wise minus • 2-D spatial search for each

luminance macroblock

Page 27: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Macroblock Matching

Frame 1 Frame 2

Page 28: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Picture 1

Predicted Picture

Picture 2

Residual Error Picture

Page 29: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Coding of Residual Errors

• Similar to Intra frame coding• Different quantization matrix• Motion vectors are also coded

Page 30: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.
Page 31: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.
Page 32: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.
Page 33: MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.

Related Documents