Professional Documents
Culture Documents
Chapter 2 Multimedia Basics and Representation
Chapter 2 Multimedia Basics and Representation
Chapter 2 Multimedia Basics and Representation
2
Characteristics of a Multimedia
Systems
Computer Controlled
• Producing the content of the information – e.g. by
using the authoring tools, image editor, sound and
video editor
• Storing the information – providing large and
shared capacity for multimedia information.
Transmitting the information – through the
network.
• Presenting the information to the end user – make
direct use of computer peripheral such as display
device (monitor) or sound generator (speaker).
8
Digitizing Audio
• That is the basic idea of digitizing a sound
unfortunately things are (practically speaking)
not so simple.
9
Computer Manipulation of Sound
• Once Digitised processing the digital sound is essentially
straightforward although it depends on the processing
you wish to do (e.g. volume is easier to code than
accurate reverb)
Sample Rates and Bit Size
How do we store each sample value (Quantisation)?
• 8 Bit Value
– (0-255)
• 16 Bit Value
– (Integer) (0-65535)
How many Samples to take?
– 11.025 KHz Speech (Telephone 8KHz)
– 22.05 KHz Low Grade Audio
(WWW Audio, AM Radio)
– 44.1 KHz CD Quality
10
Implications of Sample Rate and
Bit Size
Affects Quality of Audio
• Ears do not respond to sound in a linear fashion
• Decibel (dB) a logarithmic measurement of
sound
• 16-Bit has a signal-to-noise ratio of 98 dB -
virtually inaudible
• 8-bit has a signal-to-noise ratio of 50 dB
• Therefore, 8-bit is roughly 8 times as noisy
– 6 dB increment is twice as loud
11
Typical Audio Formats
• Popular audio file formats include .au (Unix
workstations), .aiff (MAC, SGI), .wav (PC,
DEC workstations)
13
MIDI
• It is a communication standard developed in the
early 1980s for electronic instruments and
computers.
• It specifies the hardware connection between
equipments as well as the format in which the
data are transferred between the equipments.
• Common MIDI devices include electronic music
synthesisers, modules, and MIDI devices in
common sound cards.
• General MIDI is a standard specified by MIDI
Manufacturers Association. To be GM compatible,
a sound generating device must meet the General
MIDI system level 1 performance requirement.
14
MIDI
• Musical Instrument Digital Interface
a protocol that enables computer, synthesizers, keyboards, and other
musical devices to communicate with each other.
Setup:
MIDI OUT of synthesizer is
connected to MIDI IN of sequencer.
MIDI OUT of sequencer is connected
to MIDI IN of synthesizer and
THRU IN OUT IN OUT
"through" to each of the additional
Synthesizer/Keyboard MIDI Interface/Sound Card sound modules.
(Sequencer) Working:
IN THRU
MIDI Module A During recording, the keyboard-
equipped synthesizer is used to send
IN THRU MIDI message to the sequencer,
MIDI Module B which records them.
Etc. During play back, messages are sent
Typical Sequencer setup out from the sequencer to the sound
modules and the synthesizer which
15
will play back the music.
MIDI: Data Format
• Information traveling through the hardware is encoded
in MIDI data format.
• The encoding includes note information like beginning of
note, frequency and sound volume; upto 128 notes
• The MIDI data format is digital
• The data are grouped into MIDI messages
• Each MIDI message communicates one musical event
between machines. An event might be pressing keys,
moving slider controls, setting switches and adjusting
foot pedals.
• 10 mins of music encoded in MIDI data format is about
200 Kbytes of data. (compare against CD-audio!)
16
MIDI files
When using computers to play MIDI music, the
MIDI data are often stored in MIDI files. Each
MIDI files contains a number of chunks. There are
two types of chunks:
• Header chunk — contains information about the
entire file: the type of MIDI file, number of tracks
and the timing.
• Track chunk — the actual data of MIDI track.
19
There are two ways of synthesizing sounds:
• FM Synthesis (Frequency Modulation)—Using
one sine wave to modulate another sine wave,
thus generating a new wave which is rich in
timbre. It consists of the two original waves, their
sum and difference and harmonics.
The drawbacks of FM synthesis are: the generated
sound is not real; there is no exact formula for
generating a particular sound.
• Wave-table synthesis— It stores representative
digital sound samples. It manipulates these
samples, e.g., by changing the pitch, to create the
complete range of notes.
20
MIDI Sound Attributes
21
Image Format and color model:
Analog versus bitmap images
• The visual world is analog, which is to say that
real-world images is a continuous spectrum of
colors.
a transparent GIF
35
chapter 2: Image format
GIF Versus JPG
• For photographic images JPG is better both for quality
and file size
• For line art GIF is better both for quality and file size
• The future of line art is probably in vector file formats
like SVG (Scalable Vector Graphics)
• VML (Vector Markup Language) is Microsoft backed
GIF JPEG
Best application Line Art, Image with few Photographs, Image with
color text many colors
How to reduce Interlace Interlace (Progressive)
display time?
Display speed Fast Slower, more computation
Benefits Transparency, Greatest compress for
Animation photographs, more color
Max. color 256 16.7 million
chapter 2: Image format 36
TIFF (Tagged Image File Format )
• TIFF can be lossless or lossy.
• The details of the image storage algorithm are
included as part of the file.
• TIFF is used almost exclusively as a lossless image
storage format that uses no compression at all.
• Most graphics programs that use TIFF do not use
compression .
• File sizes are quite big.
– (Sometimes LZW is used, but it is not universally
supported.)
PSD
•PSD is a proprietary format used by Photoshop.
•Working format to edit images in the software
•This package uses layers to build complex images, and layer
information may be lost in the nonproprietary formats such as
TIFF and JPG.
•However, it is best to save the product as a TIFF or JPG, so it
can be viewed in the future when software changes.
chapter 2: Image format 39
Number of colors
• Images have differing numbers of
color within them.
• Black and white images take up
the least amount of space with 1
bit of information.
• Current video cards are able to
display 24 bits of color per pixel.
• This makes it possible for 16
million colors to be displayed (224
colors).
• This requires a significant amount
of disk space.
chapter 2: Image format 40
8-bit and 24-bit photos
• Can you see the difference?
Green (0,255,0)
Red (255,0,0)
White
(FF,FF,FF)
(255,255,255)
chapter 2: Image format 43
6x6x6 Color Palette
Different Gamma
Value
• Codec
Frames per Second – The standard for FPS is 29.97, increasing the FPS allows
for more images per second thus a smoother image. Decreasing FPS will
make the video a bit choppy and not nearly as smooth.