MPEG Video Compression Technology and Testing
MPEG Video Compression Technology and Testing
TEKTRONIX
CONVERGENCE
SYMPOSIUM
Video Services Telecommunications Mobile Communications
Program Multi-Program
Transmission
Demultiplexing Multiplexing
Program
Program
Display or
Decompression
Reuse
C M
R R-Y Serial
a a
Digital
m G t B-Y Composite A to D
Serializer Composite
e B r Y Encoder Conv
(144 Mb/Sec)
r i
(177 Mb/Sec)
a x
Component 4xFsc Sample
Analog Video (PAL=17.7 MHz) Clock X10
(R-Y, B-Y, Y) (NTSC=14.4 MHz)
Component 13.5 MHz
Analog Video Sample
(RGB)
270 MHz clock
10 bits Multiplexed
Y A to D 27 Mwords/Sec
Conv ...Y / R-Y / Y / B-Y / Y... Serial
Digital
B-Y A to D Serializer Component
Conv 270 Mb/Sec
10 bits Parallel “Rec 601”
R-Y A to D
Conv AES/EBU
Parallel Digital Audio
6.75 MHz Digital
Sample Component
• Storage Media
– DVD Digital Versatile Disk
– Video servers
• Intra-studio
– Point-to-point (being developed by SMPTE)
– Networking (being specified by EBU/SMPTE)
MPEG Video Compression
Technology and Testing
Page 7
x
p
MPEG-2 Standards Documents
MPEG-2 ISO/IEC 13818
• Part 1 Systems
• Part 2 Video
• Part 3 Audio
• Part 4 Conformance testing (for 1, 2 and 3)
• Part 5 Software simulation
• Part 6 System extensions - DSM-CC
(Digital Storage Media - Command & Control)
• Part 7 Audio extension - NBC (non backward compatible)
• Part 9 System extension RTI (real time interface)
• Part 10 Conformance extension - DSM-CC
MPEG Video Compression
Technology and Testing
Page 8
x
p
Standards Organizations
• ITU • ISO
Place des Nations Case Postale 56
1211 Geneve 20, Switzerland 1 rue de Varembe
Ph: 41 22 730 6003 1211 Geneve 20, Switzerland
http://www.itu.ch Phone: +41 22 749 01 11
http://www.iso.ch
• SMPTE
• Documents for sale
595 West Hartsdale Ave
Global Engineering
White Plains, NY 10607 15 Inverness Way East
Ph: 914-761-1100 http:// Englewood, CO 80112
www.smpte.org Ph: 800-854-7179
(313)
(314)
1 Luminance sample Y
4:2:0
MPEG Video Compression
Technology and Testing
Page 16
x
p
Redundancies
• Spatial Redundancies
– Redundant information in the horizontal and vertical picture
dimensions. Data that is similar or repeats itself in picture areas
which are close to one another.
• Temporal Redundancies
– Redundant data over a given time. Data that is similar or
repeats itself from moment to moment, even if its location in the
picture area changes.
Decoder:
8x8
480 Lines Pixels
(Pixels)
"
"
"
"
"
"
" " " " " "
" "
" "
" "
" "
" "
" "
" " " "
" " " "
" " " "
" " "
" " "
"
" "
" "
" "
" "
" " " "
" " " " " " "
Horizontal spatial
frequency waveforms
30 121 61 22 30 1 0 1 1 4 2 1 0 0 0 0
22 28 2 33 24 51 44 81 0 0 1 0 0 0 0 0
16 16 22 24 27 29 34 37 1 2 1
19 22 26 27 29 34 34 38 8 16 8
22 22 26 27 29 34 37 40 16 32 24
22 26 27 29 32 35 40 48 20 40 40
26 27 29 32 35 40 48 58 24 48 56
26 27 29 34 38 48 56 69 28 56 88
27 29 35 38 46 56 69 83 31 62 112
Quantizing Data
Full Convert
Bitrate Entropy Compressed
4:2:2 to DCT Quantize Buffer Data
10-bit Coding
8-bit 4:2:0
Data
• Temporal Redundancies
– Redundant data over a given time. Data that is similar or
repeats itself from moment to moment, even if its location in
the picture area changes.
Macro Block
16x16 Pixels
Motion
Vector
Search
Range
Frame N Frame N + 1
Motion
Estimation
Motion Vectors
Quantizing Data
Video in
Subtract DCT Q RLC VLC MUX
Predicted Q-1
Present
Frame Buffer
DCT-1
Motion
Compensation
SUM
Motion
Vectors
Fixed Store
0 1 2 3 4 5 6 7
Forward Prediction
LEVEL
LEVEL
4:2:2
PROFILE SIMPLE MAIN SNR SPATIAL HIGH
PROFILE
• Flexibility
– Short GOPs for editability
– Capability to pass all active video, some vertical info
• Economy
– Storage costs
– Transmission costs
– Compatibility
50 Mb/s
Higher
Quality
Bit Rate
30 Mb/s
Lower
Quality
20 Mb/s
I IB IBBP
GOP Structure
Fully
Compliant
MPEG-2
4:2:2
Decoders
Archive Post-Production
30 Mb/s 50 Mb/s
IB GOP Structure I only GOP Structure
sound
pressure
Pre- Post-
masking masking
time
1 kHz sinewave
Threshold in
quiet
Masking
threshold
20 Hz 1 kHz 20 kHz
Filterbank Scaler
32 and
Subbands Quantizer
MUX
Dynamic
512 Point Masking Bit and
FFT Thresholds Scale Factor
Allocator
and Coder
12 Sections of 32 Samples
32 32 32 32 Filterbank
Samples Samples Samples Samples 32 Subbands
Scalefactors
Anc Data
Header
CRC
Subband Samples
Optional
4 bit linear
6 bit linear
Length
Unspecified
0 1 2 31
Video Video
encoder decoder
Transport Stream
System System
Elementary encoder decoder
Elementary
Streams Streams
PES PES
Syntax Syntax
Audio Audio
encoder decoder
Single
Elementary Transport Program
Stream
Stream MUX Transport
Data Stream
Header Payload
Header Payload
Audio Audio
Encoder Decoder
variable delay = e(n) constant trans delay = Ctrans variable delay = d(n)
Video In Transport
Video
Stream
Encoder Elementary Stream Formation
PCR = X plus
PCR = X the time of
188 byte packets n bits exactly n bits
____
Transport PCR
Low
Stream Compare Pass
Decoder Filter
Local
PCR
27 MHz
27 MHz
Xtal
Load Clock
VCO
Receiver 27 MHz clock
MPEG Video Compression
Technology and Testing
Page 57
x
p
Decoding the Transport Stream
Program Specific Information (PSI)
• Null Packets
– PID = 8191 (1FFFhex = 13 “1”s binary)
Program k 55
... ...
Conditional Access
Table (PID 1)
Stream 1 Video 54 Stream 1 Video 19
Stream 2 Audio 48 Stream 2 Audio 81 Conditional
Access Data
Stream 3 Audio 49 Stream 3 Audio 82
... ... ... ... ... ...
Stream k Data 66
Program Map Stream k Data 88
... ... ...
Tables ... ... ...
Transport Stream
Prog 1 Prog 3 Prog 1 Prog 3 Prog 3 Prog 3 Prog 1 Prog 3 Prog 3
PAT EMM
MAP MAP Audio 1 Audio 2 Video 1 Video 1 Video 1 Audio 1 Video 1
0 22 33 1 48 82 19 19 54 81 19
• SI includes
– NIT - Network Information
– SDT - Service Description
– EIT - Event Information
– TDT - Time and Date
– BAT - Bouquet Association
– RST - Running Status
– ST - Stuffing Tables
Program
Compression
MPEG-2 INTRA-Facility
Protocol
Transport Connections
Analysis
Stream
Transmission
Channel
Formatting
INTER-Facility Transmission
SDH/ATM or Connections Channel
Modulated RF
Analysis
MPEG Video Compression
Technology and Testing
Page 63
x
p
Signal vs Picture Quality
• Analog and digital video systems are linear
– Superposition applies
– Results are time invariant and signal independent
– Test signals can be substituted for program material
– Testing in the vertical interval is equivalent to full-field tests
– Static test signals are sufficient (Indirect measurement)
• Compression video systems are non-linear
– Test signals are easily/accurately compressed
– Picture quality is a function of; data rate, picture complexity and
encoding algorithm capabilities
– Test with complex motion sequences (Direct measurement)
MPEG Video Compression
Technology and Testing
Page 64
x
p
Seminar Topics
• Modern Television System
– Video and Compression Standards
• MPEG-2 Compression
• MPEG-2 System
• Testing in Compressed Systems
– Traditional test methods
– Picture quality assessment
– MPEG-2 protocol analysis
Functional Layers
VIDEO Waveform
Operational Monitoring
Technical Measurements
Monitors
and
SYNCHRONIZING WAVEFORMS Measurement
Technical Measurements Sets
Decode Encode
A/D D/A
Studio
Rec 601/656 Interconnect, Rec 601/656
Operation
Functional Layers
VIDEO
Waveform Monitors,
SIGNAL CODING (Rec 601) Measurement Sets
with
DIGITAL FORMATTING (Rec 656) Analog or Digital
DIGITAL WAVEFORM (Rec 656) Capabilities
PHYSICAL LAYER (COAX/FIBER) TDRs, OTDRs
Reference Degraded
Processing System
Picture Picture
Feature Feature
Extraction Low Extraction
Bandwidth
Feature
Data Difference
Results
Reference Degraded
Processing System
Picture Picture
Image Image
Processing Picture Picture Processing
Data Picture Data
Data
Difference
Results
2552
PSNR=10 log10
MSE2
MPEG Video Compression
Technology and Testing
Page 82
x
p
But MSE (and PSNR) is Easily Fooled!
gain control
transducer
sampling
JND map
...
distance
...
contrast Identical
pyramid Process JND value
reference image
Transported
be on disk or CD ROM
CD ROM
• MTS Data Files are built using
multiplexing software MTS Multiple Hardware
Data Files Output Types
– Formatted ES in the Data
Store Windows NT
– User defined configuration System Application
Control
– Application of MPEG rules
• MTS outputs the transport MPEG
stream to the device under test TS
PCR number 23
. . . providing 50 years
of technical innovation
and leadership.