CM3106 Chapter 12: MPEG Video: Prof David Marshall and DR Kirill Sidorov
CM3106 Chapter 12: MPEG Video: Prof David Marshall and DR Kirill Sidorov
Block Matching:
MPEG-1/H.261 relies on block matching techniques.
For a certain area (block) of pixels in a picture:
Find a good estimate of this area in a previous (or in a
future!) frame, within a specified search area.
Motion compensation:
Uses the motion vectors to compensate the picture.
Parts of a previous (or future) picture can be reused in a
subsequent picture.
Individual parts spatially compressed — JPEG type
compression.
X N−1
N−1 X
SAD(i, j) = |C(x + k, y + l) − R(x + k + i, y + l + j)|
k=0 l=0
SSD(i, j) =
X N−1
N−1 X
(C(x + k, y + l) − R(x + k + i, y + l + j))2
k=0 l=0
Advantages:
Guaranteed to find optimal motion vector within search
range.
Disadvantages:
Can only search among finitely many candidates. What if
the motion is in fractional number of pixels?
High computation complexity: O((2R + 1)2 S).
HOW TO IMPROVE?
Accuracy: consider fractional translations.
This requires interpolation (e.g . bilinear in H.263).
Speed: try to avoid checking unlikely candidates.
X
N−1
A= |C(i, j) − MBmean |
i=0,j=0
Also NOTE:
No defined limit to the number of consecutive B frames
that may be used in a group of pictures.
Optimal number is application dependent.
Most broadcast quality applications, however, have
tended to use 2 consecutive B frames (I,B,B,P,B,B,P,. . . )
as the ideal trade-off between compression efficiency and
video quality.
MPEG suggests some standard groupings.
Disadvantage:
Frame reconstruction memory buffers within the encoder
and decoder must be doubled in size to accommodate the
2 anchor frames.
More delays in real-time applications.
CM3106 Chapter 12: MPEG Video MPEG Compression 58
Frame Sizes
-------------------------------------------------------------
Level size Pixels/sec bit-rate Application
(Mbits)
-------------------------------------------------------------
Low 352 x 240 3 M 4 VHS tape equiv.
Main 720 x 480 10 M 15 studio TV
High 1440 1440 x 1152 47 M 60 consumer HDTV
High 1920 x 1080 63 M 80 film production
-------------------------------------------------------------
MPEGVideo (directory)
MPEGVideo.zip (all files zipped)
CM3106 Chapter 12: MPEG Video MPEG Compression 62