CS 260: Seminar in Computer Science: Multimedia Networking

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

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

Video Compression MPEG-4. Market s requirements for Video compression standard

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

How Many Humans Does it Take to Judge Video Quality?

Tutorial T5. Video Over IP. Magda El-Zarki (University of California at Irvine) Monday, 23 April, Morning

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

Introduction to Video Encoding

Digital Video Processing

Image Quality Assessment Techniques: An Overview

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION

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

SSIM Image Quality Metric for Denoised Images

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

Multimedia Systems Video II (Video Coding) Mahdi Amiri April 2012 Sharif University of Technology

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

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

Compression of Stereo Images using a Huffman-Zip Scheme

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

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

Image and Video Coding I: Fundamentals

Compression of VQM Features for Low Bit-Rate Video Quality Monitoring

Compression Part 2 Lossy Image Compression (JPEG) Norm Zeck

Daala: One year later

QoE Characterization for Video-On-Demand Services in 4G WiMAX Networks

Wireless Communication

Fundamentals of Video Compression. Video Compression

DCT-BASED IMAGE QUALITY ASSESSMENT FOR MOBILE SYSTEM. Jeoong Sung Park and Tokunbo Ogunfunmi

Review and Implementation of DWT based Scalable Video Coding with Scalable Motion Coding.

Color Imaging Seminar. Yair Moshe

DCT Based, Lossy Still Image Compression

CMPT 365 Multimedia Systems. Media Compression - Video

Cross Layer Protocol Design

Image and Video Coding I: Fundamentals

Intra-Mode Indexed Nonuniform Quantization Parameter Matrices in AVC/H.264

Audio and video compression

AUDIOVISUAL COMMUNICATION

Effects of P2P Streaming on Video Quality

Enhancing the Image Compression Rate Using Steganography

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression

Technical Recommendation S. 10/07: Source Encoding of High Definition Mobile TV Services

Outline Introduction MPEG-2 MPEG-4. Video Compression. Introduction to MPEG. Prof. Pratikgiri Goswami

EE 5359 Multimedia project

Introduction to Video Encoding

06/12/2017. Image compression. Image compression. Image compression. Image compression. Coding redundancy: image 1 has four gray levels

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

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

BLIND MEASUREMENT OF BLOCKING ARTIFACTS IN IMAGES Zhou Wang, Alan C. Bovik, and Brian L. Evans. (

A Novel Approach for Deblocking JPEG Images

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

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

Introduction to Video Compression

MPEG-4: Simple Profile (SP)

Video Compression An Introduction

Lecture Information Multimedia Video Coding & Architectures

Chapter 10. Basic Video Compression Techniques Introduction to Video Compression 10.2 Video Compression with Motion Compensation

Lecture 3 Image and Video (MPEG) Coding

COMP 249 Advanced Distributed Systems Multimedia Networking. The Video Data Type Coding & Compression Basics

No-reference perceptual quality metric for H.264/AVC encoded video. Maria Paula Queluz

CSCD 443/533 Advanced Networks Fall 2017

A Comparison of Still-Image Compression Standards Using Different Image Quality Metrics and Proposed Methods for Improving Lossy Image Quality

Week 14. Video Compression. Ref: Fundamentals of Multimedia

Optimizing the Deblocking Algorithm for. H.264 Decoder Implementation

How to: Objectively Scoring Your Video

Multimedia Decoder Using the Nios II Processor

Image and Video Quality Assessment Using Neural Network and SVM

Mark Kogan CTO Video Delivery Technologies Bluebird TV

Evaluation and simulation of Video using EvalVid Tool

Compression and File Formats

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

Mobile Multimedia Application over DOrA How to Ensure Positive End-user Experience?

Deblocking Filter Algorithm with Low Complexity for H.264 Video Coding

A real-time SNR scalable transcoder for MPEG-2 video streams

IMAGE COMPRESSION. Chapter - 5 : (Basic)

Anatomy of a Video Codec

Review for the Final

Structural Similarity Based Image Quality Assessment

Ch. 4: Video Compression Multimedia Systems

Distributed Video Coding

CSEP 521 Applied Algorithms Spring Lossy Image Compression

Video Quality Analysis for H.264 Based on Human Visual System

JPEG Compression. What is JPEG?

Lecture 8 JPEG Compression (Part 3)

MIXDES Methods of 3D Images Quality Assesment

EE Low Complexity H.264 encoder for mobile applications

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

Image/video compression: howto? Aline ROUMY INRIA Rennes

VC 12/13 T16 Video Compression

MAXIMIZING BANDWIDTH EFFICIENCY

Compressed-Domain Video Processing and Transcoding

Overview, implementation and comparison of Audio Video Standard (AVS) China and H.264/MPEG -4 part 10 or Advanced Video Coding Standard

Digital video coding systems MPEG-1/2 Video

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

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

MULTIMEDIA COMMUNICATION

A Study on Structural Similarity Based Interframe Video Coding

JPEG. Wikipedia: Felis_silvestris_silvestris.jpg, Michael Gäbler CC BY 3.0

Recommended Readings

LECTURE VIII: BASIC VIDEO COMPRESSION TECHNIQUE DR. OUIEM BCHIR

Professor, CSE Department, Nirma University, Ahmedabad, India

Transcription:

CS 260: Seminar in Computer Science: Multimedia Networking Jiasi Chen Lectures: MWF 4:10-5pm in CHASS http://www.cs.ucr.edu/~jiasi/teaching/cs260_spring17/

Multimedia is User perception Content creation Compression Storage Distribution Internet Applications On-demand video Live video Virtual/augmented reality 2

Encoding Images 1. Pre-processing 2. Discrete cosine transform 3. Quantization 4. Entropy encoding 3

Encoding Images: Pre-processing Convert from color to luma and chroma components Divide image into blocks (e.g. 8x8 pixels) 4

Encoding Images: Discrete Cosine Transform Transform from spatial domain to frequency domain Transformation function using basis functions Example: https://upload.wikimedia.org/wikipedia/commons/5/5e/idct-animation.gif 5

Encoding Images: Quantization Lossy compression by division and rounding By dividing by and then rounding. 6

Encoding Images: Entropy Encoding Lossless compression to get close to optimal code rate of log # symbols (probability of the symbol) this is an example of a huffman tree 0110 1010 1000 1011 111 1000 t h i s <space> i 135 bits total Using the codebook: What about the uncompressed version? 26 characters in the alphabet à 5 bits/character 5 bits/character * 36 characters in the sentence = 180 bits 7

Encoding Images: Quality Examples Quality 100 25 10 1 Size 83 bytes 10 bytes 5 bytes 1.5 bytes 8

Aside: Lena 9

Video Encoding 1. Motion estimation 2. I-frame encoding 10

Video Encoding: I-frame encoding Naïve solution: encode every frame as a JPEG Leverage temporal redundancy by encoding the difference between frames I-frame: inter frame P-frame: predictive inter frame B-frame: bi-predictive inter frame time GOP = group of pictures frame pattern E.g., IPPBPPBPP time 11

Video Encoding: Motion Estimation How to look for similarity in time? Computationally complex Input: macroblock (16x16 pixels) Is this block very similar to the previous block in time? No How close in time should we search? How far in space should we look? Block matching Output: motion vector Search threshold Yes Output: same as input macroblock 12

Video Encoding: Block Matching Source: T. Wiegand / B. Girod: EE398A Image and Video Compression 13

Video Encoding: Block Matching Mean squared error Sum of absolute differences Source: T. Wiegand / B. Girod: EE398A Image and Video Compression 14

Video Encoding: Search Strategies Full search Logarithmic search General algorithm: 1. Start with an initial step size S 2. Search N locations within S distance 3. If the center is best a) S = S/2 b) Go to 2 4. If an edge location is best a) Re-center the origin b) Go to 2 Diamond search Source: T. Wiegand / B. Girod: EE398A Image and Video Compression 15

Content Type and Compression Example: https://www.youtube.com/watch?v=yyrgdwnq-aq Mean Opinion Score 5 4 3 2 cartoon TV talk movie landscape sports 1 100 200 300 Video Bitrate (kbps) 16

Video Metrics Resolution = (# pixels) x (# pixels) 720p = 1280 x 720 1080p = 1920 x 1080 4K = 3840 x 2160 Frames per second 30 fps 60 fps Bitrate Wireless: ~1 Mbps Desktop: ~3-5 Mbps High-resolution: 10+ Mbps Codec = encoding type H.264 VP8 Container = holds video + audio webm MPEG4 Decoder Encoder 17

Image Quality: Quantitative Metrics How to measure video quality quantitatively? PSNR I: original image K: compressed image i,j: directions MAX = max value of pixel 18

PSNR Example Original uncompressed image PSNR = 45.53 db PSNR = 36.81 db PSNR = 31.45 db 19

Image Quality: Quantitative Metrics original increase contrast mean-shifted All of these images have the same MSE à Not all errors are created equal JPEG compression blur salt-pepper noise Source: Wang, Zhou; Bovik, A.C.; Sheikh, H.R.; Simoncelli, E.P. (2004-04-01). "Image quality assessment: from error visibility to structural similarity". IEEE Transactions on Image Processing. 13 (4): 600 612. 20

Video Quality: SSIM Key idea: humans are responsive to changes in structure E.g., increase contrast or average brightness doesn t matter too much More closely approximate human visual system Operate on luma component only (not color or chrominance) Three components Luminance: based on mean Contrast: based on variance, with mean subtracted Structure: based on correlation, with mean subtracted and variance normalized 21

Video Quality: SSIM Luminance Contrast Structure α, β, γ = 1, c 3 =c 2 /2 22

Image Quality: Quantitative Metrics original increase contrast mean-shifted All of these images have the same MSE = 210 SSIM = 0.9168 SSIM = 0.9900 à Not all errors are created equal SSIM = 0.6949 SSIM = 0.7052 SSIM = 0.7748 JPEG compression blur salt-pepper noise Source: Wang, Zhou; Bovik, A.C.; Sheikh, H.R.; Simoncelli, E.P. (2004-04-01). "Image quality assessment: from error visibility to structural similarity". IEEE Transactions on Image Processing. 13 (4): 600 612. 23

Image Quality: Qualitative Metrics Mean Opinion Score 5: Excellent 4: Good 3: Fair 2: Poor 1: Bad ITU recommendations for how to set up the experiment Distance from viewers, number of views visible, etc. User studies can be time-consuming and expensive 24

Image Quality Metric Comparison 25

Video Quality User quality of experience (QoE) Average PSNR or SSIM across all frames MOS Watch time = how long the user watches the video Video metrics Stalls = # of times the buffer is empty Buffering ratio = # the fraction of time the buffer is empty Bitrate switches = # times the video changes quality Startup time = time from when the user requests the video to when it starts playing 26

Metrics Network metrics CDN choice Throughput Latency Packet loss Video metrics Stalls Buffering ratio Bitrate switches Startup time User QoE MOS PSNR/SSIM Content creation Compression Storage Distribution Applications On-demand video Internet Live video Virtual/augmented reality 27

Developing a Predictive Model of Quality of Experience for Internet Video A. Balachandran, V. Sekar, A. Akella, S. Seshan, I. Stoica, H. Zhang ACM Sigcomm 2013 28

Relationship between Metrics Network metrics CDN choice Throughput Latency Packet loss Video metrics Stalls Buffering ratio Bitrate switches Startup time User QoE MOS PSNR/SSIM 29

Method Data from Conviva, a video delivery platform 40 million sessions over 3 months in the US VoD and live sports Metrics collected by client Decision trees Input: Video metrics Output: Engagement metric Bin these metrics Live video 30

Confounding Factors? Type of video Live Video-on-demand User attributes Location Device (smartphones, tablets, laptop) Connectivity (wireless, Ethernet) Temporal attributes Time of day/week Freshness 31

Detecting Confounding Factors Information gain metric Entropy H(Y) = -Σ i P(Y=y i ) log( P(Y=y i ) ) Conditional entropy H(Y X) = Σ i P(X=x i ) H(Y X=x i ) Information gain H(Y) H(Y X) Y: the factor we are considering X: the factor we could split along Determine which confounding factors have max information gain Create a new decision tree for each confounding factor 32

Using the Model Output a decision tree that can predict the user QoE Use this to select CDN server origin server in North America CDN distribution node Video metrics Video metrics Video metrics??? CDN server in S. America CDN server in Europe CDN server in Asia 33