© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Slides:



Advertisements
Similar presentations
3.01C Multimedia Elements and Guidelines 3.01 Explore multimedia systems, elements and presentations.
Advertisements

Multimedia: Digitised Sound Data Section 3. Sound in Multimedia Types: Voice Overs Special Effects Musical Backdrops Sound can make multimedia presentations.
Computer Fundamentals Multimedia MSCH 233 Lecture 10.
Digital Audio Teppo Räisänen LIIKE/OAMK. General Information Auditive information is transmitted by vibrations of air molecules The speed of sound waves.
Multimedia Authoring1 Introduction to Garageband Garageband is both a: MIDI sequencer Digital audio recorder Garageband: Real Instruments Tracks displayed.
A stereo audio file 1. Audio Channels Number of audio channels determines number of waveforms in a recording Two relevant types of recording Stereo recording.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
Digital Audio Production Munsang College Information and Communication Technology S2.
1. Digitization of Sound What is Sound? Sound is a wave phenomenon like light, but is macroscopic and involves molecules of air being compressed and expanded.
Podcasting in the Classroom Presented by: Jason Arruzza, AIS.
4.2 Multimedia Elements Audio 1. Learning Outcomes: At the end of the lesson, students should be: a) describe the purpose of using audio in multimedia.
Dale & Lewis Chapter 3 Data Representation Analog and digital information The real world is continuous and finite, data on computers are finite  need.
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.
Chapter 4 Fundamentals of Digital Audio “Computers and Creativity” Richard D. Webster, COSC 109 Instructor Office: 7800 York Road, Room 422 | Phone: (410)
AUDIO VIDEO FLASH DIGITAL MEDIA: COMMUNICATION AND DESIGN
Representation of Data in Computer Systems
 Continuous sequence of vibrations of air  (Why no sound in space? Contrary to Star Wars etc.)  Abstraction of an audio wave:  Ear translates vibrations.
CSC 8610 & 5930 Multimedia Technology Lecture 4 Digital Audio Representation.
By Frankie, K. F. Yip Chapter 6 Speech. By Frankie, K. F. YipLecture 6 - Sound2 Sound Waves.
1 Lecture 12: Multimedia Not in Web 101 Text  Important Multimedia Issues  Audio  Movies and Video  Multimedia and HTML Documents.
MULTIMEDIA - WHAT IS IT? DEFINITION 1: Uses a VARIETY of media ELEMENTS for instruction Media elements are: text, sound, graphics, moving images (real.
CHAPTER SEVEN SOUND. CHAPTER HIGHLIGHTS Nature of sound – Sine waves, amplitude, frequency Traditional sound reproduction Digital sound – Sampled – Synthesized.
AUDIO MEDIA 1 Created } “Borrowed” } Microphone MIDI keyboard CD’s & flash drives Internet Audio Sources 2.
Sound or Audio, whichever you prefer –MIDI Files.midi or.mid (Musical Instrument Digital Interface) use for instrumental music. –This format is supported.
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
1 1 Introduction to Computer Science بسم الله الرحمن الرحيم MULTIMEDIA LEVEL -9 King Khalid University Kingdom of Saudi Arabia Ministry of Higher Education.
Indicator * File types vary based on: * Ability to compress sound * Ability to maintain sound quality * Universal or software dependent * Sound.
More Meaningful Jargon Or, All You Need to Know to Speak Like a Geek Sound.
How Analog and Digital Recording Works Analog converted to digital via an ADV (Analog to Digital Converter = stream of numbers) On playback: digital converted.
Digital Recording. Digital recording is different from analog in that it doesn’t operate in a continuous way; it breaks a continuously varying waveform.
Sound in Multimedia Psychology of sound what do you use it for? what techniques for its communication exist? Science of sound why does it exist? how it.
Multimedia and weBLOGging Grade 7-9 | Cahaya Bangsa Classical School (C) 2010 Digital Media Production Facility 04 – Audio Basic.
Week 12 Lecture 1 Audio and Video File Formats. Audio on the web Can be linked to and downloaded like any other file Traditional audio files are quite.
Audio Streaming © Nanda Ganesan, Ph.D.. Audio File Features Audio file is a record of captured sound that can be played back –The WAV File is an example.
Information Systems Design and Development Media Types Computing Science.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Digital Sound Dr. Kairui Chen GGC.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 4 Fundamentals of Digital Audio
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Sound / Audio.
III Digital Audio III.5 (W Oct 18) MP3 and other digital audio file formats.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Multimedia: Digitised Sound Data
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Digital TV..
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Image File Size and File Compression
3.01C Multimedia Fair Uses Guidelines and Elements
Multimedia: making it Work
Web Design and Development
3.01C Multimedia Elements and Guidelines
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
3.01C Multimedia Fair Uses Guidelines and Elements
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 4: Representing sound
3.01C Multimedia Fair Uses Guidelines and Elements
Assist. Lecturer Safeen H. Rasool Collage of SCIENCE IT Dept.
3.01C Multimedia Elements and Guidelines
(c) V/2-Com (Verhaart) Multimedia Elements & standards 4/15/2019 (c) V/2-Com (Verhaart)
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
3.01C Multimedia Fair Uses Guidelines and Elements
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Presentation transcript:

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. "Digital Media Primer" Yue-Ling Wong, Copyright (c)2016 by Pearson Education, Inc. All rights reserved. © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Chapter 4 Fundamentals of Digital Audio Part 3 File Size, File Compression, and File Types of Digital Audio © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

In this lecture, you will learn: The effects of sampling rate, bit depth, and number of channels on the audio file size The general strategies to reduce audio file size How to choose sampling rate and bit depth How to choose an audio file type © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Choices of Sampling Rate and Bit Depth Higher sampling rate and bit depth: deliver better fidelity of a digitized file result in a larger file size (undesirable) © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Let's estimate the file size of a 1-minute CD-quality audio file © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

1-minute CD Qualtiy Audio Sampling rate = 44100 Hz (i.e., 44,100 samples/second) Bit depth = 16 (i.e., 16 bits/sample) Stereo (i.e., 2 channels: left and right channels) © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

File Size of 1-min CD-quality Audio 1 minute = 60 seconds Total number of samples = 60 seconds  44,100 samples/second = 2,646,000 samples Total number of bits required for these many samples = 2,646,000 samples  16 bits/sample = 42,336,000 bits This is for one channel. Total bits for two channels = 42,336,000 bits/channel  2 channels = 84,672,000 bits © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

File Size of 1-min CD-quality Audio 84,672,000 bits = 84,672,000 bits / (8 bits/byte) = 10,584,000 bytes = 10,584,000 bytes / (1024 bytes/KB)  10336 KB = 10336 KB / (1024 KB/MB)  10 MB © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Estimate Network Transfer Time Suppose you are using 1.5Mbps (mega bits per second) broadband to download this 1-minute audio. The time is no less than 84,672,000 bits / (1.5 Mbps) = 84,672,000 bits / (1,500,000 bits/seconds)  56 seconds © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

File Size of 1-hour CD-quality Audio  10 MB/minute  60 minutes/hour = 600 MB/hour © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

General Strategies to Reduce Digital Media File Size Reduce sampling rate Reduce bit depth Apply compression For digital audio, these can also be options: reducing the number of channels shorten the length of the audio © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Reduce Sampling Rate Sacrifices the fidelity of the digitized audio Need to weigh the quality against the file size Need to consider: human perception of the audio (e.g., How perceptibe is the audio with lower sampling rate?) how the audio is used music: may need higher sampling rate short sound clips such as explosion and looping ambient background noise: may work well with lower sampling rate © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Sampling Rate Examples 11,025 Hz AM Radio Quality/Speech 22,050 Hz Near FM Radio Quality (high-end multimedia) 44,100 Hz CD Quality 48,000 Hz DAT (digital audio tape) Quality 96,000 Hz DVD-Audio Quality 192,000 Hz DVD-Audio Quality © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Estimate Thresholds of Sampling Rate Based on Human Hearing Let's consider these two factors: Human hearing range A rule called Nyquist's theorem © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Human Hearing Range Human hearing range: 20 Hz to 20,000 Hz Most sensitive to 2,000 Hz to 5,000 Hz © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Nyquist Theorem We must sample at least 2 points in each sound wave cycle to be able to reconstruct the sound wave satisfactorily. Sampling rate of the audio  twice of the audio frequency (called a Nyquist rate) Sampling rate of the audio is higher for audio with higher pitch © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Choosing Sampling Rate Given the human hearing range (20 Hz to 20,000 Hz) and Nyquist Theorem, why do you think the sampling rate (44,100 Hz) for the CD-quality audio is reasonable? Nyquist rate for the 20,000 Hz is 40,000 Hz. 44,1000 Hz  twice of the audio frequency (Nyquist rate) © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Choosing Sampling Rate If we consider human ear's most sensitive range of frequency (2,000 Hz to 5,000 Hz), then what is the lowest sampling rate may be used that still satisfies the Nyquist Theorem? 11,025 Hz AM Radio Quality/Speech 22,050 Hz Near FM Radio Quality (high-end multimedia) 44,100 Hz CD Quality 48,000 Hz DAT (digital audio tape) Quality 96,000 Hz DVD-Audio Quality 192,000 Hz DVD-Audio Quality A © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Effect of Sampling Rate on File Size File size = duration  sampling rate  bit depth  number of channels File size is reduced in the same proportion as the reduction of the sampling rate Example: Reducing the sampling rate from 44,100 Hz to 22,050 Hz will reduce the file size by half. © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Effect of Bit Depth on File Size File size = duration  sampling rate  bit depth  number of channels File size is reduced in the same proportion as the reduction of the bit depth Example: Reducing the bit depth from 16-bit to 8-bit will reduce the file size by half. © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Most Common Choices of Bit Depth usually sufficient for speech in general, too low for music 16-bit minimal bit depth for music 24-bit 32-bit © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Audio File Compression Lossless Lossy gets rid of some data, but human perception is taken into consideration so that the data removed causes the least noticeable distortion e.g. MP3 (good compression rate while preserving the perceivably high quality of the audio) © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Effect of Number of Channels on File Size File size = duration  sampling rate  bit depth  number of channels File size is reduced in the same proportion as the reduction of the number of channels Example: Reducing the number of channels from 2 (stereo) to 1 (mono) will reduce the file size by half. © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Common Audio File Types Acronym For Originally Created By File Info & Compression Platforms .wav IBM Microsoft Compressed or uncompressed One of the HTML5 audio formats Windows Plays in Web browsers that support the .wav format of HTML5 audio (Firefox, Safari, Chrome, and Opera) .mp3 MPEG audio layer 3 Moving Pictures Experts Group Good compression rate with perceivably high quality sound Cross-platform Plays in Web browsers that support the .wav format of HTML5 audio (Safari and IE) .m4a MPEG-4 format without the video data AAC compression; same compression as the MPEG-4 H.264 without the video data Plays in Web browsers that support the AAC format of HTML5 audio (Safari, IE, and Chrome) © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Common Audio File Types Acronym For Originally Created By File Info & Compression Platforms .ogg or .oga Xiph.Org Foundation Usually referred to as Ogg Vorbis format One of the HTML5 audio formats Plays in Web browsers that support the Ogg Vorbisformat of HTML5 audio (Firefox, Chrome, and Opera) .mov QuickTime movie Apple Not just for video supports audio track and a MIDI track a variety of sound compressors files can be streamed "Fast Start" technology Cross-platform; requires QuickTime player © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Common Audio File Types Acronym For Originally Created By File Info & Compression Platforms .aiff Audio Interchange File Format Apple compressed, uncompressed Mac, Windows .au .snd Sun compressed Sun, Unix, Linux .ra .rm Real Audio Real Systems compressed; can be streamed with Real Server Cross-platform; requires Real player .wma Window Media Audio Microsoft © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Choosing an Audio File Type Determined by the intended use File size limitation Intended audience Whether as a source file © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. File Size Limitations Is your audio used on the Web? file types that offer high compression streaming audio file types © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Intended Audience What is the equipment that your audience will use to listen to your audio? If they are listening on computers, what are their operating systems? cross-platform vs. single platform © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Whether as a Source File If you are keeping the file for future editing, choose a file type: uncompressed allows lossless compression © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Questions Note to instructor: Depending on your preference, you may want to go over the review questions at the end of this lecture as an instant review or at the beginning of next lecture to refresh students' memory of this lecture. © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question True/False: 8-bit is generally considered to be adequate for recording music. False © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question True/False: MP3 is a good file format to keep as a source file for further editing. False © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Which of the following file extensions indicate audio files? BMP WAV JPEG AIFF MP3 GIF JPG PSD TIFF WMF WAV AIFF MP3 © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question According to Nyquist’s theorem, we must sample at least ___ points in each sound wave cycle to be able to reconstruct the sound wave satisfactorily. In other words, the sampling rate of the audio must be at least ___ of the audio frequency. 2 twice © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question The reduction of a digital audio file size can be achieved by ___. reducing the sampling rate reducing the pitch of the audio reducing the bit depth reducing the amplitude of the audio applying file compression techniques A, C, and E © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Higher ___ will result in larger file size. amplitude frequency sampling rate bit depth dynamic range C and D © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Reducing the bit depth from 16-bit to 8-bit will ___. have no effect on the file size decrease the file size by half decrease the file size to 1/8-th decrease the file size to 1/16-th B © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Reducing the sampling rate from 44,100 Hz to 22,050 Hz will ___. have no effect on the file size decrease the file size by half decrease the file size to about 1/22-th decrease the file size to about 1/44-th B © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Reducing the number of channels from 2 (stereo) to 1 (mono) will ___. have no effect on the file size decrease the file size by half decrease the file size to about 1/5-th decrease the file size to about 1/10-th B © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.