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.

Slides:



Advertisements
Similar presentations
Multimedia System Video
Advertisements

Introduction to H.264 / AVC Video Coding Standard Multimedia Systems Sharif University of Technology November 2008.
MPEG-1: A Standard for Digital Storage of Audio and Video Nimrod Peleg Update: Dec
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.
MPEG Video Coding I — MPEG-1 and 2
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)
Source Coding for Video Application
SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Video Compression Hai Tao.
CSc 461/561 Multimedia Systems Part B: 2. Lossy Compression
CS :: Fall 2003 MPEG Video (Part 2) Ketan Mayer-Patel.
H.264 / MPEG-4 Part 10 Nimrod Peleg March 2003.
Lecture06 Video Compression. Spatial Vs. Temporal Redundancy Image compression techniques exploit spatial redundancy, the phenomenon that picture contents.
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
Video Compression Basics
An Introduction to H.264/AVC and 3D Video Coding.
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.
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.
M P E G A Presentation by Sebastian Graf and Thomas Winterscheid.
Multimedia Data Video Compression The MPEG-1 Standard
Video Concepts and Techniques
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.
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)
Profiles and levelstMyn1 Profiles and levels MPEG-2 is intended to be generic, supporting a diverse range of applications Different algorithmic elements.
Videos Mei-Chen Yeh. Outline Video representation Basic video compression concepts – Motion estimation and compensation Some slides are modified from.
Final Review by Amy Zhang Digital Media Computing.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
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.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Chapter 10 Basic Video Compression Techniques
MPEG-4 Systems Introduction & Elementary Stream Management
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
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.
Introduction to MPEG Video Coding Dr. S. M. N. Arosha Senanayake, Senior Member/IEEE Associate Professor in Artificial Intelligence Room No: M2.06
V ENUS INTERNATIONAL COLLEGE OF TECHNOLOGY Guided by : Rinkal mam.
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 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.
H. 261 Video Compression Techniques 1. H.261  H.261: An earlier digital video compression standard, its principle of MC-based compression is retained.
Introduction to H.264 / AVC Video Coding Standard Multimedia Systems Sharif University of Technology November 2008.
H.261 Video Compression Overview
CSI-447: Multimedia Systems
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Video Compression - MPEG
CIS679: MPEG MPEG.
Standards Presentation ECE 8873 – Data Compression and Modeling
Presentation transcript:

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 recognized that proprietary interests need to be maintained within the family of MPEG standards:  Accomplished by defining only a compressed bitstream that implicitly defines the decoder.  The compression algorithms, and thus the encoders, are completely up to the manufacturers. 2

MPEG Generations 3  MPEG-1 ~ 1-1.5Mbps (early 90s)  For compression of 320x240 full-motion video at rates around 1.15Mb/s  Applications: video storage (VCD)  MPEG-2 ~ 2-80Mbps (mid 90s)  For higher resolutions  Support interlaced video formats and a number of features for HDTV  Address scalable video coding  Also used in DVD  MPEG-4 ~ 9-40kbps (later 90s & on-going new extensions)  For very low bit rate video and audio coding  Applications: interactive multimedia and video telephony  MPEG-21 ~ ongoing

MPEG Generations 4

MPEG-1  MPEG-1 adopts the CCIR601 digital TV format also known as SIF (Source Input Format).  Its picture resolution is:  352 × 240 for NTSC video at 30 fps  352 × 288 for PAL video at 25 fps  It uses 4:2:0 chroma subsampling  The MPEG-1 standard is also referred to as ISO/IEC It has five parts: Systems, Video, Audio, Conformance, and Software. 5 4:2:0 Format

MPEG-1 Video Coding Standard 6  Standard only specifies decoder’s capabilities  Prefer simple decoding and not limit encoder’s complexity  Leave flexibility and competition in implementing encoder  Block-based Hybrid Coding (DCT+M.C.)  8*8 block size as basic coding unit  16*16 “Macroblock” size for motion estimation/compensation  Group-of-Picture (GOP) structure with 3 types of frames  Intra coded  Forward-predictively coded  Bidirectional-predictively coded

Motion Compensation in MPEG-1  Motion Compensation (MC) based video encoding in H.261 works as follows:  In Motion Estimation (ME), each macroblock (MB) of the Target P-frame is assigned a best matching MB from the previously coded I or P frame - prediction.  prediction error: The difference between the MB and its matching MB, sent to DCT and its subsequent encoding steps.  The prediction is from a previous frame — forward prediction. 7

Fig 1. The Need for Bidirectional Search.  The MB containing part of a ball in the Target frame cannot find a good matching MB in the previous frame because half of the ball was occluded by another object. A match however can readily be obtained from the next frame. 8 Motion Compensation in MPEG-1 (Cont’d)

 MPEG introduces a third frame type — B-frames, and its accompanying bi- directional motion compensation.  B-frames are quite similar to P-frames, except they can make predictions using both the previous and future frames.  The MC-based B-frame coding idea is illustrated in Fig. 2:  Each MB from a B-frame will have up to two motion vectors (MVs) (one from the forward and one from the backward prediction).  If matching in both directions is successful, then two MVs will be sent and the two corresponding matching MBs are averaged (indicated by ‘%’ in the figure) before comparing to the Target MB for generating the prediction error.  If an acceptable match can be found in only one of the reference frames, then only one MV and its corresponding MB will be used from either the forward or backward prediction. 9

 Fig 2. B-frame Coding Based on Bidirectional Motion Compensation. 10

Bi-directional motion compensation 11  Advantages  Higher coding efficiency  Increased frame rate with few extra bits  No uncovered background problem  No error propagation  Disadvantages  More frame storage is needed  More delay

 Fig 3. MPEG Frame Sequence. 12 Priority: Intra ->Forward -> Bidirectional

Data Structure 13

Group of Picture (GOP) 14  N = number of pictures in a GOP  M = prediction distance (M-1 in-between B-pictures)  Tradeoff on M

Delay 15  It is therefore necessary for the player to first decode the next I- or P- anchor frame sequentially after the B-frame, before the B-frame can be decoded and displayed.  This makes B-frames very computationally complex, requires larger data buffers, and causes an increased delay on both decoding and during encoding.

Other Major Differences from H.261  Source formats supported:  H.261 only supports CIF (352 × 288) and QCIF (176 × 144) source formats, MPEG-1 supports SIF (352 × 240 for NTSC, 352 × 288 for PAL).  MPEG-1 also allows specification of other formats as long as the Constrained Parameter Set (CPS) as shown in Table 1 is satisfied:  Table1: The MPEG-1 Constrained Parameter Set  ParameterValue Horizontal size of picture≤ 768 Vertical size of picture≤ 576 No. of MBs / picture≤ 396 No. of MBs / second≤ 9,900 Frame rate≤ 30 fps Bit-rate≤ 1,856 kbps 16

Other Major Differences from H.261 (Cont’d)  Instead of GOBs as in H.261, an MPEG-1 picture can be divided into one or more slices (Fig. 4):  May contain variable numbers of macroblocks in a single picture.  May also start and end anywhere as long as they fill the whole picture.  Each slice is coded independently — additional flexibility in bit- rate control.  Slice concept is important for error recovery. 17

 Fig 4: Slices in an MPEG-1 Picture. 18

Other Major Differences from H.261 (Cont’d)  Quantization:  MPEG-1 quantization uses different quantization tables for its Intra and Inter coding (Table 2 and 3).  For DCT coefficients in Intra mode:  (1)  For DCT coefficients in Inter mode:  (2)  19

 Table 2: Default Quantization Table ( Q 1 ) for Intra-Coding  Table 3: Default Quantization Table ( Q 2 ) for Inter-Coding   Quantizer for I-frame (I-block)  Different step size for different freq. band (similar to JPEG)  Default quantization table  Scale the table for different compression-quality  Quantizer for residues in predictive block  Noise-like residue  Similar variance in different frequency band  Assign same quantization step size for each frequency band Other Major Differences from H.261 (Cont’d)

Matlab Experiment (Quantization) 21  1. Read a bmp image  2. read a 8*8 block  3. DCT transformation  4. Derive the quantization results using the intra mode equation

Other Major Differences from H.261 (Cont’d)  MPEG-1 allows motion vectors to be of sub-pixel precision (1/2 pixel). The technique of “bilinear interpolation” for H.263 can be used to generate the needed values at half-pixel locations.  Compared to the maximum range of ±15 pixels for motion vectors in H.261, MPEG-1 supports a range of [ − 512, 511.5] for half-pixel precision and [ − 1,024, 1,023] for full-pixel precision motion vectors.  The MPEG-1 bitstream allows random access — accomplished by GOP layer in which each GOP is time coded. 22

Typical Sizes of MPEG-1 Frames  The typical size of compressed P-frames is significantly smaller than that of I-frames — because temporal redundancy is exploited in inter-frame compression.  B-frames are even smaller than P-frames — because of (a) the advantage of bi-directional prediction and (b) the lowest priority given to B-frames.  Table 4: Typical Compression Performance of MPEG-1 Frames  TypeSizeCompression I18kB7:1 P6kB20:1 B2.5kB50:1 Avg4.8kB27:1 23

 Fig 5: Layers of MPEG-1 Video Bitstream. 24

Performance Tradeoff 25

Any Questions? 26