SlideShare una empresa de Scribd logo
1 de 55
An introduction to
Video Compression

  Iain Richardson
     20 June 2012




                      Slide 1
Agenda

• 1. What is Video Compression?
• 2. How does a video codec work?
   –   - prediction
   –   - transform + quantization
   –   - coding
   –   - examples
• 3. Video compression standards
   – - H.264
   – - HEVC
• 4. Video compression patents
• 5. Going further

                                    Slide 2
Agenda

• 1. What is Video Compression?
• 2. How does a video codec work?
   –   - prediction
   –   - transform + quantization
   –   - coding
   –   - examples
• 3. Video compression standards
   – - H.264
   – - HEVC
• 4. Video compression patents
• 5. Going further

                                    Slide 3
Video compression



             MPEG-2       H.264    HEVC        ……




Broadcast       DVD /      IPTV        Web      Mobile
Digital TV      Blu-Ray                Video    Video

                           ……


                                                    Slide 4
The need for video compression

 Original 2 hour movie: 1,800,000,000,000 bits




                                  =53 DVD disks

                       COMPRESS




                                  =1 DVD disk


                                                  Slide 5
Video Source                                     Video Display

               Compress   Transmi   Decompress
               (Encode)     t or     (Decode)
                           Store




                                                      Slide 6
Slide 7
Slide 8
Slide 9
Agenda

• 1. What is Video Compression?
• 2. How does a video codec work?
   –   - prediction
   –   - transform + quantization
   –   - coding
   –   - examples
• 3. Video compression standards
   – - H.264
   – - HEVC
• 4. Video compression patents
• 5. Going deeper

                                    Slide 10
Digital video




                            Luma (Y)




   Displayed frame


                     Chroma (Cr)       Chroma (Cb)


                                             Slide 11
Macroblock




             Slide 12
Video Encoder




                Slide 13
Video decoder




                Slide 14
Prediction




             Slide 15
Prediction




             Slide 16
Intra prediction




                   Slide 17
Slide 18
Inter prediction




                   Slide 19
Slide 20
Types of predicted picture




I : Intra prediction only
P : Inter prediction (one reference frame) or Intra prediction
B : Biprediction (two reference frames), Inter (one reference) or Intra prediction




                                                                                     Slide 21
Transform + Quantization




                           Slide 22
Video Encoder




                Slide 23
Forward Transform




                    Slide 24
Inverse Transform




                    Slide 25
Forward Quantize




                   Slide 26
Forward Transform + Quantize


58   64   51   58   961   -41   15    -48    48   -1   0    -1
52   64   56   66   -34   72    -30   -104   -1   1    -1   -2
62   63   61   64   -15   3     15    24     0    0    0    0
59   51   63   69   13    81    -5     8     0    1    0    0


Block of samples    After transform          Quantized, QP=18




                                                            Slide 27
Inverse Quantize




                   Slide 28
Inverse Transform




                    Slide 29
58   64   51   58   48   -1   0    -1   55   66   54   58
52   64   56   66   -1   1    -1   -2   54   62   58   63
62   63   61   64   0    0    0    0    61   59   61   62
59   51   63   69   0    1    0    0    60   55   65   67


Block of samples    Quantized, QP=18    Rescaled +
                                        inverse
                                        transformed




                                                       Slide 30
Entropy coding




                 Slide 31
Video Encoder




                Slide 32
Entropy coding

                         Fixed length
                         codes


                           Variable length
        Headers            codes

Prediction parameters
                             Context Adaptive
Quantized coefficients       Variable Length
                             Codes

                           Context Adaptive
                           Binary Arithmetic
                           Codes

                                                Slide 33
Slide 34
Slide 35
Slide 36
Examples




           Slide 37
Slide 38
Slide 39
Slide 40
Slide 41
……etc



        Slide 42
Agenda

• 1. What is Video Compression?
• 2. How does a video codec work?
   –   - prediction
   –   - transform + quantization
   –   - coding
   –   - examples
• 3. Video compression standards
   – - H.264
   – - HEVC
• 4. Video compression patents
• 5. Going deeper

                                    Slide 43
H.264 Advanced Video Compression




                               Slide 44
H.264/AVC

•   First released in 2003
•   Published by ISO MPEG and ITU-T VCEG
•   Roughly 2x compression efficiency of MPEG-2
•   Used for:
    –   Blu-Ray Disks
    –   High Definition TV broadcasting
    –   Internet video
    –   ……




                                                  Slide 45
Slide 46
High Efficiency Video Compression
              (HEVC)




                                    Slide 47
HEVC

• Under development by ISO MPEG and ITU-T VCEG
• Roughly 2x compression efficiency of H.264
• Due for publication in 2013




                                                 Slide 48
Slide 49
Agenda

• 1. What is Video Compression?
• 2. How does a video codec work?
   –   - prediction
   –   - transform + quantization
   –   - coding
   –   - examples
• 3. Video compression standards
   – - H.264
   – - HEVC
• 4. Video compression patents
• 5. Going deeper

                                    Slide 50
Source: USPTO database




                         Slide 51
Types of video compression patent

• Encoder

• Decoder

• Transport




                                    Slide 52
Patent Pools
• E.g. MPEG-LA, H.264/AVC patent pool:
   –   Licenses patents on behalf of patent holders
   –   Unrelated to ISO/IEC MPEG
   –   Accepts patents based on determination of “essentiality”
   –   250+ US patents
   –   900+ licensees




                                                                  Slide 53
Agenda

• 1. What is Video Compression?
• 2. How does a video codec work?
   –   - prediction
   –   - transform + quantization
   –   - coding
   –   - examples
• 3. Video compression standards
   – - H.264
   – - HEVC
• 4. Video compression patents
• 5. Going further

                                    Slide 54
To find out more

• http://www.itu.int - Download the H.264 standard
• http://www.vcodex.com - Free tutorials

• Follow me on Twitter: @onecodec




                                                     Slide 55

Más contenido relacionado

La actualidad más candente

Introduction to HEVC
Introduction to HEVCIntroduction to HEVC
Introduction to HEVCYoss Cohen
 
HEVC VIDEO CODEC By Vinayagam Mariappan
HEVC VIDEO CODEC By Vinayagam MariappanHEVC VIDEO CODEC By Vinayagam Mariappan
HEVC VIDEO CODEC By Vinayagam MariappanVinayagam Mariappan
 
VVC tutorial at ICIP 2020 together with Benjamin Bross
VVC tutorial at ICIP 2020 together with Benjamin BrossVVC tutorial at ICIP 2020 together with Benjamin Bross
VVC tutorial at ICIP 2020 together with Benjamin BrossMathias Wien
 
Video Compression Standards - History & Introduction
Video Compression Standards - History & IntroductionVideo Compression Standards - History & Introduction
Video Compression Standards - History & IntroductionChamp Yen
 
Standards De Compression Audio Et VidéO
Standards De Compression Audio Et VidéOStandards De Compression Audio Et VidéO
Standards De Compression Audio Et VidéObriantais
 
Video Compression Basics - MPEG2
Video Compression Basics - MPEG2Video Compression Basics - MPEG2
Video Compression Basics - MPEG2VijayKumarArya
 
Video Compression, Part 3-Section 1, Some Standard Video Codecs
Video Compression, Part 3-Section 1, Some Standard Video CodecsVideo Compression, Part 3-Section 1, Some Standard Video Codecs
Video Compression, Part 3-Section 1, Some Standard Video CodecsDr. Mohieddin Moradi
 
Video Compression Basics
Video Compression BasicsVideo Compression Basics
Video Compression BasicsSanjiv Malik
 
VVC tutorial at ICME 2020 together with Benjamin Bross
VVC tutorial at ICME 2020 together with Benjamin BrossVVC tutorial at ICME 2020 together with Benjamin Bross
VVC tutorial at ICME 2020 together with Benjamin BrossMathias Wien
 
H.264 video compression standard.
H.264 video compression standard.H.264 video compression standard.
H.264 video compression standard.Axis Communications
 
Video Compression Part 1 Video Principles
Video Compression Part 1 Video Principles Video Compression Part 1 Video Principles
Video Compression Part 1 Video Principles Dr. Mohieddin Moradi
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniquesMazin Alwaaly
 
MPEG video compression standard
MPEG video compression standardMPEG video compression standard
MPEG video compression standardanuragjagetiya
 
Serial Digital Interface (SDI), From SD-SDI to 24G-SDI, Part 2
Serial Digital Interface (SDI), From SD-SDI to 24G-SDI, Part 2Serial Digital Interface (SDI), From SD-SDI to 24G-SDI, Part 2
Serial Digital Interface (SDI), From SD-SDI to 24G-SDI, Part 2Dr. Mohieddin Moradi
 
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-basedDesigning an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-basedDr. Mohieddin Moradi
 

La actualidad más candente (20)

Introduction to HEVC
Introduction to HEVCIntroduction to HEVC
Introduction to HEVC
 
HEVC VIDEO CODEC By Vinayagam Mariappan
HEVC VIDEO CODEC By Vinayagam MariappanHEVC VIDEO CODEC By Vinayagam Mariappan
HEVC VIDEO CODEC By Vinayagam Mariappan
 
VVC tutorial at ICIP 2020 together with Benjamin Bross
VVC tutorial at ICIP 2020 together with Benjamin BrossVVC tutorial at ICIP 2020 together with Benjamin Bross
VVC tutorial at ICIP 2020 together with Benjamin Bross
 
Video Compression Standards - History & Introduction
Video Compression Standards - History & IntroductionVideo Compression Standards - History & Introduction
Video Compression Standards - History & Introduction
 
Standards De Compression Audio Et VidéO
Standards De Compression Audio Et VidéOStandards De Compression Audio Et VidéO
Standards De Compression Audio Et VidéO
 
Video Compression Basics - MPEG2
Video Compression Basics - MPEG2Video Compression Basics - MPEG2
Video Compression Basics - MPEG2
 
Video Compression, Part 3-Section 1, Some Standard Video Codecs
Video Compression, Part 3-Section 1, Some Standard Video CodecsVideo Compression, Part 3-Section 1, Some Standard Video Codecs
Video Compression, Part 3-Section 1, Some Standard Video Codecs
 
Video Compression
Video CompressionVideo Compression
Video Compression
 
Video Compression Basics
Video Compression BasicsVideo Compression Basics
Video Compression Basics
 
Mp3
Mp3Mp3
Mp3
 
VVC tutorial at ICME 2020 together with Benjamin Bross
VVC tutorial at ICME 2020 together with Benjamin BrossVVC tutorial at ICME 2020 together with Benjamin Bross
VVC tutorial at ICME 2020 together with Benjamin Bross
 
HEVC intra coding
HEVC intra codingHEVC intra coding
HEVC intra coding
 
Audio compression
Audio compressionAudio compression
Audio compression
 
H.264 video compression standard.
H.264 video compression standard.H.264 video compression standard.
H.264 video compression standard.
 
Video Compression Part 1 Video Principles
Video Compression Part 1 Video Principles Video Compression Part 1 Video Principles
Video Compression Part 1 Video Principles
 
Unit iv
Unit ivUnit iv
Unit iv
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniques
 
MPEG video compression standard
MPEG video compression standardMPEG video compression standard
MPEG video compression standard
 
Serial Digital Interface (SDI), From SD-SDI to 24G-SDI, Part 2
Serial Digital Interface (SDI), From SD-SDI to 24G-SDI, Part 2Serial Digital Interface (SDI), From SD-SDI to 24G-SDI, Part 2
Serial Digital Interface (SDI), From SD-SDI to 24G-SDI, Part 2
 
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-basedDesigning an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
 

Similar a Iain Richardson: An Introduction to Video Compression

Emerging H.264 Standard:
Emerging H.264 Standard:Emerging H.264 Standard:
Emerging H.264 Standard:Videoguy
 
PR-365: Fast object detection in compressed video
PR-365: Fast object detection in compressed videoPR-365: Fast object detection in compressed video
PR-365: Fast object detection in compressed videoHyeongmin Lee
 
Encoding Video for the Web - Webinar from ReelSEO.com
Encoding Video for the Web  - Webinar from ReelSEO.comEncoding Video for the Web  - Webinar from ReelSEO.com
Encoding Video for the Web - Webinar from ReelSEO.comMark Robertson ⏩
 
Video Complexity Dataset (VCD).pdf
Video Complexity Dataset (VCD).pdfVideo Complexity Dataset (VCD).pdf
Video Complexity Dataset (VCD).pdfVignesh V Menon
 
Viewer sw
Viewer swViewer sw
Viewer swciperi
 
A non-copyright circumventing application of the HDCP master key
A non-copyright circumventing application of the HDCP master keyA non-copyright circumventing application of the HDCP master key
A non-copyright circumventing application of the HDCP master keyada fruit
 
Compressed Video Quality
Compressed Video QualityCompressed Video Quality
Compressed Video QualityIain Richardson
 
Emerging H.264 Standard: Overview and TMS320DM642- Based ...
Emerging H.264 Standard: Overview and TMS320DM642- Based ...Emerging H.264 Standard: Overview and TMS320DM642- Based ...
Emerging H.264 Standard: Overview and TMS320DM642- Based ...Videoguy
 
H 264 in cuda presentation
H 264 in cuda presentationH 264 in cuda presentation
H 264 in cuda presentationashoknaik120
 
Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)danishrafiq
 
HD-DVD Technical Introduction
HD-DVD Technical IntroductionHD-DVD Technical Introduction
HD-DVD Technical IntroductionAV_Hire_London
 

Similar a Iain Richardson: An Introduction to Video Compression (20)

Emerging H.264 Standard:
Emerging H.264 Standard:Emerging H.264 Standard:
Emerging H.264 Standard:
 
PR-365: Fast object detection in compressed video
PR-365: Fast object detection in compressed videoPR-365: Fast object detection in compressed video
PR-365: Fast object detection in compressed video
 
Avivo2004
Avivo2004Avivo2004
Avivo2004
 
Encoding Video for the Web - Webinar from ReelSEO.com
Encoding Video for the Web  - Webinar from ReelSEO.comEncoding Video for the Web  - Webinar from ReelSEO.com
Encoding Video for the Web - Webinar from ReelSEO.com
 
How video codec work
How video codec work How video codec work
How video codec work
 
06 vdo
06 vdo06 vdo
06 vdo
 
Algorithm of standard videocodec H.264
Algorithm of standard videocodec H.264 Algorithm of standard videocodec H.264
Algorithm of standard videocodec H.264
 
Video Complexity Dataset (VCD).pdf
Video Complexity Dataset (VCD).pdfVideo Complexity Dataset (VCD).pdf
Video Complexity Dataset (VCD).pdf
 
Viewer sw
Viewer swViewer sw
Viewer sw
 
A non-copyright circumventing application of the HDCP master key
A non-copyright circumventing application of the HDCP master keyA non-copyright circumventing application of the HDCP master key
A non-copyright circumventing application of the HDCP master key
 
Wireless PC2TV
Wireless PC2TVWireless PC2TV
Wireless PC2TV
 
Compressed Video Quality
Compressed Video QualityCompressed Video Quality
Compressed Video Quality
 
Digital TV, IPTV
Digital TV, IPTVDigital TV, IPTV
Digital TV, IPTV
 
Emerging H.264 Standard: Overview and TMS320DM642- Based ...
Emerging H.264 Standard: Overview and TMS320DM642- Based ...Emerging H.264 Standard: Overview and TMS320DM642- Based ...
Emerging H.264 Standard: Overview and TMS320DM642- Based ...
 
H 264 in cuda presentation
H 264 in cuda presentationH 264 in cuda presentation
H 264 in cuda presentation
 
Lecture01
Lecture01Lecture01
Lecture01
 
Performance Analysis of Various Video Compression Techniques
Performance Analysis of Various Video Compression TechniquesPerformance Analysis of Various Video Compression Techniques
Performance Analysis of Various Video Compression Techniques
 
Behind thecurtain benfineman_internet2
Behind thecurtain benfineman_internet2Behind thecurtain benfineman_internet2
Behind thecurtain benfineman_internet2
 
Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)
 
HD-DVD Technical Introduction
HD-DVD Technical IntroductionHD-DVD Technical Introduction
HD-DVD Technical Introduction
 

Último

My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 

Último (20)

My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 

Iain Richardson: An Introduction to Video Compression

  • 1. An introduction to Video Compression Iain Richardson 20 June 2012 Slide 1
  • 2. Agenda • 1. What is Video Compression? • 2. How does a video codec work? – - prediction – - transform + quantization – - coding – - examples • 3. Video compression standards – - H.264 – - HEVC • 4. Video compression patents • 5. Going further Slide 2
  • 3. Agenda • 1. What is Video Compression? • 2. How does a video codec work? – - prediction – - transform + quantization – - coding – - examples • 3. Video compression standards – - H.264 – - HEVC • 4. Video compression patents • 5. Going further Slide 3
  • 4. Video compression MPEG-2 H.264 HEVC …… Broadcast DVD / IPTV Web Mobile Digital TV Blu-Ray Video Video …… Slide 4
  • 5. The need for video compression Original 2 hour movie: 1,800,000,000,000 bits =53 DVD disks COMPRESS =1 DVD disk Slide 5
  • 6. Video Source Video Display Compress Transmi Decompress (Encode) t or (Decode) Store Slide 6
  • 10. Agenda • 1. What is Video Compression? • 2. How does a video codec work? – - prediction – - transform + quantization – - coding – - examples • 3. Video compression standards – - H.264 – - HEVC • 4. Video compression patents • 5. Going deeper Slide 10
  • 11. Digital video Luma (Y) Displayed frame Chroma (Cr) Chroma (Cb) Slide 11
  • 12. Macroblock Slide 12
  • 13. Video Encoder Slide 13
  • 14. Video decoder Slide 14
  • 15. Prediction Slide 15
  • 16. Prediction Slide 16
  • 17. Intra prediction Slide 17
  • 19. Inter prediction Slide 19
  • 21. Types of predicted picture I : Intra prediction only P : Inter prediction (one reference frame) or Intra prediction B : Biprediction (two reference frames), Inter (one reference) or Intra prediction Slide 21
  • 23. Video Encoder Slide 23
  • 24. Forward Transform Slide 24
  • 25. Inverse Transform Slide 25
  • 26. Forward Quantize Slide 26
  • 27. Forward Transform + Quantize 58 64 51 58 961 -41 15 -48 48 -1 0 -1 52 64 56 66 -34 72 -30 -104 -1 1 -1 -2 62 63 61 64 -15 3 15 24 0 0 0 0 59 51 63 69 13 81 -5 8 0 1 0 0 Block of samples After transform Quantized, QP=18 Slide 27
  • 28. Inverse Quantize Slide 28
  • 29. Inverse Transform Slide 29
  • 30. 58 64 51 58 48 -1 0 -1 55 66 54 58 52 64 56 66 -1 1 -1 -2 54 62 58 63 62 63 61 64 0 0 0 0 61 59 61 62 59 51 63 69 0 1 0 0 60 55 65 67 Block of samples Quantized, QP=18 Rescaled + inverse transformed Slide 30
  • 31. Entropy coding Slide 31
  • 32. Video Encoder Slide 32
  • 33. Entropy coding Fixed length codes Variable length Headers codes Prediction parameters Context Adaptive Quantized coefficients Variable Length Codes Context Adaptive Binary Arithmetic Codes Slide 33
  • 37. Examples Slide 37
  • 42. ……etc Slide 42
  • 43. Agenda • 1. What is Video Compression? • 2. How does a video codec work? – - prediction – - transform + quantization – - coding – - examples • 3. Video compression standards – - H.264 – - HEVC • 4. Video compression patents • 5. Going deeper Slide 43
  • 44. H.264 Advanced Video Compression Slide 44
  • 45. H.264/AVC • First released in 2003 • Published by ISO MPEG and ITU-T VCEG • Roughly 2x compression efficiency of MPEG-2 • Used for: – Blu-Ray Disks – High Definition TV broadcasting – Internet video – …… Slide 45
  • 47. High Efficiency Video Compression (HEVC) Slide 47
  • 48. HEVC • Under development by ISO MPEG and ITU-T VCEG • Roughly 2x compression efficiency of H.264 • Due for publication in 2013 Slide 48
  • 50. Agenda • 1. What is Video Compression? • 2. How does a video codec work? – - prediction – - transform + quantization – - coding – - examples • 3. Video compression standards – - H.264 – - HEVC • 4. Video compression patents • 5. Going deeper Slide 50
  • 52. Types of video compression patent • Encoder • Decoder • Transport Slide 52
  • 53. Patent Pools • E.g. MPEG-LA, H.264/AVC patent pool: – Licenses patents on behalf of patent holders – Unrelated to ISO/IEC MPEG – Accepts patents based on determination of “essentiality” – 250+ US patents – 900+ licensees Slide 53
  • 54. Agenda • 1. What is Video Compression? • 2. How does a video codec work? – - prediction – - transform + quantization – - coding – - examples • 3. Video compression standards – - H.264 – - HEVC • 4. Video compression patents • 5. Going further Slide 54
  • 55. To find out more • http://www.itu.int - Download the H.264 standard • http://www.vcodex.com - Free tutorials • Follow me on Twitter: @onecodec Slide 55