Top Banner
VIDEO COMPRESSION STANDARDS Family of standards: the evolution of the coding model state of the art (and implementation technology support): H.261: videoconference x64 (1988) MPEG-1: CD storage (up to 1.5 Mbit/s) (1991) MPEG-2: digital TV and HDTV (1994) 4-9 Mb/s TV, 20 Mb/s HDTV H.263: very low bit rate (16 - 128 kb/s) (1996) MPEG-4 Part 2 (arbitrary shaped objects) (1999) MPEG-4 Part 10 (AVC/H.264) (Adv. Video Cod.) (2003) MPEG-4 SVC (Scalable profile of Part 10 AVC) (2007) MPEG-4 HEVC (High Efficiency Video Coding) (2013) MPEG Future Video Coding (???)
69

VIDEO COMPRESSION STANDARDS - HEIG-VD

Oct 03, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: VIDEO COMPRESSION STANDARDS - HEIG-VD

VIDEO COMPRESSION STANDARDS • Family of standards: the evolution of the coding model

state of the art (and implementation technology support):– H.261: videoconference x64 (1988)– MPEG-1: CD storage (up to 1.5 Mbit/s) (1991)– MPEG-2: digital TV and HDTV (1994)

• 4-9 Mb/s TV, 20 Mb/s HDTV – H.263: very low bit rate (16 - 128 kb/s) (1996)– MPEG-4 Part 2 (arbitrary shaped objects) (1999)– MPEG-4 Part 10 (AVC/H.264) (Adv. Video Cod.) (2003)– MPEG-4 SVC (Scalable profile of Part 10 AVC) (2007)– MPEG-4 HEVC (High Efficiency Video Coding) (2013)– MPEG Future Video Coding (???)

Page 2: VIDEO COMPRESSION STANDARDS - HEIG-VD

Time evolution of video standards

MPEG AVC/

Page 3: VIDEO COMPRESSION STANDARDS - HEIG-VD

Linear transformRGB to YUV

Add “structure components” to the model

Linear transform

DCT Temporal prediction

model

MPEG Video Coding

Page 4: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG Video Coding (INTRA)

Page 5: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG INTRA Picture Coding

Page 6: VIDEO COMPRESSION STANDARDS - HEIG-VD

Zig-Zag scan models

Page 7: VIDEO COMPRESSION STANDARDS - HEIG-VD

DCT patterns (MPEG-1 and MPEG-2)

8x8

Y

U

V8x8

Y

U

V

8x8

Y

U

V

4:4:4 4:2:2 4:2:0

8x8

Page 8: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG Motion prediction and compensation

Page 9: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG Motion Prediction Scheme

Page 10: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-X DECODER

Buffer VLCDecoder

IQ IDCT

MC Predictor/

InterpolatorMotion

Vectors

Bitstream

+

Previous

Future

Frames

Reconstructed

Images

Coding Decisions

To display

Page 11: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-X ENCODER

Original

Picture

Store

Images

+

MC Predictor/

Interpolator

Bi-Directional

Motion Estimator

Prev.

Future

Coded

Frames

Deblocking

Filter

DCT Q VLC Buff

Bit

Stream

Compressed

Video

-IDCTIQ

+

Coding Control

Page 12: VIDEO COMPRESSION STANDARDS - HEIG-VD

Fundamental ISO/IEC SC29WG11 (MPEG) Principles

• Decoder must be simple (focus on broadcast)• Decoding syntax is completely specified

– a decoder must be conformant (i.e. the full “encoder model” is known)

• Encoding “syntax” is fully specified – a video bit-stream must be conformant

• The encoder is not specified– Encoding algorithms are open to innovation– Encoder implementations are a competitive

issue!!!

Page 13: VIDEO COMPRESSION STANDARDS - HEIG-VD

Constant and Variable Bitrate

B P IB…

Bitsize of picture after compression

Transmission bandwidth (very) Large

Mass storage device Hard disk, Flash

memory, DVD, etc, etc ….

• Solution: fixed quantization step:– Constant quality and variable storage size

Page 14: VIDEO COMPRESSION STANDARDS - HEIG-VD

Variable Bitrate

B P IB…

Bitsize of picture after compression

Transmission bandwidth (Small)

Broadcasting TV (DVB-T/S),

Cable distribution,Internet TV

• Solution: variable quantization:– Variable quality and fixed “average” bitrate

Page 15: VIDEO COMPRESSION STANDARDS - HEIG-VD

Encoder Buffer

0t1t2t3t

IPBB

0t 1t 2t 3t

EncoderBuffer Size

0sIt

Page 16: VIDEO COMPRESSION STANDARDS - HEIG-VD

Buffer Occupancy (Decoder)IPBB

EncoderBuffer Size

0st sIs tt 0

Page 17: VIDEO COMPRESSION STANDARDS - HEIG-VD

End to End delay

EncoderBuffer Size

0

st

Page 18: VIDEO COMPRESSION STANDARDS - HEIG-VD

End To End Delay

• End To End Delay (ETED) (constant):

sec)/(_)(__

bitBandwidthTransbitSizeBuffEncETED

Page 19: VIDEO COMPRESSION STANDARDS - HEIG-VD

Buffer Occupancy (Decoder)IPBB

EncoderBuffer Size

End To End Buffer Delay

Page 20: VIDEO COMPRESSION STANDARDS - HEIG-VD

Buffer Control (encoder)

0t1t2t3t

IPBB

0t 1t 2t 3t

EncoderBuffer Size

0

sIt

0st

Page 21: VIDEO COMPRESSION STANDARDS - HEIG-VD

Buffer Occupancy (Decoder)IPBB

EncoderBuffer Size

0st sIs tt 0

Page 22: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-2 CODING MODES EXTENSIONS

• Field / Frame prediction (all modes can be based on frames or separate fields)

• Low delay prediction modes• Half - pixel interpolations for motion

estimation.

Page 23: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-4 Coding extensions• AC-DC prediction for INTRA pictures

(only DC was used in MPEG-1/2)

Page 24: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-4 (Part 2 and 10 AVC) Model Extensions

Quarter-Pel

Page 25: VIDEO COMPRESSION STANDARDS - HEIG-VD

HEVC Coding Extensions• IDCT: 8x8, 16x16, 32x32• Any quadtree conf.• Only Arithmetic Coding• ………

32 x 32

Page 26: VIDEO COMPRESSION STANDARDS - HEIG-VD

How to measure codec performance?• Subjective tests of perceived quality:

– Young students (sight and attention)– Statistical double blind methods

• Objective measurements:

• Attention: same PSNR very different visual results:– Errors in visible (uniform, shapes) or in less visible elements

(edges, textures)

2

1

0

2

10 255

)(1

10

N

decodedorig YYNLogPSNR

Page 27: VIDEO COMPRESSION STANDARDS - HEIG-VD

PSNR Performance: Video Streaming Appl.

Page 28: VIDEO COMPRESSION STANDARDS - HEIG-VD

Performance Videoconference Appl.

Page 29: VIDEO COMPRESSION STANDARDS - HEIG-VD

J. Ohm et al, “Comparison of the coding efficiency of video coding standards including High Efficiency Video Coding, IEEE Trans on CSVT, Vol 22, No 12, Dec 2013.

PSNR Performance (HEVC): HDTV Video 720P

Page 30: VIDEO COMPRESSION STANDARDS - HEIG-VD

J. Ohm et al, “Comparison of the coding efficiency of video coding standards including High Efficiency Video Coding, IEEE Trans on CSVT, Vol 22, No 12, Dec 2013.

Bitrate Saving Performance (HEVC): HDTV Video 720P

Page 31: VIDEO COMPRESSION STANDARDS - HEIG-VD

J. Ohm et al, “Comparison of the coding efficiency of video coding standards including High Efficiency Video Coding, IEEE Trans on CSVT, Vol 22, No 12, Dec 2013.

PSNR Performance (HEVC): HDTV Video 1080P

Page 32: VIDEO COMPRESSION STANDARDS - HEIG-VD

J. Ohm et al, “Comparison of the coding efficiency of video coding standards including High Efficiency Video Coding, IEEE Trans on CSVT, Vol 22, No 12, Dec 2013.

Bitrate Saving Performance (HEVC): HDTV Video 1080P

Page 33: VIDEO COMPRESSION STANDARDS - HEIG-VD

J. Ohm et al, “Comparison of the coding efficiency of video coding standards including High Efficiency Video Coding, IEEE Trans on CSVT, Vol 22, No 12, Dec 2013.

Perceptual Quality (HEVC vs AVC): HDTV Video 1080P

Page 34: VIDEO COMPRESSION STANDARDS - HEIG-VD

J. Ohm et al, “Comparison of the coding efficiency of video coding standards including High Efficiency Video Coding, IEEE Trans on CSVT, Vol 22, No 12, Dec 2013.

Bitrate Paving Perf. (HEVC vs AVC): HDTV Video 720P

Page 35: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG HEVC VS AVC

Bitrate saving for same perceived video quality of HEVC versus AVC/H.264. Source: documentnumber m33340 JCTVC-Q0204r4 - "HEVC verification test results" presented at the April 2014MPEG-JCTVC Valencia meeting.

Page 36: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG HEVC VS AVC

Page 37: VIDEO COMPRESSION STANDARDS - HEIG-VD

 

T0 T0 T1 T2 T2 T3 T3 T3 T3

MPEG-4 Hierarchical Prediction

Page 38: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG Spatial and Temporal Scalability

 

Page 39: VIDEO COMPRESSION STANDARDS - HEIG-VD

 

Frame Size (spatial

scalability)

128

3,125 6,25 12,5 25

4CIF

CIF

QCIF

256

64 Bitrate (SNR scalability) [kbps]

Source stream Sub-streams

Frame Rate (temporal scalability) [fps]

MPEG SCALABILITY

Page 40: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-2 Syntax Hierarchy

Page 41: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-2 Systems• MPEG-2 Systems Objective:

– How MPEG-compressed video and audio data streams may be multiplexed together with other data to form a single data stream suitable for digital transmission or storage.

• Three main elements:– The Multiplexes Structure (Elementary and Program

Streams), – The service information that may be present; – The system of time stamps and clock references used

to synchronize related components of a program at the decoder

Page 42: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-2 Systems Multiplexer

Page 43: VIDEO COMPRESSION STANDARDS - HEIG-VD

Glossary and essential components

•Program: – a single broadcast service or channel.

•Elementary Stream: – a program comprises one or more elementary

streams. An elementary stream is a single MPEG-compressed component of a program (i.e. coded video or audio).

•The output of an MPEG-2 multiplexer: – a contiguous stream of 8-bit-wide data bytes. The

multiplex may be of fixed or variable data rate and may contain fixed or variable data rate elementary streams.

Page 44: VIDEO COMPRESSION STANDARDS - HEIG-VD

Transport Stream and Program Stream

•Transport Stream: – a multiplex devised for multi-programme

applications so that a single transport stream can accommodate many independent programmes. It comprises a succession of 188-byte-long packets called transport packets.

•Program stream:– it can accommodate a single programme only, for

storage and retrieval of programme material from digital storage media. Intended for use in error-free environments.

Page 45: VIDEO COMPRESSION STANDARDS - HEIG-VD

From Presentation Units to Access Units

Page 46: VIDEO COMPRESSION STANDARDS - HEIG-VD

From Elementary Streams to PES

Page 47: VIDEO COMPRESSION STANDARDS - HEIG-VD

PES Header InformationPES Header Information

Page 48: VIDEO COMPRESSION STANDARDS - HEIG-VD

From PES to Transport Stream Packets (188 or 204 Bytes)

Page 49: VIDEO COMPRESSION STANDARDS - HEIG-VD

Transport stream Packets Header Information

Page 50: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-2 Transport Stream Multiplexer

Page 51: VIDEO COMPRESSION STANDARDS - HEIG-VD
Page 52: VIDEO COMPRESSION STANDARDS - HEIG-VD

Clock Reference Data for Synchronization of ES

Page 53: VIDEO COMPRESSION STANDARDS - HEIG-VD

Clock Reference Insertion

Page 54: VIDEO COMPRESSION STANDARDS - HEIG-VD

TS Functionality• MPEG-2 Transport Stream

– Flexible Multiplexer for multichannel transmission and storage

– Configurable for different application requirements– Several functionality supported:

• Stream synchronization• User information on top of video-audio ES• User information streams

– Stable and well established specification (emulation code are avoided)

Page 55: VIDEO COMPRESSION STANDARDS - HEIG-VD

MPEG-2 Transport Stream Packet

Page 56: VIDEO COMPRESSION STANDARDS - HEIG-VD

Program Clock Reference

Page 57: VIDEO COMPRESSION STANDARDS - HEIG-VD

Motion estimation in Video Sequences

• Three main families:– Gradient based:

• Based on iterative minimization of DFD • One specific vector for each pixel (dense vector

field)– Frequency based:

• Fourier transform• Correlation of phase difference

– Block correspondence (Block Matching):• Minimization of block error• Sum of Absolute Difference (SAD) in a search

window

Page 58: VIDEO COMPRESSION STANDARDS - HEIG-VD

Bx

ttt xdxgxgdSAD ))(()()( ,)(

Block: NxM

Search window

Image

Page 59: VIDEO COMPRESSION STANDARDS - HEIG-VD

Gradient Based

)()(),( 1 xIdxIdxDFD nn

• Minimisation of the Displaced Frame Difference:– Taylor expansion:

• No exact solution• Iterative estimation that minimize of DFD

– Drawbacks • Sensible to noise, non-linearities (occlusions)• Cannot detect large displacements (local minima)• Larger neighbourhoods (matrix inversions) • Multiresolutions can improve results

Page 60: VIDEO COMPRESSION STANDARDS - HEIG-VD

Frequency Based

• Find the peaks of Phase Correlation:– Peaks corresponds to displacements:

• Robust to noise• Accurate displacements• Pixels that correspond to displacement are not known

– Drawbacks • Good only to detect vector candidates• Region partitions and correlations need to be applied

to find correspondences • Very complex processing

Page 61: VIDEO COMPRESSION STANDARDS - HEIG-VD

0 1

11

1

1

1 1 1

2

2

2

2 2

2

23

2

33 3 3

333

Block Matching: N-Step Search

Page 62: VIDEO COMPRESSION STANDARDS - HEIG-VD

0 1111 111 1

2

2

2

5

2

2

23

2

3333 333

Block Matching: Gradient Search

4444

4

55 5

Page 63: VIDEO COMPRESSION STANDARDS - HEIG-VD

0 1111 111 1

2

2

2

5

2

2

23

2

3333 333

Block Matching: Gradient Search Variants

4444

4

55 56

6

1 111 1 1 11 1 1 1 1

2

22222

2

2

2

2

222

3 3 3 33 3 3 3

Page 64: VIDEO COMPRESSION STANDARDS - HEIG-VD

Vector tracing schemes (I)

U UU U

Etr

x

xx

y

yytrtr tyxVTtyxV

MtjtyxV

,111 ,,,,,,

One-phase vector tracing

One Phase Vector Tracing, M=3, (P Pictures)

P B1 B2 P

2

3 451

I / P .............

1(*)

Page 65: VIDEO COMPRESSION STANDARDS - HEIG-VD

Vector tracing schemes (II)

U UU U

Etr

x

xx

y

yytrtr tyxVgtyxV

,222 ,,,,

Two-phase vector tracing

Two Phase Vector Tracing, M=3, (P Pictures)

I / P B1 B2 P

First PhaseEstimation

Second PhaseEstimation

1 2 3

456 7

3(*)

I/P/B

Page 66: VIDEO COMPRESSION STANDARDS - HEIG-VD

VT integration in a genetic algorithm

• The genetic structure is a suitable framework to efficiently exploit the tracing information: best estimates from previous frames are inserted directly in the first population, best estimates from neighbor macrblocks are used to bias the random generation of the rest of the first population

• Exploitation of spatial & temporal correlation of motion vector fields• Example: 4 “Generations”, “Population” of 20 MVs, 10 “Sons” per

generation Þ 80 Matchings per MB Further algorithm effects:• delivers smooth motion vector fields• good resistance against noise• able to track fast motion Delivers very high quality with a very low number of matchings/MB

Page 67: VIDEO COMPRESSION STANDARDS - HEIG-VD

An optimal MGS algorithm

One-phase• 3 generations of 27 elements• 9 vectors in the first population come from previous frames• 18 vectors are generated through biased random generation around

neighbors• In successive populations: 20 vectors are the mean of the two parents,

7 vectors are random around the partial bestTwo-phase• The total amount of matchings per GOP is the same -> same number

of operations• The memory bandwidth is increased, since more estimation phases

are necessary (60 % for M=3)

Page 68: VIDEO COMPRESSION STANDARDS - HEIG-VD

Algorithm Performance

10 20 30 40 50 60 70 80 9031

32

33

34

35

36

37

38

frame no (coding order)

PS

NR

[dB

]FS ± 16 H ± 16 V

complex telescopic mean PSNR = 34.54 dB

FS ± 32 H ± 24 V mean PSNR = 34.42 dB

2-phase HVTMGSon ± 48 H ± 32 V : mean PSNR = 34.38 dB

1-phase HVTMGSon ± 48 H ± 32 V : mean PSNR = 34.14 dB

Simulation settings:• basketball

frame 10-90frame picture coding

• 704*576 pixel• 9 Mbit/s• N=12, M=3• frame&field prediction• no SW offset• All with same half pel

ref.

Reference simulation: full search on ± 48 H ± 32 V mean PSNR: 34.65 dB

Page 69: VIDEO COMPRESSION STANDARDS - HEIG-VD

Complexity reduction factor

• H*V is the search window size (97*65)

• p is the population size (27)

• G is the number of generations (3)

GpVHr

*

78r