Text Books
T1 Ze-Nian Li & Mark S. Drew, "Fundamentals of Multimedia", Pearson Education, 2004
Question.1
Explain the difference between Temporal and Frequency masking.
Answer:
Frequency Masking: When an audio signal consists of multiple frequencies the sensitivity of the ear changes with the relative amplitude of the signals. If the frequencies are close and the amplitude of one is less than the other close frequency then the second frequency may not be heard.
Temporal masking:
- After the ear hears a loud sound, consisting of multiple frequencies, it takes a further short while before it can hear a quieter sound close in frequency.
-
Temporal Masking accomplished 50% overlap between consecutive transform windows and then relating frequency masking.
-
MPEG Audio encrypts frequency masking by quantizing each filter bank with adaptive values from nearby bands, defined by a look up table.
Question. 2
Consider the following set of protocols (SIP, RTSP, RSVP, RTCP, RTP on top of UDP. If you want to design a protocol stack (control and data plane) for Video‐On‐Demand (VOD) service between client and server, (a) which protocols would you use and why, and (b) in which order would you apply your selected protocols? Explain how the protocol stack of selected protocols would be used ?
Answer:
To design the Video‐On‐Demand service,
RTP protocol : for transmission of the video . RTP/UDP enables real‐time transmission.
RTCP : The accompanying control protocol for RTP is the RTCP that would allow the receiver to provide feedback to the sender if some parameters need to be adjusted during the streaming session.
RTSP : Since VOD will use commands such as play, stop, pause, fast
forward, rewind, so anyone should use the RTSP protocol because it specifies
signaling for completing these control tasks between the client and the server.
RSVP: If an IP level also requires the built-in reservation
capabilities of VOD traffic, it is important to enable the RSVP protocol to
start integrated Guaranteed Services using the RSVP Reservation Protocol.
RSVP to reserve bandwidth for the VOD session.
Once the resources are reserved, VOD traffic should be transmitted via RTP which is on top of UDP/IP.
Along with this, RTP RTCP and RTSP should provide (1) RTP
(Control) to provide control feedback about the status of traffic and receiver,
and (2) controlling the channel through signaling (RTSP) control , Stop, and
otherwise control the VOD playback.
Question. 3
Compress the string “DEAF!DEFEATED” using LZW algorithm. Find compression ratio by
supposing that originally the characters are represented in 8-bit (B=66, A = 65, ,., Z = 90, Y = 89, , ! = 33).
Answer:
Input: DEAF!DEFEATED
Previous
|
Current
|
Output
|
Code
|
String
|
065
|
A
|
|||
068
|
D
|
|||
069
|
E
|
|||
070
|
F
|
|||
084
|
T
|
|||
033
|
!
|
|||
D
|
E
|
068
|
256
|
DE
|
E
|
A
|
069
|
257
|
EA
|
A
|
F
|
065
|
258
|
AF
|
F
|
!
|
070
|
259
|
F!
|
!
|
D
|
033
|
260
|
!D
|
D
|
E
|
|||
DE
|
F
|
256
|
261
|
DEF
|
F
|
E
|
070
|
262
|
FE
|
E
|
A
|
|||
EA
|
T
|
257
|
263
|
EAT
|
T
|
E
|
084
|
264
|
TE
|
E
|
D
|
069
|
265
|
ED
|
D
|
End Of File
|
068
|
The compressed output is 068 069 065 070 033 256 070 257 084 069 068
Compression ratio = 13/11 = 1.18181
Question:
Compress the string “PROPER_PROPERTY” using LZW algorithm by using codeword of 10 bit. Find compression ratio by assuming that originally the characters are represented in 8-bit (A = 65, B=66... Y = 89, Z = 90, _ = 95).
Answer:
Input: PROPER_PROPERTY
Question:
Compress the string “PROPER_PROPERTY” using LZW algorithm by using codeword of 10 bit. Find compression ratio by assuming that originally the characters are represented in 8-bit (A = 65, B=66... Y = 89, Z = 90, _ = 95).
Answer:
Input: PROPER_PROPERTY
S
|
C
|
Output
|
Code
|
String
|
069
|
E
| |||
079
|
O
| |||
080
|
P
| |||
082
|
R
| |||
084
|
T
| |||
089
|
Y
| |||
_
|
95
| |||
P
|
R
|
080
|
256
|
PR
|
R
|
O
|
082
|
257
|
RO
|
O
|
P
|
079
|
258
|
OP
|
P
|
E
|
080
|
259
|
PE
|
E
|
R
|
069
|
260
|
ER
|
R
|
_
|
082
|
261
|
R_
|
_
|
P
|
095
|
262
|
_P
|
P
|
R
| |||
PR
|
O
|
256
|
263
|
PRO
|
O
|
P
| |||
OP
|
E
|
258
|
264
|
OPE
|
E
|
R
| |||
ER
|
T
|
260
|
265
|
ERT
|
T
|
Y
|
084
|
266
|
TY
|
Y
|
NULL
|
089
|
The compressed output is 080 082 079 080 069 082 095 256 258 260 084 089