Unit 2 Fundamental Concepts in Video Types of Video Signals
Unit 2 Fundamental Concepts in Video Types of Video Signals
Unit 2 Fundamental Concepts in Video Types of Video Signals
Analog Video:
An analog signal f(t) samples a time-varying image signal, Progressive scanning traces through a
complete picture (a frame) row-wise for each time interval. In TV and in some monitors and multimedia
standards as well, another system, called Interlaced scanning is used. The odd-numbered lines are traced first,
and then even-numbered lines are traced. Solid lines traced from P to Q is known as Odd field, Similarly Doted
line traces in the frame is known as Even field . Odd and Even fields - two fields make up one Frame. Odd
lines starts at top left corner of Frame (P) & ends at bottom center point (T), similarly Even lines starts at center
point of Frame (U) & ends at lower right corner point (V). First solid (Odd) lines are traced, then Even field
starts at U and ends at V. Jump from Q to R is called Horizontal retrace, during which electronic beam in CRT
is Blanked. Jump from T to U is called Vertical retrace, during which electronic beam generate Sync signal. In
general, electron beam will generate Sync. signal for Horizontal retrace in 0.9 s. Later Active scan line signal
is generated in 52.7 s. Different voltages are used to refer different type of signals:
o Blank signal with 0 Volts
o Sync. Signal with -0.286 Volts
o White color with 0.714 Volts
o Black color with 0.055 Volts
NTSC uses band width of 6.0 MHz, in which various sub carriers used frequencies as follows:
Picture Carrier is at 1.25 MHz
Audio Sub Carrier frequency is 4.5 MHz
NTSC composite signal is composition of Luminance signal (Y) and Chroma signal (C)
Composite=Y+C=Y+ I.cos(FSCt)+Q.sin(FSCt)
Decoding composite signal at receiver:
Separating Y & C, Low pass filters can be used to extract Y signal.
To extract I signal: Multiply signal C by 2.cos(FSCt)
C.2.cos(FSCt) =(I.cos(FSCt)+Q.sin(FSCt)).2.cos(FSCt)
=I.2.cos2(FSCt) + Q.2. sin(FSCt).cos(FSCt)
= I .(1+cos(2FSCt))+ Q.2. sin(FSCt).cos(FSCt)
= I +I.cos(2FSCt) + Q.sin(2FSCt)
Apply Low pass filter to obtain I and discard two higher frequency 2*FSC terms
Similarly C is multiplied by 2.sin(FSCt) to get Q
Multimedia Applications Development Unit 2
St. Anns College of Engineering & Technology Page |3
2) PAL Video:
PAL (Phase Altering Line) TV standard originally invented by germen scientist. It uses 625 scan lines
per frame at 25 fps with 4:3 aspect ratio, PAL uses YUV color model with 8 MHz channel, allocating band
width of 5.5 MHz to Y and 1.8 MHz to each U & V. Color sub carrier frequency is Fsc=4.43MHz. Chroma
signals have altering signs as +U & -U in successive scan lines hence the name Phase Altering Line. The signals
in consecutive lines are averaged so as to cancel chroma signal for separating Y and C. It uses Comb filter at
receiver
3) SECAM Video:
SECAM (Systeme Electronique Couleur Avec Memoire) is invented by French for TV broadcast. It uses
625 scan lines per frame at 25 fps with 4:3 aspect ratio & interlaced fields. SECAM and PAL are similar,
differing slightly in their color coding scheme. In SECAM, U & V signals are modulated using separate color
sub carriers at 4.25 MHz and 4.41 MHz. They are sent in alternate lines that is, only one of U or V signals will
be sent on each scan line
Digital Video:
The advantages of digital representation for video:
Video can be stored on digital devices or in memory, ready to be processed & integrated to various
multimedia applications
Direct access is possible, which makes nonlinear video editing achievable as a simple
Repeated recording does not degrade image quality
Ease of encryption and better tolerance to channel noise.
Digital Video Representation:
There is one digital video representation technique as follows:
Chroma Sub-sampling:
Human vision cannot distinguish black & white image filled with color information in spatial resolution.
It uses YCbCr color model for sub-sampling, where Y is luminance signal gives gray image, combined signal of
Cb, Cr known as Chorma contains color information . Y signal will present in all samples of pixels, but Chorma
may not present in all samples
Chroma Sub-sampling: How many pixel values per four original pixels contains chroma signal are refered as
Chroma sub sampling. There are four schemes for chroma sub-sampling as follows based on chroma sampling:
4:4:4 Scheme: indicates that No chroma sub-sampling is used
o Each pixel's Y, Cb and Cr values are transmitted
o All four pixel have Y,Cb,Cr values out of four pixels that gives More quality images
4:2:2 Scheme: indicates horizontal sub sampling of the Cb, Cr signals by a factor of 2
o Four pixels horizontally labeled as 0 to 3, all four Ys are sent, and every two Cb's & two Cr's are
sent as (Cb0, Y0) (Cr0,Y1) (Cb2, Y2) (Cr2, Y3) (Cb4, Y4)
o Only two pixels have Y, Cb, Cr values out of four pixels that gives Medium quality images
4:1:1 Scheme: indicates horizontal sub sampling by a factor of 4
o Four pixels horizontally labeled as 0 to 3, all four Ys are sent, every one Cb's & one Cr's are sent
o Only one pixel have all Y, Cb, Cr values out of four pixels that gives Poor quality images
4:2:0 Scheme: sub-samples in both the Horizontal & Vertical dimensions by a factor of 2
Scheme 4:2:0 along with other schemes is commonly used in JPEG and MPEG CIF and QCIF
CIF Standards:
CIF stands for Common Intermediate Format specified by the CCITT. The idea of CIF is to specify a
format for lower bit rate. It uses a progressive (non-interlaced) scan. QCIF stands for Quarter-CIF. All the
CIF/QCIF resolutions are evenly divisible by 8, and all except 88 are divisible by 16; this provides convenience
for block-based video coding in H.261 and H.263.
To decide how to digitize audio data we need to answer the following questions:
What is the sampling rate?
How finely is the data to be quantized?
Is quantization uniform?
How is audio data formatted? (file format)
Nyquist Theorem:
Signals can be decomposed into a sum of sinusoids,
Weighted sinusoids can build up quite a complex signal.
Frequency is absolute measure, pitch is perceptual,
subjective quality of sound. Harmonics is any series of
musical tones whose frequencies are integral multiples of
frequency of fundamental tone. If we allow non-integer
multiples of base frequency, we allow non-A notes & have
complex resulting sound.
If sampling rate just equals actual frequency, false signal
is detected which is simply constant with zero frequency. If
sample at 1.5 times the actual frequency, we obtain an
incorrect (alias) frequency that is lower than the correct one,
it is half correct one.
Nyquist rate: For correct sampling we must use a sampling rate equal to at least twice the maximum frequency
content in the signal
Nyquist Theorem: If signal is band-limited, if it has lower limit f1 & upper limit f2 of frequency components
in signal, then the sampling rate should be at least 2(f2 f1)
Power in signal is propositional to square of voltage. Decibels are always defined in terms of ration, decibels are
applied to sounds in our environment usually is comparison to just audible sound with frequency 1 kHz.
Audio Filtering:
AD conversion, the audio signal is usually filtered to remove un-wanted frequencies, for speech
typically from 50Hz to 10 kHz is retained. Band Pass filter: is used to pass the frequencies of specified range
and restrict un-wanted frequencies. DA conversion, even though we have removed high frequencies that are
likely just noise in any event, they reappear in output. This is due to sampling & quantization. At decoder side,
Low pass filter is used after DA circuit, making use of same cutoff as high frequency end of coders band pass
filter.
Synthetic Sounds:
Digitized sound must still be converted to analog. There are two fundamentally different approaches to
handle stored sampled audio
1) Frequency Modulation:
Carries sinusoid is changed by adding another term involving Modulating frequency. More interesting
sound is created by changing argument of main cosine term, putting second cosine inside the argument it self. A
time varying amplitude envelope function multiplies the whole signal, another for inner cosines to account for
overtones. Consider a more complex signal :
x(t ) A(t ). cos[ct I (t ) cos(mt m ) c ]
Where Wc is basic carrier frequency, Wm is modulating frequency, A(t) is envelop, I(t) is harmonic function
2) Wave Table Synthesis:
More accurate way of generating sounds from digital signals. Digital samples of sounds from real
instruments are sorted. Sound reproduction is good with wave tables than with FM synthesis. To save memory
Multimedia Applications Development Unit 2
St. Anns College of Engineering & Technology Page |8
space, a variety of special techniques such as sample looping, pitch shifting, mathematical interpolation and
polyphonic digital filtering can be applied. Wave table often include sampling at various notes of instrument, so
that key change need not be stretched too far. Wave table synthesis is more expensive than FM
Mode Messages:
They form a special case of control change message,
therefore all modes have op-code B. mode messages
determine how an instrument processes MIDI voice
messages. Poly means a device will play back several
notes at once if requested to do so. Default mode is
POLY ON. Omni means that devices respond to
messages from all channels. Default is OMNI OFF -
pay attention to your own messages only.
2) System Messages:
They have no channel number and are meant for commands that are not channel specific such as timing
signals for synchronization, positioning information in pre-recorded MIDI sequence. Op-code for all system
messages start with &HF
Common Messages: Real Time Messages: Exclusive Messages:
which relate to timing or positioning. It is Which are related to synchronization It is included so that
measured in beats manufacturers can extend
MIDI standard. After
initial code, they can insert
stream of any specific
messages that apply to
their own product
~ ~
^ ( f f )
f n n 1 n 2
2
~ ~ ~ ^ ~
f n functio _ of ( f n1 , f n2 ,...) f n en
en f n fn
signal differences simulate Laplacian probability distribution function. The box labeled Symbol coder in block
diagram simply means a Huffman coder.
Ex: let us consider f1=130, f2=150, f3=140, f4=200, f5=230 then f1=130, e1=0
e~n ~
f f en f
1 130 130 0 0 130
2 150 130 150-130=20 (255 20) (275) 130+24=154
-248= 16*17-248= 24
16*
16
-256+8=16*
16
3 140 (130+154)/2=142 140-142=-2 (255 2) (253) 142-8=134
-248= 16*15-248= -8
16*
16 -256+8=16*
16
4 200 (154+134)/2=144 200-144=56 (255 56) (311) 144+56=200
-248= 16*19-248= 56
16*
16 -256+8=16*
16
5 230 (134+200)/2=167 230-167=63 (255 63) (318) 167+56=223
-248= 16*19-248= 56
16*
-256+8=16*
16 16
3) Delta Modulation (DM):
It is much simplified version of DPCM often used as quick analog to digital converter. Uniform Delta
Dm: the idea is to use only single quantized error value, either +ve or ve. Such as 1 bit coder as follows:
^ ~
f n f n 1
^ ~
en f n f n f n f n1
e~n =+k if en>0, where k is constant
= -k otherwise
~ ~
f n f n en
Ex: let us consider f1=10, f2=11, f3=13, f4=25 then f1=130, e1=0
e~n ~
f
F en f
1 10 10 0 0 10
2 11 10 f2- ~f =11-10=1 +4 10+4=14
1
4) Adaptive DPCM(ADPCM):
It uses idea of adapting the coder to suit the input much further. It uses adaptively modified quantizer,
by changing step size as well as decision boundaries in non uniform quantizer. Generally making predictor
Multimedia Applications Development Unit 2
St. Anns College of Engineering & Technology P a g e | 13
coefficients adaptive called as Adaptive Predictor Coding (APC). It includes two type of adaptive predictors:
Forward or Backward. The number of previous values used is called as order of predictor.
M
~
f n a i f n i
i 1
If we change prediction coefficients that multiply previous quantized values, because that makes
complicated set of equations to solve for these coefficients. Suppose we decide to use least squares approach to
solving minimization, then:
N
min ( f n fn ) 2
n 1
Explicitly writing in terms of coefficients ai, then:
N M
min ( f n ai f n i ) 2
n 1 i 1
Reference(s):
1. Ze-Nian Li & Mark S. Drew, Fundamentals of Multimedia, PHI, [Chapters 5 & 6]