ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission (11-28 -06) Digital Video Motion Pictures Broadcast Television Digital Video 11/28.

Slides:



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

MPEG-1: A Standard for Digital Storage of Audio and Video Nimrod Peleg Update: Dec
Chapter 6 Review.
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.
A Brief Overview of the MPEG2 Standard Dr. David Corrigan.
An Improved 3DRS Algorithm for Video De-interlacing Songnan Li, Jianguo Du, Debin Zhao, Qian Huang, Wen Gao in IEEE Proc. Picture Coding Symposium (PCS),
Video enhances, dramatizes, and gives impact to your multimedia application. Your audience will better understand the message of your application.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
Department of Computer Engineering University of California at Santa Cruz Video Compression Hai Tao.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
Lecture06 Video Compression. Spatial Vs. Temporal Redundancy Image compression techniques exploit spatial redundancy, the phenomenon that picture contents.
SWE 423: Multimedia Systems Chapter 5: Video Technology (1)
Comp :: Fall 2003 Video As A Datatype Ketan Mayer-Patel.
Image (and Video) Coding and Processing Lecture: Motion Compensation Wade Trappe Most of these slides are borrowed from Min Wu and KJR Liu of UMD.
Sample rate conversion At times, it will be necessary to convert the sampling rate in a source signal to some other sampling rate Consider converting from.
ATSC Digital Television
Fundamentals of Multimedia Chapter 10 Basic Video Compression Techniques Ze-Nian Li & Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards.
Image and Video Compression
JPEG 2000 Image Type Image width and height: 1 to 2 32 – 1 Component depth: 1 to 32 bits Number of components: 1 to 255 Each component can have a different.
Video Media Department of Computer Education KMUTNB.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
ENEE631 Digital Image Processing (Spring'04) Basic Video Coding and MPEG Spring ’04 Instructor: Min Wu ECE Department, Univ. of Maryland, College Park.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
MPEG MPEG-VideoThis deals with the compression of video signals to about 1.5 Mbits/s; MPEG-AudioThis deals with the compression of digital audio signals.
Page 19/15/2015 CSE 40373/60373: Multimedia Systems 11.1 MPEG 1 and 2  MPEG: Moving Pictures Experts Group for the development of digital video  It is.
Video Coding. Introduction Video Coding The objective of video coding is to compress moving images. The MPEG (Moving Picture Experts Group) and H.26X.
Multimedia Data Video Compression The MPEG-1 Standard
MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.
Video Compression Techniques By David Ridgway.
MPEG Motion Picture Expert Group Moving Picture Encoded Group Prateek raj gautam(725/09)
Multimedia Data Video Compression The MPEG-1 Standard Dr Mike Spann Electronic, Electrical and Computer.
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.
Videos Mei-Chen Yeh. Outline Video representation Basic video compression concepts – Motion estimation and compensation Some slides are modified from.
1 Chapter 5: Compression (Part 3) Video. 2 Video compression  We need a video (pictures and sound) compression standard for: teleconferencing digital.
Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.
MPEG MPEG : Motion Pictures Experts Group MPEG : ISO Committee Widely Used Video Compression Standard.
June, 1999 An Introduction to MPEG School of Computer Science, University of Central Florida, VLSI and M-5 Research Group Tao.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
Digital Media Dr. Jim Rowan ITEC 2110 Video Part 2.
ENEE408G Capstone -- Multimedia Signal Processing (F'05) Video Compression Fall’05 Instructor: Carol Espy-Wilson Electrical & Computer Engineering University.
What Exactly is Television?  A process of transmitting images through a signal from one place or another.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( , ) JPEG block based transform coding Beyond basic JPEG Spatial correlation.
Image/Video Coding Techniques for IPTV Applications Wen-Jyi Hwang ( 黃文吉 ) Department of Computer Science and Information Engineering, National Taiwan Normal.
Vamsi Krishna Vegunta University of Texas, Arlington
Digital Video Digital video is basically a sequence of digital images  Processing of digital video has much in common with digital image processing First.
MPEG.
IntroductiontMyn1 Introduction MPEG, Moving Picture Experts Group was started in 1988 as a working group within ISO/IEC with the aim of defining standards.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Lossy wavelet encoding Subband decomposition & coding Wavelet transform Embedded.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
Page 11/28/2016 CSE 40373/60373: Multimedia Systems Quantization  F(u, v) represents a DCT coefficient, Q(u, v) is a “quantization matrix” entry, and.
Block-based coding Multimedia Systems and Standards S2 IF Telkom University.
MPEG CODING PROCESS. Contents  What is MPEG Encoding?  Why MPEG Encoding?  Types of frames in MPEG 1  Layer of MPEG1 Video  MPEG 1 Intra frame Encoding.
Motion Estimation Multimedia Systems and Standards S2 IF Telkom University.
Introduction to MPEG Video Coding Dr. S. M. N. Arosha Senanayake, Senior Member/IEEE Associate Professor in Artificial Intelligence Room No: M2.06
6/9/20161 Video Compression Techniques Image, Video and Audio Compression standards have been specified and released by two main groups since 1985: International.
Video Concepts and Techniques 1 SAMARTH COLLEGE OF ENGINEERING &TECHNOLOLOGY DEPARTMENT OF ELECTRONIC & COMMUNICATION ENGINEERING 5th semester (E&C) Subject.
Digital Video Representation Subject : Audio And Video Systems Name : Makwana Gaurav Er no.: : Class : Electronics & Communication.
CMPT365 Multimedia Systems 1 Media Compression - Video Spring 2015 CMPT 365 Multimedia Systems.
1 Introduction to Video Compression תשס"ט – 2009 דחיסת מולטימדיה – הנדסת מערכות תקשורת Part A Introduction to Video Compression תשס"ט – 2009 דחיסת מולטימדיה.
MPEG Video Coding I: MPEG-1 1. Overview  MPEG: Moving Pictures Experts Group, established in 1988 for the development of digital video.  It is appropriately.
H. 261 Video Compression Techniques 1. H.261  H.261: An earlier digital video compression standard, its principle of MC-based compression is retained.
Fundamental concepts in video
CSI-447 : Multimedia Systems
CSI-447: Multimedia Systems
Dr. Jim Rowan ITEC 2110 Video Part 2
ELE 488 Fall 2006 Image Processing and Transmission ( )
Dr. Jim Rowan ITEC 2110 Video Part 2
Presentation transcript:

ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Digital Video Motion Pictures Broadcast Television Digital Video 11/28

ELE 488 F06 Motion Picture  Television  Digital Video Broadcast Television (analog) –why invent new technology? –movie at home, mass market –influence of movie on development Key Steps –convert pictures to electric signal –send electric signal –convert electric signal to picture Comparison with motion picture High Definition Television - analog  digital, compression Video telephone - analog predecessor Video conference - travel cost, people cost Cable (narrowcast), satellite, interactive,...

ELE 488 F06 NTSC ( National Television Systems Committee ) 525 lines –2 dots less than 1/2000 of distance from eye are not separated (merge into one) –Assume view at distance 4 times the screen height. No need to have more than 500 lines –NTSC set 525 lines (475 active) Movies in 1940 has 4:3 aspect ratio (width to height) 25 or more pictures per second to see continuous motion 50 or more pictures per second to avoid flicker –movies use 24 frames/sec, each shown twice 30 frames/sec with 2:1 interlace (60 even-odd fields/sec)

ELE 488 F06 Bandwidth of Broadcast Television Without interlace (progressive scan), 60 frames/sec –500 lines alternating black and white gives 250 full cycles –each horizontal line has 250 x 4/3 ~ 350 full cycles –60 (frames/sec) x 500 (line) x 350 = 10 MHz (video ONLY) With 2:1 interlace, 5 MHz for video FCC assigns 6 MHz per broadcast channel –real usable bandwidth is less, MUCH less –actual resolvable lines per vertical height ~250 Color insertion - must compatible with B/W receiver –Change R-G-B to Y-Cb-Cr –Y is luminance (brightness), Cb and Cr are chrominances –B/W sets converts Y to picture, color sets converts Y-Cb-Cr to R-G-B then display

ELE 488 F06 Digital Video What drives digital video? –Information technology: electronics, communication, storage, new functionality, … –HDTV R-G-B component video –640 x 480 (pixel) x 3 (color) x 8 (bits/color) x 30 = 221 Mb/sec Y-Cb-Cr with subsampled Cb and Cr –640 x 480 (pixel) x 1.5 (color) x 8 (bits/color) x 30 = 110 Mb/sec Compression - MPEG (motion picture expert group) –MPEG-1: CD-ROM, 1.5Mb/sec, 1.2Mb/sec for video, 352x240 (CIF), progressive scan, motion compensation –MPEG-2: extension of MPEG-1, interlace, HD –MPEG-4: object/region based –H.2xx

ELE 488 F06 Video Coding Video consists of frames I n (i,j) –Code each frame as a still picture – motion JPEG Each frame is close to the previous frame –Code the difference FD n (i,j) = I n (i,j) – I n-1 (i,j) –Differential coding (DPCM, predictive coding) ( I n-1 (i,j) is the predicted value of I n (i,j) ) –Need to code the first frame

ELE 488 F06 Encoding Three Frame Types Differential encoding of video I – Intra Frame, code by itself P – Prediction Frame, code by referring to previous I or P frame B – Bi-direction Frame, code by referring to forward AND backward I or P frames I B P P P P BBBBBB BBB I

ELE 488 F06 Coding of I-frame – same as still image

ELE 488 F06 I Frames I frames are Intra-coded using the JPEG coded I frames can be decoded without reference to other frames of the video. Sometimes called anchor frames I frame: JPEG Frame 31 A group of pictures (GOP) begins with an I-frame and ends before the next I-frame A typical GOP length is 15 frames With only 1 I-frame per GOP (the first frame)

ELE 488 F06 Coding P Frames Each frame is close to the previous frame –Code frame difference (differential coding – DPCM) Occlusion –parts of current frame is blocked in previous frame –need future frame to “predict” FD n (i,j) = I n (i,j) – I n+1 (i,j) current frame I n frame difference I n - I n-1

ELE 488 F06 Coding P Frames Each frame is close to the previous frame –Code frame difference (differential coding – DPCM) current frame I n frame difference I n - I n-1

ELE 488 F06 Coding of P Frames Video consists of frames I n (i,j) –Code each frame as a still picture – motion JPEG Each frame is close to the previous frame –Code the difference FD n (i,j) = I n (i,j) – I n-1 (i,j) –Differential coding (predictive coding) –I n-1 (i,j) is the predicted value of I n (i,j) Observe: –Most part of frame is unchanged –Except for moving objects –Motion Compensated Coding  MPEG

ELE 488 F06 Motion Compensated Video Coding Observe: Most of picture remains unchanged But some objects have moved. So code Displaced Frame Difference Motion Compensated Coding previous framecurrent frame

ELE 488 F06 Displaced Frame Difference

ELE 488 F06 Displaced Frame Difference

ELE 488 F06

P Frames I frame: JPEG P frame: motion compensated. macro-blocks and macro-block motion vectors are indicated Frame 31Frame 34 P frames are coded using two methods: - block motion compensation + error coding - jpeg (intra-coded), without referring to previous frames P frames are also anchor frames Divide P-frame into Macro-blocks MB ~16x16

ELE 488 F06 Finding Motion Vectors Matching a block from current frame with a displaced block in reference frame using: (a) sum of squared difference (SSD), or (b) sum of absolute difference (SAD) (almost always used) The displacement giving best match is the motion vector of the block Search methods: Global search over the entire anchor frame Restricted search over local neighborhood Fast search – over a selected neighborhood, anchor framecurrent frame

ELE 488 F06 Illustration: P-frame Macro-Blocks Frame 34 P-frame

ELE 488 F06 MPEG: I and P frames (anchor frames)

ELE 488 F06 Block Matching Motion Estimation current frame Block for which motion vector to be determined a position for comparison previous frame another position Blocks of size MxN

ELE 488 F06 Motion Compensated Encoding of P Frame current frame previous frame Y

ELE 488 F06 Coding of P frame reconstructed previous frame Encoder contains decoder

ELE 488 F06 More Detail

ELE 488 F06 Need for Bi-directional Encoding I B P P P P BBBBBB BBB I

ELE 488 F06 Bidirectional Encoding

ELE 488 F06 Frame Transmit Order vs Viewing Order View order Decode order = transmit order

ELE 488 F06 B-frames B-frames are coded in the same way as P-frames except that for each macro-block, search for the best matching block in both the preceding and succeeding anchor frames. Use the encoding that requires the fewest bits. Called bidirectional encoding.

ELE 488 F06 Block Matching Motion Estimation current frame Block for which motion vector to be determined a position for comparison previous frame another position Blocks of size MxN

ELE 488 F06 Complexity of Exhaustive Block-Matching Assumptions –Block size NxN and image size S=M1xM2 –Search step size is 1 pixel ~ “integer-pixel accuracy” –Search range +/–R pixels both horizontally and vertically Computation complexity –# Candidate matching blocks = (2R+1) 2 –# Operations for computing MAD for one block ~ O(N 2 ) –# Operations for MV estimation per block ~ O((2R+1) 2 N 2 ) –# Blocks = S / N 2 –Total # operations for entire frame ~ O((2R+1) 2 S) i.e., overall computation load is independent of block size! E.g., M=512, N=16, R=16, 30fps => On the order of 8.55 x 10 9 operations per second! –Was difficult for real time estimation, but possible with parallel hardware UMCP ENEE408G Slides (created by M.Wu & R.Liu © 2002)

ELE 488 F06 Exhaustive Search: Cons and Pros Pros –Guaranteed optimality within search range and motion model Cons –Motion vectors are integer valued –High computation complexity On the order of [search-range-size * image-size] for 1-pixel step size How to improve accuracy? –Half pixel – significantly improvement –Quarter pixel – some improvement –Requires interpolation How to improve speed? –Fast search –Try to exclude unlikely candidates UMCP ENEE408G Slides (created by M.Wu & R.Liu © 2002)

ELE 488 F06 Half pixel resolution in matching B ab c d p

ELE 488 F06 dx dy Fast Algorithm: 3-Step Search Search candidates at 9 positions Reduce step-size after each iteration –Start with step size approx. half of max. search range motion vector {dx, dy} = {1, 6} Total number of computations:  2 = 25 (3-step) (2R+1) 2 = 169 (full search) (Fig. from Ken Lam – HK Poly Univ. short course in summer’2001) UMCP ENEE408G Slides (created by M.Wu & R.Liu © 2002)

ELE 488 F06 Lowest resolution Lower resolution Original resolution Hierarchical Block Matching Problem with fast search at full resolution –Small mis-alignment may give large displacement error esp. for texture and edge blocks Hierarchical (multi-resolution) block matching –Match with coarse resolution to narrow down search range –Match with high resolution to refine motion estimation (From Wang’s Preprint Fig.6.19) UMCP ENEE408G Slides (created by M.Wu & R.Liu © 2002)

ELE 488 F06 Pixel Decimation IEEE Trans. on Video Technology, April 1993, pp a block in current frame part of a block in reference frame

ELE 488 F06 Pixel Decimation

ELE 488 F06 Subsampled Motion Field

ELE 488 F06 Subsampled Motion Field

ELE 488 F06 What else can you do with MPEG video? The MPEG encoder-decoder is asymmetric. –Encoder is much more complex than the decoder. Determining motion vectors is a major task –Decoding is easy and fast. –The encoding only has to be done once, the decoding will be done many times or at many locations. Symmetric application? Compression loses information. But –compressed video has information not readily available in original video