You are on page 1of 43

University of Canberra Advanced Communications Topics

Television Broadcasting into the Digital Era


Lecture 3 Audio/Video Compression MPEG-2 Multiplexing by: Neil Pickford

Enabling Technologies
Source

digitisation (Rec 601 digital studio) Compression technology (MPEG, AC-3) Data multiplexing (MPEG) Display technology (large wide screens) Transmission technology (modulation) Production

Video Bitrate - HDTV

2 M pixels * 25 pictures * 3 colours * 8 bits

= 1.24416 G bits / sec for Interlace Scan or = 2.4833 G bits / sec for Progressive
We need to Compress this a bit!

Compression Technology
When low bandwidth analog information is digitised the result is high amounts of digital information. 5 MHz bandwidth analog TV picture 170 - 270 Mb/s digital data stream. 270 Mb/s would require a bandwidth of at least 140 MHz to transport Compression of the information is required

Compression - Types
Two

types of compression available

Loss-less

compression 2 to 5 times
compression 5 to 250 times

Lossy

Compression - Loss-less Types


Picture differences - temporal Run length data coding - GIF

101000100010001001101

= 1 + 4x0100 + 1101 21 bits source = 12 bits compressed

Huffman coding - PKZIP


Short

codes for common blocks Longer codes for uncommon blocks

Lookup tables

Compression - Lossy Types


Quantisation

- rounding Motion vectors Prediction & interpolation Fractal coding Discrete cosine transform (DCT)

Compression - DCT

8x8 Pixels
8

MPEG-2 - I, P & B Frames


Uncompressed SDTV Digital Video Stream - 170 Mb/s
Picture 830kBytes Picture 830kBytes Picture 830kBytes Picture 830kBytes

I Frame
100 kBytes

B Frame
12 kBytes

B Frame
12 kBytes

P Frame
33 kBytes

MPEG-2 Compressed SDTV Digital Video Stream - 3.9 Mb/s I - intra picture coded without reference to other pictures. Compressed using spatial redundancy only

9

P - predictive picture coded using motion compensated


prediction from past I or P frames

B - bidirectionally-predictive picture using both past and


future I or P frames

MPEG-2 - Formats ML & HL


MPEG-2 defines profiles & levels


They

describe sets of compression tools

DTTB uses main profile. Choice of levels Higher levels include lower levels
Level Low level (LL) Main level (ML) High level (HL)
10

resolution 360 by 288 720 by 576 1920 by 1152

SIF SDTV HDTV

MPEG Profiles and Levels


MAX. BITRATE
300 Mbit/s
422P@HL

HP@HL

100 Mbit/s 80 Mbit/s 60 Mbit/s 40 Mbit/s 20 Mbit/s

MP@HL SSP@H14L MP@H14L

HP@H14L

422P@ML

HP@ML HIGH SNRP@ML HIGH-1440 MP@ML SP@ML MAIN SNRP@LL MP@LL 4:2:2 SPATIALLY SCALABLE HIGH

LEVELS 11

LOW
SIMPLE

MAIN

SNR SCALABLE

PROFILES

MP@ML

MP@HL

All decoders sold in Australia will be MP@HL capable allowing all viewers access to HD resolution when it becomes available

12

Digital Audio - Multichannel

Two sound coding systems exist for Digital TV


MPEG

1&2 Dolby AC-3

Cover a wide variety of Audio Applications


DVB VCD

and S-VCD DAB, DBS, DVD Cinema (Film) Computer Operating Systems (Windows) Professional (ISDN codecs, tapeless studio, .)
13

Multichannel Sound
TV

C LFE

Ls

Rs

14

Masking

Both use perceptual audio coding that exploits a psychoacoustic effect known as masking
masker Inaudible (masked) tone Masked Threshold

Level (dB)

500

1000

2000

4000

8000

Frequency (Hz)
15

Multichannel Sound - MPEG 1/2

MPEG Audio Layer II was developed in conjunction with the European DVB technology
Uses

Musicam Compression with 32 sub bands MPEG 1 is basic Stereo 2 channel mode MPEG 2 adds enhancement information to allow 5.1 or 7.1 channels with full backwards compatibility with the simple MPEG 1 decoders MPEG 1 is compatible with Pro-Logic processing. Bitrate 224 kb/s MPEG 1 Bitrate 480 - 512 kb/s MPEG 2 5.1
16

MPEG Audio Encoder


32 Subbands Audio In 2 x 768 kb/s Subband Filter Quantiser & Coder Frame Packer Audio Bit Stream O/P 2x 32-192 kb/s

PsychoAcoustic Model

Bit Allocation

Coding of Side Information

17

MPEG Audio Decoder

Audio Frame Bit Unpacker Stream 2 x 32-192 kb/s

De-Quantiser

Inverse Subband Filter

Audio Out 2 x 768 kb/s

Decoding of Side Information

18

Multichannel Sound - Dolby AC-3

Dolby AC-3 was developed as a 5.1 channel surround sound system from the beginning.
Compression

19

Filter bank is 8 x greater than MPEG 2 (256) Must always send full 5.1 channel mix One bitstream serves everyone Decoder provides downmix for Mono, Stereo or Pro-Logic Listener controls the dynamic range, Audio is sent clean Bitrate 384 kb/s or 448 kb/s Dialogue level passed in bit-stream

AC-3 Coding Block Diagram


Quantized Samples Source Audio Analysis Filterbank Quantization Multiplex Coded Bit Stream

Bit Allocator

Core Bit Allocator

Bit Allocation Side Information Encode Envelope Encoded Spectral Envelope Channel

Reconstructed Audio

Synthesis Filterbank

De-quantization

Demultiplex

Coded Bit Stream

20

Core Bit Allocator

Decode Envelope

AC-3 Multichannel Coder

L R C LS RS LFE

5.1-ch Encoder

5.1-ch Decoder

L R C LS RS LFE

Encoder

Decoder

21

AC-3 Stereo Decoder

L R C LS RS LFE

5.1-ch Encoder

5.1-ch Decoder

L R C LS RS LFE

Matrix

Lo Ro

Encoder

2-channel Decoder

22

Problem of AC-3
An AC-3 stereo decoder is more complex than an AC-3 multichannel decoder With AC-3, end users with stereo receivers must pay extra so that others can enjoy multichannel sound

23

MPEG-2 Multichannel Coder concept

L R C LS RS LFE

Lo Ro

MPEG-1 Encoder

MPEG-1 Decoder

Lo Ro

Down mix Extension Encoder Extension Decoder

Re matrix

L R C LS RS
LFE

MPEG-2 Encoder

MPEG-2 Decoder

24

Low cost 2-channel decoder


MPEG-1 Encoder MPEG-1 Decoder

L R C LS RS LFE

Lo Ro

Lo Ro

Down mix

T2 T3 T4 LFE

Extension Encoder
2-channel Decoder

MPEG-2 Encoder

Low cost 2-channel decoder


25

Compatibility with Pro Logic

L R C S

Surround Encoder

Lt Lo Rt Ro

MPEG-1 Encoder

MPEG-1 Decoder

Lo Lt Ro Rt

Pro Logic Decoder

L R C S

26

Compatibility with Pro Logic (2)

L R C LS RS LFE

Lo t Ro t

MPEG-1 Encoder

MPEG-1 Decoder

Lo t Ro t

Pro Logic Decoder

Down mix

L R C S

T2 T3 T4 LFE

Extension Encoder

MPEG-2 Encoder

27

Widely Available
All major MPEG-2 Video decoders incorporate 2-channel or 5.1 channel MPEG-2 Audio Several dedicated MPEG-2 multichannel decoders More than 100 Million decoders world-wide

28

Studio Multichannel Sound


Present AES3 PCM Audio does not cater for 5.1 channel surround. Dolby has produced a system called Dolby E

Handles

6-8 audio inputs Uses low compression 3-4:1 Can be transported/stored on 2ch PCM audio equipment Incorporates time stamps and is segmented at the video frame rate allowing editing on video frame boundaries
29

Digital Television - Types

Satellite (DBS)
DVB-S Program

interchange Direct view / pay TV SMATV

Downlink

Uplink

30

Digital Television - Types

Cable
HFC

- pay TV MATV DVB-C / 16-VSB


Main Coax

Fibre

Tap
31

Spur

Tee

Digital Television - Types

Terrestrial (DTTB)
DVB-T

/ 8-VSB Free to air TV (broadcasting) Narrowcasting/value added services Untethered - portable reception

32

Enabling Technologies
Source

digitisation (Rec 601 digital studio) Compression technology (MPEG, AC-3) Data multiplexing (MPEG) Display technology (large wide screens) Transmission technology (modulation) Production

33

MPEG-2
Compresses source video, audio & data Segments video into I, P & B frames Generates system control data Packetises elements into data stream Multiplexes program elements - services Multiplexes services - transport stream Organises transport stream data into 188 byte packets

34

Digital Terrestrial TV - Layers


. . . provide clean interface points. . . .

Picture Layer

1920 x 1080 1280 x 720 50,25, 24 Hz

Multiple Picture Formats and Frame Rates

Video Compression Layer

Data Headers

Motion Vectors

Chroma and Luma DCT Coefficients

Variable Length Codes Packet Headers

MPEG-2 compression syntax ML@MP or HL@MP

Flexible delivery of data


Video packet Aux data

Transport Layer

Video packet

Audio packet

MPEG-2 packets

Transmission Layer
35

VHF/UHF TV Channel
7 MHz

COFDM / 8-VSB

Digital Television Encode Layers


Control Data

Video Picture Coding

MPEG-2 PES

Data Data Coding


PES

Sound Audio Coding


PES

MPEG-2 or AC-3

Control Data (PMT)

Program 1 Multiplexer

MPEG Transport Stream Mux

Program 2
Other Data Control Data (PAT)

Program 3 Bouquet Multiplexer


Service Mux

MPEG Transport Data Stream 188 byte packets


Control Data

Modulator & Transmitter Delivery System

Error Protection

36

Digital Television Decode Layers


Mon Data Speakers

MPEG-2

Picture Decoder

Data Decoder MPEG Transport Stream De-Multiplexer

Audio Decoder

MPEG or AC-3

Transport Stream

MPEG DeMux

Demodulator & Receiver Delivery


37

Error Control

System

Set top Box (STB) - Interfacing


Domestic and Professional interfaces still to be defined Most probably Transport Stream via IEEE 1394 (Firewire) Baseband Audio & RGB/YUV Video signals. STB can convert between line standards so you do not have to have a HD display. Display and transmitted information must be at same Frame/Field rate. (25/50)

38

DTTB - Content & Services


DTTB was designed to carry video, audio and program data for television DTTB can carry much more than just TV

Electronic

program guide, teletext Broadband multimedia data, news, weather Best of internet service Interactive services Software updates, games

Services can be dynamically reconfigured

39

DVB Data Containers

MPEG Transport Stream is used to provide DVB data containers which may contain a flexible mixture of:
Video Audio Data

services

Streams with variable data rate requirements can be Statistically Multiplexed together.
Allows

Six 2 Mb/s programs to be placed in a 8 Mb/s channel

40

Examples of DVB Data Containers


Channel bandwidth can be used in different ways:
SDTV 1 SDTV 2

SDTV 3 SDTV 4 SDTV 5 Multiple SDTV programs


41

HDTV 1

HDTV 1 SDTV 1

Single HDTV program

Simulcast HDTV & SDTV

Video Program Capacity


For a payload of around 19 Mb/s
1

HDTV service - sport & high action 2 HDTV services - both film material 1 HDTV + 1 or 2 SDTV non action/sport 3 SDTV for high action & sport video 6 SDTV for film, news & soap operas However you do not get more for nothing. More services means less quality
42

Spare Data Capacity

Spare data capacity is available even on a fully loaded channel. Opportunistic use of spare data capacity when available can provide other non real time data services. Example: 51 second BMW commercial

The Commercial was shown using 1080 Lines Interlaced. 60 Mb of data was transferred during it. In the Final 3 seconds the BMW Logo was displayed allowing 3 Phone Books of data to be transmitted.

43

You might also like