part a multimedia production

25
Part A Multimedia Production Rico Yu

Upload: mohawk

Post on 09-Jan-2016

28 views

Category:

Documents


0 download

DESCRIPTION

Part A Multimedia Production. Rico Yu. Part A Multimedia Production. Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video. Multimedia. Text Graphics Audio information Animation - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Part A Multimedia Production

Part A Multimedia Production

Rico Yu

Page 2: Part A Multimedia Production

Part A Multimedia Production

Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video

Page 3: Part A Multimedia Production

Multimedia

Text Graphics Audio information Animation Videos

Page 4: Part A Multimedia Production

Audio Information (Sound)

Nature of sound MIDI Recorded Audio

Page 5: Part A Multimedia Production

1. Nature of Sound

Wave pattern Loudness, pitch

Page 6: Part A Multimedia Production

Loudness (聲量 ) vs pitch (音高 )

Curve , sound louder Curve narrower, pitch

Page 7: Part A Multimedia Production

Frequency (頻率 )

e.g. 1kHz = 1000 Hz

= 1000 peaks per second

Frequency = # of peaks occur / second

Page 8: Part A Multimedia Production

Frequency

Frequency

Audible sound 20 Hz ~ 20 kHz

Human speech < 4 kHz

Bat 20 ~ 120 kHz

Page 9: Part A Multimedia Production

2. MIDI

Musical Instrument Digital Interface– Stores musical notes played by piano, violin, etc.– Sound card synthesizes (合成 ) these notes

MIDI stores codes only– File size ~ several kB

Page 10: Part A Multimedia Production

3. Recorded Audio

Digital Audio– Sound recorded digitised, stored in PC– All kinds of sound recorded from mic. digital audio

by sound card– Digitisation

Analogue waves patternDiscrete values(Digital value)

Page 11: Part A Multimedia Production

3. Recorded Audio

Digitisation

Digitisation

Sampling

Sampling Rate Sampling Size

Page 12: Part A Multimedia Production

Sampling Rate

# of times measured height of sound per sec. measured in Hz

Sampling Rate > 2 x Max. Sound Freq.

Page 13: Part A Multimedia Production

Sampling Rate

Higher the sampling rate, better the quality, BUT larger the file size.

Page 14: Part A Multimedia Production

Sampling Rate

Sampling Rate of Audio CD is 44.1 kHz– Max. Audible freq. is 20 kHz

Sampling Rate of Human speech is 11.1 kHz– Max. freq. of human is 4 kHz

Page 15: Part A Multimedia Production

Sampling Size

# of bits used to stored If sampling size small

– very soft and loud sound can’t recorded

quality of recorded sound depends on it

Page 16: Part A Multimedia Production

Sampling Size

Sampling Rate Sampling Size

Spoken voice 11.1 kHz 8 – bit

CD-Audio 44.1 kHz 16 – bit

Professional recording

44.1 kHz 24 – bit

Page 17: Part A Multimedia Production

Mono and Stereo

Mono– Single Channel

Stereo– 2 Channels– Twice the file size of mono

Page 18: Part A Multimedia Production

Calculating Sound file size

File size = Channel # x Sampling rate x Sampling size

x Duration / 8 bytes

Page 19: Part A Multimedia Production

Calculating Sound file size

e.g.

Given that a sampling rate of 44.1 kHz and a sampling size of 16 bits is used to record a sound for one hour. What is the uncompressed file size if (a) the sound is mono,

(b) the sound is stereo?

Page 20: Part A Multimedia Production

Calculating Sound file size

Solution(a) For mono sound, the # of channel is one. Thus,

File size= 1 x 44.1 x 103 x 16 x (1 x 60 x 60) bits

= 2.54 x 109 bits

= 2.54 x 109 / 8 bytes

= 3.17 x 108 bytes

~ 300 MB

(b) For stereo sound, the file size is twice, i.e. ~600MB

Page 21: Part A Multimedia Production

Calculating Sound file size

Ex.

Given that a sampling rate of 44.1 kHz and a sampling size of 24 bits is used to record a sound for half an hour. What is the uncompressed file size if (a) the sound is mono,

(b) the sound is stereo?

Page 22: Part A Multimedia Production

Calculating Sound file size

Solution(a) For mono sound, the # of channel is one. Thus,

File size = 1 x 44.1 x 103 x 24 x (30 x 60) bits

= 1.91 x 109 bits

= 1.91 x 109 / 8 bytes

= 2.38 x 108 bytes

~ 238 MB

(b) For stereo sound, the file size is twice, i.e. ~476MB

Page 23: Part A Multimedia Production

Compressing Sound file

Raw sound is WAV, uncompressed. WAV MP3, compressed. MP3

– Lossy compression– Can compress CD audio by 12

Page 24: Part A Multimedia Production

Bit Rate

The speed of data transmission

Bit Rate = Channel # x Sampling Rate x Sampling Size

Page 25: Part A Multimedia Production

Bit Rate

e.g.

The amount of bits for a 16-bit stereo music at 44.1kHz transferred in each second is

2 x 16 x 44.1k

= 1411.2kbps bps = bits per second