Digital Media. Lecture 2: SemesterOverview. Georgia Gwinnett College School of Science and Technology Dr. Mark Iken

Similar documents
Digital Media. Daniel Fuller ITEC 2110

Elementary Computing CSC 100. M. Cheng, Computer Science

CSC 170 Introduction to Computers and Their Applications. Lecture #1 Digital Basics. Data Representation

CHAPTER 10: SOUND AND VIDEO EDITING

Learning Programme Fundamentals of data representation AS Level

Data Representation. Reminders. Sound What is sound? Interpreting bits to give them meaning. Part 4: Media - Sound, Video, Compression

CS 074 The Digital World. Digital Audio

Chapter 1. Data Storage Pearson Addison-Wesley. All rights reserved

Lecture (01) Digital Systems and Binary Numbers By: Dr. Ahmed ElShafee

Binary representation and data

Lecture (01) Introduction Number Systems and Conversion (1)

Computing in the Modern World

Lecture #3: Digital Music and Sound

Lecture 1: What is a computer?

Bits, bytes and digital information. Lecture 2 COMPSCI111/111G

Lecture 16 Perceptual Audio Coding

Standard File Formats

Data Representation 1

OCR J276 GCSE Computer Science

计算原理导论. Introduction to Computing Principles 智能与计算学部刘志磊

ITEC 1011 Introduction to Information Technologies

GCSE Computing. Revision Pack TWO. Data Representation Questions. Name: /113. Attempt One % Attempt Two % Attempt Three %

Digital Recording and Playback

Digital Media. Daniel Fuller ITEC 2110

A Digital Audio Primer

OBJECTIVES After reading this chapter, the student should be able to:

Discussion. Why do we use Base 10?

Data Storage. Slides derived from those available on the web site of the book: Computer Science: An Overview, 11 th Edition, by J.

Data Representation and Networking

INTRODUCTION TO COMPUTERS

"Digital Media Primer" Yue- Ling Wong, Copyright (c)2011 by Pearson EducaDon, Inc. All rights reserved.

Computer Systems. IGCSE OCR AQA Edexcel Understand the term. embedded system and how an Purpose of embedded system

Sampling & Sequencing. Combining MIDI and audio

Teaching KS3 Computing. Session 5 Theory: Representing text and sound Practical: Building on programming skills

2nd Paragraph should make a point (could be an advantage or disadvantage) and explain the point fully giving an example where necessary.

Export Audio Mixdown

Introduction to Computer Science (I1100) Data Storage

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

General Computing Concepts. Coding and Representation. General Computing Concepts. Computing Concepts: Review

CSE COMPUTER USE: Fundamentals Test 1 Version D

Compression; Error detection & correction

INTRODUCTORY COMPUTER NETWORKS PHYSICAL LAYER, DIGITAL TRANSMISSION FUNDAMENTALS. Faramarz Hendessi

Common Number Systems

Introducing Audio Signal Processing & Audio Coding. Dr Michael Mason Senior Manager, CE Technology Dolby Australia Pty Ltd

Analogue vs. Discrete data

Data Representation. Types of data: Numbers Text Audio Images & Graphics Video

Binary Codes. Dr. Mudathir A. Fagiri

FA269 - DIGITAL MEDIA AND CULTURE

Fundamental of Digital Media Design. Introduction to Audio

Bits and Bit Patterns

Introducing Audio Signal Processing & Audio Coding. Dr Michael Mason Snr Staff Eng., Team Lead (Applied Research) Dolby Australia Pty Ltd

Electronic Data and Instructions

b A bit is the basic unit for storing electronic data, for example an MP3 file. The term bit is a

Data Representation From 0s and 1s to images CPSC 101

Compressed Audio Demystified by Hendrik Gideonse and Connor Smith. All Rights Reserved.

College of Computer and Information Sciences Department of Computer Science. CSC 220: Computer Organization. Unit1 Number Systems

Access to the Web. Coverage. Basic Communication Technology. CMPT 165: Review

Binary Values. CSE 410 Lecture 02

Final Examination Semester 2 / Year 2011

Goals for this Week. CSC 2400: Computer Systems. Bits, Bytes and Data Types. Binary number system. Finite representations of binary integers

Worksheet - Storing Data

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

Streaming video. Video on internet. Streaming video, live or on demand (VOD)

Data Representation. Data is more than just numbers! Representations of Text ASCII. Interpreting bits to give them meaning.

Compression; Error detection & correction

Implementation of FPGA Based MP3 player using Invers Modified Discrete Cosine Transform

Unit 2 Digital Information. Chapter 1 Study Guide

3 Data Storage 3.1. Foundations of Computer Science Cengage Learning

Korea University of Technology and Education

Bits, bytes, binary numbers, and the representation of information

AET 1380 Digital Audio Formats

Digital Music. You can download this file from Dig Music May

Digital Communication Prof. Bikash Kumar Dey Department of Electrical Engineering Indian Institute of Technology, Bombay

Module 1: Information Representation I -- Number Systems

Lecture C1 Data Representation. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007

Example 1: Denary = 1. Answer: Binary = (1 * 1) = 1. Example 2: Denary = 3. Answer: Binary = (1 * 1) + (2 * 1) = 3

What's in a computer?

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION

Objectives. Connecting with Computer Science 2

CSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.

ITNP80: Multimedia! Sound-II!

CSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.

Networking Applications

Lossy compression. CSCI 470: Web Science Keith Vertanen

Chapter One. Introduction to Computer System

Preparing Music and Narration for AV s

COS 116 The Computational Universe Laboratory 4: Digital Sound and Music

The type of all data used in a C++ program must be specified

COS 116 The Computational Universe Laboratory 4: Digital Sound and Music

Fundamentals of Programming (C)

What is Data Storage?

Switching to AQA from Edexcel

Sir Sadiq s computer notes for class IX. Chapter no 4. Storage Devices

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

Lecture 19 Media Formats

o MAC (6/18 or 33%) o WIN (17/18 or 94%) o Unix (0/18 or 0%)

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

Gerald's Column by Gerald Fitton

Lossy compression CSCI 470: Web Science Keith Vertanen Copyright 2013

10.1. Unit 10. Signed Representation Systems Binary Arithmetic

Transcription:

Digital Media Lecture 2: SemesterOverview Georgia Gwinnett College School of Science and Technology Dr. Mark Iken

Refer to Supplemental text: Counting like an alien Networking issues Sound and Sampling

The Big Question: How do you take stuff found in the real world Store it as numbers on a computer So that it can be manipulated and shared?

The answer: It depends on what it is you are trying to capture We will have to know about the nature of the real world Some things can be counted Some things need to be measured The details of this will come a bit later

As previously seen using hexfiend: Text, audio, images and videos are all stored in a file as numbers on the computer Some of this is meant for human consumption (ASCII) Some of this is meant for program consumption (the header) Some is used by the program to save and represent the world

But first: Numbering systems! Which is correct? 5 + 5 = 10 1 + 1 = 10 1 + 7 = 10 1 + F = 10

But first: Numbering systems! Which is correct? The answer is: It depends! 5 1 1 1 + + + + 5 = 10 (in decimal) 1 = 10 (in binary) 7 = 10 (in octal) F = 10 (in hexadecimal)

But first: Numbering systems! In this class we deal with Decimal Binary Hexadecimal We We will not be converting will not do math (a small lie) We will learn how to count

The process of counting is simple No matter which numbering system You count starting with the first digit You continue to count through all the digits available to you When you run out of digits, you go back to the first digit Add 1 to the column to the left

How many things can you count if you have 4 [ ] positions? your numbering system here In decimal: 0000 -> 9999 In binary: 0000 -> 1111 In hexadecimal: 0000 -> FFFF You can count 10,000 things You can count 16 things You can count 65,536 things

How many things can you count if you have 4 [ The your numbering system here ] positions? formula is: the number of digits in the numbering system raised to the power of the number of positions you are using [#digits in the system] ** [# positions used together] In decimal: 0000 -> 9999 10 ** 4 = 10,000 things In binary: 0000 -> 1111 2 ** 4 = 16 things In hexadecimal: 0000 -> FFFF 16 ** 4 = 65,536 things

How do you convert stuff in the real world into numbers that can be placed on a computer? It depends It depends on whether the thing is a discrete thing or a continuous thing

Stuff (phenomena) in the real world Can be discrete These either ARE or ARE NOT These can be counted The number of cars in a parking lot The number of beans in a jar Can be continuous These have no breaks These must be measured The height of a wave The atmospheric pressure

Stuff (phenomena) in the real world Discrete can be counted 5 cars 11,223 beans Continuous must be MEASURED The height of a wave 3.76 feet from crest to trough The atmospheric pressure 30.02 inches of mercury

The problem is Most of the interesting stuff is continuous! Sound is continuous compression waves Light is continuous electromagnetic waves To store continuous phenomena on a computer you must measure it and store the measurement

Sampling: The process of converting continuous phenomena into discrete so that you can store it as a number on the computer

But before we talk about sampling What this stuff means: Bit: binary digit Byte: 8 Bits KB: kilo byte (1,000 bytes) MB: mega byte (1,000,000 bytes) GB: giga byte (1,000,000,000 bytes) TB: tera byte (1,000,000,000,000 bytes) KBPS: kilo (1,000) bits per second MBPS: mega (1,000,000) bits per second

What this stuff means: Strictly speaking In computing the meanings of K, M, G are powers of 2 K = 2 ** 10 = 1,024 not 1,000 M = 2 ** 20 = 1,048,576 not 1,000,000 G = 2 ** 30 = 1,073,710,825 not 1,000,000,000 But in this class, either will do

What this stuff means: And finally In some classes B and b when used in abbreviations mean Bytes and bits respectively This can be confusing For this class When abbreviating communication speeds the b (or B) means bits When abbreviating file size the b (or B) means bytes

What this stuff means: So Since kbps (or KBPS) is a communication speed the b (or B) means bits Since mb (or MB) is a file size the b (or B) means bytes

Network access Changing all the time Is getting faster and faster Is available in a variety of forms In this class we will discuss a few of them http://wiki.ggc.edu/wiki/networkingissues Let s get started: Networking issues

Network access Can be symmetric The speed into the network is the same as the speed out But now asymmetric is fairly common in the home The speed out of the network is faster than the speed into the network Unless you are running a server Servers usually have very high speed, symmetric connections to the network

Network access ADSL example Asymmetric Digital Subscriber Line Speed in can be 640 kbps Speed out can be 6.1 mbps Prehistoric example: dial up modem Asymmetric Speed in is 36,000 bps Speed out as high as 56,000 bps

Network access If you are running a commercial server (like you would have if you were running an online business) you may want faster service T1 and T3 are faster and symmetric T1 can be 1.544 mbps T3 can be 44.7 mbps

And now Sampling How many samples do you need to faithfully capture a continuous phenomena? The answer: It depends! (of course!) What does it depend on? It depends on the frequency of the continuous phenomena you are trying to capture http://wiki.ggc.edu/wiki/soundintherealworldandsampling Capturing sound in the real world? Sampling!: Sound and Sampling

How many samples are needed? If you take too few samples If you take too many samples the sound quality will degrade but the file size will be small the sound quality will be excellent but the file size can get HUGE! So Where s the sweet spot?

How many samples are needed? Nyquist states that you need to sample at twice the frequency of the highest frequency you want to capture and faithfully reproduce With humans Since some of us can hear 20,000 cps You would need to sample at 40,000 cps CD quality? (with a little wiggle room) 44,100 samples per second

Sampling sound Sound radiates out from the source like the waves created when you toss a stone into a pond In the air it travels at ~760 mph

How many samples are needed? Now, an example to show how and why the Nyquist rate works Below is a note played on a violin and captured with an oscilloscope

A note played on a violin Sampled at 625 samples per second

A note played on a violin Sampled at 1250 samples per second

A note played on a violin Sampled at 2500 samples per second

A note played on a violin Sampled at 5000 samples per second

A note played on a violin Sampled at 10,000 samples per second

A note played on a violin Sampled at 20,000 samples per second

An example: Fields of Gold We played Fields of Gold in class CD quality is: 44,100 samples per second 16 bits (2 bytes) per sample with 16 bits you can capture 2**16 = 65,536 different levels Looking at the file: It is 4 minutes and 59 seconds The file size is 1,201,173 bytes long Does this make sense?

An example: Fields of Gold 4 minutes and 59 seconds = 4 x 60 + 59 = 299 seconds 299 seconds x 44,100 sps = 13,156,000 samples 13,156,000 samples x 2 bytes per sample = 26,371,800 bytes But this is stereo (two channels) so 26,371,800 bytes x 2 channels = 52,743,600 bytes That s ~52 MB but we said that the music was 1.2 MB How is this possible? HMMMMMmmmm

An example: Fields of Gold Fields of Gold is an MP3 It s compressed! If we had the original CD it would be ~52 MB in length

Types of compressed files MP3 is lossy What you get back after compressing the file is NOT exactly the same as the original But it s close enough Images and sound can use lossy compression techniques (more later) Zip is lossless What you get back is EXACTLY what you started with Applications must be losslessly compressed All the 0s and 1s have to be exactly the same or the program will not run

Sampling The process used to convert continuous phenomena in the real world to discrete numbers stored on a computer But this process makes an alias of the original; it s an approximation of the original that does have faults These negative side effects are called artifacts

Sampling artifact examples: With audio, one artifact is quantization hiss With video, one artifact is retrograde motion; wheels look to turn backwards http://wiki.ggc.edu/images/3/35/retrogradegmcarcadiabroadbandhigh.mov http://wiki.ggc.edu/images/8/85/jrowanspring2012croppedretrogrademotionclip.mov Moving images: Film With images one artifact is posterization http://wiki.ggc.edu/wiki/bitmappedimageditheringposterizationjrowansummer2012 Images as piles of numbers: Bitmapped images: Dithering and posterization

Another sampling artifact: Interference

A brief look at the Internet http://wiki.ggc.edu/wiki/networkingissues Let s get started: Networking issues

A brief look at the Internet: How to request stuff Uniform Resource Locator (URL) http://www.amazon.com/newstuff/index.html Has 3 parts Protocol HTTP:// FTP:// SMTP:// Domain name Ends in.edu.com.gov.org Directory structure and the requested page /newstuff/index.html http://wiki.ggc.edu/wiki/networkingissues Let s get started: Networking issues

A brief look at the Internet: How to request stuff Uniform Resource Locator (URL) http://www.amazon.com/newstuff/index.html Has 3 parts Protocol HTTP:// FTP:// SMTP:// Domain name Ends in.edu.com.gov.org Directory structure and the requested page /newstuff/index.html http://wiki.ggc.edu/wiki/networkingissues Let s get started: Networking issues

A brief look at the Internet: How to request stuff Uniform Resource Locator (URL) http://www.amazon.com/newstuff/index.html Has 3 parts Protocol HTTP:// FTP:// SMTP:// Domain name Ends in.edu.com.gov.org Directory structure and the requested page /newstuff/index.html http://wiki.ggc.edu/wiki/networkingissues Let s get started: Networking issues

A brief look at the Internet http://wiki.ggc.edu/wiki/networkingissues Let s get started: Networking issues

A brief look at the Internet http://wiki.ggc.edu/wiki/networkingissues Let s get started: Networking issues