Week 4 LBSC 690 Information Technology Multimedia.

Slides:



Advertisements
Similar presentations
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
Advertisements

MPEG: A Video Compression Standard for Multimedia Applications Václav Hlaváč CTU Prague, Initial material were slides of Didier.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 36 How Music and Audio Work on the Internet.
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
EE442—Multimedia Networking Jane Dong California State University, Los Angeles.
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.
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.
Integration Week 7 LBSC 690 Information Technology.
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.
Representing Images. Goals for Image Representation digitization & resolution digitization & resolution representing color representing color color depth.
Nat 4/5 - Software Design and Development – Low Level Operations - 1 National 4/5 – Computing Science Information Systems Design and Development Media.
4.1 Digital Multimedia Elements
Using Multimedia on the Web
RTSP Real Time Streaming Protocol
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
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.
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.
2.02 Develop Computer Animations Review By: Adam Garcia,Christian Brown, Richard Williams, Tyler Borden.
Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.
Video Video.
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.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Still-image compression Moving-image compression and File types.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - VIDEO. In this chapter How digital video differs from conventional analog video How digital video differs from.
XP Practical PC, 3e Chapter 15 1 Creating Desktop Video and Animation.
Streaming Media A technique for transferring data on the Internet so it can be processed as a steady and continuous stream.
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.
Class 13 LBSC 690 Information Technology More Multimedia Compression and Recognition, and Social Issues.
Week 7 LBSC 690 Information Technology Multimedia.
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.
Media Types Information Systems can contain the following types of media: Sound, graphics, video & text.
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.
Chapter 6:Graphics & Multimedia. “ MULTIMEDIA is a seamless integration of data, text, image of all kinds and sound within a digital environment. ” FELDMAN,
Photo Story. How to use Photo Story Photo Story 3 can be located in the Accessories folder on school computers. You will need to have your pictures already.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
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.
Remote Demos Remote Demo.
Networking Applications
Multimedia networking: outline
Overview What is Multimedia? Characteristics of multimedia
Multimedia networking: outline
Presentation transcript:

Week 4 LBSC 690 Information Technology Multimedia

Agenda Questions Images Video Audio Streaming SMILe

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)

Some Questions How many images can a 1 GB flash card store? –But mine holds about 500. How? How long will it take to send an image at 64kb/s? –But my Web page loads faster than that. 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?

Hands-On Exercise: Convert Between Formats Download and save two images – – Use Microsoft Paint to convert each to the other format, and compare quality and the file size Why the difference?

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: –Real audio can code speech in 6.5 kb/sec Demo at –Scroll down to near the bottom

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

Adding Video to PowerPoint Insert->Movies and Sounds –Movies from file (a.mpg file) Decide whether you want autostart –If not, it starts when you click on it

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

Hands On: RealPlayer View streaming real video – Select “Tools/Playback statistics” Pay attention to bandwidth and lost packets

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

Illustrating RealAudio Create a.ram file –URL for the RealAudio –Dimensions of the picture –URL for the picture

Synchronizing Multiple Media Scripting Languages –Synchronized Multimedia Integration Language (SMIL) Custom applications –Macromedia Flash Content representation standards –MPEG 4

SMILe W3C standard –Player-specific extensions are common XML, with a structure similar to HTML …

Elements in SMIL Window controls (in ) –Controlling layout:, Timeline controls (in ) –Sequence control:,, –Timing control:,, Content types (in ) –,,,

SMIL Examples Implemented in RealOne Player Example: –First, run the executable –Then, view.smil file

Discussion Point: When is Lossless Compression Important? For images? For text? For sound? For video?

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