Video Compression - MPEG

Slides:



Advertisements
Similar presentations
Multimedia System Video
Advertisements

MPEG: A Video Compression Standard for Multimedia Applications Václav Hlaváč CTU Prague, Initial material were slides of Didier.
Data Compression CS 147 Minh Nguyen.
Multimedia Systems As Presented by: Craig Tomastik.
Chapter 6 Review.
Standards, process, requirements 4K PLAYBACK EXPLAINED.
A Brief Overview of the MPEG2 Standard Dr. David Corrigan.
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
Audiovisual digital documents Adolf Knoll National Library of the Czech Republic
Chapter 7 End-to-End Data
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
1 Audio Compression Techniques MUMT 611, January 2005 Assignment 2 Paul Kolesnik.
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.
CSc 461/561 CSc 461/561 Multimedia Systems 0. Introduction.
ATSC Digital Television
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Multimedia Retrieval Architecture Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
AUDIO VIDEO FLASH DIGITAL MEDIA: COMMUNICATION AND DESIGN
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
Image Formation and Digital Video
MPEG-2 Digital Video Coding Standard
+ Video Compression Rudina Alhamzi, Danielle Guir, Scott Hansen, Joe Jiang, Jason Ostroski.
EE 5359 H.264 to VC 1 Transcoding Vidhya Vijayakumar Multimedia Processing Lab MSEE, University of Arlington Guided.
Video Streaming © Nanda Ganesan, Ph.D..
Using Multimedia on the Web
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
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.
M P E G A Presentation by Sebastian Graf and Thomas Winterscheid.
Multimedia Data Video Compression The MPEG-1 Standard
Video Basics. Agenda Digital Video Compressing Video Audio Video Encoding in tools.
MPEG: (Moving Pictures Expert Group) A Video Compression Standard for Multimedia Applications Seo Yeong Geon Dept. of Computer Science in GNU.
Multimedia Data Video Compression The MPEG-1 Standard Dr Mike Spann Electronic, Electrical and Computer.
Data Compression and Network Video by Mark Pelley Navin Dodanwela.
Audio Compression Usha Sree CMSC 691M 10/12/04. Motivation Efficient Storage Streaming Interactive Multimedia Applications.
Computing in the Modern World BCS-CMW-7: Data Representation Wayne Summers Marion County October 25, 2011.
 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 Video. Video Creation Video captures the real world therefore video cannot be created in the same sense that images can be created video must.
Video.
GIF - Graphics Interchange Format JPEG - Joint Photographic Experts Group PNG - Portable Network Graphics GIF images are limited to the 8 bit palette which.
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.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
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.
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”
8. 1 MPEG MPEG is Moving Picture Experts Group On 1992 MPEG-1 was the standard, but was replaced only a year after by MPEG-2. Nowadays, MPEG-2 is gradually.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Class 9 LBSC 690 Information Technology Multimedia.
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.
Multimedia – Digital Video Dr. Lina A. Nimri Lebanese University Faculty of Economic Sciences and Business Administration 1 st branch.
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.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
1 Part A Multimedia Production Chapter 2 Multimedia Basics Digitization, Coding-decoding and Compression Information and Communication Technology.
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.
1 CSCD 443/533 Advanced Networks Fall 2016 Lecture 19 Compression of Video and Audio.
High Definition Television. 2 Overview Technology advancements History Why HDTV? Current TV standards HDTV specifications Timeline Application Current.
Video Basics.
Data Compression.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Data Compression.
Video Compression - MPEG
Data Compression CS 147 Minh Nguyen.
Standards Presentation ECE 8873 – Data Compression and Modeling
Chap 3: Encoding Video Content
Govt. Polytechnic Dhangar(Fatehabad)
Presentation transcript:

Video Compression - MPEG Roger Cheng Spring 2007

Evolution of video mediums Film Invented in late 18th century, still widely used today VHS Released in 1976, rapidly disappearing

Evolution of video mediums DVD Released in 1996, dominant for over a decade Hard Disk Around for many years, only recently widely used for storing video (helped by explosion of Internet)

Transition from analog mediums to digital mediums The “N word” Analog signals are prone to corruption by noise Economics Optical media is cheaper to produce than magnetic media Creates need to convert analog video to digital format

Video digitization New digital video cameras have on-board hardware to capture directly to digital format Old film can be scanned with special machines to produce digital stream

Video Encoding/Compression Once video is in digital format, it makes sense to compress it Similarly to image compression, we want to store video data as efficiently as possible Again, we want to both maximize quality and minimize storage space and processing resources This time, we can exploit correlation in both space and time domains

TMI! (Too Much Information) Unlike image encoding, video encoding is rarely done in lossless form No storage medium has enough capacity to store a practical sized lossless video file Lossless DVD video - 221 Mbps Compressed DVD video - 4 Mbps 50:1 compression ratio!

Definitions Bitrate Resolution FPS (frames per second) Information stored/transmitted per unit time Usually measured in Mbps (Megabits per second) Ranges from < 1 Mbps to > 40 Mbps Resolution Number of pixels per frame Ranges from 160x120 to 1920x1080 FPS (frames per second) Usually 24, 25, 30, or 60 Don’t need more because of limitations of the human eye

Scan types Interlaced scan Odd and even lines displayed on alternate frames Initially used to save bandwidth on TV transmission When displaying interlaced video on a progressive scan display, can see “comb effect”

Scan types Progressive scan Display all lines on each frame New “fixed-resolution” displays (such as LCD, Plasma) all use progressive scan Deinterlacing is not a trivial task

MPEG (Moving Pictures Expert Group) Committee of experts that develops video encoding standards Until recently, was the only game in town (still the most popular, by far) Suitable for wide range of videos Low resolution to high resolution Slow movement to fast action Can be implemented either in software or hardware

Evolution of MPEG MPEG-1 Initial audio/video compression standard Used by VCD’s MP3 = MPEG-1 audio layer 3 Target of 1.5 Mb/s bitrate at 352x240 resolution Only supports progressive pictures

Evolution of MPEG MPEG-2 Current de facto standard, widely used in DVD and Digital TV Ubiquity in hardware implies that it will be here for a long time Transition to HDTV has taken over 10 years and is not finished yet Different profiles and levels allow for quality control

Evolution of MPEG MPEG-3 MPEG-4 Originally developed for HDTV, but abandoned when MPEG-2 was determined to be sufficient MPEG-4 Includes support for AV “objects”, 3D content, low bitrate encoding, and DRM In practice, provides equal quality to MPEG-2 at a lower bitrate, but often fails to deliver outright better quality MPEG-4 Part 10 is H.264, which is used in HD-DVD and Blu-Ray

MPEG Block Diagram

MPEG technical specification Part 1 - Systems - describes synchronization and multiplexing of video and audio. Part 2 - Video - compression codec for interlaced and non-interlaced video signals. Part 3 - Audio - compression codec for perceptual coding of audio signals. A multichannel-enabled extension of MPEG-1 audio. Part 4 - Describes procedures for testing compliance. Part 5 - Describes systems for Software simulation. Part 6 - Describes extensions for DSM-CC (Digital Storage Media Command and Control.) Part 7 - Advanced Audio Coding (AAC) Part 8 - Deleted Part 9 - Extension for real time interfaces. Part 10 - Conformance extensions for DSM-CC.

MPEG video spatial domain processing Spatial domain handled very similarly to JPEG Convert RGB values to YUV colorspace Split frame into 8x8 blocks 2-D DCT on each block Quantization of DCT coefficients Run length and entropy coding

MPEG video time domain processing Totally new ballgame (this concept doesn’t exist in JPEG) General idea – Use motion vectors to specify how a 16x16 macroblock translates between reference frames and current frame, then code difference between reference and actual block

Types of frames I frame (intra-coded) P frame (predictive-coded) Coded without reference to other frames P frame (predictive-coded) Coded with reference to a previous reference frame (either I or P) Size is usually about 1/3rd of an I frame B frame (bi-directional predictive-coded) Coded with reference to both previous and future reference frames (either I or P) Size is usually about 1/6th of an I frame

GOP (Group of Pictures) GOP is a set of consecutive frames that can be decoded without any other reference frames Usually 12 or 15 frames Transmitted sequence is not the same as displayed sequence Random access to middle of stream – Start with I frame

Things about prediction Only use motion vector if a “close” match can be found Evaluate “closeness” with MSE or other metric Can’t search all possible blocks, so need a smart algorithm If no suitable match found, just code the macroblock as an I-block If a scene change is detected, start fresh Don’t want too many P or B frames in a row Predictive error will keep propagating until next I frame Delay in decoding

Bitrate allocation CBR – Constant BitRate VBR – Variable BitRate Streaming media uses this Easier to implement VBR – Variable BitRate DVD’s use this Usually requires 2-pass coding Allocate more bits for complex scenes This is worth it, because you assume that you encode once, decode many times

MPEG audio MPEG-1 – 3 layers of increasing quality, layer 3 being the most common (MP3) 16 bits Samping rate - 32, 44.1, or 48 kHz Bitrate – 32 to 320 kbps De facto - 44.1 kHz sample rate, 192 kbps bitrate MPEG-2 – Supports > 2 channels, lower sampling frequencies, low bitrate improvement AAC (Advanced Audio Coding) More sample frequencies (8 kHz to 96 kHz) Higher coding efficiency and simpler filterbank 96 kbps AAC sounds better than 128 kbps MP3 Usually CBR, but can do VBR

MPEG Container Format Container format is a file format that can contain data compressed by standard codecs 2 types for MPEG Program Stream (PS) – Designed for reasonably reliable media, such as disks Transport Stream (TS) – Designed for lossy links, such as networks or broadcast antennas

AV Synchronization Want audio and video streams to be played back in sync with each other Video stream contains “presentation timestamps” MPEG-2 clock runs at 90 kHz Good for both 25 and 30 fps PCR (Program Clock Reference) timestamps are sent with data by sender Receiver uses PLL (Phase Lock Loop) to synchronize clocks

Real time video encoding Motion estimation will be worse, so need higher bitrate to compensate Very hard to do in software, need dedicated hardware or hardware assistance Tivo, ReplayTV do this

Streaming media Common types include Flash, RealVideo, Quicktime Usually have low bandwidth available, need to optimize as such Want dedicated network protocols for this purpose TCP will wait indefinitely for retransmission, so is often not suitable

MPEG data stream

HDTV MPEG video demo

Analysis Pros Cons Overall sharp picture Audio and video stay in sync with each other What if we were transmitting this over a network? Cons Picture flashes, blurs when there is too much movement on screen Higher bitrate often does not solve this problem

Conclusion Video compression is important Video compression is not easy Video compression has come a long way Not as mature as image compression => There is definitely room for improvement New paradigms in computing will dictate future research directions