📝 Data compression in multimedia (9 MCQs)
Multimedia Compression and Network Delivery Requirements
Multimedia compression reduces the number of bits needed to represent audio, images, animation and video before storage or transmission. It addresses the high data rates produced by rich media, helping networks deliver content within available bandwidth and storage limits. Compression may preserve every original sample or discard selected information, depending on the application. The encoder performs compression, while a compatible decoder reconstructs the media for presentation.
Redundancy Removal in Audio, Images and Video
Media files contain redundancy that can be represented more efficiently. Repeated patterns in images, predictable changes between video frames, and statistical regularities in audio can be coded with fewer bits. Lossless methods exploit redundancy without changing the original information; lossy methods also use perceptual limits to remove less noticeable detail. Choice depends on content, required fidelity, processing capacity and acceptable delay.
Encoder and Decoder Processing of Media Data
At the sender, an encoder analyzes the source and produces a compact bitstream using a selected format or codec. The compressed stream is placed in a file or divided into network packets for delivery. At the receiving end, a decoder interprets the bitstream and reconstructs audio or pictures. The network transports encoded data; it does not normally perform the codec decoding itself.
Comparing an Uncompressed and Compressed Media File
A 48 kHz, 16-bit, mono PCM audio stream produces 768 kbit/s before container overhead because 48,000 samples each contain 16 bits. A codec that represents the same material at 96 kbit/s reduces the audio bit rate to one eighth. This makes transmission easier, although the result may not reproduce every original sample exactly.
Compression Ratios, Bit Rates and Playback Quality
Compression connects multimedia coding with storage systems, application protocols and network capacity planning. Lower bit rates reduce file sizes and the traffic needed for playback, while decoding requires processor resources at the client. Streaming systems may select among encoded bit rates as network conditions change. The chosen codec and container must also be supported by the playback software.
Clarifying Quality Loss and File Size Reduction
'Lossless coding always makes files smaller' is false because random or already-compressed data may not shrink. 'Lossy coding is accidental corruption' is wrong because an encoder deliberately quantizes selected information. 'A codec is a file extension' confuses coding rules with a container or filename suffix. This distinction matters when evaluating codec behavior and media delivery.
Compression Decisions for Multimedia Examination Problems
Be prepared to distinguish compression from encryption and distinguish a codec from a container. Calculate the uncompressed bit rate from sampling rate, bit depth and channel count, then compare it with a coded bit rate. Interpret compression ratio consistently as original size divided by compressed size, and explain the trade-off among size, fidelity, delay and decoding cost.
Compression Terminology for Multimedia Systems
- Encoder - Converts source media into a coded representation.
- Decoder - Reconstructs media from an encoded bitstream.
- Codec - Defines media encoding and decoding methods.
- Bit rate - Measures encoded bits sent each second.
- Lossless - Compression permits exact reconstruction of original data.
- Lossy - Compression removes information to reduce representation size.
📝 All Data compression in multimedia MCQs
Q1. If a lossless compression algorithm reduces a file size by 40%, what is the resulting compression ratio?
📖 Explanation: A 40% reduction means the compressed file is 60% of the original. The compression ratio is calculated as original size divided by compressed size, yielding . Therefore, option B correctly represents the ratio.
Q2. Increasing the quantization step size in JPEG compression typically causes which combination of changes in image quality and file size?
📖 Explanation: Larger quantization steps coarsen the representation of frequency coefficients, discarding more detail. This reduces perceptual quality, producing a blurrier image, while simultaneously decreasing the amount of data needed to store the coefficients, resulting in a smaller file size. Hence, lower quality with smaller size is correct.
Q3. Codec X achieves a PSNR of 35 dB at 2 Mbps, while Codec Y achieves 33 dB at 1.5 Mbps. For a streaming service limited to 3 Mbps, which codec provides the best trade‑off between quality and bandwidth?
📖 Explanation: Codec X delivers higher visual quality (35 dB) and still operates well below the 3 Mbps ceiling, using 2 Mbps. Codec Y, although lower bitrate, provides lower quality (33 dB) and does not offer a significant advantage. Therefore, Codec X offers the superior balance of quality and bandwidth within the constraint.
Q4. Which statement correctly distinguishes lossless from lossy compression?
📖 Explanation: Lossless techniques preserve every original bit by eliminating only statistical redundancy, allowing exact reconstruction. Lossy methods intentionally discard information that is less noticeable to human perception, achieving higher compression at the cost of irreversible loss. The correct distinction is captured by option C.
Q5. When choosing between MP3 and FLAC for archiving music, which factor is most important for preserving audio fidelity?
📖 Explanation: FLAC stores audio without any loss of information, guaranteeing that the archived file is identical to the original source. MP3 compresses by removing detail, which degrades fidelity. Therefore, the decisive factor for preserving fidelity is FLAC’s lossless nature, as stated in option D.
Q6. Considering dictionary‑based methods, how does Huffman coding differ from LZW in terms of dictionary construction and typical data suitability?
📖 Explanation: Huffman creates a fixed prefix tree derived from symbol frequencies, assigning shorter codes to more common symbols. LZW, by contrast, constructs a dictionary on‑the‑fly, adding new substrings as data are processed, which excels with repetitive sequences typical in text. Option D accurately describes these differences.
Q7. Applying Run‑Length Encoding (RLE) to a monochrome bitmap with long runs of identical pixels primarily reduces which type of redundancy?
📖 Explanation: RLE compresses sequences of identical adjacent pixels by representing the run length and value once, eliminating repeated storage of the same pixel. This targets spatial redundancy, where neighboring pixels share the same color, making option C the correct answer.
Q8. How does the Discrete Cosine Transform (DCT) enable efficient lossy compression in video codecs?
📖 Explanation: The DCT converts spatial pixel values into frequency coefficients, concentrating most of the image energy into a small set of low‑frequency components. High‑frequency coefficients, which contribute less to perceived quality, can be heavily quantized or discarded, achieving compression while preserving visual fidelity. This description matches option B.
Q9. What does the term 'compression ratio' represent in data compression?
📖 Explanation: Compression ratio quantifies how much a file has been reduced by dividing the original uncompressed size by the compressed size. A ratio greater than one indicates reduction, while a ratio less than one would imply expansion. Option B correctly defines this relationship.