Chapter One, Multimedia and File Compression Notes
Chapter One, Multimedia and File Compression Notes
Now, let's go over Multimedia Representation & File Compression, which are also
part of Chapter 1 in the Computer Science 9618 syllabus.
📷 Image Representation
Digital images are stored using pixels (picture elements), and each pixel has a color value.
Key Concepts
✅ Example:
A 24-bit image means each pixel has 24 bits (8 bits per Red, Green, and Blue color
channel).
Formula for Image File Size:
🎵 Sound Representation
Key Concepts
🎥 Video Representation
Key Concepts
2⃣ File Compression
Compression reduces file size to save storage space and improve transfer speed.
🔹 Types of Compression
📝 Compression Examples
1. Image Representation
o Images are stored as pixels.
o Higher resolution = better quality, larger file size.
o Color depth determines the number of colors.
o File Size = Width × Height × Color Depth.
2. Sound Representation
o Sampling rate = How often sound is measured (Hz).
o Bit depth = More bits = better quality.
o File Size = Sample Rate × Bit Depth × Channels × Duration.
3. Video Representation
o Frame Rate = Frames per second (fps).
o Resolution = Pixels per frame.
o Compression is needed to reduce file size.
File Compression
1. Lossy Compression
o Removes unnecessary data permanently.
o Used in JPEG, MP3, MP4.
o Smaller file sizes, but quality loss.
2. Lossless Compression
o No data is lost.
o Used in PNG, FLAC, ZIP.
o Files can be restored to original quality.
3⃣ Video Representation
A video is a sequence of images (frames) displayed rapidly.
Higher frame rate = Smoother video = Larger file size.
Higher resolution = More detail per frame = Larger file size.
Common file formats:
o MP4 (lossy, widely used for streaming)
o AVI (uncompressed, large file size)
o MKV (supports multiple audio tracks, subtitles, high quality)
4⃣ File Compression
Compression reduces file size to save storage and speed up transmission.
Types:
o Lossy Compression: Removes data permanently (JPEG, MP3, MP4).
o Lossless Compression: No data is lost (PNG, FLAC, ZIP).
ZIP compression reduces size by identifying repeated patterns.
JPEG compression removes details humans won’t notice.
Data Loss Yes (some data is removed) No (100% original file can be restored)
These should give you a solid understanding and practice for your exam! Try them out and
let me know if you need any hints. 🚀😊
1⃣ A black-and-white image has a resolution of 400 × 300 pixels. Each pixel uses 1 bit
(since it's black & white).
2⃣ A colored image has a resolution of 1024 × 768 pixels with a 24-bit color depth.
🎵 Sound Representation
3⃣ A song is recorded in stereo (2 channels), with a sampling rate of 44.1 kHz (44,100
samples per second) and a bit depth of 16 bits. The song is 3 minutes long.
🎥 Video Representation
JPEG
PNG
MP3
FLAC
MP4
If you take 100 pictures, what is the total storage needed (in GB)?
2⃣ A colored image (24-bit per pixel) has a resolution of 1920 × 1080 pixels.
3⃣ How does increasing color depth affect file size and quality?
5⃣ If the same audio file was recorded in stereo (2 channels), how would that change the
file size?
6⃣ Explain why MP3 files are smaller than WAV files, even if they store the same song.
🎥 Video Representation Questions
7⃣ A 4-minute HD video (1920×1080, 24-bit color, 30fps) is uncompressed.
9⃣ What is the difference between a high bit rate and a low bit rate video?
GIF
MP4
FLAC
JPEG
ZIP
1⃣1⃣ A 100MB text file is compressed using ZIP, and the output file is 30MB.
1⃣2⃣ Which type of compression is best for storing medical images (like X-rays) and why?