Professional Documents
Culture Documents
Advanced Multimedia
Video Coding
Dzung Tien Nguyen, MSc. Tien Pham Van, Dr. School of Electronics and Telecommunications, Hanoi University of Science and Technology
Advanced Multimedia course 1
Defines a set of valued sampled points Occurs at intersection points on rectangular grid Periodically
Temporal:
Frames & Fields Frames: Progressive sampling Fields: Interlaced sampling Slices: a distinct region of frame, encoded seperately
Sampling Formats
School of Elec. And Telecom. Hanoi University of Science and Technology
YCbCr:
4:4:4 4:2:2 4:2:0
4:4:4
4:2:2
4:2:0
Example: Image resolution: 720x576. Calculate the total bits to represent a frame in each sampling format (Y:8 bits)
Advanced Multimedia course 5
Quality Measurement
School of Elec. And Telecom. Hanoi University of Science and Technology
Desired Features
School of Elec. And Telecom. Hanoi University of Science and Technology
Better compression
Improved quality Interactivity and Manipulation of Content Error Resilience
Time Table
School of Elec. And Telecom. Hanoi University of Science and Technology
MPEG2/H.262
MPEG1 JPEG
Year 1986 1988 1990 1992 1994 1996 1998 2000 2002 2004 2010
11
MPEG-1 Video-CD
12
Performance of codecs
School of Elec. And Telecom. Hanoi University of Science and Technology
Where used?
School of Elec. And Telecom. Hanoi University of Science and Technology
MPEG-1
Video-CD Usually .mpg or .mpeg files are MPEG-1 DAB Digital Radio is MP2 (MPEG-1 Layer 2) MP3 files (MPEG-1 Layer 3)
MPEG-2:
.vob, .m2v, rarely .mpg files Anything to do with DVD
Camcorders, DVD players, DVD recorders
Digital TV (DVB)
MPEG-4:
High Quality AVI files Video Phones DivX Some advanced audio players support MPEG-4 Advanced Audio Coding (AAC)
Where used?
School of Elec. And Telecom. Hanoi University of Science and Technology
H.263/+/++
NetMeeting and similar video-chat Network streaming application, video phone H.264
Video Conferencing: over different networks Multimedia Streaming: live and on-demand: Youtube, iTunes, Adobe Flash Player (web), etc. Multimedia Messaging Services (MMS) Blu-ray, Digital Video Broadcasting, iPod Video, HD DVD
VC-1, VC-2
Video on Internet, HDTV broadcast, UHDTV
Tradeoff?
16
Interframe Coding
Remove temporal redundancy
17
Compression Techniques
School of Elec. And Telecom. Hanoi University of Science and Technology
Theorem
Spatial redundancy
DCT, Subband, wavelet
Temporal redundancy
MC/ME
Statistical redundancy
RLC, VLC
Perceptual redundancy
SQ, VQ, fractal
18
19
CO
Prediction model: to estimate the predictor of current frame, then calculate the residual. Output: Residual and Prediction parameters Spatial model: to reduce spatial redundancy from residual frame and quantize samples. Output: coefficients Entropy encoder: to encode coefficients together with prediction parameters and header information. Output: Coded video
10
Temporal Model
School of Elec. And Telecom. Hanoi University of Science and Technology
Motion prediction Changes due to previous frame Block-based motion estimation and compensation
Previous frame as predictor
Frame 1
+
Frame 2
Advanced Multimedia course
=
Residual frame
21
Temporal Model
School of Elec. And Telecom. Hanoi University of Science and Technology
Motion estimation
Advanced Multimedia course 22
11
Image model
School of Elec. And Telecom. Hanoi University of Science and Technology
Spatial prediction
Scan order
Quantization
Advanced Multimedia course
Entropy Coder
School of Elec. And Telecom. Hanoi University of Science and Technology
To put residual frame, motion vector and header to a compressed bitstream To reduce the amount of bits representing data
24
12
Transform Coding
School of Elec. And Telecom. Hanoi University of Science and Technology
25
DCT
School of Elec. And Telecom. Hanoi University of Science and Technology
13
DCT Transformation
School of Elec. And Telecom. Hanoi University of Science and Technology
28
14
29
LAB
School of Elec. And Telecom. Hanoi University of Science and Technology
Apply DCT to an array of double Apply DCT to an gray-scale image, observe and comment
30
15