Week 7 LBSC 690 Information Technology Multimedia.

Slides:



Advertisements
Similar presentations
MPEG: A Video Compression Standard for Multimedia Applications Václav Hlaváč CTU Prague, Initial material were slides of Didier.
Advertisements

ITIS 1210 Introduction to Web-Based Information Systems Chapter 36 How Music and Audio Work on the Internet.
Data Compression CS 147 Minh Nguyen.
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time, Interactive Multimedia: Internet.
EE442—Multimedia Networking Jane Dong California State University, Los Angeles.
Week 4 LBSC 690 Information Technology Multimedia.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
Week 4 LBSC 690 Information Technology Multimedia.
Week 4 LBSC 690 Information Technology Multimedia.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
Week 4 LBSC 690 Information Technology Multimedia.
Copyright 2003 Monash University IMS5401 Web-based Information Systems Topic 2: Elements of the Web (d) Digital representation.
LBSC 690 Session #11 Multimedia Jimmy Lin The iSchool University of Maryland Wednesday, November 12, 2008 This work is licensed under a Creative Commons.
Class 11 LBSC 690 Information Technology Multimedia.
LBSC 690: Week 9 Multimedia Jimmy Lin College of Information Studies University of Maryland Monday, April 2, 2007.
Image Representation CS105. Data Representation Text representation – ASCII character set – Unicode – Data compression Images!
Image Compression CSC CSC Computing with Images2 How do we use fewer bytes to encode the same or similar information? Reduce redundancy Take.
Image Formation and Digital Video
I Power Multimedia Technology Video Data. Video data Video is a sequence of individual pictures or frames, taken one after another. These are played back.
Representing Images. Goals for Image Representation digitization & resolution digitization & resolution representing color representing color color depth.
4.1 Digital Multimedia Elements
Using Multimedia on the Web
RTSP Real Time Streaming Protocol
Media File Formats Jon Ivins, DMU. Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 14 Multimedia Networking.
Session 4 LIS 7008 Information Technologies Multimedia LSU/SLIS.
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
ECE242 L30: Compression ECE 242 Data Structures Lecture 30 Data Compression.
Faculty of Sciences and Social Sciences HOPE Website Development Graphics Stewart Blakeway FML 213
The Application Layer Chapter 7. DNS – The Domain Name System a)The DNS Name Space b)Resource Records c)Name Servers.
CSCI-235 Micro-Computers in Science Hardware Part II.
Video Basics. Agenda Digital Video Compressing Video Audio Video Encoding in tools.
Announcements Chapter 11 for today No quiz this week Instructor got behind…. We'll be back in MGH389 on Friday.
Copyright 1998, S.D. Personick. All Rights Reserved1 Telecommunications Networking I Lectures 2 & 3 Representing Information as a Signal.
MULTIMEDIA - WHAT IS IT? DEFINITION 1: Uses a VARIETY of media ELEMENTS for instruction Media elements are: text, sound, graphics, moving images (real.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
Multimedia and The Web.
Video Video.
DIGITAL Video. Video Creation Video captures the real world therefore video cannot be created in the same sense that images can be created video must.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
Multimedia, Quality of Service: What is it?
Chapter 2 : Business Information Business Data Communications, 6e.
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time Multimedia: Internet Phone Case.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Data Compression. Compression? Compression refers to the ways in which the amount of data needed to store an image or other file can be reduced. This.
Still-image compression Moving-image compression and File types.
Multimedia ITGS. Multimedia Multimedia: Documents that contain information in more than one form: Text Sound Images Video Hypertext: A document or set.
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
Image Compression CSC CSC Computing with Images2 Image Compression Goal: reduce redundancy –Encode the same information using fewer bits.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
CSC Computing with Images1 File formats for images on the web CSC 1040.
Internet multimedia: simplest approach audio, video not streamed: r no, “pipelining,” long delays until playout! r audio or video stored in file r files.
Class 9 LBSC 690 Information Technology Multimedia.
Streaming and Content Delivery SECTIONS 7.4 AND 7.5.
CSCI-100 Introduction to Computing Hardware Part II.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Video Basics.
Networking Applications
Week 4 LBSC 690 Information Technology
Data Compression.
Networking Applications
Multimedia networking: outline
Web Design and Development
Multimedia networking: outline
Presentation transcript:

Week 7 LBSC 690 Information Technology Multimedia

Agenda Questions Images Video Audio Streaming SMILe XML? (HCI)

Georges Seurat, A Sunday Afternoon on the Island of La Grande Jatte Nothing new…

Visual Perception Closely spaced dots appear solid –But irregularities in diagonal lines can stand out Any color can be produced from just three –Red, Blue and Green: “additive” primary colors High frame rates produce apparent motion –Smooth motion requires about 24 frames/sec Visual acuity varies markedly across features –Discontinuities easily seen, absolutes less crucial

Basic Image Coding Raster of picture elements (pixels) –Each pixel has a “color” Binary - black/white (1 bit) Grayscale (8 bits) Color (3 colors, 8 bits each) –Red, green, blue Screen –A 1024x768 image requires 2.4 MB So a picture is worth 400,000 words!

Monitor Characteristics Technology (CRT, Flat panel) Size (15, 17, 19, 21 inch) –Measured diagonally –For CRT, key figure is “viewable area” Resolution –640x480, 800x600, 1024x768, 1280x1024, … Layout (three dot, lines) Dot pitch (0.26, 0.28) Refresh rate (60, 72, 80 Hz)

Pop Quiz How many images can a 1 GB SD store? –But mine holds about 500. How?

Compression Goal: reduce redundancy –Send the same information using fewer bits Originally developed for fax transmission –Send high quality documents in short calls Two basic strategies: –Lossless: can reconstruct exactly –Lossy: can’t reconstruct, but looks the same

Palette Selection Opportunity: –No picture uses all 16 million colors –Human eye does not see small differences Approach: –Select a palette of 256 colors –Indicate which palette entry to use for each pixel –Look up each color in the palette … … “The rain in Spain falls mainly in the plain” → [*=ain,^=in] “ The r* ^ Sp* falls m*ly ^ the pl*”

Run-Length Encoding Opportunity: –Large regions of a single color are common Approach: –Record # of consecutive pixels for each color An example of lossless encoding Sheep go baaaaaaaaaa and cows go moooooooooo → Sheep go ba and cows go mo

GIF Palette selection, then lossless compression Opportunity: –Common colors are sent more often Approach: –Use fewer bits to represent common colors 1Blue75%75x1= 7575x2=150 01White20%20x2= 4020x2= Red 5% 5x3= 15 5x2=

JPEG Opportunity: –Eye sees sharp lines better than subtle shading Approach: –Retain detail only for the most important parts –Accomplished with Discrete Cosine Transform Allows user-selectable fidelity Results: –Typical compression 20:1

Variable Compression in JPEG 37 kB (20%)4 kB (95%)

Vector Graphics

Raster images (“bitmap graphics”) –Actually describe the contents of the image –Good for natural scenes Vector images –Mathematically describe how to draw the image –Rescalable without loss of resolution

Discussion Point: Selecting an Image Format Should I use GIF, JPEG, or vector graphics for … Color photos? Scanned black & white text? Line drawings?

Basic Video Coding Display a sequence of images –Fast enough for smooth motion and no flicker NTSC Video –60 “interlaced” half-frames/sec, 512x486 HDTV –30 “progressive” full-frames/sec, 1280x720

Video Data Rates “NTSC” Quality Computer Display –640 X 480 pixel image –3 bytes per pixel (red, green, blue) –30 Frames per Second Bandwidth –26.4 MB/second –Exceeds bandwidth of most disk drives Storage –CD-ROM would hold 25 seconds worth –30 minutes would require 46.3 GB

Video Compression Opportunity: –One frame looks very much like the next Approach: –Record only the pixels that change Standards: –MPEG-1: Web video (file download) –MPEG-2: HDTV and DVD –MPEG-4: Web video (streaming)

MPEG Encoding Frame Types I1I1 B1B1 B2B2 B3B3 P1P1 B4B4 B5B5 B6B6 P2P2 B7B7 B8B8 B9B9 I2I2 IIntraEncode complete image, similar to JPEG PForward PredictedMotion relative to previous I and P’s BBackward PredictedMotion relative to previous & future I’s & P’s

Frame Reconstruction I1I1 P1P1 P2P2 I2I2 updates I 1 +P 1 I 1 +P 1 +P 2 I frames provide complete image P frames provide series of updates to most recent I frame

Frame Reconstruction I1I1 I2I2 I 1 +P 1 I 1 +P 1 +P 2 B1B1 B2B2 B3B3 B4B4 B5B5 B6B6 B7B7 B8B8 B9B9 Interpolations B frames interpolate between frames represented by I’s & P’s

Basic Audio Coding Sample at twice the highest frequency –8 bits or 16 bits per sample Speech (0-4 kHz) requires 8 kB/s –Standard telephone channel (1-byte samples) Music (0-22 kHz) requires 172 kB/s –Standard for CD-quality audio (2-byte samples) Sampler

Music Compression Opportunity: –The human ear cannot hear all frequencies at once Approach: –Don’t represent “masked” frequencies Standard: MPEG-1 Layer 3 (.mp3)

Temporal Masking If we hear a loud sound, then it stops, it takes a while until we can hear a soft tone at about the same frequency. “Psychoacoustic compression” –Eliminate sounds below threshold of hearing –Eliminate sounds that are frequency masked –Eliminate sounds that are temporally masked –Eliminate stereo information for low frequencies

Speech Compression Opportunity: –Human voices vary in predictable ways Approach: –Predict what’s next, then send only any corrections Standards: –Rule of thumb: 1 kB/sec for (highly compressed) speech Demo at –Scroll down to near the bottom

Narrated PowerPoint Create your slides Slide Show -> Record Slide Show –Set microphone level Record the narration –Slide transitions are automatically captured Narration plays automatically when displayed

The “Last Mile” Traditional modems –“56” kb/sec modems really move ~3 kB/sec Digital Subscriber Lines –384 kb/sec downloads (~38 kB/sec) –128 kb/sec uploads (~12 kB/sec) Cable modems –10 Mb/sec downloads (~1 MB/sec) –256 kb/sec uploads (~25kB/sec)

Multimedia on a Web Server Object stored in a file File transferred as an HTTP object: –Received entirely at the client –Passed to media player Web Browser Media Player Web Server

Streaming Browser gets metafile over HTTP –Launches media player to interpret the metafile Media player contacts streaming server Web Browser Media Player Web Server Streaming Server

Streaming Audio and Video Begin replay after only a portion received Buffer provides time to recover lost packets Interrupts replay when “rebuffering” Media Sever Internet Buffer

constant bit rate video playout at client buffered video constant bit rate video transmission Cumulative data time variable network delay client video reception client playout delay Client Buffering Client-side buffering: –Playout delay compensates for network delay

Playout Delay Receiver attempts to playout each chunk exactly q ms after chunk was generated –Chunk has time stamp t: play out chunk at t+q –Arrives after t+q: too late for playout, data “lost” Tradeoff for q: –Large q: less packet loss –Small q: better interactive experience Easy to increase q by inserting a pause –Decreasing q requires skipping or accelerating

Lost Packets Network loss –Packets completely lost (e.g., due to collisions) Delay loss –Packets arrives too late for playout Queueing; sender and receiver processing delays Loss tolerance –1% to 10% packet loss may be tolerable Some encoding schemes are more tolerant than others

Multiple Client Rates Q: how to handle different client receive rate capabilities? –28.8 Kbps dialup –100Mbps Ethernet A: server stores, transmits multiple copies of video, encoded at different rates 1.5 Mbps encoding 28.8 Kbps encoding

Internet Telephony Characteristics: –“Live” (<400 ms delay) –Alternating talk spurts

Before You Go! On a sheet of paper (no names), answer the following question: What was the muddiest point in today’s class?