Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

HOMEWORK ASSIGNMENT-3

Calculating Multimedia Data Requirement

Asri Samsiar Ilmananda


NPM. 1606933195

Case 1:
You have been asked to provide an estimate regarding the production of a one hour video with
music. This is to be distributed both on CD-ROM and DVD. Among other tasks, you need to
estimate the size (width and height) necessary for the video to fit on the media. In each case,
supply, the necessary picture sizes together with your assumptions. That is, your answer might be
600 by 400 pixels for the DVD and 234 by 78 for the CD-ROM. Assume a single layer, single side
DVD. Don’t worry about whether a K is 1000 or 1024. Your compression estimates are necessarily
so inexact that the difference won’t matter
Hints:
❖ The assume rate for music: 176,400 bytes per second (uncompressed)
❖ or 17,640 MP3 compressed by 90%
❖ DVD should be assumed: 4.7 GB

Answer:
1. CD video resolution:
Storage size = 700 MB = (700 x 8 x 1024 x 1024) bits
Bits per pixel (RGB) = 24 bpp
Frame per second (Video) = 24 fps
Video duration = 1 hour = 3600 seconds
Intra-frame compression = 70% (estimation)
Inter-frame compression = 90% (estimation)
Audio Bitrate (MP3) = 17640 bytes per second = (17640 x 8) bps = 141120 bps
Total Bitrate = (700 x 8 x 1024 x 1024) bits / 3600 seconds = 1631118.22 bps
Video Bitrate = 1631118.22 bps - 141120 bps = 1489998.22 bps
Bits per frame (compressed) = 1489998.22 bps / 24 fps = 62083.26 bits
Bits per frame (raw) = 62083.26 bits x (100/10) x (100/30) = 2069441.97 bits
Pixel size = 2069441.97 / 24 bpp = 86226.75 pixels
Image Resolution estimation = 320 x 240 pixels
2. DVD video resolution:
Storage size = 4.7 GB = (4.7 x 8 x 1024 x 1024 x 1024) bits
Bits per pixel (RGB) = 24 bpp
Frame per second (Video) = 24 fps
Video duration = 1 hour = 3600 seconds
Intra-frame compression = 70% (estimation)
Inter-frame compression = 90% (estimation)
Audio Bitrate (MP3) = 17640 bytes per second = (17640 x 8) bps = 141120 bps
Total Bitrate = (4.7 x 8 x 1024 x 1024 x 1024) bits / 3600 seconds = 11214636.83 bps
Video Bitrate = 11214636.83 bps - 141120 bps = 11073516.83 bps
Bits per frame (compressed) = 11073516.83 bps / 24 fps = 461396.53 bits
Bits per frame (raw) = 461396.53 bits x (100/10) x (100/30) = 15379884.48 bits
Pixel size = 15379884.48 / 24 bpp = 640828.52 pixels
Image Resolution estimation = 1024 x 640 pixels

Case 2:
Given an image size of 320x240 pixels, a 16,700,000 colour palette, MP3 sound, 70% within frame
and 90% across frame compression and 24 frames per-second, how fast must the connection be
(in bits per second) for the material to successfully stream without dropping frames.

Answer:
Image resolution = 320 x 240 pixels
Bits per pixel of 16700000 colour palette (224) = 24 bpp
Frame per second (Video) = 24 fps
Intra-frame compression = 70%
Inter-frame compression = 90%
Bits per frame (raw) = (320 x 240) pixels x 24 bpp = 1843200 bits
Bits per frame (compressed) = (10/100) x (30/100) x 1843200 bits = 55296 bits
Video Bitrate = 55296 bits x 24 fps = 1327104 bps
Audio Bitrate (MP3) = 320 Kbps = (320 x 1024) bps = 327680 bps
Total Bitrate = 1327104 bps + 327680 bps = 1654784 bps
Minimum Bandwidth = 1654784 bps = (1654784 / 1024 / 1024) Mbps = 1.58 Mbps
Case 3:
For stereo CD-audio, we need to capture audio frequency of up to 20 kHz. Assume 16 bits are
required to represent each audio sample. Calculate the storage requirement of one hour of the CD-
audio!

Answer:
Audio Bitrate = sample rate x bit depth x channels
Sample rate (Nyquist frequency) = 20 kHz x 2 = 40 kHz = 40000 Hz
Bit depth = 16 bits
Channel (stereo) = 2 channels
Audio duration = 1 hour = 3600 seconds
Audio Bitrate = 40000 Hz x 16 bits x 2 channels = 1280000 bps = 1250 Kbps
Storage Requirement = 1250 Kbps x 3600 seconds = 4500000 Kb = 549.316 MB

Case 4:
Normal video needs to be played out at 30 frames per second. Assume that the horizontal and
vertical resolutions are both 480 lines and the aspect ratio is 4:3. The video is digitized at 24 bits
per pixel. Calculate the minimum bit rate of the digital video. You must show your working
process.

Answer:
Frame per seconds = 30 fps
Bits per pixel = 24 bits
Aspect ratio = 4:3
Horizontal resolution = 480
Vertical resolution = 480
If Width = 480 pixels, then Height = ¾ x 480 = 360 pixels
Video Bitrate = 480 pixels x 360 pixels x 24 bits x 30 fps = 124416000 bps = 118.65 Mbps
Case 5:
Build a spreadsheet to determine how quickly the multimedia data for web materials can be
downloaded. The materials include pictures, sound files and video.
For pictures:
Get: The height and width in pixels, the number of colours and the likely compression percent.
Show:
❖ Pixel bit depth (NOTE: not just 8, 16 or 24)
❖ Raw file size in bytes
❖ Compressed file size in bytes
❖ Download time in minutes and seconds
For music:
(assume a 90% compression for MP3, and 10 mb per minute of uncompressed sound)
Get: Sound minutes and seconds
Show:
❖ Raw file size in bytes
❖ Compressed file size in bytes
For video:
Use your calculators for pictures and sound, with the addition of frames per second and minutes
and seconds of video.
❖ Assume MP3 sound.
❖ Allow a second compression percent (across frame compression is possible as well
aswithin frame compression.)
❖ Return the raw and compressed sizes for the video

Answer:
Spreadsheet file attached

You might also like