Docsity

Multimedia - Applied Operating System - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Multimedia - Applied Operating System - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Multimedia

Chapter 7

7.1 Introduction to multimedia 7.2 Multimedia files 7.3 Video compression 7.4 Multimedia process scheduling 7.5 Multimedia file system paradigms 7.6 File placement 7.7 Caching 7.8 Disk scheduling for multimedia

Introduction to Multimedia (2)

  • Some data rates
    • multimedia, high performance I/O devices
  • Note: 1 Mbps = 10^6 bits/sec but 1 GB = 2^30 bytes

Audio Encoding (2)

  • Error induced by finite sampling
    • called quantization noise
  • Examples of sampled sound
    • telephone โ€“ pulse code modulation
    • audio compact disks

The MPEG Standard (2)

MPEG-2 has three kinds of frame: I, P, B

  1. I ntracoded frames
    • Self-contained JPEG-encoded pictures
  2. P redictive frames
    • Block-by-block difference with last frame
  3. B i - directional frames
    • Differences with last and next frame

Rate Monotonic Scheduling

Used for processes which meet these conditions

  1. Each periodic process must complete within its period
  2. No process dependent on any other process
  3. Each process needs same CPU time each burst
  4. Any nonperiodic processes have no deadlines
  5. Process preemption occurs instantaneously, no overhead

VCR Control Functions

  • Rewind is simple
    • set next frame to zero
  • Fast forward/backward are trickier
    • compression makes rapid motion complicated
    • special file containg e.g. every 10th^ frame

Two Alternative File Organization Strategies (1)

  • Noncontiguous Movie Storage (a) small disk blocks (b) large disk blocks

Two Alternative File Organization Strategies (2)

Trade-offs between small, large blocks

  1. Frame index
    • heavier RAM usage during movie play
    • little disk wastage
  • Block index (no splitting frames over blocks)
    • low RAM usage
    • major disk wastage
  • Block index (splitting frames over blocks allowed)
    • low RAM usage
    • no disk wastage
    • extra seeks

Placing Multiple files on a Single Disk (2)

  • Organ-pipe distribution of files on server
    • most popular movie in middle of disk
    • next most popular either on either side, etc.

Placing Files on Multiple Disks

Organize multimedia files on multiple disks

(a) No striping (b) Same striping pattern for all files (c) Staggered striping (d) Random striping

File Caching

  • Most movies stored on DVD or tape
    • copy to disk when needed
    • results in large startup time
    • keep most popular movies on disk
  • Can keep first few min. of all movies on disk
    • start movie from this while remainder is fetched

Disk Scheduling for Multimedia

Static Disk Scheduling

  • In one round, each movie asks for one frame

Order in which disk requests are processed ๏ƒ 

Stream