Docsity

Understanding Digital Audio and Video: Sampling Rates, Bit Depth, and Compression, Slides of Computer Science

Partial preview of the text

Download Understanding Digital Audio and Video: Sampling Rates, Bit Depth, and Compression and more Slides Computer Science in PDF only on Docsity!

Introduction

Multimedia Networking

Introduction Purpose

  • Brief introduction to:
    • Digital Audio
    • Digital Video
    • Perceptual Quality
    • Network Issues
    • The “Science” (or lack of) in “Computer Science”
  • Get you ready for research papers!
  • Introduction to:
    • Silence detection (for project 1)

Introduction Outline

  • Background
    • Internetworking Multimedia (Ch 4)
    • Graphics and Video (Linux MM, Ch 4)
    • Multimedia Networking (Kurose, Ch 6)
  • Audio Voice Detection (Rabiner)
  • MPEG (Le Gall)
  • Misc

(These Slides)

Digital Sampling

  • Sample rate determines number of discrete

values

Digital Sampling

  • Half the sample rate

Sample Rate

  • Shannon’s Theorem: to accurately

reproduce signal, must sample at twice the

highest frequency

  • Why not always use high sampling rate?
    • Requires more storage
    • Complexity and cost of analog to digital hardware
    • Human’s can’t always perceive
      • Dog whistle
    • Typically want an adequate sampling rate

Sample Size

  • Samples have discrete values

• How many possible values?

  • Sample Size
  • Common is 256 values from 8 bits

Groupwork

  • Think of as many uses of computer audio as

you can

  • Which require a high sample rate and large

sample size? Which do not? Why?

Audio

  • Encode/decode devices are called codecs
    • Compression is the complicated part
  • For voice compression, can take advantage

of speech:

“Smith”

• Many similarities between adjacent samples

• Send differences (ADPCM)

• Use understanding of speech

• Can ‘predict’ (CELP)

Typical Encoding of Voice

  • Today, telephones carry digitized voice
  • 4 KHz (8000 samples per second)
    • Adequate for most voice communication
  • 8-bit sample size
  • For 10 seconds of speech:
    • 10 sec x 8000 samp/sec x 8 bits/samp = 640,000 bits or 80 Kbytes
    • Fit 3 minutes of speech on a floppy disk
    • Fit 8 weeks of sound on typical hard disk
  • Fine for voice, but what about music?

Typical Encoding of Audio

  • Can only represent 4 KHz frequencies (why?)
  • Human ear can perceive 10-20 KHz
    • Full range used in music
  • CD quality audio:
    • sample rate of 44,100 samples/sec
    • sample size of 16-bits
    • 60 min x 60 secs/min x 44,100 samp/sec x 2 bytes/samples x 2 channels = 635,040,000, about 600 Mbytes (typical CD)
  • Can use compression to reduce
    • mp3, RealAudio

Introduction Outline

  • Background
    • Internetworking Multimedia (Ch 4)
    • Graphics and Video (Linux MM, Ch 4)
    • Multimedia Networking (Kurose, Ch 6)
  • Audio Voice Detection (Rabiner)
  • MPEG
    • Fitzek and Reisslein intro
    • Le Gall
  • Misc