Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.

Slides:



Advertisements
Similar presentations
Chapter 6 Review.
Advertisements

Digital Media Dr. Jim Rowan ITEC 2110 Video. Works because of persistence of vision Fusion frequency –~ 40 frames.
Basics of MPEG Picture sizes: up to 4095 x 4095 Most algorithms are for the CCIR 601 format for video frames Y-Cb-Cr color space NTSC: 525 lines per frame.
Dale & Lewis Chapter 3 Data Representation. Representing color Similarly to how color is perceived in the human eye, color information is encoded in combinations.
© De Montfort University, Digital Video Howell Istance School of Computing Technology De Montfort University.
SWE 423: Multimedia Systems Chapter 7: Data Compression (1)
Image Formation and Digital Video
Digital Video An Introduction to the Digital Signal File Formats Acquisition IEEE 1394.
1 Video Processing CSC361/ Digital Media Spring 2004 Burg/Wong.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
Digital Media Dr. Jim Rowan ITEC 2110 Animation Part 2.
Digital Media Dr. Jim Rowan ITEC 2110 Video. Works because of persistence of vision Fusion frequency –~ 40 frames.
Using Multimedia on the Web
Digital Video Basics CPSC 120 Principles of Computer Science April 16, 2012.
Page 18/30/2015 CSE 40373/60373: Multimedia Systems 4.2 Color Models in Images  Colors models and spaces used for stored, displayed, and printed images.
1 Digital Video. 2  Until the arrival of the Pentium processor, in 1993, even the most powerful PCs were limited to capturing images no more than 160.
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
Digital Video and Multimedia If images can portray a powerful message then video (as a series of related images) is a serious consideration for any multimedia.
Digital Media Lecture 9: Video, TV & Film Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Dr. Jim Rowan ITEC 2110 Video.
Video Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Multimedia Data Video Compression The MPEG-1 Standard
Video Basics. Agenda Digital Video Compressing Video Audio Video Encoding in tools.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 6: Video.
 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,
Digital Media Dr. Jim Rowan ITEC 2110 Wednesday, September 4.
VIDEO FORMATS Prof Oakes. Compression CODECS COMPRESSOR/DECOMPRESSOR A codec provides specific instructions on how to compress video to reduce its size,
Digital Media Lecture 10: Video & Compression Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.
Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.
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.
Multimedia Elements: Sound, Animation, and Video.
Digital Media Dr. Jim Rowan ITEC 2110 Video. Roll call Sanchez-Casas, Jon F. Simson, Davis Sinnock, Grant A. Swaim, Mark S. Tran, Dung Q. Vyas, Anand.
1 Video v Video consists of image frames captured from real motion and shown in succession v Animation is similar except that the frames are synthesized.
Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.
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.
In this lecture, you will learn: 1 Basic ideas of video compression General types of compression methods.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
Rick Parent - CIS681 Background Perception Display Considerations Video Technology.
Rick Parent - CIS681 Background Perception Display Considerations Film and Video, Analog and Digital Technology.
Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
Digital Media Dr. Jim Rowan ITEC 2110 Chapter 3. Roll call.
Digital Media Dr. Jim Rowan ITEC 2110 Color Part 2.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
Moving Image Compression and File Formats. Acknowledgement Most of this lecture note has been taken from the lecture note on Multimedia and HCI course.
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.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Digital Media Dr. Jim Rowan ITEC 2110 Thursday, September 13.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
DIGITAL MEDIA FOUNDATIONS
RENDERING Preparing the Project Exporting the Timeline Video Settings
Background Perception Display Considerations Video Technology.
Digital Media Dr. Jim Rowan ITEC 2110 Video.
Dr. Jim Rowan ITEC 2110 Video Part 2
Dr. Jim Rowan ITEC 2110 Wednesday, September 12
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Data Compression.
Video Compression - MPEG
Chapter 6: Video.
Dr. Jim Rowan ITEC 2110 Video Part 2
Dr. Jim Rowan ITEC 2110 Video Part 2
Dr. Jim Rowan ITEC 2110 Thursday, September 6
Presentation transcript:

Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2

Roll call Sanchez-Casas, Jon F. Simson, Davis Sinnock, Grant A. Swaim, Mark S. Tran, Dung Q. Vyas, Anand A. Woldeyohannes, Tesfamichael Barton, Paul H. Bois, Lauren C. Bonds, Allison E. Duncan, Jarred T. Lawson, Joseph I. Mulongo, Julio B. Pennison, Heather L. Reilly, Daniel J.

Roll call Jones, Crystal L. Marsh, Kerreen A. Thompson, Daniel G. Tran, Christopher V.

Digital Video Standards Even though digital video COULD be much less complicated... it isn’t because... Backward compatibility requirement –new equipment must create signals that can be handled by older equipment Originally... TV signals (analog) needed to be converted to digital format

Digital Video Standards... Digital from NTSC and PAL are ANALOG standards –Each has a screen size and frame (or refresh) rate –Each define a number of lines on the screen (that can be easily used for one the Y dimension) –But what about the other dimension, the X?... –Each line is a continuous (analog) signal which has to be converted to digital... How do you do that? –SAMPLE the analog data! –But directly sampling for each pixel results in a data stream of 20 Mbytes/ second... HUGE!

Coping with Video Size Aside from screen size and frame rate... Consider human vision limitations –Use algebra to compute part of the signal –Chrominance sub-sampling Compression - two versions –spatial –temporal

Coping with Video Size Aside from screen size and frame rate... Consider human vision limitations –Use algebra to compute part of the signal –Chrominance sub-sampling Compression - two versions –spatial –temporal

Sampling analog Video To reduce the data stream you can consider human vision again Human eyes are less sensitive to color changes than luminance Decision: Take fewer samples for color than luminance Without sub-sampling... –for each pixel on the screen 4 things will have to be encoded luminance, red, blue, green

Sub-sampling & understanding human vision Designers realized that Green contributes the most to intensity, Red is next and Blue hardly contributes anything to luminance Based on this, it was decided to use a formula for luminance Y = R G B With this we only have 3 data elements to transmit 25% data reduction -Y (luminance) -Cb (blue chrominance) -Cr (red chrominance)

Calculating the 4th color component Known as the Y’CbCr model for CRTs Y = R G B Solve for Cg (green): Y B R = G G = Y B R G = (Y B R) / There is a use for algebra!

Coping with Video Size Aside from screen size and frame rate... Consider human vision limitations –Use algebra to compute part of the signal –Chrominance sub-sampling Compression - two versions –spatial –temporal

Chrominance sub-sampling Humans can’t distinguish changes in color as well as they can distinguish luminance changes Of every 4 frames –store the luminance –only store a proportion of the color info

Chrominance sub-sampling IRGB 4:4:4 IRB I I 4:2:2 CCIR 601 video sampling IRB I II 4:1:1 NTSC DV IR I II 4:2:0 PAL DV notice the inconsistency? I:R:B IB I II

NTSC & PAL weirdness (sidebar) NTSC & PAL –Define different screen sizes –Define different frame rates –Both have the same aspect ratio of 4:3 –BUT... they each are digitized (through sampling) to the same screen size The result? –The pixels are not square –PAL is taller than it is wide –NTSC is wider than it is tall

DV and MPEG (sidebar) DV and its different forms (DVCAM & DVPRO) –use the same compression algorithm (5:1) –use the same data stream (25Mbits) –use 4:2:2 sampling where DV uses 4:1:1 MPEG-1 originally meant for Video CD –never got very popular –developed into a family of standards MPEG-4 rose from the ashes –used for iTunes video

Computational Irony Digital has been touted as a way to create exact copies while analog (VCR) cannot... Analog VCR suffers from generational loss BUT only if you use video compression that is... LOSSLESS AND... you guessed it, a lossless video compression technique is not used because the lossless ones don’t compress enough

Lossless compression compressed original compression routine Original decompress routine Original Exact duplicate

Lossy compression compressed original compression routine Original decompress routine Changed Original Changed Original 2

Aside from screen size and frame rate... Consider human vision limitations –Use algebra to compute part of the signal –Chrominance sub-sampling Compression - two versions –spatial –temporal Coping with Video Size

Spatial compression Individual images can be compressed using the techniques discussed in the bitmapped section Doesn’t result in very much compression for video Doesn’t take into consideration the other frames that come before or after it

Aside from screen size and frame rate... Consider human vision limitations –Use algebra to compute part of the signal –Chrominance sub-sampling Compression - two versions –spatial –temporal Coping with Video Size

Temporal Compression 1 Use the Difference in two frames –naive approach can result in good compression –works well for a small amount of movement –A Tarantino film? not so much...

Temporal Compression 2 When an object moves –compute its trajectory –fill in the resulting exposed background –BUT there’s a problem... –why isn’t this an easy thing to do? vector

Temporal Compression 2 Bitmapped images do not have defined objects... that’s Vector graphics... What to do?

Temporal Compression 2 Define blocks of 16 x 16 pixels –called a macroblock Compute all possible movements of the block within a short range Compute a vector to define that movement Store the movement vectors Compress the vectors

More on Temporal Compression Need some place to start from Can be forward or backward prediction Called KeyFrames –pick a keyframe –compute next image from that –What happens when the scene completely changes? Pick a new key frame... But HOW? Requires powerful AI

Video Compression What does this? Coder/Decoder - Codec encodes and decodes video –can be symmetric –can be asymmetric

Finally... Why worry about size? When we know that computers are always getting faster and larger... why not just wait? First one on the market usually wins the market (if it succeeds!) Putting video on some small device with limited space and limited speed –iPhone –Spacecraft? Gotta be light weight and small!

A final worry... We have been talking about making video smaller There are a variety of techniques to do this Which to choose? –It is a tradeoff between compression technique and its computational complexity

Questions?

Digital Media Dr. Jim Rowan ITEC 2110 Video Part 3

Roll call Sanchez-Casas, Jon F. Simson, Davis Sinnock, Grant A. Swaim, Mark S. Tran, Dung Q. Vyas, Anand A. Woldeyohannes, Tesfamichael Barton, Paul H. Bois, Lauren C. Bonds, Allison E. Duncan, Jarred T. Lawson, Joseph I. Mulongo, Julio B. Pennison, Heather L. Reilly, Daniel J.

Roll call Jones, Crystal L. Marsh, Kerreen A. Thompson, Daniel G. Tran, Christopher V.

MPEG-4 Designed for streams that contain video, still images, animation, textures 3-D models Contains methods to divide scenes into arbitrarily shaped video objects The idea is that each object has an optimal compression technique BUT...

MPEG-4 Dividing a scene into arbitrarily shaped video objects is non-trivial Drop back to the rectangular object position Quicktime and DivX use the rectangular video object idea Uses forward interframe compression Using the simpler technique reduces the computational complexity allowing it to be implemented on small devices like portable video players

Other codecs Cinepak, Intel Indeo & Sorenson All use vector quantization –divides frame into rectangular blocks –these frames are called vectors but they don’t represent movement or direction Codec uses a collection of these vectors –contains typical patterns seen in the frames textures, patterns, sharp and soft edges –compares the vectors to the ones in the code book –if it is close, it uses the code book entry –(does this explain the patchwork painting of the screen when the digital signal goes bad?)

Vector quantization a frame contains indices into the code book reconstructs the image from vectors in the code book –makes decompression very straight forward and efficient –this makes the implementation of a player very easy What about the compression?

Vector quantization this is an asymmetric codec decompression takes ~150 times longer than compression Cinepak and Intel Indeo use temporal compression using simple differencing Sorenson uses motion compensation similar to the MPEG-4 standard

So... How do codecs vary? compression and decompression complexity –affects the artifacts that are created –affects the time required to carry them out –affects the volume of the data stream created –affects the type and expense of the equipment used –affects whether or not it can be implemented in hardware of software

Comparison Bear in mind that this comparison is not absolute and will vary from frame to frame but in general... MPEG-4 –detail is good (at the sacrifice of speed) DV –detail is good but the biggest Sorenson –loss of detail (see pg ) Cinepak –loss of detail –smallest file

A word about QuickTime All standards so far have defined the data stream... not the file format QT is the defacto standard design of a component-base architectural framework –allows plugins (components) to be developed by others Every QT movie has a “time base” –records playback speed and current position relative to a time coordinate system to allow them to be replayed at the right speed on any system –If the playback speed of the device is not fast enough, QT drops frames keeping audio synchronization

More about QuickTime Plugins make it flexible so that it can accommodate new file formats –comes with a standard set of plugins (components) compressor components include –MPEG-4, Sorenson and Cinepak movie controller interface provides uniformity transcoder components to convert to other formats –supports true streaming and progressive download

Questions?