IT273 Multimedia System Application

Multimedia System ApplicationUnit 59 min read

Video Fundamentals: Frame Rates, Codecs, Formats & Streaming

Unit 5 of Multimedia System Application explores the core principles of video technology—how video is captured, compressed, formatted, and streamed—with real-world examples from Nepalese apps (eSewa, Pathao) and global platforms (YouTube, Netflix), plus exam-focused comparisons of codecs, resolutions, and streaming pro

Core Concepts of Video Fundamentals

Video is a sequence of frames (still images) displayed at a rapid rate to create the illusion of motion. Understanding its technical foundations—frame rate, resolution, color depth, compression, and formats—is essential for designing, optimizing, and streaming multimedia content.

1. Video Frame Structure and Frame Rate

How Video Works

Video is created by capturing or generating a series of frames per second (fps). The human eye perceives motion when frames are displayed at a rate of at least 16 fps, but standard video uses:

  • 24 fps (cinematic, film-like smoothness, used in movies)
  • 30 fps (NTSC standard, common in TV broadcasts)
  • 60 fps (smooth motion, used in sports, gaming, and high-end streaming)
16 fpsMinimum forperceived motion (huma24 fpsCinematic (movies,film-like smoothness)30 fpsNTSC standard (TVbroadcasts)60 fpsHigh-end (sports,gaming, streaming)
Standard frame rates and their applications in video

Worked Example: Frame Rate in eSewa’s Video Verification

When users upload a video for eSewa’s KYC (Know Your Customer) verification, the system checks:

  • Minimum 30 fps (to ensure smooth face movement detection).
  • Resolution ≥ 720p (to avoid pixelation in facial recognition).
  • Duration ≥ 5 seconds (to capture full face rotation).

If the video is below 24 fps, the system rejects it with an error:

"Video too slow. Upload at least 30 frames per second for verification."


2. Video Resolution and Aspect Ratio

Resolution defines the number of pixels in a frame (width × height). Common resolutions:

Resolution Pixels (W×H) Aspect Ratio Use Case
SD (Standard Definition) 640×480 4:3 Old TV broadcasts, low-bandwidth
HD (720p) 1280×720 16:9 YouTube, streaming, mid-range
Full HD (1080p) 1920×1080 16:9 Netflix, Blu-ray, high-quality
4K (UHD) 3840×2160 16:9 Premium streaming, cinemas
8K 7680×4320 16:9 Future-proof, high-end displays

Real-World Example: YouTube’s Adaptive Bitrate Streaming

YouTube adjusts resolution and frame rate based on:

  • User’s internet speed (e.g., 480p for slow connections, 1080p for fast).
  • Device capability (mobile vs. desktop).
  • Content type (e.g., gaming streams use 60 fps, while documentaries use 24 fps).

Why?

  • Lower resolution = smaller file size = faster loading.
  • Higher fps = smoother motion but larger file size.

3. Color Depth and Bit Depth

Color depth determines how many colors a pixel can display, measured in bits per pixel (bpp):

  • 8 bpp (256 colors) → Used in old GIFs, low-quality videos.
  • 24 bpp (16.7 million colors) → Standard for HD videos (RGB: 8 bits per channel).
  • 32 bpp (4.3 billion colors) → Used in high-end video (includes alpha channel for transparency).
8 bpp (256 colors) (5%)24 bpp (16.7M colors) (80%)32 bpp (4.3B colors) (15%)
Color depth distribution in modern video formats (based on usage statistics)

Example: Pathao’s Driver App UI Pathao’s app uses 24-bit color for:

  • Smooth gradients in the map background.
  • Clear text on buttons (e.g., "Start Ride").
  • Accurate color representation in driver profiles (e.g., vehicle colors).

4. Video Compression Techniques

Uncompressed video files are extremely large (e.g., 1 minute of 1080p video = ~1 GB). Compression reduces file size while maintaining quality.

FLAC (audio)FFV1 (video)LosslessUsed in MP4, YouTubeH.264/AVCUsed in 4K streamingH.265/HEVCLossyVideo Compression
Hierarchy of modern video compression standards

Lossless vs. Lossy Compression

Type Method Quality Loss? Use Case
Lossless No data discarded (e.g., Huffman coding) ❌ No Archival, medical imaging
Lossy Removes redundant data (e.g., JPEG, MP3) ✅ Yes Streaming, social media

Key Compression Standards

Codec Type Compression Ratio Used By
H.264 (AVC) Lossy High (50:1) YouTube, Netflix, Blu-ray
H.265 (HEVC) Lossy Very High (100:1) 4K streaming, Netflix
VP9 Lossy High (80:1) YouTube, WebM
AV1 Lossy Extremely High (200:1) Future-proof, Google

Example: Daraz’s Product Videos Daraz compresses product videos using:

  • H.264 (AVC) for fast loading on mobile.
  • Adaptive bitrate streaming to switch between 720p and 1080p based on user speed.

5. Video File Formats

Video files are stored in containers that hold:

  • Video data (compressed frames)
  • Audio data (separate or embedded)
  • Metadata (timestamps, subtitles)
Format Extension Codec Support Use Case
MP4 .mp4 H.264, H.265, AAC YouTube, iPhone videos, streaming
MKV .mkv Any (flexible) Lossless backups, high-quality
MOV .mov ProRes, H.264 Apple devices, professional editing
AVI .avi DivX, Xvid Old Windows systems
WebM .webm VP8, VP9 HTML5 video, Google Chrome

Example: NTC’s Broadcast Standards Nepal Television (NTC) uses:

  • MP4 (H.264) for online streaming (smaller file size).
  • MPEG-TS for live TV broadcasts (real-time transmission).

6. Video Streaming Protocols

Streaming delivers video without full download using:

  1. Progressive Download → User downloads while playing (e.g., YouTube).
  2. Adaptive Bitrate Streaming (ABR) → Adjusts quality in real-time (e.g., Netflix).
  3. Live Streaming → Low-latency transmission (e.g., Facebook Live).
017.53552.570HLS70DASH65RTMP50WebRTC40
Popularity of streaming protocols in 2023 (percentage of implementations)
Protocol Method Latency Use Case
HTTP Live Streaming (HLS) Chunked MP4 files ~30 sec Apple devices, iOS apps
MPEG-DASH Adaptive MP4 chunks ~10 sec Android, global streaming
RTMP Real-time streaming ~2-5 sec Live broadcasts (Facebook, Twitch)

Example: NEPSE’s Live Stock Market Streaming NEPSE uses HLS (HTTP Live Streaming) to:

  • Broadcast real-time stock prices with minimal delay.
  • Support mobile users (iOS/Android).
  • Auto-adjust quality based on network speed.

In the Real World

  1. eSewa’s Video KYC

    • Uses 30+ fps, 720p minimum for facial recognition.
    • Rejects low-frame-rate videos to prevent spoofing.
  2. Pathao’s Driver App

    • 24-bit color depth ensures clear UI for navigation.
    • H.264 compression reduces video call file sizes.
  3. YouTube’s Adaptive Streaming

    • Switches between 360p (slow networks) and 4K (fast networks).
    • Uses VP9 codec for efficiency in WebM format.
  4. NTC’s Digital Broadcast

    • MPEG-TS for live TV (low latency).
    • MP4 (H.264) for on-demand content.

Exam Tip

  1. Memorize key standards:

    • Frame rates: 24 (film), 30 (NTSC), 60 (gaming).
    • Resolutions: 720p (HD), 1080p (Full HD), 4K (UHD).
    • Codecs: H.264 (most common), H.265 (4K), VP9 (YouTube).
  2. Compare compression types:

    • Lossless = No quality loss (used in archives).
    • Lossy = Smaller files (used in streaming).
  3. Relate to real-world apps:

    • eSewa → Frame rate for KYC.
    • YouTube → Adaptive bitrate streaming.
    • NTC → MPEG-TS for live broadcasts.
  4. Diagram-based questions:

    • Draw a frame rate vs. file size graph.
    • Show a video streaming protocol flowchart (HLS vs. DASH).

Visual Summaries

Based on the TU BITM syllabus for Multimedia System Application (IT273), unit 5.

Discussion

Loading…