





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concept of video compression, focusing on intraframe and interframe techniques. Intraframe compression occurs within individual frames, designed to minimize spatial redundancy. Interframe compression, on the other hand, occurs between frames, designed to minimize temporal redundancy. The document also discusses predictive coding and motion compensation for video compression.
Typology: Lecture notes
1 / 45
This page cannot be seen from the preview
Don't miss anything!






































2
compression algorithm to each frame , for instance
compressing each image frame as a JPEG image is called M-
JPEG(Motion jpeg)
Compressing in just each frame does not yield a
high enough compression ratio that is required for
general video needs.
It Utilizes two basic compression techniques:
Intraframe compression
(Spatial Redundancy)
Interframe compression
pictures (Temporal redundancy)
5
frames of video display images of the same scene.
remain fixed or to change only slightly between
successive frames.
picture are often replicated (with minor changes)
within a single frame of video.
Temporal redundancy is exploited so that not every
frame of the video needs to be coded independently as a
new image.
It makes more sense to code only the changed information
from frame to frame rather than coding the whole frame.
An obvious solution to video compression would be
predictive coding based on previous frames.
Compression proceeds by subtracting images: subtract in
time order and code the residual error.
It can be done even better by searching for just the right
parts of the image to subtract from the previous frame.
It can be done even better by
searching for just the right parts of the
image to subtract from the previous
frame.
frame is better exploited by observing that
groups of contiguous pixels, rather than
individual pixels, move together with the
same motion vector.
predict frame n+1 in the form of regions
or blocks rather than individual pixels.
10
Fundamentals of Multimedia, Chapter
10
in frame n+1. Consequently, C
n+
(x, y) in frame n+1 is not the same
as Cn(x, y) but is offset by the motion vector (dx,dy).
n+
(x, y) - Cn(x+dx, y+dy)
1
1
Chroma sampling:
Chroma subsampling is a method that stores colour
information at lower resolution than intensity information.
Chroma subsampling is meaningful because human visual
system is less sensitive to variations in colour than
brightness.
Chroma subsampling can reduce the bandwidth for colour
detail in almost no perceivable visual difference.
To begin with, numbers are given stating how many pixel
values, per four original pixels, are actually sent. Thus the
chroma subsampling scheme "4:4:4" indicates that no
chroma subsampling is used.
Each pixel's Y, Cb, and Cr values are transmitted, four for
each of Y, C b, and Cr.
For the following array of colour values, give chroma
subsampling results with4:2:2, 4:1:1 and 4:2:0 schemes.
Chroma subsampling result for 4:2:2 scheme:
Chroma subsampling result for 4:1:1 scheme:
Chroma subsampling result for 4:2:0 scheme:
The difference between two macroblocks can then be
measured
by their Mean Absolute Difference (MAD) :
N – size of the macro block,
k and l – indices for pixels in the macro block,
i and j – horizontal and vertical displacements,
C ( x + k, y + l ) – pixels in macro block in Target frame,
R ( x + i + k, y + j + l ) – pixels in macro block in Reference
frame.
- The goal of the search is to find a vector ( i, j ) as the
motion vector MV = (u , v), such that MAD ( i, j ) is
minimum:
target frame
a larger number of motion vectors to predict the target frame.
This requires more bits to compress motion vectors,
but smaller macroblocks tend to decrease the prediction error.
fewer motion vectors to compress,
but also tend to increase the prediction error. This is because
larger areas could possibly cover more than one moving region
within a large macro block.
18
Assume 2 * 2 macro block is used. For the following macro block
the corresponding intensities in the reference frame are given as
follows:
Calculate the motion vector, with complete search within 1 pixel
Answer:
Basic Ideas is to search for Macroblock (MB) Within a ± 2 pixel
window and workout Sum of Absolute Difference (SAD) (or
Mean Absolute Error (MAE) for each window – but this is
computationally more expensive) is a minimum.