Multimedia Communications EG 371 and EG 348

Slides:



Advertisements
Similar presentations
Data Compression CS 147 Minh Nguyen.
Advertisements

Lecture 4 (week 2) Source Coding and Compression
Michael Alves, Patrick Dugan, Robert Daniels, Carlos Vicuna
Data Compression Michael J. Watts
Introduction to Data Compression
Department of Computer Engineering University of California at Santa Cruz Data Compression (1) Hai Tao.
SCA Introduction to Multimedia
Spatial and Temporal Data Mining
Compression JPG compression, Source: Original 10:1 Compression 45:1 Compression.
Video on the Web. Should you add video to your web page? Three main questions 1. How will it enhance the purpose of my page? –Entertain –Explain a process.
-Multimedia Basics- Digital Video Integrating Technology into the Curriculum © Jim Lockard 2004.
Digital Video Teppo Räisänen LIIKE/OAMK. General Information Originally video material was processed using analog tools Nowadays it is common, that digital.
Standards, Devices, and Software Applications B.Sc. (Hons) Multimedia ComputingMedia Technologies Video Capture and Editing.
Data Compression Basics & Huffman Coding
AUDIO VIDEO FLASH DIGITAL MEDIA: COMMUNICATION AND DESIGN
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.
1 Different Video Properties
Multimedia Compression John Hall SMDC Training June, 2006.
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.
+ Video Compression Rudina Alhamzi, Danielle Guir, Scott Hansen, Joe Jiang, Jason Ostroski.
Digital Video An Introduction to the Digital Signal File Formats Acquisition IEEE 1394.
Video Streaming © Nanda Ganesan, Ph.D..
Video file format.
ECE242 L30: Compression ECE 242 Data Structures Lecture 30 Data Compression.
What are the common format for video files?
Digital Camcorder and Video Computer Multimedia. Two most important factors that make up a video Frames per second ( fps ) The resolution ( # of pixels.
AVI File Format By : Jacob, Bab and Conor. Basic operation Presented By: Conor.
Computing in the Modern World BCS-CMW-7: Data Representation Wayne Summers Marion County October 25, 2011.
Multimedia Concepts: Video Technologies ANALOG DIGITAL.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2011.
Kapi’olani Community College Art 222 Digital Multimedia In-class Presentation Week 9B.
1 Analysis of Algorithms Chapter - 08 Data Compression.
1 i206: Lecture 2: Computer Architecture, Binary Encodings, and Data Representation Marti Hearst Spring 2012.
GIF - Graphics Interchange Format JPEG - Joint Photographic Experts Group PNG - Portable Network Graphics GIF images are limited to the 8 bit palette which.
Communication Technology in a Changing World Week 2.
Multimedia Data Introduction to Lossless Data Compression Dr Sandra I. Woolley Electronic, Electrical.
Compression.  Compression ratio: how much is the size reduced?  Symmetric/asymmetric: time difference to compress, decompress?  Lossless; lossy: any.
How Analog and Digital Recording Works Analog converted to digital via an ADV (Analog to Digital Converter = stream of numbers) On playback: digital converted.
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
AUDIO AND VIDEO COMPRESSION AND IT’S IMPORTANCE ON THE INTERNET Brian Dillinger May 3, 2010.
Pengantar Multimedia.  Definition: Video is an electronic medium for the recording, copying, playback, broadcasting, and display of moving visual media.
Product Distribution Mediums, Strategies and Compression.
Huffman Codes Juan A. Rodriguez CS 326 5/13/2003.
IT2002 ATI Naiwala 1 By ATI Naiwala. IT2002 ATI Naiwala Combination of time Variant Image and Sound – Most realistic media Dynamic Huge data size(Very.
Chapter 10. The Role of Video in Multimedia  Any presentation or application that uses sound and graphics qualifies as multimedia  Clip A segment of.
Digital Video File Formats an overview. Introduction Digital Video & Audio files are also known as container formats. These “containers” are digital files.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Review of Basics Huffman coding run length coding Quantization.
Lossless Decomposition and Huffman Codes Sophia Soohoo CS 157B.
1 Data Compression Hae-sun Jung CS146 Dr. Sin-Min Lee Spring 2004.
Chapter 7 Lossless Compression Algorithms 7.1 Introduction 7.2 Basics of Information Theory 7.3 Run-Length Coding 7.4 Variable-Length Coding (VLC) 7.5.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2012.
1 Part A Multimedia Production Chapter 2 Multimedia Basics Digitization, Coding-decoding and Compression Information and Communication Technology.
Video Formats. 1.Students will understand what the difference is between analog and digital video. 2. Students will learn the advantages of digital video.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Data Compression: Huffman Coding in Weiss (p.389)
Data Compression Michael J. Watts
Multimedia Content in the Internet: Synchronization, Processing & Delivery Introduction 3/11/2016 Vasilis Maglaris Mary Grammatikou.
Video Jan Růžička Institute of geoinformatics VSB-TU Ostrava
AMCOM Digital Archive Design Review - Week 4.
Huffman Codes ASCII is a fixed length 7 bit code that uses the same number of bits to define each character regardless of how frequently it occurs. Huffman.
HUFFMAN CODES.
Data Compression.
VIDEO.
Digital TV..
Data Compression.
David Zepeda Information Architecture and Design I Fall 2005
Huffman Coding CSE 373 Data Structures.
Huffman Encoding Huffman code is method for the compression for standard text documents. It makes use of a binary tree to develop codes of varying lengths.
Data Structure and Algorithms
Presentation transcript:

Multimedia Communications EG 371 and EG 348 Dr Matthew Roach Lecture 4 Compression &formats cont. Sell yourself big time to the people. Did my PhD in the speech and image group Swansea. I also held a post here as a senior research assistant working on a BT sponsored project. Looking at classification of video some of the work is included in this course. For the last 2 years I have worked for a small systems engineering consultancy full time for the last year. In that time I’ve co-delivered training courses to a diverse range of companies, including Motorola, MoD, IEE, BSI. Get in contact with me via-email Multimedia communications EG-371 Dr Matt Roach

Lossless: Huffman compression reduces average code length to represent symbols of an alphabet occur frequently short length codes constructing a binary tree arranging the symbols adding two lowest probabilities Sum of last two symbols is 1. Code words formed tracing tree path assigning 0s and 1s to the branches Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Huffman coding Determine the Huffman code for the following set of symbols: Step 1 – List symbols in order of decreasing probability Symbol m0 m1 m2 m3 m4 Probability 0.10 0.36 0.15 0.20 0.19 Symbol m1 m3 m4 m2 m0 Probability 0.36 0.20 0.19 0.15 0.10 Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Step 2 – Get 2 symbols with lowest probability. Give the combined symbol a new name: m2(0.15) + m0(0.1.0) A(0.25) Step 3 – Create a new list and repeat the process: Symbol m1 A m3 m4 Probability 0.36 0.25 0.20 0.19 Symbol B m1 A Probability 0.39 0.36 0.25 Symbol B C Probability 0.39 0.61 Symbol D Probability 1.0 Multimedia communications EG-371 Dr Matt Roach

An alternative approach is to construct this tree m1 0.36 m3 0.20 A 0.25 m0 0.10 m4 0.19 m2 0.15 B 0.39 C 0.61 D 1.0 Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Assign bits (0,1) to the tree branches Codewords determined by tracing the path from root node to symbol leaf: 1 B 0.39 C 0.61 m1 0.36 A 0.25 m2 0.15 m4 0.19 m3 0.20 Root m0 0.10 Symbol Probability Codewords m0 0.10 011 m1 0.36 00 m2 0.15 010 m3 0.20 10 m4 0.19 11 Compression is achieved by allocating frequently occurring symbols with shorter codewords. Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach How much compression? 5 symbols 3-bits for each symbol. message [m0m1m2m3m4] require 5x3=15 bits. Huffman coding require 12 bits compression of 15:12 Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Example Consider the message babbage babble baggage label bagel Construct a Huffman code and determine the compression ratio. Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Solution construct a probability table counting occurrence of each letters Letter Occurrence Probability b 9 0.3 a 7 0.233 g 5 0.166 e l 4 0.133 Total: 30 1 Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Solution b 0.3 b 0.3 B 0.4 C 0.6 D 1.0 a 0.233 A 0.3 b 0.3 B 0.4 g 0.166 a 0.233 A 0.3 e 0.166 g 0.166 1 0.133 Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Solution Root 1 Symbol Probabilities Codewords b 0.4 00 a 0.233 10 g 0.166 11 e 010 l 0.133 011 C 0.6 B 0.4 1 1 b 0.3 A 0.3 a 0.233 g 0.166 1 e 0.166 l 0.133 Multimedia communications EG-371 Dr Matt Roach

Solution babbage babble baggage label bagel 5 symbols (bagel) 30 characters uncompressed 3 bits/symbol 90 bits. Huffman gives a compression of approx. 9:7 Letter Occurrence Codewords No. bits b 9 00 18 a 7 10 14 g 5 11 e 010 15 l 4 011 12 Total bits: 69 Multimedia communications EG-371 Dr Matt Roach

Multimedia Communications EG 371 and EG 348 Dr Matthew Roach Lecture 4 Formats cont. Sell yourself big time to the people. Did my PhD in the speech and image group Swansea. I also held a post here as a senior research assistant working on a BT sponsored project. Looking at classification of video some of the work is included in this course. For the last 2 years I have worked for a small systems engineering consultancy full time for the last year. In that time I’ve co-delivered training courses to a diverse range of companies, including Motorola, MoD, IEE, BSI. Get in contact with me via-email Multimedia communications EG-371 Dr Matt Roach

Common Container Formats AVI (.avi) M-JPEG, DivX, nearly any format (not Sorenson). Quicktime Locked Apple Sorenson codec, or for Cinepak (free), also mjpeg WMV (.wmv) MPEG4; nearly any codec, Microsoft spinoffs of MPEG-4 ASF ("Advanced Streaming Format", .asf) a subset of wmv, intended primarily for streaming: an early Microsoft implementation of an MPEG4 codec. Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Common Codecs MPEG-1 Old, supported by everything (at least up to 352x240), reasonably efficient. A good format for the web Video quality is not as crisp as MPEG-2 Small file size Good picture quality Compressed format Require special playback program Cannot Edit MPEG-2 A souped-up version of MPEG-1, with better compression. 720x480. Used in HDTV, DVD, and SVCD. Good Quality, Can burn onto DVD disc Large file size, 4.7GB for 2 hours of video MPEG-4 A family of codecs, some of which are open, others Microsoft proprietary. MJPEG ("Motion JPEG") A codec consisting of a stream of JPEG images. Common in video from digital cameras, but it doesn't compress well, so it's not good for web distribution. Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Common Codecs cont. WMV ("Windows Media Video") A collection of Microsoft proprietary video codecs. Since version 7, it has used a special version of MPEG4. Small file size Good picture quality Ideal for web transmission Compressed format Cannot Edit RM ("Real Media") a closed codec developed by Real Networks for streaming video and audio. Maybe also a container? DivX incomplete early MPEG-4 codec inside an AVI container; DivX 4 and later are a more full MPEG-4 codec.. No resolution limit. Requires more horsepower to play than mpeg1, but less than mpeg2. Hard to find mac and windows players. Good Quality with reasonably small file size Not a standard video format Cannot produce video onto DVD or CD Multimedia communications EG-371 Dr Matt Roach

Multimedia communications EG-371 Dr Matt Roach Common Codecs cont. DV ("Digital Video") Usually used for video grabbed via firewire off a video camera. Fixed at 720x480 @ 29.97FPS, or 720x576 @ 25 FPS. Not very highly compressed. Superb quality, record back to DV tape Large file size, 25GB for 60 min of video Sorenson 3: Apple's proprietary codec, commonly used for distributing movie trailers (inside a quicktime container). Quicktime 6: Apple's implementation of an MPEG4 codec. Good picture quality Ideal for web transmission Larger file size (compare to other streamable formats) Cannot Edit Multimedia communications EG-371 Dr Matt Roach