Department of Computer Engineering University of California at Santa Cruz Video Compression Hai Tao.

Slides:



Advertisements
Similar presentations
MPEG-1: A Standard for Digital Storage of Audio and Video Nimrod Peleg Update: Dec
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.
1 Video Coding Concept Kai-Chao Yang. 2 Video Sequence and Picture Video sequence Large amount of temporal redundancy Intra Picture/VOP/Slice (I-Picture)
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
CSc 461/561 Multimedia Systems Part B: 2. Lossy Compression
CS :: Fall 2003 MPEG Video (Part 2) Ketan Mayer-Patel.
Lecture06 Video Compression. Spatial Vs. Temporal Redundancy Image compression techniques exploit spatial redundancy, the phenomenon that picture contents.
School of Computing Science Simon Fraser University
CS :: Fall 2003 MPEG-1 Video (Part 1) Ketan Mayer-Patel.
Fundamentals of Multimedia Chapter 10 Basic Video Compression Techniques Ze-Nian Li & Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Fundamentals of Multimedia Chapter 11 MPEG Video Coding I MPEG-1 and 2
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
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.
©Brooks/Cole, 2003 Chapter 15 Data Compression. ©Brooks/Cole, 2003 Realize the need for data compression. Differentiate between lossless and lossy compression.
1 Video Compression 1: H 261 Multimedia Systems (Module 4 Lesson 2) Summary: r H 261 Coding Compress color motion video into a low-rate bit stream at following.
Video Compression Concepts Nimrod Peleg Update: Dec
1 Video Compression 2: Bi-directional Coding Multimedia Systems (Module 4 Lesson 3) Summary: r MPEG Coding m Bi-directional Motion- Compensation r MPEG.
Video Compression CIS 465 Spring 2013.
MPEG-2 Digital Video Coding Standard
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.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 9 ECEC-453 Image Processing Architecture Lecture 9, 2/12/ 2004 MPEG 1 Oleh Tretiak.
MPEG-2 Standard By Rigoberto Fernandez. MPEG Standards MPEG (Moving Pictures Experts Group) is a group of people that meet under ISO (International Standards.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Digital Video Motion Pictures Broadcast Television Digital Video 11/28.
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
Introduction to JPEG and MPEG Ingemar J. Cox University College London.
MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.
MPEG: (Moving Pictures Expert Group) A Video Compression Standard for Multimedia Applications Seo Yeong Geon Dept. of Computer Science in GNU.
DATA COMPRESSION LOSSY COMPRESSION METHODS What it is… A compression of information that is acceptable in pictures or videos, but not texts or programs.
Picture typestMyn1 Picture types There are three types of coded pictures. I (intra) pictures are fields or frames coded as a stand-alone still image. These.
Video Compression Techniques By David Ridgway.
MPEG Motion Picture Expert Group Moving Picture Encoded Group Prateek raj gautam(725/09)
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.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Codec structuretMyn1 Codec structure In an MPEG system, the DCT and motion- compensated interframe prediction are combined. The coder subtracts the motion-compensated.
MPEG MPEG : Motion Pictures Experts Group MPEG : ISO Committee Widely Used Video Compression Standard.
Chapter 11 MPEG Video Coding I — MPEG-1 and 2
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”
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Chapter 10 Basic Video Compression Techniques
Image/Video Coding Techniques for IPTV Applications Wen-Jyi Hwang ( 黃文吉 ) Department of Computer Science and Information Engineering, National Taiwan Normal.
Chapter 10 Basic Video Compression Techniques 10.1 Introduction to Video Compression 10.2 Video Compression with Motion Compensation 10.3 Search for Motion.
MPEG.
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
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.
Principles of Video Compression Dr. S. M. N. Arosha Senanayake, Senior Member/IEEE Associate Professor in Artificial Intelligence Room No: M2.06
Video Concepts and Techniques 1 SAMARTH COLLEGE OF ENGINEERING &TECHNOLOLOGY DEPARTMENT OF ELECTRONIC & COMMUNICATION ENGINEERING 5th semester (E&C) Subject.
Video Compression Video : Sequence of frames Each Frame : 2-D Array of Pixels Video: 3-D data – 2-D Spatial, 1-D Temporal Video has both : – Spatial Redundancy.
CMPT365 Multimedia Systems 1 Media Compression - Video Spring 2015 CMPT 365 Multimedia Systems.
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.
Media Compression.
H.261 Video Compression Overview
MPEG-1 Video Coding Standard
Video Compression - MPEG
ENEE 631 Project Video Codec and Shot Segmentation
Standards Presentation ECE 8873 – Data Compression and Modeling
Presentation transcript:

Department of Computer Engineering University of California at Santa Cruz Video Compression Hai Tao

Department of Computer Engineering University of California at Santa Cruz Why does video compression work ? n JPEG compression exploits the spatial redundancy in image data through DCT n For video data, each frame can be compressed using JPEG and a compression ratio of 20:1 can be achieved. Can it be do more ? n Consecutive frames are very similar. If we encode the first frame and encode where each region moves to in the second frame, we obtain a prediction of the second frame. Only the residual needs to be encoded. n This is similar to predictive coding that exploits the temporal redundancy in video data

Department of Computer Engineering University of California at Santa Cruz MPEG compression n Motion Picture Expert Group, established in 1990 to create standards for delivering audio and video data n MPEG-1: for VHS quality video (VCD, 320 x 240 pixels/frame or audio of 1.5 Mbits/sec). The components of MPEG1 are JPEG+motion prediction for video coding MUSICAM based audio Stream control n MPEG-2: designed for various bitrates from 352x240 consumer video (4Mbit/s), 720x480 studio TV(15 Mbit/s), to HDTV 1440x1152 (60 Mbit/s) n

Department of Computer Engineering University of California at Santa Cruz Motion Prediction n Suppose the first frame is encoded already using JPEG, what is the best way of encode frame 2 ? JPEG Motion prediction n Motion prediction Frame 1 Frame 2

Department of Computer Engineering University of California at Santa Cruz Motion prediction n For motion prediction to work, we need to record the motion of every pixel. This can be done more efficiently using image blocks called “Macroblocks” n The predicted macroblock and the actual image block are compared and the difference is encoded

Department of Computer Engineering University of California at Santa Cruz Motion prediction n Previous frame is called “reference” frame n Current frame is called “target” frame n The target frame is divided into 16x16 macroblocks n For each macroblock, its best match in the reference frame is computed, the 2D motion vector and the image prediction error are recorded Prediction error: DCT+Quantization+RLE+Huffman Motion vector: Quantization+entropy coding

Department of Computer Engineering University of California at Santa Cruz Matching Macroblocks n Different match measures and methods can be used for finding the best match for each macroblock n Different measures Mean absolute difference Mean squared difference

Department of Computer Engineering University of California at Santa Cruz Matching Macroblocks n Different matching methods Full search method - search the RxR regions to find the position with minimum MAD or MSE

Department of Computer Engineering University of California at Santa Cruz Matching Macroblocks n Two-dimensional logarithmic search Search at the largest scale at nine locations Find the best match Start from the best match, reduce the scale, repeat the previous steps

Department of Computer Engineering University of California at Santa Cruz Matching Macroblocks n Hierarchical motion estimation Build image pyramid by down-sampling the image Estimate the motion at the coarse level Propagate the motion from the coarse level to the next fine level Refine the motion at fine level Repeat these steps until the finest level

Department of Computer Engineering University of California at Santa Cruz MPEG compression n MPEG encodes video frames using the following pattern n I-frame: Intraframe n P-frame: Interframe n B-frame: Bi-directional frame, search for macroblocks both in I-frame and P-frame n So B frames are decoded after next P frame is decoded

Department of Computer Engineering University of California at Santa Cruz Why B frame ? n Images in video are best predicted by both previous and following images, especially for occluded areas n In frame 2, the black region can not be predicted from frame 1, because it is not visible in frame 1 n But it can be inferred from frame 3 Frame 1 Frame 2 Frame 3

Department of Computer Engineering University of California at Santa Cruz B-frame encoding n

Department of Computer Engineering University of California at Santa Cruz Slices n To make the process of decoding more resilient to transmission errors, each frame is divided into slices. If one slice is corrupted, the decode will restart from the beginning of the next slice. The following image is divided into 7 slices

Department of Computer Engineering University of California at Santa Cruz MPEG video bitstream n

Department of Computer Engineering University of California at Santa Cruz MPEG video bitstream n Sequence information Video Params include width, height, aspect ratio of pixels, picture rate. Bitstream Params are bit rate, buffer size, and constrained parameters flag (means bitstream can be decoded by most hardware) Two types of QTs: one for intra-coded blocks (I-frames) and one for inter-coded blocks (P-frames). n Group of Picture (GOP)Information Time code: bit field with SMPTE time code (hours, minutes, seconds, frame). GOP Params are bits describing structure of GOP.

Department of Computer Engineering University of California at Santa Cruz MPEG video bitstream n Picture information Type: I, P, or B-frame? Buffer Params indicate how full decoder's buffer should be before starting decode. Encode Params indicate whether half pixel motion vectors are used. n Slice information Vert Pos: what line does this slice start on? QScale: How is the quantization table scaled in this slice? n Macroblock information Addr Incr: number of MBs to skip. Type: Does this MB use a motion vector? What type? QScale: How is the quantization table scaled in this MB? Coded Block Pattern (CBP): bitmap indicating which blocks are coded.