EE591f Digital Video Processing 1 Roadmap Introduction Intra-frame coding –Review of JPEG Inter-frame coding –Conditional Replenishment (CR) –Motion Compensated.

Slides:



Advertisements
Similar presentations
Introduction to H.264 / AVC Video Coding Standard Multimedia Systems Sharif University of Technology November 2008.
Advertisements

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.
Technion - IIT Dept. of Electrical Engineering Signal and Image Processing lab Transrating and Transcoding of Coded Video Signals David Malah Ran Bar-Sella.
1 Wavelets and compression Dr Mike Spann. 2 Contents Scale and image compression Signal (image) approximation/prediction – simple wavelet construction.
DWT based Scalable video coding with scalable motion coding Syed Jawwad Bukhari.
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
Spatial and Temporal Data Mining
H.264 / MPEG-4 Part 10 Nimrod Peleg March 2003.
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Image (and Video) Coding and Processing Lecture: DCT Compression and JPEG Wade Trappe Again: Thanks to Min Wu for allowing me to borrow many of her slides.
CS :: Fall 2003 MPEG-1 Video (Part 1) Ketan Mayer-Patel.
JPEG Still Image Data Compression Standard
Investigation of Motion-Compensated Lifted Wavelet Transforms Information Systems Laboratory Department of Electrical Engineering Stanford University Markus.
EE569 Digital Video Processing
CMPT 365 Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
SWE 423: Multimedia Systems Chapter 7: Data Compression (4)
1 Image and Video Compression: An Overview Jayanta Mukhopadhyay Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur,
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
An Introduction to H.264/AVC and 3D Video Coding.
Video Compression Concepts Nimrod Peleg Update: Dec
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Lossy Image Compression
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
Electrical Engineering National Central University Video-Audio Processing Laboratory Data Error in (Networked) Video M.K.Tsai 04 / 08 / 2003.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
 Coding efficiency/Compression ratio:  The loss of information or distortion measure:
Video Coding. Introduction Video Coding The objective of video coding is to compress moving images. The MPEG (Moving Picture Experts Group) and H.26X.
Introduction to JPEG and MPEG Ingemar J. Cox University College London.
1 Section 3. Image Compression Xudong Ni Group Member: Wei Yan,Li Yang,Xudong Ni Computer Science Florida International University.
Comparative study of various still image coding techniques. Harish Bhandiwad EE5359 Multimedia Processing.
Low Bit Rate H Video Coding: Efficiency, Scalability and Error Resilience Faouzi Kossentini Signal Processing and Multimedia Group Department of.
Image and Video Compression Fundamentals Heejune AHN Embedded Communications Laboratory Seoul National Univ. of Technology Fall 2013 Last updated 2013.
EE465: Introduction to Digital Image Processing1 Data Compression Techniques Text: WinZIP, WinRAR (Lempel-Ziv compression’1977) Image: JPEG (DCT-based),
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
1 Classification of Compression Methods. 2 Data Compression  A means of reducing the size of blocks of data by removing  Unused material: e.g.) silence.
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Computer Vision – Compression(1) Hanyang University Jong-Il Park.
Compression of Real-Time Cardiac MRI Video Sequences EE 368B Final Project December 8, 2000 Neal K. Bangerter and Julie C. Sabataitis.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
Image/Video Coding Techniques for IPTV Applications Wen-Jyi Hwang ( 黃文吉 ) Department of Computer Science and Information Engineering, National Taiwan Normal.
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
Video Compression—From Concepts to the H.264/AVC Standard
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.
Video Compression and Standards
Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter Introduction Lossless compression algorithms do not deliver compression.
EE465: Introduction to Digital Image Processing1 Lossy Image Compression: a Quick Tour of JPEG Coding Standard Why lossy for grayscale images?  Tradeoff.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 7 ECEC 453 Image Processing Architecture Lecture 8, February 5, 2004 JPEG: A Standard.
(B1) What are the advantages and disadvantages of digital TV systems? Hint: Consider factors on noise, data security, VOD etc. 1.
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.
EE591f Digital Video Processing
Motion Estimation Multimedia Systems and Standards S2 IF Telkom University.
By Dr. Hadi AL Saadi Lossy Compression. Source coding is based on changing of the original image content. Also called semantic-based coding High compression.
MP3 and AAC Trac D. Tran ECE Department The Johns Hopkins University Baltimore MD
H. 261 Video Compression Techniques 1. H.261  H.261: An earlier digital video compression standard, its principle of MC-based compression is retained.
Complexity varying intra prediction in H.264 Supervisors: Dr. Ofer Hadar, Mr. Evgeny Kaminsky Students: Amit David, Yoav Galon.
JPEG Compression What is JPEG? Motivation
IMAGE PROCESSING IMAGE COMPRESSION
FHTW Wavelet Based Video Compression Using Long Term Memory Motion-Compensated Prediction and Context-based Adaptive Arithmetic Coding D.Marpe, H.L.Cycon,
Discrete Cosine Transform
CMPT 365 Multimedia Systems
JPEG Still Image Data Compression Standard
Presentation transcript:

EE591f Digital Video Processing 1 Roadmap Introduction Intra-frame coding –Review of JPEG Inter-frame coding –Conditional Replenishment (CR) –Motion Compensated Prediction (MCP) Object-based and scalable video coding* –Motion segmentation, scalability issues

EE591f Digital Video Processing 2 Introduction to Video Coding Lossless vs. lossy data compression –Source entropy H(X) –Rate-Distortion function R(D) or D(R) Probabilistic modeling is at the heart of data compression –What is P(X) for video source X? –Modeling moving pictures is more difficult than modeling still images due to temporal dependency

EE591f Digital Video Processing 3 Shannon’s Picture Rate (bps) Distortion Coder A Coder B Which coder wins, A or B?

EE591f Digital Video Processing 4 Distortion Measures Objective –Mean Square Error (MSE) –Peak Signal-to-Noise-Ratio (PSNR) –Measure the fidelity to original video Subjective –Human Vision System (HVS) based –Emphasize visual quality rather than fidelity We only discuss objective measures in this course

EE591f Digital Video Processing 5 Roadmap Introduction Intra-frame coding –Review of JPEG Inter-frame coding –Conditional Replenishment (CR) –Motion Compensated Prediction (MCP) Scalable video coding –3D subband/wavelet coding and recent trend

EE591f Digital Video Processing 6 A Tour of JPEG Coding Standard Key Components  Transform  Quantization  Coding -8×8 DCT -boundary padding -uniform quantization -DC/AC coefficients -Zigzag scan -run length/Huffman coding

EE591f Digital Video Processing 7 JPEG Baseline Coder Tour Example

EE591f Digital Video Processing 8 Step 1: Transform DC level shifting 2D DCT -128 DCT

EE591f Digital Video Processing 9 Step 2: Quantization Q-table Q Why increase from top-left to bottom-right?

EE591f Digital Video Processing 10 Step 3: Entropy Coding Zigzag Scan (20,5,-3,-1,-2,-3,1,1,-1,-1, 0,0,1,2,3,-2,1,1,0,0,0,0,0, 0,1,1,0,1,EOB) Zigzag Scan End Of the Block: All following coefficients are zero

EE591f Digital Video Processing 11 Roadmap Introduction Intra-frame coding –Review of JPEG Inter-frame coding –Conditional Replenishment (CR) –Motion Compensated Prediction (MCP) Scalable video coding –3D subband/wavelet coding and recent trend

EE591f Digital Video Processing 12 Conditional Replenishment Based on motion detection rather than motion estimation Partition the current frame into “still areas” and “moving areas” –Replenishment is applied to moving regions only –Repetition is applied to still regions Need to transmit the location of moving areas as well as new (replenishment) information –No motion vectors transmitted

EE591f Digital Video Processing 13 Conditional Replenishment

EE591f Digital Video Processing 14 Motion Detection

EE591f Digital Video Processing 15 From Replenishment to Prediction Replenishment can be viewed as a degenerated case of prediction –Only zero motion vector is considered –Discard the history A more powerful approach of exploiting temporal dependency is prediction –Locate the best match from the previous frame –Use the history to predict the current

EE591f Digital Video Processing 16 Differential Pulse Coded Modulation _ + D xnxn xnxn x n-1 ynyn + ynyn xnxn D Encoder Decoder Q ^ ynyn ^ ^ ^ ^ x n-1 ^ ^ X n,y n : unquantized samples and prediction residues X n,y n : decoded samples and quantized prediction residues ^ ^

EE591f Digital Video Processing 17 Motion-Compensated Predictive Coding

EE591f Digital Video Processing 18 A Closer Look

EE591f Digital Video Processing 19 Key Components Motion Estimation/Compensation –At the heart of MCP-based coding Coding of Motion Vectors (overhead) –Lossless: errors in MV are catastrophic Coding of MCP residues –Lossy: distortion is controlled by the quantization step-size Rate-Distortion optimization

EE591f Digital Video Processing 20 Block-based Motion Model Block size –Fixed vs. variable Motion accuracy –Integer-pel vs. fractional-pel Number of hypothesis –Overlapped Block Motion Compensation (OBMC) –Multi-frame prediction

EE591f Digital Video Processing 21 Quadtree Representation of Motion Field with Variable Blocksize

EE591f Digital Video Processing 22 Rate-Distortion Optimized BMA Distortion alone Rate and Distortion counted bits using a VLC table

EE591f Digital Video Processing 23 Experimental Results Cited from G. Sullivan and L. Baker, “Rate-Distortion optimized motion compensation for video compression using fixed or variable size blocks”, Globecom’1991

EE591f Digital Video Processing 24 Fractional-pel BMA Recall the tradeoff between spending bits on motion and spending bits on MCP residues Intuitively speaking, going from integer-pel to fractional-pel is good for it dramatically reduces the variance of MCP residues for some video sequence. The gain quickly saturates as motion accuracy refines

EE591f Digital Video Processing 25 8-by-8 block, half-pel, var(e)= by-8 block, integer-pel, var(e)=220.8 Example MCP residue comparison for the first two frames of Mobile sequence

EE591f Digital Video Processing 26 Fractional-pel MCP

EE591f Digital Video Processing 27 Multi-Hypothesis MCP Using one block from one reference frame represents a single-hypothesis MCP It is possible to formulate multiple hypothesis by considering –Overlapped blocks –More than one reference frame Why multi-hypothesis? –The benefit of reducing variance of MCP residues outweighs the increased overhead on motion

EE591f Digital Video Processing 28 Example: B-frame f n-1 fnfn f n+1

EE591f Digital Video Processing 29 Generalized B-frame f n-1 fnfn f n+1 f n+2 f n-2

EE591f Digital Video Processing 30 Multi-Hypothesis MCP

EE591f Digital Video Processing 31 Key Components Motion Estimation –At the heart of MCP-based coding Coding of Motion Vectors (overhead) –Lossless: errors in MV are catastrophic Coding of MCP residues –Lossy: distortion is controlled by the quantization step-size Rate-Distortion optimization

EE591f Digital Video Processing 32 Motion Vector Coding 2D lossless DPCM –Spatially (temporally) adjacent motion vectors are correlated –Use causal neighbors to predict the current one –Code Motion Vector Difference (MVD) instead of MVs Entropy coding techniques –Variable length codes (VLC) –Arithmetic coding

EE591f Digital Video Processing 33 MVD Example MV MV 1 MV 2 MV 3 Due to smoothness of MV field, MVD usually has a smaller variance than MV

EE591f Digital Video Processing 34 VLC Example MV x /MV y symbolcodeword Exponential Golomb Codes: 0…01x…x m m

EE591f Digital Video Processing 35 Key Components Motion Estimation –At the heart of MCP-based coding Coding of Motion Vectors (overhead) –Lossless: errors in MV are catastrophic Coding of MCP residues –Lossy: distortion is controlled by the quantization step-size Rate-Distortion optimization

EE591f Digital Video Processing 36 MCP Residue Coding TransformQuantizationCoding Conceptually similar to JPEG Transform: unitary transform Quantization: Deadzone quantization Coding: Run-length coding

EE591f Digital Video Processing 37 Transform Unitary matrix: A is real, A -1 =A T Unitary transform: A is unitary, Y=AXA T Examples –8-by-8 DCT –4-by-4 integer transform

EE591f Digital Video Processing 38 Deadzone Quantization 22  0 deadzone codewords

EE591f Digital Video Processing 39 Key Components Motion Estimation –At the heart of MCP-based coding Coding of Motion Vectors (overhead) –Lossless: errors in MV are catastrophic Coding of MCP residues –Lossy: distortion is controlled by the quantization step-size Rate-Distortion optimization

EE591f Digital Video Processing 40 Lagrangian Multiplier Method Motion estimation Mode selection QUANT: a user-specified parameter controlling quantization stepsize

EE591f Digital Video Processing 41 Summary How does MCP coding work? –The predictive model captures the slow-varying trend of the samples {f n } –The modeling of prediction residues {e n } is easier than that of original samples {f n } Fundamental weakness –Quantization error will propagate unless the memory of predictor is refreshed –Not suitable for scalable coding applications

EE591f Digital Video Processing 42 Roadmap Introduction Intra-frame coding –Review of JPEG Inter-frame coding –Conditional Replenishment (CR) –Motion Compensated Prediction (MCP) Scalable video coding –3D subband/wavelet coding and recent trend

EE591f Digital Video Processing 43 Scalable vs. Multicast What is scalable coding? Multicast Scalable coding foreman.yuv foreman128k.cod foreman256k.cod foreman512k.cod foreman1024k.cod foreman.yuv foreman.cod

EE591f Digital Video Processing 44 Spatial scalability 10111… …110100

EE591f Digital Video Processing 45 Temporal scalability 10111… … Frame 0,1,2,3,4,5,… Frame 0,2,4,6,8,…Frame 0,4,8,12,… 30Hz15Hz 7.5Hz

EE591f Digital Video Processing 46 SNR (Rate) scalability 10111… … PSNR avg =30dB PSNR avg =35dB PSNR avg =40dB PSNR i : PSNR of frame i

EE591f Digital Video Processing 47 Scalability via Bit-Plane Coding A=  (a 0 +a 1 2+a … … +a ) Least Significant Bit (LSB) Most Significant Bit (MSB) Example A=129  sign=+,a 0 a 1 a 2 …a 7 = sign=-, a 0 a 1 a 2 …a 7 =  A=-( )=-204 sign bit

EE591f Digital Video Processing 48 Why DPCM Bad for Scalability? Base layer Enhancement Layer 1 Enhancement Layer 2 I base PPP I enh1 I enh … Frame number P P P P P P suffer from drifting problem suffer from coding efficiency loss

EE591f Digital Video Processing 49 3D Wavelet/Subband Coding t x y 2D spatial WT+1D temporal WT

EE591f Digital Video Processing 50 Motion-Adaptive 3D Wavelet Transform Recall Haar transform Motion-adaptive Haar transform W,W -1 : forward and backward motion vector lifting-based implementation