Ch3 Multimedia Data Representation
Ch3 Multimedia Data Representation
Issues to be covered:
• Digital Audio
– Sampling Theorem
– Digital Audio Signal Processing/Audio Effects
– Digital Audio Synthesis
– MIDI — Synthesis and Compression Control
• Graphics/Image Formats
– Colour Representation/Human Colour Perception
• Digital Video
– Chroma Subsampling
B. Okuku 1
General Themes across all above
• Sampling/Digitisation
– Sampling Artifacts — Aliasing
• Compression requirements
– Data formats especially size
– Human Perception!compression ideas
•Compression Algorithms
B. Okuku 2
Digital Audio
What is Sound?
Source — Generates Sound
• Air Pressure changes
• Electrical — Loud Speaker
• Acoustic — Direct Pressure Variations
B. Okuku 3
Digitising Sound
• Microphone produces analog signal
• Computer like discrete entities
Need to convert Analog-to-Digital — Specialised
Hardware
Also known as Sampling
B. Okuku 4
Digital Sampling
B. Okuku 5
Sample Rates and Bit Size
B. Okuku 6
Nyquist’s Sampling Theorem
Sampling Frequency is very important in order to
accurately reproduce a digital version of an Analog
Waveform.
Nyquist’s Theorem:
The Sampling frequency for a signal must be at least
twice the highest frequency component in the signal.
B. Okuku 7
Figure 1: Sampling at Signal Frequency
B. Okuku 8
Figure 2: Sampling at Twice Nyquist Frequency
B. Okuku 9
Figure 3: Sampling at above Nyquist Frequency
B. Okuku 10
Implications of Sample Rate and Bit Size
B. Okuku 11
Implications of Sample Rate and Bit Size (cont)
B. Okuku 12
Practical Implications of Nyquist Sampling Theory
B. Okuku 13
Why are CD Sample Rates 44.1 KHz?
B. Okuku 14
Common Audio Formats
• Popular audio file formats include
– .au (Origin: Unix, Sun),
– .aiff (MAC, SGI),
– .wav (PC, DEC)
• Compression can be utilised in some of the above but
is not Mandatory
• A simple and widely used (by above) audio
compression method is Adaptive Delta Pulse Code
Modulation (ADPCM).
– Based on past samples, it predicts the next sample
and encodes the difference between the actual value
and the predicted value.
B. Okuku 15
Common Audio Formats (Cont.)
• Many formats linked to audio applications
• Most use some compression
• Common ones:
– Sounblaster — .voc (Can use Silence Deletion (More on this
later (Audio Compression))
– Protools/Sound Designer – .sd2
– Realaudio — .ra.
– Ogg Vorbis — .ogg
– AAC , Apple, mp4 — More Later
– Flac — .flac, More Later
– Dolby AC coding — More Later
• MPEG AUDIO— More Later (MPEG-3 and MPEG-4)
B. Okuku 16
Synthetic Sounds —reducing bandwidth?
B. Okuku 17
– Subtractive synthesis—modify a (complex) waveform
but taking out (Filtering) elements
– Granular Synthesis — use small fragments of existing
samples to make new sounds
– Physical Modelling — model how acoustic sound in
generated in software
– Sample-based synthesis—record and play back
recorded audio, often small fragments and audion
processed.
• Most modern Synthesisers use a mixture of samples
and synthesis.
B. Okuku 18