Image and Video Coding I: Fundamentals

Similar documents
Image and Video Coding I: Fundamentals

Professor Laurence S. Dooley. School of Computing and Communications Milton Keynes, UK

Advanced Video Coding: The new H.264 video compression standard

Image/video compression: howto? Aline ROUMY INRIA Rennes

Introduction to Video Encoding

CISC 7610 Lecture 3 Multimedia data and data formats

2014 Summer School on MPEG/VCEG Video. Video Coding Concept

Comparative and performance analysis of HEVC and H.264 Intra frame coding and JPEG2000

Lecture Information Multimedia Video Coding & Architectures

Lecture Information. Mod 01 Part 1: The Need for Compression. Why Digital Signal Coding? (1)

Fundamentals of Video Compression. Video Compression

Course Syllabus. Website Multimedia Systems, Overview

Professor, CSE Department, Nirma University, Ahmedabad, India

Building an Area-optimized Multi-format Video Encoder IP. Tomi Jalonen VP Sales

CS 260: Seminar in Computer Science: Multimedia Networking

Testing HEVC model HM on objective and subjective way

Mahdi Amiri. February Sharif University of Technology

ECE 417 Guest Lecture Video Compression in MPEG-1/2/4. Min-Hsuan Tsai Apr 02, 2013

MPEG-l.MPEG-2, MPEG-4

Data Representation. Reminders. Sound What is sound? Interpreting bits to give them meaning. Part 4: Media - Sound, Video, Compression

INF5063: Programming heterogeneous multi-core processors. September 17, 2010

Updates in MPEG-4 AVC (H.264) Standard to Improve Picture Quality and Usability

Reducing/eliminating visual artifacts in HEVC by the deblocking filter.

Lecture 5: Compression I. This Week s Schedule

DIGITAL TELEVISION 1. DIGITAL VIDEO FUNDAMENTALS

Multimedia Systems Image III (Image Compression, JPEG) Mahdi Amiri April 2011 Sharif University of Technology

Rate Distortion Optimization in Video Compression

STUDY AND IMPLEMENTATION OF VIDEO COMPRESSION STANDARDS (H.264/AVC, DIRAC)

Video coding. Concepts and notations.

Computer and Machine Vision

Audio Fundamentals, Compression Techniques & Standards. Hamid R. Rabiee Mostafa Salehi, Fatemeh Dabiran, Hoda Ayatollahi Spring 2011

RECOMMENDATION ITU-R BT

Compression of Stereo Images using a Huffman-Zip Scheme

IMAGE PROCESSING (RRY025) LECTURE 13 IMAGE COMPRESSION - I

International Journal of Emerging Technology and Advanced Engineering Website: (ISSN , Volume 2, Issue 4, April 2012)

Dolby Vision. Profiles and levels V1.2.9

High Efficiency Video Coding: The Next Gen Codec. Matthew Goldman Senior Vice President TV Compression Technology Ericsson

Introduction to Video Coding

CHAPTER 10: SOUND AND VIDEO EDITING

Compressed Audio Demystified by Hendrik Gideonse and Connor Smith. All Rights Reserved.

MULTIMEDIA AND CODING

Image and video processing

JPEG 2000 compression

Image compression. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Topic 5 Image Compression

Objective: Introduction: To: Dr. K. R. Rao. From: Kaustubh V. Dhonsale (UTA id: ) Date: 04/24/2012

VC 12/13 T16 Video Compression

Elementary Computing CSC 100. M. Cheng, Computer Science

Adaptive Quantization for Video Compression in Frequency Domain

Features. Sequential encoding. Progressive encoding. Hierarchical encoding. Lossless encoding using a different strategy

How to achieve low latency audio/video streaming over IP network?

EE Low Complexity H.264 encoder for mobile applications

EE 5359 Low Complexity H.264 encoder for mobile applications. Thejaswini Purushotham Student I.D.: Date: February 18,2010

Digital Media Capabilities of the Modero X Series Touch Panels

So, what is data compression, and why do we need it?

CSCD 443/533 Advanced Networks Fall 2017

HYBRID TRANSFORMATION TECHNIQUE FOR IMAGE COMPRESSION

EFFICIENT DEISGN OF LOW AREA BASED H.264 COMPRESSOR AND DECOMPRESSOR WITH H.264 INTEGER TRANSFORM

H.264 Based Video Compression

Introduction to Video Encoding

MAXIMIZING BANDWIDTH EFFICIENCY

COMPARATIVE ANALYSIS OF DIRAC PRO-VC-2, H.264 AVC AND AVS CHINA-P7

COMPARISON OF HIGH EFFICIENCY VIDEO CODING (HEVC) PERFORMANCE WITH H.264 ADVANCED VIDEO CODING (AVC)

Fundamental of Digital Media Design. Introduction to Audio

Computing in the Modern World

Compression; Error detection & correction

CHAPTER 4 REVERSIBLE IMAGE WATERMARKING USING BIT PLANE CODING AND LIFTING WAVELET TRANSFORM

Comparative and performance analysis of HEVC and H.264 Intra frame coding and JPEG2000

Image Compression Algorithm and JPEG Standard

Interactive Progressive Encoding System For Transmission of Complex Images

H.264/AVC und MPEG-4 SVC - die nächsten Generationen der Videokompression

VHDL Implementation of H.264 Video Coding Standard

VIDEO COMPRESSION STANDARDS

Perceptual coding. A psychoacoustic model is used to identify those signals that are influenced by both these effects.

Digital video coding systems MPEG-1/2 Video

Video Codec Design Developing Image and Video Compression Systems

MULTIMEDIA SYSTEMS

AUDIOVISUAL COMMUNICATION

Index. 1. Motivation 2. Background 3. JPEG Compression The Discrete Cosine Transformation Quantization Coding 4. MPEG 5.

Perceptual Coding. Lossless vs. lossy compression Perceptual models Selecting info to eliminate Quantization and entropy encoding

Interframe coding A video scene captured as a sequence of frames can be efficiently coded by estimating and compensating for motion between frames pri

Georgios Tziritas Computer Science Department

STUDY AND PERFORMANCE COMPARISON OF HEVC AND H.264 VIDEO CODECS

Digital Imaging and Communications in Medicine (DICOM)

High Efficiency Video Coding. Li Li 2016/10/18

Multimedia Communications ECE 728 (Data Compression)

IMPROVED CONTEXT-ADAPTIVE ARITHMETIC CODING IN H.264/AVC

CS 335 Graphics and Multimedia. Image Compression

IMAGE COMPRESSION USING HYBRID QUANTIZATION METHOD IN JPEG

Video Compression Method for On-Board Systems of Construction Robots

Both LPC and CELP are used primarily for telephony applications and hence the compression of a speech signal.

Optimized architectures of CABAC codec for IA-32-, DSP- and FPGAbased

New Techniques for Improved Video Coding

LIST OF TABLES. Table 5.1 Specification of mapping of idx to cij for zig-zag scan 46. Table 5.2 Macroblock types 46

Wavelet Transform (WT) & JPEG-2000

Multimedia Signals and Systems Still Image Compression - JPEG

High Efficiency Video Coding (HEVC) test model HM vs. HM- 16.6: objective and subjective performance analysis

University of Mustansiriyah, Baghdad, Iraq

Laboratoire d'informatique, de Robotique et de Microélectronique de Montpellier Montpellier Cedex 5 France

Wireless Communication

Transcription:

Image and Video Coding I: Fundamentals Thomas Wiegand Technische Universität Berlin

T. Wiegand (TU Berlin) Image and Video Coding Organization Vorlesung: Donnerstag 10:15-11:45 Raum EN-368 Material: http://www.ic.tu-berlin.de/menue/studium_und_lehre/ Literatur: Cover, T. M. and Thomas, J. A. (2006), Elements of Information Theory, John Wiley & Sons, New York. Gersho, A. and Gray, R. M. (1992), Vector Quantization and Signal Compression, Kluwer Academic Publishers, Boston, Dordrecht, London. Jayant, N. S. and Noll, P. (1994), Digital Coding of Waveforms, Prentice-Hall, Englewood Cliffs, NJ, USA. Wiegand, T. and Schwarz, H. (2010), Source Coding: Part I of Fundamentals of Source and Video Coding, Foundations and Trends in Signal Processing, vol. 4, no. 1-2. (available on web page)

Introduction encoder bitstream decoder

Motivation T. Wiegand (TU Berlin) Image and Video Coding: Introduction 2 / 20 Motivation for Source Coding Source Coding / Data Compression Efficient transmission or storage of data Use less throughput for given data Transmit more data for given throughput Source Coding: Enabling Technology Enables new applications Makes applications economically feasible Examples Distribution of digital images Distribution of digital audio (first mobile audio players) Digitial television (DVB-T, DVB-T2, DVB-S, DVB-S2) Internet video streaming (YouTube, Netflix, Amazon,...)

Motivation T. Wiegand (TU Berlin) Image and Video Coding: Introduction 3 / 20 Practical Source Coding Examples File Compression Compress large document archives GZIP, WinZIP, WinRar,... Audio Compression Compress audio for storage on mobile device FLAC, MP3, AAC,... Image Compression Compress images for storage and distribution Raw camera formats, JPEG, JPEG-2000, JPEG-XR,... Video Compression Compress video for streaming, broadcast, or storage MPEG-2, H.264 AVC, VP9, H.265 HEVC,...

Motivation T. Wiegand (TU Berlin) Image and Video Coding: Introduction 4 / 20 Types of Compression Lossless Compression Invertible / reversible form of data compression Original input data can be completely recovered Required for document compression Examples: Lempel-Ziv coding (GZIP), FLAC, JPEG-LS Lossy Compression Not invertible Only approximation of original input data can be recovered Achieves much higher compression ratios Dominant form of compression for media data (audio, images, video) Examples: MP3, AAC for audio JPEG, JPEG-2000 for images MPEG-2, H.264 AVC, H.265 HEVC for video

Source Data Sampling and Quantization T. Wiegand (TU Berlin) Image and Video Coding: Introduction 5 / 20 Source Data Analog Signals Continuous-time/space and continuous-amplitude signals Typically resulting from physical measurements Most signals in reality (audio and visual signals) Digital Signals Discrete-time/space and discrete-amplitude signals Often generated from analog signal Sometimes directly measured Input Data for Source Coding Require digital signals Need to be stored and processed with a computer Compression methods are computer programs

Source Data Sampling and Quantization T. Wiegand (TU Berlin) Image and Video Coding: Introduction 6 / 20 Analog-to-Digital Conversion Sampling Maps continuous-time/space signal into discrete-time/space signal Quantization Maps continuous-amplitude signal into discrete-amplitude signal Simplest case: Rounding

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 7 / 20 Source Data Sampling and Quantization Impact of Sampling (Spatial Resolution) 400 300 samples 200 150 samples 100 75 samples 50 38 samples

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 8 / 20 Source Data Sampling and Quantization Impact of Quantization (Bit Depth) 8 bits per component 4 bits per component 3 bits per component 2 bits per component

Source Data Sampling and Quantization T. Wiegand (TU Berlin) Image and Video Coding: Introduction 9 / 20 Raw Images and Videos Single-Component Image Matrix of integer samples x s[x, y] Characterized by Number of samples in horizontal and vertical direction W H Sample bit depth B y Color Images Three color components (typically RGB or YCbCr) Additionally characterized by color sampling format Videos Sequence of images Additionally characterized by frame rate

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 10 / 20 Source Data Sampling and Quantization Color Sampling Formats RGB YCbCr 4:4:4 YCbCr 4:2:2 YCbCr 4:2:0 most common format

Source Data Sampling and Quantization T. Wiegand (TU Berlin) Image and Video Coding: Introduction 11 / 20 Raw Data Rate Raw Data Rate Bit rate R of raw data format R = (samples per time unit) (bit depth per sample) (1) Example: Full High Definition (HD) Video 1920 1080 luma samples, 50 frames per second (Europe) 4:2:0 chroma format (chroma components with 1/4 luma resolution) 8 bits per sample raw data rate = 50 Hz 1920 1080 (1 + 2/4) 8 bits 1.24 Gbit/s Example: Ultra High Defintion (UHD) Video 3840 2160 luma samples, 60 frames per second (USA, Japan) 4:2:0 chroma format, 10 bits per sample raw data rate = 60 Hz 3840 2160 (1 + 2/4) 10 bits 7.5 Gbit/s

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 12 / 20 The Source Coding Problem Typical Video Communication Scenario capture raw input video samples preprocessing encoded bitstream video encoder transmission channel (can be replaced by storage) bitstream channel no transmission errors demodulator channel decoder modulator channel encoder video decoder received bitstream postprocessing raw output video samples display and perception

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 12 / 20 The Source Coding Problem Typical Video Communication Scenario capture raw input video samples preprocessing encoded bitstream video encoder transmission channel (can be replaced by storage) bitstream channel no transmission errors demodulator channel decoder modulator channel encoder video decoder received bitstream postprocessing raw output video samples display and perception

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 12 / 20 The Source Coding Problem Typical Video Communication Scenario capture raw input video samples preprocessing encoded bitstream video encoder transmission channel (can be replaced by storage) bitstream channel no transmission errors demodulator channel decoder modulator channel encoder video decoder received bitstream postprocessing raw output video samples display and perception

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 13 / 20 The Source Coding Problem Application Examples HD movie on Blu-ray Disc UHD broadcast over DVS-S2 raw video format 1920 1080 luma samples 3840 2160 luma samples 4:2:0 chroma format 4:2:0 chroma format 8 bits per sample 10 bits per sample 24 frames per second 60 frames per second raw data rate ca. 600 Mbit/s ca. 7.5 Gbit/s channel bit rate 36 Mbit/s (read speed) 58 Mbit/s (8PSK 2/3) video bit rate ca. 20 Mbit/s ca. 25 Mbit/s required compression ca. 30:1 ca. 300:1

The Source Coding Problem T. Wiegand (TU Berlin) Image and Video Coding: Introduction 14 / 20 The Basic Communication / Source Coding Problem Basic Source Coding Problem Two equivalent formulations: and Representing source data with highest fidelity possible within an available bit rate Representing source data using lowest bit rate possible while maintaining a specified reproduction quality Source Codec Source codec: System of encoder and decoder encoder bitstream decoder

The Source Coding Problem T. Wiegand (TU Berlin) Image and Video Coding: Introduction 15 / 20 Practical Communication / Source Coding Problem Characteristics of Source Codecs / Overall Communication Bit rate: Throughput of the communication channel Quality: Fidelity of the reconstructed signal Delay: Start-up latency, end-to-end delay Complexity: Computation, memory, memory access Practical Source Coding Problem Given a maximum allowed complexity and a maximum delay, achieve an optimal trade-off between bit rate and reconstruction quality for the transmission problem in the targeted application In this course: Will concentrate on source codec Ignore aspects of transmission channel (e.g., transmission errors)

Coding Efficiency Image Compression Example Original Lossless Lossy Compressed: Compressed: Image (1024 678 JPEG GZIP PNG image (Quality points, 95)945 KB) 12.03 75) 50) 25) 1) 67.03 46.50 3.18 % 1.94 1.11 0.24 % 100 % T. Wiegand (TU Berlin) Image and Video Coding: Introduction 16 / 20

Coding Efficiency Image Compression Example Original Lossless Lossy Compressed: Compressed: Image (1024 678 JPEG GZIP PNG image (Quality points, 95)945 KB) 12.03 75) 50) 25) 1) 67.03 46.50 3.18 % 1.94 1.11 0.24 % 100 % T. Wiegand (TU Berlin) Image and Video Coding: Introduction 16 / 20

Coding Efficiency Image Compression Example Original Lossless Lossy Compressed: Compressed: Image (1024 678 JPEG GZIP PNG image (Quality points, 95)945 KB) 12.03 75) 50) 25) 1) 67.03 46.50 3.18 % 1.94 1.11 0.24 % 100 % T. Wiegand (TU Berlin) Image and Video Coding: Introduction 16 / 20

Coding Efficiency Image Compression Example Original Lossless Lossy Compressed: Compressed: Image (1024 678 JPEG GZIP PNG image (Quality points, 95)945 KB) 12.03 75) 50) 25) 1) 67.03 46.50 3.18 % 1.94 1.11 0.24 % 100 % T. Wiegand (TU Berlin) Image and Video Coding: Introduction 16 / 20

Coding Efficiency Image Compression Example Original Lossless Lossy Compressed: Compressed: Image (1024 678 JPEG GZIP PNG image (Quality points, 95)945 KB) 12.03 75) 50) 25) 1) 67.03 46.50 3.18 % 1.94 1.11 0.24 % 100 % T. Wiegand (TU Berlin) Image and Video Coding: Introduction 16 / 20

Coding Efficiency Image Compression Example Original Lossless Lossy Compressed: Compressed: Image (1024 678 JPEG GZIP PNG image (Quality points, 95)945 KB) 12.03 75) 50) 25) 1) 67.03 46.50 3.18 % 1.94 1.11 0.24 % 100 % T. Wiegand (TU Berlin) Image and Video Coding: Introduction 16 / 20

Coding Efficiency Image Compression Example Original Lossless Lossy Compressed: Compressed: Image (1024 678 JPEG GZIP PNG image (Quality points, 95)945 KB) 12.03 75) 50) 25) 1) 67.03 46.50 3.18 % 1.94 1.11 0.24 % 100 % T. Wiegand (TU Berlin) Image and Video Coding: Introduction 16 / 20

Coding Efficiency Image Compression Example Original Lossless Lossy Compressed: Compressed: Image (1024 678 JPEG GZIP PNG image (Quality points, 95)945 KB) 12.03 75) 50) 25) 1) 67.03 46.50 3.18 % 1.94 1.11 0.24 % 100 % T. Wiegand (TU Berlin) Image and Video Coding: Introduction 16 / 20

Coding Efficiency T. Wiegand (TU Berlin) Image and Video Coding: Introduction 17 / 20 Trade-Off between Quality and Compression Ratio Coding Efficiency Ability to trade-off bit rate and reconstruction quality Want best reconstruction quality for a given bitrate (or vice versa) quality better codec B codec A bit rate

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 18 / 20 Coding Efficiency Coding Efficiency Example 1:100 Compression: JPEG H.265 HEVC

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 18 / 20 Coding Efficiency Coding Efficiency Example 1:100 Compression: JPEG H.265 HEVC

T. Wiegand (TU Berlin) Image and Video Coding: Introduction 19 / 20 Coding Efficiency Measuring Coding Efficiency Average Bit Rate R = number of bits in bitstream for a video sequence nominal duration of the video sequence (2) Quality / Distortion Typically: Mean square error (MSE) and peak-signal-to-noise ratio (PSNR) For a W H array s[x, y] of original samples, the array s [x, y] of reconstructed samples, and a sample bit depth B MSE = 1 W H (x,y) ( s[x, y] s [x, y] ) 2 ( (2 B 1) 2 ) PSNR = 10 log 10 MSE For videos: Average PSNR over entire video sequence (3) (4)

Outline T. Wiegand (TU Berlin) Image and Video Coding: Introduction 20 / 20 Outline of Course Image and Video Coding I: Fundamentals Probability, Random Variables, and Random Processes Lossless Coding Rate-Distortion Theory Quantization Predictive Coding Transform Coding Image and Video Coding II: Algorithms and Applications Acquisition, Representation, Display, and Perception of Images Video Coding Overview Video Encoder Control Intra-Picture Coding Inter-Picture Coding Video Coding Standards